/* ==========================================================================
   Oscar Studio — site styles
   Plain CSS, no build step. Colours, type and spacing live in :root below.
   ========================================================================== */

:root {
  /* Colour */
  --ink: #121110;          /* page background (dark) */
  --ink-2: #1E1C1A;        /* raised dark surface */
  --ink-3: #2A2724;        /* borders / chrome on dark */
  --ink-deep: #0E0D0C;
  --paper: #F2EFE9;        /* main text on dark, light section background */
  --paper-2: #E8E3DA;      /* alternate light section */
  --soft: #CFC9BF;         /* body copy on dark */
  --muted: #B5AFA5;        /* small labels on dark (7:1 on --ink) */
  --text-on-light: #3A3631;
  --muted-on-light: #5C574F;
  --ember: #F47A3A;        /* accent on dark backgrounds */
  --ember-deep: #B5481A;   /* accent on light backgrounds (5:1 on --paper) */
  --violet: #6B3FA0;
  --line: rgba(242, 239, 233, 0.16);
  --line-light: rgba(18, 17, 16, 0.18);

  /* Type */
  --font-sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Layout */
  --max: 1320px;
  --gutter: clamp(20px, 3vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 14px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--ember); }
h1, h2, h3, h4, p, figure, blockquote, ol, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 4px; border-radius: 6px; }
.on-light :focus-visible, .cta-audit :focus-visible { outline-color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 10px; background: var(--paper); color: var(--ink);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 1120px; }
.container--text { max-width: 820px; }
.section { padding-block: var(--section-y); }
.section--light { background: var(--paper); color: var(--ink); }
.section--alt { background: var(--paper-2); color: var(--ink); }
.section--deep { background: var(--ink-deep); }
.section--rule { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: var(--stack, 24px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }

/* ---------- Type ---------- */
.eyebrow { font-size: 15px; color: var(--muted); }
.on-light .eyebrow { color: var(--muted-on-light); }
.display {
  font-size: clamp(44px, 6.2vw, 92px); line-height: 0.98; font-weight: 700;
  letter-spacing: -0.04em; font-variation-settings: "opsz" 96;
}
.h2 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.accent {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; color: var(--ember); padding-right: 0.04em;
}
.on-light .accent { color: var(--ember-deep); }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--soft); max-width: 540px; }
.on-light .lede, .on-light p { color: var(--text-on-light); }
.on-light .h2, .on-light .h3, .on-light .display { color: var(--ink); }
.muted { color: var(--muted); }
.placeholder-text { color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.25s var(--ease-out), background-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--ember); color: var(--ink); }
.btn--primary:hover { color: var(--ink); }
.btn--ghost { border-color: rgba(242, 239, 233, 0.3); color: var(--paper); background: transparent; }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.link-ul {
  font-weight: 600; text-decoration: none; padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.link-ul:hover { background-size: 0 2px; background-position: 100% 100%; }

.pill-link {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  padding: 10px 18px 10px 10px; border: 1px solid rgba(242, 239, 233, 0.18); border-radius: 999px;
  text-decoration: none; font-size: 15px; color: #E6E1D8;
}
.pill-link__icon {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(244, 122, 58, 0.16); color: var(--ember); flex-shrink: 0;
}
.pill-link__icon svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 24px;
}
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark span { color: var(--ember); }
.nav-pill {
  display: flex; align-items: center; gap: 4px; padding: 6px; list-style: none; margin: 0;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(18, 17, 16, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav-pill a {
  display: block; padding: 10px 18px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500; color: rgba(242, 239, 233, 0.85);
}
.nav-pill a:hover { color: var(--paper); background: rgba(242, 239, 233, 0.08); }
.nav-pill a[aria-current="page"] { color: var(--paper); background: rgba(242, 239, 233, 0.12); }
.nav-pill .nav-cta { background: var(--paper); color: var(--ink); }
.nav-pill .nav-cta:hover { background: var(--ember); color: var(--ink); }

.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(242, 239, 233, 0.18); background: rgba(242, 239, 233, 0.08);
  color: var(--paper); font-size: 15px; font-weight: 600; cursor: pointer;
}
.menu-toggle svg { width: 16px; height: 16px; }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: 80px;
  }
  .site-nav.is-open .nav-pill {
    flex-direction: column; align-items: stretch; border-radius: 20px; padding: 10px;
    background: rgba(30, 28, 26, 0.97);
  }
  .site-nav.is-open .nav-pill a { padding: 14px 18px; font-size: 18px; }
}
/* Without JS the toggle can't work, so always show the nav */
.no-js .menu-toggle { display: none; }
.no-js .site-nav { display: block; }
@media (max-width: 820px) {
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .nav-pill { flex-wrap: wrap; border-radius: 20px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: min(100svh, 940px);
  display: flex; flex-direction: column;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 4px 4px;
}
.hero--short { min-height: 0; }
.hero__glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(44px); will-change: transform;
}
.hero__glow--ember {
  left: 48%; top: -180px; width: 620px; height: 620px; opacity: 0.55;
  background: radial-gradient(circle, var(--ember) 0%, rgba(18, 17, 16, 0) 68%);
  animation: glow-drift 22s ease-in-out infinite;
}
.hero__glow--violet {
  left: 70%; top: 380px; width: 520px; height: 520px; opacity: 0.4;
  background: radial-gradient(circle, var(--violet) 0%, rgba(18, 17, 16, 0) 68%);
  animation: glow-drift 28s ease-in-out -8s infinite;
}
.hero__body {
  position: relative; flex-grow: 1; display: grid; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(540px, 100%), 1fr));
  gap: 48px; padding-block: 32px 56px;
}
.hero__copy { display: flex; flex-direction: column; gap: 30px; }
.hero__frames { position: relative; height: 600px; }
@media (max-width: 1140px) { .hero__frames { height: 460px; } }
@media (max-width: 820px) { .hero__frames { height: 300px; } }

.word { display: inline-block; animation: word-in 0.7s var(--ease-out) both; }
.fade-in { animation: fade-up 0.8s ease-out 1.05s both; }

@keyframes word-in { from { opacity: 0; transform: translateY(0.45em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.12); }
  66% { transform: translate(-40px, 30px) scale(0.94); }
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Browser-window frame used for screenshots */
.frame {
  border-radius: 14px; overflow: hidden; background: var(--ink-2);
  border: 1px solid rgba(242, 239, 233, 0.14); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--ink-3); }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #5A554F; }
.frame__url {
  margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: var(--ink-2);
  font-size: 11px; color: #A8A39A; font-style: normal;
}
.frame--phone { border-radius: 24px; border: 6px solid var(--ink-3); }
.hero__frames .frame { position: absolute; animation: float 7s ease-in-out infinite; }
.hero__frames .frame:nth-child(1) { left: 4%; top: 30px; width: 78%; rotate: -5deg; }
.hero__frames .frame:nth-child(2) { right: 0; top: 40%; width: 70%; rotate: 4deg; animation-duration: 9s; animation-delay: -3s; }
.hero__frames .frame:nth-child(3) { left: 10%; top: 62%; width: 150px; rotate: -3deg; animation-duration: 8s; animation-delay: -5s; }
@media (max-width: 820px) {
  .hero__frames .frame:nth-child(3) { display: none; }
  .hero__frames .frame:nth-child(2) { top: 34%; }
}

/* Image placeholder: swap for a real <img> (see README) */
.ph {
  display: grid; place-items: center; text-align: center; padding: 12px;
  font-size: 13px; color: var(--soft); aspect-ratio: var(--ratio, 16 / 10);
  background: repeating-linear-gradient(135deg, var(--tint, #2B2420) 0 12px, var(--ink-2) 12px 24px);
}
.ph--light { color: #3A3835; background: repeating-linear-gradient(135deg, #D9D6CF 0 12px, #CBC7BF 12px 24px); }
.media { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid rgba(242, 239, 233, 0.12); }
.marquee__track {
  display: flex; width: max-content; padding-block: clamp(16px, 2vw, 26px);
  font-size: clamp(32px, 4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  white-space: nowrap; animation: marquee 40s linear infinite;
}
.marquee__track > span { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); padding-right: clamp(20px, 2.5vw, 36px); }
.marquee__track em { font-family: var(--font-serif); font-weight: 400; color: var(--ember); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Work grid (home) ---------- */
.work-grid {
  display: grid; gap: 56px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
}
.project-card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--paper); }
.project-card:hover { color: var(--paper); }
.project-card__media { display: block; border-radius: 16px; overflow: hidden; border: 1px solid rgba(242, 239, 233, 0.12); }
.project-card__media > * { transition: transform 0.6s var(--ease-out); }
.project-card:hover .project-card__media > * { transform: scale(1.03); }
.project-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.project-card__name { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.03em; }
.project-card__tags { font-size: 16px; color: var(--muted); }

/* ---------- Services list ---------- */
.svc-list { border-top: 2px solid var(--ink); }
.svc-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 12px 48px; align-items: baseline; padding-block: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--line-light); text-decoration: none; color: var(--ink);
  transition: background-color 0.3s;
}
.svc-row:hover { color: var(--ink); background: rgba(18, 17, 16, 0.04); }
.svc-row__title { display: flex; align-items: baseline; gap: 20px; transition: transform 0.45s var(--ease-out); }
.svc-row:hover .svc-row__title { transform: translateX(16px); }
.svc-row__num { font-size: 16px; color: var(--muted-on-light); }
.svc-row__name { font-size: clamp(30px, 4.2vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.svc-row__desc { font-size: clamp(16px, 1.3vw, 18px); color: var(--text-on-light); }

/* ---------- Steps (how it works) ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.steps__intro { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 821px) { .steps__intro { position: sticky; top: 48px; } }
.steps__track { flex: 999 1 520px; min-width: 0; position: relative; padding-left: 48px; }
.steps__rail, .steps__fill { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; }
.steps__rail { background: rgba(18, 17, 16, 0.15); }
.steps__fill { background: var(--ember-deep); transform-origin: top; }
.steps__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.step::before {
  content: ""; position: absolute; left: -48px; top: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper-2); border: 2px solid var(--ink);
}
.step:first-child::before { background: var(--ember-deep); border-color: var(--ember-deep); box-shadow: 0 0 0 6px rgba(181, 72, 26, 0.18); }
.step__label { font-size: 15px; color: var(--muted-on-light); }
.step p { max-width: 560px; }

/* ---------- Price menu ---------- */
.menu { border-block: 1px solid rgba(242, 239, 233, 0.2); padding-block: 12px; }
.menu__row { display: flex; flex-direction: column; gap: 8px; padding-block: clamp(20px, 2.4vw, 28px); }
.menu__line { display: flex; align-items: baseline; gap: 16px; }
.menu__name { font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.menu__dots { flex-grow: 1; min-width: 24px; border-bottom: 2px dotted rgba(242, 239, 233, 0.3); transform: translateY(-6px); transform-origin: left; }
.menu__price { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 40px); white-space: nowrap; }
.menu__desc { font-size: 17px; color: var(--soft); max-width: 640px; }
.fine-print { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; font-size: 16px; color: var(--soft); }
.fine-print strong { display: block; margin-bottom: 6px; color: var(--paper); font-weight: 600; }

/* ---------- Testimonial ---------- */
.quote { display: flex; flex-direction: column; gap: 32px; }
.quote__mark { font-family: var(--font-serif); font-size: 160px; line-height: 0.6; height: 60px; color: var(--ember); }
.quote blockquote { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 56px); line-height: 1.15; letter-spacing: -0.01em; }
.quote figcaption { display: flex; align-items: center; gap: 16px; font-size: 17px; }
.quote__avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; --ratio: 1; }

/* ---------- Video-audit call to action ---------- */
.cta-audit { background: var(--ember); color: var(--ink); }
.cta-audit a:hover { color: var(--ink); }
.cta-audit__grid {
  display: grid; gap: 48px 56px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
}
.cta-audit .h2 { font-size: clamp(44px, 6vw, 92px); line-height: 0.95; letter-spacing: -0.045em; }
.cta-audit .accent { color: var(--ink); }
.cta-audit p { color: var(--ink); }

/* ---------- Forms ---------- */
.form-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--ink); color: var(--paper); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.field__hint { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid rgba(242, 239, 233, 0.3); background: var(--ink-2); color: var(--paper);
  font-size: 17px; font-weight: 400;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.input::placeholder, .textarea::placeholder { color: #8E887F; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--ember); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 400; color: var(--soft); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ember); flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; }
.form-card .btn { width: 100%; border: 0; }
.form-note { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(64px, 8vw, 96px) 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.site-footer__email { font-size: clamp(26px, 3.4vw, 48px); font-weight: 700; letter-spacing: -0.03em; align-self: flex-start; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 48px; align-content: start; list-style: none; padding: 0; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 17px; }
.site-footer__mark {
  margin-block: clamp(48px, 7vw, 72px); font-size: clamp(64px, 15vw, 230px); font-weight: 800;
  letter-spacing: -0.06em; line-height: 0.8; color: var(--ink-2);
  -webkit-text-stroke: 1px rgba(242, 239, 233, 0.14); overflow-wrap: anywhere;
}
.site-footer__mark span { color: var(--ember); -webkit-text-stroke: 0; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--muted); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(242, 239, 233, 0.22); background: transparent; color: var(--paper);
  font-size: 15px; font-weight: 500; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 820px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
}

/* ---------- Work list with cursor preview (work page) ----------
   Desktop: hovering a row shows its preview card at the cursor (JS sets --x/--y).
   Phone / touch: the preview shows inline above each row. */
.work-list { position: relative; border-top: 1px solid var(--line); list-style: none; padding: 0; }
.work-row { border-bottom: 1px solid var(--line); }
.work-row[hidden] { display: none; }
.work-row__link {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 200px) minmax(0, 200px) 48px;
  align-items: center; gap: 24px; padding-block: 26px; text-decoration: none; color: var(--paper);
  transition: opacity 0.35s;
}
.work-row__link:hover { color: var(--paper); }
.work-row__num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.work-row__name { font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; transition: transform 0.45s var(--ease-out); }
.work-row__industry { font-size: 16px; color: var(--soft); }
.work-row__kind { font-size: 16px; color: var(--muted); }
.work-row__arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(242, 239, 233, 0.25);
  display: grid; place-items: center; transition: transform 0.35s var(--ease-out), background-color 0.25s, color 0.25s;
}
.work-row__arrow svg { width: 18px; height: 18px; }
.work-row__preview { display: block; }
@media (hover: hover) and (min-width: 821px) {
  .work-list:hover .work-row__link { opacity: 0.32; }
  .work-list .work-row__link:hover, .work-list .work-row__link:focus-visible { opacity: 1; }
  .work-row__link:hover .work-row__name, .work-row__link:focus-visible .work-row__name { transform: translateX(24px); }
  .work-row__link:hover .work-row__arrow, .work-row__link:focus-visible .work-row__arrow { transform: rotate(-45deg); background: var(--ember); color: var(--ink); border-color: var(--ember); }
  .work-row__preview {
    position: absolute; z-index: 5; left: var(--x, 60%); top: var(--y, 50%); width: 360px;
    pointer-events: none; opacity: 0; scale: 0.85;
    transform: translate(-50%, -50%) rotate(-3deg);
    border-radius: 12px; overflow: hidden; border: 1px solid rgba(242, 239, 233, 0.18);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transition: opacity 0.25s, scale 0.3s var(--ease-out);
  }
  .work-row__link:hover .work-row__preview { opacity: 1; scale: 1; }
}
@media (hover: none), (max-width: 820px) {
  .work-row__link { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding-block: 20px 28px; }
  .work-row__preview { grid-column: 1 / -1; order: -1; border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
  .work-row__num { display: none; }
  .work-row__name { grid-column: 1 / -1; font-size: 30px; }
  .work-row__industry, .work-row__kind { font-size: 15px; }
  .work-row__arrow { display: none; }
}

/* ---------- Before / after comparison slider ----------
   Markup: .compare > .compare__after, .compare__before, input.compare__range, .compare__handle
   JS keeps --pos (0–100) in sync with the range input. */
.compare { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid rgba(242, 239, 233, 0.14); --pos: 50; aspect-ratio: var(--ratio, 16 / 10); }
.compare__after, .compare__before { position: absolute; inset: 0; }
.compare__after > *, .compare__before > * { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.compare__before { clip-path: inset(0 calc((100 - var(--pos)) * 1%) 0 0); }
.compare__divider { position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.compare__tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; pointer-events: none; }
.compare__tag--before { left: 16px; background: var(--ink); color: var(--paper); }
.compare__tag--after { right: 16px; background: var(--ember); color: var(--ink); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare__handle {
  position: absolute; top: 50%; left: calc(var(--pos) * 1%); translate: -50% -50%; pointer-events: none;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.compare__handle svg { width: 22px; height: 22px; }
.compare__range:focus-visible ~ .compare__handle { outline: 3px solid var(--ember); outline-offset: 4px; }

/* Scroll "read" effect: JS adds .is-reading to [data-reveal="read"] */
.is-reading {
  color: transparent; background-color: rgba(242, 239, 233, 0.24);
  background-image: linear-gradient(var(--paper), var(--paper)); background-repeat: no-repeat; background-size: 0% 100%;
  -webkit-background-clip: text; background-clip: text;
}
.on-light .is-reading { background-color: rgba(18, 17, 16, 0.2); background-image: linear-gradient(var(--ink), var(--ink)); }

/* ---------- Page shell ----------
   The header sits outside <main> and overlays the hero (homepage and inner
   pages). Without JS the nav wraps, so the header goes back into the flow. */
body > .site-header { position: absolute; top: 0; left: 0; right: 0; }
.no-js body > .site-header { position: relative; }
.hero--home .hero__body { padding-top: clamp(112px, 12vw, 140px); }
.no-js .hero--home .hero__body { padding-top: 32px; }
.on-light a:hover, .on-light .link-ul:hover { color: var(--ember-deep); }
.on-light .svc-row:hover { color: var(--ink); }
/* Short (inner-page) heroes: fade the dot texture out instead of ending on a hard edge */
.hero--short { background-image: none; }
.hero--short::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 4px 4px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.hero--short > * { position: relative; }
.hero--short > .hero__glow { position: absolute; }
