/* =========================================================================
   DIGITAL GROWTH HOUSE — DESIGN SYSTEM
   Creative Digital Marketing & Production Studio
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root{
  /* --- Surface (the dark stage) --- */
  --void:        #08090B;
  --surface:     #111318;
  --surface-2:   #181B21;
  --surface-3:   #21242C;
  --hairline:    rgba(245,243,238,0.09);
  --hairline-strong: rgba(245,243,238,0.16);

  /* --- Ink --- */
  --ink:         #F5F3EE;
  --ink-muted:   #9A9BA1;
  --ink-faint:   #5C5D63;

  /* --- Brand: pulled from the DGH mark --- */
  --gold:        #EFB419;
  --gold-soft:   #F6CE63;
  --gold-deep:   #B4820D;
  --blue:        #3B62E0;
  --blue-bright: #6E8CFF;
  --blue-deep:   #14285A;

  /* --- Spectrum trio: used together only, "one partner for everything" --- */
  --spec-green:  #34A853;
  --spec-red:    #EA4335;
  --spec-violet: #6D4AEE;
  --spectrum-gradient: linear-gradient(90deg, var(--spec-green) 0%, var(--spec-red) 50%, var(--spec-violet) 100%);
  --gold-blue-gradient: linear-gradient(135deg, var(--gold) 0%, #E88A2E 45%, var(--blue) 100%);

  /* --- Feedback --- */
  --danger: #EA4335;
  --success: #34A853;

  /* --- Type families --- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Menlo, monospace;

  /* --- Fluid type scale --- */
  --text-hero:    clamp(3.4rem, 8.8vw, 9.5rem);
  --text-display: clamp(2.5rem, 5.6vw, 5.25rem);
  --text-h1:      clamp(2.1rem, 4.2vw, 3.5rem);
  --text-h2:      clamp(1.65rem, 2.8vw, 2.5rem);
  --text-h3:      clamp(1.3rem, 1.8vw, 1.6rem);
  --text-body-lg: clamp(1.1rem, 1.4vw, 1.375rem);
  --text-body:    1rem;
  --text-sm:      0.875rem;
  --text-label:   0.75rem;

  /* --- Spacing scale (8px base) --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;
  --section-pad: clamp(5rem, 11vw, 10rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* --- Radii / borders --- */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;

  --container-max: 1440px;

  --z-cursor: 9999;
  --z-overlay: 800;
  --z-nav: 850;
  --z-transition: 900;
}

/* -------------------------------------------------------------------------
   1b. CUSTOM SCROLLBAR
   ------------------------------------------------------------------------- */
html{ scrollbar-width: thin; scrollbar-color: var(--surface-3) var(--void); }
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: var(--void); }
::-webkit-scrollbar-thumb{ background: var(--surface-3); border-radius: 99px; border: 2px solid var(--void); }
::-webkit-scrollbar-thumb:hover{ background: var(--gold-deep); }

/* -------------------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }
html{
  scroll-behavior: auto;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
body{
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; }
button, input, textarea, select{ font: inherit; color: inherit; background: none; border: none; }
button{ cursor: pointer; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }
::selection{ background: var(--gold); color: var(--void); }

/* Reveal grain film texture over everything, subtle */
body::before{
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.container{
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section{ padding-block: var(--section-pad); position: relative; }
.section-tight{ padding-block: clamp(3rem, 6vw, 5rem); }
.grid{ display: grid; gap: var(--sp-6); }
.g-2{ grid-template-columns: repeat(2, 1fr); }
.g-3{ grid-template-columns: repeat(3, 1fr); }
.g-4{ grid-template-columns: repeat(4, 1fr); }
.g-12{ grid-template-columns: repeat(12, 1fr); }
@media (max-width: 900px){
  .g-2, .g-3, .g-4{ grid-template-columns: 1fr; }
  .g-12{ grid-template-columns: repeat(6,1fr); }
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::before{
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}
.eyebrow .num{ color: var(--gold); }

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-6);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head h2{ font-size: var(--text-display); max-width: 14ch; }
.section-head p{ max-width: 34ch; color: var(--ink-muted); font-size: var(--text-body-lg); padding-bottom: var(--sp-2); }
@media (max-width: 760px){
  .section-head{ flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
}

.text-gradient{
  background: var(--gold-blue-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.spectrum-rule{
  height: 3px;
  width: 100%;
  background: var(--spectrum-gradient);
  border-radius: var(--radius-pill);
}
.spectrum-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--spectrum-gradient);
  display: inline-block;
}

/* -------------------------------------------------------------------------
   4. CUSTOM CURSOR
   ------------------------------------------------------------------------- */
.cursor{
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
  will-change: transform;
}
.cursor-ring{
  position: fixed; top: 0; left: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink);
  will-change: transform;
}
.cursor-ring span{ opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.cursor-ring.is-label{ width: 84px; height: 84px; background: var(--void); border-color: transparent; }
.cursor-ring.is-label span{ opacity: 1; }
@media (hover: none), (pointer: coarse){
  .cursor, .cursor-ring{ display: none; }
}

/* -------------------------------------------------------------------------
   5. NAVIGATION
   ------------------------------------------------------------------------- */
/* Vertical scroll path — a signature line that draws itself from the top
   of the viewport frame to the bottom as the visitor moves through the
   page, with a marker riding its leading edge. Replaces the old flat top
   progress bar with one legible device instead of two competing ones. */
.scroll-path{
  position: fixed;
  top: 92px; right: 22px;
  width: 22px; height: calc(100vh - 92px - 32px);
  z-index: 500;
  pointer-events: none;
}
.scroll-path svg{ width: 100%; height: 100%; overflow: visible; display: block; }
.scroll-path-track{ fill: none; stroke: var(--hairline-strong); stroke-width: 1.5px; }
.scroll-path-fill{ fill: none; stroke: url(#scrollPathGradient); stroke-width: 2px; stroke-linecap: round; }
.scroll-path-dot{
  position: absolute; top: 0; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(239,180,25,0.16);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  will-change: transform;
}
.scroll-path.is-active .scroll-path-dot{ opacity: 1; }
@media (max-width: 900px){
  .scroll-path{ right: 10px; width: 14px; }
  .scroll-path-dot{ width: 5px; height: 5px; }
}
@media (max-width: 640px){
  .scroll-path{ display: none; }
}

.nav{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: var(--sp-5) 0;
  transition: background var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  background: rgba(8,9,11,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: var(--sp-3) 0;
  border-bottom-color: var(--hairline);
}
.nav.nav--hidden{ transform: translateY(-100%); }
.nav .container{ display: flex; align-items: center; justify-content: space-between; }
.brand{ display: flex; align-items: center; gap: var(--sp-3); }
.brand-mark{
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em;
  display: flex; gap: 2px;
}
.brand-mark span:nth-child(1){ color: var(--blue-bright); }
.brand-mark span:nth-child(2){ color: var(--gold); }
.brand-mark span:nth-child(3){ color: var(--blue-bright); }
.brand-tag{
  font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint);
  border-left: 1px solid var(--hairline-strong); padding-left: var(--sp-3);
  display: none;
}
@media (min-width: 640px){ .brand-tag{ display: block; } }

.nav-cta{ display: flex; align-items: center; gap: var(--sp-6); }

/* Menu trigger — replaces the old persistent link row on every breakpoint.
   Navigation lives behind one deliberate moment (the overlay), not a bar. */
.menu-trigger{ display: flex; align-items: center; gap: var(--sp-3); }
.menu-trigger-lines{ width: 26px; height: 14px; position: relative; flex-shrink: 0; }
.menu-trigger-lines span{
  position: absolute; left: 0; right: 0; height: 1px; background: var(--ink);
  transition: transform var(--dur-base) var(--ease-out), top var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.menu-trigger-lines span:nth-child(1){ top: 0; }
.menu-trigger-lines span:nth-child(2){ top: 100%; }
.menu-trigger.is-open .menu-trigger-lines span:nth-child(1){ top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-trigger.is-open .menu-trigger-lines span:nth-child(2){ top: 50%; transform: translateY(-50%) rotate(-45deg); }
.menu-trigger-label{ font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }

/* Full-screen index menu */
.menu-overlay{
  position: fixed; inset: 0;
  z-index: var(--z-overlay);
  background: var(--void);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path 0.7s var(--ease-in-out);
  overflow-y: auto;
}
.menu-overlay.is-open{ clip-path: inset(0 0 0% 0); pointer-events: auto; }
.menu-overlay-inner{
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: var(--sp-8);
  gap: clamp(3rem, 8vw, 6rem);
}
.menu-list{ display: flex; flex-direction: column; }
.menu-list a{
  display: flex; align-items: baseline; gap: var(--sp-6);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--hairline);
  position: relative;
}
.menu-list a:last-child{ border-bottom: 1px solid var(--hairline); }
.menu-num{ font-family: var(--font-mono); font-size: var(--text-sm); color: var(--gold); width: 2.5ch; }
.menu-label{
  font-family: var(--font-display); font-size: clamp(1.9rem, 5.2vw, 4.1rem); font-weight: 500;
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.menu-list a:hover .menu-label{ transform: translateX(0.25em); color: var(--gold); }
.menu-list a.is-current .menu-label{ color: var(--gold); }
.menu-list a.is-current .menu-num{ color: var(--ink); }
.menu-overlay-footer{ display: flex; gap: var(--sp-9); flex-wrap: wrap; }
.menu-overlay-col h4{ font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin-bottom: var(--sp-3); }
.menu-overlay-col a{ display: block; font-size: var(--text-sm); color: var(--ink-muted); margin-bottom: var(--sp-2); transition: color var(--dur-fast) var(--ease-out); }
.menu-overlay-col a:hover{ color: var(--gold); }
body.menu-open{ overflow: hidden; }

/* -------------------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: 1.05rem 2.1rem;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  position: relative;
  isolation: isolate;
}
.btn-primary{
  background: var(--gold);
  color: var(--void);
}
.btn-primary:hover{ background: var(--gold-soft); }
.btn-ghost{
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }
.btn-arrow{ transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn-arrow{ transform: translateX(4px); }
.magnetic{ will-change: transform; }

.btn-icon-circle{
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.btn-icon-circle:hover{ border-color: var(--gold); background: rgba(239,180,25,0.08); }

/* -------------------------------------------------------------------------
   7. PRELOADER + PAGE TRANSITION
   ------------------------------------------------------------------------- */
.preloader{
  position: fixed; inset: 0; z-index: 2000;
  background: var(--void);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: var(--sp-5);
}
.preloader-mark{ font-family: var(--font-display); font-size: 2.5rem; letter-spacing: -0.02em; }
.preloader-meta{ display: flex; align-items: center; gap: var(--sp-4); }
.preloader-count{ font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); width: 2.6em; }
.preloader-bar{ width: 200px; height: 2px; background: var(--surface-3); overflow: hidden; border-radius: var(--radius-pill); }
.preloader-bar-fill{ height: 100%; width: 0%; background: var(--gold-blue-gradient); }

.page-transition{
  position: fixed; inset: 0; z-index: var(--z-transition);
  background: var(--void);
  transform: translateY(100%);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------------------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: var(--sp-9);
  overflow: hidden;
}
.hero-canvas-wrap{
  position: absolute; inset: 0;
  z-index: 0;
}
#hero-canvas{ width: 100%; height: 100%; }
.hero-vignette{
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(8,9,11,0.1) 0%, var(--void) 82%),
    linear-gradient(180deg, rgba(8,9,11,0.4) 0%, rgba(8,9,11,0.08) 32%, rgba(8,9,11,0.8) 100%);
}
.hero .container{ position: relative; z-index: 2; }
.hero-eyebrow{ margin-bottom: var(--sp-6); }
.hero h1{
  font-size: var(--text-hero);
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero h1 .line{ overflow: hidden; display: block; }
.hero h1 .line span{ display: inline-block; will-change: transform; }
.hero h1 em{ font-style: italic; font-weight: 400; color: var(--gold); }
.hero-sub{
  margin-top: var(--sp-6);
  max-width: 42ch;
  font-size: var(--text-body-lg);
  color: var(--ink-muted);
}
.hero-actions{ display: flex; align-items: center; gap: var(--sp-6); margin-top: var(--sp-8); flex-wrap: wrap; }
.hero-scroll{
  position: absolute; bottom: var(--sp-6); right: var(--gutter);
  z-index: 2;
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint);
}
.hero-scroll-line{ width: 1px; height: 46px; background: linear-gradient(var(--ink-faint), transparent); position: relative; overflow: hidden; }
.hero-scroll-line::after{ content:''; position:absolute; top:-100%; left:0; width:100%; height:100%; background: var(--gold); animation: scrollline 2.2s var(--ease-in-out) infinite; }
@keyframes scrollline{ 0%{ top: -100%; } 60%{ top: 100%; } 100%{ top: 100%; } }

.hero-stats{
  position: absolute; bottom: var(--sp-6); left: var(--gutter);
  z-index: 2;
  display: flex; gap: var(--sp-8);
}
.hero-stats div{ font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); }
.hero-stats strong{ display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-weight: 500; margin-bottom: 2px; letter-spacing: -0.01em; }
@media (max-width: 760px){ .hero-stats{ display: none; } }

/* -------------------------------------------------------------------------
   9. MARQUEE
   ------------------------------------------------------------------------- */
.marquee{
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--sp-6);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track{ display: inline-flex; gap: var(--sp-8); animation: marquee 32s linear infinite; }
.marquee-track span{
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.25rem);
  color: var(--ink-faint); display: inline-flex; align-items: center; gap: var(--sp-8);
}
.marquee-track span em{ font-style: normal; color: var(--gold); font-family: var(--font-mono); font-size: 0.9rem; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* -------------------------------------------------------------------------
   10. FEATURED WORK / PORTFOLIO GRID
   ------------------------------------------------------------------------- */
.work-list{ display: flex; flex-direction: column; }
.work-row{
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center; gap: var(--sp-6);
  padding-block: var(--sp-7);
  border-top: 1px solid var(--hairline);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.work-list .work-row:last-child{ border-bottom: 1px solid var(--hairline); }
.work-row::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(239,180,25,0.07), rgba(59,98,224,0.05) 70%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
.work-row:hover::before{ transform: scaleX(1); }
.work-index{ font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-faint); transition: color var(--dur-base) var(--ease-out); }
.work-row:hover .work-index{ color: var(--gold); }
.work-title-group{ display: flex; flex-direction: column; gap: 0.4em; min-width: 0; }
.work-title{
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.6rem); font-weight: 500;
  line-height: 1.1;
  transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.work-desc{ font-family: var(--font-body); font-size: var(--text-sm); color: var(--ink-muted); }
.work-tags{ display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: flex-end; max-width: 220px; }
.work-tags span{ font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); border: 1px solid var(--hairline-strong); padding: 5px 10px; border-radius: var(--radius-pill); }
.work-arrow{ justify-self: end; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hairline-strong); display: flex; align-items: center; justify-content: center; transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out); }
.work-row:hover .work-title{ color: var(--gold); transform: translateX(8px); }
.work-row:hover .work-arrow{ transform: rotate(45deg); border-color: var(--gold); background: rgba(239,180,25,0.08); }

.work-preview{
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.work-preview canvas{ width: 100%; height: 100%; }
@media (max-width: 900px){
  .work-row{ grid-template-columns: auto minmax(0,1fr) auto; }
  .work-tags{ display: none; }
  .work-preview{ display: none; }
}

/* -------------------------------------------------------------------------
   11. SERVICES
   ------------------------------------------------------------------------- */
.service-list{ display: flex; flex-direction: column; }
.service-row{
  border-top: 1px solid var(--hairline);
  padding-block: var(--sp-6);
}
.service-list .service-row:last-child{ border-bottom: 1px solid var(--hairline); }
.service-summary{ display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); cursor: pointer; }
.service-head-row{ display: flex; align-items: baseline; gap: var(--sp-6); }
.service-num{ font-family: var(--font-mono); color: var(--gold); font-size: var(--text-sm); }
.service-name{ font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 500; }
.service-plus{ width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hairline-strong); position: relative; flex-shrink: 0; transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.service-plus::before, .service-plus::after{ content:''; position: absolute; background: var(--ink); top: 50%; left: 50%; transform: translate(-50%,-50%); transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out); }
.service-plus::before{ width: 14px; height: 1px; }
.service-plus::after{ width: 1px; height: 14px; }
.service-row.is-open .service-plus{ transform: rotate(90deg); border-color: var(--gold); }
.service-row.is-open .service-plus::after{ transform: translate(-50%,-50%) scale(0); }
.service-body{
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-in-out);
}
.service-row.is-open .service-body{ max-height: 460px; }
.service-body-inner{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); padding-top: var(--sp-6); }
.service-body-inner p{ color: var(--ink-muted); font-size: var(--text-body-lg); max-width: 46ch; }
.service-deliverables{ display: flex; flex-direction: column; gap: var(--sp-2); }
.service-deliverables span{ font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-muted); display: flex; align-items: center; gap: var(--sp-3); }
@media (max-width: 760px){ .service-body-inner{ grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   12. CARDS: process, why-us, testimonials, team
   ------------------------------------------------------------------------- */
.card{
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.card:hover{ border-color: var(--hairline-strong); }

.process-track{ display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); position: relative; }
@media (max-width: 900px){ .process-track{ grid-template-columns: 1fr; } }
.process-step{ position: relative; padding-top: var(--sp-6); }
.process-step-line{ position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--surface-3); overflow: hidden; }
.process-num{ font-family: var(--font-mono); font-size: var(--text-sm); color: var(--gold); }
.process-title{ font-family: var(--font-display); font-size: var(--text-h3); margin-block: var(--sp-3); }
.process-desc{ color: var(--ink-muted); font-size: var(--text-sm); max-width: 30ch; }

.testi-track{ display: flex; gap: var(--sp-6); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-4); scrollbar-width: none; }
.testi-track::-webkit-scrollbar{ display: none; }
.testi-card{ min-width: min(560px, 84vw); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--sp-8); display: flex; flex-direction: column; justify-content: space-between; }
.testi-quote{ font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 400; line-height: 1.35; }
.testi-quote::before{ content: '"'; color: var(--gold); }
.testi-meta{ display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-7); }
.testi-avatar{ width: 46px; height: 46px; border-radius: 50%; background: var(--gold-blue-gradient); flex-shrink: 0; }
.testi-name{ font-weight: 600; font-size: var(--text-sm); }
.testi-role{ font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.team-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-6); }
@media (max-width: 1000px){ .team-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .team-grid{ grid-template-columns: 1fr; } }
.team-card{ position: relative; }
.team-photo{ aspect-ratio: 4/5; border-radius: var(--radius-md); overflow: hidden; position: relative; background: var(--surface-2); }
.team-photo canvas{ width: 100%; height: 100%; }
.team-name{ font-family: var(--font-display); font-size: var(--text-h3); margin-top: var(--sp-4); }
.team-role{ font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-top: 4px; }

/* -------------------------------------------------------------------------
   13. CONTACT / FORMS
   ------------------------------------------------------------------------- */
.field{ border-bottom: 1px solid var(--hairline-strong); padding-block: var(--sp-4); position: relative; }
.field label{ font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); display: block; margin-bottom: var(--sp-2); }
.field input, .field textarea{ width: 100%; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); resize: none; }
.field input::placeholder, .field textarea::placeholder{ color: var(--ink-faint); font-family: var(--font-body); font-size: 1rem; }
.field-line{ position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--gold); transition: width var(--dur-base) var(--ease-out); }
.field:focus-within .field-line{ width: 100%; }
.field:focus-within label{ color: var(--gold); }

.chip-select{ display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-3); }
.chip{ border: 1px solid var(--hairline-strong); padding: 8px 18px; border-radius: var(--radius-pill); font-size: var(--text-sm); transition: all var(--dur-base) var(--ease-out); }
.chip.is-active, .chip:hover{ border-color: var(--gold); color: var(--gold); background: rgba(239,180,25,0.06); }

/* -------------------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------------------- */
.footer{ border-top: 1px solid var(--hairline); padding-block: var(--sp-9) var(--sp-6); }
.footer-cta{ display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; margin-bottom: var(--sp-10); }
.footer-cta h2{ font-size: var(--text-display); max-width: 12ch; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); padding-bottom: var(--sp-8); }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-col h4{ font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: var(--sp-4); }
.footer-col a, .footer-col p{ display: block; font-size: var(--text-sm); color: var(--ink-muted); margin-bottom: var(--sp-3); transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover{ color: var(--gold); }
.footer-bottom{ display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-6); border-top: 1px solid var(--hairline); font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); flex-wrap: wrap; gap: var(--sp-3); }
.footer-bottom .socials{ display: flex; gap: var(--sp-5); }

/* -------------------------------------------------------------------------
   15. REVEAL / SPLIT-TEXT UTILITIES (JS hooks)
   ------------------------------------------------------------------------- */
/* [data-reveal] elements are visible by default (progressive enhancement) —
   JS sets the pre-animation hidden state itself, only once GSAP has
   actually loaded and is about to animate. This guarantees content is
   never stuck invisible if a CDN script fails, is blocked, or is slow. */
.split-line{ overflow: hidden; }

/* -------------------------------------------------------------------------
   16. PAGE HEADER (interior pages)
   ------------------------------------------------------------------------- */
.page-header{ padding-top: clamp(9rem, 16vw, 13rem); padding-bottom: var(--sp-8); position: relative; }
.page-header h1{ font-size: var(--text-display); max-width: 20ch; }
.page-header-sub{ margin-top: var(--sp-5); font-size: var(--text-body-lg); color: var(--ink-muted); max-width: 50ch; }

/* -------------------------------------------------------------------------
   17. REDUCED MOTION
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal]{ opacity: 1 !important; transform: none !important; }
}

/* -------------------------------------------------------------------------
   21. CONTACT PAGE
   ------------------------------------------------------------------------- */
.contact-grid{ display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-9); align-items: start; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; gap: var(--sp-8); } }
.contact-form{ display: flex; flex-direction: column; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 560px){ .field-row{ grid-template-columns: 1fr; } }
.contact-submit{ margin-top: var(--sp-7); align-self: flex-start; }
.contact-side{ display: flex; flex-direction: column; gap: var(--sp-8); position: sticky; top: 140px; }
.contact-info-block h4{ font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin-bottom: var(--sp-3); }
.contact-info-block a, .contact-info-block p{ font-family: var(--font-display); font-size: var(--text-h3); font-weight: 400; }
.contact-info-block a{ transition: color var(--dur-base) var(--ease-out); }
.contact-info-block a:hover{ color: var(--gold); }
.contact-availability{ display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-muted); }
.dot-live{ width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52,168,83,0.6); animation: pulse 2s infinite; }
@keyframes pulse{ 0%{ box-shadow: 0 0 0 0 rgba(52,168,83,0.5);} 70%{ box-shadow: 0 0 0 8px rgba(52,168,83,0);} 100%{ box-shadow:0 0 0 0 rgba(52,168,83,0);} }
.form-success{ display: none; text-align: center; padding: var(--sp-9) 0; }
.form-success.is-visible{ display: block; }
.form-success h3{ font-size: var(--text-h1); margin-bottom: var(--sp-4); }
.form-success p{ color: var(--ink-muted); }

/* -------------------------------------------------------------------------
   19. PORTFOLIO GRID + CASE STUDY
   ------------------------------------------------------------------------- */
.filter-bar{ display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-8); }

.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-5);
}
.p-tile{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  grid-column: span 3;
  cursor: pointer;
  border: 1px solid var(--hairline);
}
.p-tile.tall{ aspect-ratio: 4/5; }
.p-tile.wide{ grid-column: span 6; aspect-ratio: 21/9; }
.p-tile canvas{ width: 100%; height: 100%; position: absolute; inset: 0; transition: transform var(--dur-slow) var(--ease-out); }
.p-tile:hover canvas{ transform: scale(1.06); }
.p-tile-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,0) 40%, rgba(8,9,11,0.88) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-6);
}
.p-tile-cat{ font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: var(--sp-2); }
.p-tile-title{ font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
.p-tile-arrow{ position: absolute; top: var(--sp-5); right: var(--sp-5); width: 40px; height: 40px; border-radius: 50%; background: rgba(8,9,11,0.5); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out); }
.p-tile:hover .p-tile-arrow{ transform: rotate(45deg); background: var(--gold); color: var(--void); }
@media (max-width: 900px){
  .p-tile{ grid-column: span 6; aspect-ratio: 4/3; }
}

.case-study{ border-top: 1px solid var(--hairline); padding-block: var(--section-pad); }
.case-hero{ position: relative; aspect-ratio: 21/9; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--sp-8); }
.case-hero canvas{ width: 100%; height: 100%; }
.case-meta{ display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--sp-6); padding-bottom: var(--sp-8); border-bottom: 1px solid var(--hairline); margin-bottom: var(--sp-8); }
@media (max-width: 900px){ .case-meta{ grid-template-columns: 1fr 1fr; } }
.case-meta h3{ font-size: var(--text-h1); max-width: 14ch; }
.case-meta dt{ font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: var(--sp-2); }
.case-meta dd{ font-size: var(--text-body-lg); font-family: var(--font-display); }
.case-body{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-7); }
@media (max-width: 900px){ .case-body{ grid-template-columns: 1fr; } }
.case-body h4{ font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: var(--sp-4); }
.case-body p{ color: var(--ink-muted); }
.case-gallery{ display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-5); margin-top: var(--sp-8); }
.case-gallery > div{ border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.case-gallery canvas{ width: 100%; height: 100%; }
@media (max-width: 760px){ .case-gallery{ grid-template-columns: 1fr; } }

/* Pinned "why us" story panels — normal stacked flow by default; JS switches
   to absolute-overlay crossfade only once GSAP/ScrollTrigger actually init. */
.story-panels{ display: flex; flex-direction: column; gap: var(--sp-8); }
.story-panels.is-pinning{ position: relative; min-height: 220px; }
.story-panels.is-pinning [data-panel]{ position: absolute; inset: 0; }

/* -------------------------------------------------------------------------
   20. ABOUT — pillars, story stats
   ------------------------------------------------------------------------- */
.pillar-list{ display: flex; flex-direction: column; }
.pillar-row{
  display: grid; grid-template-columns: 100px 1fr 2fr;
  gap: var(--sp-6); align-items: baseline;
  padding-block: var(--sp-7);
  border-top: 1px solid var(--hairline);
}
.pillar-list .pillar-row:last-child{ border-bottom: 1px solid var(--hairline); }
.pillar-num{ font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--gold); }
.pillar-title{ font-family: var(--font-display); font-size: var(--text-h2); font-weight: 500; }
.pillar-desc{ color: var(--ink-muted); font-size: var(--text-body-lg); max-width: 52ch; }
@media (max-width: 760px){
  .pillar-row{ grid-template-columns: 1fr; gap: var(--sp-3); }
}

.story-stats{ display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-6); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding-block: var(--sp-8); }
@media (max-width: 760px){ .story-stats{ grid-template-columns: repeat(2,1fr); } }
.story-stats div{ text-align: left; }
.story-stats strong{ display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; color: var(--ink); }
.story-stats span{ font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }

.mission-banner{
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: clamp(2.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.mission-banner h2{ font-size: clamp(1.75rem, 4vw, 3.25rem); max-width: 20ch; position: relative; z-index: 1; }
.mission-banner-glow{ position: absolute; inset: 0; opacity: 0.5; }

/* Pinned, scroll-scrubbed word reveal — the statement holds centre-stage
   while the scroll itself paints each word in. Reserved for one moment per
   page (the mission line); JS falls back to a plain stagger-in on touch
   devices where a position:fixed pin is unreliable. */
.scrub-mission{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--void);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.scrub-mission-canvas{ position: absolute; inset: 0; width: 100%; height: 100%; }
.scrub-mission-inner{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  text-align: center;
  padding-inline: var(--sp-6);
}
.scrub-reveal{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.75rem);
  line-height: 1.32;
  max-width: 22ch;
}
.scrub-reveal .word.is-accent{ color: var(--gold); }

/* -------------------------------------------------------------------------
   22. WATERMARK TYPE — scale & atmosphere behind headers
   ------------------------------------------------------------------------- */
.watermark{
  position: absolute;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(6rem, 19vw, 15rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 243, 238, 0.22);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: -1; /* behind in-flow content within its positioned ancestor */
}
.page-header{ overflow: hidden; }
.page-header .watermark{ top: 38%; right: -0.08em; }
/* Hero needs to sit between the vignette (z-index:1) and the text (z-index:2) — negative
   z-index would put it behind the canvas too, so it gets its own stacking level here. */
.hero .watermark{ bottom: -8%; right: -0.05em; font-size: clamp(7rem, 23vw, 21rem); z-index: 1; -webkit-text-stroke-color: rgba(245, 243, 238, 0.3); }
.footer-cta{ position: relative; }
.footer-cta .watermark{ top: -1.5em; left: -0.02em; }

/* -------------------------------------------------------------------------
   23. MANIFESTO — full-bleed statement built from the spectrum gradient
   ------------------------------------------------------------------------- */
.manifesto{
  position: relative;
  padding-block: clamp(6rem, 12vw, 9rem);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.manifesto-bar{
  height: 6px; width: 100%;
  background: var(--spectrum-gradient);
  border-radius: var(--radius-pill);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  transform-origin: left;
}
.manifesto h2{
  font-size: clamp(2.25rem, 5.6vw, 5rem);
  max-width: 24ch;
  font-weight: 500;
}
.manifesto h2 em{ color: var(--gold); font-style: italic; font-weight: 400; }
.manifesto-foot{ display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-6); margin-top: clamp(2.5rem, 6vw, 4rem); flex-wrap: wrap; }
.manifesto-foot p{ color: var(--ink-muted); max-width: 42ch; font-size: var(--text-body-lg); }

/* -------------------------------------------------------------------------
   24. CAPABILITIES — editorial list (replaces icon-card grid)
   ------------------------------------------------------------------------- */
.cap-list{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-9); }
.cap-row{ border-top: 1px solid var(--hairline); padding-block: var(--sp-6); }
.cap-list .cap-row:nth-last-child(-n+2){ border-bottom: 1px solid var(--hairline); }
.cap-head{ display: flex; align-items: baseline; gap: var(--sp-5); }
.cap-num{ font-family: var(--font-mono); color: var(--gold); font-size: var(--text-sm); }
.cap-title{ font-family: var(--font-display); font-size: var(--text-h2); font-weight: 500; }
.cap-desc{ color: var(--ink-muted); font-size: var(--text-body-lg); max-width: 44ch; margin-top: var(--sp-3); }
@media (max-width: 760px){
  .cap-list{ grid-template-columns: 1fr; }
  .cap-list .cap-row:nth-last-child(-n+2){ border-bottom: none; }
  .cap-list .cap-row:last-child{ border-bottom: 1px solid var(--hairline); }
}

/* -------------------------------------------------------------------------
   25. TILT SURFACES (cursor-driven 3D, JS applies rotation)
   ------------------------------------------------------------------------- */
[data-tilt]{ transform-style: preserve-3d; will-change: transform; }

/* -------------------------------------------------------------------------
   18. RESPONSIVE — global tightening
   ------------------------------------------------------------------------- */
@media (max-width: 600px){
  .hero-actions{ flex-direction: column; align-items: flex-start; }
  .footer-cta{ flex-direction: column; align-items: flex-start; }
}
