/* ============================================================
   LEE SAUNDERS — LS.DIGITAL
   Ink-black editorial × technical-cinematic
   ============================================================ */

:root {
  --ink: #060504;
  --ink-2: #0d0b09;
  --cream: #f2ead9;
  --cream-dim: rgba(242, 234, 217, 0.55);
  --orange: #ff7a1a;
  --orange-deep: #e05a00;
  --orange-glow: rgba(255, 122, 26, 0.45);
  --display: "Anton", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --mono-ish: "Space Grotesk", "Segoe UI", sans-serif;
}

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

html { background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono-ish);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- primitives ---------- */
.sq {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--cream-dim);
  vertical-align: middle;
}
.sq--orange { background: var(--orange); box-shadow: 0 0 12px var(--orange-glow); }
i.sq { margin: 0 1.4rem; transform: translateY(-2px); }

.dot {
  display: inline-block;
  width: 9px; height: 9px; border-radius: 50%;
}
.dot--live { background: var(--orange); box-shadow: 0 0 10px var(--orange-glow); animation: pulse 2s infinite; }
.dot--orange { background: var(--orange); box-shadow: 0 0 14px var(--orange-glow); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.accent { color: var(--orange); text-shadow: 0 0 34px var(--orange-glow); }

.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--cream-dim);
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 2.2rem;
}
.section-tag--center { justify-content: center; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -100px;
  z-index: 90;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.88 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(3) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-30px, 18px); }
  66% { transform: translate(22px, -26px); }
  100% { transform: translate(0, 0); }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(420px, 80vw); }
.loader__mark {
  font-size: 0.78rem; letter-spacing: 0.4em; color: var(--cream-dim);
  display: flex; align-items: center; gap: 0.7rem;
}
.loader__pct {
  font-family: var(--display);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  margin: 1.2rem 0;
  color: var(--cream);
}
.loader__pct::after { content: "%"; font-size: 0.35em; color: var(--orange); margin-left: 0.1em; }
.loader__bar { height: 2px; background: rgba(242, 234, 217, 0.12); }
.loader__fill { height: 100%; width: 0%; background: var(--orange); box-shadow: 0 0 16px var(--orange-glow); }
.loader__hint { margin-top: 1rem; font-size: 0.64rem; letter-spacing: 0.34em; color: var(--cream-dim); }

/* ---------- header / side index ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.4rem 2.2rem;
  mix-blend-mode: difference;
  font-size: 0.74rem; letter-spacing: 0.32em;
}
.site-head__left { display: flex; flex-direction: column; gap: 0.6rem; }
.site-head__brand {
  display: flex; align-items: center; gap: 0.8rem; font-weight: 700;
  color: inherit; text-decoration: none; cursor: pointer;
  background: none; border: none; padding: 0; font: inherit; letter-spacing: inherit;
  font-size: 0.9rem;
}
.brand-icon { display: inline-block; flex-shrink: 0; }
.site-head__sub {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
  font-size: 0.58rem; letter-spacing: 0.24em; font-weight: 400;
  color: var(--cream-dim);
}
.site-head__sub-line { display: flex; align-items: center; gap: 0.6rem; }
.site-head__wa { color: var(--cream-dim); text-decoration: none; transition: color 0.3s ease; }
.site-head__wa:hover { color: var(--orange); }
.site-head__meta { display: flex; align-items: center; gap: 0.7rem; color: var(--cream-dim); }
.site-head__view {
  font: inherit;
  letter-spacing: inherit;
  background: none;
  border: none;
  padding: 0;
  color: var(--orange);
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.site-head__view:hover { opacity: 0.65; }

.side-index {
  position: fixed; right: 2rem; top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex; flex-direction: column; gap: 14px;
}
.side-index__item {
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 5px 0;
  text-decoration: none;
}
.side-index__dot {
  width: 8px; height: 8px;
  background: rgba(242, 234, 217, 0.18);
  transition: background 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
}
.side-index__item:hover .side-index__dot { background: rgba(242, 234, 217, 0.5); }
.side-index__item.is-active .side-index__dot {
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange-glow);
  height: 26px;
}
.side-index__label {
  position: absolute; right: calc(100% + 16px); top: 50%;
  transform: translate(6px, -50%);
  display: flex; align-items: center; gap: 0.7rem;
  white-space: nowrap;
  font-size: 0.62rem; letter-spacing: 0.26em; font-weight: 500;
  color: var(--cream);
  background: rgba(10, 8, 6, 0.85);
  border: 1px solid rgba(242, 234, 217, 0.14);
  backdrop-filter: blur(8px);
  padding: 0.55rem 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.side-index__item.is-active .side-index__label { opacity: 0.5; }
.side-index__item:hover .side-index__label,
.side-index__item:focus-visible .side-index__label {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 75% at 50% 42%, transparent 40%, rgba(6, 5, 4, 0.88) 100%),
    linear-gradient(to top, rgba(6, 5, 4, 0.95) 0%, transparent 26%);
  pointer-events: none;
}
.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  pointer-events: none;
  padding-top: 4vh;
}
.hero__kicker {
  font-size: 0.72rem; letter-spacing: 0.4em; color: var(--cream-dim);
  display: flex; align-items: center; gap: 0.8rem;
  margin-top: 1.6rem;
}
.hero__kicker-deg { color: var(--orange); min-width: 4ch; text-align: left; }
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.2rem, 15.5vw, 15rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  display: flex; flex-direction: column;
}
.hero__row { display: block; white-space: nowrap; }
.hero__row .ltr {
  display: inline-block;
  will-change: transform, opacity;
}
.hero__row:not(.hero__row--accent) .ltr {
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.3vw, 3px) var(--cream);
  paint-order: stroke fill;
}
.hero__row--accent .ltr { color: var(--orange); text-shadow: 0 0 60px rgba(255, 122, 26, 0.35); }
.hero__sub {
  margin-top: 2rem;
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  letter-spacing: 0.24em;
  color: var(--cream);
  opacity: 0;
}
.hero__sub em { color: var(--orange); font-style: normal; }
.hero__scrollcue {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 0.4em; color: var(--cream-dim);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.hero__scrollcue-track {
  width: 1px; height: 44px;
  background: rgba(242, 234, 217, 0.15);
  position: relative; overflow: hidden;
}
.hero__scrollcue-thumb {
  position: absolute; left: 0; top: -14px;
  width: 1px; height: 14px;
  background: var(--orange);
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { top: -14px; }
  70%, 100% { top: 44px; }
}

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(242, 234, 217, 0.09);
  border-bottom: 1px solid rgba(242, 234, 217, 0.09);
  background: var(--ink);
  z-index: 5;
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 26s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__track span {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  white-space: nowrap;
  padding-right: 1.4rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- stats ---------- */
.stats {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(255, 122, 26, 0.07), transparent 60%),
    var(--ink);
  overflow: hidden;
}
.stats__inner {
  width: min(1500px, 92vw);
  margin: 0 auto;
  padding: clamp(1.5rem, 6vh, 5rem) 0;
}
.stats__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: 0.92;
  margin-bottom: clamp(1rem, 3vh, 2.6rem);
}
.stats__title-line { display: block; overflow: hidden; }
.stats__title-line--accent { color: var(--orange); text-shadow: 0 0 44px rgba(255, 122, 26, 0.3); }

.stats__counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: clamp(1rem, 3vh, 2.6rem);
  border: 1px solid rgba(242, 234, 217, 0.1);
  background: rgba(242, 234, 217, 0.1);
}
.counter { background: var(--ink); padding: clamp(1rem, 2.6vh, 2.2rem) clamp(1.1rem, 1.6vw, 2rem); }
.counter__num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 1;
  color: var(--cream);
}
.counter__num::after { content: ""; display: inline-block; width: 0.16em; height: 0.16em; background: var(--orange); margin-left: 0.12em; box-shadow: 0 0 14px var(--orange-glow); }
.counter__label { margin-top: 0.6rem; font-size: 0.66rem; letter-spacing: 0.3em; color: var(--cream-dim); }

.stats__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 1px solid rgba(242, 234, 217, 0.1);
  background: rgba(242, 234, 217, 0.1);
}
.stat-cell {
  background: var(--ink);
  padding: clamp(0.55rem, 1.5vh, 1.15rem) 1.3rem;
  font-family: var(--display);
  font-size: clamp(0.85rem, 1.5vw, 1.35rem);
  letter-spacing: 0.05em;
  display: flex; align-items: baseline; gap: 1rem;
  transition: background 0.4s ease, color 0.4s ease;
}
.stat-cell:hover { background: var(--orange); color: var(--ink); }
.stat-cell:hover .stat-cell__ix { color: var(--ink); }
.stat-cell__ix {
  font-family: var(--mono-ish);
  font-size: 0.68rem;
  color: var(--orange);
  letter-spacing: 0.2em;
}

/* AWARDS RECORD
   - Same card exactly as .stats__counters above: .awards-grid only adds a
     margin-top since (unlike .stats__counters) it sits below other content,
     not above it. Each cell reuses .counter/.counter__num/.counter__label
     verbatim — identical padding, identical hero-number/label hierarchy —
     so it reads as a fourth counter row, not a separate widget.
   - The one addition is .awards-tally: a small caption under the label
     spelling out the gold/silver split, colored with the same orange/cream
     the site already uses for medal tiers. */
.awards-grid { margin-top: clamp(1rem, 3vh, 2.6rem); }
.awards-tally {
  margin-top: 0.5rem;
  font-family: var(--mono-ish);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.awards-tally__gold { color: var(--orange); }
.awards-tally__silver { color: rgba(242, 234, 217, 0.75); }
.awards-tally__sep { margin: 0 0.4em; color: var(--cream-dim); }

/* ---------- shared bg video sections ---------- */
.bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}
.scrim { position: absolute; inset: 0; pointer-events: none; }
.scrim--left { background: linear-gradient(90deg, rgba(6,5,4,0.94) 0%, rgba(6,5,4,0.65) 42%, rgba(6,5,4,0.15) 100%); }
.scrim--bottom { background: linear-gradient(0deg, rgba(6,5,4,0.96) 8%, rgba(6,5,4,0.55) 45%, rgba(6,5,4,0.25) 100%); }
.scrim--center { background: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(6,5,4,0.42) 0%, rgba(6,5,4,0.92) 100%); }

/* ---------- pillars ---------- */
.pillars {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.pillars__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  width: min(1500px, 92vw);
  margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
}
.pillars__stack { position: relative; height: 46vh; }
.pillar {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 720px;
  opacity: 0;
  visibility: hidden;
}
.pillar__ix {
  font-size: 0.9rem; letter-spacing: 0.4em; color: var(--orange);
  margin-bottom: 1rem;
}
.pillar__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  line-height: 0.9;
  margin-bottom: 1.6rem;
}
.pillar__desc {
  font-size: clamp(0.98rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--cream-dim);
  max-width: 34rem;
}
.pillars__progress { display: flex; gap: 10px; margin-top: 3rem; }
.pillars__bar {
  width: 64px; height: 3px;
  background: rgba(242, 234, 217, 0.15);
  position: relative; overflow: hidden;
}
.pillars__bar::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange-glow);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
}

/* ---------- work ---------- */
.work {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.work__inner {
  position: relative; z-index: 3;
  height: 100%;
  width: min(1500px, 92vw);
  margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 7vh;
}
.work__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.92;
  margin-bottom: 3rem;
}
.work__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.8rem;
  background: rgba(10, 8, 6, 0.72);
  border: 1px solid rgba(242, 234, 217, 0.12);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: var(--cream);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 110%, rgba(255, 122, 26, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover {
  border-color: var(--orange);
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 122, 26, 0.12);
}
.card:hover::before { opacity: 1; }
.card:hover .card__arrow { transform: translateX(8px); }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__ix { font-size: 0.68rem; letter-spacing: 0.3em; color: var(--cream-dim); }
.card__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  letter-spacing: 0.03em;
}
.card__pitch { font-size: 0.92rem; line-height: 1.6; color: var(--cream-dim); flex: 1; }
.card__foot {
  font-size: 0.68rem; letter-spacing: 0.28em; color: var(--orange);
  display: flex; align-items: center; gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(242, 234, 217, 0.1);
}
.card__arrow { display: inline-block; transition: transform 0.35s ease; }

/* ---------- finale ---------- */
.finale {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.finale__inner {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  width: min(1200px, 92vw);
  margin: 0 auto;
}
.finale__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 7rem);
  line-height: 0.95;
  margin-bottom: 3rem;
}
.finale__line { display: block; overflow: hidden; }
.finale__line > * { display: inline; }
.finale__ctas { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: var(--mono-ish);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  padding: 1.25rem 2.6rem;
  transition: all 0.35s ease;
}
.btn--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 0 34px rgba(255, 122, 26, 0.35);
}
.btn--primary:hover {
  background: var(--cream);
  box-shadow: 0 0 44px rgba(242, 234, 217, 0.3);
  transform: translateY(-3px);
}
.btn--ghost {
  color: var(--cream);
  border: 1px solid rgba(242, 234, 217, 0.3);
}
.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-3px);
}
.footer {
  position: absolute;
  bottom: 2.4rem; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.footer__links { display: flex; align-items: center; gap: 1.4rem; }
.footer__links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.72rem; letter-spacing: 0.34em;
  transition: color 0.3s ease;
}
.footer__links a:hover { color: var(--orange); }
.footer__base { font-size: 0.62rem; letter-spacing: 0.3em; color: rgba(242, 234, 217, 0.3); }
.footer__base a { color: rgba(242, 234, 217, 0.5); text-decoration: none; transition: color 0.3s ease; }
.footer__base a:hover { color: var(--orange); }

/* ---------- faq ---------- */
.faq {
  position: relative;
  background: var(--ink);
  padding: clamp(3rem, 10vh, 6rem) 0;
}
.faq__inner { width: min(860px, 90vw); margin: 0 auto; }
.faq__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
  margin-bottom: 2.6rem;
}
.faq__list { display: flex; flex-direction: column; }
.faq__item { padding: 1.6rem 0; border-top: 1px solid rgba(242, 234, 217, 0.12); }
.faq__list .faq__item:last-child { border-bottom: 1px solid rgba(242, 234, 217, 0.12); }
.faq__q {
  font-family: var(--mono-ish);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-bottom: 0.7rem;
}
.faq__a { font-size: 0.86rem; line-height: 1.7; color: var(--cream-dim); max-width: 60ch; }

/* ---------- resume modal ---------- */
.resume-modal {
  position: fixed; inset: 0;
  z-index: 150;
  display: none;
  align-items: center; justify-content: center;
  padding: 3vh 2vw;
}
.resume-modal.is-open { display: flex; }
.resume-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 3, 2, 0.82);
  backdrop-filter: blur(10px);
}
.resume-modal__panel {
  position: relative;
  width: min(980px, 96vw);
  height: min(92vh, 1100px);
  background: #0a0806;
  border: 1px solid rgba(242, 234, 217, 0.14);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 80px rgba(255, 122, 26, 0.07);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.resume-modal__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid rgba(242, 234, 217, 0.12);
  background: rgba(6, 5, 4, 0.9);
  flex: 0 0 auto;
}
.resume-modal__bartag {
  font-size: 0.66rem; letter-spacing: 0.34em; color: var(--cream-dim);
  display: flex; align-items: center; gap: 0.7rem;
}
.resume-modal__actions { display: flex; align-items: center; gap: 0.8rem; }
.resume-modal__print {
  font-family: var(--mono-ish); font-weight: 700;
  font-size: 0.62rem; letter-spacing: 0.28em;
  color: var(--orange);
  background: none; border: 1px solid rgba(255, 122, 26, 0.4);
  padding: 0.55rem 1rem; cursor: pointer;
  transition: all 0.3s ease;
}
.resume-modal__print:hover { background: var(--orange); color: var(--ink); }
.resume-modal__close {
  width: 34px; height: 34px;
  background: var(--orange);
  color: var(--ink);
  border: none; cursor: pointer;
  font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.resume-modal__close:hover { background: var(--cream); transform: rotate(90deg); }
.resume-modal__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 3rem clamp(1.4rem, 4vw, 3.4rem) 2.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) rgba(242, 234, 217, 0.07);
}
.resume-modal__scroll::-webkit-scrollbar { width: 5px; }
.resume-modal__scroll::-webkit-scrollbar-track { background: rgba(242, 234, 217, 0.05); }
.resume-modal__scroll::-webkit-scrollbar-thumb { background: var(--orange); }

.resume-section { margin-bottom: 2.8rem; }
.r-head { border-bottom: 1px solid rgba(242, 234, 217, 0.12); padding-bottom: 2rem; }
.r-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 0.8rem;
}
.r-role { font-size: 0.72rem; letter-spacing: 0.26em; color: var(--cream-dim); margin-bottom: 1.4rem; }
.r-contact {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  font-size: 0.62rem; letter-spacing: 0.18em; color: var(--cream-dim);
  margin-bottom: 1.8rem;
}
.r-contact a { color: var(--orange); text-decoration: none; }
.r-contact a:hover { text-decoration: underline; }
.r-contact li::before { content: "■ "; color: var(--orange); font-size: 0.5em; vertical-align: middle; }
.r-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  border: 1px solid rgba(242, 234, 217, 0.1);
  background: rgba(242, 234, 217, 0.1);
}
.r-stat { background: #0a0806; padding: 1rem 1.2rem; }
.r-stat b {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem); display: block;
  color: var(--orange);
}
.r-stat span { font-size: 0.56rem; letter-spacing: 0.24em; color: var(--cream-dim); }

.r-h {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  display: flex; align-items: baseline; gap: 0.9rem;
}
.r-h i {
  font-family: var(--mono-ish); font-style: normal;
  font-size: 0.62rem; letter-spacing: 0.3em; color: var(--orange);
}
.r-p { font-size: 0.92rem; line-height: 1.75; color: var(--cream-dim); }
.r-p b { color: var(--cream); }
.r-p--dim { font-size: 0.78rem; margin-top: 1.6rem; }

.r-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.r-chips span {
  font-size: 0.6rem; letter-spacing: 0.16em;
  color: var(--cream);
  border: 1px solid rgba(242, 234, 217, 0.2);
  padding: 0.5rem 0.85rem;
  transition: all 0.3s ease;
}
.r-chips span:hover { border-color: var(--orange); color: var(--orange); }
.r-chips--dim span { color: var(--cream-dim); }

.r-rows { display: flex; flex-direction: column; }
.r-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.4rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(242, 234, 217, 0.08);
}
.r-row:first-child { border-top: 1px solid rgba(242, 234, 217, 0.08); }
.r-row__label { font-size: 0.62rem; letter-spacing: 0.22em; color: var(--orange); padding-top: 0.2rem; }
.r-row p { font-size: 0.8rem; line-height: 1.7; color: var(--cream-dim); }

.r-job { margin-bottom: 2.2rem; }
.r-job__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.4rem 1.4rem;
  margin-bottom: 1rem;
}
.r-job__co {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--cream);
}
.r-job__meta { font-size: 0.62rem; letter-spacing: 0.26em; color: var(--orange); }
.r-list { list-style: none; margin-bottom: 1.4rem; }
.r-list li {
  font-size: 0.85rem; line-height: 1.7; color: var(--cream-dim);
  padding-left: 1.2rem; position: relative; margin-bottom: 0.5rem;
}
.r-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; background: var(--orange);
}
.r-list b { color: var(--cream); }
.r-projects__label {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--cream);
  margin-top: 1.6rem;
  margin-bottom: 0.9rem;
}
.r-projects {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  border: 1px solid rgba(242, 234, 217, 0.1);
  background: rgba(242, 234, 217, 0.1);
}
.r-project { background: #0a0806; padding: 1.1rem 1.3rem; }
.r-project b { font-size: 0.68rem; letter-spacing: 0.22em; color: var(--orange); display: block; margin-bottom: 0.4rem; }
.r-project p { font-size: 0.76rem; line-height: 1.65; color: var(--cream-dim); }
.r-project p + p { margin-top: 0.7rem; }

.r-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  border-top: 1px solid rgba(242, 234, 217, 0.12);
  padding-top: 2rem;
  margin-bottom: 0.6rem;
}
.r-foot__note { font-size: 0.6rem; letter-spacing: 0.28em; color: var(--cream-dim); display: flex; align-items: center; gap: 0.7rem; }

button.btn { border: none; cursor: pointer; }
.btn--ghost { border: 1px solid rgba(242, 234, 217, 0.3) !important; background: none; }

/* ---------- booking form ---------- */
.resume-modal__panel--book { width: min(820px, 96vw); height: auto; max-height: min(92vh, 1000px); }
.book-form { position: relative; }
.f-head { margin-bottom: 2.4rem; }
.f-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 1.1rem;
}
.f-welcome { font-size: 0.92rem; line-height: 1.75; color: var(--cream-dim); max-width: 40rem; }

.f-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
  margin-bottom: 2.2rem;
}
.f-field { display: flex; flex-direction: column; gap: 0.55rem; }
.f-field--full { margin-bottom: 1.4rem; }
.f-label {
  font-size: 0.62rem; letter-spacing: 0.28em; color: var(--cream-dim);
}
.f-label i { color: var(--orange); font-style: normal; }
.f-hint { font-style: normal; color: rgba(242, 234, 217, 0.3); letter-spacing: 0.2em; }
.f-input {
  font-family: var(--mono-ish);
  font-size: 0.95rem;
  color: var(--cream);
  background: rgba(242, 234, 217, 0.04);
  border: none;
  border-bottom: 1px solid rgba(242, 234, 217, 0.22);
  padding: 0.85rem 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.f-input::placeholder { color: rgba(242, 234, 217, 0.28); }
.f-input:focus {
  border-bottom-color: var(--orange);
  background: rgba(255, 122, 26, 0.05);
  box-shadow: 0 12px 30px -18px rgba(255, 122, 26, 0.45);
}
.f-input.is-invalid { border-bottom-color: #ff3b1a; background: rgba(255, 59, 26, 0.06); }
.f-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.f-services { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.f-chipgrid { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.f-chip {
  font-family: var(--mono-ish); font-weight: 500;
  font-size: 0.64rem; letter-spacing: 0.18em;
  color: var(--cream-dim);
  background: none;
  border: 1px solid rgba(242, 234, 217, 0.2);
  padding: 0.7rem 1.05rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.f-chip::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border: 1px solid rgba(242, 234, 217, 0.35);
  margin-right: 0.6rem;
  vertical-align: middle;
  transition: all 0.25s ease;
}
.f-chip:hover { border-color: var(--orange); color: var(--cream); }
.f-chip.is-on {
  border-color: var(--orange);
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 0 22px rgba(255, 122, 26, 0.35);
}
.f-chip.is-on::before { background: var(--ink); border-color: var(--ink); }
.f-chipgrid.is-invalid .f-chip { border-color: rgba(255, 59, 26, 0.55); }

.f-error {
  font-size: 0.68rem; letter-spacing: 0.2em;
  color: #ff5c3a;
  min-height: 1.2em;
  margin-bottom: 1rem;
}
.f-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  border-top: 1px solid rgba(242, 234, 217, 0.12);
  padding-top: 1.8rem;
}

.f-success {
  position: absolute; inset: 0;
  background: #0a0806;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 1.2rem;
  padding: 2rem;
}
.f-success.is-shown { display: flex; }
.f-success__mark .sq { width: 16px; height: 16px; animation: pulse 1.6s infinite; }
.f-success__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.f-success__text { font-size: 0.9rem; line-height: 1.7; color: var(--cream-dim); max-width: 28rem; }

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

/* ---------- print: clean paper resume ---------- */
@media print {
  /* Scoped to #resumeModal specifically — .resume-modal is now shared by
     the booking/privacy/terms popups too, so a class-only selector here
     would print their (hidden) content alongside the resume. */
  body > *:not(#resumeModal) { display: none !important; }
  .grain, .site-head, .side-index { display: none !important; }
  #resumeModal { display: block !important; position: static; padding: 0; }
  #resumeModal .resume-modal__backdrop, #resumeModal .resume-modal__bar { display: none !important; }
  #resumeModal .resume-modal__panel {
    position: static; width: auto; height: auto;
    border: none; box-shadow: none; background: #fff;
    overflow: visible;
  }
  #resumeModal .resume-modal__scroll { overflow: visible; padding: 0; }
  #resumeModal .resume-modal__panel, #resumeModal .resume-modal__panel * { color: #111 !important; background: #fff !important; }
  .r-name .accent, .r-h i, .r-job__meta, .r-project b, .r-row__label, .r-stat b, .r-contact a { color: #c2410c !important; }
  .r-stats, .r-projects { border-color: #ddd; background: #ddd !important; }
  .r-chips span { border-color: #bbb; }
  .r-list li::before { background: #c2410c; }
  .r-foot .btn { display: none; }
  .resume-section { break-inside: avoid-page; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .work__cards { grid-template-columns: 1fr; gap: 0.8rem; }
  .work { height: auto; min-height: 100vh; }
  .work__inner { padding-top: 16vh; }
  .side-index { display: none; }
  .site-head__meta { display: none; }
  .site-head__sub { flex-wrap: wrap; row-gap: 0.3rem; font-size: 0.54rem; letter-spacing: 0.16em; max-width: 68vw; }
  .r-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .r-projects { grid-template-columns: 1fr; }
  .r-stats { grid-template-columns: repeat(2, 1fr); }
  .resume-modal { padding: 0; }
  .resume-modal__panel { width: 100vw; height: 100vh; height: 100dvh; }
}

/* counters only stack once there is genuinely no room for three across */
@media (max-width: 560px) {
  .stats__counters { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
}
