/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0a;
  --surface:   #141414;
  --surface2:  #1a1a1a;
  --surface3:  #222222;
  --accent:    #cbff00;
  --green:     #205c40;
  --white:     #ffffff;
  --text:      #ffffff;
  --muted:     #999999;
  --faint:     #555555;
  --border:    rgba(255,255,255,0.08);
  --radius:    12px;
  --radius-pill: 100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY TOKENS ── */
.accent       { color: var(--accent); }
.muted        { color: var(--muted); }
.label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── LAYOUT ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

section { border-top: 1px solid var(--border); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn--pill { border-radius: var(--radius-pill); padding: 11px 24px; }
.btn--accent  { background: var(--accent); color: #000; }
.btn--solid   { background: var(--white); color: #000; }
.btn--outline { border: 1px solid rgba(255,255,255,0.18); color: var(--white); background: transparent; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.nav__links {
  display: flex;
  gap: 36px;
}
.nav__links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }

/* ── HERO ── */
.hero {
  padding: 110px 0 100px;
  border-top: none;
}
.hero__headline {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 20px 0 28px;
  max-width: 900px;
}
.hero__sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__avail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--faint);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent);
}

/* ── ABOUT ── */
.about { padding: 88px 0; overflow: hidden; }
.about__grid {
  display: grid;
  grid-template-columns: 200px 80px 1fr;
  gap: 0;
  align-items: start;
}
.about__label { padding-top: 4px; }
/* Character fills the full section height (bleeds through the padding) so the section never grows */
.about__char { position: relative; align-self: stretch; pointer-events: none; }
.about__char-inner {
  position: absolute;
  left: 24px;
  top: 50%;
  margin-top: -170px;
  height: 340px;
  aspect-ratio: 400 / 962;
  pointer-events: none;
  transform-origin: 50% 100%;
  isolation: isolate;
}
.about__char-inner img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.about__char-hand { transform-origin: 16% 28.3%; }
.about__char-hand { animation: about-wave 3.2s ease-in-out infinite; }
.about__char-inner::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 4%;
  width: 260%; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(32,92,64,.55), rgba(32,92,64,0) 70%);
  z-index: -1;
}
@keyframes about-wave {
  0%, 38%, 100% { transform: rotate(0deg); }
  43% { transform: rotate(13deg); }
  49% { transform: rotate(-9deg); }
  55% { transform: rotate(13deg); }
  61% { transform: rotate(-9deg); }
  67% { transform: rotate(10deg); }
  73% { transform: rotate(0deg); }
}
.about__text { grid-column: 3; }
.about__text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}
.about__text strong { color: var(--white); font-weight: 600; }

/* ── STATS ── */
.stats {
  background: var(--surface);
  padding: 72px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat__num {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.stat__source { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── WORKS ── */
.works { padding: 100px 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}
.section-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}
.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}
.card__img {
  width: 100%;
  height: 280px;
  background: var(--surface3);
  overflow: hidden;
  position: relative;
}
.card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__placeholder {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card__placeholder-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.15);
}
.card__placeholder p {
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card__img img { transition: transform 0.4s; }
.card:hover .card__img img { transform: scale(1.03); }
.card__body { padding: 28px 32px 32px; }
.card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(203,255,0,0.08);
  border: 1px solid rgba(203,255,0,0.25);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}
.card__title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--white);
}
.card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── PROCESS ── */
.process {
  padding: 100px 0;
  background: var(--surface);
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process__card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.process__card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--white);
}
.process__card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── AI BLOCK ── */
.ai { padding: 100px 0; }
.ai__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.ai__text .label { display: block; margin-bottom: 20px; color: var(--accent); }
.ai__text h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.ai__text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}
.ai__tools { display: flex; flex-direction: column; gap: 10px; }
.tool {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s;
}
.tool:hover { border-color: rgba(255,255,255,0.18); }
.tool__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface3);
  flex-shrink: 0;
}

/* ── CTA ── */
.cta {
  padding: 140px 0;
  background: var(--surface);
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta__headline {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.cta__sub {
  font-size: 15px;
  color: var(--muted);
}
.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* ── FOOTER ── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__inner .muted { font-size: 12px; }
.footer__links {
  display: flex;
  gap: 28px;
}
.footer__links a {
  font-size: 12px;
  color: var(--faint);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }

/* ── RESPONSIVE: TABLET ── */
@media (max-width: 900px) {
  .container { padding: 0 40px; }
  .nav__inner { padding: 0 40px; }
  .nav__links { display: none; }

  .hero { padding: 80px 0 72px; }
  .hero__headline { font-size: 44px; }

  .about__grid { grid-template-columns: 1fr; gap: 20px; }
  .about__char { order: 3; height: 220px; align-self: auto; margin-bottom: -56px; }
  .about__char-inner { top: auto; margin-top: 0; bottom: 0; height: 100%; }
  .about__text { grid-column: auto; }
  .about__text p { font-size: 16px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat {
    padding: 36px 32px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }

  .works__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card__img { height: 220px; }

  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .ai__grid { grid-template-columns: 1fr; gap: 48px; }

  .cta__headline { font-size: 40px; }
  .cta__actions { flex-direction: column; align-items: center; }
  .cta__actions .btn { width: 100%; max-width: 320px; }

  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── RESPONSIVE: MOBILE ── */
@media (max-width: 540px) {
  .container { padding: 0 24px; }
  .nav__inner { padding: 0 24px; height: 56px; }
  .nav__logo { font-size: 14px; }

  .hero { padding: 56px 0 60px; }
  .hero__headline { font-size: 34px; line-height: 1.05; }
  .hero__sub { font-size: 15px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; text-align: center; }

  .about { padding: 56px 0; }
  .about__text p { font-size: 15px; }

  .stats { padding: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat { padding: 28px 20px; }
  .stat__num { font-size: 38px; }

  .works { padding: 64px 0; }
  .works__grid { grid-template-columns: 1fr; }
  .card__img { height: 210px; }
  .card__body { padding: 20px 22px 24px; }

  .process { padding: 64px 0; }

  .ai { padding: 64px 0; }

  .cta { padding: 80px 0; }
  .cta__headline { font-size: 32px; }

  .footer__links { gap: 16px; }
}

/* ══════════════════════════════════════════════
   INTERACTIONS
══════════════════════════════════════════════ */

/* Hide default cursor on pointer devices */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

/* ── Custom cursor ── */
.cur-dot,
.cur-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
.cur-dot {
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--accent);
  transition: opacity 0.2s;
}
.cur-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(203,255,0,0.45);
  z-index: 9998;
  transition: width 0.28s cubic-bezier(0.23,1,0.32,1),
              height 0.28s cubic-bezier(0.23,1,0.32,1),
              margin 0.28s cubic-bezier(0.23,1,0.32,1),
              border-color 0.28s ease,
              background 0.28s ease;
}
.cur-ring--hover {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-color: rgba(203,255,0,0.18);
  background: rgba(203,255,0,0.05);
}

/* ── Grid trail ── */
.works, .hero { position: relative; overflow: hidden; }
.works .container, .hero .container { position: relative; z-index: 2; }

.trail-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.trail-cell {
  border-right:  1px solid transparent;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: border-color 0.55s ease, background 0.55s ease;
}
.trail-cell.lit {
  border-right-color:  rgba(203,255,0, calc(0.07 * var(--s, 1)));
  border-bottom-color: rgba(203,255,0, calc(0.07 * var(--s, 1)));
  background: rgba(203,255,0, calc(0.025 * var(--s, 1)));
  transition: none;
}


/* ── Scroll reveals ── */
.hp-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.hp-visible {
  opacity: 1;
  transform: none;
}

/* ── Nav scrolled state ── */
.nav--scrolled {
  background: rgba(10,10,10,0.95);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Remove CSS card hover transform (handled by JS tilt) ── */
.card:hover { transform: none; }


/* ── Button hover: one interaction for every button ── */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s ease, border-color .35s ease, gap .35s ease, transform .35s ease, box-shadow .35s ease;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--green);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.65, 0, .35, 1);
}
.btn:hover, .btn:focus-visible {
  opacity: 1;
  color: var(--white);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -10px var(--green);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--outline { border: 1px solid rgba(255,255,255,0.18); }
.btn--accent, .btn--solid { border: 1px solid transparent; }

.btn--download { gap: 0; }
.btn--download .btn__icon {
  width: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: width .35s ease, opacity .3s ease, transform .35s ease;
}
.btn--download:hover, .btn--download:focus-visible { gap: 8px; }
.btn--download:hover .btn__icon,
.btn--download:focus-visible .btn__icon { width: 14px; opacity: 1; transform: translateY(0); }
.btn--download:hover .btn__arrow,
.btn--download:focus-visible .btn__arrow { animation: btn-drop .9s ease-in-out infinite; }
@keyframes btn-drop {
  0%, 100% { transform: translateY(-1.5px); }
  50%      { transform: translateY(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before, .btn--download .btn__icon { transition: none; }
  .btn--download:hover .btn__arrow { animation: none; }
}

/* ── Intro hero (tabbed) ── */
@font-face {
  font-family: 'Brittany Signature';
  src: local('Brittany Signature'), local('BrittanySignature'),
       url('assets/fonts/BrittanySignature.woff2') format('woff2'),
       url('assets/fonts/BrittanySignature.ttf') format('truetype'),
       url('assets/fonts/BrittanySignature.otf') format('opentype');
  font-display: swap;
}
.intro {
  --blue: var(--accent);
  position: relative;
  min-height: 100vh;
  padding: 96px 24px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  overflow: hidden;
  background: var(--bg);
  color: var(--white);
  border-top: none;
}
.intro__tabs {
  display: flex;
  gap: 38px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
  z-index: 3;
}
.intro__tabs::-webkit-scrollbar { display: none; }
.intro__tab {
  font-family: 'Inclusive Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 16px;
  color: #7a7a7a;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s ease;
}
.intro__tab:hover { color: var(--blue); }
.intro__tab.is-active { color: var(--blue); }
.intro__stage {
  position: relative;
  width: 100%;
  max-width: 878px;
  min-height: 260px;
  display: flex;
  justify-content: center;
}
.intro__line {
  position: relative;
  z-index: 2;
  font-family: 'Averia Serif Libre', serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 49.3px;
  letter-spacing: -3px;
  text-align: center;
  color: var(--white);
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease;
}
.intro__line.is-in { opacity: 1; transform: none; filter: none; }
.intro__script {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 0;
  transform: translateX(-50%);
  font-family: 'Brittany Signature', 'Nothing You Could Do', cursive;
  color: var(--blue);
  opacity: .5;
  line-height: 1;
  pointer-events: none;
  clip-path: inset(-500px 100% -500px 0);
  transition: clip-path 1s cubic-bezier(.5,0,.2,1);
}
.intro__script.is-in { clip-path: inset(-500px 0 -500px 0); }
.intro__script.is-fallback { -webkit-text-stroke: 2.5px var(--blue); }
.intro__script i {
  position: absolute;
  font-style: normal;
  white-space: nowrap;
  transform-origin: 50% 60%;
}
.intro__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Inclusive Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #6b6b6b;
  transition: color .25s ease;
}
.intro__scroll:hover { color: var(--blue); }
.intro__scroll-arrow { animation: intro-nudge 1.6s ease-in-out infinite; transform-box: fill-box; }
@keyframes intro-nudge { 0%,100% { transform: translateY(-1.5px); } 50% { transform: translateY(1.5px); } }
@media (max-width: 900px) {
  .intro { gap: 40px; padding: 88px 20px 110px; }
  .intro__tabs { gap: 24px; justify-content: flex-start; width: 100%; }
  .intro__line { font-size: 40px; line-height: 36px; letter-spacing: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro__line, .intro__script { transition: none; }
  .intro__scroll-arrow { animation: none; }
}
