/* =========================================================
   LIUBOV IONESI — PORTFOLIO
   Design system: Achromatic base + spot color (vermillion)
   Editorial Swiss grid, tight tracking, big typography
   ========================================================= */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500&family=Archivo+Narrow:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---- Tokens ---- */
:root {
  /* Achromatic */
  --ink: #0A0A0A;           /* near-black */
  --paper: #F4F1EB;          /* warm ivory (page) */
  --paper-2: #EAE6DE;        /* ivory deeper */
  --paper-3: #DDD8CD;        /* ivory deepest */
  --line: #111111;           /* hairlines */
  --line-soft: rgba(10,10,10,0.14);
  --muted: #5A5853;
  --muted-2: #8A877F;

  /* Spot color — vermillion */
  --spot: #E63B1E;
  --spot-ink: #C2311A;
  --spot-glow: rgba(230,59,30,0.18);

  /* Dark surfaces */
  --dark: #0E0E10;
  --dark-2: #161618;

  /* Typography */
  --f-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-narrow: 'Archivo Narrow', 'Archivo', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --gutter: 24px;
  --max: 1440px;
  --rail: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ---- Base ---- */
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: var(--spot); color: var(--paper); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- Grain overlay (subtle film texture) ---- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.65 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =========================================================
   Navigation (fixed top bar)
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--rail);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__brand {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  display: flex; align-items: center; gap: 10px;
}
.nav__brand .dot {
  width: 10px; height: 10px; background: var(--spot);
  display: inline-block;
}
.nav__links {
  display: flex; gap: 28px; justify-content: center;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: var(--spot);
  transition: width .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--spot); }

.nav__cta {
  justify-self: end;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 10px;
}
.nav__cta .status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
}
.nav__cta .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2BB673;
  box-shadow: 0 0 0 0 rgba(43,182,115,.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,182,115,.6); }
  70% { box-shadow: 0 0 0 10px rgba(43,182,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,182,115,0); }
}

.nav__burger { display: none; }

@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__cta .status-text { display: none; }
}

/* =========================================================
   Utility
   ========================================================= */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--rail); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .sq { width: 8px; height: 8px; background: var(--spot); display: inline-block; }

.rule { height: 1px; background: var(--line); width: 100%; }
.rule--soft { background: var(--line-soft); }

.spot { color: var(--spot); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* =========================================================
   HERO (Home)
   ========================================================= */
.hero {
  padding: 140px var(--rail) 60px;
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 48px;
}
.hero__meta span strong { display: block; color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 13px; margin-top: 4px; letter-spacing: 0; text-transform: none; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero__title .line { display: block; }
.hero__title .italic { font-style: italic; font-weight: 500; letter-spacing: -0.03em; }
.hero__title .outline {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.hero__title .spot-word { color: var(--spot); }

.hero__bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 32px;
  padding-top: 48px;
  align-items: end;
}
.hero__intro {
  font-size: 17px;
  line-height: 1.55;
  max-width: 44ch;
  color: var(--muted);
}
.hero__intro b { color: var(--ink); font-weight: 600; }
.hero__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tag {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tag--spot { background: var(--spot); color: var(--paper); border-color: var(--spot); }
.tag--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.hero__scroll {
  justify-self: end;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.hero__scroll .arrow {
  width: 1px; height: 48px; background: var(--ink);
  position: relative;
  animation: drop 2.4s ease-in-out infinite;
}
@keyframes drop {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* Ticker marquee */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
  padding: 14px 0;
  display: flex;
  gap: 64px;
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.ticker__inner {
  display: inline-flex; gap: 64px;
  animation: marq 38s linear infinite;
}
.ticker .sep { color: var(--spot); }
@keyframes marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   SECTION: selected work
   ========================================================= */
.section {
  padding: 120px var(--rail);
}
.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "eyebrow  counter"
    "title    title";
  gap: 16px 24px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.section__head .eyebrow { grid-area: eyebrow; align-self: start; }
.section__head .section__title { grid-area: title; margin-top: 12px; }
.section__head .section__counter { grid-area: counter; align-self: start; text-align: right; }
.section__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}
.section__title .italic { font-style: italic; font-weight: 500; }
.section__counter {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.work-list > article {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr auto;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  position: relative;
  transition: padding .4s var(--ease);
}
.work-list > article:hover { padding-left: 12px; }
.work-list > article:hover .work__title { color: var(--spot); }
.work-list > article:hover .work__arrow { transform: translateX(8px); color: var(--spot); }

.work__num {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--muted);
}
.work__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color .3s var(--ease);
}
.work__meta {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.work__meta .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work__meta .tags span {
  border: 1px solid var(--line-soft);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
}
.work__arrow {
  font-size: 32px;
  transition: transform .3s var(--ease), color .3s var(--ease);
}

/* =========================================================
   STATS strip
   ========================================================= */
.stats {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--rail);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.stat__num sup { font-size: 0.4em; color: var(--spot); top: -0.6em; }
.stat__label {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-top: 16px;
  max-width: 22ch;
  line-height: 1.4;
}
.stat--spot .stat__num { color: var(--spot); }

/* =========================================================
   ABOUT / EXPERIENCE teaser
   ========================================================= */
.about {
  padding: 120px var(--rail);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__left {
  position: sticky; top: 120px;
}
.about__photo {
  width: 100%;
  max-width: 420px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
  filter: grayscale(100%) contrast(1.05);
  transition: filter .6s var(--ease);
}
.about__photo:hover img { filter: grayscale(0%) contrast(1); }
.about__photo::after {
  content: "2026 —"; position: absolute; bottom: 12px; left: 12px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--paper); mix-blend-mode: difference;
  letter-spacing: .1em;
}

.about__right h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  text-transform: uppercase;
}
.about__right h2 .italic { font-style: italic; font-weight: 500; }
.about__right p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 52ch;
}
.about__right p b { color: var(--spot); font-weight: 600; }
.about__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.fact__key {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.fact__val {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* =========================================================
   EXPERIENCE list
   ========================================================= */
.exp {
  padding: 120px var(--rail);
  background: var(--paper-2);
}
.exp__item {
  display: grid;
  grid-template-columns: 160px 1fr 220px 40px;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}
.exp__item:last-child { border-bottom: 1px solid var(--line-soft); }
.exp__period {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .05em;
}
.exp__role {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.exp__role span { display: block; color: var(--muted); font-weight: 400; font-size: 15px; margin-top: 4px; letter-spacing: 0; }
.exp__company {
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--ink);
}
.exp__mark {
  font-family: var(--f-mono); font-size: 18px; color: var(--spot);
  text-align: right;
}

/* =========================================================
   CONTACT / Footer-hero
   ========================================================= */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 140px var(--rail) 60px;
  position: relative;
  overflow: hidden;
}
.contact__kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 32px;
}
.contact__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.contact__title .spot-word { color: var(--spot); }
.contact__title .italic { font-style: italic; font-weight: 500; }
.contact__title .outline {
  -webkit-text-stroke: 2px var(--paper);
  color: transparent;
}
.contact__email {
  display: inline-block;
  margin-top: 56px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--spot);
  padding-bottom: 6px;
  transition: color .3s var(--ease);
}
.contact__email:hover { color: var(--spot); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 120px;
  padding-top: 48px;
  border-top: 1px solid rgba(244,241,235,0.14);
}
.contact__grid h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 16px;
  font-weight: 500;
}
.contact__grid a, .contact__grid p {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper);
  margin-bottom: 6px;
}
.contact__grid a:hover { color: var(--spot); }

.contact__bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid rgba(244,241,235,0.14);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* =========================================================
   CASE STUDY pages
   ========================================================= */
.cs-hero {
  padding: 140px var(--rail) 80px;
  border-bottom: 1px solid var(--line);
}
.cs-breadcrumb {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 48px;
  display: flex; align-items: center; gap: 10px;
}
.cs-breadcrumb a:hover { color: var(--spot); }
.cs-breadcrumb .arrow { color: var(--spot); }

.cs-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.cs-title .italic { font-style: italic; font-weight: 500; }
.cs-title .spot-word { color: var(--spot); }

.cs-tagline {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  max-width: 68ch;
  color: var(--ink);
  margin-bottom: 64px;
  letter-spacing: -0.01em;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-meta__key {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.cs-meta__val {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

/* Case study sections */
.cs-section {
  padding: 120px var(--rail);
  border-bottom: 1px solid var(--line-soft);
}
.cs-section__label {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.cs-section__label::before {
  content: ""; width: 10px; height: 10px; background: var(--spot);
  display: inline-block;
}
.cs-section__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 48px;
  max-width: 18ch;
}
.cs-section__title .italic { font-style: italic; font-weight: 500; }

.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.cs-two-col p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 62ch;
}
.cs-two-col p.lead {
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
  font-weight: 500;
}
.cs-two-col p b { color: var(--spot); font-weight: 600; }

.cs-callout {
  background: var(--ink);
  color: var(--paper);
  padding: 48px;
  margin: 48px 0;
  border-left: 4px solid var(--spot);
}
.cs-callout q {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  display: block;
  margin-bottom: 16px;
}
.cs-callout .attr {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

/* Bullets + metrics */
.cs-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.cs-list li {
  font-size: 16px;
  line-height: 1.55;
  padding-left: 28px;
  position: relative;
  max-width: 62ch;
}
.cs-list li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 12px; height: 2px; background: var(--spot);
}

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.cs-metric {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--paper);
}
.cs-metric__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--spot);
}
.cs-metric__label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.4;
}

/* Process stepper */
.cs-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
  counter-reset: step;
}
.cs-step {
  padding: 24px 20px 28px;
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  position: relative;
  min-height: 220px;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.cs-step:hover { background: var(--paper); border-top-color: var(--spot); }
.cs-step__num {
  counter-increment: step;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--spot);
  margin-bottom: 20px;
}
.cs-step__num::before { content: "0" counter(step) " · "; color: var(--spot); }
.cs-step__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.cs-step__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Key screens / mockups */
.cs-screens {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.cs-screen {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  position: relative;
  transition: transform .4s var(--ease);
}
.cs-screen:hover { transform: translateY(-4px); border-color: var(--spot); }
.cs-screen__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  display: flex; justify-content: space-between;
}
.cs-screen__caption .num { color: var(--spot); }

.cs-screen--lg { grid-column: span 12; aspect-ratio: 16/9; }
.cs-screen--md { grid-column: span 6; aspect-ratio: 16/10; }
.cs-screen--sm { grid-column: span 4; aspect-ratio: 4/5; }
.cs-screen--mobile { grid-column: span 3; aspect-ratio: 9/18; }

/* Mobile screen frame */
.phone-frame {
  background: #1A1A1E;
  border-radius: 28px;
  padding: 10px;
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.phone-frame__screen {
  background: var(--paper);
  border-radius: 20px;
  width: 100%; height: 100%;
  overflow: hidden;
  position: relative;
}

/* Next project */
.cs-next {
  padding: 120px var(--rail);
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.cs-next__label {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 24px;
}
.cs-next__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 180px);
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
  transition: color .4s var(--ease);
}
.cs-next:hover .cs-next__title { color: var(--spot); }
.cs-next__title .italic { font-style: italic; font-weight: 500; }
.cs-next__arrow { font-size: 80px; margin-top: 24px; display: inline-block; color: var(--spot); transition: transform .4s var(--ease); }
.cs-next:hover .cs-next__arrow { transform: translateX(16px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 32px; }
  .hero__scroll { display: none; }
  .work-list > article { grid-template-columns: 60px 1fr 1fr auto; gap: 20px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-two-col { grid-template-columns: 1fr; gap: 32px; }
  .cs-process { grid-template-columns: repeat(2, 1fr); }
  .cs-metrics { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__left { position: static; }
  .about__photo { max-width: 280px; }
  .exp__item { grid-template-columns: 120px 1fr 40px; }
  .exp__company { grid-column: 2; grid-row: 2; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__meta { grid-template-columns: repeat(2, 1fr); }
  .cs-screen--sm, .cs-screen--md { grid-column: span 6; }
  .cs-screen--mobile { grid-column: span 6; }
}
@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .hero { padding: 110px 20px 40px; }
  .section, .cs-section, .exp, .about, .contact { padding-left: 20px; padding-right: 20px; }
  .cs-hero { padding-left: 20px; padding-right: 20px; }
  .work-list > article { grid-template-columns: 40px 1fr auto; gap: 16px; padding: 28px 0; }
  .work__meta { display: none; }
  .section__head { grid-template-columns: 1fr auto; align-items: baseline; }
  .section__counter { grid-column: 2; }
  .cs-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cs-metrics { grid-template-columns: 1fr 1fr; }
  .cs-process { grid-template-columns: 1fr; }
  .cs-screen--lg, .cs-screen--md, .cs-screen--sm, .cs-screen--mobile { grid-column: span 12; }
  .contact__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .exp__item { grid-template-columns: 1fr; gap: 6px; }
  .exp__period, .exp__company, .exp__mark { display: inline-block; }
  .exp__mark { text-align: left; }
}
