/* ==========================================================
   Mario Lenzin — Portfolio
   Style: light editorial grid, heavy grotesk display, green accent
   ========================================================== */

:root {
  --bg: #f3f3f1;
  --bg-2: #ffffff;
  --ink: #111111;
  --ink-2: #4a4a4a;
  --muted: #8a8a86;
  --line: #d9d9d4;
  --grid: rgba(17, 17, 17, 0.08);
  --accent: #40a874;
  --accent-ink: #0d3b26;
  --accent-soft: #dff1e7;

  --display: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  background: rgba(243, 243, 241, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__logo {
  font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -0.04em;
}
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 14px;
  transition: background .2s ease, color .2s ease;
}
.nav__cta:hover { background: var(--ink); color: #fff; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(600px, calc(100svh - 62px), 860px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px var(--pad) 0;
  border-bottom: 1.5px solid var(--ink);
  isolation: isolate;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,0) 100%);
}
.hero__floor {
  position: absolute; left: -30%; right: -30%; bottom: -10px; height: 46%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(17,17,17,.14) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(17,17,17,.14) 1.5px, transparent 1.5px);
  background-size: 90px 90px;
  transform: perspective(700px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.9) 45%, rgba(0,0,0,.9) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.9) 45%, rgba(0,0,0,.9) 100%);
}

.hero__topbar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  align-items: start;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .08em; line-height: 1.5;
  color: var(--ink-2);
}
.meta small { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.meta--strong { color: var(--ink); font-weight: 500; }
.meta--center { text-align: center; }
.meta--right { text-align: right; }
.tag {
  display: inline-block; padding: 1px 7px; margin-right: 8px;
  border: 1px solid var(--ink); border-radius: 999px; font-size: 10px;
}
.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); margin-right: 6px; vertical-align: -1px;
  box-shadow: 0 0 0 3px rgba(64,168,116,.18);
}
@media (max-width: 760px) {
  .hero__topbar { grid-template-columns: 1fr 1fr; }
  .meta--center { display: none; }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  padding-top: clamp(28px, 6vh, 64px);
}

.hero__year {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: .95;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 112;
  margin-bottom: 4px;
}
.year--suffix { font-size: .62em; margin-left: 6px; }
.arrow { width: .62em; height: .62em; color: var(--ink); }
.stamp {
  margin-left: 18px;
  align-self: flex-start;
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(11px, 1.2vw, 14px); letter-spacing: .05em;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 12px;
  background: var(--bg-2);
  transform: rotate(-8deg);
  box-shadow: 3px 3px 0 var(--ink);
}
.stamp span { color: var(--accent); }

.hero__title {
  font-weight: 900;
  font-variation-settings: "wdth" 118;
  font-size: clamp(56px, 9.2vw, 132px);
  line-height: .9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero__title .line { display: block; position: relative; white-space: nowrap; }
.swoosh {
  position: absolute; width: .9em; height: .3em; margin-left: .06em;
  color: var(--ink); bottom: .08em;
}
.line--mixed { display: flex; align-items: baseline; gap: .08em; margin-top: .06em; }
.line--mixed .word { font-size: .78em; }
.word--accent {
  font-variation-settings: "wdth" 100;
  font-weight: 800;
  padding: 0 .06em;
}
.bracket { font-weight: 400; font-size: .85em; font-variation-settings: "wdth" 100; }
.asterisk { color: var(--accent); font-size: .8em; margin-left: .04em; }

.hero__pill {
  position: relative;
  display: inline-flex; align-items: center;
  margin-top: clamp(20px, 3vh, 34px);
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 6px 6px 6px 18px;
  background: var(--bg-2);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
}
.pill__label { margin-right: 14px; color: var(--ink); }
.pill__label sup { color: var(--accent); }
.pill__value {
  background: var(--accent); color: #fff; font-weight: 500;
  border-radius: 999px; padding: 9px 20px;
}
.pill__doodle { position: absolute; right: -34px; top: -20px; width: 42px; height: 42px; color: var(--ink); }

.hero__portrait {
  position: relative;
  justify-self: center;
  align-self: end;
  width: min(100%, 560px);
  aspect-ratio: 816 / 991;
  max-height: 600px;
  margin-bottom: -4px;
}
.hero__portrait img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.18));
}
.hero__portrait img.is-fallback {
  border-radius: 50%; object-fit: cover; border: 2px solid var(--ink);
}
.star { position: absolute; color: var(--ink); }
.star--1 { width: 26px; right: 12%; top: 18%; }
.star--2 { width: 14px; left: 10%; top: 34%; color: var(--accent); }
.squiggle { position: absolute; right: -4%; top: 44%; width: 64px; color: var(--ink); }

.hero__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  padding: 18px 0 20px;
  border-top: 1.5px solid var(--ink);
  font-family: var(--display); font-weight: 700;
  font-size: 15px; letter-spacing: -0.01em;
  background: linear-gradient(to top, var(--bg) 70%, rgba(243,243,241,0));
}
.hero__bottom .end { margin-left: auto; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; }
.hero__bottom .end b { color: var(--accent); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__portrait { width: min(70vw, 380px); justify-self: end; margin-top: -10px; }
  .hero__title { font-size: clamp(52px, 14vw, 110px); }
  .hero__year { font-size: clamp(40px, 10vw, 72px); }
  .pill__doodle { display: none; }
}
@media (max-width: 480px) {
  .hero__pill { flex-wrap: wrap; padding: 6px 10px; gap: 6px; }
  .pill__label { margin-right: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--ink); color: #fff;
  border-bottom: 1.5px solid var(--ink);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 12px 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  animation: marquee 34s linear infinite;
}
.marquee__track i { color: var(--accent); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vh, 110px) var(--pad);
}
.section__head {
  display: flex; align-items: baseline; gap: 20px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 14px; margin-bottom: clamp(28px, 5vh, 48px);
}
.section__num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.section__head h2 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 900; letter-spacing: -0.04em;
  text-transform: uppercase; font-variation-settings: "wdth" 112; line-height: 1;
}
.section__note { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 560px) { .section__note { display: none; } }

/* About */
.about__grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about__lead {
  font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 104;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.02em;
}
.about__lead strong { color: var(--accent-ink); background: var(--accent-soft); padding: 0 .18em; border-radius: 6px; font-weight: 700; }
.about__side p { color: var(--ink-2); }
.facts { margin-top: 22px; border-top: 1px solid var(--line); }
.facts li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.facts span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts b { font-weight: 600; text-align: right; }

@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* Experience */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.job {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.job__when { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.job__when span { display: block; color: var(--ink); font-weight: 500; }
.job__when small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.job h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "wdth" 104; line-height: 1.2; }
.job h3 em { font-style: normal; font-weight: 600; color: var(--accent); }
.job p { margin-top: 10px; color: var(--ink-2); max-width: 70ch; }
.job ul { margin-top: 12px; display: grid; gap: 6px; max-width: 72ch; }
.job li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.job li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 720px) { .job { grid-template-columns: 1fr; gap: 10px; } }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative;
  background: var(--bg-2);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.card--featured { grid-column: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.card--featured .card__tag { border-color: rgba(255,255,255,.35); color: #ddd; }
.card--featured p { color: #cfcfcb; }
.card--featured .chips li { border-color: rgba(255,255,255,.3); color: #fff; }
.card__top { display: flex; gap: 8px; flex-wrap: wrap; }
.card__tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--muted);
}
.card__tag--accent { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "wdth" 106; }
.card--featured h3 { font-size: clamp(26px, 3vw, 36px); }
.card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em;
  border: 1px solid var(--ink); border-radius: 999px; padding: 4px 10px;
}
.chips--lg li { font-size: 12px; padding: 6px 12px; background: var(--bg-2); }
.card--cta { grid-column: span 2; background: var(--accent-soft); border-color: var(--ink); flex-direction: row; flex-wrap: wrap; align-items: center; }
.card--cta .card__top { width: 100%; }
.card--cta h3 { flex: 1 1 260px; font-size: clamp(22px, 2.4vw, 30px); }
.card--cta p { flex: 1 1 240px; }
.card--cta .btn { align-self: center; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } .card--featured, .card--cta { grid-column: span 1; } }

/* Education & skills */
.edu-skills { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.edu__item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.edu__item:first-child { border-top: 1px solid var(--line); }
.edu__when { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.edu h3 { margin-top: 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "wdth" 104; }
.edu p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.skills { display: grid; gap: 26px; }
.skills h4 {
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
@media (max-width: 820px) { .edu-skills { grid-template-columns: 1fr; } }

/* Contact */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  border-top: 1.5px solid var(--ink);
  background: var(--bg-2);
}
.contact__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9), rgba(0,0,0,0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9), rgba(0,0,0,0) 75%);
}
.contact__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) var(--pad);
  text-align: center;
}
.contact__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.contact h2 {
  margin-top: 14px;
  font-size: clamp(40px, 7vw, 92px); font-weight: 900; letter-spacing: -0.045em;
  line-height: .95; text-transform: uppercase; font-variation-settings: "wdth" 116;
}
.contact .accent { color: var(--accent); }
.contact p { margin: 22px auto 0; max-width: 46ch; color: var(--ink-2); }
.contact__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 13px 22px;
  background: var(--bg-2);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { box-shadow: 4px 4px 0 var(--ink); }

/* Footer */
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px var(--pad);
  border-top: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.footer a:hover { color: var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero without portrait (body.no-portrait) ---------- */
.hero__stickers { display: none; }
body.no-portrait .hero__stickers {
  display: block; position: relative; height: 100%; min-height: 420px;
  justify-self: stretch; align-self: stretch;
}
.sticker {
  position: absolute; white-space: nowrap;
  font-family: var(--mono); font-size: clamp(11px, 1vw, 14px); letter-spacing: .04em;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 16px;
  background: var(--bg-2); box-shadow: 4px 4px 0 var(--ink);
}
.sticker b { font-weight: 500; color: var(--accent); }
.sticker i { font-style: normal; margin-left: 8px; color: var(--accent); }
.sticker--green { background: var(--accent); color: #fff; border-color: var(--ink); }
.sticker--green b { color: #fff; }
.sticker--dark { background: var(--ink); color: #fff; }
.s1 { left: 6%;  top: 8%;  transform: rotate(-6deg); }
.s2 { left: 42%; top: 20%; transform: rotate(4deg); }
.s3 { left: 12%; top: 38%; transform: rotate(-3deg); }
.s4 { left: 58%; top: 48%; transform: rotate(7deg); }
.s5 { left: 4%;  top: 64%; transform: rotate(3deg); }
.s6 { left: 36%; top: 78%; transform: rotate(-5deg); }
.s7 { left: 50%; top: 4%;  transform: rotate(-2deg); font-size: clamp(10px, .85vw, 12px); }
.bigstar { position: absolute; right: 2%; top: 22%; width: clamp(120px, 14vw, 210px); color: var(--accent); opacity: .9; }
.loop { position: absolute; left: 34%; top: 56%; width: 110px; color: var(--ink); }
@media (max-width: 900px) {
  body.no-portrait .hero__stickers { min-height: 300px; }
}

/* ---------- Hero, pure typographic (body.no-portrait.type-only) ---------- */
body.type-only .hero__stickers { display: none; }
body.type-only .hero__inner { grid-template-columns: 1fr; }
body.type-only .hero__title { font-size: clamp(64px, 12.5vw, 184px); }
body.type-only .hero__year { font-size: clamp(48px, 7.5vw, 110px); }
body.type-only .hero__pill { margin-top: clamp(24px, 4vh, 44px); }
@media (max-width: 900px) {
  body.type-only .hero { min-height: 0; }
  body.type-only .hero__inner { padding-bottom: 36px; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service {
  position: relative; background: var(--bg-2);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 12px;
}
.service--ai { background: var(--ink); color: #fff; }
.service--ai p { color: #cfcfcb; }
.service--ai .service__list li { color: #e6e6e2; border-color: rgba(255,255,255,.14); }
.service--ai .service__list a { color: var(--accent); }
.service__kicker {
  display: inline-block; align-self: flex-start;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; opacity: .85;
}
.service h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "wdth" 108; line-height: 1.1; }
.service > p { color: var(--ink-2); }
.service__list { display: grid; gap: 8px; margin: 4px 0 8px; }
.service__list li { padding: 8px 0 8px 18px; position: relative; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.service__list li:last-child { border-bottom: 0; }
.service__list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.service__list b { font-weight: 600; color: inherit; }
.service--web .service__list b { color: var(--ink); }
.service__list a { font-family: var(--mono); font-size: 12px; margin-left: 4px; color: var(--accent-ink); white-space: nowrap; }
.service .btn { align-self: flex-start; margin-top: auto; }
.service--ai .btn--primary { border-color: var(--accent); }
.service--ai .btn--primary:hover { box-shadow: 4px 4px 0 #fff; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 16px; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
}
.steps li { padding: 18px 22px; border-right: 1.5px solid var(--ink); font-size: 14px; color: var(--ink-2); }
.steps li:last-child { border-right: 0; }
.steps span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.steps b { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); margin: 4px 0 4px; }
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .steps li:last-child { border-bottom: 0; }
}

/* ---------- Work groups ---------- */
.group + .group { margin-top: clamp(36px, 6vh, 64px); }
.group__label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}
.group__label span { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); text-transform: none; }
.group__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group__more { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.group__more b { font-weight: 600; color: var(--ink); }
.group__more a { color: var(--accent-ink); font-family: var(--mono); font-size: 12px; }

.card--quiet { background: var(--bg); border-style: dashed; }
.card--quiet p b { color: var(--ink); font-weight: 600; }

.projects--web { grid-template-columns: 1fr 1fr; }
.card--site { padding: 0; overflow: hidden; gap: 0; }
.card__shot { display: block; border-bottom: 1.5px solid var(--ink); background: #e9e9e6; aspect-ratio: 16 / 10; overflow: hidden; }
.card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.card--site:hover .card__shot img { transform: scale(1.02); }
.card__body { padding: 20px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.card__link { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); margin-top: 2px; }
.card__link:hover { text-decoration: underline; }
@media (max-width: 700px) { .projects--web { grid-template-columns: 1fr; } }

.job p a { color: var(--accent-ink); border-bottom: 1px solid var(--accent); }
.job__body > p:first-of-type { margin-top: 8px; }
