/* PS.Code - tokens */
:root {
  --bg: #000;
  --surface: #131313;
  --surface-2: #1b1b1b;
  --line: #262626;
  --text: #f2f0ed;
  --muted: #9a958f;
  --dim: #5e5a56;
  --signal: #f4a26b;
  --signal-soft: rgba(244, 162, 107, .14);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 5.5vw, 80px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fs-hero: clamp(2.6rem, 1.4rem + 4.1vw, 5rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --fs-statement: clamp(1.6rem, 1rem + 2.4vw, 3.2rem);
  --fs-lg: clamp(1.15rem, 1rem + .5vw, 1.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: #000; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--text); color: #000; border-radius: 999px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 30px;
  background: var(--text); color: #000;
  border-radius: 999px; text-decoration: none;
  font-size: 1rem; font-weight: 500;
  transition: background .3s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--signal); }
.btn--sm { height: 42px; padding: 0 22px; font-size: .92rem; }
.link-quiet { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--dim); padding-bottom: 2px; transition: color .25s, border-color .25s; }
.link-quiet:hover { color: var(--text); border-color: var(--text); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; color: var(--text);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 var(--signal); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,162,107,.55); } 70% { box-shadow: 0 0 0 9px rgba(244,162,107,0); } 100% { box-shadow: 0 0 0 0 rgba(244,162,107,0); } }

.eyebrow { color: var(--muted); font-size: .95rem; margin-bottom: clamp(32px, 5vw, 72px); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s, transform .5s var(--ease);
}
.nav.is-scrolled { background: rgba(0,0,0,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-weight: 500; font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; }
.nav__logo span { color: var(--signal); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .25s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__end { display: flex; align-items: center; gap: 18px; }
.nav__lang { text-decoration: none; color: var(--muted); font-size: .85rem; font-family: var(--mono); }
.nav__lang:hover { color: var(--text); }
.nav__burger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 var(--gutter);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-size: 2.2rem; text-decoration: none; letter-spacing: -.02em; padding: 6px 0; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  background: var(--surface);
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 110px var(--gutter) 64px;
}
.hero__copy .pill { align-self: flex-start; }
.hero__text { max-width: 620px; }
.hero__title {
  font-size: var(--fs-hero); font-weight: 300;
  line-height: 1.02; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__lead { margin-top: 28px; color: var(--muted); font-size: var(--fs-lg); line-height: 1.5; max-width: 34em; }
.hero__cta { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero__foot { color: var(--dim); font-size: .85rem; line-height: 1.6; }
.hero__foot a { color: var(--signal); text-underline-offset: 3px; }
.hero__media { margin: 0; position: relative; overflow: hidden; background: #22201e; }
.hero__media img { position: absolute; inset: -6% 0 auto 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 20%; }

/* Bento */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1.25fr 1fr;
  grid-template-areas:
    "intro scope stack"
    "intro scope terminal";
  padding: clamp(64px, 10vw, 140px) var(--gutter);
}
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 26px; overflow: hidden; position: relative;
}
.card--intro { grid-area: intro; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.card--scope { grid-area: scope; display: flex; flex-direction: column; padding: 0; }
.card--stack { grid-area: stack; }
.card--terminal { grid-area: terminal; padding: 0; display: flex; flex-direction: column; }
.card--terminal img { height: 150px; width: 100%; object-fit: cover; object-position: left top; opacity: .5; filter: grayscale(1) contrast(1.15); mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }
.card--terminal .card__body { padding: 0 26px 26px; margin-top: -24px; position: relative; }
.card__accent { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; color: var(--signal); }
.card__title { font-size: 1.2rem; font-weight: 400; letter-spacing: -.01em; }
.card__text { color: var(--muted); font-size: .95rem; margin-top: 10px; max-width: 34em; }
.card--intro .btn { align-self: flex-start; }
.card__body { padding: 26px; }

.scope { position: relative; flex: 1; min-height: 260px; border-bottom: 1px solid var(--line); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 12.5%,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 10% 100%;
  background-color: #0d0d0d;
}
.scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope__hud { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; gap: 16px; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.scope__hud span:first-child { color: var(--signal); }
.scope__hud span:last-child { margin-left: auto; }

.marquee { margin: 28px -26px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 8px; width: max-content; }
.marquee__track li { font-family: var(--mono); font-size: .8rem; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); white-space: nowrap; }

/* Statement */
.statement { padding: clamp(80px, 12vw, 180px) var(--gutter); background: var(--surface); }
.statement__text { font-size: var(--fs-statement); font-weight: 400; line-height: 1.16; letter-spacing: -.025em; max-width: 26em; }
.statement__text .word { color: var(--dim); transition: color .2s; }

/* Section heads */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section-title { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; }
.section-lead { color: var(--muted); font-size: var(--fs-lg); max-width: 30em; justify-self: end; }

/* Services */
.services { padding: clamp(80px, 12vw, 160px) var(--gutter); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service {
  padding: 36px 32px 44px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.service:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.service::before { content: ""; position: absolute; inset: 0; background: var(--signal-soft); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
@media (hover: hover) { .service:hover::before { opacity: 1; } }
.service__icon { width: 34px; height: 34px; fill: none; stroke: var(--signal); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 40px; }
.service h3 { font-size: 1.4rem; font-weight: 400; letter-spacing: -.015em; line-height: 1.2; }
.service p { color: var(--muted); margin-top: 12px; max-width: 30em; }

/* Work */
.work { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 10vw, 140px); }
.projects { display: grid; gap: 24px; }
.project {
  display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 680px);
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  position: sticky; top: 88px;
  transform-origin: 50% 0;
  --shade: 0;
}
.project::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade); pointer-events: none; border-radius: inherit; }
.project__copy { padding: clamp(28px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.project__client { color: var(--signal); font-size: 1rem; }
.project__title { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.project__text { color: var(--muted); font-size: 1.05rem; max-width: 32em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: .78rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.project__media { margin: 0; position: relative; overflow: hidden; background: #0d0d0d; }
.project__media img { position: absolute; inset: -8% 0 auto; width: 100%; height: 116%; object-fit: cover; }
.project__media--viz { display: grid; place-items: center; padding: 32px; }

.grid-viz { width: 100%; height: auto; max-height: 100%; }
.grid-viz__lines path { fill: none; stroke: #3a3734; stroke-width: 2; }
.grid-viz__flow path { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 6 14; animation: flow 1.6s linear infinite; }
.grid-viz__nodes rect { fill: #0d0d0d; stroke: var(--muted); stroke-width: 1.5; rx: 4; }
.grid-viz__nodes rect:nth-child(3n+1) { stroke: var(--signal); }
.grid-viz__labels text { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
@keyframes flow { to { stroke-dashoffset: -40; } }

.wind-viz { position: absolute; inset: 0; width: 100%; height: 100%; }
.wind-legend { position: absolute; left: 24px; bottom: 20px; display: flex; gap: 18px; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.wind-legend span::before { content: ""; display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 8px; background: currentColor; }
.wind-legend .is-real::before { background: var(--signal); }
.wind-legend .is-fc::before { background: var(--text); }
.wind-legend .is-limit::before { background: repeating-linear-gradient(90deg, var(--dim) 0 3px, transparent 3px 6px); }

/* Process */
.process { background: var(--surface); padding: clamp(80px, 12vw, 160px) var(--gutter); }
.process__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); max-width: 1280px; }
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc h3 { font-size: inherit; font-weight: inherit; }
.acc__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); letter-spacing: -.02em; line-height: 1.2;
  color: var(--muted); transition: color .3s;
}
.acc__btn:hover, .acc__btn[aria-expanded="true"] { color: var(--text); }
.acc__btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.acc__icon { position: relative; width: 18px; height: 18px; flex: none; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0); }
.acc__btn[aria-expanded="true"] .acc__icon { color: var(--signal); }
.acc__panel { overflow: hidden; }
.acc__panel p { color: var(--muted); font-size: 1.1rem; padding: 0 48px 30px 0; max-width: 36em; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(80px, 12vw, 160px) var(--gutter); align-items: start; }
.about__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; position: sticky; top: 110px; background: #0d0d0d; }
.about__media img { width: 100%; height: 112%; object-fit: cover; margin-top: -6%; }
.about__copy { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.about__copy .section-title { margin-bottom: 18px; }
.about__big { font-size: var(--fs-lg); line-height: 1.45; color: var(--text); }
.about__copy p:not(.about__big) { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 20px 16px 0 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: .85rem; color: var(--dim); }
.facts dd { margin: 6px 0 0; font-size: 1.05rem; }

/* Contact */
.contact { padding: clamp(100px, 14vw, 200px) var(--gutter) 48px; display: flex; flex-direction: column; gap: clamp(80px, 12vw, 160px); }
.contact__title { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; max-width: 15em; }
.contact__lead { color: var(--muted); font-size: var(--fs-lg); margin-top: 20px; }
.contact__mail {
  display: inline-block; margin-top: clamp(36px, 5vw, 64px);
  font-size: clamp(2rem, 1rem + 5vw, 5.4rem); font-weight: 300; letter-spacing: -.04em; line-height: 1;
  color: var(--signal); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 8px;
  transition: background-size .6s var(--ease);
}
.contact__mail:hover { background-size: 100% 2px; }
.contact__list { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.contact__list a { color: var(--muted); text-decoration: none; font-size: 1.1rem; transition: color .25s; }
.contact__list a:hover { color: var(--text); }
.contact__legal { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }
.contact__legal a:not(.nav__logo) { color: var(--muted); }
.contact__legal .nav__logo { color: var(--text); }

/* Split lines (GSAP) */
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* Responsive */
@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "scope scope" "intro stack" "intro terminal"; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav__links, .nav__end .btn { display: none; }
  .nav__burger {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-left: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  }
  .nav__burger span:not(.sr-only) { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__end { margin-left: auto; }

  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; height: 72svh; min-height: 420px; }
  .hero__copy { padding: 40px var(--gutter) 48px; }
  .section-head { grid-template-columns: 1fr; }
  .section-lead { justify-self: start; }
  .project { grid-template-columns: 1fr; position: relative; top: auto; min-height: 0; }
  .project__media { aspect-ratio: 4 / 3; order: -1; }
  .project__media--viz { padding: 16px; }
  .process__inner { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__media { position: relative; top: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "intro" "scope" "stack" "terminal"; }
  .services__grid { grid-template-columns: 1fr; }
  .service:nth-child(2n) { padding-left: 0; border-left: 0; }
  .service { padding: 28px 0 32px; }
  .service__icon { margin-bottom: 24px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; }
  .facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .acc__panel p { padding-right: 0; }
  .wind-legend { left: 16px; bottom: 12px; gap: 12px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .statement__text .word { color: var(--text); }
}
