/* =================================================================
   Tell If AI — landing
   Aesthetic notes: Bunsen-adjacent. Sequel Sans → Switzer.
   Editorial italic accents → Gambarino. Mono → JetBrains Mono.
   Palette: #0e0e0f bg, #f5f5f4 ink, #b07bff accent.
   ================================================================= */

:root {
  --bg:        #0e0e0f;
  --bg-soft:   #141416;
  --ink:       #f5f5f4;
  --ink-dim:   rgba(245, 245, 244, 0.55);
  --ink-faint: rgba(245, 245, 244, 0.18);
  --rule:      rgba(245, 245, 244, 0.10);
  --accent:    #b07bff;
  --accent-2:  #ff6ad6;
  --accent-3:  #ffb37a;

  --sans:    "Switzer", "Söhne", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --serif:   "Gambarino", "GT Sectra", "Times New Roman", serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter:  clamp(20px, 4vw, 60px);
  --max:     1480px;

  --ease:        cubic-bezier(0.22, 0.65, 0.18, 1);
  --ease-cubic:  cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(900px 600px at 110% -10%, rgba(176, 123, 255, 0.10), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(255, 106, 214, 0.06), transparent 60%),
    var(--bg);
}

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #0e0e0f; }

.mono  { font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; }
.ital,
.italic { font-family: var(--sans); font-style: normal; font-weight: 400; color: var(--ink); }

/* ───── grain overlay ───── */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ───── nav ───── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  background: linear-gradient(to bottom, rgba(14, 14, 15, 0.7), rgba(14, 14, 15, 0));
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(14, 14, 15, 0.78);
  border-bottom-color: var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}
.brand__mark { width: 38px; height: 38px; filter: invert(1); }
.brand__name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.brand__dot  { color: var(--accent); }

.nav__links {
  display: flex;
  gap: clamp(20px, 2.6vw, 38px);
  font-size: 13.5px;
  color: var(--ink-dim);
  justify-self: center;
}
.nav__links a {
  position: relative;
  padding: 4px 2px;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
  justify-self: end;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__cta:hover { border-color: var(--ink-dim); transform: translateY(-1px); }
.nav__cta--static { cursor: default; user-select: text; }
.nav__cta--static:hover { transform: none; border-color: var(--rule); }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.2); }
}

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
}

/* ───── shared eyebrow / heading ───── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.eyebrow .mono { color: var(--accent); }

.big-type {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 110px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.big-type .ital,
.big-type .italic {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.035em;
}

/* ───── hero ───── */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 130px var(--gutter) 80px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(60px, 8vh, 110px);
  overflow: hidden;
  isolation: isolate;
}
.hero > * { position: relative; z-index: 1; }
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
}
/* dark scrim — keeps the headline legible on top of the bright rings.
   Solid bg on the left, fades to transparent past the title column. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(14, 14, 15, 1)    0%,
      rgba(14, 14, 15, 0.98) 38%,
      rgba(14, 14, 15, 0.78) 56%,
      rgba(14, 14, 15, 0)    78%
    );
}
/* soft top + bottom feather so eyebrow / sub copy never sit on a bright ring */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(14, 14, 15, 0.55) 0%,
      rgba(14, 14, 15, 0)    18%,
      rgba(14, 14, 15, 0)    78%,
      rgba(14, 14, 15, 0.55) 100%
    );
}
@media (max-width: 900px) {
  .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(14, 14, 15, 0.92) 0%,
      rgba(14, 14, 15, 0.75) 40%,
      rgba(14, 14, 15, 0.50) 60%,
      rgba(14, 14, 15, 0)    100%
    );
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.hero__eyebrow .bullet {
  font-size: 7px;
  color: var(--accent);
  transform: translateY(-2px);
  margin: 0 4px;
}
.yc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #ff6600;
  border-radius: 2px;
  margin-right: -2px;
}
.yc__y {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(0.5px);
}

.hero__title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(64px, 13.5vw, 230px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  /* tiny dark cast under the type, so wide horizontal letterforms don't
     bleed against any bright ring that pokes through the scrim */
  text-shadow: 0 2px 24px rgba(14, 14, 15, 0.55);
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0;
}
.hero__title .word {
  display: inline-block;
  will-change: transform;
}
.hero__title .word.italic {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.045em;
}
.hero__title .period { color: var(--ink); }

.hero__sub {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  max-width: var(--max);
}
.hero__sub p {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--ink-dim);
}
.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  transition: color 0.25s var(--ease);
}
.hero__cue:hover { color: var(--ink); }
.hero__cue svg { animation: bob 2.4s var(--ease) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ───── marquee ───── */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 28px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, 7vw, 100px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  animation: track 32s linear infinite;
  will-change: transform;
}
.marquee__track .ital {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.marquee__track .diamond {
  font-size: 0.34em;
  color: var(--ink-faint);
  transform: translateY(-0.25em);
}
@keyframes track {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───── generic section frames ───── */
.studio,
.practice,
.team,
.partners {
  padding: clamp(80px, 14vh, 180px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 56px);
  margin-bottom: clamp(48px, 8vh, 100px);
}
.section-head--simple { margin-bottom: clamp(24px, 4vh, 48px); gap: 0; }

/* ───── studio ───── */
.studio { display: grid; gap: clamp(48px, 7vh, 90px); }
.studio__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  max-width: 90ch;
  margin-left: auto;
}
.studio__body p {
  margin: 0;
  font-size: clamp(15.5px, 1.05vw, 18px);
  line-height: 1.6;
  color: var(--ink-dim);
}
.studio .big-type { max-width: 18ch; }
@media (max-width: 900px) {
  .studio__body { grid-template-columns: 1fr; gap: 20px; margin-left: 0; }
}

/* ───── practice (numbered list) ───── */
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 3.4vw, 40px) 4px;
  border-bottom: 1px solid var(--rule);
  cursor: default;
  isolation: isolate;
  overflow: hidden;
  transition: padding-left 0.55s var(--ease);
}
.row__num {
  font-size: 12.5px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  z-index: 1;
}
.row__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 68px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  z-index: 1;
  transition: transform 0.6s var(--ease), color 0.45s var(--ease);
}
.row__tag {
  font-size: 11.5px;
  color: var(--ink-faint);
  z-index: 1;
  transition: color 0.45s var(--ease), transform 0.55s var(--ease);
}
.row__hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(176, 123, 255, 0.0), rgba(176, 123, 255, 0.10) 35%, rgba(255, 106, 214, 0.10) 70%, rgba(255, 179, 122, 0.0));
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease);
  z-index: 0;
}
.row:hover {
  padding-left: 24px;
}
.row:hover .row__hover { transform: translateX(0); }
.row:hover .row__title {
  color: var(--ink);
  transform: translateX(8px);
}
.row:hover .row__tag {
  color: var(--accent);
  transform: translateX(-8px);
}

/* ───── team ───── */
.team__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 32px);
}

.member {
  display: grid;
  grid-template-columns: 140px 1fr 180px;
  gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
  padding: clamp(20px, 2.2vw, 28px) clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  border-radius: 6px;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.member:hover { border-color: var(--ink-dim); transform: translateY(-3px); }
.member__photo {
  margin: 0;
  width: 140px;
  height: 168px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
}
.member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
@media (hover: hover) {
  .member__photo img {
    transition: transform 1.5s var(--ease);
  }
  .member:hover .member__photo img { transform: scale(1.04); }
}
.member__bios { display: flex; flex-direction: column; gap: 10px; }
.member__meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.member__name {
  margin: 0;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.member__role {
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.16em;
}
.member__bio {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 64ch;
}
.member__stats {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 0 0 clamp(20px, 2.4vw, 32px);
  border-left: 1px solid var(--rule);
  align-self: stretch;
}
.member__stats > div { display: flex; flex-direction: column; gap: 4px; }
.member__stats dt {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
}
.member__stats dd {
  margin: 0;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

@media (max-width: 880px) {
  .member { grid-template-columns: 120px 1fr; }
  .member__photo { width: 120px; height: 144px; }
  .member__stats {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 22px;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}
@media (max-width: 560px) {
  .member { grid-template-columns: 1fr; }
  .member__photo { width: 140px; height: 168px; }
}

/* ───── partners ───── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 800px) { .partner-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 320px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          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.6s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-3px); }
.card:hover::before { opacity: 0.9; }
.card--ghost { opacity: 0.45; }
.card__head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.16em;
}
.card__title {
  margin: auto 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
  color: var(--ink);
}
.card__foot {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.16em;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

/* ───── contact ───── */
.contact {
  padding: clamp(100px, 18vh, 220px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 56px);
}
.contact__title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(46px, 8.8vw, 160px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}
.contact__title .ital,
.contact__title .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.025em;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 56px);
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  width: fit-content;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), gap 0.45s var(--ease);
}
.contact__email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  gap: 26px;
}
.contact__email svg { transition: transform 0.45s var(--ease); }
.contact__email:hover svg { transform: translate(4px, -4px); }

/* ───── footer ───── */
.foot {
  border-top: 1px solid var(--rule);
  padding: 36px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.foot__row { display: flex; align-items: center; gap: 28px; }
.foot__row--meta { gap: clamp(16px, 3vw, 40px); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.16em; }
.foot__mark { width: 26px; height: 26px; filter: invert(1); opacity: 0.85; }
.foot__name { font-size: 15px; color: var(--ink-dim); }

@media (max-width: 720px) {
  .foot { flex-direction: column; align-items: flex-start; }
}

/* ───── reveal hooks (controlled by GSAP if loaded) ───── */
.js-fade  { opacity: 0; transform: translate3d(0, 18px, 0); }
.js-row   { opacity: 0; transform: translate3d(0, 18px, 0); }
.js-reveal .ital,
.js-reveal .italic,
.js-reveal { /* GSAP attaches per-line splits */ }

/* fallback: if JS disabled, show everything */
.no-js .js-fade,
.no-js .js-row,
.no-js .hero__title .word { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js-fade, .js-row, .hero__title .word { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
}
