@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0d0809;
  --bg-2: #130a0d;
  --ink: #f5f0ed;
  --muted: rgba(245, 240, 237, 0.62);
  --dim: rgba(245, 240, 237, 0.16);
  --line: rgba(245, 240, 237, 0.11);
  --wine: #721733;
  --crimson: #9c223c;
  --glow: #d0315a;
  --radius: 22px;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
p { margin: 0; }
::selection { background: var(--crimson); color: var(--ink); }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* line masks for headline reveals */
.line { display: block; overflow: hidden; padding: 0.04em 0 0.1em; margin: -0.04em 0 -0.1em; }
.line__in { display: inline-block; will-change: transform; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background: url("img/noise.png");
  opacity: .055; mix-blend-mode: overlay;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
  .cursor { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; }
  .cursor__dot, .cursor__ring {
    position: fixed; left: 0; top: 0; border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor__dot { width: 6px; height: 6px; background: var(--ink); }
  .cursor__ring {
    width: 38px; height: 38px; border: 1.5px solid rgba(245,240,237,.55);
    transition: width .35s var(--ease), height .35s var(--ease), background .35s, border-color .35s;
  }
  .cursor.is-hover .cursor__ring { width: 74px; height: 74px; background: rgba(192,42,79,.22); border-color: var(--glow); }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-family: inherit; font-weight: 600; font-size: 17px; text-decoration: none;
  border: 0; cursor: pointer;
  transition: box-shadow .4s var(--ease), background .3s, color .3s;
}
.btn:hover { box-shadow: 0 12px 44px -8px rgba(208, 49, 90, .8); background: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(245,240,237,.28); }
.btn--ghost:hover { background: rgba(245,240,237,.08); box-shadow: none; }
.btn--small { padding: 10px 20px; font-size: 15px; }
.btn--big { font-size: clamp(19px, 2.2vw, 26px); padding: 24px 46px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
  transition: background .4s, padding .4s, transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13, 8, 9, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { width: 190px; height: auto; }
.nav__links { display: flex; gap: 34px; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 16px; transition: color .25s; }
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); background: none; border: 0; border-radius: 999px;
  padding: 6px 10px; cursor: pointer; transition: background .25s, color .25s;
}
.lang button[aria-pressed="true"] { background: rgba(245,240,237,.12); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 72% 50%, #2a0f17 0%, var(--bg) 62%);
}
.hero__rings, .contact__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(13,8,9,.88) 28%, rgba(13,8,9,.35) 48%, transparent 62%);
}
.hero__glow {
  position: absolute; width: 60vmax; height: 60vmax; left: 72%; top: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(208,49,90,.42) 0%, rgba(156,34,60,.14) 38%, transparent 68%);
  pointer-events: none;
}
.hero__markwrap {
  position: absolute; left: 72%; top: 50%;
  height: min(46vh, 420px); aspect-ratio: 850 / 1475;
  translate: -50% -50%;
}
.hero__mark { width: 100%; height: 100%; fill: var(--ink); overflow: visible; filter: drop-shadow(0 0 30px rgba(208,49,90,.6)); }
.hero__content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 80px; }
.hero__title { font-size: clamp(3rem, 8.2vw, 8rem); line-height: .92; letter-spacing: -0.04em; }
.hero__title .light { font-weight: 250; }
.hero__title em { font-style: normal; font-weight: 250; }
.hero__lead { margin-top: 34px; max-width: 35rem; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.hero__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 1.5px; height: 56px;
  background: var(--line); overflow: hidden;
}
.hero__scroll span {
  position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--ink); animation: scrollhint 2s var(--ease) infinite;
}
@keyframes scrollhint { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(120px, 18vw, 240px) 0 clamp(80px, 12vw, 160px); }
.manifesto__text {
  font-size: clamp(2rem, 5.2vw, 4.9rem); line-height: 1.08; letter-spacing: -0.03em;
  font-weight: 500; max-width: 21ch;
}
.manifesto__text strong { font-weight: 800; }
.manifesto__label { font-size: 17px; font-weight: 600; color: var(--glow); margin-bottom: 28px; }
.has-motion .manifesto__text .w { opacity: .14; }

/* ---------- Section titles ---------- */
.section-title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -0.04em; }

/* ---------- Services ---------- */
.services { padding: clamp(110px, 14vw, 190px) 0; }
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 6vw, 80px); flex-wrap: wrap; }
.services__intro { color: var(--muted); max-width: 24rem; font-size: 19px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(26px, 2.4vw, 36px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  transition: border-color .4s, transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(208,49,90,.24), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.tile:hover { border-color: rgba(208,49,90,.5); transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(208,49,90,.45); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile__icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(208,49,90,.6); margin-bottom: 40px;
  box-shadow: 0 0 24px rgba(208,49,90,.25), inset 0 0 18px rgba(208,49,90,.18);
  transition: background .4s, box-shadow .4s;
}
.tile__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .tile__icon { background: rgba(208,49,90,.25); box-shadow: 0 0 34px rgba(208,49,90,.55), inset 0 0 18px rgba(208,49,90,.3); }
.tile h3 { font-size: clamp(1.45rem, 1.9vw, 1.85rem); letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 14px; }
.tile p { color: var(--muted); font-size: 17px; }
.tile .tile__ex { margin-top: auto; padding-top: 26px; font-size: 14px; font-weight: 500; color: rgba(245,240,237,.85); }

/* ---------- Hybrid (pinned) ---------- */
.hybrid {
  position: relative;
  background: radial-gradient(70% 80% at 72% 50%, rgba(114,23,51,.38), transparent 70%), var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hybrid__pin { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 70px; }
.hybrid__grid { position: relative; z-index: 1; }
.hybrid__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); align-items: center; }
.hybrid__steps { display: grid; gap: 60px; }
.hstep h2 { font-size: clamp(3rem, 7.4vw, 7rem); letter-spacing: -0.045em; }
.hstep p { margin-top: 24px; max-width: 30rem; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.hybrid__progress { margin: 56px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hybrid__progress button {
  font: inherit; font-size: 15px; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(13,8,9,.4); border: 1px solid rgba(245,240,237,.18); color: var(--muted);
  transition: all .4s var(--ease);
}
.hybrid__progress button:hover { color: var(--ink); border-color: rgba(245,240,237,.5); }
.hybrid__progress button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 0 0 30px rgba(208,49,90,.5); }
.hybrid__stage { position: relative; display: flex; justify-content: center; }
.hy-svg { width: min(100%, 560px); height: auto; overflow: visible; }
.hy-bursts circle { opacity: 0; }

.hy-bg { position: absolute; inset: 0; pointer-events: none; }
.hy-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(19,10,13,.92) 0%, rgba(19,10,13,.7) 34%, rgba(19,10,13,0) 56%);
}
.hy-layer { position: absolute; inset: 0; opacity: 0; }
.hy-layer--hybrid { opacity: 1; }

/* physical: a lit set seen through a viewfinder */
.hy-beam {
  position: absolute; inset: -10% -20% 0;
  background: conic-gradient(from 180deg at 73% -6%, transparent 0deg, transparent 152deg,
    rgba(255,228,222,.1) 160deg, rgba(255,236,230,.34) 172deg, rgba(255,228,222,.1) 186deg,
    transparent 196deg, transparent 360deg);
  filter: blur(18px);
}
.hy-haze { position: absolute; inset: 0; background: radial-gradient(45% 40% at 73% 72%, rgba(255,220,214,.14), transparent 70%); }
.hy-vf { position: absolute; inset: 96px clamp(16px, 3.5vw, 44px) clamp(20px, 3.5vw, 40px); }
.hy-vf__c { position: absolute; width: 38px; height: 38px; border: 0 solid rgba(245,240,237,.6); }
.hy-vf__c--tl { left: 0; top: 0; border-top-width: 2px; border-left-width: 2px; }
.hy-vf__c--tr { right: 0; top: 0; border-top-width: 2px; border-right-width: 2px; }
.hy-vf__c--bl { left: 0; bottom: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hy-vf__c--br { right: 0; bottom: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hy-vf__rec { position: absolute; right: 54px; top: 10px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: rgba(245,240,237,.8); }
.hy-vf__rec i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 12px #ff3b5c; animation: rec 1.2s steps(2) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.hy-vf__tc { position: absolute; right: 54px; bottom: 8px; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .06em; color: rgba(245,240,237,.7); }

/* synthetic: a neon grid running towards the horizon */
.hy-grid {
  position: absolute; left: -50%; right: -50%; top: 62%; height: 90%;
  background-image:
    linear-gradient(rgba(255,92,134,.55) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,92,134,.55) 2px, transparent 2px);
  background-size: 90px 90px;
  transform: perspective(520px) rotateX(70deg); transform-origin: top center;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
  animation: gridrun 1.6s linear infinite;
}
@keyframes gridrun { to { background-position: 0 90px, 0 0; } }
.hy-horizon {
  position: absolute; left: 0; right: 0; top: 62%; height: 2px;
  background: linear-gradient(90deg, transparent, #ff5c86 30%, #ffd0dc 50%, #ff5c86 70%, transparent);
  box-shadow: 0 0 40px 10px rgba(255,92,134,.35);
}
.hy-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
}
.hy-rings { position: absolute; inset: 0; width: 100%; height: 100%; }

/* animated layout: steps stacked on top of each other */
.has-motion .hybrid__steps { display: grid; }
.has-motion .hstep { grid-area: 1 / 1; }

/* ---------- About ---------- */
.about {
  position: relative; overflow: hidden;
  padding: clamp(110px, 14vw, 190px) 0;
  border-top: 1px solid var(--line);
}
.about__rings {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.about__media { position: relative; width: 100%; max-width: 560px; aspect-ratio: 775 / 732; justify-self: center; }
.about__glow {
  position: absolute; left: 46%; top: 44%; width: 78%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(208,49,90,.8) 0%, rgba(156,34,60,.38) 45%, transparent 100%);
}
.about__cutout {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
}
.about__lead { margin-top: 26px; font-size: clamp(20px, 1.9vw, 25px); font-weight: 600; max-width: 34rem; }
.about__quote {
  margin: 28px 0 0; max-width: 36rem; padding-left: 22px;
  border-left: 2px solid var(--glow);
  font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: rgba(245,240,237,.92);
}
.cv { margin: 30px 0 0; max-width: 38rem; }
.cv__row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.cv__row:last-child { border-bottom: 1px solid var(--line); }
.cv dt { font-size: 15px; font-weight: 600; color: var(--glow); padding-top: 2px; }
.cv dd { margin: 0; font-size: 17px; color: rgba(245,240,237,.78); }
.about__links { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.about__links .btn { gap: 10px; }
.about__links svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(140px, 18vw, 240px) 0;
  background: radial-gradient(60% 70% at 50% 50%, #3a1220 0%, var(--bg) 70%);
}
.contact__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.contact__title { font-size: clamp(3rem, 8.6vw, 8.2rem); letter-spacing: -0.045em; line-height: .95; }
.contact__text { margin: 30px 0 40px; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); max-width: 32rem; }
.contact__links { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px 24px; }
.contact__links span { color: var(--muted); font-size: 17px; }


/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 32px; padding-bottom: 32px;
  color: var(--muted); font-size: 15px;
  border-top: 1px solid var(--line);
}
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal { padding-top: 150px; padding-bottom: 100px; max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 44px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: rgba(245,240,237,.82); font-size: 17px; }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  /* mobile hero: logo and text stack in the flow, so they can never overlap */
  .hero { --mh: clamp(130px, 24svh, 280px); --mt: 96px; flex-direction: column; align-items: stretch; }
  .hero__markwrap { position: relative; left: auto; top: auto; translate: none; height: var(--mh); margin: var(--mt) auto 0; flex: none; }
  .hero__glow { left: 50%; top: calc(var(--mt) + var(--mh) / 2); }
  .hero__content { margin-top: auto; padding-top: 36px; padding-bottom: 96px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(13,8,9,.92) 38%, rgba(13,8,9,.25) 58%, transparent 70%); }
  .hybrid__pin { padding: 84px 0 40px; }
  .hybrid__grid { grid-template-columns: 1fr; gap: 10px; }
  .hybrid__stage { order: -1; }
  .hy-svg { width: auto; height: 38svh; }
  .hybrid__steps { gap: 40px; }
  .hstep h2 { font-size: clamp(2.6rem, 11vw, 4.4rem); }
  .hstep p { margin-top: 14px; }
  .hybrid__progress { margin-top: 26px; }
  .hy-beam { background: conic-gradient(from 180deg at 50% -6%, transparent 0deg, transparent 152deg,
    rgba(255,228,222,.07) 160deg, rgba(255,236,230,.2) 172deg, rgba(255,228,222,.07) 186deg,
    transparent 196deg, transparent 360deg); }
  .hy-haze { background: radial-gradient(60% 30% at 50% 30%, rgba(255,220,214,.14), transparent 70%); }
  .hy-grid, .hy-horizon { top: 44%; }
  .hy-bg::after { background: linear-gradient(0deg, rgba(19,10,13,.94) 0%, rgba(19,10,13,.75) 40%, rgba(19,10,13,0) 58%); }
  .hy-vf { top: 76px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .nav { padding-left: 16px; padding-right: 16px; }
  .nav__logo img { width: 140px; }
  .nav .btn--small:not(.btn--ghost) { display: none; }
  .hero { --mh: clamp(120px, 21svh, 220px); --mt: 88px; }
  .hero__content { padding-top: 28px; padding-bottom: 84px; }
  .hero__lead { margin-top: 24px; }
  .hero__ctas { margin-top: 28px; gap: 10px; flex-wrap: nowrap; }
  .hero__ctas .btn { padding: 14px 17px; font-size: 15px; white-space: nowrap; }
  .hero__scroll { bottom: 18px; height: 40px; }
  .tiles { grid-template-columns: 1fr; }
  .tile__icon { margin-bottom: 26px; }
  .hstep p { font-size: 17px; }
  .btn--big { font-size: 18px; padding: 20px 30px; }
  .contact__links a { font-size: 15px; }
  .cv__row { grid-template-columns: 1fr; gap: 6px; }
  .hybrid__progress button { font-size: 14px; padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll span { animation: none; }
}
