/* Richardson Custom Builders — components.css
   Geometric line system. AJAX-aware. */

/* -------- Fonts: Sentinel (lifted from whitehallde.com aesthetic) -------- */
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-300-normal.woff") format("woff");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-300-italic.woff") format("woff");font-weight:300;font-style:italic;font-display:swap}
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-400-normal.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-400-italic.woff") format("woff");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-500-normal.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-500-italic.woff") format("woff");font-weight:500;font-style:italic;font-display:swap}
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-600-normal.woff") format("woff");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-600-italic.woff") format("woff");font-weight:600;font-style:italic;font-display:swap}
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-700-normal.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-700-italic.woff") format("woff");font-weight:700;font-style:italic;font-display:swap}
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-800-normal.woff") format("woff");font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:"Sentinel";src:url("../fonts/sentinel-800-italic.woff") format("woff");font-weight:800;font-style:italic;font-display:swap}

/* -------- Tokens -------- */
:root {
  --bone: #f5f2ec;
  --bone-2: #ebe6db;
  --ink: #222222;
  --ink-2: #161616;
  --mute: #7a7773;
  --rule: #222222;
  --accent: #fbb333;
  --accent-2: #fbb333;
  --accent-hover: #b28026;

  --f-display: "Sentinel", "Georgia", "Times New Roman", serif;
  --f-body: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "Inter", ui-monospace, Menlo, monospace;

  --px: clamp(20px, 3vw, 48px);
  --gutter: clamp(16px, 1.4vw, 22px);
  --header-h: 110px;

  --ease: cubic-bezier(.6,.05,.15,1);
  --ease-2: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bone);
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a, a:visited, a:link, a:active { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

/* Lenis smooth scroll guard */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* -------- Type -------- */
.h-display {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.02em;
  font-size: clamp(40px, 7vw, 112px);
  margin: 0;
}
.h-section {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.02em;
  font-size: clamp(32px, 4.2vw, 64px);
  margin: 0;
}
.h-display em, .h-section em { font-style: italic; color: var(--accent); font-weight: 900; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}

/* -------- Layout helpers -------- */
.wrap { padding-left: var(--px); padding-right: var(--px); }
.section { padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(80px, 10vw, 160px); position: relative; }
.section--tight { padding-top: clamp(40px, 4vw, 64px); padding-bottom: clamp(40px, 4vw, 64px); }
#about.section { padding-top: clamp(20px, 2vw, 36px); padding-bottom: clamp(20px, 2vw, 36px); }
#services.section { padding-top: clamp(32px, 3vw, 56px); }
.rule { height: 1px; background: var(--ink); opacity: .12; width: 100%; }

/* -------- Header (fixed) -------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto auto;
  column-gap: clamp(16px, 2.2vw, 40px);
  align-items: center;
  padding: 0 var(--px);
  background: var(--ink); color: #fff;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: height .3s var(--ease), background .3s var(--ease);
}
.site-header > * { grid-row: 1; }
.site-header.is-solid { height: 72px; background: rgba(34,34,34,.92); backdrop-filter: blur(10px); }
.site-header.is-solid .brand { height: 48px; }
.site-header.is-solid .brand img { height: 48px; }
.brand, .brand img { transition: height .3s var(--ease); }

/* Search (inline) */
.hsearch { position: relative; }
.hsearch__field {
  display: inline-flex; align-items: center; gap: 10px;
  width: 100%; max-width: 420px;
  padding: 11px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: rgba(255,255,255,.85);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.hsearch__field:hover, .hsearch.is-open .hsearch__field { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.hsearch__field svg { opacity: .7; flex-shrink: 0; }
.hsearch__field input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: #fff; font: 400 13px/1 var(--f-body);
  letter-spacing: .01em;
}
.hsearch__field input::placeholder { color: rgba(255,255,255,.5); }
.hsearch__kbd {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em;
  padding: 3px 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
  color: rgba(255,255,255,.6);
}
.hsearch.is-open .hsearch__kbd { display: none; }

/* Search mega-menu */
.hsearch__menu {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  min-width: 520px; max-width: 640px;
  background: #1a1a1a; color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  max-height: 70vh; overflow-y: auto;
  animation: menuIn .25s var(--ease) both;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.hsearch__group + .hsearch__group { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 10px; }
.hsearch__gh {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.5); padding: 4px 8px 8px;
  display: flex; justify-content: space-between;
}
.hsearch__gh span { color: var(--accent); }
.hsearch__items { display: flex; flex-direction: column; gap: 2px; }
.hsearch__item {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 12px; align-items: center;
  padding: 8px; border-radius: 10px;
  cursor: pointer;
  color: #fff;
  transition: background .15s var(--ease);
}
.hsearch__item:hover { background: rgba(255,255,255,.06); }
.hsearch__thumb {
  width: 44px; height: 44px; border-radius: 8px;
  background: #333 center/cover no-repeat;
  flex-shrink: 0;
}
.hsearch__thumb--glyph {
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 18px; color: var(--accent);
  background: rgba(251,179,51,.08);
}
.hsearch__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hsearch__title {
  font-family: var(--f-display); font-size: 15px; font-weight: 500;
  line-height: 1.2; letter-spacing: -.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hsearch__title mark { background: rgba(251,179,51,.22); color: var(--accent); border-radius: 3px; padding: 0 2px; }
.hsearch__sub {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.hsearch__tag {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(251,179,51,.35);
  padding: 4px 8px; border-radius: 999px;
}
.hsearch__empty {
  padding: 22px; text-align: center; color: rgba(255,255,255,.6);
  font-size: 13px;
}

/* Socials */
.hsocials { display: inline-flex; align-items: center; gap: 4px; }
.hsocials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  transition: background .25s var(--ease), color .25s var(--ease), transform .3s var(--ease);
}
.hsocials a:hover { background: rgba(255,255,255,.08); color: var(--accent); transform: translateY(-1px); }

/* Interactive "Start a Project" CTA */
.hcta {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 20px 13px 16px;
  background: var(--accent); color: var(--ink);
  border-radius: 0;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  overflow: hidden;
  transition: background .25s var(--ease), color .25s var(--ease), padding-right .3s var(--ease);
  white-space: nowrap;
}
.hcta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 0% 50%, rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.hcta:hover { background: #fcbe49; padding-right: 26px; }
.hcta:hover::before { opacity: 1; }
.hcta__label { position: relative; z-index: 1; }
.hcta__arrow {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: var(--accent);
  transition: transform .3s var(--ease), background .25s var(--ease);
}
.hcta:hover .hcta__arrow { transform: translateX(3px); background: #111; }

/* Shrink state tweaks */
.site-header.is-solid .hsearch__field { padding: 9px 12px; }
.site-header.is-solid .hsocials a { width: 32px; height: 32px; }
.site-header.is-solid .hcta { padding: 10px 16px 10px 14px; }
.site-header.is-solid .hcta__arrow { width: 20px; height: 20px; }

.brand {
  display: inline-flex; align-items: center; gap: 14px;
  height: 76px;
}
.brand img {
  height: 76px; width: auto; display: block;
}
.brand__dark { display: none; }
/* nav + mega menu CSS lives at end of file */

/* -------- Hero -------- */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  color: #fff;
  overflow: hidden;
  background: #222;
  display: flex; align-items: stretch;
}
.hero__media {
  position: absolute; inset: 0;
  background: #222 center/cover no-repeat;
  z-index: 0;
  overflow: hidden;
}
.hero__video {
  position: absolute; top: 50%; left: 50%;
  /* Cover 16:9 iframe across any viewport */
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.2) 100%);
  z-index: 1;
}
/* Corner-frame accent around the 60vw block */
.hero__frame-lines { position: absolute; inset: var(--px); pointer-events: none; z-index: 1; }
.hero__frame-lines .l { position: absolute; background: rgba(255,255,255,.18); }
.hero__frame-lines .l-t, .hero__frame-lines .l-b { left: 0; right: 0; height: 1px; }
.hero__frame-lines .l-l, .hero__frame-lines .l-r { top: 0; bottom: 0; width: 1px; }
.hero__frame-lines .l-t { top: 0; }
.hero__frame-lines .l-b { bottom: 0; }
.hero__frame-lines .l-l { left: 0; }
.hero__frame-lines .l-r { right: 0; }

/* ===== 60vw content block — revamped hero ===== */
.hero__block {
  position: relative; z-index: 3;
  width: 60vw; max-width: 60vw; min-width: 0;
  margin: auto 0 clamp(24px, 3vw, 48px) var(--px);
  padding: clamp(18px, 1.8vw, 28px) clamp(20px, 2.4vw, 36px);
  display: flex; flex-direction: column;
  gap: 14px;
  background: linear-gradient(135deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.12) 100%);
  backdrop-filter: blur(2px);
  border-left: 2px solid var(--accent);
  align-self: flex-end;
}

/* Top row — eyebrow + small id */
.hero__top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.hero__id {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__id::before { content: "▲"; color: var(--accent); font-size: 8px; }

/* Middle row — headline + sub + actions */
.hero__mid { display: flex; flex-direction: column; gap: 14px; margin-top: clamp(28px, 3.5vw, 56px); }
.hero__actions { display: flex; gap: 12px; flex-wrap: nowrap; white-space: nowrap; margin-top: 4px; }

.btn--ghost-light {
  color: #fff; border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.04);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Gold rule separator */
.hero__rule { position: relative; height: 1px; background: rgba(255,255,255,.16); }
.hero__rule span {
  position: absolute; left: 0; top: -1px; height: 3px; width: 80px;
  background: var(--accent);
}

/* Bottom row — 4 stats */
.hero__bot {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; align-items: end;
}
.hero__stat .n {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(26px, 2.4vw, 40px); line-height: 1; letter-spacing: -.02em;
  color: #fff;
}
.hero__stat .l {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  opacity: .65; margin-top: 10px;
}
.hero__stat--accent .n { color: var(--accent); font-style: italic; font-weight: 900; }

/* Right rail */
.hero__rail {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 4;
  width: 72px; padding: 24px 0 32px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  pointer-events: none;
  border-left: 1px solid rgba(255,255,255,.08);
}
.hero__rail > * { pointer-events: auto; }
.hero__rail .tick,
.hero__rail .hero__reel,
.hero__rail .scroll-label {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__rail .hero__reel { color: var(--accent); }
.hero__rail .hero__reel svg { transform: rotate(180deg); }
.hero__rail .scroll-bar {
  width: 1px; height: 56px; background: rgba(255,255,255,.2);
  position: relative; overflow: hidden; margin-top: 14px;
}
.hero__rail .scroll-bar::after {
  content: ""; position: absolute; left: 0; top: -56px; width: 1px; height: 56px;
  background: var(--accent);
  animation: scrollCue 2.4s var(--ease) infinite;
}

@media (max-width: 1100px) {
  .hero__block { width: min(78vw, calc(100vw - 96px)); max-width: none; }
}
@media (max-width: 900px) {
  .hero__block { width: calc(100vw - 2 * var(--px)); padding: 32px 24px; }
  .hero__rail { display: none; }
  .hero__bot { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-wrap: wrap; white-space: normal; }
}

.hero__title { max-width: 22ch; }
.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 68px);
  line-height: 1.02; letter-spacing: -.025em;
  margin: 0;
  display: flex; flex-direction: column;
}
.hero__title > span { white-space: nowrap; }
@media (max-width: 640px) {
  .hero__title { font-size: clamp(30px, 7.5vw, 48px); }
  .hero__title > span { white-space: normal; }
}
.hero__title em { font-style: italic; color: var(--accent); font-weight: 900; }
.hero__sub { max-width: 68ch; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; opacity: .82; color: rgba(255,255,255,.92); }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  opacity: .8;
}
.scroll-cue .bar { width: 1px; height: 40px; background: currentColor; display: inline-block; position: relative; overflow: hidden; }
.scroll-cue .bar::after {
  content: ""; position: absolute; left: 0; top: -40px; width: 1px; height: 40px;
  background: var(--accent-2);
  animation: scrollCue 2.2s var(--ease) infinite;
}
@keyframes scrollCue { 0% { top: -40px } 70%,100% { top: 40px } }

/* -------- Buttons -------- */
/* ========= Unified button spice ========= */
.btn,
.hcta,
.svcs-band__cta,
.portfolio-stats__cta,
.project__cta,
.svc__cta,
.work-head__all {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .35s var(--ease),
              box-shadow .35s var(--ease);
}

/* Shine sweep — traverses L→R on hover */
.btn::after,
.hcta::after,
.svcs-band__cta::after,
.portfolio-stats__cta::after,
.project__cta::after,
.svc__cta::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-110%) skewX(-18deg);
  transition: transform .75s var(--ease);
  pointer-events: none;
}
.btn > *, .hcta > *, .svcs-band__cta > *,
.portfolio-stats__cta > *, .project__cta > *,
.svc__cta > *, .work-head__all > * {
  position: relative; z-index: 2;
}
.btn:hover::after,
.hcta:hover::after,
.svcs-band__cta:hover::after,
.portfolio-stats__cta:hover::after,
.project__cta:hover::after,
.svc__cta:hover::after {
  transform: translateX(110%) skewX(-18deg);
}

/* Force ink text on every yellow-bg button, all link states */
a.hcta, a.hcta:link, a.hcta:visited, .hcta,
a.portfolio-stats__cta, a.portfolio-stats__cta:link, a.portfolio-stats__cta:visited, .portfolio-stats__cta,
a.svcs-band__cta, a.svcs-band__cta:link, a.svcs-band__cta:visited, .svcs-band__cta,
.project__cta {
  color: var(--ink) !important;
}
a.hcta:hover, a.hcta:focus,
a.portfolio-stats__cta:hover, a.portfolio-stats__cta:focus,
a.svcs-band__cta:hover, a.svcs-band__cta:focus {
  color: var(--ink) !important;
}

/* Lift + shadow on primary CTAs */
.btn--accent:hover,
.hcta:hover,
.svcs-band__cta:hover,
.portfolio-stats__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(251,179,51,.55), 0 4px 10px -4px rgba(0,0,0,.25);
}
.btn--solid:hover,
.svc__cta:hover,
.filter button.is-active {
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.45);
}

/* Arrow slide (any button containing an SVG arrow) */
.btn svg, .hcta svg, .svcs-band__cta svg,
.portfolio-stats__cta svg, .project__cta svg,
.svc__cta svg, .work-head__all svg {
  transition: transform .35s var(--ease);
}
.btn:hover svg, .hcta:hover svg, .svcs-band__cta:hover svg,
.portfolio-stats__cta:hover svg, .project__cta:hover svg,
.svc__cta:hover svg, .work-head__all:hover svg {
  transform: translateX(5px);
}

/* Base .btn */
.btn {
  display: inline-flex; align-items: stretch; gap: 14px;
  padding: 16px 22px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.btn > :not(.btn__icon) { display: inline-flex; align-items: center; }

/* Icon cell — full-height divider via absolute pseudo */
.btn__icon {
  position: relative;
  display: grid; place-items: center;
  align-self: stretch;
  margin-left: auto;
  padding: 0 18px;
  transition: background .25s var(--ease);
}
.btn__icon::before {
  content: ""; position: absolute; left: 0; width: 1px;
  top: calc(var(--btn-py, 0px) * -1);
  bottom: calc(var(--btn-py, 0px) * -1);
  background: currentColor;
}
/* Per-button vertical padding vars so the divider reaches full height */
.btn               { --btn-py: 16px; }
.hcta              { --btn-py: 13px; }
.portfolio-stats__cta { --btn-py: 16px; }
.svcs-band__cta    { --btn-py: 16px; }
.svc__cta          { --btn-py: 14px; }
.project__cta      { --btn-py: 12px; }
.btn.has-icon,
.hcta.has-icon,
.svcs-band__cta.has-icon,
.portfolio-stats__cta.has-icon,
.project__cta.has-icon,
.svc__cta.has-icon,
.work-head__all.has-icon {
  padding-right: 0 !important;
  gap: 10px;
  align-items: stretch;
}
.btn.has-icon > :not(.btn__icon),
.hcta.has-icon > :not(.btn__icon),
.svcs-band__cta.has-icon > :not(.btn__icon),
.portfolio-stats__cta.has-icon > :not(.btn__icon),
.project__cta.has-icon > :not(.btn__icon),
.svc__cta.has-icon > :not(.btn__icon),
.work-head__all.has-icon > :not(.btn__icon) {
  display: inline-flex; align-items: center;
}
/* Ensure the label stays vertically centered when button is stretch */
.hcta__label { align-self: center; }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.btn:hover { background: rgba(255,255,255,.08); }

.btn--solid { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--solid:visited { color: var(--bone); }
.btn--solid:hover { background: #3a3a3a; border-color: #3a3a3a; color: var(--bone); }

a.btn--accent,
a.btn--accent:link,
a.btn--accent:visited,
.btn--accent { background: var(--accent); color: var(--ink) !important; border-color: var(--accent); }
.btn--accent:hover { background: #fcbe49; border-color: #fcbe49; color: var(--ink) !important; }
.btn--accent .dot { background: var(--ink); }

/* -------- Work head (spiced section intro) -------- */
.work-head {
  position: relative;
  padding-bottom: clamp(40px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 80px);
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.work-head__ghost {
  position: absolute; right: -2vw; top: -4vw; z-index: 0;
  font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: clamp(200px, 28vw, 420px); line-height: .8; letter-spacing: -.04em;
  color: rgba(0,0,0,.04);
  pointer-events: none; user-select: none;
}
.work-head__rail {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 20px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 36px;
}
.work-head__index { color: var(--ink); }
.work-head__line { flex: 1; height: 1px; background: rgba(0,0,0,.14); }
.work-head__latest { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.work-head__latest .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(251,179,51,.6);
  animation: statusPulse 2s ease-out infinite;
}
.work-head__body {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: end;
}
.work-head__title { margin: 0; }
.work-head__tags {
  margin-top: 22px;
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-2);
}
.work-head__tags .dash { width: 20px; height: 1px; background: var(--accent); display: inline-block; }
.work-head__tags > span:not(.dash) { position: relative; }
.work-head__tags > span:not(.dash)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--accent); transition: width .4s var(--ease);
}
.work-head__tags > span:not(.dash):hover::after { width: 100%; }

.work-head__desc { color: var(--mute); font-size: 15.5px; max-width: 50ch; margin: 0 0 28px; }
.work-head__meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.work-head__count { display: flex; align-items: baseline; gap: 12px; }
.work-head__count .n {
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(34px, 3.2vw, 48px); line-height: 1; letter-spacing: -.02em;
  color: var(--accent);
}
.work-head__count .n i { font-size: .6em; opacity: .7; }
.work-head__count .l {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mute); line-height: 1.4;
}
.work-head__all {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink);
}
.work-head__all svg { transition: transform .3s var(--ease); }
.work-head__all:hover svg { transform: translateX(6px); }
.work-head__all:hover { color: var(--accent); }

@media (max-width: 900px) {
  .work-head__body { grid-template-columns: 1fr; }
  .work-head__meta { grid-template-columns: 1fr 1fr; }
}

/* -------- Section intro -------- */
.sec-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: end;
  padding-bottom: clamp(32px, 3.5vw, 56px);
  border-bottom: 1px solid rgba(0,0,0,.14);
  margin-bottom: clamp(40px, 5vw, 80px);
}
.sec-head__lead { display: flex; flex-direction: column; gap: 18px; }
.sec-head__index { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; color: var(--mute); text-transform: uppercase; }
.sec-head__desc { max-width: 48ch; color: var(--mute); font-size: 15px; }

/* -------- Project grid (Asymmetric 12-col) -------- */
.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.project {
  position: relative;
  display: block;
  overflow: visible;
  background: transparent;
  isolation: isolate;
  color: var(--ink);
}
.project__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e5e0d4;
  border-radius: 2px;
}
.project__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
  filter: saturate(.82) brightness(.95);
}
.project:hover .project__img img { transform: scale(1.05); filter: saturate(1) brightness(.7); }

/* Corner brackets — draw in on hover */
.project__img::before, .project__img::after {
  content: ""; position: absolute; pointer-events: none; z-index: 3;
  width: 24px; height: 24px;
  border-width: 0;
  border-style: solid;
  border-color: var(--accent);
  opacity: 0; transition: opacity .4s var(--ease), inset .4s var(--ease);
}
.project__img::before { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.project__img::after  { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.project:hover .project__img::before { opacity: 1; top: 10px; left: 10px; }
.project:hover .project__img::after  { opacity: 1; bottom: 10px; right: 10px; }

/* Hover overlay — dark gradient + CTA */
.project__img::after { /* second role — see reveal block */ }
.project__cta {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 0;
  background: var(--accent); color: var(--ink);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0; transform: translate(-50%, -50%) scale(.94);
  transition: opacity .35s var(--ease), transform .4s var(--ease);
}
.project:hover .project__cta { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.project__img { position: relative; }
.project__img::before, .project__img::after { z-index: 5; }

.project__meta {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: baseline;
  padding: 20px 2px 4px;
}
.project__detail {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.1);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mute);
}
.project__detail .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.project__detail .type { color: var(--ink); }
.project__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.15; letter-spacing: -.01em;
  margin: 0;
}
.project__loc { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
/* Archive / true dark-grey duotone tile */
.project__img--duotone {
  background-color: #222;
  background-size: cover; background-position: center;
  background-blend-mode: overlay;
  aspect-ratio: 4/3;
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.archive__body {
  position: relative; z-index: 2;
  text-align: center; padding: 40px;
  color: var(--bone);
}
.archive__title {
  color: var(--bone) !important;
  margin-top: 14px;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1; letter-spacing: -.01em;
}
.archive__title em { font-style: italic; color: var(--accent); font-weight: 900; }
.project--archive:hover .project__img--duotone::before { filter: grayscale(1) contrast(1.1) brightness(.6); }

/* Huge italic numeral in card */
.project__num {
  position: absolute; top: 22px; right: 28px; z-index: 2;
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(48px, 5vw, 84px); line-height: 1;
  color: rgba(255,255,255,.18);
  letter-spacing: -.04em;
  mix-blend-mode: screen;
  transition: color .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.project:hover .project__num { color: var(--accent); transform: translateY(-4px); }

.project__tag {
  position: absolute; top: 24px; left: 24px; z-index: 2;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: #fff; padding: 5px 10px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.22); backdrop-filter: blur(6px);
  border-radius: 999px;
}

/* Size variants on a 12-col track */
.project.-wide    { grid-column: span 8; }
.project.-half    { grid-column: span 6; }
.project.-third   { grid-column: span 4; }
.project.-tall    { grid-column: span 4; }
.project.-tall .project__img { aspect-ratio: 3/4; }
.project.-wide .project__img { aspect-ratio: 16/9; }
.project.-portrait .project__img { aspect-ratio: 4/5; }

@media (max-width: 900px) {
  .projects { grid-template-columns: repeat(6, 1fr); }
  .project.-wide, .project.-half, .project.-third, .project.-tall { grid-column: span 6; }
  .project.-half-m { grid-column: span 3; }
}

/* Filter bar */
.filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 40px;
  padding: 8px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: 100%;
}
.filter button {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  padding: 10px 18px; border: 0; border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease);
  color: var(--mute);
  position: relative;
}
.filter button:hover { color: var(--ink); background: rgba(0,0,0,.05); }
.filter button.is-active { background: var(--ink); color: var(--bone); }
.filter button.is-active::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); display: inline-block; margin-right: 10px; vertical-align: middle;
}

/* Portfolio stats band */
.portfolio-stats {
  margin-top: clamp(48px, 6vw, 96px);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px);
  background: var(--ink); color: var(--bone);
  border-radius: 2px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
  position: relative;
  overflow: hidden;
}
.portfolio-stats::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
}
.portfolio-stats__item { display: flex; flex-direction: column; gap: 10px; }
.portfolio-stats__item .n {
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(34px, 3.6vw, 56px); line-height: 1; letter-spacing: -.02em;
  color: var(--accent);
}
.portfolio-stats__item .l {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.portfolio-stats__cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px;
  background: var(--accent); color: var(--ink);
  border-radius: 0;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  transition: background .25s var(--ease);
  align-self: center;
}
.portfolio-stats__cta:hover { background: #fcbe49; }
.portfolio-stats__cta svg { transition: transform .3s var(--ease); }
.portfolio-stats__cta:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .portfolio-stats { grid-template-columns: 1fr 1fr; }
  .portfolio-stats__cta { grid-column: 1 / -1; justify-self: start; }
}

/* -------- Services (revamp) -------- */
.services-sec { position: relative; }
.services-sec__ghost {
  position: absolute; left: -1vw; top: 8vw; z-index: 0;
  font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: clamp(220px, 32vw, 520px); line-height: .8; letter-spacing: -.04em;
  color: rgba(0,0,0,.035);
  pointer-events: none; user-select: none;
}

.svcs {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 0;
  margin-top: clamp(40px, 5vw, 80px);
}
.svc {
  position: relative;
  display: grid; grid-template-columns: 44% 1fr;
  gap: clamp(32px, 4vw, 72px);
  padding: clamp(40px, 5vw, 72px) 0;
  border-top: 1px solid rgba(0,0,0,.12);
  align-items: center;
}
.svc:last-child { border-bottom: 1px solid rgba(0,0,0,.12); }
.svc--alt { grid-template-columns: 1fr 44%; }
.svc--alt .svc__media { order: 2; }

.svc__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bone-2);
}
.svc__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85);
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
}
.svc:hover .svc__media img { transform: scale(1.04); filter: saturate(1); }
.svc__media::before, .svc__media::after {
  content: ""; position: absolute; pointer-events: none; z-index: 2;
  width: 22px; height: 22px; border: 2px solid var(--accent);
  opacity: 0; transition: opacity .4s var(--ease), inset .4s var(--ease);
}
.svc__media::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.svc__media::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.svc:hover .svc__media::before { opacity: 1; top: 10px; left: 10px; }
.svc:hover .svc__media::after  { opacity: 1; bottom: 10px; right: 10px; }

.svc__num {
  position: absolute; top: 18px; right: 22px; z-index: 3;
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(54px, 5.2vw, 96px); line-height: 1; letter-spacing: -.04em;
  color: var(--bone); mix-blend-mode: overlay;
}
.svc:hover .svc__num { color: var(--accent); mix-blend-mode: normal; }

.svc__body { display: flex; flex-direction: column; gap: 18px; max-width: 54ch; }
.svc__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); width: fit-content;
}
.svc__tag::before {
  content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block;
}
.svc__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(32px, 3.8vw, 58px); line-height: 1; letter-spacing: -.02em;
  margin: 0;
}
.svc__title em { font-style: italic; color: var(--accent); font-weight: 900; }
.svc__desc { color: var(--mute); font-size: 15.5px; line-height: 1.6; margin: 0; max-width: 52ch; }
.svc__list {
  list-style: none; padding: 0; margin: 4px 0 4px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.svc__list li {
  position: relative; padding-left: 20px;
  font-family: var(--f-body); font-size: 14px; color: var(--ink-2);
}
.svc__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 10px; height: 1px; background: var(--accent);
}
.svc__cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 10px; padding: 14px 20px;
  border: 1px solid var(--ink); border-radius: 0;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); width: fit-content;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.svc__cta:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.svc__cta svg { transition: transform .3s var(--ease); }
.svc__cta:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .svc, .svc--alt { grid-template-columns: 1fr; }
  .svc--alt .svc__media { order: 0; }
  .svc__list { grid-template-columns: 1fr; }
}

/* Services footer band */
.svcs-band {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(32px, 3.6vw, 48px) clamp(24px, 3vw, 48px);
  background: var(--ink); color: var(--bone);
  display: grid; grid-template-columns: 1fr auto auto;
  gap: clamp(24px, 3vw, 48px); align-items: center;
  position: relative; overflow: hidden;
  border-radius: 2px;
}
.svcs-band::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
}
.svcs-band__eyebrow {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55); display: block; margin-bottom: 10px;
}
.svcs-band__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.02em;
  margin: 0; color: var(--bone);
}
.svcs-band__title em { font-style: italic; color: var(--accent); font-weight: 900; }
.svcs-band__ops { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.svcs-band__op { display: flex; flex-direction: column; gap: 6px; }
.svcs-band__op .n {
  font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; color: var(--accent); line-height: 1;
}
.svcs-band__op .l {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.svcs-band__cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px; border-radius: 0;
  background: var(--accent); color: var(--ink);
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: background .25s var(--ease);
}
.svcs-band__cta:hover { background: #fcbe49; }
.svcs-band__cta svg { transition: transform .3s var(--ease); }
.svcs-band__cta:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .svcs-band { grid-template-columns: 1fr; align-items: start; }
  .svcs-band__cta { justify-self: start; }
}

/* -------- Process timeline -------- */
.process-sec { position: relative; }
.process-sec__ghost {
  position: absolute; right: -1vw; top: 6vw; z-index: 0;
  font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: clamp(220px, 32vw, 520px); line-height: .8; letter-spacing: -.04em;
  color: rgba(0,0,0,.035);
  pointer-events: none; user-select: none;
}

/* Phases — editorial grid (Swiss) */
.timeline {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 5vw, 88px);
  border-top: 1px solid rgba(0,0,0,.14);
  border-left: 1px solid rgba(0,0,0,.14);
  background: var(--bone);
}
.timeline__rail, .timeline__progress { display: none; }

.phase {
  position: relative; z-index: 1;
  border-right: 1px solid rgba(0,0,0,.14);
  border-bottom: 1px solid rgba(0,0,0,.14);
  padding: clamp(24px, 2.4vw, 36px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  background: var(--bone);
  transition: background .3s var(--ease);
  overflow: hidden;
}
.phase:hover { background: #ede8de; }

.phase__ghost {
  position: absolute; top: -14px; right: -12px; z-index: 0;
  font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: clamp(160px, 14vw, 260px); line-height: .8; letter-spacing: -.05em;
  color: rgba(0,0,0,.05);
  pointer-events: none; user-select: none;
  transition: color .4s var(--ease);
}
.phase:hover .phase__ghost { color: rgba(251,179,51,.18); }

.phase__head {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.phase__node {
  width: 64px; height: 64px; border-radius: 0;
  background: var(--ink); color: var(--accent);
  display: grid; place-items: center;
  position: relative;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.phase:hover .phase__node { background: var(--accent); color: var(--ink); }

.phase__meta {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.phase__badge {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 10px;
  background: var(--ink); color: var(--bone);
}
.phase__dur {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 8px;
}
.phase__dur::before {
  content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block;
}

.phase__title {
  position: relative; z-index: 1;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(26px, 2.2vw, 34px); line-height: 1.04; letter-spacing: -.02em;
  margin: 0;
}
.phase__title em { font-style: italic; color: var(--accent); font-weight: 900; }

.phase__desc {
  position: relative; z-index: 1;
  color: var(--mute); font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 40ch;
}

.phase__list {
  list-style: none; padding: 18px 0 0; margin: 0;
  border-top: 1px solid rgba(0,0,0,.12);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
  position: relative; z-index: 1;
}
.phase__list li {
  display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.phase__list li .k {
  font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: 14px; color: var(--accent);
  letter-spacing: -.01em;
}
.phase__list li:hover { color: var(--ink); }
.phase__list li:hover .k { color: var(--ink); }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
  .phase__list { grid-template-columns: 1fr; }
  .phase__ghost { font-size: 140px; }
}

/* -------- Services (legacy — kept for Process section) -------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid rgba(0,0,0,.14);
}
.service {
  padding: 40px 32px 36px 0;
  border-right: 1px solid rgba(0,0,0,.14);
  border-bottom: 1px solid rgba(0,0,0,.14);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: background .4s var(--ease);
}
.service:nth-child(3n) { border-right: 0; padding-right: 0; }
.service:hover { background: rgba(0,0,0,.03); }
.service__n { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; color: var(--mute); }
.service__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(22px, 1.9vw, 30px); line-height: 1.08; letter-spacing: -.015em;
  margin: 8px 0 0;
}
.service__desc { color: var(--mute); font-size: 14.5px; max-width: 38ch; }
.service__link { margin-top: auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.service__link::after { content: " →"; color: var(--accent); }

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; padding-right: 0; }
}

/* -------- About / Split -------- */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.split__fig {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.14);
}
.split__fig img { width: 100%; height: 100%; object-fit: cover; }
.split__fig::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.5);
  pointer-events: none; z-index: 2;
}
.split__body p { font-size: 17px; color: var(--ink-2); max-width: 52ch; }
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(0,0,0,.14); padding-top: 32px;
}
.stat .n { font-family: var(--f-display); font-weight: 900; font-size: clamp(32px, 3vw, 48px); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* -------- CTA band — dark #222 duotone image -------- */
.cta {
  color: var(--bone);
  padding: clamp(80px, 10vw, 140px) var(--px);
  position: relative; overflow: hidden;
  background-color: #222;
  background-image: url('../images/hero.jpg');
  background-size: cover; background-position: center;
  background-blend-mode: overlay;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: #222;
  opacity: .5;
}
.cta > * { position: relative; z-index: 1; }
.cta__inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end;
  position: relative; z-index: 1;
}
.cta h2 {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(36px, 5vw, 80px); line-height: .98; letter-spacing: -.025em; margin: 0;
}
.cta h2 em { font-style: italic; font-weight: 900; }
.cta p { color: rgba(255,255,255,.7); max-width: 40ch; }
.cta__grid {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: repeat(12, 1fr);
  pointer-events: none; opacity: .08;
}
.cta__grid span { border-right: 1px solid #fff; }
.cta__grid span:last-child { border-right: 0; }

/* -------- Footer -------- */
.site-footer {
  background: #222;
  color: var(--bone);
  padding: 72px var(--px) 32px;
  border-top: 4px solid var(--accent);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand-col { grid-column: 1; grid-row: 1 / 3; }
.footer__news { grid-column: 2 / 4; grid-row: 1; }
.footer__col:nth-of-type(1) { grid-column: 2; grid-row: 2; }
.footer__col:nth-of-type(2) { grid-column: 3; grid-row: 2; }

/* Newsletter card */
.footer__news {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.footer__news__head { display: flex; flex-direction: column; gap: 10px; }
.footer__news__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(24px, 2vw, 32px); line-height: 1.1; letter-spacing: -.015em;
  margin: 0; color: var(--bone); white-space: nowrap;
}
.footer__news__title em { font-style: italic; color: var(--accent); font-weight: 900; }
.footer__news__copy {
  margin: 8px 0 0;
  font-size: 13.5px; line-height: 1.55;
  color: rgba(255,255,255,.65);
  max-width: 52ch;
}

.footer__news__field {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center; gap: 12px;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.footer__news__field:focus-within { border-color: var(--accent); background: rgba(255,255,255,.06); }
.footer__news__field svg { color: rgba(255,255,255,.55); }
.footer__news__field input {
  background: transparent; border: 0; outline: 0;
  color: var(--bone); font: 400 14px/1 var(--f-body);
  padding: 12px 0;
}
.footer__news__field input::placeholder { color: rgba(255,255,255,.35); }
.footer__news__field button {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--accent); color: var(--ink);
  transition: background .25s var(--ease), transform .3s var(--ease);
  cursor: pointer;
}
.footer__news__field button:hover { background: #fcbe49; }
.footer__news__field button:hover svg { transform: translateX(3px); }
.footer__news__field button svg { transition: transform .3s var(--ease); }

.footer__news__msg {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  transition: color .25s var(--ease);
}
.footer__news__msg.is-ok { color: var(--accent); }
.footer__news__msg.is-ok::before { content: "✓ Subscribed — "; }
.footer__logo-sep {
  height: 1px;
  background: rgba(255,255,255,.15);
  margin: 24px 0;
  max-width: 420px;
}
.footer__rule {
  height: 1px; background: rgba(255,255,255,.15);
  margin: 28px 0 24px; max-width: 420px;
  position: relative;
}
.footer__rule::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 80px;
  background: var(--accent);
  transform: translateY(-1px);
}
.footer__contact {
  list-style: none; padding: 0; margin: 0;
  max-width: 460px;
}
.footer__contact li {
  display: grid;
  grid-template-columns: 22px 72px 1fr;
  align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: padding .3s var(--ease);
}
.footer__contact li:last-child { border-bottom: 0; }
.footer__contact li:hover { padding-left: 6px; }
.footer__contact-ico {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  color: var(--accent);
}
.footer__contact-lbl {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.footer__contact-val {
  font-family: var(--f-body);
  font-size: 14px; color: var(--bone);
  transition: color .25s var(--ease);
}
a.footer__contact-val:hover { color: var(--accent); }
.footer__contact-status {
  margin-top: 4px;
  padding: 14px 0 0 !important;
  border-top: 1px dashed rgba(255,255,255,.15);
}
.footer__contact-status .footer__contact-val {
  grid-column: 2 / -1;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.footer__status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(251,179,51,.7);
  animation: statusPulse 2s ease-out infinite;
  justify-self: center;
}
.footer__brand {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -.015em;
  margin: 0; color: var(--bone);
}
.footer__brand em { font-style: italic; color: var(--accent); font-weight: 900; }
.footer__col h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); margin: 0 0 18px; font-weight: 500; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--accent); }

.footer__social {
  display: flex !important; flex-direction: row !important;
  flex-wrap: wrap; gap: 10px;
}
.footer__social li { list-style: none; }
.footer__social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.65);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease);
}
.footer__social a:hover {
  background: var(--accent); color: var(--ink); border-color: var(--accent);
  transform: translateY(-2px);
}
.footer__social a span { display: none; }
.footer__bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5);
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .hero__footer { grid-template-columns: 1fr 1fr; }
  .hero__content { grid-template-columns: 1fr; }
}

/* ========= Shared page hero (Work / Services / Process / About) ========= */
.page-hero {
  position: relative;
  min-height: 56vh;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 56px;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.page-hero__media { width: 100%; height: 100%; }
.page-hero__media {
  position: absolute; inset: 0; z-index: 0;
  background: #222 center/cover no-repeat;
}
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.75) 100%);
}
.page-hero__body { position: relative; z-index: 1; width: 100%; }
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: #fff; margin-bottom: 22px;
}
.page-hero__eyebrow::before { content:""; width:28px; height:1px; background: var(--accent); display:inline-block; }
.page-hero__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(44px, 7vw, 108px); line-height: .98; letter-spacing: -.025em;
  margin: 0; color: #fff; max-width: 22ch;
  text-shadow: 0 2px 22px rgba(0,0,0,.4), 0 1px 4px rgba(0,0,0,.3);
}
.page-hero__title em { font-style: italic; color: var(--accent); font-weight: 900; }

/* Work intro block */
.work-intro {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}
.work-intro__copy p { font-size: 17px; color: var(--ink-2); line-height: 1.7; margin: 0 0 18px; max-width: 56ch; }
@media (max-width: 900px) { .work-intro { grid-template-columns: 1fr; } }

/* Work stats band */
.work-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px);
  background: var(--ink); color: var(--bone);
  border-radius: 2px; position: relative; overflow: hidden;
}
.work-stats::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--accent); }
.work-stats__item { display: flex; flex-direction: column; gap: 8px; }
.work-stats__item .n {
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(32px, 3.4vw, 52px); line-height: 1; letter-spacing: -.02em;
  color: var(--accent);
}
.work-stats__item .n i { font-size: .6em; opacity: .7; }
.work-stats__item .l {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
@media (max-width: 700px) { .work-stats { grid-template-columns: 1fr 1fr; } }

/* Hero blur-in (direct loads of project pages) */
@keyframes heroBlurIn {
  from { opacity: 0; filter: blur(12px); }
  to   { opacity: 1; filter: blur(0); }
}
body[data-page="project"] .proj-hero__eyebrow,
body[data-page="project"] .proj-hero__title,
body[data-page="project"] .proj-hero__meta > *,
body[data-page="project"] .proj-hero__num,
body[data-page="project"] .proj-hero__back {
  animation: heroBlurIn 1.4s cubic-bezier(.16,1,.3,1) both;
}
body[data-page="project"] .proj-hero__eyebrow                  { animation-delay: .00s; }
body[data-page="project"] .proj-hero__title                    { animation-delay: .12s; }
body[data-page="project"] .proj-hero__meta > *:nth-child(1)    { animation-delay: .32s; }
body[data-page="project"] .proj-hero__meta > *:nth-child(2)    { animation-delay: .40s; }
body[data-page="project"] .proj-hero__meta > *:nth-child(3)    { animation-delay: .48s; }
body[data-page="project"] .proj-hero__meta > *:nth-child(4)    { animation-delay: .56s; }
body[data-page="project"] .proj-hero__num                      { animation-delay: .60s; }
body[data-page="project"] .proj-hero__back                     { animation-delay: .70s; }

/* ========= Project detail page ========= */
.proj-hero {
  position: relative;
  height: 92vh;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 56px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.proj-hero__body { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.proj-hero__media {
  position: absolute; inset: 0; z-index: 0;
  background: #222 center/cover no-repeat;
}
.proj-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.75) 100%);
}
.proj-hero__body { position: relative; z-index: 1; width: 100%; }
.proj-hero__rail {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: clamp(40px, 6vw, 96px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
/* Float the Nº counter to the bottom-right of the hero */
.proj-hero .proj-hero__num {
  position: absolute;
  right: var(--px);
  bottom: clamp(24px, 3vw, 48px);
  z-index: 2;
  color: rgba(255,255,255,.75);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.proj-hero__back {
  position: fixed; top: calc(var(--header-h) + 20px); left: var(--px);
  z-index: 55;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--accent) !important;
  color: #111 !important;
  border: 1px solid var(--accent);
  font-family: var(--f-mono); font-weight: 600;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 10px 28px -12px rgba(0,0,0,.35);
  transition: top .3s var(--ease), padding .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.proj-hero__back, .proj-hero__back * { color: #111 !important; text-shadow: none !important; }
.proj-hero__back svg { stroke: #111 !important; }
.proj-hero__back:hover { background: #fcbe49; transform: translateX(-3px); }
.proj-hero__back svg { transition: transform .3s var(--ease); }
.proj-hero__back:hover svg { transform: translateX(-3px); }
.site-header.is-solid ~ main .proj-hero__back,
body.has-solid-header .proj-hero__back { top: 84px; }
@media (max-width: 900px) { .proj-hero__back { padding: 10px 14px; } }
.proj-hero__num { color: rgba(255,255,255,.75); }
.proj-hero__title { max-width: 20ch; margin-bottom: clamp(32px, 4vw, 64px); }
.proj-hero__body,
.proj-hero .proj-hero__num {
  text-shadow: 0 2px 16px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.25);
}
.proj-hero__title .h-display { text-shadow: 0 2px 22px rgba(0,0,0,.4), 0 1px 4px rgba(0,0,0,.3); }
.proj-hero__title .h-display {
  font-size: clamp(44px, 6vw, 92px);
  color: #fff;
  margin-top: 14px;
}
.proj-hero__title .eyebrow { color: #fff; }
.proj-hero__meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.proj-hero__stat { display: flex; flex-direction: column; gap: 6px; }
.proj-hero__stat .l {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.proj-hero__stat .n {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(18px, 1.6vw, 24px); line-height: 1.1; letter-spacing: -.01em;
  color: #fff;
}
@media (max-width: 900px) {
  .proj-hero__meta { grid-template-columns: 1fr 1fr; }
}

/* Body grid */
.proj__body {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}
.proj__body__l .eyebrow { color: var(--ink); }
.proj__body__l .h-section { margin-top: 18px; }
.proj__body__r p { font-size: 17px; color: var(--ink-2); line-height: 1.6; margin: 0 0 18px; max-width: 56ch; }
@media (max-width: 900px) { .proj__body { grid-template-columns: 1fr; } }

.proj__gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gutter);
}
.proj__gi { margin: 0; grid-column: span 3; aspect-ratio: 4/3; overflow: hidden; background: #222; }
.proj__gi:nth-child(5n+1) { grid-column: span 4; }
.proj__gi:nth-child(5n+2) { grid-column: span 2; }
.proj__gi:nth-child(5n+3) { grid-column: span 2; aspect-ratio: 3/4; }
.proj__gi:nth-child(5n+4) { grid-column: span 4; }
.proj__gi img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.proj__gi:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
  .proj__gallery { grid-template-columns: 1fr 1fr; }
  .proj__gi, .proj__gi:nth-child(5n+1), .proj__gi:nth-child(5n+2), .proj__gi:nth-child(5n+3), .proj__gi:nth-child(5n+4) { grid-column: span 1; aspect-ratio: 4/3; }
}

/* Shared-element transition flyer */
.flyer {
  position: fixed; z-index: 9998;
  background: #222 center/cover no-repeat;
  pointer-events: none;
  will-change: top, left, width, height;
  transition: top 2s cubic-bezier(.16,1,.3,1),
              left 2s cubic-bezier(.16,1,.3,1),
              width 2s cubic-bezier(.16,1,.3,1),
              height 2s cubic-bezier(.16,1,.3,1);
}

.flyer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
  transition: background .8s cubic-bezier(.7,.02,.2,1);
}
.flyer.is-expanded::after {
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.75) 100%);
}
body.is-navigating { overflow: hidden; }
.page-swap { visibility: hidden; }

/* Heading scroll-blur */
.h-blur {
  filter: blur(12px);
  transition: filter 1.6s cubic-bezier(.2,.8,.2,1);
  will-change: filter;
}
.h-blur--in { filter: blur(0); }

/* -------- Reveal system -------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-2), transform .9s var(--ease-2); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-2), transform .8s var(--ease-2); }
[data-reveal-stagger].in > * { opacity: 1; transform: none; }
[data-reveal-stagger].in > *:nth-child(1) { transition-delay: .02s }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: .09s }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: .16s }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: .23s }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: .30s }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: .37s }
[data-reveal-stagger].in > *:nth-child(7) { transition-delay: .44s }
[data-reveal-stagger].in > *:nth-child(8) { transition-delay: .51s }

/* -------- AJAX Page Transitions -------- */
.transition-overlay {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.transition-overlay span {
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .7s var(--ease);
}
.transition-overlay.is-covering span {
  transform: scaleY(1); transform-origin: bottom;
}
.transition-overlay.is-revealing span {
  transform: scaleY(0); transform-origin: top;
}
.transition-overlay.is-covering span:nth-child(1) { transition-delay: .00s }
.transition-overlay.is-covering span:nth-child(2) { transition-delay: .05s }
.transition-overlay.is-covering span:nth-child(3) { transition-delay: .10s }
.transition-overlay.is-covering span:nth-child(4) { transition-delay: .15s }
.transition-overlay.is-covering span:nth-child(5) { transition-delay: .20s }
.transition-overlay.is-covering span:nth-child(6) { transition-delay: .25s }
.transition-overlay.is-revealing span:nth-child(1) { transition-delay: .25s }
.transition-overlay.is-revealing span:nth-child(2) { transition-delay: .20s }
.transition-overlay.is-revealing span:nth-child(3) { transition-delay: .15s }
.transition-overlay.is-revealing span:nth-child(4) { transition-delay: .10s }
.transition-overlay.is-revealing span:nth-child(5) { transition-delay: .05s }
.transition-overlay.is-revealing span:nth-child(6) { transition-delay: .00s }

/* AJAX project overlay (inline load, no page change) */
.proj-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bone);
  transform: translateY(100%);
  transition: transform .7s var(--ease);
  overflow-y: auto;
  padding: 40px var(--px) 80px;
}
.proj-overlay.is-open { transform: translateY(0); }
.proj-overlay__close {
  position: sticky; top: 0; margin-left: auto;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  background: var(--bone);
}

/* Loader — first paint */
.preloader {
  position: fixed; inset: 0; z-index: 50;
  background: var(--ink); color: var(--bone);
  display: grid; place-items: center;
  transition: opacity .6s .2s var(--ease), visibility 0s .8s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(24px, 3.2vw, 42px); letter-spacing: -.015em;
  display: inline-flex; align-items: center; gap: 18px; color: var(--bone);
}
.preloader__mark em { font-style: italic; color: var(--accent); font-weight: 900; }
.preloader__bar {
  width: 180px; height: 1px; background: rgba(255,255,255,.2); position: relative; overflow: hidden;
}
.preloader__bar::after {
  content: ""; position: absolute; inset: 0; background: var(--bone);
  transform: scaleX(0); transform-origin: left;
  animation: loadBar 1.1s var(--ease) forwards;
}
@keyframes loadBar { to { transform: scaleX(1); } }

/* Marquee — single clean line on dark */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  background: var(--ink); color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 36px;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .w {
  font-family: var(--f-display); font-weight: 400; font-style: italic;
  font-size: clamp(24px, 3vw, 42px); letter-spacing: -.01em;
  color: #fff;
}
.marquee .star {
  color: var(--accent); font-size: 14px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================
   MOBILE OPTIMIZATION — consolidated at end for high cascade
   ========================================================== */
@media (max-width: 900px) {
  :root { --px: 20px; --header-h: 84px; }

  /* ---------- Header: logo + CTA only (hide nav/search/socials) ---------- */
  .site-header { grid-template-columns: auto 1fr auto auto; column-gap: 10px; align-items: center; }
  .site-header > .brand { grid-column: 1; }
  .site-header > .hcta   { grid-column: 3; }
  .site-header > .hburger { grid-column: 4; }
  .nav, .hsearch, .hsocials { display: none !important; }
  .site-header.is-solid { height: 60px; }
  .brand, .brand img { height: 48px; }
  .site-header.is-solid .brand, .site-header.is-solid .brand img { height: 38px; }
  .hcta { padding: 10px 14px; font-size: 10px; letter-spacing: .18em; }
  .hcta .btn__icon { padding: 0 12px; }

  /* ---------- Hero (home) ---------- */
  .hero { min-height: calc(100vh - var(--header-h)); }
  .hero__block { width: calc(100vw - 2 * var(--px)); margin: auto 0 20px var(--px); padding: 18px 20px; gap: 12px; }
  .hero__top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero__id { font-size: 9px; }
  .hero__title { font-size: clamp(32px, 9vw, 52px) !important; }
  .hero__title > span { white-space: normal !important; }
  .hero__sub { font-size: 14px; line-height: 1.5; }
  .hero__actions { flex-wrap: wrap; white-space: normal; gap: 10px; }
  .hero__actions .btn { padding: 12px 16px; font-size: 10px; letter-spacing: .18em; }
  .hero__frame-lines { inset: 12px; }

  /* ---------- Marquee ---------- */
  .marquee { padding: 18px 0; }
  .marquee .w { font-size: clamp(20px, 6vw, 32px) !important; }
  .marquee__track { gap: 24px; }

  /* ---------- Section headers ---------- */
  .section { padding-top: clamp(48px, 8vw, 80px); padding-bottom: clamp(48px, 8vw, 80px); }
  .h-section { font-size: clamp(26px, 7vw, 40px) !important; }
  .h-display  { font-size: clamp(32px, 9vw, 56px) !important; }
  .work-head { padding-bottom: 32px; margin-bottom: 32px; }
  .work-head__body { grid-template-columns: 1fr !important; gap: 20px; }
  .work-head__ghost, .services-sec__ghost, .process-sec__ghost { font-size: clamp(140px, 40vw, 220px) !important; }
  .work-head__rail { flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
  .work-head__line { display: none; }
  .work-head__meta { grid-template-columns: 1fr 1fr !important; gap: 16px; }
  .work-head__count { flex-direction: column; align-items: flex-start; gap: 2px; }

  /* ---------- Portfolio grid ---------- */
  .projects { grid-template-columns: 1fr !important; gap: 20px !important; }
  .project.-wide, .project.-half, .project.-third, .project.-tall, .project.-portrait, .project.-half-m { grid-column: 1 / -1 !important; }
  .project__img, .project.-wide .project__img, .project.-tall .project__img, .project.-portrait .project__img { aspect-ratio: 4/3 !important; }
  .project__num { font-size: 48px !important; top: 14px; right: 16px; }
  .project__tag { top: 14px; left: 14px; }
  .filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
    padding: 6px;
    border-radius: 999px;
    gap: 6px;
    justify-content: flex-start;
  }
  .filter::-webkit-scrollbar { display: none; }
  .filter button {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px 16px;
    font-size: 10.5px;
    letter-spacing: .18em;
    white-space: nowrap;
  }
  .filter button.is-active::before { width: 4px; height: 4px; margin-right: 6px; }

  /* ---------- Services ---------- */
  .svc, .svc--alt { grid-template-columns: 1fr !important; gap: 20px; padding: 32px 0; }
  .svc--alt .svc__media { order: 0; }
  .svc__list { grid-template-columns: 1fr !important; }
  .svc__title { font-size: clamp(24px, 7vw, 32px) !important; }
  .svcs-band { grid-template-columns: 1fr !important; padding: 24px 20px; }
  .svcs-band__ops { flex-wrap: wrap; }
  .svcs-band__cta { justify-self: start; }

  /* ---------- Process / Timeline ---------- */
  .timeline { grid-template-columns: 1fr !important; }
  .phase { padding: 24px 20px; }
  .phase__list { grid-template-columns: 1fr !important; }
  .phase__title { font-size: clamp(22px, 6vw, 30px) !important; }
  .phase__ghost { font-size: 120px !important; top: -4px; right: 4px; }
  .phase__head { height: 64px; margin-top: 0; }
  .phase__node { width: 54px; height: 54px; }

  /* ---------- About / Split ---------- */
  .split { grid-template-columns: 1fr !important; gap: 24px; }
  .stat-row { grid-template-columns: repeat(3, 1fr) !important; gap: 12px; }
  .stat .n { font-size: clamp(26px, 7vw, 36px) !important; }

  /* ---------- CTA ---------- */
  .cta { padding: 64px var(--px); }
  .cta__inner { grid-template-columns: 1fr !important; gap: 24px; }
  .cta h2 { font-size: clamp(32px, 9vw, 52px) !important; }

  /* ---------- Footer ---------- */
  .site-footer { padding: 48px var(--px) 24px; }
  .footer__top { grid-template-columns: 1fr !important; gap: 28px; }
  .footer__brand-col { grid-column: 1 !important; grid-row: auto !important; }
  .footer__news { grid-column: 1 !important; grid-row: auto !important; padding: 18px; }
  .footer__news__title { font-size: clamp(18px, 5vw, 22px) !important; }
  .footer__col:nth-of-type(1), .footer__col:nth-of-type(2) { grid-column: 1 !important; grid-row: auto !important; }
  .footer__contact li { grid-template-columns: 20px 64px 1fr; gap: 10px; padding: 12px 0; }
  .footer__bot { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* ---------- Page hero (Work/Services/Process/About) ---------- */
  .page-hero { min-height: 44vh; padding-bottom: 36px; }
  .page-hero__title { font-size: clamp(32px, 9vw, 56px); }

  /* ---------- Project detail page ---------- */
  .proj-hero { height: 78vh; padding-bottom: 32px; padding-top: calc(var(--header-h) + 24px); }
  .proj-hero__meta { grid-template-columns: 1fr 1fr !important; gap: 16px; padding-top: 16px; }
  .proj-hero__title .h-display { font-size: clamp(34px, 9vw, 60px); }
  .proj-hero__rail { margin-bottom: 24px; }
  .proj-hero .proj-hero__num { font-size: 10px; bottom: 16px; right: var(--px); }
  .proj-hero__back { top: calc(var(--header-h) + 10px); padding: 8px 12px; font-size: 10px; letter-spacing: .18em; }
  .proj__body { grid-template-columns: 1fr !important; gap: 24px; }
  .proj__gallery { grid-template-columns: 1fr 1fr !important; }
  .proj__gi, .proj__gi:nth-child(5n+1), .proj__gi:nth-child(5n+2), .proj__gi:nth-child(5n+3), .proj__gi:nth-child(5n+4) { grid-column: span 1 !important; aspect-ratio: 4/3 !important; }

  /* ---------- Search overlay (if triggered) ---------- */
  .hsearch__menu { min-width: calc(100vw - 40px); max-width: calc(100vw - 40px); }
}

@media (max-width: 480px) {
  .proj-hero__meta { grid-template-columns: 1fr !important; }
  .proj__gallery { grid-template-columns: 1fr !important; }
  .svcs-band__ops { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__footer { grid-template-columns: 1fr !important; gap: 20px; }
}


/* ==========================================================
   MOBILE MENU (hamburger + fullscreen overlay)
   ========================================================== */
.hburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  position: relative;
  padding: 0;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.hburger span {
  display: block; width: 18px; height: 1.5px;
  background: #fff;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.hburger.is-active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hburger.is-active span:nth-child(2) { opacity: 0; }
.hburger.is-active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: #111;
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.22,1,.26,1);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) 20px 32px;
  overflow-y: auto;
  pointer-events: none;
  color: #fff;
}
.mobile-menu.is-open { transform: none; pointer-events: auto; }
.mobile-menu__nav { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.08); }
.mobile-menu__nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(28px, 8vw, 42px); line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.22,1,.26,1), transform .5s cubic-bezier(.22,1,.26,1), color .25s var(--ease);
}
.mobile-menu.is-open .mobile-menu__nav a {
  opacity: 1; transform: none;
  transition-delay: calc(.18s + var(--i, 0) * .06s);
}
.mobile-menu__nav a:hover { color: var(--accent); }
.mobile-menu__nav a.mm-cta { color: var(--accent); }
.mm-arrow {
  font-family: var(--f-mono); font-style: normal; font-weight: 400;
  font-size: 18px; color: var(--accent);
  transition: transform .3s var(--ease);
}
.mobile-menu__nav a:hover .mm-arrow { transform: translate(4px, -4px); }

.mobile-menu__foot {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-menu__contact { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-body); font-size: 14px; color: rgba(255,255,255,.75); }
.mobile-menu__contact a { color: #fff; transition: color .25s var(--ease); }
.mobile-menu__contact a:hover { color: var(--accent); }
.mobile-menu__contact span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.mobile-menu__socials { display: flex; gap: 10px; }
.mobile-menu__socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: grid; place-items: center;
  color: rgba(255,255,255,.75);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.mobile-menu__socials a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

body.mm-open { overflow: hidden; }

/* Desktop hides hamburger */
@media (min-width: 901px) {
  .hburger { display: none !important; }
  .mobile-menu { display: none !important; }
}
@media (max-width: 900px) {
  .hburger { display: inline-flex; }
}

/* Mobile menu close button */
.mobile-menu__close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  display: grid; place-items: center;
  padding: 0;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.mobile-menu__close:hover { background: var(--accent); border-color: var(--accent); }
.mobile-menu__close span {
  position: absolute;
  width: 18px; height: 1.5px;
  background: #fff;
  transition: background .25s var(--ease);
}
.mobile-menu__close span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu__close span:nth-child(2) { transform: rotate(-45deg); }
.mobile-menu__close:hover span { background: var(--ink); }

/* Mobile: show hcta + hburger, hide search/socials from header */
@media (max-width: 900px) {
  .hcta { display: inline-flex !important; padding: 9px 12px; font-size: 10px; letter-spacing: .16em; }
  .hcta .btn__icon { padding: 0 10px; }
  .hcta .hcta__label { font-size: 10px; }
}

/* Mobile menu search bar */
.mobile-menu__search {
  display: grid; grid-template-columns: 18px 1fr;
  gap: 10px; align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  margin-bottom: 24px;
  transition: border-color .25s var(--ease);
}
.mobile-menu__search:focus-within { border-color: var(--accent); }
.mobile-menu__search svg { color: rgba(255,255,255,.55); }
.mobile-menu__search input {
  background: transparent; border: 0; outline: 0;
  color: #fff; font: 400 15px/1 var(--f-body);
  padding: 4px 0;
  width: 100%;
}
.mobile-menu__search input::placeholder { color: rgba(255,255,255,.4); }
.mobile-menu__results {
  margin-bottom: 20px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.08);
  padding: 8px;
  max-height: 60vh; overflow-y: auto;
}
.mobile-menu__results .hsearch__item { padding: 10px 8px; }

/* ========= Contact page ========= */
.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form__row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-form__field {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px;
}
.contact-form__field span {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mute);
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  font: 400 15px/1.4 var(--f-body);
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.14);
  background: var(--bone);
  color: var(--ink);
  border-radius: 0;
  outline: 0;
  transition: border-color .25s var(--ease);
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus { border-color: var(--accent); background: #fff; }
.contact-form__field textarea { resize: vertical; }
.contact-form__submit {
  display: flex; align-items: center; gap: 20px;
  margin-top: 12px; flex-wrap: wrap;
}
.contact-form__submit .btn { cursor: pointer; }
.contact-form__ok {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mute); margin: 0;
  opacity: 0; transition: opacity .4s var(--ease), color .4s var(--ease);
}
.contact-form__ok.is-on { opacity: 1; color: var(--accent); }

@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex; flex-direction: column; gap: 32px;
  padding: 32px;
  background: #222; color: var(--bone);
  border-left: 3px solid var(--accent);
}
.contact-info__block { display: flex; flex-direction: column; gap: 8px; }
.contact-info__block .eyebrow { color: rgba(255,255,255,.55); margin-bottom: 8px; }
.contact-info__big {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.015em;
  color: var(--bone); transition: color .25s var(--ease);
}
.contact-info__big:hover { color: var(--accent); }
.contact-info p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.55; margin: 0; }
.contact-info__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-info__list li {
  display: grid; grid-template-columns: 28px 1fr; align-items: baseline; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.contact-info__list .k {
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: 14px; color: var(--accent);
}
.contact-info__status {
  flex-direction: row; align-items: center; gap: 12px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.contact-info__status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(251,179,51,.7);
  animation: statusPulse 2s ease-out infinite;
}

/* ========= Contact form — spiced ========= */
.contact-form { position: relative; isolation: isolate; }
.contact-form__ghost {
  position: absolute; top: -24px; right: -12px; z-index: -1;
  font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: clamp(160px, 20vw, 320px); line-height: .8; letter-spacing: -.05em;
  color: rgba(0,0,0,.04);
  pointer-events: none; user-select: none;
}
.contact-form__lead {
  margin: 18px 0 20px;
  font-size: 16.5px; line-height: 1.6;
  color: var(--ink-2); max-width: 58ch;
}
.contact-form__chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 36px;
}
.contact-form__chips .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(0,0,0,.14);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(255,255,255,.5);
  border-radius: 999px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.contact-form__chips .chip:hover { border-color: var(--accent); background: rgba(251,179,51,.08); }
.contact-form__chips .chip__k { color: var(--accent); font-size: 11px; }

.contact-form__group {
  margin: 32px 0 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.12);
  display: flex; align-items: baseline;
}
.contact-form__group:first-of-type { margin-top: 8px; border-top: 0; padding-top: 0; }
.contact-form__groupLabel {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink);
}
.contact-form__groupLabel .k {
  font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: 18px; color: var(--accent); letter-spacing: -.02em;
}

/* Pretty dropdowns */
.contact-form__field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fbb333' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
  cursor: pointer;
  font-family: var(--f-body);
  color: var(--ink);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.contact-form__field select:hover { border-color: var(--ink); }
.contact-form__field select:focus {
  border-color: var(--accent);
  background-color: #fff;
}
.contact-form__field select option {
  background: #fff;
  color: var(--ink);
  padding: 8px;
}
.contact-form__field select:invalid,
.contact-form__field select option[value=""] { color: var(--mute); }

/* Yellow social buttons — applied across header, footer, mobile menu */
.hsocials a,
.footer__social a,
.mobile-menu__socials a {
  background: var(--accent) !important;
  color: #111 !important;
  border: 0 !important;
}
.hsocials a { width: 36px; height: 36px; border-radius: 50%; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; }
.mobile-menu__socials a { width: 40px; height: 40px; border-radius: 50%; }
.hsocials svg,
.footer__social svg,
.mobile-menu__socials svg { color: #111 !important; stroke: #111 !important; fill: currentColor; }
.hsocials a:hover,
.footer__social a:hover,
.mobile-menu__socials a:hover {
  background: #fcbe49 !important;
  transform: translateY(-2px);
}

/* (mega menu CSS moved to end) */

/* ========= Page hero — spiced ========= */
.page-hero { min-height: 68vh; }
.page-hero__grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(12, 1fr);
  pointer-events: none; z-index: 1; opacity: .7;
}
.page-hero__grid span { border-right: 1px solid rgba(255,255,255,.06); }
.page-hero__grid span:last-child { border-right: 0; }

.page-hero__ghost {
  position: absolute; right: -2vw; top: 4vw; z-index: 1;
  font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: clamp(180px, 24vw, 400px); line-height: .8; letter-spacing: -.04em;
  color: rgba(255,255,255,.05);
  pointer-events: none; user-select: none;
}

.page-hero__rail {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 24px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.page-hero__rule { flex: 1; height: 1px; background: rgba(255,255,255,.25); min-width: 40px; max-width: 240px; }
.page-hero__status { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.page-hero__status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(251,179,51,.7);
  animation: statusPulse 2s ease-out infinite;
}

.page-hero__eyebrow::before { background: var(--accent); }
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 0;
  color: #fff;
}

.page-hero__desc {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: clamp(15.5px, 1.1vw, 17px);
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}
.page-hero__chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px;
}
.page-hero__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.25);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.04);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.page-hero__chip:hover { border-color: var(--accent); background: rgba(251,179,51,.1); }
.page-hero__chip .k {
  font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: 13px; color: var(--accent); letter-spacing: -.02em;
}

.page-hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.18);
  max-width: 720px;
}
.page-hero__stat { display: flex; flex-direction: column; gap: 6px; }
.page-hero__stat .n {
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(24px, 2.4vw, 36px); line-height: 1; letter-spacing: -.02em;
  color: var(--accent);
}
.page-hero__stat .l {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

@media (max-width: 900px) {
  .page-hero__stats { grid-template-columns: 1fr 1fr; }
  .page-hero__rule { max-width: 80px; }
  .page-hero__status { display: none; }
  .page-hero__ghost { font-size: 160px; }
}













































































@media (max-width: 900px) {

}






































@media (max-width: 900px) {
}


























































@media (max-width: 900px) {
}

/* ==========================================================
   NAV LINKS + MEGA PANEL — single shared panel architecture
   ========================================================== */

/* Nav row */
.nav {
  display: flex; align-items: center;
  gap: clamp(18px, 2vw, 32px);
  height: 100%;
}

/* Each nav link — flat anchor */
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--accent); }
.nav__link::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__chev {
  opacity: .55;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.nav__link.is-active .nav__chev { transform: rotate(180deg); opacity: 1; color: var(--accent); }

/* Single shared mega panel — pinned to header bottom, full width, click-toggled */
.hmega {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #161616;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 57;
  pointer-events: none;
}
.hmega[hidden] { display: none; }
.hmega.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hmega__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hmega__link {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}
.hmega__link:last-child { border-right: 0; }
.hmega__link:hover {
  background: rgba(251,179,51,.08);
  padding-left: 32px;
}

.hmega__num {
  font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: 22px; color: var(--accent); letter-spacing: -.02em; line-height: 1;
}
.hmega__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hmega__label {
  font-family: var(--f-display); font-weight: 500;
  font-size: 17px; letter-spacing: -.005em; line-height: 1.2;
}
.hmega__meta {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.hmega__arrow {
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.hmega__link:hover .hmega__arrow { transform: translateX(6px); }

@media (max-width: 900px) {
  .hmega { display: none !important; }
  .nav__chev { display: none; }
}

/* Mega tiles — used for Work (3 featured projects) */
.hmega__inner--tiles {
  padding: clamp(20px, 2vw, 28px);
  gap: clamp(16px, 1.5vw, 20px);
}
.hmega__tile {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 6px;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  transition: transform .35s var(--ease);
}
.hmega__tile:hover { transform: translateY(-3px); }
.hmega__tile-img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  background: #222 center/cover no-repeat;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.hmega__tile-img::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(251,179,51,0);
  transition: background .3s var(--ease);
}
.hmega__tile:hover .hmega__tile-img::after { background: rgba(251,179,51,.15); }
.hmega__tile-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hmega__tile-num {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em;
  color: var(--accent);
}
.hmega__tile-arrow {
  font-family: var(--f-mono); color: var(--accent);
  transition: transform .3s var(--ease);
}
.hmega__tile:hover .hmega__tile-arrow { transform: translateX(4px); }
.hmega__tile-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: 17px; letter-spacing: -.005em; line-height: 1.2;
  margin-top: 4px;
}
.hmega__tile-meta {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* Work mega: 4-col grid (3 tiles + 1 CTA cell) */
.hmega__inner--tiles { grid-template-columns: repeat(4, 1fr); }
.hmega__all {
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: end;
  gap: 8px;
  padding: 24px;
  background: var(--accent);
  color: var(--ink) !important;
  transition: background .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.hmega__all:hover { background: #fcbe49; }
.hmega__all-eyebrow {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(0,0,0,.6);
}
.hmega__all-title {
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(20px, 1.6vw, 26px); line-height: 1.05; letter-spacing: -.02em;
  color: #111;
  margin-top: 4px;
}
.hmega__all-meta {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(0,0,0,.7);
}
.hmega__all-arrow {
  margin-top: 8px;
  color: #111;
  transition: transform .3s var(--ease);
  align-self: flex-start;
}
.hmega__all:hover .hmega__all-arrow { transform: translateX(8px); }

@media (max-width: 1100px) {
  .hmega__inner--tiles { grid-template-columns: repeat(2, 1fr); }
}

/* Floating "Back to Presentation" — only on top-frame website */
.back-to-pres {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #3a2aff 0%, #0078ff 50%, #00d4ff 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff !important;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 14px 28px -8px rgba(58,42,255,.4), 0 4px 12px -4px rgba(0,120,255,.3);
  transition: background-position .5s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.back-to-pres:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -8px rgba(58,42,255,.5), 0 6px 14px -4px rgba(0,212,255,.4);
}
.back-to-pres svg { stroke: #fff !important; }
@media (max-width: 640px) {
  .back-to-pres { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 10px; letter-spacing: .18em; }
}

@media (max-width: 900px) {
  .work-head__ghost,
  .services-sec__ghost,
  .process-sec__ghost,
  .phase__ghost,
  .contact-form__ghost,
  .page-hero__ghost {
    right: 0 !important;
    max-width: 100vw;
    overflow: hidden;
  }
  main, section { max-width: 100vw; overflow-x: clip; }
}
