/* ============================================================
   OFFBEAT NY — The Signal Studio
   Black canvas. White language. RGB signal. Human texture.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --black: #050506;
  --near-black: #0a0a0c;
  --panel: #0d0d10;
  --panel-2: #111116;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --white: #f5f4f1;
  --gray: #9a9aa4;
  --gray-dim: #6b6b75;

  /* RGB signal accents */
  --red: #ff3b4e;
  --green: #25f4a0;
  --blue: #4b7bff;
  --cyan: #34e6ff;
  --magenta: #ff45d8;

  --accent: var(--cyan);

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(5.5rem, 13vh, 11rem);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--cyan); color: var(--black); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   TEXTURE LAYERS — grain, scanlines, vignette, cursor glow
   ============================================================ */
.grain {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: var(--grain-url, none);
  background-size: 220px 220px;
  animation: grain-shift 0.6s steps(2) infinite;
}
/* Procedural SVG grain fallback (used until Adobe plate is injected via --grain-url) */
.grain::after {
  content: "";
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
}
.grain[data-plate="on"]::after { display: none; }
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-6px, 4px); }
}

.scanlines {
  position: fixed; inset: 0; z-index: 8999;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.022) 0px,
    rgba(255, 255, 255, 0.022) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed; inset: 0; z-index: 8998;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 35%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 8997;
  width: 480px; height: 480px;
  margin: -240px 0 0 -240px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
  background: radial-gradient(circle,
    rgba(52, 230, 255, 0.10) 0%,
    rgba(255, 69, 216, 0.05) 35%,
    transparent 68%);
  mix-blend-mode: screen;
  will-change: transform;
}
body.cursor-active .cursor-glow { opacity: 1; }

/* precise lag-ring cursor (desktop, fine pointer only — added via JS) */
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9001;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid rgba(245,244,241,0.5);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft),
              width 0.3s var(--ease), height 0.3s var(--ease),
              margin 0.3s var(--ease), border-color 0.3s, background 0.3s;
  mix-blend-mode: difference;
  will-change: transform;
}
body.cursor-active .cursor-ring { opacity: 1; }
body.cursor-hot .cursor-ring {
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-color: var(--cyan);
  background: rgba(52,230,255,0.06);
  mix-blend-mode: normal;
}

/* ============================================================
   TYPOGRAPHY PRIMITIVES
   ============================================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.6rem;
}
.eyebrow--center { justify-content: center; }
.eyebrow__dot {
  position: relative;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  flex: 0 0 auto;
}
/* radar-style signal ping */
.eyebrow__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: signal-ping 2.8s var(--ease-soft) infinite;
}
@keyframes signal-ping {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(3.6); opacity: 0; }
}

.display {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.1rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 2.4rem;
  max-width: 18ch;
}
.display em { font-style: italic; font-weight: 340; }

.statement {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 2.5rem;
}

.word-signal {
  font-style: italic;
  background: linear-gradient(102deg, var(--cyan) 6%, var(--white) 48%, var(--magenta) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Chromatic-aberration headline word: white type with subtle RGB split */
.word-chroma {
  position: relative;
  font-style: italic;
  color: var(--white);
  text-shadow:
    -0.018em 0 rgba(52, 230, 255, 0.55),
    0.018em 0 rgba(255, 69, 216, 0.5);
}

.prose p {
  color: var(--gray);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: 1.4rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose--narrow p { max-width: 50ch; }
.prose--columns {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 5rem);
}
.prose--columns p { break-inside: avoid; }
@media (max-width: 760px) { .prose--columns { columns: 1; } }

.pull-quote {
  font-family: var(--serif) !important;
  font-size: clamp(1.4rem, 3vw, 2.1rem) !important;
  line-height: 1.25 !important;
  color: var(--white) !important;
  max-width: 24ch !important;
  margin-top: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.05em 1.8em;
  border-radius: 100px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.3s;
  isolation: isolate;
}
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn--primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--cyan), var(--magenta));
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.btn--primary:hover {
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(52,230,255,0.3), 0 0 60px rgba(255,69,216,0.18);
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover .btn__arrow { transform: translateX(5px); }

.btn--nav {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0.7em 1.3em;
  font-size: 0.72rem;
}
.btn--nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(52,230,255,0.18), rgba(255,69,216,0.18));
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.btn--nav:hover { box-shadow: inset 0 0 0 1px var(--cyan); }
.btn--nav:hover::before { opacity: 1; }

.btn--ghost {
  box-shadow: inset 0 0 0 1px var(--line);
  justify-content: center;
}
.btn--block { width: 100%; justify-content: center; margin-top: 0.5rem; }

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.5s var(--ease-soft), backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 5, 6, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.5em; }
.brand-logo {
  height: clamp(30px, 3.8vw, 44px);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.10));
}
.footer__brand { display: flex; align-items: center; gap: 0.55em; }
.brand-logo--footer { height: clamp(34px, 5vw, 46px); }

/* ---------- animated letter logo (appear one-by-one → domino loop → static) ---------- */
.brand-logo-svg { overflow: visible; }              /* let letters tip past the box */
.brand-logo-svg .ltr {
  transform-box: fill-box;
  transform-origin: 100% 100%;                      /* pivot at bottom-right (domino) */
}
.js .brand-logo-svg .ltr { opacity: 0; }            /* hidden until JS plays it */
.brand-logo-svg.is-playing .ltr {
  animation: logo-domino 1.7s cubic-bezier(0.5, 0, 0.2, 1) 4 both;
  animation-delay: calc(var(--i) * 0.16s);
}
.brand-logo-svg.is-static .ltr {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
@keyframes logo-domino {
  0%   { opacity: 0; transform: translateY(-45%) rotate(-7deg); }  /* drop in */
  9%   { opacity: 1; transform: translateY(0) rotate(0deg); }      /* land upright */
  46%  { opacity: 1; transform: translateY(0) rotate(0deg); }      /* hold */
  64%  { opacity: 1; transform: rotate(84deg); }                   /* tip over → domino */
  76%  { opacity: 1; transform: rotate(84deg); }                   /* lie fallen */
  86%  { opacity: 0; transform: rotate(84deg); }                   /* fade while down */
  100% { opacity: 0; transform: translateY(-45%) rotate(-7deg); }  /* reset for next round */
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo-svg .ltr { opacity: 1 !important; transform: none !important; animation: none !important; }
}
.nav__wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.nav__ny {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  transform: translateY(-0.7em);
  text-shadow: 0 0 10px rgba(52,230,255,0.6);
}
.nav__links {
  display: flex; gap: clamp(1.2rem, 2.5vw, 2.4rem);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--gray);
  position: relative;
  padding: 0.3em 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width 0.4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-current::after { width: 100%; }

.nav__progress {
  position: absolute; bottom: 0; left: 0; height: 1px; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--blue));
  box-shadow: 0 0 8px rgba(52,230,255,0.6);
}

.nav__toggle {
  display: none;
  flex-direction: column; gap: 5px;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
}
.nav__toggle span {
  width: 22px; height: 1.5px; background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav.menu-open .nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.menu-open .nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(5,5,6,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-soft), visibility 0.45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--white);
}
.mobile-menu .btn { font-family: var(--mono); font-size: 0.85rem; margin-top: 1rem; }

/* ============================================================
   HERO + SIGNAL FIELD
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
.signal-field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 20% 30%, transparent 40%, rgba(5,5,6,0.5) 100%),
    linear-gradient(to bottom, rgba(5,5,6,0.2), transparent 25%, transparent 60%, var(--black));
}
.hero__content { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.hero__title em { font-style: italic; font-weight: 320; }
/* masked per-line cinematic entrance */
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line__in {
  display: block;
  transition: transform 1.15s var(--ease), opacity 1.15s var(--ease);
}
.js .hero__title .line__in { transform: translateY(112%); opacity: 0; }
.hero__title .line:nth-child(2) .line__in { transition-delay: 0.14s; }
body.loaded .hero__title .line__in { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__title .line__in { opacity: 1 !important; transform: none !important; }
}

.hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  color: var(--white);
  max-width: 46ch;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.hero__support {
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
  color: var(--gray);
  max-width: 60ch;
  margin-bottom: 2.6rem;
}
.hero__actions {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.hero__micro {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--gray-dim);
  max-width: 34ch;
  line-height: 1.6;
}
.hero__positioning {
  position: relative; z-index: 2;
  margin-top: auto;
  padding-top: 3rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  color: var(--white);
  max-width: 40ch;
  border-top: 1px solid var(--line-soft);
}
.hero__positioning-mark {
  color: var(--cyan);
  font-style: normal;
  margin-right: 0.4em;
  text-shadow: 0 0 14px rgba(52,230,255,0.6);
}

.scroll-cue {
  position: absolute; bottom: 1.8rem; right: var(--gutter); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gray-dim);
  writing-mode: vertical-rl;
}
.scroll-cue__line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-line 2.2s var(--ease-soft) infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ============================================================
   GENERIC SECTION + GRID
   ============================================================ */
.section {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--line-soft);
}
.section--problem { border-top: none; }
.section__head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section__head--center { text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .display { margin-inline: auto; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: clamp(1.5rem, 3vw, 2.5rem);
}
.grid-12 .eyebrow { grid-column: 1 / -1; }
.grid-12 .display { grid-column: 1 / span 11; }
.grid-12 .prose { grid-column: 1 / span 10; }

/* Problem / Curated: full-width prose under heading */
.section--problem .prose,
.section--curated .prose { grid-column: 1 / -1; }

/* Split layouts */
.section--split .split__left,
.section--difference .display { grid-column: 1 / span 6; }
.section--split .split__right { grid-column: 7 / -1; align-self: end; }
.section--difference .prose { grid-column: 7 / -1; }

.section--teams .display { grid-column: 1 / span 7; }
.section--teams .split__right { grid-column: 8 / -1; }
.section--audience .display { grid-column: 1 / span 6; }
.section--audience .split__right { grid-column: 7 / -1; align-self: end; }

@media (max-width: 900px) {
  .grid-12 .display,
  .grid-12 .prose,
  .section--split .split__left,
  .section--split .split__right,
  .section--difference .display,
  .section--difference .prose,
  .section--teams .display,
  .section--teams .split__right,
  .section--audience .display,
  .section--audience .split__right { grid-column: 1 / -1; }
}

/* ============================================================
   SERVICES — modular cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}
.card {
  position: relative;
  background: var(--near-black);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: background 0.5s var(--ease-soft), transform 0.5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s var(--ease-soft);
  background: radial-gradient(90% 90% at var(--mx, 50%) var(--my, 0%),
    var(--rgb-glow, rgba(52,230,255,0.14)) 0%, transparent 60%);
  pointer-events: none;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  opacity: 0; transition: opacity 0.6s var(--ease-soft);
  box-shadow: inset 0 0 0 1px var(--rgb-edge, rgba(52,230,255,0.5));
  pointer-events: none;
}
/* sweeping signal line across the top edge on hover */
.card__beam {
  position: absolute; top: 0; left: 0; height: 1px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--rgb-edge, var(--cyan)), transparent);
  opacity: 0; transition: transform 0.7s var(--ease), opacity 0.4s;
  pointer-events: none;
}
.card:hover { background: var(--panel-2); transform: translateY(-3px); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover .card__beam { transform: scaleX(1); opacity: 1; }
.card:hover .card__index { color: var(--white); }
.card__index { transition: color 0.4s; }
.card[data-rgb="red"]    { --rgb-glow: rgba(255,59,78,0.16);  --rgb-edge: rgba(255,59,78,0.55); }
.card[data-rgb="green"]  { --rgb-glow: rgba(37,244,160,0.14); --rgb-edge: rgba(37,244,160,0.5); }
.card[data-rgb="blue"]   { --rgb-glow: rgba(75,123,255,0.16); --rgb-edge: rgba(75,123,255,0.55); }
.card[data-rgb="cyan"]   { --rgb-glow: rgba(52,230,255,0.16); --rgb-edge: rgba(52,230,255,0.55); }
.card[data-rgb="magenta"]{ --rgb-glow: rgba(255,69,216,0.16); --rgb-edge: rgba(255,69,216,0.55); }

.card__index {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gray-dim);
  margin-bottom: auto;
}
.card__title {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.15;
  margin: 1.4rem 0 0.7rem;
  letter-spacing: -0.01em;
}
.card__body {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================================
   SERVICE ARCHITECTURE — feature cards
   ============================================================ */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 900px) { .feature-cards { grid-template-columns: 1fr; } }

.feature-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--near-black) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.feature-card__edge {
  position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--cyan), transparent 35%, transparent 65%, var(--magenta));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.5s var(--ease-soft);
}
.feature-card:hover { transform: translateY(-6px); border-color: transparent; }
.feature-card:hover .feature-card__edge { opacity: 1; }
.feature-card__num {
  font-family: var(--mono);
  font-size: 0.8rem; letter-spacing: 0.2em; color: var(--cyan);
}
.feature-card__title {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  margin: 1rem 0 1rem;
  letter-spacing: -0.01em;
}
.feature-card__desc {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  min-height: 4.5em;
}
.feature-card__list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.feature-card__list li {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--white);
  padding-left: 1.4em;
  position: relative;
}
.feature-card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

/* ============================================================
   TEAMS — tabs
   ============================================================ */
.tabs {
  grid-column: 1 / -1;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--near-black);
}
.tabs__controls {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 1.3rem 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s;
}
.tab.is-active { color: var(--white); }
.tab:hover { color: var(--white); }
.tabs__indicator {
  position: absolute; bottom: -1px; left: 0;
  width: 33.333%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px rgba(52,230,255,0.7);
  transition: transform 0.5s var(--ease);
}
.tabs__panels { padding: clamp(2rem, 4vw, 3.5rem); }
.tab-panel { animation: fade-up 0.5s var(--ease) both; }
.tab-panel[hidden] { display: none; }
.tab-panel__kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.tab-panel p:not(.tab-panel__kicker) { color: var(--gray); max-width: 60ch; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   METHOD — living brand flow
   ============================================================ */
.method__intro, .method__outro {
  max-width: 70ch; margin-inline: auto; text-align: center;
}
.method__intro { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.method__outro { margin-top: clamp(2.5rem, 5vw, 4rem); }
.method__intro p, .method__outro p { max-width: none; }

.method-flow {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  position: relative;
}
.method-flow__col {
  display: flex; flex-direction: column; gap: 0.7rem;
}
.method-flow__col--out { align-items: flex-end; text-align: right; }
.method-flow__label {
  font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gray-dim); margin-bottom: 0.6rem;
}
.flow-node {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--white);
  padding: 0.3em 0;
  position: relative;
  transition: color 0.4s, transform 0.4s var(--ease);
  opacity: 0.55;
}
.flow-node.is-lit { opacity: 1; color: var(--white); transform: scale(1.04); }
.flow-node.is-lit::after {
  content: ""; position: absolute; bottom: 0;
  width: 100%; height: 1px; left: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.method-flow__col--out .flow-node.is-lit::after {
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
}

.method-flow__core {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.method-flow__lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
}
.method-flow__hub {
  position: relative; z-index: 2;
  width: clamp(120px, 18vw, 180px);
  height: clamp(120px, 18vw, 180px);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: radial-gradient(circle, var(--panel-2), var(--black));
  border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(52,230,255,0.12), inset 0 0 30px rgba(0,0,0,0.6);
}
/* outer aperture ring: slow, breathing, with a gradient arc — not a spinner */
.method-flow__hub::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(52,230,255,0) 0deg, var(--cyan) 70deg,
    rgba(255,255,255,0.2) 150deg, rgba(255,69,216,0) 210deg,
    var(--magenta) 300deg, rgba(52,230,255,0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  opacity: 0.7;
  animation: aperture-spin 26s linear infinite;
}
/* inner counter-rotating tick ring */
.method-flow__hub::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.12);
  animation: aperture-counter 38s linear infinite;
}
@keyframes aperture-spin { to { transform: rotate(360deg); } }
@keyframes aperture-counter { to { transform: rotate(-360deg); } }
.method-flow__hub {
  animation: hub-breathe 6.5s var(--ease-soft) infinite;
}
@keyframes hub-breathe {
  0%, 100% { box-shadow: 0 0 50px rgba(52,230,255,0.10), inset 0 0 30px rgba(0,0,0,0.6); }
  50% { box-shadow: 0 0 80px rgba(52,230,255,0.20), 0 0 120px rgba(255,69,216,0.06), inset 0 0 30px rgba(0,0,0,0.6); }
}
.method-flow__hub-mark {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(0.8rem, 1.4vw, 1rem); letter-spacing: 0.12em;
}
.method-flow__hub-sub {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.15em;
  color: var(--cyan); margin-top: 0.4rem;
}

@media (max-width: 760px) {
  .method-flow { grid-template-columns: 1fr; gap: 2rem; }
  .method-flow__col--out { align-items: flex-start; text-align: left; }
  .method-flow__core { min-height: 200px; order: -1; }
  .method-flow__lines { display: none; }
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.section--philosophy { text-align: left; }
.section--philosophy .statement { margin-top: 0.5rem; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.section--cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(6rem, 14vh, 12rem);
}
.signal-field--cta { opacity: 0.7; }
.cta__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, transparent 30%, var(--black) 90%);
}
.cta__inner { position: relative; z-index: 2; }
.cta__title {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}
.cta__copy {
  color: var(--gray);
  max-width: 60ch;
  margin: 0 auto 3rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  text-align: left;
  max-width: 980px;
  margin-inline: auto;
  background: rgba(10,10,12,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
}
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

.contact__email {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  display: inline-block;
  margin-bottom: 1rem;
  background: linear-gradient(100deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s;
}
.contact__email:hover { opacity: 0.8; }
.contact__note { color: var(--gray); max-width: 32ch; }

.contact__form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray);
}
.field input, .field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85em 1em;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(52,230,255,0.04);
  box-shadow: 0 0 0 3px rgba(52,230,255,0.12);
}
.contact__disclaimer {
  font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.04em;
  color: var(--gray-dim); text-align: center; margin-top: 0.3rem;
}
.contact__success {
  font-size: 0.9rem; color: var(--green);
  background: rgba(37,244,160,0.06);
  border: 1px solid rgba(37,244,160,0.25);
  border-radius: 10px;
  padding: 1rem; text-align: center;
}
.contact__success a { color: var(--green); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer__desc { color: var(--gray); font-size: 0.92rem; max-width: 44ch; }
.footer__meta {
  display: flex; flex-direction: column; gap: 0.6rem;
  text-align: right;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--gray-dim);
}
.footer__meta a { color: var(--cyan); }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  will-change: opacity, transform, filter;
}
.js .reveal { opacity: 0; transform: translateY(34px); filter: blur(7px); }
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
/* stagger children inside a grid/cards */
.cards .reveal.is-visible,
.feature-cards .reveal.is-visible { transition-delay: var(--delay, 0s); }

/* ============================================================
   RESPONSIVE NAV
   ============================================================ */
@media (max-width: 880px) {
  .nav__links, .btn--nav { display: none; }
  .nav__toggle { display: flex; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grain { animation: none; }
  .scroll-cue__line { animation: none; }
}
