/* ============================================================
   Willmy Tech — Editorial / Premium Redesign
   Typographic, immersive, minimal content.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --brand: #a9c5f2;
  --brand-deep: #5d8be0;
  --brand-soft: #dce8fb;
  --ink: #0b1220;
  --ink-soft: #1a2436;
  --muted: #717c8c;
  --bg: #ffffff;
  --bg-soft: #f5f8fe;
  --line: rgba(11, 18, 32, 0.12);
  --line-soft: rgba(11, 18, 32, 0.07);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-h: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1320px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.menu-open {
  overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; }

::selection {
  background: var(--brand);
  color: var(--ink);
}

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Accent serif italic words inside headings */
.ital {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-deep);
  padding-bottom: 0.06em;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--brand-deep);
  transition: width 0.4s var(--ease);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile fullscreen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  visibility: hidden;
}

.menu.open {
  transform: translateY(0);
  visibility: visible;
}

.menu a {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 11vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding: 0.4rem 0;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease);
}

.menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.menu.open a:nth-child(1) { transition-delay: 0.15s; }
.menu.open a:nth-child(2) { transition-delay: 0.23s; }
.menu.open a:nth-child(3) { transition-delay: 0.31s; }

.menu a:active { color: var(--brand); }

.menu__foot {
  position: absolute;
  left: var(--pad);
  bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0));
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Buttons / text links ---------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 0.35rem;
}

.arrow-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.5s var(--ease), background 0.3s var(--ease);
}

.arrow-link .ar {
  transition: transform 0.4s var(--ease);
}

.arrow-link:hover { color: var(--brand-deep); }
.arrow-link:hover::after { background: var(--brand-deep); }
.arrow-link:hover .ar { transform: translateX(6px); }

.arrow-link--muted { color: var(--muted); }
.arrow-link--muted::after { background: var(--line); }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 1.9rem;
  border-radius: 100px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.pill-link .ar { transition: transform 0.4s var(--ease); }
.pill-link:hover { background: var(--brand-deep); transform: translateY(-3px); }
.pill-link:hover .ar { transform: translateX(6px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__copy {
  max-width: 36rem;
}

/* Floating collage (no project images) */
.hero__stage {
  position: relative;
  width: 100%;
  height: min(520px, 52vh);
  min-height: 320px;
}

.hero__gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(169, 197, 242, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 197, 242, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 15%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  50% { opacity: 0.5; }
}

.hero__circuit {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
  margin: auto;
  animation: circuitSpin 52s linear infinite;
}

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

.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(169, 197, 242, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__ring--a {
  width: 90%;
  height: 90%;
  animation: ringPulse 6s ease-in-out infinite;
}

.hero__ring--b {
  width: 64%;
  height: 64%;
  border-color: rgba(93, 139, 224, 0.35);
  animation: ringPulse 6s ease-in-out infinite 1.5s;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.45; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

.hero__logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: clamp(110px, 16vw, 160px);
  filter: drop-shadow(0 0 36px rgba(169, 197, 242, 0.5));
  animation: logoFloat 5s ease-in-out infinite;
}

.hero__logo-glow::before {
  content: '';
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle, rgba(169, 197, 242, 0.4) 0%, transparent 68%);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

.hero__logo-glow img {
  width: 100%;
  border-radius: 12px;
}

@keyframes logoFloat {
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}

@keyframes glowPulse {
  50% { opacity: 0.55; transform: scale(1.08); }
}

.hero__chips {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hero__chips span {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(169, 197, 242, 0.5);
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(169, 197, 242, 0.18);
  animation: chipDrift 6s ease-in-out infinite;
}

.hero__chips span:nth-child(1) { top: 14%; left: 6%; animation-delay: 0s; }
.hero__chips span:nth-child(2) { top: 6%; right: 10%; animation-delay: 0.9s; }
.hero__chips span:nth-child(3) { bottom: 22%; right: 4%; animation-delay: 1.8s; }
.hero__chips span:nth-child(4) { bottom: 8%; left: 14%; animation-delay: 2.4s; }
.hero__chips span:nth-child(5) { top: 48%; right: 2%; animation-delay: 3.2s; }

@keyframes chipDrift {
  50% { transform: translateY(-7px); }
}

.hero__nodes i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 14px var(--brand);
  animation: nodeBlink 3s ease-in-out infinite;
}

.hero__nodes i:nth-child(1) { top: 20%; left: 38%; animation-delay: 0s; }
.hero__nodes i:nth-child(2) { top: 65%; left: 55%; animation-delay: 0.5s; background: var(--brand-deep); }
.hero__nodes i:nth-child(3) { top: 42%; right: 14%; animation-delay: 1s; }
.hero__nodes i:nth-child(4) { bottom: 18%; left: 22%; animation-delay: 1.5s; }
.hero__nodes i:nth-child(5) { top: 10%; right: 40%; animation-delay: 2s; }
.hero__nodes i:nth-child(6) { bottom: 35%; right: 36%; animation-delay: 2.5s; background: var(--brand-deep); }

@keyframes nodeBlink {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.12); }
}

.mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mesh span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  will-change: transform;
}

.mesh .m1 {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, var(--brand) 0%, transparent 68%);
  top: -12%; right: -8%;
  animation: drift1 18s ease-in-out infinite;
}
.mesh .m2 {
  width: 38vw; height: 38vw;
  background: radial-gradient(circle, #c9dbf8 0%, transparent 68%);
  bottom: -16%; left: -10%;
  animation: drift2 22s ease-in-out infinite;
}
.mesh .m3 {
  width: 26vw; height: 26vw;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%);
  top: 30%; left: 40%;
  animation: drift3 26s ease-in-out infinite;
}

@keyframes drift1 { 50% { transform: translate(-6vw, 5vh) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(5vw, -4vh) scale(1.08); } }
@keyframes drift3 { 50% { transform: translate(-4vw, -6vh) scale(0.9); } }

.hero__label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero__label::before {
  content: '';
  width: 38px;
  height: 1.5px;
  background: var(--brand-deep);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.hero h1 .ital {
  font-size: 0.92em;
}

.hero__sub {
  margin-top: 2.25rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero__cta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue .dot {
  width: 22px; height: 34px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  position: relative;
}
.scroll-cue .dot::after {
  content: '';
  position: absolute;
  left: 50%; top: 6px;
  width: 3px; height: 6px;
  border-radius: 3px;
  background: var(--brand-deep);
  transform: translateX(-50%);
  animation: scrolly 1.8s ease-in-out infinite;
}
@keyframes scrolly { 50% { transform: translate(-50%, 10px); opacity: 0.3; } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.65rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 0.08em 1.6rem 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 3.2rem;
  line-height: 1.15;
}

.marquee__track span::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

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

/* ---------- Sections ---------- */
.sec {
  padding: clamp(5rem, 12vh, 11rem) 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--brand-deep);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}

/* About / statement split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

/* Numbered value list (no cards) */
.vlist {
  margin-top: clamp(3rem, 7vh, 6rem);
  border-top: 1px solid var(--line);
}

.vrow {
  display: grid;
  grid-template-columns: auto 1fr 1.4fr;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: baseline;
  padding: clamp(1.6rem, 4vh, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
}

.vrow__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brand-deep);
  font-weight: 500;
}

.vrow__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.vrow__text {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ---------- Project index (editorial rows) ---------- */
.index {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 6vh, 5rem);
}

.index__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 4.5vh, 3rem) 0.5rem calc(clamp(1.5rem, 4.5vh, 3rem) + 0.1em);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: color 0.4s var(--ease);
}

.index__row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}

.index__row > * { position: relative; z-index: 1; }

.index__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}

.index__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
  transition: transform 0.5s var(--ease), color 0.4s var(--ease);
}

.index__meta {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
  transition: color 0.4s var(--ease);
  white-space: nowrap;
}

.index__arrow {
  font-size: 1.6rem;
  transition: transform 0.5s var(--ease), color 0.4s var(--ease);
}

@media (hover: hover) {
  .index__row:hover::before { transform: translateY(0); }
  .index__row:hover .index__title { color: #fff; transform: translateX(14px); }
  .index__row:hover .index__num,
  .index__row:hover .index__meta { color: rgba(255, 255, 255, 0.6); }
  .index__row:hover .index__arrow { color: var(--brand); transform: translateX(8px) rotate(-45deg); }
}

/* ---------- Big type statement (AI / closing) ---------- */
.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5.5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 20ch;
}

.statement .ital { font-size: 0.95em; }

.flow {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  max-width: 60ch;
}

.flow span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.flow span::after {
  content: '/';
  color: var(--brand);
  margin: 0 0.75rem;
}

.flow span:last-child::after { content: ''; }

.flow span:hover { color: var(--ink); }

/* dark section wrapper */
.dark {
  background: var(--ink);
  color: #fff;
}

.dark .eyebrow { color: var(--brand); }
.dark .eyebrow::before { background: var(--brand); }
.dark .lead { color: rgba(255, 255, 255, 0.62); }
.dark .statement .ital { color: var(--brand); }

/* ---------- CTA ---------- */
.cta {
  text-align: left;
}

.cta__big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin-bottom: 3rem;
}

/* ---------- Page header ---------- */
.phead {
  position: relative;
  padding: calc(var(--nav-h) + 6vh) 0 8vh;
  overflow: hidden;
}

.phead h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 14vw, 11rem);
  line-height: 1;
  letter-spacing: -0.05em;
  padding-bottom: 0.06em;
}

.phead__sub {
  margin-top: 2rem;
  max-width: 48ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Project detail (editorial, no cards) ---------- */
.project {
  padding: clamp(4rem, 10vh, 9rem) 0;
  border-top: 1px solid var(--line);
}

.project__top {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.project__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--brand);
  line-height: 1;
}

.tag-soft {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  border: 1px solid var(--brand);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
}

.project h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
}

.project__desc {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}

.project__shot {
  max-width: min(720px, 100%);
  margin: clamp(2.5rem, 6vh, 4.5rem) auto clamp(3rem, 7vh, 5rem);
  position: relative;
}

.project__shot img {
  width: 100%;
  max-height: clamp(220px, 42vh, 440px);
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.1);
  background: var(--bg-soft);
}

.project__shot figcaption {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  max-width: min(880px, 100%);
  margin: clamp(2.5rem, 6vh, 4.5rem) auto clamp(3rem, 7vh, 5rem);
}

.project__gallery .project__shot {
  margin: 0;
  max-width: none;
}

.project__gallery .project__shot img {
  max-height: clamp(180px, 32vh, 360px);
}

/* feature list — text rows, no boxes */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  padding-right: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}

.feature:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-left: 0;
}

.feature:nth-child(even) {
  padding-left: 2rem;
}

.feature__k {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--brand-deep);
  white-space: nowrap;
  min-width: 1.5rem;
}

.feature strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.feature span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.subhead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: clamp(2.5rem, 6vh, 4rem) 0 1.5rem;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  max-width: 70ch;
}

.inline-list li {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
}

.inline-list li::after {
  content: '·';
  color: var(--brand);
  margin: 0 0.85rem;
}

.inline-list li:last-child::after { content: ''; }

.note {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 58ch;
  padding-left: 1.5rem;
  border-left: 2px solid var(--brand);
}

.note em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--brand-deep);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stack span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.stack span:hover {
  border-color: var(--brand-deep);
  color: var(--brand-deep);
}

/* benefits — clean three column text */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.benefit__k {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--brand-deep);
  margin-bottom: 0.85rem;
}

.benefit strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.benefit span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---------- Skills editorial rows ---------- */
.skills {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 6vh, 5rem);
}

.srow {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.srow__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.srow__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brand-deep);
}

.srow h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.srow__items {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.3rem 0;
}

.srow__items li {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.srow__items li::after {
  content: '·';
  color: var(--brand);
  margin: 0 0.8rem;
}

.srow__items li:last-child::after { content: ''; }
.srow__items li:hover { color: var(--brand-deep); }

/* ---------- Footer ---------- */
.foot {
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 10vh, 7rem) 0 calc(2.5rem + env(safe-area-inset-bottom, 0));
}

.foot__big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 20ch;
  margin-bottom: clamp(3rem, 8vh, 5rem);
}

.foot__big .ital { color: var(--brand); }

.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.foot__links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  transition: color 0.3s var(--ease);
}

.foot__links a:hover { color: var(--brand); }

.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.foot__brand img { height: 30px; }

.foot__copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Contact ---------- */
.mail-link {
  color: var(--brand-deep);
  border-bottom: 1px solid var(--brand);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.mail-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.contact-mail {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  transition: color 0.3s var(--ease);
}

.contact-mail:hover { color: var(--brand-deep); }

.contact-note {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 36ch;
}

.contact-form {
  border-top: 1px solid var(--line);
}

.field {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink);
  outline: none;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(113, 124, 140, 0.55);
}

.field input:focus,
.field textarea:focus {
  color: var(--ink);
}

.form-foot {
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.form-status {
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.4em;
}

.form-status--success { color: var(--brand-deep); }
.form-status--error { color: #c0392b; }

.pill-link:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Animations ---------- */
.r {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.r.in { opacity: 1; transform: none; }

.r.d1 { transition-delay: 0.08s; }
.r.d2 { transition-delay: 0.16s; }
.r.d3 { transition-delay: 0.24s; }
.r.d4 { transition-delay: 0.32s; }
.r.d5 { transition-delay: 0.4s; }

/* line-reveal headings */
.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
}

.lines .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  padding-bottom: 0.02em;
}

.lines.in .line:nth-child(1) > span { transition-delay: 0.05s; }
.lines.in .line:nth-child(2) > span { transition-delay: 0.15s; }
.lines.in .line:nth-child(3) > span { transition-delay: 0.25s; }
.lines.in .line:nth-child(4) > span { transition-delay: 0.35s; }
.lines.in .line > span { transform: translateY(0); }

/* stagger group */
.stag > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.stag.in > *:nth-child(1) { transition-delay: 0.05s; }
.stag.in > *:nth-child(2) { transition-delay: 0.13s; }
.stag.in > *:nth-child(3) { transition-delay: 0.21s; }
.stag.in > *:nth-child(4) { transition-delay: 0.29s; }
.stag.in > *:nth-child(5) { transition-delay: 0.37s; }
.stag.in > *:nth-child(6) { transition-delay: 0.45s; }
.stag.in > *:nth-child(7) { transition-delay: 0.53s; }
.stag.in > *:nth-child(8) { transition-delay: 0.61s; }
.stag.in > * { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; align-items: start; gap: 2.5rem; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(odd) { border-right: none; }
  .feature:nth-child(even) { padding-left: 0; }
  .benefits { grid-template-columns: 1fr; gap: 2rem; }
  .srow { grid-template-columns: 1fr; gap: 1.25rem; }
  .vrow { grid-template-columns: auto 1fr; gap: 1rem 1.5rem; }
  .vrow__text { grid-column: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-aside { position: static; }
  .project__gallery { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 70px; }
  .nav__links { display: none; }
  .burger { display: flex; }
  .index__meta { display: none; }
  .index__arrow { margin-left: auto; }
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 2rem) 0 3rem;
  }
  .scroll-cue { display: none; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__stage {
    order: 1;
    height: clamp(260px, 55vw, 340px);
    min-height: 260px;
  }

  .hero__copy {
    max-width: none;
    order: 2;
  }

  .hero__circuit { animation: none; }
  .hero__chips span { font-size: 0.62rem; padding: 0.35rem 0.65rem; }
  .hero__logo-glow { width: clamp(90px, 22vw, 120px); }

  .mesh span { filter: blur(50px); }
}

@media (max-width: 560px) {
  .brand span { display: none; }
  .project__top { gap: 1rem; }
  .vrow { grid-template-columns: 1fr; gap: 0.5rem; }
  .vrow__num { order: -1; }
  .vrow__text { grid-column: 1; }
  .foot__row { flex-direction: column; align-items: flex-start; }
}

@media (hover: none) and (pointer: coarse) {
  .index__row:active::before { transform: translateY(0); }
  .index__row:active .index__title { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .r, .stag > *, .lines .line > span { opacity: 1; transform: none; }
  .hero__circuit { animation: none; }
  .hero__logo-glow, .hero__chips span { animation: none !important; }
}
