/* =========================================================
   Enflesh — design system
   Black / paper / lime, Space Grotesk, editorial geometry.
   ========================================================= */

:root {
  --black: #111111;
  --black-soft: #161616;
  --white: #f4f3ef;
  --paper: #e9e8e3;
  --ink: #151515;
  --muted: #8f8e89;
  --muted-strong: #b7b6b1;
  --line: rgba(255, 255, 255, 0.2);
  --line-soft: rgba(255, 255, 255, 0.1);
  --light-line: rgba(0, 0, 0, 0.18);
  --accent: #d4ff72;
  --accent-soft: rgba(212, 255, 114, 0.12);
  --font: "Space Grotesk", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-feature-settings: "ss01" on;
  line-height: 1.5;
  overflow-x: hidden;
  transition: opacity 0.35s var(--ease);
}

html.i18n-loading body {
  opacity: 0;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.section-light :focus-visible {
  outline-color: var(--ink);
}

[hidden] {
  display: none !important;
}

/* ---------- utilities ---------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.section-shell {
  padding-left: 9vw;
  padding-right: 9vw;
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.section-light .section-heading {
  border-bottom-color: var(--light-line);
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}

.section-heading.is-visible::after {
  transform: scaleX(1);
}

.section-number,
.section-aside,
.eyebrow,
.hero-index,
.hero-bottom,
.art-caption,
.art-side-label,
.project-visual-top,
.project-visual-bottom,
.project-meta,
.project-tags,
.projects-foot,
.open-symbol > span,
.about-bottom,
.contact-form label > span,
.form-note,
.footer-bottom {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.section-aside {
  color: var(--muted);
  text-align: right;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aaa;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.6s var(--ease) infinite;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 5.2vw;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  background: rgba(17, 17, 17, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
}

.desktop-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 42px);
  margin-left: auto;
  margin-right: 3.4vw;
}

.desktop-nav a {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c3c2bd;
  transition: color 0.2s;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: #fff;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-github span {
  color: var(--accent);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #3a3a3a;
}

.lang-btn {
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.lang-btn.is-active {
  background: var(--white);
  color: var(--black);
}

.lang-btn:hover:not(.is-active) {
  color: #fff;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid #555;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}

.header-cta:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.header-cta span:last-child {
  font-size: 16px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.header-cta:hover span:last-child {
  transform: translate(2px, -2px);
}

.menu-toggle {
  position: relative;
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 1px;
  margin: 6px auto;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  min-height: 690px;
  padding-top: 35px;
  padding-bottom: 26px;
}

.hero-topline,
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-index,
.hero-bottom {
  color: #8f8e89;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3vw;
  min-height: 545px;
}

.hero-copy {
  padding: 45px 0 25px;
}

.hero-kicker {
  margin: 0 0 23px;
  color: #aaa;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.hero-title {
  margin: 0 0 35px;
  font-size: clamp(72px, 10.8vw, 164px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.105em;
}

.outline-word {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}

.period {
  color: var(--accent);
}

.hero-description {
  max-width: 440px;
  color: var(--muted-strong);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 35px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 190px;
  padding: 16px 18px;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transform: translate3d(var(--magnet-x, 0px), calc(var(--magnet-y, 0px) + var(--lift, 0px)), 0);
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}

.button:hover {
  --lift: -3px;
}

.button-light {
  background: var(--white);
  color: var(--black);
}

.button-dark {
  background: var(--black);
  color: var(--white);
}

.button span:last-child {
  font-size: 17px;
  transition: transform 0.3s var(--ease);
}

.button:hover span:last-child {
  transform: translate(2px, -2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #c4c3be;
  font-size: 11px;
  font-weight: 600;
}

.text-link span:last-child {
  font-size: 16px;
  transition: transform 0.3s var(--ease);
}

.text-link:hover span:last-child {
  transform: translate(3px, 3px);
}

.hero-art {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: #d9d9d3;
  color: #111;
  transform: translate3d(
    var(--pointer-x, 0px),
    calc(var(--pointer-y, 0px) + var(--parallax-y, 0px)),
    0
  );
  will-change: transform;
}

.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.art-frame {
  position: absolute;
  border: 1px solid #111;
}

.frame-one {
  inset: 9% 14% 15% 10%;
  animation: frame-drift 9s ease-in-out infinite alternate;
}

.frame-two {
  inset: 18% 7% 8% 23%;
  animation: frame-drift 11s ease-in-out infinite alternate-reverse;
}

.art-circle {
  position: absolute;
  left: 26%;
  top: 21%;
  width: 48%;
  aspect-ratio: 1;
  border: 2px solid #111;
  border-radius: 50%;
  animation: slow-rotate 30s linear infinite;
}

.art-circle::before,
.art-circle::after {
  content: "";
  position: absolute;
  background: #111;
}

.art-circle::before {
  left: -20%;
  top: 50%;
  width: 140%;
  height: 1px;
}

.art-circle::after {
  left: 50%;
  top: -20%;
  width: 1px;
  height: 140%;
}

.art-block {
  position: absolute;
  background: #111;
}

.block-one {
  left: 18%;
  top: 37%;
  width: 22%;
  height: 22%;
  animation: block-float 7s ease-in-out infinite alternate;
}

.block-two {
  right: 17%;
  bottom: 20%;
  width: 18%;
  height: 18%;
  background: var(--accent);
  mix-blend-mode: multiply;
  animation: block-float 8.5s ease-in-out infinite alternate-reverse;
}

.art-cross {
  position: absolute;
  right: 16%;
  top: 14%;
  font-size: 52px;
  font-weight: 300;
  animation: cross-drift 12s ease-in-out infinite alternate;
}

.art-caption {
  position: absolute;
  right: 17px;
  bottom: 15px;
  left: 17px;
  display: flex;
  justify-content: space-between;
  color: #555;
  font-size: 8px;
}

.art-side-label {
  position: absolute;
  right: 9px;
  top: 50%;
  color: #555;
  font-size: 7px;
  writing-mode: vertical-rl;
}

.hero-bottom {
  gap: 20px;
  margin-top: 8px;
}

.scroll-line {
  position: relative;
  flex: 1;
  height: 1px;
  background: #555;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: scroll-dot 4.5s var(--ease) infinite;
}

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
  will-change: transform;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-right: 38px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.ticker-group b {
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
}

/* ---------- studio ---------- */

.studio {
  padding-top: 100px;
  padding-bottom: 105px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 7vw;
  padding: 75px 0 82px;
}

.studio h2,
.projects-heading h2,
.about h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.studio h2 em,
.projects-heading h2 em,
.about h2 em {
  color: #999;
  font-style: normal;
}

.studio-text {
  max-width: 400px;
  padding-top: 8px;
}

.studio-text p,
.projects-heading p,
.about-copy > p {
  margin: 0 0 28px;
  color: #5e5d59;
  font-size: 15px;
  line-height: 1.8;
}

.underlined-link {
  display: inline-flex;
  gap: 30px;
  padding-bottom: 9px;
  border-bottom: 1px solid #111;
  font-size: 11px;
  font-weight: 700;
}

.underlined-link span:last-child {
  transition: transform 0.3s var(--ease);
}

.underlined-link:hover span:last-child {
  transform: translate(3px, -3px);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--light-line);
}

.principle {
  position: relative;
  min-height: 190px;
  padding: 25px 28px 0 0;
  border-right: 1px solid var(--light-line);
}

.principle + .principle {
  padding-left: 28px;
}

.principle:last-child {
  border-right: 0;
}

.principle > span {
  color: #5f5e59;
  font-size: 9px;
}

.principle-shape {
  width: 30px;
  height: 30px;
  margin: 23px 0 15px;
  transition: transform 0.6s var(--ease), background 0.3s;
}

.shape-square {
  border: 1px solid #111;
}

.shape-circle {
  border: 1px solid #111;
  border-radius: 50%;
}

.shape-diamond {
  width: 22px;
  height: 22px;
  margin: 27px 0 19px 4px;
  border: 1px solid #111;
  transform: rotate(45deg);
}

.principle:hover .shape-square {
  background: var(--accent);
  transform: rotate(45deg) scale(0.85);
}

.principle:hover .shape-circle {
  background: var(--accent);
  transform: scale(0.85);
}

.principle:hover .shape-diamond {
  background: var(--accent);
  transform: rotate(225deg) scale(0.85);
}

.principle h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.principle p {
  max-width: 260px;
  margin: 0;
  color: #5f5e59;
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- expertise ---------- */

.expertise {
  padding-top: 105px;
  padding-bottom: 110px;
}

.expertise-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 70px 0 55px;
}

.expertise-intro h2,
.open-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.09em;
  text-wrap: balance;
}

.expertise-intro h2 > span:not(.word) {
  color: #8f8e89;
}

.expertise-intro > p {
  max-width: 260px;
  margin: 0 4vw 5px 20px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
}

.expertise-list {
  border-top: 1px solid var(--line);
}

.expertise-row {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  align-items: center;
  overflow: hidden;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s var(--ease);
}

.expertise-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--accent-soft), transparent 65%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.expertise-row:hover {
  padding-left: 12px;
  padding-right: 12px;
}

.expertise-row:hover::before {
  transform: scaleX(1);
}

.expertise-no {
  color: #8f8e89;
  font-size: 10px;
}

.expertise-row h3 {
  margin: 0 0 5px;
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.expertise-row p {
  margin: 0;
  color: #888;
  font-size: 12px;
}

.row-symbol {
  color: var(--accent);
  font-size: 23px;
  text-align: right;
  transition: transform 0.35s var(--ease);
}

.expertise-row:hover .row-symbol {
  transform: translate(4px, -4px);
}

/* ---------- projects ---------- */

.projects {
  padding-top: 100px;
  padding-bottom: 100px;
}

.projects-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 65px 0 55px;
}

.projects-heading p {
  max-width: 300px;
  margin: 0 4vw 6px 25px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 420px;
  background: #d7d7d0;
}

.project-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 390px;
  overflow: hidden;
  padding: 18px;
  background: #bfc0b8;
  color: #111;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.project-visual-top,
.project-visual-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
}

.magnet-board {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 75%;
  height: 245px;
  margin: auto;
  padding: 25px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background: rgba(235, 235, 229, 0.25);
}

.magnet-label {
  position: relative;
  z-index: 2;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.1em;
}

.magnet-label span {
  display: block;
  color: transparent;
  font-weight: 400;
  -webkit-text-stroke: 1px #111;
}

.magnet-days {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 25px;
}

.magnet-days i {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #111;
  border-radius: 50%;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.magnet-days i.filled {
  background: #111;
}

.project-card.is-visible .magnet-days i.filled {
  animation: magnet-pop 0.7s var(--ease) both;
}

.project-card.is-visible .magnet-days i.filled:nth-child(2) {
  animation-delay: 0.09s;
}

.project-card.is-visible .magnet-days i.filled:nth-child(3) {
  animation-delay: 0.18s;
}

.magnet-caption {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  font-size: 7px;
  letter-spacing: 0.14em;
}

.magnet-orbit {
  position: absolute;
  top: -110px;
  right: -90px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}

.orbit-b {
  top: auto;
  right: auto;
  bottom: -100px;
  left: -70px;
  width: 170px;
  height: 170px;
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 45px clamp(25px, 4vw, 65px);
  color: #111;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #5f5e59;
  font-size: 8px;
}

.status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #111;
}

.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #777;
}

.project-info h3 {
  margin: 36px 0 17px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1;
  letter-spacing: -0.09em;
}

.project-info h3 span {
  vertical-align: top;
  font-size: 17px;
  letter-spacing: 0;
}

.project-info > p {
  max-width: 470px;
  color: #5f5e59;
  font-size: 13px;
  line-height: 1.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 28px;
}

.project-tags span {
  padding: 7px 9px;
  border: 1px solid #aaa;
  font-size: 7px;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.project-links .button {
  min-width: 185px;
  padding: 14px;
}

.project-links .text-link {
  color: #111;
}

.projects-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  color: #5f5e59;
  font-size: 8px;
}

/* ---------- open source ---------- */

.open-source {
  padding-top: 100px;
  padding-bottom: 110px;
}

.open-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10vw;
  padding: 80px 4vw 0;
}

.open-symbol {
  position: relative;
  height: 390px;
  overflow: hidden;
  border: 1px solid #555;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.open-square {
  position: absolute;
  left: 21%;
  top: 14%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid #888;
  transform: rotate(45deg);
  animation: open-spin 38s linear infinite;
}

.open-circle {
  position: absolute;
  left: 24%;
  top: 19%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.open-cross {
  position: absolute;
  left: 47%;
  top: 38%;
  color: var(--accent);
  font-size: 70px;
  font-weight: 300;
}

.open-symbol > span {
  position: absolute;
  bottom: 14px;
  left: 16px;
  color: #8f8e89;
  font-size: 8px;
}

.open-copy .eyebrow {
  margin-bottom: 25px;
}

.open-copy h2 {
  font-size: clamp(52px, 7vw, 90px);
}

.open-copy h2 em {
  color: var(--accent);
  font-style: normal;
}

.open-copy > p:not(.eyebrow) {
  max-width: 440px;
  margin: 27px 0 30px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.8;
}

.open-org {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.open-org-label {
  display: block;
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.open-org-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.open-org-link span {
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.open-org-link:hover span {
  transform: translate(3px, -3px);
}

.open-org p {
  margin: 8px 0 0;
  color: #8f8e89;
  font-size: 11px;
  line-height: 1.6;
}

.open-copy .button {
  min-width: 180px;
}

/* ---------- ecosystem ---------- */

.ecosystem {
  padding-top: 105px;
  padding-bottom: 110px;
}

.ecosystem-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 8vw;
  padding: 70px 0 50px;
}

.ecosystem-intro h2 {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.085em;
  text-wrap: balance;
}

.ecosystem-intro h2 em {
  color: var(--accent);
  font-style: normal;
}

.ecosystem-intro p {
  max-width: 380px;
  margin: 0 0 6px;
  color: #a5a49f;
  font-size: 14px;
  line-height: 1.8;
}

.ecosystem-list {
  border-top: 1px solid var(--line);
}

.eco-row {
  display: grid;
  grid-template-columns: 54px 1.1fr 1fr auto 28px;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s var(--ease), background 0.35s;
}

.eco-row:hover {
  padding-left: 12px;
  padding-right: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.eco-no {
  color: #8f8e89;
  font-size: 10px;
}

.eco-name {
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.eco-desc {
  color: var(--muted);
  font-size: 12px;
}

.eco-status {
  justify-self: end;
  padding: 7px 9px;
  border: 1px solid rgba(212, 255, 114, 0.5);
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.eco-status.is-soon {
  border-color: #444;
  color: var(--muted);
}

.eco-arrow {
  color: var(--accent);
  font-size: 20px;
  text-align: right;
  transition: transform 0.35s var(--ease);
}

.eco-row:hover .eco-arrow {
  transform: translate(3px, -3px);
}

.repos {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.repos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.repos-head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfcec9;
  transition: color 0.2s;
}

.repos-head a:hover {
  color: #fff;
}

.repos-head a span:last-child {
  color: var(--accent);
}

.repos-note {
  margin: 18px 0 0;
  color: #8f8e89;
  font-size: 11px;
  line-height: 1.6;
}

.repo-list {
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.repo-item {
  border-bottom: 1px solid var(--line);
}

.repo-item a {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto 24px;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  transition: padding 0.3s var(--ease), background 0.3s;
}

.repo-item a:hover {
  padding-left: 10px;
  padding-right: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.repo-name {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.repo-desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.repo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.repo-arrow {
  color: var(--accent);
  font-size: 18px;
  text-align: right;
}

/* ---------- about ---------- */

.about {
  padding-top: 100px;
  padding-bottom: 35px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  padding: 80px 4vw 90px;
}

.about h2 {
  font-size: clamp(64px, 9vw, 120px);
}

.about-copy {
  max-width: 480px;
  padding-top: 5px;
}

.about-signature {
  margin-top: 48px;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.09em;
}

.about-signature > span {
  vertical-align: top;
  font-size: 12px;
}

.about-signature small {
  display: block;
  margin-top: 3px;
  color: #5f5e59;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.about-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--light-line);
  color: #5f5e59;
  font-size: 8px;
}

/* ---------- contact ---------- */

.contact {
  padding-top: 100px;
  padding-bottom: 105px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 10vw;
  padding: 75px 4vw 0;
}

.contact h2 {
  font-size: clamp(56px, 8vw, 105px);
}

.contact h2 em {
  color: var(--accent);
  font-style: normal;
}

.contact-intro {
  max-width: 340px;
  margin: 28px 0;
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
}

.email-link {
  display: inline-flex;
  gap: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #777;
  font-size: 14px;
  transition: border-color 0.25s, color 0.25s;
}

.email-link span {
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.email-link:hover {
  border-color: var(--accent);
  color: #fff;
}

.email-link:hover span {
  transform: translate(3px, -3px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.contact-form label > span {
  color: var(--muted);
  font-size: 8px;
  transition: color 0.25s;
}

.contact-form label:focus-within > span {
  color: var(--accent);
}

.contact-form input,
.contact-form textarea {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #555;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  resize: vertical;
  transition: border-color 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

.submit-button {
  align-self: flex-start;
  margin-top: 4px;
}

.form-note,
.form-feedback {
  margin: 0;
  color: #8f8e89;
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1.5;
}

.form-feedback {
  color: var(--accent);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 30px 5.2vw 20px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
}

.footer-brand img {
  width: 33px;
  height: 33px;
}

.footer-top > p {
  margin: 0;
  color: #888;
  font-size: 12px;
  line-height: 1.5;
}

.back-top {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #555;
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}

.back-top:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #8f8e89;
  font-size: 8px;
}

.footer-bottom div {
  display: flex;
  gap: 22px;
}

.footer-bottom a {
  color: #ccc;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ---------- motion system ---------- */

html.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

html.motion-ready [data-reveal="fade"] {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.motion-ready [data-reveal="fade"].is-visible {
  opacity: 1;
}

/* Keeps parallax transforms intact while the element fades in. */
html.motion-ready [data-reveal="parallax"] {
  opacity: 0;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  transition: opacity 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.motion-ready [data-reveal="parallax"].is-visible {
  opacity: 1;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.04em 0.18em;
  margin: 0 -0.04em -0.18em;
}

[data-split] .word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.95s var(--ease);
  transition-delay: calc(var(--word-index, 0) * 38ms);
  will-change: transform;
}

[data-split].is-visible .word-inner {
  transform: translateY(0);
}

.hero-art {
  animation: art-in 1.1s 0.1s var(--ease) both;
}

/* ---------- keyframes ---------- */

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes slow-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes open-spin {
  from {
    transform: rotate(45deg);
  }
  to {
    transform: rotate(405deg);
  }
}

@keyframes frame-drift {
  to {
    transform: translate3d(8px, -6px, 0);
  }
}

@keyframes block-float {
  to {
    transform: translate3d(-6px, 8px, 0);
  }
}

@keyframes cross-drift {
  to {
    transform: rotate(12deg) translate3d(2px, -2px, 0);
  }
}

@keyframes scroll-dot {
  0% {
    left: 0;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 5px);
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 255, 114, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(212, 255, 114, 0);
  }
}

@keyframes magnet-pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes art-in {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .site-header {
    padding: 0 4vw;
  }

  .desktop-nav {
    gap: 18px;
    margin-right: 2vw;
  }

  .header-actions {
    gap: 12px;
  }

  .header-cta {
    gap: 14px;
    padding: 10px 13px;
  }

  .open-copy h2 {
    font-size: clamp(46px, 6.2vw, 82px);
  }

  .ecosystem-intro h2 {
    font-size: clamp(40px, 5.8vw, 82px);
  }

  .about h2 {
    font-size: clamp(56px, 7.8vw, 105px);
  }

  .contact h2 {
    font-size: clamp(48px, 6.2vw, 95px);
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 5vw;
  }

  .desktop-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 24px 6vw 30px;
    border-bottom: 1px solid #444;
    background: #111;
  }

  .desktop-nav.open {
    display: flex;
  }

  .desktop-nav a {
    font-size: 14px;
  }

  .desktop-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .hero-layout {
    grid-template-columns: 1fr 1fr;
  }

  .hero-art {
    height: 360px;
  }

  .hero-title {
    font-size: clamp(68px, 11vw, 112px);
  }

  .section-shell {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .open-grid,
  .about-grid,
  .contact-layout {
    gap: 6vw;
  }

  .project-info {
    padding: 35px 28px;
  }

  .project-visual {
    min-height: 360px;
  }

  .ecosystem-intro {
    gap: 5vw;
  }

  .eco-row {
    grid-template-columns: 40px 1.1fr 1fr auto 24px;
    gap: 16px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    height: 68px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .header-actions {
    gap: 8px;
  }

  .lang-switch {
    padding: 2px;
  }

  .lang-btn {
    padding: 6px 7px;
    font-size: 9px;
  }

  .hero {
    min-height: auto;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 60px 0 20px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-title {
    margin-bottom: 25px;
    font-size: clamp(68px, 16vw, 108px);
  }

  .hero-description {
    max-width: 360px;
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-actions .button {
    min-width: 210px;
  }

  .hero-art {
    height: 320px;
  }

  .hero-bottom {
    font-size: 8px;
  }

  .ticker {
    padding: 14px 0;
  }

  .ticker-group {
    gap: 22px;
    padding-right: 22px;
    font-size: 9px;
  }

  .ticker-group b {
    font-size: 15px;
  }

  .studio,
  .expertise,
  .projects,
  .open-source,
  .ecosystem,
  .about,
  .contact {
    padding-top: 70px;
    padding-bottom: 75px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-number,
  .section-aside {
    font-size: 7px;
  }

  .section-aside {
    text-align: left;
  }

  .studio-grid,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 50px 0 55px;
  }

  .studio h2 {
    font-size: clamp(39px, 10vw, 62px);
  }

  .studio-text {
    max-width: 100%;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle + .principle {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--light-line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .principle-shape {
    margin: 15px 0 10px;
  }

  .shape-diamond {
    margin: 19px 0 13px 4px;
  }

  .principle p {
    max-width: 100%;
  }

  .expertise-intro,
  .projects-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 50px 0 38px;
  }

  .expertise-intro h2,
  .open-copy h2 {
    font-size: clamp(55px, 14vw, 86px);
  }

  .expertise-intro > p,
  .projects-heading p {
    max-width: 320px;
    margin: 0;
  }

  .expertise-row {
    grid-template-columns: 38px 1fr 25px;
    padding: 20px 0;
  }

  .expertise-row h3 {
    font-size: 18px;
  }

  .expertise-row p {
    font-size: 10px;
    line-height: 1.5;
  }

  .projects-heading h2 {
    font-size: clamp(54px, 14vw, 85px);
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 300px;
  }

  .magnet-board {
    width: 78%;
    height: 205px;
  }

  .project-info {
    padding: 32px 25px 36px;
  }

  .project-info h3 {
    margin: 28px 0 12px;
  }

  .project-info > p {
    font-size: 12px;
  }

  .project-links {
    gap: 17px;
  }

  .project-links .button {
    min-width: 145px;
    gap: 18px;
  }

  .open-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 50px 0 0;
  }

  .open-symbol {
    height: 280px;
  }

  .open-copy h2 {
    font-size: clamp(58px, 14vw, 88px);
  }

  .ecosystem-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 50px 0 38px;
  }

  .ecosystem-intro h2 {
    font-size: clamp(35px, 11.2vw, 72px);
  }

  .eco-row {
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    padding: 18px 0;
  }

  .eco-no {
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 5px;
  }

  .eco-name {
    font-size: 19px;
  }

  .eco-desc {
    grid-column: 2;
    margin-top: -4px;
    font-size: 10px;
  }

  .eco-status {
    grid-row: 1;
    grid-column: 3;
    padding: 6px 7px;
    font-size: 7px;
  }

  .eco-arrow {
    display: none;
  }

  .repos {
    margin-top: 32px;
  }

  .repos-head {
    flex-wrap: wrap;
    font-size: 8px;
  }

  .repo-item a {
    grid-template-columns: 1fr 20px;
    gap: 8px;
  }

  .repo-meta {
    grid-column: 1;
    font-size: 8px;
  }

  .repo-arrow {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .about h2 {
    font-size: clamp(68px, 17vw, 105px);
  }

  .about-grid {
    padding: 50px 0 55px;
  }

  .about-copy > p {
    font-size: 13px;
  }

  .about-bottom {
    gap: 8px;
    font-size: 6px;
  }

  .contact h2 {
    font-size: clamp(60px, 15vw, 90px);
  }

  .contact-layout {
    padding: 50px 0 0;
  }

  .contact-form {
    gap: 18px;
  }

  .footer-top {
    padding-bottom: 25px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    line-height: 1.7;
  }

  .footer-bottom > span:last-child {
    width: 100%;
  }

  .footer-bottom div {
    gap: 13px;
  }

  .footer-bottom a {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  html.motion-ready [data-reveal],
  html.motion-ready [data-reveal="fade"] {
    opacity: 1;
    transform: none;
  }

  [data-split] .word-inner {
    transform: none;
  }

  .hero-art {
    animation: none;
  }
}
