/* ============================================================
   uxleo — portfolio
   Cold Scandinavian minimalism. Type does the talking.
   ============================================================ */

:root {
  --paper: #eef1f4;
  --paper-2: #e4e8ee;
  --ink: #0b0e13;
  --ink-2: #3c434e;
  --muted: #565e68;           /* AA: 5.7:1 on paper */
  --accent: #1f3ae6;          /* cold Klein blue */
  --accent-ice: #9fb6ff;
  --line: rgba(11, 14, 19, 0.12);
  --line-dark: rgba(238, 241, 244, 0.14);

  --font-display: "Clash Display", "Archivo", sans-serif;
  --font-body: "General Sans", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* ---------- accessibility utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 50%;
  top: 0.6rem;
  transform: translate(-50%, -160%);
  z-index: 100;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* visible keyboard focus, tuned per background */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark :focus-visible,
.footer :focus-visible,
.case:focus-visible,
.marquee :focus-visible { outline-color: var(--accent-ice); }
/* don't show the ring on mouse click, only keyboard */
:focus:not(:focus-visible) { outline: none; }

/* ---------- background grid lines ---------- */
.grid-lines {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: space-evenly;
  pointer-events: none;
  z-index: 0;
}
.grid-lines i {
  width: 1px;
  background: var(--line);
  opacity: 0.5;
}

main { position: relative; z-index: 1; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.nav__logo sup { color: var(--accent); font-size: 0.6em; }
.nav__links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.nav__links a,
.nav__links button {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__links a::after,
.nav__links button::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links button:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  transition: border-color 0.3s, background 0.3s;
}
.nav__status:hover { border-color: var(--accent); }
.nav__status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s infinite;
}

/* hamburger — mobile only */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav--open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 58, 230, 0.45); }
  55% { box-shadow: 0 0 0 7px rgba(31, 58, 230, 0); }
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 7.5rem var(--gutter) 3rem;
  position: relative;
}
.hero__layout {
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  grid-template-areas:
    "text portrait"
    "meta portrait";
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}
.hero__text { grid-area: text; position: relative; z-index: 2; }
.hero__eyebrow {
  color: var(--muted);
  margin-bottom: clamp(1.25rem, 3.5vh, 2.5rem);
}
.hero__name {
  font-family: var(--font-display);
  font-weight: 500;
  color: rgba(11, 14, 19, 0.7);
  font-size: clamp(3.6rem, 14vw, 14rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
/* surname scaled so both lines sit flush at the same width */
.hero__name .line:nth-child(2) { font-size: 0.726em; }
.line { display: block; overflow: hidden; }
.line--accent .line__inner { color: var(--accent); }
.line__inner {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.line:nth-child(1) .line__inner { animation-delay: 0.15s; }
.line:nth-child(2) .line__inner { animation-delay: 0.28s; }
.line:nth-child(3) .line__inner { animation-delay: 0.41s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-top: clamp(1rem, 2.5vh, 1.75rem);
}
.hero__tagline em {
  font-style: normal;
  color: var(--accent);
}

.hero__portrait {
  grid-area: portrait;
  justify-self: end;
  align-self: end;
  width: min(100%, 29rem);
  margin: 0;
  position: relative;
  aspect-ratio: 1;
  z-index: 1;
}
/* older WebKit without aspect-ratio: keep the square via padding */
@supports not (aspect-ratio: 1) {
  .hero__portrait::before {
    content: "";
    display: block;
    padding-top: 100%;
  }
}
/* the canvas is oversized: dot animations may fly beyond the photo,
   under the (semi-transparent) name letters */
.hero__portrait canvas {
  position: absolute;
  left: -20%;
  top: -20%;
  width: 140%;
  height: 140%;
  display: block;
  touch-action: pan-y;
}

.hero__meta {
  grid-area: meta;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(1.25rem, 3vh, 2.5rem);
}
.hero__sub {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: balance;
}
.hero__sub em {
  font-style: normal;
  color: var(--accent);
}
.hero__scroll {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.hero__scroll-arrow {
  display: inline-block;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.4rem 0;
  background: var(--paper-2);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: scroll-x 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}
.marquee__track i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.6rem;
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 8vh, 5.5rem);
}
.section__num {
  color: var(--accent);
  font-size: 0.85rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark .section__num { color: var(--accent-ice); }

/* ============ APPROACH ============ */
.approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.approach__item {
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 3rem);
  transition: background 0.4s var(--ease-out);
  position: relative;
}
.approach__item:hover { background: var(--paper-2); }
.approach__index {
  display: inline-flex;
  width: 2.2rem; height: 2.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 2.5rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.approach__item:hover .approach__index {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.approach__item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.approach__item p { color: var(--ink-2); font-size: 0.98rem; }

/* ============ CASES ============ */
.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.case {
  display: block;
  group: case;
}
.case__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #10141b;
  border: 1px solid var(--line-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 3rem);
  transition: border-color 0.4s;
}
/* let the honey drips hang past the bottom edge */
.case__visual { overflow: visible; overflow-x: clip; }
.case:hover .case__visual { border-color: var(--accent-ice); }

/* real screenshot preview filling the card */
.case__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
}
/* scrim so the outline number + drips read over a light UI shot */
.case__visual:has(.case__preview)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(16, 20, 27, 0.10) 0%,
    rgba(16, 20, 27, 0) 34%,
    rgba(11, 14, 19, 0.55) 82%,
    rgba(11, 14, 19, 0.82) 100%);
  z-index: 1;
  pointer-events: none;
}
.case__visual:has(.case__preview) .case__num { z-index: 2; }

/* honey-melt: the card's bottom edge drips like sweet, viscous UI */
.case__melt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 0;
  filter: url(#goo);
  pointer-events: none;
  z-index: 3;
  opacity: 0.85;              /* light translucency over the card */
}
.case__melt::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0;
  height: 10px;
  background: var(--accent);
}
.case__melt i {
  position: absolute;
  bottom: 0;
  left: var(--x);
  width: calc(26px * var(--s));
  height: calc(26px * var(--s));
  margin-left: calc(-13px * var(--s));
  background: var(--accent);
  border-radius: 50%;
  transform-origin: top center;
  animation: drip var(--d) ease-in-out var(--delay) infinite;
}
@keyframes drip {
  0%, 100% { transform: translateY(-6px) scaleY(0.9); }
  50%      { transform: translateY(15px) scaleY(1.6); }
}
.case:hover .case__melt i { animation-duration: calc(var(--d) * 0.55); }
.case__redact {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}
.case__redact i {
  display: block;
  height: clamp(0.9rem, 2vw, 1.4rem);
  background: linear-gradient(100deg,
    rgba(238,241,244,0.10) 30%,
    rgba(238,241,244,0.22) 50%,
    rgba(238,241,244,0.10) 70%);
  background-size: 220% 100%;
  animation: shimmer 2.6s ease-in-out infinite;
}
.case__redact i:nth-child(2) { animation-delay: 0.2s; }
.case__redact i:nth-child(3) { animation-delay: 0.4s; }
.case__redact i:nth-child(4) { animation-delay: 0.6s; }
.case__redact i:nth-child(5) { animation-delay: 0.8s; }
@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
.case__num {
  position: absolute;
  right: 1.5rem;
  bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 241, 244, 0.25);
  transition: -webkit-text-stroke-color 0.4s, transform 0.6s var(--ease-out);
}
.case:hover .case__num {
  -webkit-text-stroke-color: var(--accent-ice);
  transform: translateY(-6px);
}
.case__meta { padding-top: 1.5rem; }
.case__tag { color: var(--accent-ice); display: block; margin-bottom: 0.6rem; }
.case__meta h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.case__arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
.case:hover .case__arrow { transform: translateX(10px); }
.case__meta p {
  color: rgba(238, 241, 244, 0.72);
  margin-top: 0.5rem;
  font-size: 0.95rem;
  max-width: 26rem;
}
.cases__note {
  margin-top: clamp(3rem, 6vh, 4.5rem);
  color: rgba(238, 241, 244, 0.68);
  text-transform: none;
  letter-spacing: 0.03em;
}
.cases__note a {
  color: var(--accent-ice);
  border-bottom: 1px solid currentColor;
}

/* ============ ABOUT ============ */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.about__lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}
.about__text p:not(.about__lede) { color: var(--ink-2); max-width: 40rem; }
.about__facts dl {
  display: flex;
  flex-direction: column;
}
.about__facts dl > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.about__facts dl > div:last-child { border-bottom: 1px solid var(--line); }
.about__facts dt { color: var(--accent); }
.about__facts dd { color: var(--ink-2); font-size: 0.95rem; }

/* ============ CONTACT ============ */
.contact { padding-bottom: clamp(4rem, 8vh, 6rem); }
.contact__big {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(3rem, 7vh, 5rem);
  width: fit-content;
}
.contact__big .line__inner {
  transform: none;
  animation: none;
  transition: transform 0.5s var(--ease-out), color 0.5s;
}
.contact__big:hover .line__inner { transform: translateX(1.5rem); }
.contact__big:hover .line--accent .line__inner { color: var(--accent-ice); }
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.contact__links a,
.contact__links button {
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  color: inherit;
  background: none;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.contact__links a:hover,
.contact__links button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============ FOOTER ============ */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem var(--gutter);
  background: var(--ink);
  color: rgba(238, 241, 244, 0.66);
  border-top: 1px solid var(--line-dark);
}
.footer a:hover { color: #fff; }

/* ============ CV MODAL ============ */
/* a small nav/contact "CV" trigger styled inline with its siblings */
.cv-trigger { cursor: pointer; background: none; border: 0; }

/* the dialog is just a transparent frame; the shell holds the card */
.cv-modal {
  padding: 0;
  border: 0;
  background: transparent;
  width: min(1080px, calc(100vw - clamp(1rem, 4vw, 3.5rem)));
  height: min(880px, calc(100dvh - clamp(1rem, 5vw, 3.5rem)));
  max-width: none;
  max-height: none;
  margin: auto; /* the global `* { margin: 0 }` reset kills centering */
  overflow: visible;
}
.cv-modal::backdrop {
  background: rgba(11, 14, 19, 0.5);
  backdrop-filter: blur(6px) saturate(115%);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
}
.cv-modal[open] { animation: cv-in 0.35s var(--ease-out); }
@keyframes cv-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cv-modal__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 30px 90px -20px rgba(11, 14, 19, 0.55);
  background: #fff;
}

/* the sticky bars — bright accent blue, per Leo */
.cv-modal__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #fff;
}
.cv-modal__bar--top { justify-content: space-between; }
.cv-modal__bar--bottom { justify-content: flex-end; }
.cv-modal__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding-left: 0.25rem;
}
.cv-modal__actions { display: inline-flex; align-items: center; gap: 0.5rem; }
.cv-modal__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  min-height: 34px;
  padding: 0.4rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.cv-modal__btn:hover {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  transform: translateY(-1px);
}
.cv-modal__btn--icon {
  width: 34px;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1;
}
.cv-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

@media (max-width: 760px) {
  .cv-modal {
    width: calc(100vw - 1rem);
    height: calc(100dvh - 1rem);
  }
  .cv-modal__shell { border-radius: 14px; }
}

/* ============ CASE STUDY PAGES ============ */
.cs-hero {
  padding: 11rem var(--gutter) 4rem;
}
.cs-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  margin-bottom: 3rem;
  transition: color 0.3s;
}
.cs-hero__back:hover { color: var(--accent); }
.cs-hero__tag { color: var(--accent); display: block; margin-bottom: 1.25rem; }
.cs-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 20ch;
}
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 var(--gutter);
}
.cs-meta > div {
  padding: 1.75rem 1.5rem;
}
.cs-meta > div + div { border-left: 1px solid var(--line); }
.cs-meta dt { color: var(--muted); margin-bottom: 0.5rem; }
.cs-meta dd { font-weight: 500; }
.cs-body {
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vh, 6rem);
  max-width: 68rem;
}
.cs-block h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.cs-block h2 .mono { color: var(--accent); font-size: 0.8rem; }
.cs-block p { color: var(--ink-2); max-width: 44rem; margin-bottom: 1rem; }
.cs-placeholder {
  border: 1px dashed var(--line);
  background: var(--paper-2);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cs-placeholder i {
  display: block;
  height: 1rem;
  background: linear-gradient(100deg,
    rgba(11,14,19,0.06) 30%,
    rgba(11,14,19,0.13) 50%,
    rgba(11,14,19,0.06) 70%);
  background-size: 220% 100%;
  animation: shimmer 2.6s ease-in-out infinite;
}
.cs-placeholder i:nth-child(2) { animation-delay: 0.2s; width: 82%; }
.cs-placeholder i:nth-child(3) { animation-delay: 0.4s; width: 64%; }
.cs-placeholder i:nth-child(4) { animation-delay: 0.6s; width: 90%; }
.cs-placeholder .mono { color: var(--muted); text-transform: none; letter-spacing: 0.03em; }
.cs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  max-width: 44rem;
}
.cs-list li {
  color: var(--ink-2);
  padding: 1rem 0 1rem 1.75rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.cs-list li:last-child { border-bottom: 1px solid var(--line); }
.cs-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.55rem;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.cs-list strong { color: var(--ink); font-weight: 600; }

/* project screenshots, framed like the dot-modal from the hero */
.cs-shot {
  margin: 2.5rem 0 0;
}
.cs-shot__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-bottom: none;
  background: var(--paper-2);
  padding: 0.65rem 1rem;
}
.cs-shot__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.cs-shot__bar i:nth-child(2) { opacity: 0.55; }
.cs-shot__bar i:nth-child(3) { opacity: 0.3; }
.cs-shot__bar .mono {
  margin-left: 0.6rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.04em;
}
.cs-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
}
.cs-shot figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.9rem 0.1rem 0;
  max-width: 44rem;
}

/* a pair of mobile screenshots shown side by side */
.cs-phones {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
  align-items: flex-start;
}
.cs-phones .cs-shot {
  flex: 1 1 260px;
  max-width: 340px;
  margin: 0;
}
.cs-shot--phone .cs-shot__bar { display: none; }
.cs-shot--phone img {
  border: 1px solid var(--line);
  border-radius: 22px;
}
.cs-shot--phone figcaption { max-width: none; }

.cs-nda {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--muted);
  width: fit-content;
  margin-top: 1rem;
}
.cs-cta {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vh, 5rem) var(--gutter);
}
.cs-cta p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  max-width: 30ch;
  line-height: 1.3;
  margin-bottom: 2rem;
  text-wrap: balance;
}
.cs-cta a.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.cs-cta a.btn:hover { background: #1830c4; transform: translateY(-2px); }

/* ============ REVEAL ON SCROLL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav__burger { display: flex; }
  .nav__status { display: none; }
  /* nav links become a drop-down panel below the bar */
  .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem var(--gutter) 1.25rem;
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }
  .nav--open .nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__links a,
  .nav__links button {
    width: 100%;
    text-align: left;
    padding: 1rem 0.25rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__links a::after,
  .nav__links button::after { display: none; }
  .approach { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: 1fr 1fr; margin: 0 var(--gutter); }
  .cs-meta > div:nth-child(odd) { border-left: none; }
  .cs-meta > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero { padding-top: 6.5rem; }
  .hero__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "portrait"
      "meta";
  }
  .hero__name { font-size: clamp(3.4rem, 21vw, 10rem); }
  .hero__portrait { justify-self: start; width: min(100%, 24rem); }
  .hero__meta { flex-direction: column; align-items: flex-start; }
}

@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; }
  .line__inner { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  /* the client marquee is core content, not decoration — keep it
     moving even when battery savers switch reduced-motion on */
  .marquee__track {
    animation-duration: 36s !important;
    animation-iteration-count: infinite !important;
  }
}
