/* Layout: a cinematic studio site in a cinematic manner. The homepage is a title sequence:
   full-bleed stills crossfade on a fixed layer behind chapters whose text sits at the foot of
   the frame. Phones get one column; from 900px each project chapter puts the work on the left
   (~3/5) and its story on the right. Black ground, white type, magenta (#FF00F4, from the logo) as the one accent.
   Without JavaScript or with reduced motion, every chapter carries its own still instead. */
:root {
  --espresso: #000000;
  --espresso-2: #111111;   /* raised panels */
  --line: #2B2B2B;         /* hairlines on espresso */
  --ivory: #FFFFFF;
  --muted: #C4C4C4;        /* secondary text on black, 11:1 */
  --orchid: #FF00F4;
  --orchid-ink: #000000;   /* text on magenta, 6.6:1 */
  --danger: #FF9C8F;
  --scrim: rgba(0, 0, 0, 0.66);

  --display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;   /* headlines: free stand-in for The Seasons */
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;   /* the caps in the logo, for small labels */
  --script: "Corinthia", "Snell Roundhand", cursive;        /* accent words, echoing the logo script */
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: var(--caps);   /* small tracked labels */

  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  --top-h: 64px;
  --r: 6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--espresso); scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--espresso); color: var(--ivory); font: 400 17px/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.02; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-weight: 500; }
/* Cormorant's web cut has old-style figures only; prices use Cinzel's lining figures */
.num { font-family: var(--caps); font-size: .86em; letter-spacing: .02em; }
h1 .num, h2 .num, h3 .num { font-weight: 400; font-size: .84em; }
h1 em, h2 em, h3 em { font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.7em; white-space: nowrap; line-height: .8; letter-spacing: 0; color: var(--orchid); }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -90px; z-index: 100; background: var(--orchid); color: var(--orchid-ink); padding: 12px 16px; font-weight: 700; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* fine film grain over everything; decorative only */
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.eyebrow { font: 600 13px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--orchid); }
.meta { font: 400 13px/1.4 var(--body); letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }
.chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--orchid); color: var(--orchid); white-space: nowrap; background: rgba(0, 0, 0, 0.4); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; font: 700 16px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn svg { flex: none; }
.btn--primary { background: var(--orchid); color: var(--orchid-ink); }
.btn--primary:hover { background: #FF5CF8; }
.btn--ghost { color: var(--ivory); border-color: rgba(255, 255, 255, 0.55); background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--ivory); }
.btn--small { min-height: 46px; padding: 0 18px; font-size: 15px; }
.btn:active { transform: translateY(1px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link { justify-self: start; color: var(--orchid); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.link:hover { text-decoration-thickness: 2px; }
.chapter__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--espresso); z-index: 51; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.62)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(43, 43, 43, 0.6); }
.top__inner { height: var(--top-h); display: flex; align-items: center; gap: 16px; }
.wordmark { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.wordmark img { height: 54px; width: auto; }
@media (max-width: 899px) { .wordmark img { height: 46px; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 14px; border-radius: 999px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--orchid); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: 999px; background: none; color: var(--ivory); border: 1px solid var(--line); font: 700 15px/1 var(--body); cursor: pointer; gap: 10px; align-items: center; }
.menu-btn__bars { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; position: fixed; left: 0; right: 0; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); background: rgba(0, 0, 0, 0.97); border-bottom: 1px solid var(--line); padding: 8px var(--gr) 24px var(--gl); gap: 0; }
  .nav.open a:not(.btn) { font: 400 32px/1.2 var(--display); padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav.open .btn { margin: 20px 0 0; }
}

/* ---------- title sequence ---------- */
/* fixed stills, shown once site.js adds html.cine; they start below the header so heads stay in frame */
.seq-bg { display: none; position: fixed; inset: calc(var(--top-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: -1; overflow: hidden; background: var(--espresso); }
html.cine .seq-bg { display: block; }
html.cine body.is-home { background: transparent; }
.seq-bg__layer { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 10s ease-out; }
.seq-bg__layer.on { opacity: 1; transform: scale(1); }
.seq-bg__layer img, .chapter__bg img { width: 100%; height: 100%; object-fit: cover; }
.seq-bg__layer--ink, .chapter__bg--ink { background: radial-gradient(70% 60% at 85% 10%, rgba(255, 0, 244, 0.18), rgba(255, 0, 244, 0) 70%), radial-gradient(60% 50% at 0% 100%, rgba(255, 0, 244, 0.16), rgba(0, 0, 0, 0) 70%), var(--espresso); }
.seq-bg::after, .chapter__bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 28%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.95) 100%); }
@media (min-width: 900px) {
  /* wide screens: deepen the left side, where the type sits (not on the portrait scene) */
  .seq-bg__layer:not([data-scene="about"])::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 55%); }
  .chapter:not(.chapter--about) .chapter__bg::after { background:
    linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 28%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.95) 100%); }
  /* portrait scene: head and shoulders on the left, fading into espresso */
  .seq-bg__layer[data-scene="about"], .chapter--about .chapter__bg { background: radial-gradient(60% 70% at 80% 40%, rgba(255, 0, 244, 0.12), rgba(255, 0, 244, 0) 70%), var(--espresso); }
  .seq-bg__layer[data-scene="about"] img, .chapter--about .chapter__bg img { width: 58%; object-position: 50% 12% !important;
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%); mask-image: linear-gradient(to right, #000 55%, transparent 100%); }
}

.chapter { position: relative; isolation: isolate; min-height: calc(100svh - var(--top-h)); display: flex; align-items: flex-end; padding-block: 72px 56px; }
.chapter > .wrap { width: 100%; }
.chapter__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
html.cine .chapter__bg { display: none; }
.chapter__panel { display: grid; gap: 18px; align-content: end; max-width: 620px; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6); }
.chapter__panel--scrim, .chapter__panel--wide { background: var(--scrim); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(43, 43, 43, 0.8); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); text-shadow: none; }
.chapter__panel--wide { max-width: none; }
.chapter h2 { font-size: clamp(2.5rem, 9vw, 4.6rem); }
.chapter p { color: var(--ivory); }

/* opening */
.chapter--open { padding-block: 40px 32px; }
.chapter--open .wrap { display: grid; gap: 40px; }
.chapter__panel--open { max-width: 1020px; gap: 24px; opacity: calc(1 - var(--hp, 0) * 1.1); transform: translateY(calc(var(--hp, 0) * -40px)); }
.chapter--open h1 { font-size: clamp(3.1rem, min(12vw, 11.5vh), 7rem); line-height: 0.92; letter-spacing: -0.02em; }
.chapter--open h1 em { color: var(--orchid); }
.chapter--open .lede { color: var(--ivory); font-size: clamp(1.15rem, 2.4vw, 1.45rem); max-width: 34ch; }
.chapter--open .actions .btn { flex: 1 1 200px; }
@media (min-width: 600px) { .chapter--open .actions .btn { flex: 0 0 auto; } }
.credit { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.credit span { color: var(--orchid); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }

/* work chapters: the site in a frame, the story beside it */
.chapter__grid { display: grid; gap: 32px; }
.chapter__media { position: relative; display: grid; justify-items: center; }
.chapter--work .chapter__media .browser { width: 100%; }
.chapter--feature .chapter__media .browser { display: none; }
.caption { font-size: 1.2rem; max-width: 32ch; }
.card__sub { color: var(--orchid); font: 500 13px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.chapter--work .chapter__panel p:not(.caption) { color: var(--muted); max-width: 46ch; }
@media (min-width: 900px) {
  .chapter__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 72px; }
  .chapter--feature .chapter__media { justify-items: stretch; padding-bottom: 56px; }
  .chapter--feature .chapter__media .browser { display: block; }
  .chapter--feature .chapter__media .phone { position: absolute; right: -28px; bottom: 0; width: 200px; border-radius: 32px; padding: 7px; }
  .chapter--feature .chapter__media .phone img { border-radius: 26px; }
}

/* services */
.services { display: grid; border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 6px; }
.service { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.service h3 { font-size: clamp(1.7rem, 4.6vw, 2.2rem); }
.chapter .service p, .chapter .pricing p { color: var(--muted); max-width: 56ch; }
@media (min-width: 900px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; border-top: 0; }
  .service { border-bottom: 0; border-top: 1px solid var(--orchid); padding-top: 22px; align-content: start; }
}
.pricing { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; padding-top: 6px; }
.pricing strong { font: 500 clamp(1.6rem, 4vw, 2.2rem)/1.2 var(--display); }

/* about: the portrait fills the frame, the note sits in a scrim */
.chapter--about blockquote { margin: 0; font: 400 clamp(1.08rem, 2.4vw, 1.28rem)/1.6 var(--body); max-width: 44ch; }
.about__sign { font: 500 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
  .chapter--about .wrap { display: flex; justify-content: flex-end; }
  .chapter--about .chapter__panel { max-width: 520px; }
}

/* start */
.chapter--start { align-items: center; padding-block: 88px; }

/* ---------- device frames ---------- */
.browser { border-radius: 8px; overflow: hidden; background: #000000; border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #161616; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3A3A; }
.browser__bar span { margin-left: 10px; flex: 1; max-width: 340px; height: 20px; border-radius: 6px; background: #1F1F1F; color: var(--muted); font: 500 11px/20px var(--body); padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone { width: min(78vw, 340px); border-radius: 44px; padding: 10px; background: #000000; border: 1px solid #3A3A3A; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9); }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 34px; }

/* ---------- inquiry ---------- */
.inquiry { display: grid; gap: 40px; }
@media (min-width: 900px) { .inquiry { grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: 64px; align-items: start; } .inquiry__head { position: sticky; top: calc(var(--top-h) + 32px); } }
.inquiry__head { display: grid; gap: 18px; }
.inquiry__head h2 { font-size: clamp(2.3rem, 7vw, 3.8rem); }
.inquiry__head .lede { color: var(--muted); }
.form { display: grid; gap: 22px; background: rgba(17, 17, 17, 0.84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 4vw, 36px); }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 6px; border: 1px solid #444444; background: var(--espresso); color: var(--ivory); font: 500 16px/1.4 var(--body); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8A8A8A; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--orchid); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: 14px; font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid #444444; font-weight: 600; font-size: 15px; }
.pill input:checked + span { background: var(--orchid); color: var(--orchid-ink); border-color: var(--orchid); }
.pill input:focus-visible + span { outline: 2px solid var(--orchid); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: grid; gap: 14px; }
.form__foot .btn { width: 100%; }
@media (min-width: 640px) { .form__foot { grid-template-columns: auto 1fr; align-items: center; } .form__foot .btn { width: auto; } }
.form__fine { font-size: 14px; color: var(--muted) !important; }
.notice { border-radius: var(--r); padding: 22px; display: grid; gap: 10px; background: rgba(17, 17, 17, 0.9); }
.notice h3 { font-size: 1.8rem; }
.notice--ok { border: 1px solid var(--orchid); }
.notice--err { border: 1px solid var(--danger); color: var(--ivory); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--espresso); border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } }
.foot .wordmark { font-size: 20px; }
.foot__list { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--muted); font-size: 15px; }
.foot__list a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot__list a:hover { color: var(--orchid); }
.foot small { color: var(--muted); font: 400 12px/1.4 var(--body); letter-spacing: .06em; }

/* ---------- case study ---------- */
.cs-cover { position: relative; isolation: isolate; min-height: calc(92svh - var(--top-h)); display: flex; align-items: flex-end; padding-block: 72px 48px; }
.cs-cover__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cs-cover__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.cs-cover__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.6) 62%, var(--espresso) 100%); }
.cs-cover__text { width: 100%; display: grid; gap: 20px; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6); }
.cs-cover h1 { font-size: clamp(3.2rem, 13vw, 8rem); line-height: .92; letter-spacing: -0.02em; }
.cs-cover .lede { color: var(--ivory); font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.cs-shot { padding-block: 48px 40px; }
.cs-shot .browser { display: none; }
.cs-shot .phone { margin: 0 auto; }
@media (min-width: 760px) { .cs-shot .browser { display: block; } .cs-shot .phone { display: none; } }
.cs-brief { display: grid; gap: 32px; padding-block: 56px; border-top: 1px solid var(--line); }
.cs-brief p { font: 400 clamp(1.2rem, 2.6vw, 1.45rem)/1.6 var(--body); max-width: 46ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 0; }
.facts div { display: grid; gap: 4px; }
.facts dt { font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (min-width: 900px) { .cs-brief { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; } .facts { grid-template-columns: 1fr; } }
.section { padding-block: 88px; }
.section__head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.section__head h2 { font-size: clamp(2.3rem, 7vw, 3.8rem); }
.steps { display: grid; gap: 72px; }
.step { display: grid; gap: 28px; justify-items: center; }
.step__text { display: grid; gap: 12px; max-width: 46ch; justify-self: stretch; }
.step__num { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--orchid); }
.step h3 { font-size: clamp(1.9rem, 5.5vw, 2.8rem); }
.step p { color: var(--muted); font-size: 1.08rem; }
@media (min-width: 900px) {
  .step { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; justify-items: start; }
  .step:nth-child(even) .phone { order: 2; justify-self: end; }
  .step .phone { justify-self: center; }
}
.decisions { display: grid; gap: 28px; }
@media (min-width: 900px) { .decisions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.decision { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--orchid); }
.decision h3 { font-size: 1.6rem; }
.decision p { color: var(--muted); }
.cta-band { padding-block: 96px; text-align: left; display: grid; gap: 22px; }
.cta-band h2 { font-size: clamp(2.6rem, 9vw, 5rem); max-width: 14ch; }

/* ---------- motion ---------- */
.fx-on .fx { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.fx-on .fx.in { opacity: 1; transform: none; }
.reveal > * { transition: opacity 1s ease, transform 1s ease; }
.fx-on .reveal:not(.in) > * { opacity: 0; transform: translateY(18px); }
.reveal.in > *:nth-child(2) { transition-delay: .1s; }
.reveal.in > *:nth-child(3) { transition-delay: .2s; }
.reveal.in > *:nth-child(4) { transition-delay: .3s; }
.reveal.in > *:nth-child(5) { transition-delay: .4s; }
.reveal.in > *:nth-child(n+6) { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .chapter__panel--open { opacity: 1; transform: none; }
}
/* ?motion=reduce gives the same static version for checking */
html.rm *, html.rm *::before, html.rm *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
html.rm .chapter__panel--open { opacity: 1; transform: none; }

/* opening scene: the abstract render sits right on wide screens; on phones it moves aside and dims so the headline reads */
@media (max-width: 899px) {
  .seq-bg__layer[data-scene="open"] img, .chapter--open .chapter__bg img { opacity: .5; object-position: 85% 50% !important; }
}

/* script accent: keep the phrase together, a touch smaller on narrow phones so it keeps the 16px gutter */
@media (max-width: 420px) { h1 em { font-size: 1.45em; } }

/* about on phones: portrait in the top two thirds with the face clear, the note scrolls up over its fade */
@media (max-width: 899px) {
  .seq-bg__layer[data-scene="about"] img, .chapter--about .chapter__bg img { height: 64%; object-position: 30% 8% !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  .chapter--about .wrap { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .chapter--about .chapter__panel { margin-top: 52svh; }
}

@media (min-width: 1200px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }

/* about portrait at about 75% of its earlier size, softly vignetted into the page */
@media (min-width: 900px) {
  .seq-bg__layer[data-scene="about"] img, .chapter--about .chapter__bg img { position: absolute; left: 7%; bottom: 4%; width: 38%; height: 68%; object-position: 40% 10% !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 10%, #000 84%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 10%, #000 84%, transparent 100%); mask-composite: intersect; }
}
@media (max-width: 899px) {
  .seq-bg__layer[data-scene="about"] img, .chapter--about .chapter__bg img { position: absolute; left: 12.5%; top: 8%; width: 75%; height: 50%; object-position: 40% 10% !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 10%, #000 84%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 10%, #000 84%, transparent 100%); mask-composite: intersect; }
  .chapter--about .chapter__panel { margin-top: 44svh; }
}

/* approach: four numbered steps, then the note */
.ap-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.ap-step { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.ap-step__n { font: 500 13px/1 var(--caps); letter-spacing: .16em; color: var(--orchid); }
.ap-step h3 { font-size: clamp(1.6rem, 4.2vw, 2rem); }
.chapter .ap-step p, .chapter .approach__note p { color: var(--muted); max-width: 56ch; margin: 0; }
.approach__note { display: grid; gap: 12px; padding-top: 28px; }
.approach__title { font-size: clamp(1.9rem, 4.6vw, 2.6rem); font-weight: 300; }
.approach__title em { font-family: inherit; font-size: 1em; font-weight: inherit; line-height: inherit; white-space: normal; color: var(--orchid); }
@media (min-width: 900px) {
  .ap-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; border-top: 0; }
  .ap-step { border-bottom: 0; border-top: 1px solid var(--orchid); padding-top: 22px; align-content: start; }
  .approach__note { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; padding-top: 44px; }
}
@media (min-width: 1200px) { .ap-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }

/* about portrait, final: the whole photo at its own shape, never cropped, always left of the note panel */
@media (min-width: 900px) {
  .seq-bg__layer[data-scene="about"] img, .chapter--about .chapter__bg img {
    left: auto; right: calc(max(0px, (100% - 1240px) / 2) + var(--gr) + 560px); top: 50%; bottom: auto; transform: translateY(-50%);
    width: min(440px, calc(100% - 520px - 16%)); height: auto; aspect-ratio: 970 / 1067; object-fit: cover; object-position: 50% 0% !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 6%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 6%, #000 80%, transparent 100%); }
}
@media (max-width: 899px) {
  .seq-bg__layer[data-scene="about"] img, .chapter--about .chapter__bg img {
    left: 20%; top: 9%; width: 60%; height: auto; aspect-ratio: 970 / 1067; object-fit: cover; object-position: 50% 0% !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 6%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 6%, #000 80%, transparent 100%); }
  .chapter--about .chapter__panel { margin-top: calc(9svh + 62vw); }
}

/* generated: scene focal points */
.bgpos-open{object-position:62% 50%}.bgpos-featured{object-position:50% 0%}.bgpos-p-badass2butterfly{object-position:80% 50%}.bgpos-p-genherational-wealth-lab{object-position:50% 0%}.bgpos-about{object-position:32% 18%}
