/* =====================================================================
   TeamOne — dark / cinematic / gold
   ===================================================================== */

:root {
  --bg:           #0A0908;
  --bg-2:         #110F0C;
  --bg-3:         #15120E;
  --surface:      #181410;
  --surface-hi:   #1F1A14;
  --border:       #2A2520;
  --border-2:     #3A332B;
  --hairline:     rgba(244, 236, 220, 0.08);

  --ink:          #F4ECDC;          /* primary text */
  --ink-2:        #C8BFAE;          /* secondary */
  --ink-3:        #8A8174;          /* tertiary */
  --ink-4:        #5C544A;          /* dim */

  --gold:         #E8B23A;
  --gold-bright:  #F5CE6B;
  --gold-deep:    #9E7626;
  --gold-soft:    rgba(232, 178, 58, 0.16);

  /* expanded accent palette — each used deliberately, not everywhere */
  --magenta:      #E84A7C;
  --magenta-deep: #8A2245;
  --coral:        #F26B3A;
  --cyan:         #4ED4D4;
  --cyan-deep:    #1F7878;
  --violet:       #8E66F0;
  --violet-deep:  #4A2EA8;
  --lime:         #C8E04A;

  --display:      "Big Shoulders Display", "Anton", "Impact", sans-serif;
  --body:         "Manrope", ui-sans-serif, system-ui, sans-serif;
  --italic:       "Bodoni Moda", "Didot", Georgia, serif;

  --nav-h: 76px;
  --max:   1280px;
  --gutter: clamp(20px, 4.5vw, 56px);

  --ease:   cubic-bezier(0.2, 0, 0, 1);
  --ease-2: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ====== TWEAKS PANEL ====== */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 280px;
  background: rgba(20, 17, 13, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-2);
  color: var(--ink);
  font-family: var(--body);
  font-size: 12px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.6);
  display: none;
}
.tweaks[aria-hidden="false"] {
  display: block;
}
.tweaks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.tweaks-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.tweaks-close {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: color 180ms;
}
.tweaks-close:hover { color: var(--gold); }
.tweaks-body { padding: 8px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.tweak-section { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.tweak-section:last-child { border-bottom: 0; }
.tweak-section-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.tweak-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}
.tweak-row.tweak-radio { cursor: default; }
.tweak-name { flex-shrink: 0; }
.tweak-control { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 160px; }
.tweak-value {
  font-family: var(--font-mono, var(--body));
  font-size: 11px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  width: 26px;
  text-align: right;
}
.tweak-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-2);
  height: 2px;
  outline: none;
  border-radius: 1px;
}
.tweak-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 999px;
  cursor: pointer;
  border: 0;
}
.tweak-row input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 999px;
  cursor: pointer;
  border: 0;
}
.tweak-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 32px; height: 18px;
  background: var(--border-2);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 180ms;
}
.tweak-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 180ms var(--ease), background 180ms;
}
.tweak-row input[type="checkbox"]:checked { background: var(--gold-deep); }
.tweak-row input[type="checkbox"]:checked::after {
  background: var(--gold);
  transform: translateX(14px);
}
.tweak-segments {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  overflow: hidden;
}
.tweak-segments button {
  padding: 4px 8px;
  font-size: 11px;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 180ms, color 180ms;
}
.tweak-segments button:hover { color: var(--ink); }
.tweak-segments button.active {
  background: var(--gold);
  color: var(--bg);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity, 0.07);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ====== HERO motion field ======
   Three layered noise textures slowly panning + scaling — feels like a
   wide lens drifting across a dust-lit interior. Sits behind hero content. */
.hero-motion {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: var(--motion-opacity, 1);
}
.hero-motion-layer {
  position: absolute;
  inset: -20%;
  background-repeat: repeat;
  will-change: transform;
}
/* Big chunky grain pan — magenta layer */
.hero-motion-1 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='480'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='2' seed='3'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  background-size: 1400px 1400px;
  opacity: 0.55;
  filter: contrast(1.6) brightness(1.4) sepia(1) hue-rotate(285deg) saturate(2.4);
  animation: heroPan1 var(--pan-dur, 60s) linear infinite;
}
/* Mid-detail grain panning the opposite way — cyan layer */
.hero-motion-2 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='3' seed='8'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  background-size: 900px 900px;
  opacity: 0.4;
  filter: contrast(1.5) brightness(1.2) sepia(1) hue-rotate(140deg) saturate(2.6);
  animation: heroPan2 calc(var(--pan-dur, 60s) * 0.7) linear infinite;
}
/* Fine top grain — gold tint, the moving film feel */
.hero-motion-3 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' seed='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 320px 320px;
  opacity: 0.22;
  filter: sepia(0.4) hue-rotate(355deg) saturate(1.6);
  animation: heroPan3 calc(var(--pan-dur, 60s) * 0.25) linear infinite;
}
/* Soft vignette so the type still pops — deep magenta + cyan rim */
.hero-motion-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(232, 74, 124, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(78, 212, 212, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(10,9,8,0.45) 65%, rgba(10,9,8,0.92) 100%),
    linear-gradient(180deg, rgba(10,9,8,0.45) 0%, transparent 25%, transparent 70%, rgba(10,9,8,0.65) 100%);
}

@keyframes heroPan1 {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1.05); }
  50%  { transform: translate3d( 3%,  2%, 0) scale(1.10); }
  100% { transform: translate3d(-4%, -2%, 0) scale(1.05); }
}
@keyframes heroPan2 {
  0%   { transform: translate3d( 3%,  1%, 0); }
  50%  { transform: translate3d(-3%, -2%, 0); }
  100% { transform: translate3d( 3%,  1%, 0); }
}
@keyframes heroPan3 {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-320px, 320px, 0); }
}

.motion-off .hero-motion { display: none; }
.motion-off .grain { opacity: 0.04; }
.hero { position: relative; }
.hero > *:not(.hero-motion) { position: relative; z-index: 2; }

/* ====== utilities ====== */
.meta-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta-num {
  color: var(--gold);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

em {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

/* Section indices alternate color — feels like film reel chapters */
.section-head .meta-num { color: var(--gold); }
section.services .section-head .meta-num { color: var(--magenta); }
section.work     .section-head .meta-num { color: var(--cyan); }
section.about    .section-head .meta-num { color: var(--violet); }
section.contact  .section-head .meta-num { color: var(--coral); }

/* Italic emphasis cycles through palette */
.hero-headline em { color: var(--gold); }
section.services .section-title em { color: var(--magenta); }
section.work     .section-title em { color: var(--cyan); }
section.about    .section-title em { color: var(--violet); }
section.contact  .section-title em { color: var(--coral); }

/* ====== reveal-on-scroll ======
   Default to visible — content must always render even with no JS / no IO.
   JS adds .js-reveal to <html> only when it intends to drive the animation,
   then per-element .visible flips them in. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.js-reveal .reveal.visible {
  opacity: 1;
  transform: none;
}
.js-reveal .reveal.delay-1 { transition-delay: 90ms; }
.js-reveal .reveal.delay-2 { transition-delay: 180ms; }
.js-reveal .reveal.delay-3 { transition-delay: 270ms; }

/* ====== NAV ====== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  background: rgba(10, 9, 8, 0.0);
  transition: background 280ms var(--ease), border-color 280ms var(--ease), backdrop-filter 280ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }

/* T1 chip mark */
.brand-mark {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 5px;
  background: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232, 178, 58, 0.18);
}
.brand-mark-text {
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  color: var(--bg);
  letter-spacing: -0.08em;
  transform: translateY(1px);
}
.brand-mark-dot {
  position: absolute;
  top: 3px; right: 3px;
  width: 3px; height: 3px;
  border-radius: 999px;
  background: var(--bg);
  opacity: 0.55;
}
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 12px;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 180ms var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transition: right 260ms var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

.nav-toggle { display: none; }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 40;
  background: rgba(10, 9, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease), transform 320ms var(--ease);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu a.mobile-cta { color: var(--gold); border-bottom: 0; margin-top: 12px; }

/* ====== generic layout ====== */
section {
  position: relative;
  z-index: 2;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 120px;
  margin-bottom: 56px;
}
.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 56px) var(--gutter) 64px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  z-index: 2;
}
.hero-headline { margin-top: auto; }
.hero-foot { margin-top: auto; }
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}
.meta-loc {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.hero-headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(60px, 11.5vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.hero-headline .line { display: block; }
.hero-headline em {
  font-size: 0.92em;
  letter-spacing: -0.02em;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 16px;
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
  flex-wrap: wrap;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 460px;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--ink-4);
  position: relative;
  overflow: hidden;
}
.scroll-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scrollLine 2.6s var(--ease-2) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ====== CTA ====== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.cta-gold {
  background: var(--gold);
  color: var(--bg);
}
.cta-gold:hover {
  background: var(--gold-bright);
}
.cta-gold svg { transition: transform 240ms var(--ease); }
.cta-gold:hover svg { transform: translateX(4px); }
.cta-lg { padding: 16px 26px; font-size: 13px; }

.cta-ghost {
  border-color: var(--ink-3);
  color: var(--ink);
}
.cta-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ====== SERVICES ====== */
.services { padding-bottom: 120px; }
.section-title em { display: inline; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  padding: 32px 28px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 320ms var(--ease), background 320ms var(--ease), transform 320ms var(--ease);
  --svc-accent: var(--gold);
}
.service-grid > .service:nth-child(1) { --svc-accent: var(--magenta); }
.service-grid > .service:nth-child(2) { --svc-accent: var(--cyan); }
.service-grid > .service:nth-child(3) { --svc-accent: var(--violet); }
.service::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--svc-accent), transparent);
  transform: translateX(-100%);
  transition: transform 600ms var(--ease);
}
.service:hover {
  border-color: var(--svc-accent);
  background: var(--surface-hi);
  transform: translateY(-4px);
}
.service:hover::after { transform: none; }

.service-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--svc-accent);
}
.service-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.service-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--svc-accent);
}

/* ====== TOOLS MARQUEE ====== */
.tools {
  /* break out of the max-width container so the marquee runs edge-to-edge */
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  padding-bottom: 80px;
}
.tools-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--gutter) 28px;
}
.tools-head .meta-num { color: var(--gold); }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-strip {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}
.logo:hover {
  border-color: var(--ink-3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.logo-mark-shape { padding: 0; background: transparent !important; }
.logo-mark-shape svg { width: 100%; height: 100%; display: block; }

.logo-mark-png {
  padding: 4px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}
.logo-mark-png img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Notion is solid black on transparent — give it a light backplate so it reads */
.logo:has(img[src*="notion"]) .logo-mark-png,
.logo:has(img[src*="capcut"]) .logo-mark-png {
  background: #FFFFFF;
}

/* Adobe-style chip backgrounds */
.logo-pr .logo-mark { background: #2A0634; color: #DCAEFF; border: 1px solid #6B27A5; }
.logo-ae .logo-mark { background: #1E0735; color: #B69CFF; border: 1px solid #4A2A9C; }
.logo-ps .logo-mark { background: #001E36; color: #31A8FF; border: 1px solid #0B5394; }
.logo-lr .logo-mark { background: #001E36; color: #66B5F8; border: 1px solid #0B5394; }
.logo-ai .logo-mark { background: #330000; color: #FF9A00; border: 1px solid #B85318; }

.logo-name {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .logo { padding: 14px 20px; gap: 10px; }
  .logo-mark { width: 36px; height: 36px; font-size: 18px; }
  .logo-name { font-size: 12px; }
  .marquee-strip { gap: 24px; padding-right: 24px; }
}
/* ====== WORK ====== */
.work { padding-bottom: 120px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--ink);
  cursor: pointer;
}
.tile-art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tile-fill {
  position: absolute; inset: 0;
  background-size: 200% 200%;
  background-position: 0% 50%;
  transition: transform 800ms var(--ease);
  animation: tileBreathe 14s ease-in-out infinite;
}
.tile-b .tile-fill { animation-duration: 18s; animation-delay: -3s; }
.tile-c .tile-fill { animation-duration: 11s; animation-delay: -6s; }
.breathe-off .tile-fill { animation: none; background-position: 50% 50%; }
@keyframes tileBreathe {
  0%   { background-position:   0% 30%; }
  50%  { background-position: 100% 80%; }
  100% { background-position:   0% 30%; }
}
.tile-noise {
  position: absolute; inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.tile-a .tile-fill { background: radial-gradient(circle at 30% 70%, var(--magenta) 0%, var(--magenta-deep) 38%, #2A0E1C 100%); background-size: 220% 220%; }
.tile-b .tile-fill { background: radial-gradient(circle at 70% 30%, var(--cyan) 0%, var(--cyan-deep) 42%, #0D2A2A 100%); background-size: 220% 220%; }
.tile-c .tile-fill { background: radial-gradient(circle at 40% 60%, var(--violet) 0%, var(--violet-deep) 45%, #1A0F38 100%); background-size: 220% 220%; }
.tile-play {
  position: absolute;
  bottom: 22px; left: 22px;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: rgba(244, 236, 220, 0.92);
  color: var(--bg);
  display: grid;
  place-items: center;
  transform: scale(0.84) translateY(8px);
  opacity: 0;
  transition: transform 360ms var(--ease), opacity 300ms var(--ease);
}
.tile:hover .tile-fill { transform: scale(1.04); }
.tile:hover .tile-play { transform: none; opacity: 1; }
.tile-meta { display: flex; flex-direction: column; gap: 8px; }
.tile-a .tile-cat { color: var(--magenta); }
.tile-b .tile-cat { color: var(--cyan); }
.tile-c .tile-cat { color: var(--violet); }
.tile-cat {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.tile-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

/* ====== ABOUT ====== */
.about { padding-bottom: 120px; }
.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.about-portrait {
  position: relative;
  border: 1px solid var(--border-2);
  overflow: hidden;
  min-height: 100%;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,9,8,0.45) 100%);
  pointer-events: none;
}
.about-side { display: flex; flex-direction: column; gap: 32px; padding-top: 4px; }
.about-title { font-size: clamp(36px, 5vw, 64px); }
.about-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
}
.about-stats .stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--gold);
}
.stat-amp { color: var(--ink-2); font-weight: 700; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat:nth-child(1) .stat-num { color: var(--magenta); }
.stat:nth-child(2) .stat-num { color: var(--cyan); }
.stat:nth-child(3) .stat-num { color: var(--violet); }
.stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ====== CONTACT ====== */
.contact { padding-bottom: 140px; }
.contact-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 4px 0 0;
  max-width: 560px;
  text-wrap: pretty;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 720px;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-2);
  padding: 12px 0 14px;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  width: 100%;
  resize: none;
  transition: border-color 220ms var(--ease);
}
.field textarea { min-height: 120px; font-size: 16px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--gold); }
.field input:focus ~ label, .field textarea:focus ~ label { color: var(--gold); }
.field.error input, .field.error textarea { border-bottom-color: #B85339; }

.form-foot {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.form-note { font-size: 12.5px; color: var(--ink-3); }
.form-note a { color: var(--ink); border-bottom: 1px solid var(--gold-deep); transition: color 200ms var(--ease); }
.form-note a:hover { color: var(--gold); }

.hp-field { position: absolute; left: -9999px; }

/* ====== FAQ ====== */
.faq { padding-bottom: 120px; }
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
  max-width: 880px;
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  transition: color 220ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 220ms var(--ease);
}
.faq-item:hover .faq-q { color: var(--gold); }
.faq-icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 280ms var(--ease), opacity 220ms var(--ease);
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq-a {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  padding: 4px 64px 28px 4px;
  max-width: 680px;
  text-wrap: pretty;
}
.faq-item[open] summary .faq-q { color: var(--gold); }

/* ====== FOOTER ====== */
.foot {
  border-top: 1px solid var(--hairline);
  padding: 32px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.foot-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.foot-meta {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot-row .foot-meta:nth-child(2) { margin-left: auto; }
.brand-foot .brand-mark { width: 24px; height: 24px; border-radius: 4px; box-shadow: none; }
.brand-foot .brand-mark-text { font-size: 15px; }
.brand-foot .brand-mark-dot { top: 2px; right: 2px; width: 2.5px; height: 2.5px; }
.brand-foot .brand-name { font-size: 18px; }

/* ====== ONBOARDING MODAL ====== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal[aria-hidden="false"] {
  display: block;
}
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 4, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.modal-doc {
  position: absolute;
  inset: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  overflow-y: auto;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
@keyframes docIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* doc header — feels like a film slate */
.ob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
  position: sticky; top: 0; z-index: 2;
}
.ob-stamp { display: flex; align-items: center; gap: 14px; }
.ob-stamp-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.ob-stamp-bar { width: 28px; height: 1px; background: var(--gold-deep); }
.ob-stamp-meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.modal-close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--ink-2);
  border: 1px solid var(--border-2);
  transition: color 180ms, border-color 180ms;
}
.modal-close:hover { color: var(--gold); border-color: var(--gold-deep); }

.ob-hero {
  padding: 56px 56px 32px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ob-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
}
.ob-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0;
}

.ob-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.ob-card {
  background: var(--bg-2);
  padding: 32px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ob-card-wide { grid-column: span 2; }
.ob-card-head { display: flex; align-items: baseline; gap: 16px; }
.ob-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.ob-card-head h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.ob-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

/* deliverables checklist */
.ob-check, .ob-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.ob-check li, .ob-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.4;
}
.ob-check .check {
  width: 18px; height: 18px;
  border: 1px solid var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}
.ob-check .check::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: solid var(--gold);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.ob-list .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 9px;
}

/* timeline */
.ob-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.ob-timeline li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 4px 0;
  position: relative;
}
.ob-timeline li + li { padding-left: 24px; border-left: 1px solid var(--hairline); }
.ob-week {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gold);
}
.ob-step { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.ob-step strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }

/* big "2 rounds" feature */
.ob-bignum {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0 8px;
}
.ob-bignum > :first-child {
  font-family: var(--display);
  font-weight: 800;
  font-size: 120px;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.ob-bignum span {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.3;
}

/* payment terms */
.ob-pay {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: flex-start;
  padding-top: 4px;
}
.ob-pay-half { display: flex; flex-direction: column; gap: 12px; }
.ob-pay-pct {
  font-family: var(--display);
  font-weight: 800;
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--gold);
}
.ob-pay-bar {
  height: 4px;
  background: var(--border-2);
  position: relative;
}
.ob-pay-bar span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
}
.ob-pay-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.ob-pay-note { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ob-pay-divider { width: 1px; background: var(--hairline); align-self: stretch; }
.ob-fineprint {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.ob-foot {
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
}
.ob-foot-meta {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    width: 36px; height: 36px;
    margin-left: auto;
    align-items: center; justify-content: center;
    border: 1px solid var(--border-2);
  }
  .nav-toggle span {
    width: 16px; height: 1.5px; background: var(--ink);
    transition: transform 240ms var(--ease), opacity 200ms;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

  .service-grid, .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 24px; }

  .ob-grid { grid-template-columns: 1fr; }
  .ob-card-wide { grid-column: auto; }
  .ob-check, .ob-list { grid-template-columns: 1fr; }
  .ob-timeline { grid-template-columns: 1fr; }
  .ob-timeline li + li { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: 24px; }
  .ob-pay { grid-template-columns: 1fr; gap: 28px; }
  .ob-pay-divider { display: none; }
  .ob-hero { padding: 32px 24px; }
  .ob-card { padding: 28px 24px; }
  .ob-head { padding: 16px 24px; }
  .ob-foot { padding: 20px 24px; }
  .modal-doc { inset: 0; border: 0; }
}

@media (max-width: 560px) {
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .meta-loc { display: none; }
  .about-stats { grid-template-columns: 1fr; gap: 20px; }
  .stat-num { font-size: 44px; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot-row .foot-meta:nth-child(2) { margin-left: 0; }
}

/* prefers-reduced-motion: keep transitions calm but don't kill animations entirely
   (long, opacity-only ones still finish well; entry animations get a fill-mode safety net) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
  }
}
