/* ==========================================================================
   nikolens — portfolio
   Tokens from the Nikolens design system; layout rules from taste-skill;
   motion rules from Emil Kowalski's skills.
   ========================================================================== */

@font-face { font-family: "Open Sauce One"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/open-sauce-one-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce One"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/open-sauce-one-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Helvetica LT Pro"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/helvetica-lt-pro-roman.woff2") format("woff2"); }
@font-face { font-family: "Helvetica LT Pro"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/helvetica-lt-pro-bold.woff2") format("woff2"); }
@font-face { font-family: "Helvetica LT Pro"; font-weight: 700; font-style: italic; font-display: swap;
  src: url("../fonts/helvetica-lt-pro-bold-oblique.woff2") format("woff2"); }

:root {
  /* colour (design system) */
  /* the Nikolens palette, softened: brand red and blue are kept for type,
     links and actions; large areas use their tints, so nothing glares */
  --red: #D9483E;          /* brand red, a touch calmer than #DE2929 */
  --red-deep: #B93A31;
  --red-tint: #F7E5E0;     /* blush ground for the works */
  --red-tint-2: #F2DAD3;
  --pink: #FBE9E5;
  --blue: #3D6CAE;         /* brand blue, softened */
  --blue-deep: #2C5590;
  --blue-tint: #E6ECF4;    /* mist ground for the photography */
  --blue-tint-2: #DBE4F0;
  --orange: #F0943F;
  --orange-deep: #E2832D;
  --ink-on-orange: #3A1A06;
  --cream: #FBFAF6;
  --cream-text: #F3EDE6;
  --paper: #F4F2EC;        /* the page */
  --paper-2: #ECE8E0;
  --ink: #2E1A19;          /* body text: a soft dark wine, easier than red */
  --ink-soft: #6A5452;
  --wine: #3A1719;         /* the closing call to action */
  --wine-2: #4A1E20;

  /* type */
  --font-display: "Open Sauce One", "Inter", system-ui, sans-serif;
  --font-text: "Helvetica LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --size-hero: clamp(4.25rem, 12.5vw, 13rem);
  --size-display: clamp(3rem, 6.8vw, 7rem);
  --size-title: clamp(2rem, 3.7vw, 3.75rem);
  --size-statement: clamp(1.25rem, 1.95vw, 1.85rem);
  --size-body-l: clamp(1.0625rem, 1.12vw, 1.3rem);
  --size-body: 1.0625rem;

  /* frame */
  --gutter: clamp(20px, 8.5vw, 200px);
  --col-gap: clamp(14px, 2.4vw, 44px);
  --section-gap: clamp(80px, 10vw, 168px);
  --max: 1920px;

  /* motion (Emil) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --press: 160ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--red); color: var(--cream); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--red); color: var(--cream); padding: 10px 16px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- frame ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* fields, each carrying the crumpled-paper texture */
/* ---------- the sheet: a blueprint layout grid behind every section ----------
   Thin vertical lines sit exactly on the page's 12-column grid (each column
   drawn as a pair of lines, so the gutters read like a technical drawing),
   over a faint 24px graph. Small registration marks pin each section's
   top corners to the frame. Lines take each section's own ink colour. */
.field {
  position: relative; isolation: isolate;
  --ink: 222, 41, 41;           /* red ink on cream */
  --a-graph: .045; --a-cols: .10; --a-mark: .55;
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.field::before, .field::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
/* faint graph paper, aligned to the content's left edge */
.field::before {
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(var(--ink), var(--a-graph)) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--ink), var(--a-graph)) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: var(--edge) 0;
}
/* the 12 columns: a line at the start and end of every column */
.field::after {
  top: 0; bottom: 0; left: var(--edge); right: var(--edge);
  --tile: calc((100% + var(--col-gap)) / 12);
  background-image:
    linear-gradient(to right,
      rgba(var(--ink), var(--a-cols)) 0 1px, transparent 1px calc(100% - var(--col-gap) - 1px),
      rgba(var(--ink), var(--a-cols)) calc(100% - var(--col-gap) - 1px) calc(100% - var(--col-gap)), transparent calc(100% - var(--col-gap))),
    /* registration marks at the section's top corners */
    linear-gradient(rgba(var(--ink), var(--a-mark)), rgba(var(--ink), var(--a-mark))),
    linear-gradient(rgba(var(--ink), var(--a-mark)), rgba(var(--ink), var(--a-mark))),
    linear-gradient(rgba(var(--ink), var(--a-mark)), rgba(var(--ink), var(--a-mark))),
    linear-gradient(rgba(var(--ink), var(--a-mark)), rgba(var(--ink), var(--a-mark)));
  background-size: var(--tile) 100%, 15px 1px, 1px 15px, 15px 1px, 1px 15px;
  background-position: 0 0, -7px 16px, 0 9px, calc(100% + 7px) 16px, 100% 9px;
  background-repeat: repeat-x, no-repeat, no-repeat, no-repeat, no-repeat;
}
@media (max-width: 820px) {
  /* phones: 4 columns, matching how the content stacks */
  .field::after { --tile: calc((100% + var(--col-gap)) / 4); }
}
.field { --text: var(--ink); --head: var(--red); --chip-bg: #fff; --chip-fg: var(--red); --surface: rgba(46, 26, 25, .07); color: var(--text); }
.field .display, .field .title, .field .sub, .field .callout { color: var(--head); }
.on-paper { background: var(--paper); --ink: 217, 72, 62; --a-graph: .045; --a-cols: .09; --a-mark: .5; }
/* works: blush, easing in from the page above and out into the mist-blue below */
.on-red {
  background: linear-gradient(180deg, var(--paper) 0, var(--red-tint) clamp(120px, 14vw, 240px), var(--red-tint-2) 55%, var(--red-tint) calc(100% - clamp(160px, 18vw, 300px)), var(--blue-tint) 100%);
  --ink: 217, 72, 62; --a-graph: .06; --a-cols: .12; --a-mark: .55;
}
/* photography: a quiet blueprint, blue lines on mist */
.on-blue {
  background: linear-gradient(180deg, var(--blue-tint) 0, var(--blue-tint-2) 60%, var(--blue-tint) 100%);
  --head: var(--blue-deep); --chip-fg: var(--blue-deep);
  --ink: 61, 108, 174; --a-graph: .07; --a-cols: .14; --a-mark: .6;
}
/* the call to action: deep wine, cream type */
.on-wine {
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-2) 100%);
  --text: rgba(243, 237, 230, .86); --head: var(--cream-text); --chip-bg: var(--cream-text); --chip-fg: var(--wine);
  --surface: rgba(243, 237, 230, .08);
  --ink: 243, 237, 230; --a-graph: .045; --a-cols: .085; --a-mark: .45;
}
.hero .statement { color: var(--red); }
.on-wine :focus-visible { outline-color: var(--cream-text); }

/* ---------- the hero's viewfinder: framing brackets, thirds, centre mark, live timecode ---------- */
.viewfinder {
  position: absolute; z-index: -1; pointer-events: none;
  top: clamp(84px, 8vw, 112px); bottom: clamp(20px, 3vw, 40px);
  left: max(12px, calc(var(--edge) - clamp(12px, 1.6vw, 28px)));
  right: max(12px, calc(var(--edge) - clamp(12px, 1.6vw, 28px)));
  color: rgba(217, 72, 62, .42);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}
.vf-c { position: absolute; width: clamp(18px, 2vw, 30px); height: clamp(18px, 2vw, 30px); border: 0 solid currentColor; }
.vf-c.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf-c.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf-c.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf-c.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
/* rule of thirds */
.vf-thirds { position: absolute; inset: 0; opacity: .32;
  background-image:
    linear-gradient(to right, transparent calc(33.333% - .5px), currentColor calc(33.333% - .5px) calc(33.333% + .5px), transparent calc(33.333% + .5px) calc(66.666% - .5px), currentColor calc(66.666% - .5px) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
    linear-gradient(to bottom, transparent calc(33.333% - .5px), currentColor calc(33.333% - .5px) calc(33.333% + .5px), transparent calc(33.333% + .5px) calc(66.666% - .5px), currentColor calc(66.666% - .5px) calc(66.666% + .5px), transparent calc(66.666% + .5px));
}
.vf-center { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; opacity: .8; }
.vf-tc {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .8125rem; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; color: rgba(217, 72, 62, .75); white-space: nowrap;
}
.vf-tc i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .vf-tc i { animation: tc-blink 1.6s steps(1, end) infinite; }
  @keyframes tc-blink { 50% { opacity: .25; } }
}
@media (max-width: 820px) {
  .viewfinder { top: 72px; bottom: 16px; left: 10px; right: 10px; }
  .vf-tc { top: auto; bottom: 34%; }
}

/* ---------- type ---------- */
.display {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.05em; line-height: .9;
}
.title {
  font-family: var(--font-text); font-weight: 400;
  font-size: var(--size-title); letter-spacing: -0.045em; line-height: 1;
  text-wrap: balance;
}
@media (max-width: 520px) { .title { font-size: clamp(1.6rem, 7.3vw, 2rem); } }
.statement { font-size: var(--size-statement); line-height: 1.2; letter-spacing: -0.03em; text-wrap: pretty; }
.body-l { font-size: var(--size-body-l); line-height: 1.42; }
.justify { text-align: justify; text-align-last: left; hyphens: manual; }
.sub {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem); letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 18px;
}
b, strong { font-weight: 700; }
em.caveat { font-weight: 700; font-style: italic; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons (pills, flat fill, no border) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: clamp(50px, 2.9vw, 58px); padding: 0 clamp(24px, 1.6vw, 32px); border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.0625rem, .95vw, 1.25rem); letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform var(--press) var(--ease-out), background-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-blue { background: var(--blue); color: var(--cream); }
.btn-orange { background: var(--orange); color: var(--ink-on-orange); }
.btn-red { background: var(--red); color: var(--cream); }
.btn-cream { background: var(--chip-bg, #fff); color: var(--chip-fg, var(--red)); }
.btn .arrow { display: inline-block; transition: transform 240ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn-blue:hover { background: var(--blue-deep); }
  .btn-orange:hover { background: var(--orange-deep); }
  .btn-red:hover { background: var(--red-deep); }
  .btn-cream:hover { background: var(--cream); }
  .btn:hover .arrow { transform: translateX(4px); }
}

/* ---------- header: one floating pill, fixed to the top as you scroll ---------- */
html { scroll-padding-top: 96px; }
.site-header {
  --logo: clamp(40px, 3vw, 52px); --chip: clamp(34px, 2.2vw, 38px);
  position: fixed; inset: 0 0 auto 0; z-index: 50; pointer-events: none;
}
.site-header .wrap {
  display: flex; justify-content: center;
  padding-top: clamp(10px, 1.4vw, 20px); padding-bottom: 0;
}
.bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(8px, 1vw, 14px); max-width: 100%;
  background: rgba(251, 250, 246, .94); border: 1px solid rgba(217, 72, 62, .28); border-radius: 999px;
  /* right gap = top/bottom gap, so the red pill sits concentric inside the cream one */
  padding: 5px calc((var(--logo) - var(--chip)) / 2 + 5px) 5px clamp(14px, 1.4vw, 20px);
  box-shadow: 0 8px 28px rgba(46, 26, 25, .08);   /* it floats, so it may cast a soft shadow */
}
.wordmark { display: block; width: var(--logo); flex: none; }
.wordmark img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(6px, .7vw, 10px); }
.nav a:not(.btn), .nav .btn {
  height: var(--chip); min-height: 0; padding: 0 clamp(10px, .95vw, 16px); border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(.8rem, .82vw, .95rem); box-sizing: border-box; line-height: 1;
  display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none;
}
.nav a:not(.btn) {
  background: var(--pink); border: 1px solid rgba(217, 72, 62, .22); color: var(--red);
  transition: background-color 200ms ease, transform var(--press) var(--ease-out);
}
.nav a:not(.btn):active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { background: #fff; } }
@media (max-width: 520px) {
  .nav a.nav-rates:not(.btn), .nav a.nav-faq:not(.btn) { display: none; }
  .site-header { --logo: 38px; --chip: 34px; }
  .bar { gap: 6px; padding-left: 12px; }
  .nav { gap: 5px; }
  .nav a:not(.btn), .nav .btn { padding: 0 clamp(7px, 2.2vw, 12px); font-size: clamp(.72rem, 3.15vw, .875rem); }
  .site-header .wrap { padding-inline: 10px; }
}

/* ---------- hero: Hanz big on the right, the stills sliding behind him ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 1040px); display: flex; align-items: center;
}
/* static: the picture layer must measure itself against the whole hero, not this text block */
.hero > .wrap { position: static; z-index: auto; padding-top: clamp(96px, 10vw, 136px); padding-bottom: clamp(48px, 6vw, 96px); }
.hero-copy { grid-column: 1 / span 6; }
.hero-logo { margin: 0 0 0 -1%; width: clamp(240px, 30vw, 480px); }
/* the wordmark is a transparent animation (white removed), so it sits on any background
   without blend modes — which iOS Safari didn't honour here */
.hero-logo picture, .hero-logo img { display: block; width: 100%; height: auto; }
.hero .statement { margin-top: clamp(24px, 3vw, 40px); max-width: 22ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 48px); }
.hero-meta { margin-top: clamp(36px, 5vw, 72px); justify-content: flex-start; column-gap: clamp(32px, 4vw, 72px); }

/* the 1-minute reel, muted and faint, moving under the paper texture */
/* cheap on purpose: the colour treatment is baked into the file, and the fade is a plain
   overlay — no blend mode, filter or mask has to be recomputed on every video frame */
.hero-film {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  opacity: .16;
}
.hero-film video { width: 100%; height: 100%; object-fit: cover; }
.hero-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(244, 242, 236, 0) 55%, var(--paper) 100%); }

/* the picture layer fills the whole hero and fades out at the bottom */
.hero-visual {
  /* lives inside the same content frame as the text, nav and grid, so on very wide screens
     the strip and the cutout stay with the layout instead of running to the window's edge */
  position: absolute; top: 0; bottom: 0; left: var(--edge); right: var(--edge); z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 64%, rgba(0,0,0,.55) 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 64%, rgba(0,0,0,.55) 82%, transparent 100%);
}
.strip {
  position: absolute; top: 0; bottom: 0; right: 0; width: clamp(260px, 30vw, 560px);
  overflow: hidden;
}
.strip-track { display: flex; flex-direction: column; gap: 8px; will-change: transform; }
.strip-track img { width: 100%; aspect-ratio: 1092 / 594; object-fit: cover; }
.cutout {
  position: absolute; bottom: 0; right: clamp(0px, 9vw, 220px);
  height: min(88%, 54vw); aspect-ratio: 1597 / 2000;
}
.cutout img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }

@media (max-width: 1180px) and (min-width: 821px) {
  .hero-copy { grid-column: 1 / span 6; max-width: 46vw; }
  .hero-logo { width: clamp(240px, 34vw, 420px); }
  .cutout { right: 2vw; height: min(80%, 66vw); }
}

/* ===== phones & small tablets: a centred hero over the moving reel =====
   wordmark · line · two buttons · socials along the bottom · fade into "about me?" */
@media (max-width: 820px) {
  .hero {
    display: flex; flex-direction: column; justify-content: center;
    min-height: min(100svh, 820px); text-align: center;
  }
  .hero > .wrap { padding-top: clamp(96px, 26vw, 140px); padding-bottom: clamp(28px, 7vw, 44px); flex: 1; display: flex; }
  .hero > .wrap > .hero-copy { grid-column: auto; width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hero-logo { width: min(66vw, 400px); margin: 0 auto; }
  .hero .statement {
    font-size: clamp(1rem, 4.4vw, 1.4rem); line-height: 1.2; max-width: 22em; margin: 16px auto 0;
  }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(28px, 8vw, 44px); }
  .hero-actions .btn { width: min(62vw, 300px); min-height: 50px; }
  .hero-meta {
    width: 100%; margin-top: auto; padding-top: clamp(40px, 12vw, 80px);
    justify-content: space-between; font-size: clamp(.9375rem, 3.9vw, 1.125rem); gap: 12px 20px;
  }
  .hero-meta .socials img, .hero-meta .mail-link img { width: clamp(24px, 6.4vw, 32px); }

  .hero-visual { display: none; }          /* no cutout or stills on phones */
  .hero-film { opacity: .3; }   /* the reel carries the picture here */
}
@media (max-width: 520px) {
  /* handle + icons on one line, email under it, both centred */
  .hero-meta { flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; }
}


/* ---------- about ---------- */
.about { padding-block: clamp(24px, 3vw, 56px) var(--section-gap); }
.about h2 { font-size: var(--size-display); grid-column: 1 / -1; margin-bottom: clamp(32px, 4vw, 64px); }
.portrait-col { grid-column: 1 / span 5; position: relative; }
.portrait {
  width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #d9d6c7;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.callout {
  position: relative; z-index: 3;
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: clamp(-36px, -2.4vw, -16px); margin-left: min(48%, 210px);
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.04em; line-height: 1;
}
.callout b { font-weight: 700; }
.callout span { padding-top: clamp(28px, 2.6vw, 40px); white-space: nowrap; }
.callout .doodle { width: clamp(84px, 8vw, 120px); height: auto; flex: none; }
@media (max-width: 600px) {
  .callout { margin-left: 20%; }
  .callout .doodle { width: 68px; }
}

.about-text { grid-column: 7 / span 6; display: grid; gap: clamp(40px, 5vw, 72px); align-content: start; }
.about-text > .statement { max-width: 32ch; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.tiles { display: grid; grid-template-columns: repeat(3, 64px); gap: 10px; }
.tiles li:last-child img { transform: scale(1.12); }
.tiles li { width: 64px; height: 64px; }
.tiles img { width: 100%; height: 100%; object-fit: contain; }
.services li { position: relative; padding-left: 18px; margin-bottom: 8px; line-height: 1.25; font-size: 1.0625rem; }
.services li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.contact-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 40px; font-size: clamp(1.0625rem, 1.25vw, 1.375rem); letter-spacing: -0.02em;
}
.handle-group, .mail-link { display: inline-flex; align-items: center; gap: 14px; }
.mail-link { text-decoration: none; }
.mail-link span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.socials { display: flex; gap: 8px; }
.socials a, .mail-link img { display: block; transition: transform var(--press) var(--ease-out); }
.socials img, .mail-link img { width: clamp(30px, 2.4vw, 38px); height: auto; }
.socials a:active, .mail-link:active img { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) {
  .socials a, .mail-link img { transition: transform 220ms var(--ease-out); }
  .socials a:hover, .mail-link:hover img { transform: translateY(-3px); }
}
.socials-block .contact-row { justify-content: flex-start; }
.small-note { margin-top: 14px; font-size: 1rem; }

@media (max-width: 900px) {
  .portrait-col, .about-text { grid-column: 1 / -1; }
  .portrait-col { margin-bottom: 56px; }
  .portrait { width: min(78%, 360px); }
}
@media (max-width: 520px) {
  .about-cols { grid-template-columns: 1fr; }
  .justify { text-align: left; }
}

/* ---------- works ---------- */
.works { padding-block: var(--section-gap) 0; }
.works-intro { align-items: end; row-gap: 32px; padding-bottom: var(--section-gap); }
.works-intro h2 { grid-column: 1 / span 7; font-size: clamp(4rem, 13vw, 14rem); margin-left: -0.04em; }
.works-index { grid-column: 9 / span 4; }
.works-index p { margin-bottom: 20px; }
.works-index li { border-radius: 8px; }
.works-index a {
  display: flex; justify-content: space-between; gap: 16px; padding: 9px 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem); text-decoration: none; letter-spacing: -0.02em;
}
.works-index a .arrow { transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .works-index a:hover .arrow { transform: translateX(6px); }
  .works-index a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 900px) {
  .works-intro h2, .works-index { grid-column: 1 / -1; }
}

.work { padding-bottom: var(--section-gap); scroll-margin-top: 24px; }

.work .note { font-size: var(--size-body-l); line-height: 1.4; max-width: 34ch; }
.work .note + .text-link { margin-top: 18px; }
.text-link {
  display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.02em; text-decoration: none; font-size: 1.0625rem; padding: 6px 0;
}
.text-link .arrow { transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .text-link:hover .arrow { transform: translateX(5px); } }

.media { overflow: hidden; background: var(--surface, rgba(46, 26, 25, .07)); min-width: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .media.zoom:hover img { transform: scale(1.035); } }

/* video slots: the screenshot stays until a link is added in assets/js/videos.js */
.media { position: relative; }
.play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--red);
  -webkit-tap-highlight-color: transparent;
}
.play .disc {
  width: clamp(54px, 6vw, 80px); aspect-ratio: 1; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; transition: transform 200ms var(--ease-out);
}
.play svg { width: 36%; margin-left: 9%; }
.play .via {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; background: rgba(251, 250, 246, .92); color: var(--red);
  font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: -0.01em; pointer-events: none;
}
.play:active .disc { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .play:hover .disc { transform: scale(1.08); }
}
.media video, .media iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain;
}
.media.playing { background: #000; }

/* ---------- video rows: built from assets/js/videos.js by rails.js ---------- */
.work-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 20px 48px; margin-bottom: clamp(24px, 3vw, 44px);
}
.work-head .title { max-width: 19ch; }
.head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 36ch; }
.head-side .text-link { margin-top: -6px; }
.rail-arrows { display: flex; gap: 10px; }
.rail-arrows[hidden] { display: none; }
.arrow-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--chip-bg, #fff); color: var(--chip-fg, var(--red)); display: grid; place-items: center;
  transition: transform var(--press) var(--ease-out), opacity 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.arrow-btn svg { width: 22px; height: 22px; }
.arrow-btn:active:not(:disabled) { transform: scale(.92); }
.arrow-btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .arrow-btn:not(:disabled):hover { transform: translateY(-2px); } }

.rail {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
  scrollbar-width: none; outline-offset: -3px;
}
.rail::-webkit-scrollbar { display: none; }
/* a soft fade on whichever side has more to see */
.rail.more-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent); }
.rail.more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 80px); mask-image: linear-gradient(90deg, transparent, #000 80px); }
.rail.more-left.more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent); }
.rail-track { display: flex; gap: var(--col-gap); width: max-content; align-items: flex-start; }

/* every card in a row is the same size; each section has its own size */
.card { flex: none; width: var(--card-w); display: flex; flex-direction: column; }
.card .media { display: block; aspect-ratio: var(--ar); }
.rail-tall    { --card-w: clamp(200px, 18vw, 330px);  --ar: 9 / 16; }
.rail-wide    { --card-w: clamp(290px, 46vw, 900px); --ar: 16 / 9; }
.rail-wide-sm { --card-w: clamp(260px, 32vw, 600px);  --ar: 16 / 9; }
.rail-cine    { --card-w: clamp(260px, 30vw, 540px);  --ar: 4 / 3; }
.card .frame-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.no-poster { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px 20px 96px; text-align: center; font-size: 1rem; line-height: 1.35; color: var(--text); background: var(--surface); }
.card-title { margin-top: 12px; font-size: 1rem; line-height: 1.3; }
.card .btn { align-self: flex-start; margin-top: 20px; }
@media (hover: hover) and (pointer: fine) { .card .media:hover img { transform: scale(1.035); } }
/* fingers: rows snap card by card */
@media (pointer: coarse) {
  .rail { scroll-snap-type: x mandatory; }
  .card { scroll-snap-align: start; }
}

/* sound toggle under autoplaying cards */
.sound {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  min-height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--chip-bg, #fff); color: var(--chip-fg, var(--red));
  font-family: var(--font-display); font-weight: 700; font-size: .9375rem; letter-spacing: -0.02em;
  transition: transform var(--press) var(--ease-out), background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.sound svg { width: 20px; height: 20px; flex: none; }
.sound:active { transform: scale(.96); }
.sound[aria-pressed="true"] { background: var(--pink); }
@media (hover: hover) and (pointer: fine) { .sound:hover { background: #fff; } }

/* cinematics cards: the numbers */
.stat-big {
  font-family: var(--font-display); font-weight: 700; color: var(--head);
  font-size: clamp(2.75rem, 6vw, 6rem); letter-spacing: -0.05em; line-height: .9; margin-top: 24px;
}
.stat-big small { display: block; font-size: .32em; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); margin-top: 6px; font-weight: 700; }
.stat-rest { font-size: var(--size-body-l); margin-top: 14px; }
.card .btn { align-self: flex-start; margin-top: 20px; }

/* grading: the live comparison */
.w-grade .head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.w-grade .head h3 { max-width: 14ch; }
/* the panel: the picture, then a control bar that reads like a small editor */
.grade { grid-column: 1 / -1; }
.compare {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1c1414;
  border-radius: 18px 18px 0 0; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.compare img, .compare video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare video { opacity: 0; transition: opacity 400ms ease; }
.compare video.ready { opacity: 1; }
.compare .after { clip-path: inset(0 0 0 50%); }

/* the split: a thin line with a grip; left:0 + transform keeps it off the layout path */
.compare .handle { position: absolute; top: 0; bottom: 0; left: 0; width: 0; pointer-events: none; z-index: 3; will-change: transform; }
.compare .handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: rgba(251, 250, 246, .92); }
.compare .knob {
  position: absolute; top: 50%; left: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: var(--cream); color: var(--red); display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform 220ms var(--ease-out);
}
.compare .knob svg { width: 24px; height: 24px; }
.compare.dragging .knob { transform: scale(1.1); }
@media (hover: hover) and (pointer: fine) { .compare:hover .knob { transform: scale(1.06); } .compare.dragging .knob { transform: scale(1.1); } }

/* labels sit in the top corners and fade as their side closes */
.cmp-label {
  position: absolute; top: clamp(12px, 2vw, 20px); z-index: 2; pointer-events: none;
  display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(28, 20, 20, .55); color: var(--cream-text); font-size: .875rem; line-height: 1.2;
  transition: opacity 160ms linear;
}
.cmp-label b { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.cmp-label span { opacity: .78; }
.cmp-label.l { left: clamp(12px, 2vw, 20px); }
.cmp-label.r { right: clamp(12px, 2vw, 20px); }
@media (max-width: 520px) { .cmp-label span { display: none; } }

/* the first-time hint, under the grip; it leaves once the visitor touches anything */
.cmp-hint {
  position: absolute; left: 50%; top: calc(50% + 40px); z-index: 3; transform: translateX(-50%); pointer-events: none;
  padding: 6px 12px; border-radius: 999px; background: rgba(28, 20, 20, .6); color: var(--cream-text);
  font-family: var(--font-display); font-weight: 700; font-size: .8125rem; white-space: nowrap;
  transition: opacity 300ms ease;
}
.grade.touched .cmp-hint { opacity: 0; }

/* the invisible range input covers the picture and carries the drag (and the keyboard) */
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.compare input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 64px; height: 100vh; }
.compare input[type="range"]::-moz-range-thumb { width: 64px; height: 100vh; border: 0; }
.compare:has(input:focus-visible) .knob { outline: 3px solid var(--blue); outline-offset: 4px; }

/* the control bar */
.grade-bar {
  display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px);
  padding: 10px 12px 10px 10px; border-radius: 0 0 18px 18px;
  background: #fff; color: var(--ink); box-shadow: 0 10px 30px -18px rgba(46, 26, 25, .35);
}
.g-play {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--red); color: var(--cream);
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}
.g-play svg { width: 20px; height: 20px; }
.g-play .i-play, .grade.is-paused .g-play .i-pause { display: none; }
.grade.is-paused .g-play .i-play { display: block; }
.g-play:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .g-play:hover { background: var(--red-deep); transform: translateY(-1px); } }
.g-tc, .g-dur { flex: none; font-family: var(--font-display); font-weight: 700; font-size: .875rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.g-dur { color: var(--ink-soft); }
.g-scrub { position: relative; flex: 1 1 auto; min-width: 80px; height: 28px; display: flex; align-items: center; }
.g-track { position: relative; width: 100%; height: 4px; border-radius: 999px; background: var(--red-tint-2); overflow: hidden; }
.g-fill { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.g-seek { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; }
.g-scrub:has(.g-seek:focus-visible) .g-track { outline: 2px solid var(--blue); outline-offset: 4px; }
.grade.no-video .g-play, .grade.no-video .g-tc, .grade.no-video .g-scrub, .grade.no-video .g-dur { display: none; }
.grade.no-video .grade-bar { justify-content: flex-end; }

/* before / split / after: a sliding pill under three words */
.g-modes { position: relative; flex: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--paper); isolation: isolate; }
.g-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); z-index: -1; border-radius: 999px; background: var(--red); transition: transform 380ms var(--ease-in-out); }
.g-modes button {
  border: 0; background: none; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .875rem; letter-spacing: -0.01em; color: var(--ink-soft);
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.g-modes button[aria-pressed="true"] { color: var(--cream); }
.g-modes button:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .g-modes button[aria-pressed="false"]:hover { color: var(--red); } }
@media (max-width: 640px) {
  .grade-bar { flex-wrap: wrap; row-gap: 10px; }
  .g-scrub { order: 3; flex-basis: calc(100% - 140px); }
  .g-modes { order: 5; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .g-pill { transition: none; } }

/* photography (blue): editorial mosaic */
.photography { padding-block: var(--section-gap); }
.photography .head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.photography h2 { font-size: var(--size-title); }
/* the photography wall: the intro stays pinned while two offset columns of
   photos scroll past. rails.js decides which column each photo hangs in. */
.ph-layout { align-items: start; row-gap: clamp(32px, 5vw, 64px); }
.ph-intro { grid-column: 1 / span 3; position: sticky; top: clamp(96px, 10vw, 140px); }
.ph-intro .note { margin-top: clamp(16px, 1.6vw, 24px); max-width: 26ch; }
.gallery {
  grid-column: 4 / -1; display: grid; align-items: start;
  grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 3fr); column-gap: var(--col-gap);
}
.lane { display: flex; flex-direction: column; min-width: 0; }
.lane-a { grid-column: 1; }
.lane-b { grid-column: 3; padding-top: clamp(80px, 14vw, 280px); }
.gallery .ph { position: relative; margin: 0; width: 100%; overflow: hidden; background: rgba(61, 108, 174, .12); }
.gallery .ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the rhythm inside each column: full, narrower to the right, a little narrower to the left */
.lane-a .ph + .ph { margin-top: clamp(40px, 6vw, 120px); }
.lane-a .ph:nth-child(3n+2) { width: 74%; align-self: flex-end; }
.lane-a .ph:nth-child(3n) { width: 88%; }
.lane-b .ph + .ph { margin-top: clamp(56px, 9vw, 180px); }
.lane-b .ph:nth-child(2n) { width: 82%; align-self: flex-end; }
/* hovering one photo quietly steps the others back */
.gallery .ph { transition: opacity 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .gallery:has(.ph:hover) .ph:not(:hover) { opacity: .55; }
}
@media (max-width: 900px) {
  .ph-intro { grid-column: 1 / -1; position: static; }
  .ph-intro .note { max-width: 40ch; }
  .gallery { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .lane-b { grid-column: 2; padding-top: clamp(64px, 18vw, 180px); }
}
/* phones: one column, alternating sizes and sides */
.gallery.single { display: block; }
.gallery.single .lane-b { display: none; }
.gallery.single .ph { width: 100%; align-self: auto; margin-top: 0; }
.gallery.single .ph + .ph { margin-top: clamp(28px, 9vw, 48px); }
.gallery.single .ph:nth-child(4n+2) { width: 72%; align-self: flex-end; }
.gallery.single .ph:nth-child(4n+3) { width: 86%; }
.gallery.single .ph:nth-child(4n) { width: 64%; align-self: flex-end; }
.ph-count { margin-top: 14px; font-size: .9375rem; color: var(--ink-soft); }

/* ---------- contact + rates ---------- */
/* ---------- the call to action: one dominant action (the email), everything else supports it ---------- */
.contact { padding-block: var(--section-gap); }
.cta-head { align-items: center; row-gap: 40px; }
.cta-lead { grid-column: 1 / span 7; }
.contact h2.display { font-size: clamp(3.5rem, 9vw, 9rem); margin-bottom: clamp(20px, 2.4vw, 32px); }
.cta-lead .body-l { max-width: 44ch; }
.cta-phone { grid-column: 8 / span 5; justify-self: end; width: min(100%, 520px); }
.cta-phone a { display: block; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cta-phone a:hover { transform: translateY(-6px) rotate(-1.5deg); } }

.cta-main { margin-top: clamp(48px, 6vw, 96px); }
.cta-mail {
  display: inline-flex; align-items: baseline; gap: .25em; max-width: 100%;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  font-size: clamp(1.75rem, 6.4vw, 6.5rem); color: var(--cream-text); text-decoration: none;
  overflow-wrap: anywhere;
}
.cta-mail-text {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: .06em; transition: background-size 500ms var(--ease-out);
}
.cta-mail .arrow { font-size: .7em; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cta-mail:hover .cta-mail-text { background-size: 0% 2px; background-position: 100% 100%; }
  .cta-mail:hover .arrow { transform: translateX(.15em); }
}
.contact .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }
.btn-ghost { background: rgba(243, 237, 230, .1); color: var(--cream-text); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: rgba(243, 237, 230, .18); } }

.cta-foot { margin-top: clamp(64px, 8vw, 128px); row-gap: 20px; align-items: stretch; }
.cta-rates, .cta-steps {
  background: rgba(243, 237, 230, .06); border-radius: 28px;
  padding: clamp(24px, 3vw, 44px);
}
.cta-rates { grid-column: 9 / span 4; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-rates .title { font-size: clamp(2rem, 3.4vw, 3.25rem); }
.cta-rates .body-l { max-width: 52ch; }
.cta-steps { grid-column: 8 / span 5; }
.cta-steps ol { margin: 0; padding-left: 1.4em; display: grid; gap: 16px; font-size: var(--size-body-l); line-height: 1.4; }
.cta-steps li::marker { font-family: var(--font-display); font-weight: 700; color: var(--red); }
.cta-steps b { color: var(--cream-text); }
@media (max-width: 900px) {
  .cta-lead, .cta-phone, .cta-rates, .cta-steps, .inq { grid-column: 1 / -1; }
  .cta-phone { justify-self: start; width: min(100%, 420px); }
}

/* ---------- footer ---------- */
/* footer on the burgundy: cream type, cream icons */
.closing .site-footer a { color: var(--cream-text); }
.closing .socials img, .closing .mail-link img { filter: brightness(0) invert(1); opacity: .88; }
.closing .footer-small { color: rgba(243, 237, 230, .6); }
.site-footer { padding-top: clamp(32px, 4vw, 64px); padding-bottom: clamp(28px, 3vw, 44px); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; font-size: 1.0625rem; }
.footer-row a { text-underline-offset: 3px; }

.footer-small { margin-top: clamp(28px, 3vw, 44px); font-size: .9375rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Added from the "work with me" page: outcome copy on the rails, the process,
   the FAQ and the inquiry form. (Inside a section --ink holds line colour, so
   text here uses --ink-text.)
   ========================================================================== */
:root { --ink-text: #2E1A19; }

/* rails: what each kind of work does for you */
.work .note b.does { color: var(--red); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 12px; border-radius: 999px; line-height: 1.2;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(217, 72, 62, .18);
  font-size: .875rem; color: var(--ink-soft);
}

/* process: the timeline, in red */
.process.on-red {
  padding-block: var(--section-gap);
  background: linear-gradient(180deg, var(--blue-tint) 0, var(--red-tint) clamp(120px, 14vw, 240px), var(--red-tint-2) 60%, var(--paper) 100%);
}
.process-head { grid-column: 1 / span 10; }
.process .display, .faq .display { font-size: clamp(2.75rem, 5.2vw, 5.75rem); line-height: .95; text-wrap: balance; }
.process-head .body-l { margin-top: clamp(18px, 2vw, 28px); max-width: 44ch; color: var(--ink-soft); }
/* the timeline: a red dot travels from the first step to the last as the page scrolls,
   filling the line behind it and lighting each step as it arrives (driven by main.js) */
.timeline { grid-column: 1 / -1; position: relative; margin-top: clamp(44px, 5vw, 80px); }
.steps {
  position: relative; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--col-gap);
}
/* plain line for when the script isn't running */
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(217, 72, 62, .35); }
.tl-js .steps::before { display: none; }
.tl-track, .tl-dot { display: none; }
.tl-js .tl-track { display: block; position: absolute; left: 0; top: 0; background: rgba(217, 72, 62, .28); border-radius: 2px; pointer-events: none; }
.tl-fill { position: absolute; inset: 0; background: var(--red); border-radius: inherit; transform-origin: 0 0; transform: scaleX(0); will-change: transform; }
.tl-js .tl-dot {
  display: block; position: absolute; left: 0; top: 0; z-index: 2; width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(217, 72, 62, .16), 0 6px 14px -4px rgba(185, 58, 49, .55);
  pointer-events: none; will-change: transform;
}
/* a soft beacon around the moving dot, only while the section is on screen */
.tl-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); opacity: 0;
}
.tl-live .tl-dot::after { animation: tl-beacon 1.8s var(--ease-out) infinite; }
@keyframes tl-beacon { 0% { transform: scale(1); opacity: .35; } 100% { transform: scale(2.6); opacity: 0; } }

.step { position: relative; padding-top: 36px; }
.node {
  position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--red-tint); border: 2px solid var(--red);
  transition: background-color 260ms var(--ease-out);
}
/* the ring that pops once when the dot reaches a step */
.node::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; }
.step.is-on .node { background: var(--red); }
.tl-live .step.is-on .node::after { animation: tl-pop 620ms var(--ease-out) both; }
@keyframes tl-pop { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
.step .tc { font-size: .8125rem; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.step h3 {
  margin: 8px 0 0; font-family: var(--font-display); font-weight: 700; color: var(--ink-text);
  font-size: clamp(1.25rem, 1.45vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.1;
}
.step p { margin-top: 10px; color: var(--ink-soft); line-height: 1.45; }
/* steps the dot hasn't reached yet wait, faded */
.step .tc, .step h3, .step p { transition: opacity 420ms var(--ease-out); }
.tl-js .step:not(.is-on) .tc, .tl-js .step:not(.is-on) h3, .tl-js .step:not(.is-on) p { opacity: .32; }

/* tablets and phones: the timeline runs down the left edge */
@media (max-width: 1100px) {
  .process-head { grid-column: 1 / -1; }
  .timeline { max-width: 680px; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .steps::before { left: 11px; right: auto; top: 8px; bottom: 120px; width: 1px; height: auto; }
  .step { padding: 0 0 clamp(28px, 4vw, 40px) 44px; }
  .step:last-child { padding-bottom: 0; }
  .node { left: 4px; top: 2px; }
  .tl-fill { transform: scaleY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-dot::after, .node::after { animation: none !important; }
  .node, .step .tc, .step h3, .step p { transition: none; }
}

/* faq */
.faq { padding-block: var(--section-gap); }
.faq .grid { row-gap: 36px; }
.faq-head { grid-column: 1 / span 4; align-self: start; position: sticky; top: 120px; }
.faq-head .body-l { margin-top: 20px; color: var(--ink-soft); }
.faq-list { grid-column: 6 / -1; border-bottom: 1px solid rgba(46, 26, 25, .12); }
.qa { border-top: 1px solid rgba(46, 26, 25, .12); }
.qa > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left;
  background: none; border: 0; padding: clamp(18px, 1.6vw, 26px) 0; cursor: pointer; color: var(--ink-text);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1.4vw, 1.5rem); letter-spacing: -0.03em; line-height: 1.2;
}
.qa .pm {
  flex: none; width: 38px; height: 38px; border-radius: 50%; position: relative;
  background: var(--pink); border: 1px solid rgba(217, 72, 62, .2);
  transition: background-color 200ms ease, transform 300ms var(--ease-out);
}
.qa .pm::before, .qa .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; margin: -1px 0 0 -6.5px;
  background: var(--red); border-radius: 2px; transition: transform 300ms var(--ease-out);
}
.qa .pm::after { transform: rotate(90deg); }
.qa > button[aria-expanded="true"] .pm { background: var(--red); transform: rotate(180deg); }
.qa > button[aria-expanded="true"] .pm::before, .qa > button[aria-expanded="true"] .pm::after { background: var(--cream); }
.qa > button[aria-expanded="true"] .pm::after { transform: rotate(0deg); }
.qa > button:active .pm { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .qa > button:hover .pm { background: #fff; }
  .qa > button[aria-expanded="true"]:hover .pm { background: var(--red-deep); }
}
.qa .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.qa .a > div { overflow: hidden; visibility: hidden; transition: visibility 0s 320ms; }
.qa.open .a { grid-template-rows: 1fr; }
.qa.open .a > div { visibility: visible; transition-delay: 0s; }
.qa .a p { padding: 0 60px clamp(20px, 1.8vw, 28px) 0; font-size: var(--size-body-l); line-height: 1.45; color: var(--ink-soft); max-width: 46em; }
.qa .a a { color: var(--red); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .faq-head, .faq-list { grid-column: 1 / -1; position: static; }
}
@media (max-width: 640px) { .qa .a p { padding-right: 0; } }

/* the inquiry form, on the burgundy */
.inq {
  grid-column: 1 / span 8; display: grid; gap: 22px; align-self: start;
  background: rgba(243, 237, 230, .06); border: 1px solid rgba(243, 237, 230, .1); border-radius: 28px;
  padding: clamp(24px, 3vw, 44px);
}
.contact .inq h2.display { font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: 1; margin: 0 0 6px; text-wrap: balance; }
.inq .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.inq label { display: block; font-family: var(--font-display); font-weight: 700; font-size: .9375rem; color: var(--cream-text); margin-bottom: 8px; }
.inq .hint { font-family: var(--font-text); font-weight: 400; opacity: .6; }
.inq input, .inq textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(243, 237, 230, .3); border-radius: 0;
  color: var(--cream-text); font: inherit; font-size: 1.0625rem; padding: 8px 0 10px; transition: border-color 200ms ease;
}
.inq textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.inq input::placeholder, .inq textarea::placeholder { color: rgba(243, 237, 230, .4); }
.inq input:focus, .inq textarea:focus { outline: none; border-bottom-color: var(--cream-text); }
.inq input:focus-visible, .inq textarea:focus-visible { outline: none; box-shadow: 0 2px 0 var(--cream-text); }
.inq .err { color: #FFB4A8; font-size: .9375rem; min-height: 1.2em; margin: -6px 0 0; }
.inq .send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.inq .send p { font-size: .9rem; opacity: .65; max-width: 30ch; }
@media (min-width: 901px) and (max-width: 1100px) { .inq { grid-column: 1 / span 7; } .cta-rates { grid-column: 8 / span 5; } }
/* tablets and phones: the form takes the full width (this must come after the desktop rule above) */
@media (max-width: 900px) { .inq { grid-column: 1 / -1; } }
.inq input, .inq textarea, .inq .two > div { min-width: 0; }
@media (max-width: 640px) {
  .inq .two { grid-template-columns: minmax(0, 1fr); }
  .inq .send .btn { width: 100%; }
  .inq { padding: 24px 20px; }
}

/* ==========================================================================
   Motion layer — only runs when JS has marked the page (content never hides
   if the script fails). Enter: ease-out, rise + fade, staggered.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 10px, 0);
  transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
/* pictures: a fade with a barely-there settle, never a slide */
.js [data-reveal="scale"], .js [data-reveal="media"] { transform: scale(1.012); transform-origin: 50% 50%; transition: opacity 1000ms var(--ease-out), transform 1400ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal="scale"] { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .strip-track { transform: none !important; }
  .media img, .btn .arrow, .text-link .arrow, .works-index a .arrow { transition: none; }
  .btn { transition: background-color 200ms ease, color 200ms ease; }
  .btn:active { transform: none; }
}


/* ==========================================================================
   Theater mode: one video, big, the page dimmed behind it
   ========================================================================== */
.th-btn {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(251, 250, 246, .92); color: var(--red);
  font-family: var(--font-display); font-weight: 700; font-size: .8125rem; letter-spacing: -0.01em;
  transition: opacity 220ms ease, transform 220ms var(--ease-out), background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.th-btn svg { width: 15px; height: 15px; }
.th-btn:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) {
  .th-btn { opacity: 0; transform: translateY(-4px); }
  .media:hover .th-btn, .th-btn:focus-visible { opacity: 1; transform: none; }
  .th-btn:hover { background: #fff; }
  .th-btn:active { transform: scale(.95); }
}
@media (hover: none), (pointer: coarse) {   /* touch: icon only, always there */
  .th-btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .th-btn span { display: none; }
}

.th { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 64px clamp(12px, 3vw, 48px) clamp(20px, 3vw, 44px); }
.th[hidden] { display: none; }
.th-backdrop { position: absolute; inset: 0; background: rgba(16, 7, 8, .9); opacity: 0; transition: opacity 260ms var(--ease-out); }
.th-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(14px, 3vw, 40px);
  opacity: 0; transition: opacity 260ms var(--ease-out);
}
.th-title { margin: 0; color: rgba(243, 237, 230, .82); font-family: var(--font-display); font-weight: 700; font-size: clamp(.9rem, 1.1vw, 1.05rem); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-close {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(243, 237, 230, .12); color: var(--cream-text);
  font-family: var(--font-display); font-weight: 700; font-size: .9375rem;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.th-close svg { width: 16px; height: 16px; }
.th-close:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .th-close:hover { background: rgba(243, 237, 230, .22); } }
.th-close:focus-visible { outline: 3px solid var(--cream-text); outline-offset: 3px; }
.th-frame {
  position: relative; z-index: 1; --ar: 1.7778;
  width: min(100%, calc((100vh - 128px) * var(--ar)), 1680px);
  width: min(100%, calc((100svh - 128px) * var(--ar)), 1680px);
  aspect-ratio: var(--ar); background: #000; border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8);
  opacity: 0; transform: scale(.965); transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out);
}
.th-frame.fill { aspect-ratio: auto; width: min(100%, 1680px); height: calc(100vh - 128px); height: calc(100svh - 128px); }
@media (max-width: 640px) { .th-frame.fill { height: calc(100svh - 96px); border-radius: 6px; } .th { padding-top: 64px; padding-bottom: 16px; } }
.th-frame video, .th-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.th.on .th-backdrop, .th.on .th-top { opacity: 1; }
.th.on .th-frame { opacity: 1; transform: none; }
/* leaving is quicker than arriving */
.th:not(.on) .th-backdrop, .th:not(.on) .th-top, .th:not(.on) .th-frame { transition-duration: 180ms; }
.th-open, .th-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .th-backdrop, .th-top, .th-frame, .th-btn { transition: none; }
  .th-frame { transform: none; }
}
