/* Grafaze — site institucional */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-var.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* metric-matched fallbacks (measured in Chrome) keep layout stable while web fonts load */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  size-adjust: 104.24%;
  ascent-override: 96.89%;
  descent-override: 27.82%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia Italic"), local("Georgia-Italic");
  font-style: italic;
  size-adjust: 77.97%;
  ascent-override: 126.97%;
  descent-override: 39.76%;
  line-gap-override: 0%;
}

:root {
  --bg: #08090D;
  --bg-raised: #0E1016;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.16);
  --text: #F1F3F8;
  --text-2: #A4AABB;
  --text-3: #80869A;
  --violeta: #8064EF;
  --violeta-soft: #B3A4FF;
  --cyan: #56D6E8;
  --gelo: #E8EDF5;

  --sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Serif Fallback", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --header-h: 72px;
  --section-y: clamp(72px, 8vw, 112px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1, h2 { line-height: 1.02; letter-spacing: -0.045em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
::selection { background: var(--violeta); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 91; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 500;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

[data-parallax-img] { will-change: transform; transform: scale(1.18); }

/* ---------- type helpers ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
}
.kicker::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 1px; background: var(--violeta); box-shadow: 0 0 12px var(--violeta); }

.section-title { font-size: clamp(2.2rem, 1.1rem + 3.1vw, 3.9rem); margin-bottom: 28px; max-width: 20ch; }
.section-title em { color: var(--violeta-soft); }
.lead { font-size: clamp(1.04rem, 1rem + 0.25vw, 1.16rem); line-height: 1.7; color: var(--text-2); max-width: 54ch; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 8px 0 26px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.005em;
  transition: background-color 0.3s, box-shadow 0.4s;
}
.btn__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--text); transition: transform 0.5s var(--ease-out); }
.btn__icon svg { width: 16px; height: 16px; transform: rotate(90deg); }
.btn:hover { background: #fff; box-shadow: 0 0 0 6px rgb(255 255 255 / 0.08), 0 12px 40px -8px rgb(128 100 239 / 0.6); }
.btn:hover .btn__icon { transform: translateY(3px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
}
.site-header.is-scrolled {
  background: rgb(8 9 13 / 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand__mark { width: 28px; height: 28px; fill: currentColor; overflow: visible; }
.bm { animation: bm-in 0.9s var(--ease-out) both; }
.bm--body { --bx: 0px; --by: 9px; animation-delay: 0.1s; }
.bm--wing { --bx: -14px; --by: 7px; animation-delay: 0.45s; }
.bm--tail { --bx: -10px; --by: 11px; animation-delay: 0.75s; }
@keyframes bm-in { from { opacity: 0; transform: translate(var(--bx), var(--by)); } }
.brand__name { font-weight: 600; font-size: 0.92rem; letter-spacing: 0.26em; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block; padding: 8px 16px; border-radius: 999px;
  font-size: 0.9rem; color: var(--text-2);
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--text); background: rgb(255 255 255 / 0.06); }
.nav__link--pill { margin-left: 8px; border: 1px solid var(--line-strong); color: var(--text); }
.nav__link--pill:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 2; border-radius: 50%; border: 1px solid var(--line-strong); }
.menu-toggle__bar {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-toggle__bar:first-child { top: 18px; }
.menu-toggle__bar:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--header-h) var(--gutter) 40px;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease-out); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link, .nav__link--pill { margin: 0; padding: 18px 0; border: 0; border-radius: 0; font-size: 2rem; font-weight: 500; letter-spacing: -0.04em; color: var(--text); background: none; }
  .nav__link:hover, .nav__link--pill:hover, .nav__link[aria-current="true"] { background: none; color: var(--violeta-soft); }
  .site-header.menu-open { transform: none; background: var(--bg); }
}

/* ---------- hero (sticky "curtain": the intro sheet slides over it) ---------- */
.curtain { position: relative; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100svh; min-height: 640px;
  display: grid; place-items: center;
  padding-top: var(--header-h);
  background: var(--bg);
}
@media (min-height: 640px) { .hero { position: sticky; top: 0; } }
/* aurora under the lattice */
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; bottom: -38%; width: min(1200px, 140vw); height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(128 100 239 / 0.3), rgb(86 214 232 / 0.07) 55%, transparent);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 44% at 50% 46%, rgb(8 9 13 / 0.88) 0%, rgb(8 9 13 / 0.55) 60%, rgb(8 9 13 / 0) 100%),
    linear-gradient(180deg, rgb(8 9 13 / 0.75) 0%, rgb(8 9 13 / 0) 32%, rgb(8 9 13 / 0) 68%, var(--bg) 100%);
}
.hero__canvas {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero__canvas.is-ready { opacity: 0.8; }
.no-webgl .hero__canvas { display: none; }
.no-webgl .hero {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0v16M28 64v33M0 32l28-16 28 16v32L28 80 0 64Z' fill='none' stroke='%23F1F3F8' stroke-opacity='.06'/%3E%3C/svg%3E");
}
/* --hp (0→1) is set by main.js while the intro sheet covers the hero */
.hero__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: calc(1 - var(--hp, 0) * 1.4);
  transform: translateY(calc(var(--hp, 0) * -60px)) scale(calc(1 - var(--hp, 0) * 0.04));
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 36px; padding: 7px 16px 7px 13px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero__title {
  font-size: clamp(2.4rem, 0.7rem + 6.2vw, 6.9rem);
  line-height: 0.98; letter-spacing: -0.05em;
  max-width: 14ch; margin-bottom: 32px;
}
.hero__title em {
  padding-right: 0.06em; letter-spacing: -0.015em;
  background: linear-gradient(95deg, var(--gelo) 0%, #C4B8FF 45%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__lead { max-width: 50ch; margin-bottom: 44px; font-size: clamp(1.04rem, 0.98rem + 0.35vw, 1.24rem); line-height: 1.65; color: var(--text-2); }
.hero__cue {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; overflow: hidden;
  background: var(--line);
  opacity: calc(1 - var(--hp, 0) * 3);
}
.hero__cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(transparent, var(--text)); animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue { to { top: 100%; } }

.hero__item { animation: rise 1.2s var(--ease-out) both; animation-delay: calc(0.15s + var(--i, 0) * 0.12s); }
/* the H1 is the LCP element: animate position only, never hide it */
.hero__title { animation-name: rise-in-place; animation-delay: 0s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes rise-in-place { from { transform: translateY(16px); } }

/* ---------- intro sheet: slides over the sticky hero ---------- */
.intro {
  position: relative; z-index: 1;
  padding-block: var(--section-y);
  background: var(--bg-raised);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -50px 100px -20px rgb(0 0 0 / 0.85);
}
.intro::before {
  content: ""; position: absolute; top: 0; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(179 164 255 / 0.7), rgb(86 214 232 / 0.6), transparent);
}
.intro__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 5vw, 88px); align-items: center; }

/* reel: muted autoplay while on screen, sound on request */
.reel { position: relative; margin: clamp(48px, 5vw, 72px) 0 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg); box-shadow: 0 30px 80px -30px rgb(128 100 239 / 0.35); }
.reel__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.reel__sound {
  position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgb(8 9 13 / 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text); font: 500 0.85rem/1 var(--sans); cursor: pointer; transition: background 0.3s;
}
.reel__sound[hidden] { display: none; }
.reel__sound:hover { background: rgb(128 100 239 / 0.55); }
.reel__sound svg { width: 20px; height: 20px; }
.reel__sound .reel__on, .reel__sound[aria-pressed="true"] .reel__off { display: none; }
.reel__sound[aria-pressed="true"] .reel__on { display: inline; }
@media (max-width: 600px) { .reel { border-radius: 16px; } .reel__sound { right: 10px; bottom: 10px; padding: 8px; } .reel__sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* technologies: two endless rows drifting in opposite directions */
.tech { margin-top: clamp(56px, 6vw, 80px); content-visibility: auto; contain-intrinsic-size: auto 260px; }
.tech__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 24px; }
.tech__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.tech__note { font-size: 0.92rem; color: var(--text-2); }
.marquee {
  display: grid; gap: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__row { display: flex; }
.marquee__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.marquee__list li {
  position: relative; display: grid; place-items: center;
  width: 68px; height: 68px; border: 1px solid var(--line); border-radius: 18px;
  background: rgb(255 255 255 / 0.02); color: var(--text-2);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s, transform 0.45s var(--ease-out);
}
.marquee__list svg { width: 30px; height: 30px; fill: currentColor; }
/* each tile lights up in its own brand colour */
.marquee__list li:hover {
  color: var(--brand, var(--text));
  border-color: color-mix(in srgb, var(--brand, var(--text)) 45%, transparent);
  background: color-mix(in srgb, var(--brand, var(--text)) 10%, transparent);
  transform: translateY(-3px);
}
@media (max-width: 600px) {
  .marquee__list li { width: 56px; height: 56px; border-radius: 15px; }
  .marquee__list svg { width: 26px; height: 26px; }
}
/* with JS each list is cloned once, so shifting the row by half loops seamlessly */
.js .marquee__row { width: max-content; animation: marquee 56s linear infinite; }
.js .marquee__row--rev { animation-direction: reverse; animation-duration: 50s; }
.js .marquee__list { flex-wrap: nowrap; padding-right: 12px; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 3D falcon built from extruded slices, standing on a light platform */
.falcon { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; perspective: 1400px; }
.falcon::before { content: ""; position: absolute; inset: -12%; background: radial-gradient(closest-side, rgb(128 100 239 / 0.24), rgb(86 214 232 / 0.05) 60%, transparent); }
.falcon__scene {
  position: absolute; inset: 8%; transform-style: preserve-3d;
  transform: rotateX(var(--fx, 10deg)) rotateY(var(--fy, -26deg));
  transition: transform 0.7s var(--ease-out);
}
.falcon.is-tracking .falcon__scene { transition: transform 0.2s linear; }
.falcon__part { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(var(--pz, 0px)); transition: transform 0.9s var(--ease-out); }
.falcon__slice { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--k) * 1.6px)); }
[data-part="body"] .falcon__slice { fill: #7B8296; }
[data-part="body"] .falcon__slice:last-child { fill: var(--text); }
[data-part="wing"] .falcon__slice { fill: #4733B0; }
[data-part="wing"] .falcon__slice:last-child { fill: var(--violeta); }
[data-part="tail"] .falcon__slice { fill: #2A93A3; }
[data-part="tail"] .falcon__slice:last-child { fill: var(--cyan); }
.falcon__shadow {
  position: absolute; left: 16%; right: 16%; bottom: 0; height: 11%; border-radius: 50%;
  border: 1px solid rgb(179 164 255 / 0.28);
  background: radial-gradient(closest-side, rgb(128 100 239 / 0.28), transparent);
  box-shadow: 0 0 40px -6px rgb(128 100 239 / 0.35);
  transform: scale(var(--sh, 1)); transition: transform 0.9s var(--ease-out);
}

/* services: hairline grid with a light that follows the pointer */
.svc-list {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 5vw, 64px);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.svc-list::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgb(128 100 239 / 0.14), transparent 65%);
  opacity: 0; transition: opacity 0.5s;
}
.svc-list.is-lit::before { opacity: 1; }
.svc {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; align-content: start;
  padding: clamp(24px, 2.4vw, 32px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.svc__icon {
  grid-row: span 2; box-sizing: content-box;
  width: 20px; height: 20px; padding: 11px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgb(255 255 255 / 0.02); color: var(--violeta-soft);
  transition: color 0.3s, border-color 0.3s, transform 0.5s var(--ease-out);
}
.svc:hover .svc__icon { color: var(--cyan); border-color: rgb(86 214 232 / 0.4); transform: translateY(-2px); }
.svc h3 { align-self: end; font-size: 1.08rem; letter-spacing: -0.015em; }
.svc p { font-size: 0.92rem; line-height: 1.55; color: var(--text-2); max-width: 34ch; }

@media (max-width: 959px) {
  .intro__grid { grid-template-columns: 1fr; }
  .falcon { width: min(100%, 280px); }
  .svc-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { .svc-list { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section-y); }

/* reveal on scroll — only with JS, so content is never hidden without it */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-split] { opacity: 1; transform: none; }
/* headings: each word comes into focus */
.sw { display: inline-block; transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms); }
.js [data-split]:not(.is-in) .sw { opacity: 0; filter: blur(10px); transform: translateY(0.3em); }

/* ---------- graphene ---------- */
.graphene { overflow: hidden; }
.graphene::before {
  content: ""; position: absolute; left: -10%; top: 10%; width: 60%; height: 80%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(128 100 239 / 0.12), transparent);
}
.graphene__grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.graphene__copy { grid-column: 2; }
.graphene__grid .honeycomb { grid-column: 1; grid-row: 1; }
.honeycomb { position: relative; height: clamp(380px, 40vw, 560px); perspective: 1400px; }
.honeycomb__plane {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotateX(var(--hrx, 58deg)) rotateZ(var(--hrz, 0deg));
  transition: transform 0.8s var(--ease-out);
}
/* spins around the plane's own normal, after the tilt */
.honeycomb__spin { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; animation: hc-spin 50s linear infinite; }
.honeycomb.is-tracking .honeycomb__plane { transition: transform 0.2s linear; }
@keyframes hc-spin { to { transform: rotateZ(360deg); } }
.hc {
  position: absolute; left: 0; top: 0;
  width: calc(var(--hs) * 1.732); height: calc(var(--hs) * 2);
  margin: calc(var(--hs) * -1) 0 0 calc(var(--hs) * -0.866);
  transform: translate(var(--x), var(--y)) translateZ(calc(var(--d) * var(--hx, 0px)));
  transition: transform 1s var(--ease-out);
}
.hc svg { width: 100%; height: 100%; overflow: visible; }
.hc polygon { fill: rgb(128 100 239 / 0.08); stroke: rgb(179 164 255 / 0.6); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hc circle { fill: var(--violeta-soft); }
.hc--core polygon { fill: rgb(86 214 232 / 0.22); stroke: var(--cyan); }
.hc--core circle { fill: var(--cyan); }

.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border-top: 1px solid var(--line); }
.fact { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(even) { padding: 24px 0 26px 24px; border-left: 1px solid var(--line); }
.fact__value {
  display: flex; align-items: baseline; gap: 6px;
  font-weight: 300; line-height: 1; letter-spacing: -0.045em;
  font-size: clamp(2.2rem, 1.5rem + 1.8vw, 3.3rem);
  font-variant-numeric: tabular-nums;
}
.fact__value small { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.55em; letter-spacing: 0; color: var(--violeta-soft); }
.fact__label { margin: 10px 0 16px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.fact h3 { font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.fact p:last-child { font-size: 0.92rem; line-height: 1.55; color: var(--text-2); }
.footnote { margin-top: 20px; font-family: var(--mono); font-size: 0.7rem; line-height: 1.6; color: var(--text-3); }
@media (max-width: 859px) {
  .graphene__grid { grid-template-columns: 1fr; }
  .graphene__copy, .graphene__grid .honeycomb { grid-column: 1; grid-row: auto; }
  .honeycomb { height: clamp(220px, 60vw, 300px); }
}
@media (max-width: 480px) {
  .fact { padding-right: 14px; }
  .fact:nth-child(even) { padding-left: 14px; }
  .fact__value { font-size: 1.9rem; }
}

/* ---------- contact ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(88px, 10vw, 144px);
  text-align: center;
}
.contact__bg {
  position: absolute; inset: 0; z-index: -2; overflow: hidden; opacity: 0.5;
  -webkit-mask-image: radial-gradient(70% 75% at 50% 50%, #000 25%, transparent 100%);
  mask-image: radial-gradient(70% 75% at 50% 50%, #000 25%, transparent 100%);
}
.contact__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(0.75); }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 54% at 50% 50%, rgb(8 9 13 / 0.5), rgb(8 9 13 / 0.9)),
    linear-gradient(180deg, rgb(128 100 239 / 0.14), rgb(86 214 232 / 0.05));
}
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact .kicker { justify-content: center; }
.contact__title { font-size: clamp(3rem, 0.8rem + 7.4vw, 8.4rem); line-height: 0.95; letter-spacing: -0.055em; margin-bottom: 48px; }
.contact__title em { color: var(--violeta-soft); }
.contact__mail {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 7px 7px 7px 28px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-style: normal;
}
.no-clipboard .contact__mail { padding-right: 28px; }
.contact__email { padding: 8px 12px 8px 0; font-size: clamp(1.02rem, 0.9rem + 0.8vw, 1.5rem); letter-spacing: -0.015em; overflow-wrap: anywhere; transition: color 0.3s; }
.contact__email:hover { color: var(--cyan); }
.copy-btn {
  flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--text); color: var(--bg);
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn:hover { transform: scale(1.07); }
.copy-btn.is-done { background: var(--cyan); }
.no-clipboard .copy-btn { display: none; }
.contact__note { margin-top: 28px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; color: var(--text-3); font-size: 0.82rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px; border-top: 1px solid var(--line); }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: color 0.2s; }
.site-footer a:hover { color: var(--text); }
.footer-mark { height: 15vw; overflow: hidden; user-select: none; }
.footer-mark span {
  display: block; text-align: center; white-space: nowrap;
  font-weight: 600; font-size: 21vw; line-height: 0.8; letter-spacing: -0.045em;
  color: transparent;
  background: linear-gradient(180deg, rgb(241 243 248 / 0.16), rgb(241 243 248 / 0) 85%);
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- custom cursor (mouse only; created by main.js) ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor.is-visible { opacity: 1; }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.cursor__dot::before {
  content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text); transition: transform 0.3s var(--ease-out);
}
.cursor__shape {
  position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgb(241 243 248 / 0.45);
  transform: scale(calc(var(--cs, 1) * var(--cd, 1)));
  transition: transform 0.45s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.cursor__label {
  position: absolute; left: 0; top: 0; opacity: 0; transform: translate(-50%, -50%) scale(0.6);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; color: var(--bg);
  transition: opacity 0.25s, transform 0.45s var(--ease-out);
}
.cursor[data-state="link"] .cursor__shape { --cs: 1.6; background: rgb(128 100 239 / 0.3); border-color: rgb(179 164 255 / 0.75); }
.cursor[data-state="label"] .cursor__shape { --cs: 2.5; background: var(--text); border-color: var(--text); box-shadow: 0 6px 20px rgb(0 0 0 / 0.35); }
.cursor[data-state="label"] .cursor__label { opacity: 1; transform: translate(-50%, -50%); }
/* tag: a small solid dot with the name in a pill beside it */
.cursor[data-state="tag"] .cursor__shape { --cs: 0.4; background: var(--text); border-color: var(--text); }
.cursor[data-state="tag"] .cursor__label {
  opacity: 1; transform: translate(16px, -50%);
  padding: 6px 12px; border-radius: 999px; background: var(--text);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.4);
}
.cursor[data-state="link"] .cursor__dot::before, .cursor[data-state="label"] .cursor__dot::before, .cursor[data-state="tag"] .cursor__dot::before { transform: scale(0); }
.cursor.is-down .cursor__shape { --cd: 0.8; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  padding: 12px 22px; border-radius: 999px;
  background: rgb(14 16 22 / 0.85); color: var(--text); font-size: 0.9rem;
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / 0.6);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-split]:not(.is-in) .sw { opacity: 1; filter: none; transform: none; }
  [data-parallax-img] { transform: none !important; }
  .hero__inner { opacity: 1; transform: none; }
  .hero__cue { display: none; }
  .js .marquee__row { width: auto; animation: none; }
  .js .marquee__list { flex-wrap: wrap; padding-right: 0; }
  .marquee { padding-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; }
  .marquee__list[aria-hidden] { display: none; }
}
