/* ==========================================================================
   Boyeg Solutions — shared stylesheet
   Dark, warm-neutral ground + ONE accent (brass) in three tones.
   --brass-700 is decorative only (gradient stops / hairlines), never text.

   Tokens are declared on BOTH :root and html. Safari's `color-scheme: dark`
   overrides the default page background on the html element, so a :root-only
   block loses the ground colour. Do not "tidy" this into a single selector.

   Every class used by more than one page lives here. Page-specific layout
   should be built from these primitives, not from new one-off rules.

   The hero compass bezel (see HERO) was ported from the northlight studio
   build in D:\P R O J E C T. It is CSS and inline SVG only — no raster assets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   TOKENS
   -------------------------------------------------------------------------- */
:root,
html {
  /* Ground */
  --ink-950: #0A0A0B;   /* page base */
  --ink-900: #101012;   /* header, footer */
  --ink-850: #141416;   /* card surface */
  --ink-800: #17171A;   /* elevated / inputs */

  /* Hairlines */
  --line: #26262B;
  --line-soft: #1E1E22;

  /* Text */
  --fg: #F5F3EF;        /* primary — warm cream, never #FFF */
  --fg-muted: #9A968F;
  /* Verified 5.26:1 on --ink-850 (worst surface used on). Do not darken. */
  --fg-subtle: #8F8B81;

  /* The one accent */
  --brass-300: #E8C583; /* large serif accent text */
  --brass-500: #D9A441; /* CTA fill, small marks, icons */
  --brass-700: #8A6520; /* decorative only */

  /* Type */
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --body: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --band: clamp(4.5rem, 9vw, 8.5rem);
  --measure: 65ch;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  scroll-behavior: smooth;
  /* `clip`, not `hidden` — `hidden` makes the root a scroll container and
     breaks `position: sticky` on the header. */
  overflow-x: clip;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
h1 { line-height: 1.04; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
a { color: inherit; }
b, strong { font-weight: 600; color: var(--fg); }

:where(:focus-visible) {
  outline: 2px solid var(--brass-300);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
/* Fallback (normal specificity) to preserve behaviour in older browsers. */
:focus-visible {
  outline: 2px solid var(--brass-300);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--brass-500); color: var(--ink-950); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   SKIP LINK — `fixed` so it stays on-screen when focused
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 200;
  transform: translateY(-200%);
  padding: .7rem 1.1rem;
  background: var(--brass-500);
  color: var(--ink-950);
  font-size: .875rem; font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: 860px; }

.band { padding-block: var(--band); position: relative; }
.band--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.band--hair { border-top: 1px solid var(--line-soft); }
.band--sunken { background: var(--ink-900); padding-top: 3rem; padding-bottom: 3rem; }

.contact-layout { padding: 2rem; }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

/* Spacing utilities. Prefer these over one-off inline styles so that rhythm
   changes stay in one place. */
.mt-band { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.mt-lg { margin-top: 2rem; }
.mt-md { margin-top: 1.5rem; }
.mb-md { margin-bottom: 1.5rem; }

/* Editorial hairline grid behind certain bands */
.band--ruled { position: relative; }
.band--ruled::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

/* --------------------------------------------------------------------------
   TYPE PRIMITIVES
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-300);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px;
  background: var(--brass-700); flex: none;
}

.h-display { font-family: var(--display); font-size: clamp(2.6rem, 1.3rem + 5.6vw, 5rem); letter-spacing: -.025em; }
.h-display em { font-style: italic; color: var(--brass-300); }
.h-section { font-family: var(--display); font-size: clamp(1.95rem, 1.2rem + 3vw, 3.25rem); letter-spacing: -.02em; max-width: 22ch; }
.h-sub { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.015em; }
.h-minor { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }

.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--fg-muted); max-width: 56ch; line-height: 1.6; }
.prose { max-width: var(--measure); color: var(--fg-muted); }
.prose > * + * { margin-top: 1.15rem; }
.prose strong, .prose b { color: var(--fg); }

.section-head { max-width: 64ch; }
.section-head .lede { margin-top: 1.35rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .h-section, .section-head--center .lede { margin-inline: auto; }

.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); }
.brass { color: var(--brass-300); }
.serif { font-family: var(--display); }
.numeral {
  font-family: var(--display);
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem);
  line-height: 1; color: var(--brass-300);
  letter-spacing: -.02em;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px;               /* touch target */
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit; font-size: .9375rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brass-500); color: var(--ink-950); }
.btn--primary:hover { background: var(--brass-300); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brass-700); color: var(--brass-300); }

.btn--quiet { background: transparent; color: var(--fg-muted); padding-inline: 0; min-height: 44px; }
.btn--quiet:hover { color: var(--brass-300); }

.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform .2s var(--ease); flex: none; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Text link with a scaling underline */
.link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--brass-300); text-decoration: none;
  font-weight: 500;
  padding-block: .2rem;
  background-image: linear-gradient(var(--brass-700), var(--brass-700));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: color .2s var(--ease), background-size .2s var(--ease);
}
.link:hover { color: var(--fg); background-size: 100% 2px; }

/* --------------------------------------------------------------------------
   TAGS / CHIPS
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center;
  padding: .3rem .65rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}
/* Visible marker on placeholder content - never remove. */
.tag--sample { border-color: var(--brass-700); color: var(--brass-300); background: rgba(217, 164, 65, .08); }
/* Language names — proper case, so no uppercase transform (unlike .tag).
   Used by the Innovations page language grid, one chip per `.card`. */
.lang {
  display: inline-flex; align-items: center;
  align-self: flex-start;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .8125rem; font-weight: 500;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   HEADER + NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 11, .72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, .94);
  border-bottom-color: var(--line-soft);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--fg);
  flex: none;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--display);
  font-size: 1.2rem; letter-spacing: -.01em; white-space: nowrap;
}
.brand__name span { color: var(--brass-300); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 1.75rem; }

/* The header CTA lives in `.header__actions` on desktop and inside the panel
   on mobile. Only one copy may be visible at a time — two identical links
   would be announced twice and read as a mistake. */
.nav > .btn { display: none; }

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: .35rem;
  font-size: .9375rem; font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brass-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after { transform: scaleX(1); }

/* Active page — set in markup, no JS required */
.nav__link[aria-current="page"] { color: var(--fg); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: .75rem; flex: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--fg);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brass-700); }
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5.25px; }
.nav-toggle__bars span:nth-child(3) { top: 10.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   BREADCRUMBS
   -------------------------------------------------------------------------- */
.crumbs { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--fg-subtle); }
.crumbs__list li { display: flex; align-items: center; gap: .5rem; }
.crumbs__list li + li::before { content: "/"; color: var(--brass-700); }
.crumbs a { color: var(--fg-muted); text-decoration: none; }
.crumbs a:hover { color: var(--brass-300); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--fg-subtle); }

/* --------------------------------------------------------------------------
   PAGE HEAD (subpages)
   -------------------------------------------------------------------------- */
.page-head { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head .lede { margin-top: 1.5rem; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   HERO (home)
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero::before {
  /* Brass bloom — the single warm light source, spent once */
  content: "";
  position: absolute; z-index: 0;
  top: -22%; right: -8%;
  width: min(760px, 90vw); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(217, 164, 65, .16), rgba(217, 164, 65, .05) 42%, transparent 68%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero__title { margin-top: 1.5rem; }
.hero__title em { font-style: italic; color: var(--brass-300); }
.hero__lede { margin-top: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.5rem; }
.hero__note { margin-top: 1.5rem; font-size: .875rem; color: var(--fg-subtle); }

/* Signature visual: the compass bezel — ported from the northlight studio build.
   CSS + inline SVG only, no raster assets; decorative, aria-hidden in the markup.
   The source derived these tints by mixing palette values in place; explicit
   rgba() keeps the palette tokens in charge and matches this stylesheet. */
.hero__visual { display: grid; place-items: center; }
.bezel {
  position: relative;
  width: 100%;
  max-width: min(440px, 78vw);
  aspect-ratio: 1;
  margin-inline: auto;
  color: var(--brass-500);
}
.bezel__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(138, 101, 32, .62);
}
.bezel__ring--inner { inset: 16%; border-color: var(--line-soft); }
.bezel__ticks {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(217, 164, 65, .74) 0deg .28deg, transparent .28deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 0 88.5%, #000 89.5% 100%);
  mask: radial-gradient(circle, transparent 0 88.5%, #000 89.5% 100%);
  animation: bezel-spin 140s linear infinite;
}
.bezel__beam {
  position: absolute; inset: 16%;
  border-radius: 50%;
  overflow: hidden;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(217, 164, 65, .26) 12deg, rgba(232, 197, 131, .08) 30deg, transparent 62deg, transparent 360deg);
  animation: bezel-spin 34s linear infinite;
}
.bezel__beam--soft {
  inset: 0;
  opacity: .5;
  background: conic-gradient(from 180deg, transparent 0deg, rgba(138, 101, 32, .40) 20deg, transparent 70deg, transparent 360deg);
  animation: bezel-spin 60s linear infinite reverse;
}
.bezel__needle {
  position: absolute; left: 50%; top: 50%;
  width: 38%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: bezel-needle 26s ease-in-out infinite alternate;
}
.bezel__core {
  position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--brass-500);
  border-radius: 2px;
  box-shadow: 0 0 0 5px rgba(217, 164, 65, .14);
}
.bezel__caption {
  position: absolute; left: 50%; bottom: -.25rem;
  transform: translateX(-50%);
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  white-space: nowrap;
}
@keyframes bezel-spin { to { transform: rotate(360deg); } }
@keyframes bezel-needle {
  from { transform: translate(-50%, -50%) rotate(-16deg); }
  to   { transform: translate(-50%, -50%) rotate(16deg); }
}

/* --------------------------------------------------------------------------
   CARD GRIDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--ink-850);
  transition: background-color .22s var(--ease);
}
a.card { text-decoration: none; }
.card:hover { background: var(--ink-800); }
.card:hover .card__title { color: var(--brass-300); }

.card__index {
  font-family: var(--display);
  font-size: 1.5rem; line-height: 1;
  color: var(--brass-700);
  margin-bottom: 1.25rem;
}
.card__title { font-family: var(--display); font-size: 1.375rem; letter-spacing: -.015em; transition: color .22s var(--ease); }
.card__text { margin-top: .85rem; color: var(--fg-muted); font-size: .9375rem; line-height: 1.6; }
.card__foot { margin-top: auto; padding-top: 1.5rem; }
.card__list { margin-top: 1.1rem; display: grid; gap: .5rem; }
.card__list li { position: relative; padding-left: 1.1rem; font-size: .875rem; color: var(--fg-subtle); line-height: 1.5; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 1px; background: var(--brass-700);
}

/* --------------------------------------------------------------------------
   SERVICE DETAIL BLOCKS (services page)
   -------------------------------------------------------------------------- */
.service {
  display: grid;
  gap: clamp(1.75rem, 3vw, 3rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.service:first-of-type { border-top: 0; padding-top: 0; }

.service__head { display: flex; gap: 1.25rem; align-items: flex-start; }
.service__numeral {
  font-family: var(--display); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  line-height: 1; color: var(--brass-300); flex: none;
  min-width: 2.5ch;
}
.service__title { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); letter-spacing: -.02em; }
.service__summary { margin-top: 1rem; font-size: 1.0625rem; color: var(--fg-muted); max-width: 58ch; }

.service__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.service__grid + .service__grid { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.service__block h3,
.service__value h3 {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-300);
  margin-bottom: .9rem;
}
.service__block p { color: var(--fg-muted); font-size: .9375rem; line-height: 1.65; max-width: 52ch; }
.service__block ul { display: grid; gap: .55rem; }
.service__block li { position: relative; padding-left: 1.15rem; font-size: .9375rem; color: var(--fg-muted); line-height: 1.55; }
.service__block li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 6px; height: 1px; background: var(--brass-700);
}

.service__value {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass-500);
  border-radius: var(--r-sm);
  background: var(--ink-850);
}
.service__value p { color: var(--fg); font-size: 1rem; line-height: 1.55; }

.service__cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* Anchor offset list on the services page */
.service-index { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(3, 1fr); }
.service-index__item {
  display: flex; align-items: baseline; gap: .85rem;
  padding: 1.15rem 1.35rem;
  background: var(--ink-850);
  text-decoration: none;
  transition: background-color .2s var(--ease);
}
.service-index__item:hover { background: var(--ink-800); }
.service-index__item:hover .service-index__name { color: var(--brass-300); }
.service-index__num { font-family: var(--display); color: var(--brass-700); font-size: 1.125rem; flex: none; }
.service-index__name { color: var(--fg); font-size: .9375rem; font-weight: 500; transition: color .2s var(--ease); }

/* --------------------------------------------------------------------------
   DIFFERENTIATORS / STEPS
   -------------------------------------------------------------------------- */
.diffs { display: grid; gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
.diffs--2 { grid-template-columns: repeat(2, 1fr); }
.diffs--3 { grid-template-columns: repeat(3, 1fr); }
.diff { padding: clamp(1.5rem, 2.5vw, 2.25rem) 0; }
.diff__title { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.diff__icon { width: 22px; height: 22px; flex: none; color: var(--brass-300); }
.diff__text { color: var(--fg-muted); font-size: .9375rem; line-height: 1.6; max-width: 46ch; }

.steps { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { padding: clamp(1.5rem, 2.5vw, 2rem); background: var(--ink-850); }
.step__num { font-family: var(--display); font-size: 1.75rem; line-height: 1; color: var(--brass-700); margin-bottom: 1rem; }
.step__title { font-size: 1.0625rem; font-weight: 600; margin-bottom: .6rem; }
.step__text { color: var(--fg-muted); font-size: .9375rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   ABOUT
   -------------------------------------------------------------------------- */
.manifesto { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.5rem); line-height: 1.28; letter-spacing: -.015em; max-width: 28ch; }
.manifesto em { font-style: italic; color: var(--brass-300); }

.split { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.split__aside { position: sticky; top: calc(var(--header-h) + 2rem); }

.value-list { display: grid; gap: 0; }
.value-list__item { padding-block: 1.5rem; border-top: 1px solid var(--line-soft); }
.value-list__item:last-child { border-bottom: 1px solid var(--line-soft); }
.value-list__item h4 { font-size: 1.0625rem; font-weight: 600; margin-bottom: .5rem; }
.value-list__item p { color: var(--fg-muted); font-size: .9375rem; line-height: 1.6; max-width: 60ch; }

/* --------------------------------------------------------------------------
   INSIGHTS
   -------------------------------------------------------------------------- */
.insight {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--ink-850);
  transition: background-color .22s var(--ease);
}
a.insight:hover { background: var(--ink-800); }
a.insight:hover .insight__title { color: var(--brass-300); }
a.insight { text-decoration: none; }
a.insight .link { text-decoration: none; }
.insight__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.insight__title { font-family: var(--display); font-size: 1.375rem; letter-spacing: -.015em; transition: color .22s var(--ease); }
.insight__excerpt { margin-top: .85rem; color: var(--fg-muted); font-size: .9375rem; line-height: 1.6; }
.insight__foot { margin-top: auto; padding-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }

/* Empty state — swap in by removing the .grid above it */
.empty {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}
.empty__title { font-family: var(--display); font-size: 1.5rem; margin-bottom: .85rem; }
.empty__text { color: var(--fg-muted); max-width: 52ch; margin-inline: auto; }
.empty .btn { margin-top: 1.75rem; }

.sample-note {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--brass-700);
  border-radius: var(--r-sm);
  background: rgba(217, 164, 65, .06);
  font-size: .875rem; color: var(--fg-muted);
}
.sample-note strong { color: var(--brass-300); display: block; margin-bottom: .2rem; }
.sample-note__icon { width: 18px; height: 18px; flex: none; color: var(--brass-300); margin-top: .15rem; }

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.35rem; }
.form__row { display: grid; gap: 1.35rem; grid-template-columns: repeat(2, 1fr); }

.field { display: grid; gap: .5rem; }
.field__label { font-size: .875rem; font-weight: 500; color: var(--fg); }
.field__label .req { color: var(--brass-300); margin-left: .15rem; }
.field__hint { font-size: .8125rem; color: var(--fg-subtle); }

.field__control {
  width: 100%;
  min-height: 48px;
  padding: .75rem .9rem;
  background: var(--ink-800);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit; font-size: .9375rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field__control::placeholder { color: var(--fg-subtle); }
.field__control:hover { border-color: #33333A; }
/* :focus-visible only — a mouse click should not draw a ring on every field. */
.field__control:focus { border-color: var(--brass-700); background: var(--ink-850); }
.field__control:focus:not(:focus-visible) { outline: none; }

select.field__control {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%238F8B81' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
}
select.field__control option { background: var(--ink-800); color: var(--fg); }

textarea.field__control { min-height: 150px; resize: vertical; line-height: 1.6; }

.field--invalid .field__control { border-color: #D9705E; }
.field--invalid .field__label { color: #F0A899; }

.field__error {
  display: none;
  align-items: center; gap: .4rem;
  font-size: .8125rem; color: #F0A899;
}
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 14px; height: 14px; flex: none; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 700; line-height: 1; }
.field--invalid .field__error { display: flex; }

/* Checkbox / consent */
.check { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; margin-top: 1.5rem; }
.check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--brass-500); flex: none; cursor: pointer; }
.check label { font-size: .875rem; color: var(--fg-muted); line-height: 1.55; cursor: pointer; }
.check--invalid label { color: #F0A899; }

.form-status { margin: 0; font-size: .875rem; }
.form-status:empty { display: none; }
.form-status[data-state="error"] {
  padding: 1rem 1.25rem;
  border: 1px solid #D9705E;
  border-radius: var(--r-sm);
  background: rgba(217, 112, 94, .08);
  color: #F0A899;
}
.form-status[data-state="pending"] { color: var(--fg-subtle); }

.form__submit { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: .35rem; }
.form__submit .form__disclaimer { font-size: .8125rem; color: var(--fg-subtle); max-width: 34ch; }

/* Success panel */
.success {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--brass-700);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(217, 164, 65, .07), transparent 50%), var(--ink-850);
}
.success__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-300); margin-bottom: 1.25rem;
}
.success__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass-500); }
.success__title { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 1rem; }
.success__text { color: var(--fg-muted); max-width: 52ch; }
.success__text + .success__text { margin-top: .85rem; }
.success__summary {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: grid; gap: .6rem;
  font-size: .875rem;
}
.success__summary div { display: flex; gap: 1rem; justify-content: space-between; }
.success__summary dt { color: var(--fg-subtle); flex: none; }
.success__summary dd { margin: 0; color: var(--fg); text-align: right; overflow-wrap: anywhere; }
.success .btn { margin-top: 1.75rem; }

/* Contact aside */
.contact-aside { display: grid; gap: 2rem; padding-left: 1rem; }
.contact-block__title { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-300); margin-bottom: 1rem; }
.contact-list { display: grid; gap: .9rem; }
.contact-list__item { display: grid; gap: .2rem; }
.contact-list__label { font-size: .75rem; color: var(--fg-subtle); }
.contact-list__value { font-size: .9375rem; color: var(--fg); overflow-wrap: anywhere; }
a.contact-list__value { color: var(--brass-300); text-decoration: none; }
a.contact-list__value:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(140deg, rgba(217, 164, 65, .09), transparent 55%),
    var(--ink-850);
  padding: clamp(2rem, 4vw, 3.25rem);
  overflow: hidden;
}
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band__title { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); max-width: 20ch; }
.cta-band__text { margin-top: .9rem; color: var(--fg-muted); max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-900); border-top: 1px solid var(--line-soft); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; margin-top: auto; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.6fr repeat(3, 1fr); }
.footer-col__title { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-300); margin-bottom: 1.1rem; }
.footer-list { display: grid; gap: .7rem; }
.footer-list a, .footer-list span { font-size: .9375rem; color: var(--fg-muted); text-decoration: none; }
.footer-list a:hover { color: var(--brass-300); }
.footer-list address { font-style: normal; }
.footer-blurb { margin-top: 1.25rem; color: var(--fg-subtle); font-size: .875rem; max-width: 40ch; line-height: 1.6; }
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  font-size: .8125rem; color: var(--fg-subtle);
}
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { color: var(--fg-subtle); text-decoration: none; }
.footer-legal a:hover { color: var(--brass-300); }

/* Sticky footer: page fills viewport, footer never floats mid-screen */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* --------------------------------------------------------------------------
   REVEAL ON SCROLL
   Progressive enhancement — without JS, `.reveal` is simply visible.
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-d1 { transition-delay: .07s !important; }
.reveal-d2 { transition-delay: .14s !important; }
.reveal-d3 { transition-delay: .21s !important; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (min-width: 1001px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; }
  .service__grid { grid-template-columns: 1fr 1fr; }
  .service__grid--wide-first { grid-template-columns: 1.4fr 1fr; }
  .split { grid-template-columns: .8fr 1.2fr; }
  .contact-layout { grid-template-columns: 1.25fr .75fr; }
}

@media (max-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .diffs--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .service-index { grid-template-columns: repeat(2, 1fr); }
  /* Hero stacks: the bezel sits below the copy, so it must not dominate. */
  .bezel { max-width: min(300px, 68vw); }
}

/* Mobile navigation */
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: inline-flex; }
  .header__actions .btn { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    display: block;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--ink-950);
    border-top: 1px solid var(--line-soft);
    overflow-y: auto;
    /* Hidden by default; `.is-open` reveals it. */
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > .btn { display: inline-flex; margin-top: 1.75rem; width: 100%; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line-soft); }
  .nav__link {
    display: block;
    padding: 1.05rem .25rem;
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--fg);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--brass-300); }
  .nav .btn { margin-top: 1.75rem; width: 100%; }
}

@media (max-width: 680px) {
  .grid--2, .grid--3, .diffs--2, .diffs--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn, .page-head__actions .btn { width: 100%; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .service__head { gap: .9rem; }
  .service-index { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .brand__name { font-size: 1.05rem; }
  .brand__mark { width: 26px; height: 26px; }
  .btn { padding-inline: 1.1rem; font-size: .875rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   USER PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* Never leave content hidden when motion is suppressed. */
  .js .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root, html {
    --fg-muted: #C4C0B8;
    --fg-subtle: #B4B0A7;
    --line: #3E3E46;
    --line-soft: #33333A;
  }
  .service__block li::before, .card__list li::before { background: var(--brass-300); }
}

@media print {
  .site-header, .nav, .nav-toggle, .site-footer__nav, .form, .success, .skip-link, .hero__visual { display: none !important; }
  body { background: #FFF; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}
