:root {
  --cream: #F2ECE3;
  --paper: #F8F4EE;
  --ink: #2A211C;
  --ink-2: #43372F;
  --terracotta: #A3533D;
  --terracotta-deep: #8A4230;
  --teal: #5E8A86;
  --mustard: #C9A23F;
  --gutter: clamp(16px, 4vw, 56px);
  --step-h: 95svh;
  --sheet-h: 0px;
  --steps: 9.2;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }

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

.skip {
  position: fixed; left: var(--gutter); top: 12px; z-index: 30;
  padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--cream); text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

/* Header */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: clamp(14px, 2.2vw, 26px) var(--gutter);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }

.bar__mark {
  font: 500 clamp(1.15rem, .9rem + .6vw, 1.45rem)/1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.bar__mark span { color: var(--terracotta); font-style: italic; }

.bar__cta, .btn {
  font: 500 0.9375rem/1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  color: #FBF6EE;
  background: var(--terracotta-deep);
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgb(42 33 28 / .22), inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 14px -6px rgb(138 66 48 / .5);
  transition: background-color .3s var(--ease-out), box-shadow .2s var(--ease-out);
  display: inline-flex; align-items: center; gap: .5em;
}
.bar__cta:hover, .btn:hover { background: var(--terracotta); animation: squish .42s var(--ease-out); }
.bar__cta:active, .btn:active { box-shadow: inset 0 2px 0 rgb(42 33 28 / .25); transform: translateY(1px); animation: none; }
@keyframes squish { 40% { transform: scale(1.05, .94); } 70% { transform: scale(.98, 1.03); } }

/* Menu */

.bar__end { display: flex; align-items: center; gap: 10px; }
.bar__menu {
  display: grid; place-content: center; gap: 4px;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--paper); box-shadow: inset 0 0 0 1px rgb(42 33 28 / .14), 0 6px 14px -8px rgb(42 33 28 / .35);
}
.bar__menu i { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: translate .25s var(--ease-out), rotate .25s var(--ease-out), opacity .2s; }
.bar__menu[aria-expanded="true"] i:nth-child(1) { translate: 0 5.5px; rotate: 45deg; }
.bar__menu[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.bar__menu[aria-expanded="true"] i:nth-child(3) { translate: 0 -5.5px; rotate: -45deg; }

.menu {
  position: absolute; top: calc(100% - 4px); right: var(--gutter);
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  padding: 10px; border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgb(42 33 28 / .1), 0 18px 40px -18px rgb(42 33 28 / .45);
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.menu li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 8px 14px; border-radius: 12px;
  font: 420 1.25rem/1.1 var(--serif);  color: var(--ink); text-decoration: none;
}
.menu li a::after { content: "→"; font: 500 1rem/1 var(--sans); color: var(--terracotta); opacity: 0; translate: -4px 0; transition: opacity .2s, translate .25s var(--ease-out); }
.menu li a:hover, .menu li a:focus-visible { background: rgb(163 83 61 / .08); }
.menu li a:hover::after, .menu li a:focus-visible::after { opacity: 1; translate: 0 0; }
.menu li a[aria-current="page"] { color: var(--terracotta-deep); }
.menu__mail { margin: 6px 14px 6px; padding-top: 10px; border-top: 1px solid rgb(42 33 28 / .1); font-size: .875rem; color: var(--ink-2); }
.menu__mail a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--terracotta); }

@media (max-width: 520px) {
  .bar__cta { display: none; }
}

/* Pop-ups */

.has-modal { overflow: hidden; }
.sheet {
  width: min(40rem, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; padding: clamp(24px, 4vw, 40px); border: 0; border-radius: 22px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgb(42 33 28 / .6);
  overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgb(42 33 28 / .45); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .35s var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; translate: 0 14px; } }
.sheet__close {
  position: sticky; top: 0; float: right; margin: -8px -8px 0 12px;
  width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--paper); box-shadow: inset 0 0 0 1px rgb(42 33 28 / .14);
  font: 400 1.5rem/1 var(--sans); color: var(--ink);
}
.sheet__title {
  font: 380 clamp(1.9rem, 1.3rem + 2vw, 2.8rem)/1.02 var(--serif); letter-spacing: -0.02em; text-wrap: balance;
  margin: 0 0 12px;
}
.sheet__lead { color: var(--ink-2); font-size: 1.0625rem; max-width: 34rem; margin: 0 0 20px; }

/* Contact form */

.ask { display: grid; gap: 16px; }
.ask[hidden] { display: none; }
.ask__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 16px; }
.ask__field { display: grid; gap: 6px; min-width: 0; }
.ask__field label { font-weight: 500; color: var(--ink); }
.ask input, .ask textarea {
  width: 100%; font: 400 1rem/1.45 var(--sans); color: var(--ink);
  padding: 12px 14px; border: 0; border-radius: 12px;
  background: var(--paper); box-shadow: inset 0 0 0 1px rgb(42 33 28 / .16), inset 0 2px 4px rgb(42 33 28 / .06);
  transition: box-shadow .2s ease;
}
.ask textarea { resize: vertical; min-height: 7rem; }
.ask input::placeholder, .ask textarea::placeholder { color: rgb(67 55 47 / .55); }
.ask input:focus, .ask textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--terracotta); }
.ask [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--terracotta-deep); }
.ask__err { margin: 0; font-size: .875rem; color: var(--terracotta-deep); }
.ask__err:empty { display: none; }
.ask__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.ask__send .btn { border: 0; cursor: pointer; }
.ask__send .btn:disabled { opacity: .7; cursor: progress; animation: none; }
.ask__alt, .ask__legal { margin: 0; color: var(--ink-2); }
.ask__status { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgb(163 83 61 / .1); color: var(--terracotta-deep); font-weight: 500; }
.ask__legal { font-size: .8125rem; }
.ask__legal a, .ask__alt a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--terracotta); }
.ask__captcha { position: absolute; }
.grecaptcha-badge { visibility: hidden; }

.ask-done { outline: none; }
.ask-done__title { font: 380 clamp(1.8rem, 1.2rem + 2vw, 2.6rem)/1.05 var(--serif); margin: 0 0 10px; }
.ask-done__title em { color: var(--terracotta); }
.ask-done p { color: var(--ink-2); }
.ask-done .btn { margin-top: 18px; border: 0; cursor: pointer; }

/* Who you'll hear from */

.contact__people { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 18px; }
.contact__people li { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.contact__people a {
  display: inline-block; padding: 10px 0;
  font-weight: 500; text-decoration: none;
  border-bottom: 1.5px solid rgb(42 33 28 / .18);
  transition: border-color .3s var(--ease-out);
}
.contact__people a:hover { border-color: var(--terracotta); }
.contact__via { color: var(--ink-2); font-weight: 400; }
.contact__about { margin-top: 20px; }
.contact__about a {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font-weight: 500; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--terracotta), var(--terracotta)) 0 calc(100% - 8px) / 100% 1.5px no-repeat;
}
.contact__about span { color: var(--terracotta); transition: translate .35s var(--ease-out); }
.contact__about a:hover span { translate: 4px 0; }

.contact__face {
  --face: 152px;
  position: relative; display: block;
  width: var(--face); aspect-ratio: 1;
  margin: 10px 0 0 10px;
  border-radius: 18px;
  background: var(--paper);
  outline: 1px solid rgb(163 83 61 / .5); outline-offset: 10px;
  box-shadow: 0 1px 0 rgb(255 255 255 / .8), 0 -1px 0 rgb(42 33 28 / .06);
}
.contact__face::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 3px 8px rgb(42 33 28 / .3), inset 0 0 0 1px rgb(42 33 28 / .12);
}
.contact__face img {
  display: block; width: 100%; height: 100%;
  border-radius: inherit;
  filter: sepia(.12) saturate(.9);
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open] { animation: none; }
  .bar__menu i, .menu li a::after { transition: none; }
}

/* Story */

.story { position: relative; }

.js .story { height: calc(100svh + var(--steps) * var(--step-h)); }

.stage {
  position: relative;
}
.js .stage {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
}

.view {
  position: relative;
  aspect-ratio: 1376 / 768;
  overflow: hidden;
  background: var(--cream);
}
.js .view { position: absolute; inset: 0 0 var(--sheet-h) 0; aspect-ratio: auto; }

.view__still, .view__next, .view__gl, .view__layers {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.view__still, .view__next {
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
}
.view__still { object-position: 64% 50%; }
.view__next { opacity: 0; transition: opacity .7s var(--ease-in-out); }
.view__next.is-on { opacity: 1; }
.view__gl { opacity: 0; display: block; }
.view__gl.is-ready { opacity: 1; }

.view__layers { pointer-events: none; }

.view__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgb(242 236 227 / .35), rgb(242 236 227 / 0) 12%);
}
.wash { display: none; }
.js .wash {
  display: block; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(var(--sw) var(--sh) at var(--sx) var(--sy), rgb(242 236 227 / .84), rgb(242 236 227 / .6) 50%, rgb(242 236 227 / 0) 100%);
  opacity: 0;
  transition: opacity .22s ease;
}
.story:has(.step.is-on) .wash { opacity: 1; transition: opacity .7s var(--ease-out) 60ms; }

/* Words */

.steps { display: grid; gap: 64px; padding: 48px var(--gutter); }

.js .steps { display: block; padding: 0; gap: 0; position: absolute; inset: 0; container-type: size; pointer-events: none; }

.js .step {
  position: absolute;
  left: var(--tx, max(var(--gutter), calc(var(--mat) + 30px)));
  top: var(--ty, clamp(96px, 19cqh, 200px));
  width: var(--tw, min(30rem, 36cqw));
  pointer-events: none;
}
.js .step.is-on { pointer-events: auto; }

.step__n {
  display: flex; align-items: center; gap: 12px;
  font: italic 400 1rem/1 var(--serif);
  font-variant-numeric: tabular-nums;
  color: var(--terracotta);
  margin-bottom: 20px;
}
.step__n::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.step__n span { color: #6E645C; }

.step__title {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(2rem, 1.1rem + 2.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1.step__title {
  font-size: var(--h1, clamp(2.6rem, 1rem + 4.4vw, 5.8rem));
  font-weight: 380;
  letter-spacing: -0.018em;
  word-spacing: .06em;
  line-height: .98;
}
h1.step__title em {
  font-style: italic;
  color: var(--terracotta);
}
.w { display: inline-block; }
.w > span { display: inline-block; }

.step__line {
  margin-top: 20px;
  max-width: var(--lw, 30rem);
  font-size: clamp(1.0625rem, 0.9rem + 0.45vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.clients { margin-top: 18px; }
.clients li {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem);
  font-weight: 340;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}
.clients li + li::before { content: none; }

.step__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.step__more {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 44px;
  font-weight: 500; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--terracotta), var(--terracotta)) 0 calc(100% - 8px) / 100% 1.5px no-repeat;
}
.step__more span { color: var(--terracotta); transition: translate .35s var(--ease-out); }
.step__more:hover span { translate: 4px 0; }

/* Word motion */

.js .step > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  filter: blur(6px);
  transition: opacity .22s ease, transform .22s ease, filter .22s ease;
}
.js .step.is-on > * {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), filter .7s var(--ease-out);
}
.js .step.is-on > :nth-child(3) { transition-delay: 60ms; }
.js .rail { display: block; }
.js:not(.is-shown) .step.intro .w > span, .js:not(.is-shown) .step.intro > .step__n, .js:not(.is-shown) .step.intro > .step__line { animation-play-state: paused; }
.js .view { transform-origin: 64% 45%; }
.js.is-shown .view { animation: settle 1.6s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.03); } }
.js .step.intro .w { overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js .step.intro .w > span { animation: mask-rise 1s var(--ease-out) both; animation-delay: calc(120ms + (1 - var(--k)) * 420ms); }
.js .step.intro > .step__n, .js .step.intro > .step__line { animation: fade-up 1s var(--ease-out) .55s both; }
@keyframes mask-rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

.js .step .w { transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.js .step.is-on > :nth-child(4) { transition-delay: 160ms; }
.js .step.is-on > :nth-child(5) { transition-delay: 240ms; }

/* Rail */

.rail {
  display: none;
  position: absolute; right: var(--gutter); top: 50%;
  width: 2px; height: 120px; margin-top: -60px;
  background: rgb(42 33 28 / .12); border-radius: 2px; overflow: hidden;
}
.rail__fill {
  position: absolute; inset: 0;
  background: var(--terracotta);
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
}

/* Contact */

.contact {
  position: relative; z-index: 4;
  margin-top: -50svh;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 40px rgb(42 33 28 / .08);
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: clamp(72px, 12vh, 140px) var(--gutter);
  background: var(--cream);
  outline: none;
}

.contact__title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.4rem, 1rem + 4.6vw, 5.6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-wrap: balance;
}
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 10px; }

.contact__reply { color: var(--ink-2); font-size: 1.1rem; max-width: 36rem; }

.contact__alt { color: var(--ink-2); }
.contact__alt a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--terracotta); }

/* Hero */

.view::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.view__layers { opacity: 0; transition: opacity .4s ease; }
.view__layers.is-ready { opacity: 1; }

/* Phones: picture above, words in a sheet below */

@media ((max-width: 760px) or ((orientation: portrait) and (max-width: 1024px))) and (not ((orientation: landscape) and (max-height: 540px))) {
  :root { --sheet-h: clamp(230px, 31svh, 320px); --step-h: 80svh; }
  .view__still { object-position: 70% 50%; }

  .js .steps {
    position: absolute; top: auto; left: 0; right: 0; bottom: 0;
    height: calc(var(--sheet-h) + 22px);
    background: var(--cream);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 30px rgb(42 33 28 / .08);
  }
  .js .step {
    left: var(--gutter); right: var(--gutter); top: calc(50% + 11px);
    width: auto;
    transform: translateY(-50%);
  }
  .bar { transition: background-color .3s ease, box-shadow .3s ease; }
  .is-scrolled .bar { background: var(--cream); box-shadow: 0 1px 0 rgb(42 33 28 / .08); }
  .step__n { margin-bottom: 12px; }
  .step__title, h1.step__title { font-size: clamp(1.7rem, 1.15rem + 2.6vw, 2.4rem); }
  .step__line { margin-top: 12px; font-size: 1.0625rem; }
  .clients { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 0 .8em; }
  .clients li { font-size: clamp(1.2rem, 1rem + 1.2vw, 1.6rem); }
  .js .step--end .step__line { margin-top: 16px; }

  .view__scrim { background: linear-gradient(to bottom, rgb(242 236 227 / .4), rgb(242 236 227 / 0) 14%); }
  .js .wash { display: none; }

  .rail {
    top: auto; bottom: calc(var(--sheet-h) + 6px); left: var(--gutter); right: var(--gutter);
    width: auto; height: 2px; margin: 0;
    background: rgb(42 33 28 / .1);
  }
  .rail__fill { transform-origin: left; transform: scaleX(var(--progress, 0)); }

  .bar__cta { padding: 10px 14px; font-size: 0.8125rem; min-height: 44px; }
  .contact__face { --face: 128px; }
}

@media (max-width: 359px) {
  .bar { gap: 8px; }
  .bar__mark { font-size: 0.95rem; }
  .bar__cta { padding: 9px 11px; font-size: 0.75rem; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .step > *, .js .step.is-on > * { transform: none; filter: none; transition: opacity .2s linear; }
  .view__next { transition: opacity .2s linear; }
}

.morph { position: absolute; opacity: 0; transform-origin: 0 0; will-change: opacity; }
.morph.is-inset {
  mask: linear-gradient(90deg, #0000, #000 3.5%, #000 96.5%, #0000), linear-gradient(#0000, #000 3.5%, #000 96.5%, #0000);
  mask-composite: intersect;
}
.morph > * { position: absolute; display: block; }
.morph__bg { inset: 0; width: 100%; height: 100%; }
.hover { position: absolute; display: block; object-fit: fill; opacity: 0; pointer-events: none; }
.hover, .morph canvas {
  mask: linear-gradient(90deg, #0000, #000 3%, #000 97%, #0000), linear-gradient(#0000, #000 3%, #000 97%, #0000);
  mask-composite: intersect;
}
.hover.is-on { opacity: 1; }
.is-hot { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='8' fill='rgb(242 236 227 / .25)' stroke='%23A3533D' stroke-width='1.5'/%3E%3C/svg%3E") 12 12, auto; }
.view__layers { transform-origin: 64% 45%; }

.eye { position: absolute; z-index: 1; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.eye.is-on { opacity: 1; }
.eye.is-covered { visibility: hidden; }
.eye img { position: absolute; inset: 0; width: 100%; height: 100%; }
.eye__bead { transition: transform .12s steps(2); }
.eye.is-blink .eye__bead { animation: blink .18s steps(2) 1; }
@keyframes blink { 50% { scale: 1 .12; } }

.step--end .step__line { margin-top: 26px; }

/* Rest: mounted card, glows */

:root { --mat: clamp(18px, 3.4vw, 52px); --mat-t: clamp(64px, 6vw, 88px); --mat-r: 16px; }

.mat { display: none; }
.js .mat {
  display: block; position: absolute; pointer-events: none;
  inset: var(--mat-t) var(--mat) calc(var(--sheet-h) + var(--mat-b, var(--mat)));
  border-radius: var(--mat-r);
  box-shadow: inset 0 3px 8px rgb(42 33 28 / .3), inset 0 0 0 1px rgb(42 33 28 / .12), 0 1px 0 rgb(255 255 255 / .8), 0 -1px 0 rgb(42 33 28 / .06);
  outline: 1px solid rgb(163 83 61 / .5); outline-offset: 10px;
  opacity: 0; transition: opacity .25s ease;
}
.is-rest .mat { opacity: 1; transition: opacity .4s ease .2s; }

.js .view {
  clip-path: inset(0px 0px round 0px);
  transition: scale .35s var(--ease-in-out), translate .35s var(--ease-in-out), clip-path .35s var(--ease-in-out);
}
.is-rest .view {
  scale: var(--rs, 1); translate: var(--rx, 0) var(--ry, 0); clip-path: var(--clip);
  transition-duration: .45s; transition-timing-function: var(--ease-out);
}

.cue { display: none; }
.js .cue {
  display: flex; align-items: center; gap: 9px;
  position: absolute; left: 50%; bottom: calc(var(--sheet-h) + var(--mat-b, var(--mat)) + 14px); translate: -50% 0;
  padding: 8px 14px 8px 16px; border-radius: 999px;
  background: rgb(248 244 238 / .9); box-shadow: 0 6px 16px -8px rgb(42 33 28 / .4);
  font: 500 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s .2s;
}
.js .cue::before { content: ""; position: absolute; inset: -10px -12px; }
.js .cue:hover { background: var(--cream); }
.js .cue:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.js .cue i { width: 7px; height: 7px; border: solid var(--terracotta); border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -2px; }
.is-rest .cue { pointer-events: auto; visibility: visible; opacity: 1; transition: opacity .6s ease 1.6s, visibility 0s 1.6s; }
.is-rest .cue i { animation: nudge 1.1s ease-in-out 2s 2; }
@keyframes nudge { 50% { translate: 0 3px; } }

.step__n::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta);
  scale: 0; transition: scale .3s ease;
}
.is-rest .step.is-on .step__n::after { scale: 1; transition: scale .6s var(--ease-out) .3s; }
.is-rest .step.is-on .step__n::before { opacity: 1; }

@property --lit { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --breath { syntax: "<number>"; inherits: true; initial-value: 1; }
.glows { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; transition: --lit .5s var(--ease-out); }
.glow::before, .glow::after {
  content: ""; position: absolute; inset: var(--glow-pad, -14%); border-radius: 50%;
  opacity: calc(var(--lit) * var(--breath));
}
.glow::before {
  background: radial-gradient(closest-side, rgb(255 200 140 / .45), rgb(255 200 140 / .22) 55%, rgb(255 200 140 / 0));
  mix-blend-mode: color-dodge;
}
.glow::after {
  background: radial-gradient(closest-side, rgb(255 214 150 / 0) 72%, rgb(255 214 150 / .5) 88%, rgb(255 214 150 / 0));
}
.glow.is-on { --lit: .7; animation: breathe 3.6s ease-in-out .4s; }
.glow.is-on.is-near { --lit: 1; }
.glow.is-on.is-seen { --lit: .15; }
@keyframes breathe { 25% { --breath: 1.45; } 50% { --breath: .75; } 75% { --breath: 1.45; } }

@media ((max-width: 760px) or ((orientation: portrait) and (max-width: 1024px))) and (not ((orientation: landscape) and (max-height: 540px))) {
  :root { --mat: 16px; --mat-t: 76px; --mat-b: calc(22px + var(--mat)); --mat-r: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .view { scale: var(--rs, 1); translate: var(--rx, 0) var(--ry, 0); clip-path: var(--clip); transition: none; }
  .js .mat { opacity: 1; transition: none; }
  .js .cue i { animation: none; }
}

/* Loading */

.loader { display: none; }
.js .loader {
  display: grid; place-content: center; justify-items: center; gap: 22px;
  position: fixed; inset: 0; z-index: 40;
  background: var(--cream);
  transition: opacity .6s var(--ease-out), visibility 0s .6s;
}
.js.is-loaded .loader { opacity: 0; visibility: hidden; }
.js:not(.is-loaded) { overflow: hidden; }
.loader__mark { font: 500 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1 var(--serif); color: var(--ink); }
.loader__mark span { color: var(--terracotta); font-style: italic; }
.loader__bar { width: 168px; height: 2px; border-radius: 2px; background: rgb(42 33 28 / .12); overflow: hidden; }
.loader__bar::before {
  content: ""; display: block; height: 100%;
  background: var(--terracotta);
  transform-origin: left; transform: scaleX(var(--p, 0));
  transition: transform .3s ease-out;
}

.wait { display: none; }
.js .wait {
  display: flex; align-items: center; gap: 10px;
  position: absolute; left: 50%; bottom: calc(var(--sheet-h) + var(--mat-b, var(--mat)) + 14px); translate: -50% 0;
  padding: 8px 16px; border-radius: 999px;
  background: rgb(248 244 238 / .9); box-shadow: 0 6px 16px -8px rgb(42 33 28 / .4);
  font: 500 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.js .wait i { width: 32px; height: 2px; border-radius: 2px; background: rgb(42 33 28 / .14); overflow: hidden; }
.js .wait i::before {
  content: ""; display: block; height: 100%;
  background: var(--terracotta);
  transform-origin: left; transform: scaleX(var(--p, 0));
  transition: transform .3s ease-out;
}
.is-waiting .wait { opacity: 1; transition: opacity .3s ease .25s; }
.is-rest.is-waiting .cue { pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s .2s; }

/* Phones on their side: the whole picture, edge to edge */

@media (orientation: landscape) and (max-height: 540px) {
  :root { --mat: 0px; --mat-t: 0px; --step-h: 110svh; }
  .js .mat { display: none; }
  .is-rest .view { scale: none; translate: none; clip-path: none; }
  .js .stage { height: 100dvh; }
  .js .steps {
    inset: auto; left: 50%; top: 50%; translate: -50% -50%;
    width: min(100%, calc(100dvh * 1376 / 768)); height: min(100%, calc(100vw * 768 / 1376));
  }
  .js .step { left: var(--tx, 4cqw); top: var(--ty, 14cqh); width: var(--tw-flat, var(--tw, 36cqw)); }
  .step__n { margin-bottom: 8px; font-size: .75rem; gap: 8px; }
  .step__n::before { width: 18px; }
  .step__title { font-size: clamp(1rem, 6.4cqh, 1.7rem); }
  h1.step__title { font-size: clamp(1.4rem, 9.5cqh, 2.6rem); }
  .step__line { margin-top: 8px; font-size: clamp(.72rem, 3.5cqh, 1rem); line-height: 1.4; }
  .clients { margin-top: 6px; }
  .clients li { font-size: clamp(.95rem, 5.6cqh, 1.6rem); }
  .step--end .step__line { margin-top: 12px; }
  .step__links { gap: 6px 16px; }
  .step__links .btn { padding: 9px 14px; font-size: .8rem; }
  .js .step--below .step__links { position: absolute; top: 62cqh; left: 0; width: max-content; margin: 0; }
  .step__more { min-height: 36px; font-size: .85rem; }
  .bar { padding: 8px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); }
  .bar__mark { font-size: 1rem; }
  .bar__cta { padding: 8px 12px; font-size: .75rem; }
  .js .cue, .js .wait { bottom: 10px; padding: 6px 12px; font-size: .65rem; }
  .contact { padding-block: 48px; gap: 14px; }
  .contact__title { font-size: clamp(1.8rem, 1rem + 4vh, 2.6rem); }
  .contact__people { margin-top: 6px; }
  .contact__face { --face: 96px; }
}

/* Phones and tablets held upright: ask for landscape */

.turn { display: none; }
@media (orientation: portrait) and (pointer: coarse) and (max-width: 1024px) {
  .js { overflow: hidden; }
  .js .turn {
    display: grid; place-content: center; justify-items: center; gap: 12px;
    position: fixed; inset: 0; z-index: 50;
    padding: var(--gutter); text-align: center;
    background: var(--cream);
  }
}
.turn__phone {
  width: 48px; height: 80px; margin-bottom: 18px;
  fill: none; stroke: var(--terracotta); stroke-width: 2.5; stroke-linecap: round;
  animation: turn 1.1s var(--ease-in-out) .5s both;
}
@keyframes turn { to { rotate: -90deg; } }
.turn__title {
  font: 420 clamp(1.7rem, 1.2rem + 2.4vw, 2.4rem)/1.05 var(--serif);
  letter-spacing: -0.02em; text-wrap: balance;
}
.turn__line { color: var(--ink-2); font-size: 1.0625rem; }
.turn__more { margin-top: 22px; max-width: 26ch; color: var(--ink-2); font-size: .9375rem; text-wrap: balance; }
.turn__links { list-style: none; margin: 0; padding: 0; display: grid; justify-items: center; }
.turn__links a {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font: 420 1.25rem/1 var(--serif); color: var(--ink); text-decoration: none;
}
.turn__links a span { color: var(--terracotta); transition: translate .35s var(--ease-out); }
.turn__links a:hover span { translate: 4px 0; }
@media (prefers-reduced-motion: reduce) { .turn__phone { animation: none; rotate: -90deg; } }

