/* Analía Luque — portfolio
   Anton SC for headings, Inter for text. Near-black with one accent color (--accent). */

@font-face {
  font-family: "Gambetta";
  src: url("/fonts/Gambetta-MediumItalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #0e1011;
  --black-2: #181a1b;
  --black-3: #1f2122;
  --line-dark: #262829;
  --white: #ffffff;
  --grey: #f8f8f8;
  --line-light: #e8eded;
  /* Accent color. Earlier tries: #bef941, #7f96ff */
  --accent: #baf14b;
  --secondary: #7f96ff; /* tags, section-label numbers, links, quote marks, active menu/blog category, case-study facts, industry labels, project counters, hero notification */
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-muted-dark: rgba(14, 16, 17, 0.6);

  --font-head: "Anton SC", "Anton", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-meta: "Gambetta", Georgia, serif;

  --wrap: 100vw; /* content uses the full screen width; only --gutter keeps it off the edges */
  --gutter: clamp(32px, 8vw, 96px); /* doubled side margins */
  --section: clamp(64px, 10vw, 140px);
  --border: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.4em; font-weight: 400; }
ul { margin: 0; padding: 0; }
.sr-only, .hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--black); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- type ---------- */
.h-hero, .h-xl, .h-lg, .h-md, .h-sm {
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
}
.h-hero { font-size: clamp(48px, 11vw, 168px); overflow-wrap: break-word; } /* long single words (e.g. TRANSFORMATION) still fit small phones */
.h-xl { font-size: clamp(48px, 8vw, 128px); } /* section titles: same size as "All projects" */
.h-lg { font-size: clamp(32px, 4vw, 56px); }
.h-md { font-size: clamp(28px, 2.6vw, 38px); }
.h-sm { font-size: clamp(24px, 2vw, 30px); }
/* One subtitle style everywhere: under page titles and section titles. */
.lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; font-weight: 400; max-width: 40ch; color: var(--text-muted); }
.light .lead, .lime .lead, .nums .lead { color: var(--text-muted-dark); }
.testimonials .section-head .lead { max-width: none; } /* one line on desktop */
/* Section labels ("eyebrows"): one style everywhere, matching "Selected work". */
.eyebrow, .hs-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.eyebrow b, .hs-label b { color: var(--secondary); font-weight: 600; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.meta { font-size: 15px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 24px 0 8px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.section { padding: var(--section) 0; }
.pt-0 { padding-top: 0; }
.split { display: grid; gap: 32px 64px; grid-template-columns: 1fr; margin-bottom: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.section-head { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.section-head p:last-child { margin-bottom: 0; }

/* light and lime sections invert the palette */
.light { background: var(--white); color: var(--black); }
.light .muted, .light .meta { color: var(--text-muted-dark); }
.light .eyebrow { color: var(--text-muted-dark); }
.lime { background: var(--accent); color: var(--black); }
.lime .eyebrow, .lime .muted { color: var(--black); }
.lilac { background: var(--secondary); } /* same as .lime, in the secondary color */
.lime .eyebrow { opacity: 0.7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border: var(--border) solid currentColor;
  border-radius: 500px;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-lime { background: var(--accent); color: var(--black); border-color: var(--accent); }
.btn-lime:hover { background: var(--white); border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: transparent; color: var(--black); border-color: var(--black); }
.light .btn:not(.btn-dark):not(.btn-lime):hover { background: var(--black); color: var(--white); border-color: var(--black); }
.text-link { font-weight: 600; color: var(--secondary); text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- header ---------- */
/* Transparent at the top of the page; gets its background once you scroll (js adds .is-scrolled). */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(14, 16, 17, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: flex-end; gap: 12px; text-decoration: none; font-family: var(--font-head); font-size: 22px; text-transform: uppercase; }
.brand img { width: 36px; height: 36px; }
.brand span { line-height: 0.78; padding-bottom: 2px; } /* sits on the same baseline as the "a" of the mark */
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; }
.site-nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.site-nav ul a[aria-current] { color: var(--white); }
.site-nav ul a:hover { color: var(--secondary); }
.site-nav ul a[aria-current] { box-shadow: 0 2px 0 var(--secondary); }
.site-nav .btn { padding: 11px 20px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: transform 0.2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-header.is-scrolled, .nav-open .site-header { backdrop-filter: none; background: var(--black); }
  .site-nav {
    display: none; position: fixed; inset: 77px 0 0; background: var(--black);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 32px;
    padding: 32px var(--gutter); overflow-y: auto;
  }
  .nav-open .site-nav { display: flex; }
  .nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: 8px; }
  .site-nav ul a { font-family: var(--font-head); font-size: 44px; text-transform: uppercase; color: var(--white); }
  .nav-open .nav-toggle .bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav-toggle .bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- home ---------- */
.hero { padding: clamp(48px, 8vw, 110px) 0 var(--section); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero .h-hero { font-size: clamp(76px, 10.6vw, 200px); }
.hero-img img { width: 100%; border: var(--border) solid var(--line-dark); }

.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230e1011' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat;
}
.value .checks { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 32px; font-weight: 600; }
.value .lead { max-width: none; }

.logos { padding: 48px 0; overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* Two identical groups, each with trailing space equal to the gap: moving exactly -50% loops seamlessly. */
.marquee-group { display: flex; align-items: center; gap: 72px; padding-right: 72px; flex-shrink: 0; }
.marquee-group img { height: 40px; width: auto; max-width: 170px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.75; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; width: auto; justify-content: center; padding: 0 var(--gutter); } .marquee-group { flex-wrap: wrap; justify-content: center; gap: 40px; padding: 0; } .marquee-group[aria-hidden] { display: none; } }

/* ---------- cards ---------- */
.work-grid { display: grid; gap: 56px 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1400px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card, .post-card { text-decoration: none; display: block; }
.work-card-img, .post-card-img { overflow: hidden; aspect-ratio: 4 / 3; background: var(--black-2); border: var(--border) solid var(--line-dark); margin-bottom: 20px; }
.work-card-img img, .post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover img, .post-card:hover img { transform: scale(1.04); }
.work-card h3, .post-card h3 { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; margin: 12px 0 8px; }
.work-card:hover h3, .post-card:hover h3 { color: var(--accent); }
.work-card p, .post-card p { color: var(--text-muted); margin: 0; }
.work-card-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 4px; border: var(--border) solid var(--secondary); color: var(--secondary); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.post-card-img { aspect-ratio: 16 / 10; }
.post-grid { display: grid; gap: 56px 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.post-card h3 { font-size: clamp(26px, 2.2vw, 32px); }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.cat-nav a { padding: 8px 18px; border: var(--border) solid var(--line-dark); border-radius: 500px; text-decoration: none; font-size: 15px; font-weight: 600; }
.cat-nav a:hover { border-color: var(--white); }
.cat-nav a[aria-current] { background: var(--secondary); border-color: var(--secondary); color: var(--black); }


/* ---------- testimonials ---------- */
/* Default (no JS, phones, reduced motion): cards in columns, fading in as they appear. */
.quote-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); grid-auto-rows: 1fr; gap: 24px; padding: 0 var(--gutter); max-width: var(--wrap); margin: 0 auto; } /* every card the same height */
.quote { display: flex; flex-direction: column; margin: 0; padding: 32px; background: var(--black-2); border: var(--border) solid var(--line-dark); }
.js .quote.reveal { opacity: 0; transform: translateY(48px) rotate(2deg); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .quote.reveal.in { opacity: 1; transform: none; }

/* Desktop: the section pins while the cards travel in from the right, rising and straightening as they land. */
.testimonials.is-pinned { padding: calc(var(--section) / 2) 0 0; }
.testimonials.is-pinned .testimonials-stage {
  position: sticky; top: 77px; height: calc(100vh - 77px); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start; padding: 12px 0 24px; /* title sits near the top: no empty band above it */
}
.testimonials.is-pinned .quote-track {
  display: flex; align-items: stretch; gap: 24px; max-width: none; margin: 0; width: max-content;
  /* first card starts at the middle of the screen; the rest fly in from the right */
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 0 50vw;
  will-change: transform;
}
.testimonials.is-pinned .quote { flex: none; width: 760px; margin: 0; will-change: transform, opacity; }
.testimonials.is-pinned .quote:nth-child(even) { translate: 0 48px; } /* stagger without changing the height */
.testimonials.is-pinned .section-head { margin-bottom: 16px; }
/* on short screens the pinned title shrinks a little so the cards still fit below it */
.testimonials.is-pinned .h-xl { font-size: min(8vw, 15vh, 128px); }
.testimonials.is-pinned .section-head { position: relative; }
.testimonials.is-pinned .section-head > div { flex: 1 1 100%; padding-right: 260px; } /* big title gets the full width so it wraps less */
.testimonials.is-pinned .section-head > .btn { position: absolute; right: 0; bottom: 0; }
.quote-mark { width: 36px; fill: var(--secondary); margin-bottom: 20px; }
.quote blockquote { margin: 0; }
.quote-head { font-weight: 600; font-size: 20px; line-height: 1.4; }
.quote blockquote p:last-child { color: var(--text-muted); font-size: 16px; }
.quote figcaption { display: flex; gap: 14px; align-items: center; margin-top: auto; padding-top: 24px; font-size: 15px; color: var(--text-muted); }
.quote figcaption strong { color: var(--white); }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ---------- inner pages ---------- */
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.page-hero .lead { margin-top: 16px; }
.page-hero .btn { margin-top: 16px; }
.img-pair { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 56px; }
@media (min-width: 700px) { .img-pair { grid-template-columns: 1fr 1fr; } }
.img-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* illustrations are shown whole (photos still fill the frame) */
.img-pair img[src$=".svg"] { object-fit: contain; background: #0e1011; }
.feature-grid { display: grid; gap: 40px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-bottom: 48px; }
.feature { border-top: var(--border) solid currentColor; padding-top: 24px; }
.feature p { color: inherit; opacity: 0.85; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--secondary); text-underline-offset: 3px; }
.light .prose a { color: var(--black); }
.prose strong { font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--font-head); font-size: clamp(72px, 9vw, 140px); line-height: 1; }
.stats dt { font-weight: 600; max-width: 16ch; text-wrap: balance; } /* two lines under each value */

.industry-list { margin-bottom: 56px; }
/* accordion: rows open on hover (pointer devices) or tap/keyboard (.is-open) */
.industry { border-top: 1px solid var(--line-dark); position: relative; }
.industry:last-child { border-bottom: 1px solid var(--line-dark); }
.industry::before { content: ""; position: absolute; inset: 0; background: var(--secondary); transform: scaleY(0); transform-origin: top; transition: transform 0.6s cubic-bezier(.76, 0, .24, 1); z-index: -1; }
.industry-list { isolation: isolate; }
.industry-head { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 64px; padding: 40px 0; transition: padding 0.5s cubic-bezier(.16, 1, .3, 1); }
.industry-head .h-lg { transition: transform 0.5s cubic-bezier(.16, 1, .3, 1); }
.industry-head .label { grid-column: 1; margin: 0; color: var(--secondary); transition: color 0.4s; }
.industry-icon { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; position: relative; transition: transform 0.5s cubic-bezier(.16, 1, .3, 1); }
.industry-icon::before, .industry-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; }
.industry-icon::after { transform: rotate(90deg); transition: transform 0.5s cubic-bezier(.16, 1, .3, 1); }
.industry-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.industry-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s cubic-bezier(.16, 1, .3, 1); }
.industry-body > div { overflow: hidden; min-height: 0; }
.industry-body p { max-width: 62ch; padding-bottom: 40px; opacity: 0; transform: translateY(24px); transition: opacity 0.4s, transform 0.6s cubic-bezier(.16, 1, .3, 1); }
@media (min-width: 900px) {
  .industry-head { grid-template-columns: 1fr 1fr auto; }
  .industry-head .label { grid-column: 2; grid-row: 1; }
  .industry-icon { grid-column: 3; grid-row: 1; }
  .industry-body > div { display: grid; grid-template-columns: 1fr 1fr 28px; column-gap: 64px; }
  .industry-body p { grid-column: 2; }
}
.industry.is-open::before { transform: scaleY(1); }
.industry.is-open .industry-head { padding-left: 24px; padding-right: 24px; }
.industry.is-open .industry-head .label { color: var(--black); }
.industry.is-open .industry-head, .industry.is-open .industry-body { color: var(--black); }
.industry.is-open .industry-icon { transform: rotate(180deg); }
.industry.is-open .industry-icon::after { transform: rotate(0deg); }
.industry.is-open .industry-body { grid-template-rows: 1fr; padding: 0 24px; }
.industry.is-open .industry-body p { opacity: 1; transform: none; transition-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) { .industry *, .industry::before { transition: none !important; } }

.plan-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; padding: 32px; border: var(--border) solid var(--line-dark); background: var(--black-2); }
.plan:hover { border-color: var(--accent); }
.plan .price { display: flex; flex-direction: column; margin: 8px 0 20px; }
.plan .price strong { font-family: var(--font-head); font-weight: 400; font-size: 64px; line-height: 1.05; color: var(--accent); }
.plan p { font-size: 16px; color: var(--text-muted); }
.plan .checks { font-size: 16px; margin-bottom: 32px; flex: 1; }
.plan .btn { align-self: flex-start; }

.faq details { border-top: var(--border) solid var(--black); padding: 20px 0; }
.faq details:last-child { border-bottom: var(--border) solid var(--black); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .prose { margin-top: 12px; color: var(--text-muted-dark); }

.form { display: grid; gap: 20px; margin-top: 40px; max-width: 560px; }
.form label { display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.form input, .form textarea {
  font: 400 17px/1.5 var(--font-body);
  padding: 14px 16px;
  background: var(--black-2); color: var(--white);
  border: var(--border) solid var(--line-dark); border-radius: 0;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }

/* ---------- case study ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 16px 56px; margin: 40px 0 0; }
.facts dt { font-family: var(--font-meta); font-style: italic; color: var(--secondary); font-size: 18px; }
.facts dd { margin: 0; font-weight: 600; font-size: 20px; }
.cover { width: 100%; border: var(--border) solid var(--line-dark); }
.case-section + .case-section { padding-top: 0; }
.case-section .lead { max-width: none; }
.case-section .prose { color: var(--text-muted); }
.case-section .prose strong { color: var(--white); }
.gallery { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery.one { grid-template-columns: 1fr; } }
.gallery img { width: 100%; background: var(--black-2); }
.next-link { text-decoration: none; display: inline-block; margin-bottom: 8px; }
.next-link:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }

/* ---------- blog post ---------- */
.post .page-hero { padding-bottom: 40px; }
.post .page-hero .h-xl { font-size: clamp(36px, 4.5vw, 72px); line-height: 1; max-width: 22ch; } /* long article titles read better smaller */
.post .lead { max-width: none; }
.post-body { padding-top: 56px; padding-bottom: 56px; font-size: 19px; line-height: 1.7; }
.post-body h2 { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; margin: 1.6em 0 0.5em; }
.post-body h3 { font-weight: 600; font-size: 22px; margin: 1.4em 0 0.4em; }
.post-body img { margin: 32px 0; }
.post-body blockquote { margin: 32px 0; padding-left: 24px; border-left: 4px solid var(--accent); font-size: 22px; }
.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line-dark); padding: 10px 12px; text-align: left; }
.author { display: flex; gap: 20px; align-items: flex-start; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--line-dark); }
.author img { width: 64px; height: 64px; border-radius: 50%; background: var(--black-3); padding: 10px; }
.author p { margin: 0 0 6px; }

/* ---------- footer ---------- */
.site-footer { overflow: hidden; }
.footer-inner { padding: var(--section) 0 80px; will-change: transform; } /* extra room so the Netlify badge doesn't cover the bottom row */
/* Slides down from above as the footer scrolls into view (--reveal goes 0 → 1). */
.js .footer-inner { transform: translateY(calc((1 - var(--reveal, 1)) * -45%)); }
.footer-cta { margin: 0 calc(-1 * var(--gutter)); padding: 0 1vw; } /* "Let's talk" spans the whole screen width, ignoring the side margins */
.footer-big { display: block; width: fit-content; font-family: var(--font-head); text-transform: uppercase; font-size: 18vw; line-height: 0.85; text-decoration: none; white-space: nowrap; margin-top: 0.15em; color: var(--white); }
/* Each letter fades to dark toward the bottom; on hover they lift and turn green in a wave, like the hero title. */
.footer-big .word { display: inline-block; }
.footer-big .char { display: inline-block; color: var(--white);
  /* the mask clips to the letter's box, so give round letters (S, the apostrophe) room above and below */
  padding: 0.14em 0.03em; margin: -0.14em -0.03em;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.55) 45%, #000 85%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.55) 45%, #000 85%);
  transition: translate 0.45s cubic-bezier(.2,.7,.2,1), color 0.45s ease; transition-delay: calc(var(--i) * 28ms); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .footer-big:hover .char, .footer-big:focus-visible .char { translate: 0 -0.06em; color: var(--accent); }
}
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 64px; padding-top: 32px;  }
.footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-social a { text-decoration: none; color: var(--text-muted); font-size: 15px; }
.footer-social a:hover { color: var(--secondary); }
.footer-badge { height: 72px; width: auto; }
.copyright { margin: 0; font-size: 14px; color: var(--text-muted); }
.about-badge { height: 96px; width: auto; margin-top: 32px; }

/* ---------- home: selected work, horizontal scroll ---------- */
.hs-title { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(48px, 8vw, 128px); line-height: 0.95; margin: 0 0 24px; overflow: hidden; }
.hs-title span { display: inline-block; }
.hs-intro { padding: var(--section) var(--gutter) 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.hs-intro .lead { margin-bottom: 28px; }
.hs-hint { display: none; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.hs-hint span { display: inline-block; color: var(--secondary); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.hs-panel { display: flex; flex-direction: column; gap: 20px; padding: 32px var(--gutter); border-top: 1px solid var(--line-dark); }
.hs-panel-top { display: flex; justify-content: space-between; align-items: center; }
.hs-img { display: block; overflow: hidden; background: var(--black-2); aspect-ratio: 4 / 3; }
.hs-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hs-panel:hover .hs-img img { transform: scale(1.04); }
.hs-panel h3 { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(36px, 3.6vw, 60px); line-height: 0.95; margin: 0 0 12px; }
.hs-panel h3 a { text-decoration: none; }
.hs-panel h3 a:hover { color: var(--accent); }
.hs-panel-body p { margin-bottom: 20px; max-width: 46ch; }
.hs-panel-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.hs-end { padding: 64px var(--gutter); border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.hs-end-link { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(56px, 8vw, 128px); line-height: 0.9; text-decoration: none; }
.hs-end-link:hover { color: var(--accent); }

/* Desktop: pinned stage, panels side by side, track moved by JS. */
.hscroll.is-pinned .hscroll-stage { position: sticky; top: 77px; height: calc(100vh - 77px); overflow: hidden; }
.hscroll.is-pinned .hscroll-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.hscroll.is-pinned .hs-intro { width: 44vw; flex: none; padding: 56px 40px 48px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); border-right: 1px solid var(--line-dark); }
.hscroll.is-pinned .hs-hint { display: block; }
.hscroll.is-pinned .hs-panel { width: min(46vw, 720px); flex: none; border-top: 0; border-right: 1px solid var(--line-dark); padding: 40px; }
/* same image size in every panel, whatever the title length */
.hscroll.is-pinned .hs-img { flex: none; height: 46vh; aspect-ratio: auto; }
.hscroll.is-pinned .hs-panel-body { flex: 1; display: flex; flex-direction: column; }
.hscroll.is-pinned .hs-panel-foot { margin-top: auto; }
.hscroll.is-pinned .hs-img img { transform: scale(calc(1.15 - 0.15 * var(--p, 1))); clip-path: inset(0 calc((1 - var(--p, 1)) * 100%) 0 0); transition: none; }
.hscroll.is-pinned .hs-end { width: 40vw; flex: none; border-top: 0; padding: 40px 64px; }
/* Title letters rise in when the section arrives */
.js .hs-title span { transform: translateY(105%); transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.js .hscroll.in-view .hs-title span { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .hs-title span { transform: none; } .hs-hint span { animation: none; } }

/* ---------- hero title: letters rise in, then react to the cursor ---------- */
/* A word wrapped in *asterisks* in the admin is drawn as an outline. */
.hero-title .word { display: inline-block; white-space: nowrap; vertical-align: top; }
/* overflow: clip (not hidden) keeps the text baseline, so lines don't jump when clipping is removed */
.js .hero-title .word { overflow: clip; }
.js .hero-title.done .word { overflow: visible; }
.hero-title .char { display: inline-block; }
.hero-title .outline .char { color: transparent; -webkit-text-stroke: 2px var(--white); }
.js .hero-title .char { transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1), translate 0.45s cubic-bezier(.2,.7,.2,1), color 0.45s ease, -webkit-text-stroke-color 0.45s ease;
  transition-delay: calc(var(--i) * 28ms); }
/* Hover: letters lift and turn green one after another, like a wave (outlined word: only the outline changes). */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-title[data-hover="wave"].done:hover .char { translate: 0 -0.08em; color: var(--accent); }
  .hero-title[data-hover="wave"].done:hover .outline .char { color: transparent; -webkit-text-stroke-color: var(--accent); }
}
/* "mask" hover: green copy of the title revealed through a soft-edged circle at the cursor (--mx/--my set in js). */
@property --spot { syntax: "<length>"; inherits: true; initial-value: 0px; }
.hero-title[data-hover="mask"] { position: relative; --spot: 0px; transition: --spot 0.45s cubic-bezier(.2,.7,.2,1); }
.hero-title[data-hover="mask"].is-lit { --spot: clamp(130px, 13vw, 230px); }
.hero-fill { position: absolute; inset: 0; pointer-events: none; color: var(--accent);
  /* soft, blurred edge: solid green in the middle fading out toward the rim */
  -webkit-mask-image: radial-gradient(circle var(--spot) at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
  mask-image: radial-gradient(circle var(--spot) at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%); }
.hero-fill .outline .char { color: transparent; -webkit-text-stroke-color: var(--accent); }
.js .hero-title.ready .char { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .hero-title .char { transform: none; transition: none; } .js .hero-title .word { overflow: visible; } }

/* ---------- home: "Done so far" numbers ---------- */
.nums { padding: var(--section) 0; }
.nums-stage { background: var(--secondary); color: var(--black); margin: 0 var(--gutter); }
.nums-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 56px var(--gutter); gap: 40px 0; }
.nums-intro { grid-column: 1 / -1; }
.nums .eyebrow { color: var(--black); } /* dark label on the accent panel */
.nums-intro .h-xl { margin: 0; }
.num { position: relative; display: grid; align-content: start; gap: 12px; padding: 0 16px; border-left: 1px solid rgba(14, 16, 17, 0.35); }
.num-i { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; opacity: 0.7; }
.num b { font-family: var(--font-head); font-weight: 400; font-size: clamp(72px, 12vw, 160px); line-height: 0.85; font-variant-numeric: tabular-nums; }
.num-l { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; max-width: 24ch; text-wrap: balance; }

/* Desktop: pinned, rounded panel opens to full screen, numbers slide sideways, alternating up and down. */
.nums.is-pinned { padding: 0; }
.nums.is-pinned .nums-stage {
  position: sticky; top: 77px; height: calc(100vh - 77px); margin: 0; overflow: hidden;
  clip-path: inset(var(--ins, 5vw) round var(--rad, 36px)); will-change: clip-path;
}
.nums.is-pinned .nums-track {
  display: flex; align-items: center; height: 100%; width: max-content; gap: 0;
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); will-change: transform;
}
.nums.is-pinned .nums-intro { width: min(40vw, 600px); flex: none; margin-right: 6vw; }
.nums.is-pinned .num { flex: none; height: 52vh; align-content: center; padding: 0 4vw 0 1.5vw; }
.nums.is-pinned .num-i { position: absolute; top: 0; left: 1.5vw; }
.nums.is-pinned .num:nth-child(even) { translate: 0 -8vh; }
.nums.is-pinned .num:nth-child(odd) { translate: 0 8vh; }
.nums.is-pinned .num b { font-size: clamp(120px, 30vh, 320px); }



/* ---------- page transition: accent columns rise, show where you're going, then lift away ---------- */
.pt { position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden; }
.pt-bars { position: absolute; inset: 0; display: flex; }
.pt-bar { flex: 1; margin-right: -1px; background: var(--pt-bg, var(--accent)); transform: translateY(101%);
  transition: transform 0.6s cubic-bezier(.76, 0, .24, 1); transition-delay: calc(var(--b) * 55ms); }
.pt-text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vw, 56px); color: var(--pt-fg, var(--black)); }
/* transition colours, picked at random per navigation (site.js) */
html[data-pt-color="white"] { --pt-bg: var(--white); }
html[data-pt-color="lime"] { --pt-bg: var(--accent); }
html[data-pt-color="lilac"] { --pt-bg: var(--secondary); }
html[data-pt-color="gray"] { --pt-bg: #2c2f31; --pt-fg: var(--white); }
.pt-meta { display: flex; justify-content: flex-end; gap: 16px; margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; transition: opacity 0.3s 0.35s; }
.pt-label { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(88px, 28vw, 480px); line-height: 0.88; display: flex; flex-wrap: wrap; column-gap: 0.2em; }
.pt-label .word { display: inline-flex; overflow: clip; white-space: nowrap; padding: 0.16em 0.04em 0.06em; margin: -0.16em -0.04em -0.06em; } /* room for Anton's tall glyphs inside the clip */
.pt-label .char { display: inline-block; transform: translateY(110%); transition: transform 0.7s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(0.3s + var(--i) * 25ms); }

/* leaving: columns rise and the destination name slides in */
.pt-leaving .pt { visibility: visible; pointer-events: auto; }
.pt-leaving .pt-bar, .pt-leaving .pt-label .char { transform: none; }
.pt-leaving .pt-meta { opacity: 1; }

/* arriving: page loads under the curtain, then the columns lift off the top */
html[data-pt] .pt { visibility: visible; }
html[data-pt] .pt-bar { transform: none; transition: none; }
html[data-pt].pt-arriving .pt-bar { transform: translateY(-101%); transition: transform 0.7s cubic-bezier(.76, 0, .24, 1); transition-delay: calc(var(--b) * 55ms); }
.pt-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }

/* ---------- background dot grid (fixed, so it stays put while the page scrolls) ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1.3px, transparent 1.8px);
  background-size: 80px 80px;
  background-position: center;
}


@media (prefers-reduced-motion: reduce) { .js .footer-inner { transform: none; } }

/* ---------- hero: glass phone in 3D layers ---------- */
.phone3d { --rx: 10deg; --ry: -22deg; --lift: 34; --s: 1.25;
  height: 820px; display: grid; place-items: center; perspective: 1600px; }
.p3-world { position: relative; width: 300px; height: 620px; transform-style: preserve-3d;
  transform: scale(var(--s)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.p3-layer { position: absolute; border-radius: 18px;
  background: linear-gradient(145deg, rgba(40, 44, 47, 0.72), rgba(14, 16, 17, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--white); font-size: 13px; line-height: 1.3;
  transform: translateZ(calc(var(--z) * var(--lift) * 1px));
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.p3-layer small { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.p3-body { inset: 0; border-radius: 46px; background: linear-gradient(160deg, rgba(31, 33, 34, 0.85), rgba(8, 9, 10, 0.75));
  border: 1.5px solid rgba(255, 255, 255, 0.14); }
.p3-status { top: 14px; left: 22px; width: 256px; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-radius: 15px; font-size: 12px; font-weight: 600; }
.p3-island { width: 74px; height: 18px; border-radius: 9px; background: var(--black); }
.p3-head { top: 60px; left: 22px; width: 256px; height: 62px; padding: 12px 16px; }
.p3-head b { font-family: var(--font-head); font-weight: 400; font-size: 24px; text-transform: uppercase; letter-spacing: 0.01em; }
.p3-kpi { top: 138px; width: 124px; height: 96px; padding: 12px 14px; }
.p3-kpi b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 34px; line-height: 1.1; }
.p3-kpi em { font-style: normal; font-size: 11px; color: var(--accent); font-weight: 600; }
.p3-k1 { left: 22px; } .p3-k2 { left: 154px; }
.p3-chart { top: 250px; left: 22px; width: 256px; height: 130px; padding: 12px 14px; }
.p3-bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin-top: 10px; }
.p3-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: rgba(255, 255, 255, 0.18); }
.p3-bars i:last-child { background: var(--accent); }
.p3-list { top: 396px; left: 22px; width: 256px; height: 132px; padding: 12px 16px; display: grid; align-content: space-between; }
.p3-list p { margin: 0; padding-left: 24px; position: relative; color: rgba(255, 255, 255, 0.85); }
.p3-list p::before { content: ""; position: absolute; left: 0; top: 1px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.p3-list p.done::before { background: var(--accent); border-color: var(--accent); }
.p3-cta { top: 546px; left: 22px; width: 256px; height: 48px; display: grid; place-items: center; border-radius: 24px;
  background: var(--accent); border-color: transparent; color: var(--black); font-weight: 600; font-size: 15px; backdrop-filter: none; }
.p3-toast { top: 352px; left: 158px; width: 190px; padding: 10px 14px; border-radius: 14px; font-weight: 600; font-size: 12px;
  background: linear-gradient(145deg, rgba(127, 150, 255, 0.55), rgba(127, 150, 255, 0.25)); border-color: rgba(127, 150, 255, 0.8); }
/* Touch screens: no cursor to follow, so the phone floats gently on its own. */
@media (hover: none), (pointer: coarse) {
  .p3-world { animation: p3-float 9s ease-in-out infinite; }
}
@keyframes p3-float { 50% { transform: scale(var(--s)) rotateX(4deg) rotateY(-10deg); } }
@media (max-width: 999px) { .phone3d { height: 640px; --s: 0.95; } .hero .phone3d { margin-top: -48px; } }
@media (max-width: 480px) { .phone3d { height: 540px; --s: 0.8; } }
@media (prefers-reduced-motion: reduce) { .p3-world, .p3-layer { transition: none; animation: none; } }

/* ---------- contact: giant "Get in touch" behind a white form card ---------- */
.contact { padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; }
.contact-row { position: relative; z-index: 1; display: grid; gap: 40px 64px; align-items: start; }
@media (min-width: 1025px) { .contact-row { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); } } /* form beside the headline; the headline wraps as needed */
.contact-intro { margin: 0; } /* .h-hero: same size as the other page titles */
.contact-intro .outline { color: transparent; -webkit-text-stroke: 2px var(--white); } /* *words* in the admin: outline only, like the home title */
.contact-big { margin: 0 var(--gutter); width: fit-content; white-space: nowrap; font-family: var(--font-head); text-transform: uppercase; color: #2a2d2f;
  font-size: 17vw; line-height: 0.82; letter-spacing: -0.005em; position: relative; z-index: 0; margin-top: clamp(-220px, -11vw, 24px); } /* js scales it to the full width; pulled up under the form */
.contact { padding-bottom: clamp(64px, 8vw, 120px); }
/* Slides up into place next to the intro text when the page loads. */
.js .contact-card { transform: translateY(120px); opacity: 0; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity 0.8s ease; }
.js .contact-card.is-in { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .contact-card { transform: none; opacity: 1; } }
.contact-card { width: 100%; background: var(--white); color: var(--black); border-radius: 20px;
  padding: clamp(28px, 4vw, 56px); display: grid; gap: 28px; }
.contact-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.contact-card-head h2 { margin: 0; font-size: clamp(44px, 5.5vw, 88px); }
.contact-card .meta { color: var(--text-muted-dark); margin: 0; }
.contact-fields { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.contact-fields .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .num-l { font-size: 11px; letter-spacing: 0.04em; } .num { padding: 0 10px; } }
@media (max-width: 640px) { .contact-fields { grid-template-columns: 1fr; } } 
@media (max-width: 999px) { .contact-big { margin-top: 24px; } }
.contact-fields label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted-dark); }
.contact-fields input, .contact-fields textarea { font: 400 17px/1.5 var(--font-body); color: var(--black); background: transparent;
  border: 0; border-bottom: var(--border) solid rgba(14, 16, 17, 0.2); border-radius: 0; padding: 10px 0; }
.contact-fields input:focus, .contact-fields textarea:focus { outline: none; border-bottom-color: var(--black); }
.contact-card .btn { justify-self: start; }
/* Contact page has no big footer CTA: drop the extra gap and divider lines at the end */
.contact-page .contact { padding-bottom: clamp(48px, 6vw, 96px); }
.contact-copy .lead { margin-top: 24px; }
/* short page: the footer sits against the bottom of the screen */
body.contact-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.contact-page main { flex: 1; }
.contact-page .site-footer { border-top: 0; }
.contact-page .footer-inner { padding-top: 0; transform: none; }
.contact-page .footer-bottom { border-top: 0; margin-top: 32px; padding-top: 0; }

/* ---------- home: What I do as big tilting cards ---------- */
.svc { padding-bottom: 0; overflow-x: clip; }
.svc-stack { display: flex; flex-direction: column; padding-bottom: 0; } /* the next section brings its own top spacing */
.svc-card { --rot: 0deg; --shift: 0px; transform-origin: 0 0; transform: translateX(var(--shift)) rotate(var(--rot)); will-change: transform; }
/* Each card's background continues down behind the next card to that card's bottom edge
   (--extend is set in js to the next card's height), so no dark gaps show while they tilt. */
.svc-stack { --overlap: 80px; }
.svc-card + .svc-card { margin-top: calc(-1 * var(--overlap)); }
.svc-inner { position: relative; }
.svc-card:not(:last-child) .svc-inner::after { content: ""; position: absolute; left: 0; right: 0; top: 100%;
  height: var(--extend, 0px); background: inherit; pointer-events: none; }
.svc-card.is-right { transform-origin: 100% 0; }
.svc-inner { width: 100%; color: var(--black); background: var(--white);
  border-radius: 0 28px 0 0; padding: clamp(56px, 8vw, 128px) var(--gutter) calc(var(--overlap) + clamp(28px, 4vw, 64px)); /* bottom clears the next card's overlap */
  display: grid; gap: 32px 64px; }
.svc-card.is-right .svc-inner { border-radius: 28px 0 0 0; }
.svc-card--2 .svc-inner { background: var(--accent); }
.svc-card--3 .svc-inner { background: var(--secondary); }
.svc-card--4 .svc-inner { background: var(--black-3); color: var(--white); }
.svc-card--4 .btn-dark { background: var(--white); color: var(--black); border-color: var(--white); }
@media (min-width: 900px) { .svc-inner { grid-template-columns: 1.1fr 1fr; } }
.svc-num { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; margin: 0 0 8px; }
.svc-word { font-family: var(--font-head); text-transform: uppercase; font-weight: 400; font-size: clamp(64px, 11vw, 190px); line-height: 0.85; margin: 0 0 16px; }
.svc-title { font-weight: 600; font-size: 18px; margin: 0 0 20px; }
.svc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags li { padding: 4px 12px; border: var(--border) solid currentColor; border-radius: 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.svc-side { display: grid; gap: 20px; align-content: start; }
.svc-side img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
/* inline SVG illustrations (see the "illustration" filter) */
.illu svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.svc-side p { margin: 0; font-size: 18px; max-width: 46ch; }
.svc-side .btn { justify-self: start; }
@media (prefers-reduced-motion: reduce) { .svc-card { transform: none; } }
/* Desktop: the phone box is as tall as the scaled phone, and the grid centers it against the hero text. */
@media (min-width: 1000px) {
  .hero { padding-top: clamp(24px, 4vw, 56px); } /* sits higher so the phone fits the first screen */
  .hero .phone3d { height: calc(620px * var(--s)); align-self: center; } /* phone centered vertically on the text column */
}
/* Shorter laptop screens: tighter testimonial cards so they fit under the title. */
@media (max-height: 1000px) {
  .testimonials.is-pinned .quote { padding: 22px 26px; }
  .testimonials.is-pinned .quote-head { font-size: 18px; }
  .testimonials.is-pinned .quote-mark { width: 28px; margin-bottom: 12px; }
}

/* roulette numbers (site.js): each digit column clips a strip of digits that spins to its value */
.roll { --rh: 1.2em; display: inline-flex; vertical-align: top; line-height: var(--rh); margin-block: calc((0.85em - var(--rh)) / 2) 0; } /* tall cells so Anton's round tops aren't clipped; only the top overlaps (into empty space), the bottom keeps its full height so rolling digits never cover the label below */
.roll-col, .roll-char { display: block; height: var(--rh); line-height: var(--rh); } /* own line-height: .num b sets 0.85 */
.roll-col { overflow: hidden; }
.roll-strip { display: flex; flex-direction: column; transition: transform 3.2s cubic-bezier(.33, 0, .2, 1); }
.roll-strip > span { height: var(--rh); line-height: var(--rh); text-align: center; }
.roll.is-rolled .roll-strip { transform: translateY(calc(var(--k) * -1 * var(--rh))); }

/* Up to 1024px: case studies stack the text under the title; About goes to one column without rules; stats in 2 columns */
@media (max-width: 1024px) {
  .case-section .split { grid-template-columns: 1fr; }
  .about-page .split, .about-page .feature-grid { grid-template-columns: 1fr; }
  .about-page .feature { border-top: 0; padding-top: 0; }
  .about-page .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
