/* Self-hosted latin subsets from Google Fonts (Archivo static 600/700/800, Inter, JetBrains Mono) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/archivo-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/archivo-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/archivo-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrainsmono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrainsmono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* CreteWorx design tokens — see /docs/design-system.md */
:root {
  /* ink + stone + paper */
  --ink-900: #0f1113;
  --ink-800: #1b1f23;
  --ink-700: #2c3238;
  --ink-600: #3d4449;
  --stone-500: #8a8f94;
  --stone-400: #a6aaae;
  --stone-300: #c9cbcd;
  --stone-200: #dedcd7;
  --stone-100: #e9e7e2;
  --paper-50: #f6f4ef;
  --white: #ffffff;

  /* brand orange (measured from the existing site: rgb(245,116,0)) */
  --orange-500: #f57400;
  --orange-600: #d96300;
  --orange-700: #b85300;
  --orange-100: #ffe8d1;

  /* semantic */
  --bg: var(--paper-50);
  --bg-elev: var(--white);
  --fg: var(--ink-900);
  --fg-2: var(--ink-600);
  --fg-3: #5b6166;            /* ≥4.6:1 on stone-100 and paper-50 for small mono labels */
  --line: rgba(15, 17, 19, .12);
  --line-strong: rgba(15, 17, 19, .28);
  --accent: var(--orange-500);
  --accent-hover: var(--orange-600);
  --accent-text: #9c4600;     /* 5.3:1 on paper-50 */
  --focus: var(--orange-500);

  /* dark surfaces (used with .theme-dark) */
  --dark-bg: var(--ink-900);
  --dark-bg-2: var(--ink-800);
  --dark-fg: #f1efe9;
  --dark-fg-2: #c2c5c8;
  --dark-line: rgba(255, 255, 255, .14);

  /* type */
  --font-display: "Archivo", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-display: clamp(2.75rem, 1.5rem + 5.2vw, 6.25rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 4.2vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --fs-lede: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-mono: .75rem;

  /* spacing + layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8.5rem);
  --radius: 4px;
  --header-h: 84px;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur: .6s;
}

.theme-dark {
  --bg: var(--dark-bg);
  --bg-elev: var(--dark-bg-2);
  --fg: var(--dark-fg);
  --fg-2: var(--dark-fg-2);
  --fg-3: var(--stone-400);
  --line: var(--dark-line);
  --line-strong: rgba(255, 255, 255, .3);
  --accent-text: #ff9a3d;
  color-scheme: dark;
}
/* Reset + base typography */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* No global smooth scroll: it fights the wheel and JS-driven scrolling. */
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
/* When a wrapper sets an explicit size, the <picture> must pass it through to the <img>. */
.fill, .fill picture, .fill img { display: block; width: 100%; height: 100%; }
.fill img { object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; max-width: 68ch; text-wrap: pretty; }
p + p { margin-top: 1em; }
.display { font-size: var(--fs-display); font-weight: 800; line-height: .98; letter-spacing: -.03em; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--fg-2); max-width: 58ch; }
.mono, .eyebrow { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; color: var(--accent-text); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink-900); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 760px; }
.section { position: relative; }
.section--pad { padding-block: var(--section); }
.section__head { display: grid; gap: .75rem; justify-items: center; text-align: center; margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); max-width: 60rem; }
.section__head h2 { max-width: 22ch; }
.section__head .lede { max-width: 56ch; text-wrap: pretty; }
.section__head .eyebrow { margin-bottom: .25rem; }
.section__head--left { justify-items: start; text-align: left; margin-left: 0; }
.text-link { color: var(--accent-text); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--fg); }

/* Reveal-on-scroll (progressively enhanced: content is visible without JS) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1; transform: none; transition: none; }
}
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.25rem; padding: 0 1.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .01em; line-height: 1;
  border-radius: var(--radius); border: 1.5px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
  white-space: nowrap;
}
.btn--sm { min-height: 2.75rem; padding: 0 1.2rem; font-size: .9375rem; }
.btn--lg { min-height: 3.75rem; padding: 0 2.2rem; font-size: 1.0625rem; }
.btn .btn__arrow { display: inline-block; font-style: normal; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn > span { display: inline-block; transition: transform .35s var(--ease-out); }
.btn:hover > span { transform: translateX(-2px); }
.btn--primary { background: var(--orange-500); color: var(--ink-900); }   /* ink on orange: 7.9:1 (white on this orange is only 2.8:1) */
.btn--primary:hover { background: #ff8a1f; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--ghost-dark { border-color: var(--line-strong); color: var(--fg); }
.btn--ghost-dark:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.theme-dark .btn--ghost-dark { border-color: rgba(255,255,255,.4); color: var(--dark-fg); }
.theme-dark .btn--ghost-dark:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.6fr; gap: 1px; background: var(--ink-900); padding-bottom: env(safe-area-inset-bottom); transform: translateY(0); transition: transform .35s var(--ease-out); }
.mobile-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }
.mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.5rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.mobile-bar__call { background: var(--ink-800); color: #fff; }
.mobile-bar__quote { background: var(--orange-500); color: var(--ink-900); }
body { padding-bottom: 3.5rem; }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--dark-fg); margin-top: 0; }
.site-footer__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; gap: 2.5rem; padding: clamp(3rem, 6vw, 5rem) 0 3rem; border-bottom: 1px solid var(--dark-line); }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.site-footer__brand img { width: 190px; height: auto; }
.site-footer__tag { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 1rem 0 1.25rem; max-width: 22ch; }
.site-footer__contact li { color: var(--dark-fg-2); font-size: .9375rem; padding: .2rem 0; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__heading { font-size: var(--fs-mono); font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-400); margin-bottom: 1rem; }
.site-footer__col li { padding: .3rem 0; font-size: .9375rem; }
.site-footer__col a:not(.btn) { color: var(--dark-fg-2); }
.site-footer__col a:not(.btn):hover { color: #fff; }
.site-footer__cta p { color: var(--dark-fg-2); font-size: .9375rem; margin-bottom: 1.25rem; }
.site-footer__legal { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.25rem 0 2rem; font-size: .8125rem; color: var(--stone-400); }
.site-footer__legal a:hover { color: #fff; }

/* ---------- Link grid (404) ---------- */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .5rem; margin: 2rem 0; }
.link-grid a { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.link-grid a:hover { border-color: var(--orange-500); color: var(--accent-text); }

/* ---------- Quote form ---------- */
.quote-form { display: grid; gap: 1rem; }
.quote-form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .quote-form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--fg-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .85rem 1rem; min-height: 3.25rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(245,116,0,.18); }
.field input[type="file"] { padding: .7rem 1rem; }
.field--hp { position: absolute; left: -9999px; }
.quote-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.quote-form__note { font-size: .8125rem; color: var(--fg-3); max-width: 40ch; }
.form-msg { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; }
.form-msg--ok { background: #e3f3e8; color: #1f5b36; }
.form-msg--err { background: #fbe3df; color: #8a2a1f; }
.form-msg[hidden] { display: none; }
.site-footer__areas { columns: 2; column-gap: 1.5rem; }
.site-footer__areas li { break-inside: avoid; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1fr 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .site-footer__inner { grid-template-columns: 1.3fr .9fr 1.2fr .8fr 1.2fr; } .site-footer__brand { grid-column: auto; } }
.mega__sep { color: var(--stone-400); margin: 0 .4rem; }
/* ============================================================
   Header + navigation system
   States: .hd--overlay (immersive, over the hero)  ->  .is-scrolled (compact charcoal bar)
           .hd--solid   (non-home pages: charcoal from the start)
   Breakpoints: ≥1200 full nav · 1024–1199 MENU trigger + phone + CTA · <1024 MENU + CTA · <700 MENU only
   ============================================================ */
:root { --hd-h: clamp(84px, 60px + 2.6vw, 112px); --hd-h-compact: clamp(66px, 52px + 1.6vw, 84px); --hd-ease: cubic-bezier(.22, 1, .36, 1); }
.hd { position: fixed; left: 0; right: 0; top: 0; z-index: 100; color: #fff; }
.hd__bar { position: relative; z-index: 2; transition: background-color .5s var(--hd-ease), backdrop-filter .5s, box-shadow .5s; }
.hd--overlay .hd__bar::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(15,17,19,.55), rgba(15,17,19,.18) 60%, transparent); opacity: 1; transition: opacity .5s; }
.hd.is-scrolled .hd__bar, .hd--solid .hd__bar { background: rgba(15,17,19,.9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 20px 40px -30px rgba(0,0,0,.6); }
.hd.is-scrolled .hd__bar::before { opacity: 0; }
.hd__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 2vw, 2rem); min-height: var(--hd-h); transition: min-height .5s var(--hd-ease); }
@media (max-width: 1199px) { .hd__inner { grid-template-columns: auto auto; justify-content: space-between; } }
.hd.is-scrolled .hd__inner, .hd--solid .hd__inner { min-height: var(--hd-h-compact); }
/* the page reserves this height so sticky things below can reference it */
:root { --header-h: var(--hd-h-compact); }

/* entrance: same language as the hero */
[data-hd-enter] { animation: hdRise .9s var(--hd-ease) both; }
.brand[data-hd-enter] { animation-delay: .05s; } .nav[data-hd-enter] { animation-delay: .18s; } .hd__contact[data-hd-enter] { animation-delay: .3s; }
@keyframes hdRise { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-hd-enter] { animation: none; } }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: .9rem; flex: none; }
.brand__mark { width: auto; height: clamp(3.2rem, 2.2rem + 2.2vw, 5.4rem); transition: height .5s var(--hd-ease); filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.hd.is-scrolled .brand__mark, .hd--solid .brand__mark { height: clamp(2.6rem, 1.8rem + 1.6vw, 3.9rem); }
.brand__meta { display: none; align-items: center; gap: .5rem; font-size: .58rem; letter-spacing: .18em; color: rgba(255,255,255,.7); padding-left: .9rem; border-left: 1px solid rgba(255,255,255,.25); white-space: nowrap; transition: opacity .4s, max-width .5s var(--hd-ease); }
.brand__meta i { width: 6px; height: 6px; background: var(--orange-500); transform: rotate(45deg); flex: none; }
@media (min-width: 1360px) { .brand__meta { display: inline-flex; } .hd.is-scrolled .brand__meta { opacity: 0; max-width: 0; overflow: hidden; padding-left: 0; border: 0; } }

/* ---------- primary nav ---------- */
.nav { display: none; justify-self: center; }
@media (min-width: 1200px) { .nav { display: block; } }
.nav__list { display: flex; gap: clamp(.15rem, .8vw, .75rem); }
.nav__link { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem .65rem .7rem .55rem; font-family: var(--font-display); font-weight: 600; font-size: .92rem; letter-spacing: -.005em; color: #fff; position: relative; background: none; border: 0; cursor: pointer; line-height: 1; transition: color .3s; }
.nav__link:hover, .nav__link:focus-visible, .nav__link[aria-expanded="true"], .nav__link[aria-current="page"] { color: #fff; }
.nav__idx { font-size: .55rem; color: var(--orange-500); opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .3s var(--hd-ease); }
.nav__link:hover .nav__idx, .nav__link:focus-visible .nav__idx, .nav__link[aria-expanded="true"] .nav__idx, .nav__link[aria-current="page"] .nav__idx { opacity: 1; transform: none; }
/* measurement line: a tick at the left that extends into a rule under the label */
.nav__link::after { content: ""; position: absolute; left: .55rem; bottom: .3rem; height: 1px; width: 6px; background: var(--orange-500); opacity: .6; transition: width .35s var(--hd-ease), opacity .3s; }
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link[aria-expanded="true"]::after, .nav__link[aria-current="page"]::after { width: calc(100% - 1.25rem); opacity: 1; }
.nav__plus { font-family: var(--font-mono); font-size: .8rem; color: var(--orange-500); transition: transform .35s var(--hd-ease); display: inline-block; }
.nav__link[aria-expanded="true"] .nav__plus { transform: rotate(45deg); }
/* Projects: label swaps to "View our work →" on hover, inside a fixed-height mask (no layout shift) */
.nav__swap { position: relative; display: inline-block; height: 1em; line-height: 1; clip-path: inset(-.2em -12rem -.2em 0); }
.nav__label { display: inline-block; transition: transform .35s var(--hd-ease), opacity .3s; }
.nav__hint { position: absolute; left: 0; top: 50%; translate: 0 -50%; transform: translateY(140%); opacity: 0; color: #ffb066; font-size: .58rem; letter-spacing: .14em; white-space: nowrap; transition: transform .35s var(--hd-ease), opacity .3s; }
.nav__link--work:hover .nav__label, .nav__link--work:focus-visible .nav__label { transform: translateY(-120%); opacity: 0; }
.nav__link--work:hover .nav__hint, .nav__link--work:focus-visible .nav__hint { transform: none; opacity: 1; }

/* ---------- contact group ---------- */
.hd__contact { justify-self: end; display: flex; align-items: center; gap: clamp(.75rem, 1.2vw, 1.25rem); white-space: nowrap; }
.hd__sep { width: 1px; height: 2.2rem; background: rgba(255,255,255,.22); display: none; }
@media (min-width: 1200px) { .hd__sep { display: block; } }
.callmod { display: none; align-items: center; gap: .55rem; color: #fff; flex: none; }
@media (min-width: 1024px) { .callmod { display: inline-flex; } }
.callmod__icon { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; color: var(--orange-500); transition: color .3s; }
.callmod:hover .callmod__icon { color: #ffb066; }
.callmod:hover .callmod__icon svg { animation: ring .6s var(--hd-ease); }
@keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }
.callmod__text { display: grid; line-height: 1.1; }
.callmod__label { font-size: .55rem; letter-spacing: .18em; color: rgba(255,255,255,.65); white-space: nowrap; }
.callmod__num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* architectural CTA: square geometry, corner mark, orange fill sweeps on hover */
.cta { position: relative; flex: none; display: inline-flex; align-items: center; gap: .7rem; min-height: 2.9rem; padding: 0 1.05rem 0 1.15rem; font-family: var(--font-display); font-weight: 700; font-size: .92rem; letter-spacing: .005em; color: var(--ink-900); background: var(--orange-500); border: 0; overflow: hidden; isolation: isolate; transition: color .35s, transform .3s var(--hd-ease); white-space: nowrap; }
.cta__fill { position: absolute; inset: 0; z-index: -1; background: var(--ink-900); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--hd-ease); }
.cta:hover, .cta:focus-visible { color: #fff; }
.cta:hover .cta__fill, .cta:focus-visible .cta__fill { transform: scaleX(1); }
.cta__text { position: relative; transition: transform .35s var(--hd-ease); }
.cta__arrow { display: inline-grid; place-items: center; width: 1rem; height: 1rem; transition: transform .35s var(--hd-ease); }
.cta:hover .cta__arrow { transform: translate(3px, -3px); }
.cta:hover .cta__text { transform: translateX(-2px); }
.cta__mark { position: absolute; right: 5px; top: 5px; width: 7px; height: 7px; border-top: 1px solid rgba(15,17,19,.55); border-right: 1px solid rgba(15,17,19,.55); transition: border-color .35s; }
.cta:hover .cta__mark { border-color: rgba(255,255,255,.7); }
.hd__contact .cta { display: none; }
@media (min-width: 700px) { .hd__contact .cta { display: inline-flex; } }
.hd.is-scrolled .cta, .hd--solid .cta { min-height: 2.6rem; font-size: .88rem; }
.cta--block { width: 100%; justify-content: center; min-height: 3.5rem; font-size: 1.05rem; }

/* MENU trigger (custom, not a hamburger) */
.menu-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.9rem; padding: 0 .2rem 0 .9rem; color: #fff; border: 1px solid rgba(255,255,255,.3); background: none; cursor: pointer; transition: border-color .3s, background-color .3s; }
@media (min-width: 1200px) { .menu-btn { display: none; } }
.menu-btn:hover { border-color: rgba(255,255,255,.7); }
.menu-btn__label { display: grid; grid-template-areas: "a"; overflow: hidden; height: 1em; line-height: 1; font-size: .62rem; letter-spacing: .18em; }
.menu-btn__label span { grid-area: a; transition: transform .35s var(--hd-ease); }
.menu-btn__label span:last-child { transform: translateY(120%); }
.menu-btn[aria-expanded="true"] .menu-btn__label span:first-child { transform: translateY(-120%); }
.menu-btn[aria-expanded="true"] .menu-btn__label span:last-child { transform: none; }
.menu-btn__icon { position: relative; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; }
.menu-btn__icon i { position: absolute; width: 14px; height: 1.5px; background: var(--orange-500); transition: transform .4s var(--hd-ease); }
.menu-btn__icon i:last-child { transform: rotate(90deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { transform: rotate(-45deg); }

/* scroll progress hairline: the signature detail. Track appears with the compact state. */
.hd__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: rgba(255,255,255,.12); opacity: 0; transition: opacity .4s; }
.hd.is-scrolled .hd__progress, .hd--solid .hd__progress { opacity: 1; }
.hd__progress i { display: block; height: 100%; width: 100%; background: var(--orange-500); transform: scaleX(0); transform-origin: left; }

/* ---------- Services panel ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: rgba(15,17,19,.96); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--hd-ease), transform .35s var(--hd-ease), visibility 0s .35s; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.mega[hidden] { display: block; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__line { height: 1px; background: linear-gradient(90deg, var(--orange-500), rgba(255,255,255,.15)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--hd-ease); }
.mega.is-open .mega__line { transform: scaleX(1); }
.mega__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; padding: 2.25rem 0 2.5rem; align-items: start; }
.mega__intro .eyebrow { color: #ffb066; }
.mega__title { font-size: clamp(2.2rem, 3.4vw, 3.4rem); letter-spacing: -.035em; line-height: .95; margin: .25rem 0 .9rem; }
.mega__intro p { font-size: .9375rem; color: var(--dark-fg-2); margin-bottom: 1rem; max-width: 30ch; }
.mega__intro .text-link { color: #ffb066; }
.mega__links { display: grid; border-top: 1px solid rgba(255,255,255,.12); }
.mega__links li { opacity: 0; transform: translateY(10px); transition: opacity .35s var(--hd-ease), transform .4s var(--hd-ease); transition-delay: calc(.06s + var(--i) * 40ms); }
.mega.is-open .mega__links li { opacity: 1; transform: none; }
.mega__link { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: baseline; gap: .8rem; padding: .8rem 0 .8rem .35rem; border-bottom: 1px solid rgba(255,255,255,.1); transition: padding-left .3s var(--hd-ease), background-color .3s; }
.mega__link .mono:first-child { color: var(--orange-500); font-size: .6rem; }
.mega__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1.8vw, 1.9rem); letter-spacing: -.02em; line-height: 1; transition: color .3s; }
.mega__spec { font-size: .55rem; color: rgba(255,255,255,.62); letter-spacing: .14em; }
.mega__link:hover, .mega__link:focus-visible, .mega__link.is-active { padding-left: .85rem; background: rgba(255,255,255,.04); }
.mega__link:hover .mega__name, .mega__link.is-active .mega__name { color: #ffb066; }
.mega__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-800); border: 1px solid rgba(255,255,255,.12); }
.mega__frame { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); transition: clip-path .5s var(--hd-ease); }
.mega__frame.is-active { clip-path: inset(0); z-index: 1; }
.mega__frame picture, .mega__frame img { display: block; width: 100%; height: 100%; }
.mega__frame img { object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--hd-ease); }
.mega__frame.is-active img { transform: scale(1); }
.mega__cap { position: absolute; left: .9rem; bottom: .8rem; padding: .35rem .6rem; background: rgba(15,17,19,.7); color: #ffb066; font-size: .58rem; }
@media (max-width: 1199px) { .mega { display: none !important; } }

/* ---------- Full-screen menu scene ---------- */
.menu { position: fixed; inset: 0; z-index: -1; background: var(--ink-900); color: #fff; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .4s var(--hd-ease), visibility 0s .4s; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; display: grid; grid-template-rows: 1fr auto; }
.menu[hidden] { display: grid; }
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu__bg { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; display: none; opacity: 0; clip-path: inset(0 0 0 100%); transition: clip-path .7s var(--hd-ease) .1s, opacity .5s .1s; }
.menu.is-open .menu__bg { clip-path: inset(0); opacity: 1; }
.menu__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-900), rgba(15,17,19,.35) 40%, rgba(15,17,19,.55)); }
.menu__bg picture, .menu__bg img { display: block; width: 100%; height: 100%; } .menu__bg img { object-fit: cover; }
@media (min-width: 900px) { .menu__bg { display: block; } }
.menu__inner { position: relative; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; width: 100%; padding: calc(var(--hd-h-compact) + 1.5rem) var(--gutter) 1.5rem; display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 900px) { .menu__inner { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2)); } }
@media (min-width: 900px) { .menu__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); padding-top: calc(var(--hd-h-compact) + 3rem); } }
.menu .eyebrow { color: #ffb066; }
.menu__services li, .menu__pages li { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--hd-ease), transform .5s var(--hd-ease); transition-delay: calc(.08s + var(--i) * 45ms); }
.menu.is-open .menu__services li, .menu.is-open .menu__pages li { opacity: 1; transform: none; }
.menu__services li a { display: flex; align-items: baseline; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--font-display); font-weight: 800; font-size: min(clamp(1.5rem, 4.2vh, 3.2rem), 7.4vw); letter-spacing: -.035em; line-height: 1; color: #fff; transition: color .3s, padding-left .3s var(--hd-ease); }
.menu__services li a:hover, .menu__services li a:focus-visible, .menu__services li a[aria-current="page"] { color: #ffb066; padding-left: .5rem; }
.menu__services .mono { color: var(--orange-500); font-size: .62rem; width: 2rem; flex: none; }
.menu__pages { margin-top: 1.5rem; }
.menu__pages li a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--dark-fg-2); transition: color .3s; }
.menu__pages li a:hover, .menu__pages li a[aria-current="page"] { color: #fff; }
.menu__pages .mono { font-size: .55rem; color: rgba(255,255,255,.45); }
.menu__side { display: none; align-self: end; }
@media (min-width: 900px) { .menu__side { display: block; } }
.menu__meta { display: grid; gap: .4rem; font-size: .6rem; letter-spacing: .16em; color: rgba(255,255,255,.55); }
.menu__actions { position: relative; width: 100%; padding: .9rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; border-top: 1px solid rgba(255,255,255,.12); background: var(--ink-900); }
@media (min-width: 900px) { .menu__actions { grid-template-columns: auto auto; justify-content: start; gap: 1.5rem; } }
.menu__call { display: grid; gap: .2rem; padding: .6rem .9rem; border: 1px solid rgba(255,255,255,.28); color: #fff; min-height: 3.5rem; align-content: center; }
.menu__call .mono { font-size: .55rem; letter-spacing: .18em; color: rgba(255,255,255,.62); }
.menu__call strong { font-family: var(--font-display); font-size: 1.05rem; }
body.nav-open { overflow: hidden; }
body.nav-open .hd .hd__bar { background: var(--ink-900); box-shadow: none; }
body.nav-open .menu { z-index: 1; }
.mega { z-index: 1; }

/* square focus rings inside the header (matches the architectural geometry) */
.hd :focus-visible { border-radius: 0; outline-offset: 2px; }
