/* Brand home. Theme tokens for the scroll engine plus this page's own classes.
   The engine's own selectors (.sc-stage, .sc-copy, [data-sc-*]) are left alone,
   except the phone layout of the hero media, which is art direction. */

@font-face {
  font-family: "Libre Franklin";
  src: url("assets/fonts/libre-franklin-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --sc-canvas: #d6d0cc;       /* the studio backdrop of the photographs */
  --sc-surface: #ece8e4;
  --sc-ink: #15161c;
  --sc-ink-soft: #43444e;
  --sc-accent: #2338b0;       /* the kit's blue */
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --sc-font-text: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --legal: #7a1f33;
  --flow: #0f5a3f;
  --sc-maxw: 96rem;
}

body { font-family: var(--sc-font-text); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .6rem .9rem; }

/* ---------- bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .75rem var(--sc-gutter);
  background: var(--sc-canvas);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--sc-ink) 14%, transparent);
}
.bar__name { font-weight: 750; font-size: 1.0625rem; text-decoration: none; letter-spacing: -.01em; padding: .6rem 0; }
.bar__nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.bar__link { text-decoration: none; font-size: .9375rem; font-weight: 550; padding: .7rem 0; }
.bar__link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- buttons, small type ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 3.25rem; padding: .85rem 1.7rem;
  background: var(--sc-accent); color: var(--sc-accent-ink); text-decoration: none;
  font-weight: 700; font-size: 1.0625rem; border-radius: 999px;
  transition: background-color 160ms var(--sc-ease-out), transform 160ms var(--sc-ease-out);
}
.btn:hover { background: #18267f; }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 2.75rem; padding: .6rem 1.2rem; font-size: .9375rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin: 1.9rem 0 0; }
.cta-note { font-weight: 600; font-size: .9375rem; }
.text-link { font-weight: 650; text-underline-offset: 5px; padding: .8rem 0; }
.head { font-weight: 850; text-transform: uppercase; font-size: clamp(2.05rem, 1.1rem + 3.9vw, 4.6rem); line-height: .98; letter-spacing: -.035em; max-width: 12.5ch; }
.head-2 { font-weight: 800; line-height: 1.04; max-width: 18ch; }
.file__copy .sc-body { margin-top: 1.4rem; max-width: 30rem; font-size: 1.125rem; line-height: 1.5; color: var(--sc-ink); }

/* ---------- 1 · the file ---------- */
.file__copy { max-width: min(40rem, 46vw); }
.file__copy h2.head { font-size: clamp(2.05rem, 1rem + 3.4vw, 4.1rem); max-width: 15ch; }
.file__fade { display: none; }
.file__steps {
  position: absolute; z-index: var(--sc-z-copy); right: var(--sc-gutter); bottom: clamp(1.5rem, 5vh, 3rem);
  display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.file__steps li { padding-top: .9rem; border-top: 2px solid currentColor; opacity: .32; }
/* Each label lights while its state is on screen; --sc-p is the act's progress. */
.file__steps .is-1 { color: var(--legal); opacity: clamp(.32, calc(1 - (var(--sc-p, 0) - .2) * 8), 1); }
.file__steps .is-2 { color: var(--sc-accent); opacity: clamp(.32, min(calc((var(--sc-p, 0) - .26) * 8), calc((.7 - var(--sc-p, 0)) * 8)), 1); }
.file__steps .is-3 { color: var(--flow); opacity: clamp(.32, calc((var(--sc-p, 0) - .66) * 8), 1); }

@media (max-width: 860px) {
  /* Phone: the object sits in the top of the screen, the words below it. */
  .file__stage :is(video[data-sc-scrub], .sc-stage__poster) { inset: 3.25rem 0 auto 0; height: 52svh; }
  .file__fade { display: block; position: absolute; inset: calc(3.25rem + 52svh - 5rem) 0 auto 0; height: 5.1rem; z-index: 2;
    background: linear-gradient(to bottom, transparent, var(--sc-canvas)); }
  .file__copy { max-width: none; bottom: 5.75rem; }
  .file__copy .wide { display: none; }
  .file__copy .sc-body { margin-top: .9rem; font-size: 1rem; }
  .cta-row { margin-top: 1.1rem; }
  .file__steps { left: var(--sc-gutter); right: var(--sc-gutter); bottom: 1.1rem; gap: .9rem; font-size: .6875rem; letter-spacing: .05em; }
  .file__steps li { flex: 1; }
  .bar__link { display: none; }
}

/* ---------- reduced-motion stills ---------- */
.stills { display: none; background: var(--sc-canvas); }
.stills__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.stills figure { margin: 0; }
.stills img { width: 100%; height: auto; display: block; }
.stills figcaption { margin-top: .9rem; font-size: 1.0625rem; }
@media (prefers-reduced-motion: reduce) {
  .stills { display: block; }
  .file__steps { display: none; }
  /* No film: one screen with the opening words, then the stills below. */
  .file { height: 100svh !important; }
  .file__copy { display: none; }
  .file__copy--first { display: block; opacity: 1 !important; transform: none !important; }
}

/* ---------- 2 · about ---------- */
.about { background: var(--sc-surface); position: relative; z-index: 2; }
.about__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 56rem) { .about__grid { grid-template-columns: 1.2fr .8fr; } }
.about .sc-body { color: var(--sc-ink); font-size: 1.125rem; max-width: 38rem; }
.about__links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-weight: 650; }
.about__links a { text-underline-offset: 5px; padding: .7rem 0; }
.portrait { margin: 0; }
.portrait__slot {
  aspect-ratio: 4 / 5; max-width: 24rem; margin-inline: auto; display: grid; place-items: center; text-align: center;
  background: var(--sc-canvas); border: 2px dashed color-mix(in oklab, var(--sc-ink) 45%, transparent);
  padding: 2rem; font-size: .9375rem; font-weight: 600; color: var(--sc-ink-soft);
}

/* ---------- 3 · the kit ---------- */
.kit { background: var(--sc-ink); color: #f3f1ee; position: relative; z-index: 2; }
.kit__stage {
  display: grid; align-items: center; gap: clamp(1.5rem, 5vw, 5rem);
  padding: 5rem var(--sc-gutter) 2rem; max-width: 96rem; margin-inline: auto;
}
@media (min-width: 56rem) { .kit__stage { grid-template-columns: .9fr 1.1fr; } }
.kit .sc-body { color: #d9d8de; font-size: 1.125rem; margin-top: 1.25rem; }
.kit .btn { background: #ffe14f; color: #15161c; }
.kit .btn:hover { background: #f4d21f; }
.kit :focus-visible { outline-color: #ffe14f; }
.kit__hint { margin: 1.5rem 0 0; font-size: .9375rem; color: #b8b7c0; }
.fan { position: relative; height: min(62vh, 34rem); --fan: clamp(0, calc(var(--sc-p, 1) * 1.7), 1); }
.fan__page {
  position: absolute; left: 50%; top: 50%; height: 78%; aspect-ratio: 909 / 1287; padding: 0; border: 0; cursor: zoom-in;
  background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .3), 0 22px 44px -18px rgb(0 0 0 / .6);
  transform: translate(calc(-50% + var(--x) * var(--fan)), calc(-50% + var(--y) * var(--fan))) rotate(calc(var(--r) * var(--fan)));
  transition: translate 240ms var(--sc-ease-out);
}
.fan__page--wide { aspect-ratio: 1287 / 909; height: 58%; }
.fan__page img { width: 100%; height: 100%; display: block; }
.fan__page:hover, .fan__page:focus-visible { translate: 0 -1.25rem; }
.fan__page--1 { --x: -13.5rem; --y: .5rem; --r: -8deg; }
.fan__page--2 { --x: -4rem; --y: -1rem; --r: -2deg; }
.fan__page--3 { --x: 5.5rem; --y: -.25rem; --r: 4deg; }
.fan__page--4 { --x: 11rem; --y: 7.5rem; --r: 8deg; }
@media (max-width: 55.99rem) {
  .kit__stage { padding-top: 5.5rem; align-content: center; }
  /* Phone: open the page at reading size and let the reader pan. */
  dialog.reader { width: 100vw; max-width: 100vw; max-height: 100dvh; }
  dialog.reader img { width: 46rem; max-width: none; }
  dialog.reader--wide img { width: 64rem; }
  .kit__hint { margin-top: 1rem; }
  .fan { height: 34svh; }
  .fan__page--1 { --x: -5.5rem; } .fan__page--2 { --x: -1.5rem; } .fan__page--3 { --x: 3rem; } .fan__page--4 { --x: 5.5rem; --y: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .fan { --fan: 1; } .fan__page { transition: none; } }

/* reader */
.reader { border: 0; padding: 0; background: #fff; max-width: min(94vw, 46rem); max-height: 94vh; overflow: auto; overscroll-behavior: contain; }
.reader--wide { max-width: min(96vw, 76rem); }
.reader::backdrop { background: rgb(12 13 18 / .78); }
.reader img { display: block; width: 100%; height: auto; }
.reader__close { position: sticky; top: .75rem; float: right; margin: .75rem; z-index: 1; min-height: 2.75rem; padding: .5rem 1.1rem;
  background: var(--sc-ink); color: #fff; border: 0; border-radius: 999px; font: 700 .9375rem var(--sc-font-text); cursor: pointer; }

/* ---------- 4 · work ---------- */
.work { background: var(--sc-surface); position: relative; z-index: 2; }
.work .sc-body { color: var(--sc-ink); font-size: 1.125rem; max-width: 38rem; }

/* ---------- footer ---------- */
.foot { background: var(--sc-ink); color: #d9d8de; padding: 2.5rem 0 3rem; position: relative; z-index: 2; font-size: .9375rem; }
.foot__row { display: grid; gap: 1.25rem; }
.foot__name { margin: 0; font-weight: 750; color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.foot nav a { padding: .6rem 0; text-underline-offset: 4px; }
.foot__legal { margin: 0; max-width: 46rem; color: #b8b7c0; }
.foot :focus-visible { outline-color: #ffe14f; }
