/* Ownstand — flagship site.
   One message, one set piece (the rebuild), one payoff (the door).
   Base CSS is the finished, static, readable state. Everything under
   `.motion` is choreography, applied only when JS runs and the visitor
   has not asked for reduced motion. */

:root {
  --green: #1f4535;
  --green-deep: #12291f;
  --green-ink: #0d1f17;
  --ivory: #f6f2ea;
  --bone: #ebe4d7;
  --stone: #6b645a;
  --stone-light: #b7ad9d;
  --ink: #17211b;
  --lamp: #e2a93b;
  --on-dark: #b9c7be;

  --logo: "Young Serif", "Fraunces", Georgia, serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  /* one type scale */
  --t-xl: clamp(3rem, .5rem + 9.6vw, 11.75rem);
  --t-h: clamp(2.5rem, 1rem + 4.6vw, 5.75rem);
  --t-h3: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  --t-lede: clamp(1.125rem, 1rem + .45vw, 1.375rem);

  /* one spacing rule, one gutter rule */
  --s: clamp(96px, 6vw + 64px, 176px);
  --g: clamp(20px, 5vw, 80px);
  --max: 1440px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --hd-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ivory);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* paper grain: one static fixed layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--ivory); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
[data-theme="dark"] :focus-visible { outline-color: var(--lamp); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: var(--g); top: 12px; z-index: 200;
  padding: 12px 18px;
  background: var(--green); color: var(--ivory);
  font: 500 .875rem/1 var(--sans);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--g); }

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  font-weight: 460;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  letter-spacing: -.035em;
  line-height: .95;
  text-wrap: balance;
}
/* italics are rationed: they mark the promise word, never decorate */
.display em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.meta {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.lede { font-size: var(--t-lede); line-height: 1.45; max-width: 40ch; text-wrap: pretty; }
.muted { color: var(--stone); }
[data-theme="dark"] .muted { color: var(--on-dark); }
.h-section { margin: 0; font-size: var(--t-h); }

.mask-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.mask-line > span { display: block; }

/* ---------- one interaction language ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  min-height: 56px;
  padding: 0 28px;
  background: var(--green);
  color: var(--ivory);
  font: 500 1rem/1 var(--sans);
  letter-spacing: -.005em;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .09s;
}
.btn::before {
  /* the arch rises to fill the button */
  content: "";
  position: absolute;
  inset: 0 -10%;
  z-index: -1;
  background: var(--green-ink);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateY(101%);
  transition: transform .35s var(--ease-out), border-radius .35s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; border-radius: 0; transition-duration: .25s; }
.btn:active { transform: scale(.97); }
.btn__arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(4px); transition-duration: .25s; }
.btn--light { background: var(--ivory); color: var(--green-deep); }
.btn--light::before { background: var(--lamp); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
/* secondary: the page has one solid "Start a project" in view at a time */
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; transition: transform .09s, color .25s; }
.btn--ghost::before { background: var(--green); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ivory); }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font: 500 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.link::after, .hd__nav a::after, .ft ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(0); }
.link__arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.link:hover .link__arrow, .link:focus-visible .link__arrow { transform: translate(4px, 0); }
.link:hover .link__arrow:is([data-dir="down"]) { transform: translateY(3px); }

/* ---------- header ---------- */

.hd {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--hd-h);
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 max(var(--g), calc((100% - var(--max)) / 2 + var(--g)));
  color: var(--green);
  transition: color .4s, transform .5s var(--ease-io), opacity .4s;
}
.hd::before {
  /* past the hero the bar gets a ground of its own, so it never sits on content */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 242, 234, .97);
  box-shadow: 0 1px 0 rgba(23, 33, 27, .1);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  opacity: 0;
  transition: opacity .2s, background .4s;
}
html.hd-solid .hd::before { opacity: 1; }
html[data-hdr="dark"] .hd { color: var(--ivory); }
html[data-hdr="dark"] .hd::before { background: rgba(18, 41, 31, .97); box-shadow: 0 1px 0 rgba(246, 242, 234, .08); }
html.is-final .hd { transform: translateY(-110%); opacity: 0; }
html.hd-hide .hd { transform: translateY(-110%); }
html .hd:focus-within { transform: none; opacity: 1; }

.hd__brand { display: inline-flex; align-items: center; gap: 13px; margin-right: auto; min-height: 44px; text-decoration: none; }
.hd__mark { width: 24px; height: auto; fill: currentColor; }
.hd__word { font: 400 1.3125rem/1 var(--logo); transform: translateY(-1px); }
.hd__nav { display: flex; gap: 32px; }
.hd__nav a { position: relative; padding: 14px 0; font: 400 .9375rem/1 var(--sans); text-decoration: none; }
.hd__nav a::after { transform: scaleX(0); transform-origin: left; }
.hd__nav a:hover::after, .hd__nav a:focus-visible::after { transform: scaleX(1); }
html[data-hdr="dark"] .hd__cta::before { background: var(--ivory); }
html[data-hdr="dark"] .hd__cta:hover, html[data-hdr="dark"] .hd__cta:focus-visible { color: var(--green-deep); }
.hd__menu {
  display: none;
  min-width: 44px; min-height: 44px;
  padding: 0;
  background: none; border: 0;
  cursor: pointer;
  font: 500 .9375rem/1 var(--sans);
}

/* mobile menu sheet: an inverted arch that drops from the top */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: calc(var(--hd-h) + 24px) var(--g) 32px;
  background: var(--green);
  color: var(--ivory);
  clip-path: inset(0 0 100% 0 round 0 0 50% 50%);
  visibility: hidden;
  transition: clip-path .45s var(--ease-io), visibility 0s .45s;
}
.sheet.is-open { clip-path: inset(0 0 0 0 round 0); visibility: visible; transition: clip-path .45s var(--ease-io), visibility 0s; }
.sheet__close {
  position: absolute; top: 14px; right: var(--g);
  min-height: 44px;
  background: none; border: 0;
  color: inherit;
  font: 500 .9375rem/1 var(--sans);
  cursor: pointer;
}
.sheet__nav { display: flex; flex-direction: column; gap: 4px; }
.sheet__nav a {
  padding: 4px 0;
  font: 460 clamp(2.5rem, 12vw, 4rem)/1.05 var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -.03em;
  text-decoration: none;
}
.sheet__foot { margin-top: auto; display: grid; gap: 18px; }

/* ---------- 1. hero ---------- */

.hero { position: relative; background: var(--ivory); overflow: hidden; }
.hero__inner {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: "." "title" "bottom" ".";
  column-gap: clamp(32px, 4.5vw, 80px);
  row-gap: clamp(28px, 4vh, 44px);
  padding-top: calc(var(--hd-h) + 24px);
}
.hero__title { grid-column: 1; grid-row: 2; margin: 0; color: var(--green); font-size: clamp(3rem, .5rem + 5.4vw, 6.25rem); line-height: .92; }
.hero__title .mask-line + .mask-line { margin-top: .02em; }
.hero__bottom { grid-column: 1; grid-row: 3; display: grid; gap: 28px; padding-bottom: clamp(28px, 6vh, 64px); }
.hero__bottom .lede { margin: 0; }
.hero__ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* the work, whole: a deck of complete sites, the front one in full view */
.hero__deck { grid-column: 2; grid-row: 1 / -1; align-self: center; position: relative; margin: 0; padding: 56px 40px 0 0; }
.deck { position: relative; }
.deck::before { content: ""; display: block; padding-top: calc(62.5% + 30px); }
.deck__card {
  position: absolute;
  inset: 0 0 auto 0;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 0 rgba(0, 0, 0, .03), 0 40px 70px -30px rgba(18, 41, 31, .45);
  transform-origin: 50% 100%;
  transition: transform .85s var(--ease-out), opacity .6s ease, filter .6s;
}
.deck__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #ebe7df; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.deck__bar > i { width: 9px; height: 9px; border-radius: 50%; background: #d3cdc2; }
.deck__tab { margin-left: 10px; padding: 3px 12px; border-radius: 6px 6px 0 0; background: #f8f6f1; font: 500 11px/1.2 var(--sans); color: var(--stone); white-space: nowrap; }
.deck__card .fit { display: block; aspect-ratio: 1200 / 750; }
.deck__tab { transition: opacity .4s; }
.deck__card:not([data-pos="p0"]) .deck__tab { opacity: 0; }
.deck__card[data-pos="p0"] { z-index: 5; transform: none; opacity: 1; }
.deck__card[data-pos="p1"] { z-index: 4; transform: translate(20px, -24px) scale(.95) rotate(1.6deg); opacity: .95; filter: brightness(.97); }
.deck__card[data-pos="p2"] { z-index: 3; transform: translate(40px, -46px) scale(.9) rotate(3.2deg); opacity: .75; filter: brightness(.94); }
.deck__card[data-pos="hide"] { z-index: 2; transform: translate(52px, -60px) scale(.86) rotate(4deg); opacity: 0; }
.deck__card[data-pos="exit"] { z-index: 6; transform: translate(-90px, 40px) rotate(-7deg) scale(1.02); opacity: 0; pointer-events: none; transition: transform .75s var(--ease-io), opacity .5s ease; }
.deck__card[data-pos="p0"]:hover { transform: translateY(-4px); }
.hero__deck .hero__cap { position: static; transform: none; margin: 26px 0 0; }
.hero__cap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 16px;
  border-radius: 999px;
  background: rgba(246, 242, 234, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px -10px rgba(13, 31, 23, .45);
  white-space: nowrap;
  font: 500 .8125rem/1 var(--sans);
  color: var(--ink);
}
.hero__dots { display: inline-flex; gap: 5px; }
.hero__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(23, 33, 27, .25); transition: background .3s, width .3s; }
.hero__dots i.is-on { width: 16px; border-radius: 3px; background: var(--green); }

/* ---------- mini-site canvas (rendered by JS) ---------- */

.fit { position: relative; overflow: hidden; background: var(--bone); }
.site {
  position: absolute;
  left: 0; top: 0;
  width: 1200px;
  height: 750px;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--bf, var(--sans));
  transform-origin: 0 0;
  transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(var(--fit, .4));
  -webkit-font-smoothing: antialiased;
}
.site * { box-sizing: border-box; }
.s-abs { position: absolute; }
.s-nav { position: absolute; left: 56px; right: 56px; top: 34px; z-index: 3; display: flex; align-items: center; gap: 30px; font-size: 15px; }
.s-logo, .s-h {
  font-family: var(--df);
  font-weight: var(--dw);
  font-style: var(--ds);
  font-variation-settings: var(--dv);
  font-stretch: var(--dwd, 100%);
  text-transform: var(--dt);
  letter-spacing: var(--dl);
}
.s-logo { margin-right: auto; font-size: 25px; line-height: 1; }
.s-links { display: flex; gap: 28px; opacity: .78; }
.s-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  background: var(--ac); color: var(--acf);
  font-size: 15px; font-weight: 500;
  border-radius: var(--br, 0);
  white-space: nowrap;
}
.s-btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px currentColor; }
.s-h { margin: 0; line-height: var(--dh); font-size: var(--dz); }
.s-sub { margin: 0; font-size: 19px; line-height: 1.45; color: var(--mu); }
.s-k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mu); }
.s-art { position: absolute; overflow: hidden; }
.s-art svg { width: 100%; height: 100%; }
.s-items {
  position: absolute;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  font-size: 14px;
}
.s-items b { display: block; margin-bottom: 4px; font-weight: 500; font-size: 15px; color: var(--fg); }
.s-items span { display: block; color: var(--mu); line-height: 1.4; }

/* ---------- 2. the rebuild ---------- */

.xform { position: relative; background: var(--ivory); padding: var(--s) 0; }
.xform__stage { display: grid; gap: 32px; }
.xform__title { display: grid; margin: 0; max-width: 18ch; color: var(--green); font-size: var(--t-h); }
.xform__t { grid-area: 1 / 1; }
.xform__t--b { display: none; }
.xform__frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.xform__frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 0 rgba(0, 0, 0, .04), 0 30px 60px -20px rgba(18, 41, 31, .28);
}
/* a browser bar: the address is the point. Template subdomain → their own name */
.xform__chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #ebe7df;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.xform__chrome > i { width: 9px; height: 9px; border-radius: 50%; background: #d3cdc2; }
.xform__url {
  position: absolute;
  left: 50%; top: 6px;
  transform: translateX(-50%);
  display: grid;
  min-width: min(60%, 320px);
  height: 18px;
  padding: 0 12px;
  border-radius: 9px;
  background: #f8f6f1;
  font: 400 11px/18px var(--mono);
  color: #6b645a;
  text-align: center;
  white-space: nowrap;
}
.xform__url > span { grid-area: 1 / 1; transition: opacity .4s, transform .5s var(--ease-out); }
.xform__url .u-new { color: var(--green); font-weight: 500; }
.is-old .u-new, .is-new .u-old { opacity: 0; }
.xform__view { position: relative; aspect-ratio: 1200 / 750; overflow: hidden; }
.xform__layer { position: absolute; inset: 0; }
.xform__label { position: absolute; left: 12px; bottom: 12px; z-index: 5; padding: 6px 10px; background: var(--ivory); color: var(--ink); }
.xform__side { display: grid; gap: 32px; }
.xform__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
html.motion .xform__steps { grid-template-columns: 1fr; gap: 18px; }
.xform__step { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid rgba(23, 33, 27, .18); }
.xform__step .meta { color: var(--stone); }
.xform__step p { margin: 0; max-width: 34ch; font-size: 1rem; line-height: 1.45; }
.xform__end { margin: 0; max-width: 20ch; font: 460 var(--t-h3)/1.1 var(--display); letter-spacing: -.02em; color: var(--green); text-wrap: balance; }
.xform__note { margin: 0; max-width: 48ch; color: var(--stone); }

/* both canvases share the frame */
.xform__canvas {
  position: absolute;
  left: 0; top: 0;
  width: 1200px; height: 750px;
  transform-origin: 0 0;
  transform: scale(var(--fit, .4)) translateY(calc(var(--gy, 0) * -1px));
}
.xform__canvas--tall { height: 2250px; }
.xform__layer.old, .old--top { bottom: auto; height: 750px; }

/* before: a believable DIY template page (generic, no platform branding) */
.wix { background: #fff; color: #333; font-family: "Open Sans", Arial, sans-serif; overflow: hidden; }
.o { position: absolute; margin: 0; }
.wix svg { display: block; }
.w-topbar {
  left: 0; top: 0; width: 1200px; height: 34px;
  padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: #0b3259; color: #cfd9e4;
  font: 600 12px/1 "Open Sans", Arial, sans-serif;
}
.w-header { left: 0; top: 34px; width: 1200px; height: 76px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.w-logo { left: 40px; top: 50px; display: flex; align-items: center; gap: 10px; }
.w-logo svg { width: 34px; height: 34px; }
.w-logo b { display: block; font: 800 22px/1 Montserrat, Arial, sans-serif; letter-spacing: .5px; color: #0b3259; }
.w-logo small { display: block; margin-top: 5px; font: 400 11px/1 "Open Sans", Arial, sans-serif; color: #7a8794; }
.w-nav { left: 470px; top: 64px; display: flex; gap: 26px; font: 600 13px/1 Montserrat, Arial, sans-serif; color: #333; }
.w-nav .is-on { color: #f26b21; text-decoration: underline 2px; text-underline-offset: 7px; }
.w-hphone {
  left: 930px; top: 52px; width: 230px; height: 40px;
  border-radius: 999px;
  background: #f26b21; color: #fff;
  font: 700 15px/40px Montserrat, Arial, sans-serif;
  text-align: center;
}
.w-photo { position: absolute; left: 0; top: 110px; width: 1200px; height: 400px; overflow: hidden; }
.w-photo__scene {
  position: absolute; inset: -10px;
  background:
    radial-gradient(ellipse at 22% 30%, rgba(255, 250, 235, .7), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 44px),
    linear-gradient(160deg, #d7dee3 0%, #a9b6bf 55%, #6f7d88 100%);
  filter: blur(2px) saturate(.75) contrast(.95);
}
.w-photo__scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-photo__shade { position: absolute; inset: 0; background: linear-gradient(rgba(8, 22, 38, .62), rgba(8, 22, 38, .5)); }
.w-eyebrow { left: 150px; top: 166px; width: 900px; text-align: center; font: 600 14px/1 "Open Sans", Arial, sans-serif; letter-spacing: 3px; color: #f26b21; }
.w-h1 { left: 150px; top: 194px; width: 900px; text-align: center; font: 800 46px/1.1 Montserrat, Arial, sans-serif; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.w-sub { left: 200px; top: 310px; width: 800px; text-align: center; font: 400 18px/1.4 "Open Sans", Arial, sans-serif; color: #e6edf3; }
.w-btn { top: 372px; width: 206px; height: 52px; border-radius: 999px; font: 700 15px/52px Montserrat, Arial, sans-serif; text-align: center; color: #fff; }
.w-btn1 { left: 388px; background: #f26b21; }
.w-btn2 { left: 606px; box-shadow: inset 0 0 0 2px #fff; }
.w-dots { left: 570px; top: 470px; display: flex; gap: 10px; }
.w-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.w-dots i.on { background: #fff; }
.w-trust {
  left: 0; top: 510px; width: 1200px; height: 70px;
  padding: 0 60px;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  background: #0b3259; color: #fff;
  font: 600 14px/1 "Open Sans", Arial, sans-serif;
}
.w-trust span { display: flex; align-items: center; justify-content: center; gap: 10px; }
.w-trust svg { width: 24px; height: 24px; fill: none; stroke: #f26b21; stroke-width: 2; stroke-linejoin: round; }
.w-h2 { left: 0; top: 600px; width: 1200px; text-align: center; font: 700 28px/1 Montserrat, Arial, sans-serif; color: #0b3259; }
.w-h2::after { content: ""; display: block; width: 50px; height: 3px; margin: 10px auto 0; background: #f26b21; }
.w-card {
  top: 655px; width: 260px; height: 130px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e6e9ee; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  text-align: center;
}
.w-card i { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; background: #e8f1fa; }
.w-card i svg { width: 22px; height: 22px; fill: none; stroke: #0b3259; stroke-width: 2; }
.w-card b { display: block; font: 700 17px/1.2 Montserrat, Arial, sans-serif; color: #0b3259; }
.w-card p { margin: 6px 0 0; font: 400 13px/1.4 "Open Sans", Arial, sans-serif; color: #6b7680; }
.w-stars {
  left: 24px; top: 690px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: #fff; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  font: 600 12px/1 "Open Sans", Arial, sans-serif; color: #333;
}
.w-stars em { font-style: normal; font-size: 13px; color: #fbbc05; }
.w-chat { left: 1128px; top: 680px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #f26b21; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.w-chat svg { width: 22px; height: 22px; }

/* after: Calloway, a whole site three screens deep */
.new { background: #efe8dc; color: #14202b; font-family: var(--sans); }
.new--top { background: none; }
.n { position: absolute; margin: 0; }
.n-head { left: 56px; top: 28px; width: 1088px; display: flex; align-items: center; gap: 14px; }
.n-mark { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #b5652e; overflow: hidden; }
.n-mark b { font: italic 600 34px/1 var(--display); font-variation-settings: "opsz" 48, "SOFT" 100, "WONK" 1; color: #faf6ee; transform: translate(-1px, -1px); }
.n-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 3px; background: #faf6ee; opacity: .9; }
.n-logo { font: 600 28px/1 var(--display); font-variation-settings: "opsz" 48, "SOFT" 0; letter-spacing: -.02em; }
.n-logo small { display: block; margin-top: 6px; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #5b6670; }
.n-links { display: flex; gap: 28px; margin-left: auto; margin-right: 18px; font-size: 15px; opacity: .78; }
.n-emerg { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; background: #14202b; color: #efe8dc; font-size: 14px; font-weight: 500; }
.n-emerg i { width: 8px; height: 8px; border-radius: 50%; background: #e08a4d; }
.n-kicker { left: 56px; top: 132px; font: 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #5b6670; }
.n-title { left: 52px; top: 156px; font: 400 112px/.9 var(--display); font-variation-settings: "opsz" 144, "SOFT" 0; letter-spacing: -.045em; }
.n-title em { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; color: #2c6e91; }
.n-sub { left: 56px; top: 380px; width: 440px; font-size: 18px; line-height: 26px; color: #46525c; }
.n-call { left: 56px; top: 452px; }
.n-call span { display: block; font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #5b6670; }
.n-call b { display: inline-block; margin-top: 8px; font: 500 44px/1.05 var(--display); font-variation-settings: "opsz" 72, "SOFT" 0; letter-spacing: -.02em; text-decoration: underline 3px #b5652e; text-underline-offset: 7px; }
.n-book { left: 56px; top: 548px; width: 560px; padding: 16px 20px; background: #faf6ee; border: 1px solid rgba(20, 32, 43, .14); border-radius: 4px; }
.n-book__hd { display: flex; justify-content: space-between; align-items: baseline; }
.n-book__hd b { font-size: 15px; font-weight: 600; }
.n-book__hd span { font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #2c6e91; }
.n-book__slots { display: flex; gap: 12px; margin-top: 12px; }
.n-slot { display: flex; align-items: center; justify-content: center; width: 166px; height: 46px; border: 1px solid #14202b; border-radius: 3px; font-size: 15px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.n-slot--c, .xform.slot-picked .n-slot--a { background: #2c6e91; border-color: #2c6e91; color: #faf6ee; }
.xform.slot-picked .n-slot--c { background: none; border-color: #14202b; color: #14202b; }
.xform.slot-picked .n-slot--a::before { content: "\2713\00a0"; }
.n-book__ft { margin-top: 12px; font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #5b6670; }
.n-tag { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: #faf6ee; border: 1px solid #14202b; border-radius: 3px; white-space: nowrap; }
.n-tag i { width: 8px; height: 8px; border-radius: 50%; background: #b5652e; }
.n-tag b { font-size: 17px; font-weight: 500; }
.n-leads { left: 0; top: 0; width: 1200px; height: 750px; overflow: visible; }
.n-run { left: 0; top: 0; width: 1200px; height: 2250px; pointer-events: none; }
.n-k { font: 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #5b6670; }
.n-h2 { font: 400 64px/1 var(--display); font-variation-settings: "opsz" 144, "SOFT" 0; letter-spacing: -.035em; color: #14202b; }
.n-h2--sm { font-size: 52px; }
.n-price { width: 320px; height: 290px; padding: 24px 26px; background: #faf6ee; border-radius: 4px; }
.n-price svg { width: 52px; height: 52px; }
.n-price h4 { margin: 12px 0 14px; font: 400 30px/1 var(--display); letter-spacing: -.02em; }
.n-price small { display: block; font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #5b6670; }
.n-price strong { display: block; margin: 8px 0 10px; font: 500 44px/1 var(--display); letter-spacing: -.03em; }
.n-price p { margin: 0; font-size: 15px; color: #46525c; }
.n-fine, .n-rating small { font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8a8478; }
.n-zips { width: 380px; font-size: 16px; line-height: 1.5; color: #46525c; }
.n-zips b { display: block; margin: 14px 0 2px; font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #14202b; }
.n-map { width: 624px; height: 420px; }
.n-cred { width: 320px; height: 104px; padding: 20px 22px; background: #faf6ee; border-radius: 4px; }
.n-cred small { display: block; font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #5b6670; }
.n-cred b { display: block; margin-top: 12px; font: 400 24px/1.1 var(--display); letter-spacing: -.015em; }
.n-rating { display: flex; align-items: center; gap: 22px; width: 520px; }
.n-rating strong { font: 400 72px/1 var(--display); letter-spacing: -.04em; }
.n-rating > div { display: grid; gap: 6px; width: 240px; }
.n-rating__src { font-size: 15px; color: #46525c; margin-bottom: 4px; }
.n-bar { display: block; height: 8px; background: #e4dccd; border-radius: 4px; overflow: hidden; }
.n-bar i { display: block; height: 100%; background: #2c6e91; }
.n-rating small { align-self: flex-start; }
.n-foot { width: 1200px; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 56px; background: #14202b; color: #efe8dc; font-size: 15px; }
.n-foot__btn { padding: 10px 18px; background: #b5652e; color: #faf6ee; font-weight: 500; }

/* Ownstand's own notes on the work: what each part does for the business */
.n-note {
  position: absolute;
  padding: 9px 13px 8px;
  border-radius: 3px;
  background: var(--lamp);
  color: var(--green-ink);
  font: 500 15px/1 var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(13, 31, 23, .5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s, transform .6s var(--ease-out);
}

/* the template's banner photo is shared: it shrinks into the arch and becomes the cutaway */
.xm-img { position: absolute; left: 720px; top: 104px; width: 444px; height: 520px; border-radius: 222px 222px 0 0; overflow: hidden; }
.xm-img__old, .xm-img__new { position: absolute; inset: 0; overflow: hidden; }
.xm-img__old { opacity: 0; }
.xm-img__new svg { width: 100%; height: 100%; }

/* keepers: the phone number and services lift out of the old page and land in the new one */
.xk { position: absolute; left: 0; top: 0; z-index: 4; display: none; white-space: nowrap; line-height: normal; transform-origin: 0 0; pointer-events: none; }
.xk > span { display: block; }
.xk__new { position: absolute; }

/* ---------- 3. work ---------- */

.work { background: var(--ivory); padding: var(--s) 0; }
.work__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 32px; margin-bottom: calc(var(--s) * .6); }
.work__head .h-section { color: var(--green); }
.work__note { margin: 0; max-width: 40ch; }

.study { --w: min(100%, calc((100svh - 260px) * 1.6)); width: var(--w); margin-inline: auto; }
.study + .study { margin-top: var(--s); }
.study__frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 0 rgba(0, 0, 0, .04), 0 30px 60px -20px rgba(18, 41, 31, .28);
  transform-origin: 50% 0;
}
.study__frame .fit { aspect-ratio: 1200 / 750; transition: transform .6s var(--ease-out); }
.study__frame { position: relative; }
.study__frame:hover .fit, .study__frame:focus-visible .fit { transform: scale(1.03); }
.study__pill {
  position: absolute; left: 20px; bottom: 20px;
  padding: 12px 18px;
  background: var(--ivory); color: var(--green);
  font: 500 .9375rem/1 var(--sans);
  box-shadow: 0 8px 24px -12px rgba(13, 31, 23, .5);
  opacity: 0; transform: translateY(12px);
  transition: opacity .2s, transform .35s var(--ease-out);
}
.study__frame:hover .study__pill, .study__frame:focus-visible .study__pill { opacity: 1; transform: none; }
.study__cap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; gap: 24px; padding-top: 22px; }
/* the name is set in that business's own type: the identity, not ours */
.study__name { margin: 0; font-size: clamp(2rem, 1rem + 3vw, 3.75rem); line-height: .95; }
.study__text p { margin: 0 0 8px; max-width: 40ch; font-size: 1.125rem; line-height: 1.4; }
.study__text .meta { font-size: .75rem; }
.study__text .study__pages { margin-bottom: 10px; font-size: .9375rem; color: var(--stone); }
.work__more { margin: calc(var(--s) * .6) 0 0; text-align: center; }

/* case study overlay */
.case {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ivory);
  clip-path: inset(0 0 0 0);
  visibility: hidden;
}
.case.is-open { visibility: visible; }
.case.is-anim { transition: clip-path .65s var(--ease-io); }
.case.is-closing { transition-duration: .45s; }
.case__bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--g);
  background: var(--ivory);
  color: var(--stone);
}
.case__close { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; font: 500 .9375rem/1 var(--sans); color: var(--ink); }
.case__body > * { transition: opacity .5s .25s, transform .7s .2s var(--ease-out); }
.case:not(.is-shown) .case__body > * { opacity: 0; transform: translateY(16px); }
.case__head { padding: clamp(32px, 8vh, 96px) var(--g) 40px; }
.case__title { margin: 0; font-size: clamp(3.25rem, 11vw, 12rem); color: var(--green); }
.case__cover { margin: 0 var(--g); }
.case__cover .fit { aspect-ratio: 1200 / 750; }
.case__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; padding: var(--s) var(--g); }
.case__grid > * { grid-column: span 4; }
.case__grid h3 { margin: 0 0 12px; color: var(--stone); }
.case__grid p { margin: 0; max-width: 40ch; font-size: 1.125rem; line-height: 1.5; }
.case__swatches { display: flex; gap: 8px; }
.case__swatches span { width: 56px; height: 72px; border-radius: 28px 28px 0 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.case__type { font-size: 2.75rem; line-height: 1; }
.case__next { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; padding: 0 var(--g) var(--s); }
.case__honest { color: var(--stone); }

/* ---------- 4. how it works ---------- */

.process { background: var(--green-deep); color: var(--ivory); padding: var(--s) 0; }
.process__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 32px; margin-bottom: calc(var(--s) * .5); }
.process .h-section { color: var(--ivory); }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { display: grid; align-content: start; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(246, 242, 234, .22); }
.step__n { color: var(--lamp); }
.step__t { margin: 0; font-size: var(--t-h3); line-height: 1; letter-spacing: -.025em; }
.step p { margin: 0; max-width: 34ch; color: var(--on-dark); font-size: 1.0625rem; }
.process__honest { margin: 0; max-width: 40ch; color: var(--on-dark); font-size: 1.0625rem; }

/* ---------- 5. try yours ---------- */

.explore { background: var(--ivory); padding: var(--s) 0; }
.explore__ui { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.explore .h-section { color: var(--green); margin-bottom: 36px; }
.explore__name { display: grid; gap: 6px; margin: 0 0 32px; }
.explore__name .meta { color: var(--stone); }
.explore__name input {
  width: 100%;
  padding: 6px 0 10px;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(23, 33, 27, .35); border-radius: 0;
  color: var(--green);
  font: 400 clamp(1.75rem, 1rem + 1.6vw, 2.5rem)/1.15 var(--display);
  font-variation-settings: "opsz" 72, "SOFT" 30;
  caret-color: var(--lamp);
  letter-spacing: -.02em;
  transition: border-color .3s;
}
.explore__name input::placeholder { color: var(--stone-light); opacity: 1; }
.explore__name input:focus { outline: 0; border-bottom-color: var(--green); box-shadow: 0 1px 0 0 var(--green); }
.explore__name input:focus-visible { box-shadow: 0 2px 0 0 var(--green); }
.explore__options { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.explore__options legend { margin-bottom: 12px; padding: 0; color: var(--stone); }
.opt { position: relative; display: block; }
.opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(23, 33, 27, .22); border-radius: 999px;
  font: 400 1rem/1 var(--sans);
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.opt input:hover + span { border-color: var(--green); }
.opt input:checked + span { background: var(--green); border-color: var(--green); color: var(--ivory); }
.opt input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.explore__stage { width: min(100%, (100svh - 200px) * 1.6); justify-self: end; }
.explore__frame { aspect-ratio: 1200 / 750; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 0 rgba(0, 0, 0, .04), 0 30px 60px -20px rgba(18, 41, 31, .28); }
.explore__pages { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 18px 0 0; font-size: .9375rem; }
.explore__pages .meta { color: var(--stone); }
.explore__go { margin-top: 24px; }
.explore__frame .fit { position: absolute; inset: 0; }
.explore__frame .fit.is-entering { animation: archIn .6s var(--ease-io) both; }
@keyframes archIn {
  from { clip-path: inset(100% 0 0 0 round 50% 50% 0 0); }
  to { clip-path: inset(0 0 0 0 round 0 0 0 0); }
}

/* ---------- 6. finale ---------- */

.finale { position: relative; background: var(--ivory); }
.finale__stage { position: relative; min-height: 100svh; overflow: hidden; display: grid; }
.finale__text {
  position: relative; z-index: 3;
  align-self: center;
  margin: 0;
  padding: var(--hd-h) var(--g) .22em;
  font-size: var(--t-xl);
  line-height: .88;
  text-align: center;
  color: var(--green);
}
.finale__text > span:first-child { display: block; }
.finale__glyph { display: block; width: .6em; height: .72em; margin: .22em auto 0; }
.finale__glyph svg { width: 100%; height: 100%; fill: var(--green); }
.finale__portal { display: none; }

/* ---------- 7. start + footer: one continuous dark room ---------- */

.start { background: radial-gradient(900px 380px at 50% 300px, rgba(226, 169, 59, .1), transparent 70%), var(--green-ink); color: var(--ivory); padding: var(--s) 0; }
.start__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.start .h-section { font-size: clamp(2.5rem, 1rem + 3.4vw, 4.5rem); }
.start__aside p { max-width: 36ch; color: var(--on-dark); }
.start__aside a { color: var(--ivory); }
.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { color: #a9b8ae; }
.field__opt { text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%;
  padding: 8px 0 12px;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(246, 242, 234, .35); border-radius: 0;
  color: var(--ivory);
  font: 400 1.25rem/1.4 var(--sans);
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--lamp); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--lamp); }
.field__err { min-height: 1.3em; color: #f1c27a; font-size: .875rem; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.form__status { margin: 0; max-width: 46ch; color: var(--on-dark); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

.ft { overflow: hidden; background: var(--green-ink); color: var(--ivory); padding-top: calc(var(--s) * .6); border-top: 1px solid rgba(246, 242, 234, .1); }
.ft__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .6fr)); gap: 40px; align-items: start; }
.ft__mark { width: 30px; fill: var(--ivory); margin-bottom: 24px; }
.ft__line { margin: 0; font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ft ul a { position: relative; display: inline-flex; align-items: center; min-height: 40px; font-size: 1.0625rem; text-decoration: none; }
.ft ul a::after { bottom: 8px; transform: scaleX(0); transform-origin: left; }
.ft ul a:hover::after, .ft ul a:focus-visible::after { transform: scaleX(1); }
.ft h3 { margin: 0 0 12px; color: #a9b8ae; }
.ft__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 64px; padding-bottom: 24px; color: #a9b8ae; }
.ft__word {
  display: block;
  width: max-content;
  margin: -.12em 0 -.08em var(--g);
  font: 400 23vw/1 var(--logo);
  letter-spacing: -.01em;
  color: var(--green-deep);
  white-space: nowrap;
  user-select: none;
}

.dock { display: none; }

/* ======================================================================
   MOTION — only with JS and no reduced-motion preference
   ====================================================================== */

/* hero arrives on first paint; nothing blocks input */
html.motion .hero__title .mask-line > span { animation: lineUp .7s var(--ease-out) both; }
html.motion .hero__title .mask-line:nth-child(1) > span { animation-delay: .05s; }
html.motion .hero__title .mask-line:nth-child(2) > span { animation-delay: .13s; }
html.motion .hero__bottom .lede { animation: fadeUp .5s .3s var(--ease-out) both; }
html.motion .deck { animation: doorUp .9s .1s var(--ease-out) both; }
@keyframes doorUp { from { opacity: 0; transform: translateY(48px); } }
@keyframes lineUp { from { transform: translateY(105%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes fadeIn { from { opacity: 0; } }

/* one-time reveals */
html.motion [data-lines] .mask-line > span { transform: translateY(105%); transition: transform .9s var(--ease-out); }
html.motion [data-lines] .mask-line:nth-child(2) > span { transition-delay: .08s; }
html.motion [data-lines].is-in .mask-line > span { transform: none; }
html.motion [data-rise] { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s var(--ease-out); }
html.motion [data-rise]:nth-child(2) { transition-delay: .08s; }
html.motion [data-rise]:nth-child(3) { transition-delay: .16s; }
html.motion [data-rise].is-in { opacity: 1; transform: none; }

/* the rebuild: the one pinned set piece */
html.motion .xform { height: 360vh; padding: 0; }
html.motion .xform__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 24px clamp(24px, 4vw, 64px);
  padding-top: calc(var(--hd-h) + 16px);
  padding-bottom: 32px;
}
html.motion .xform__title { grid-column: 1 / -1; align-self: end; max-width: none; font-size: clamp(2.25rem, 1rem + 3.2vw, 4.5rem); }
html.motion .xform__side { align-self: stretch; grid-template-rows: auto auto 1fr; align-content: start; gap: 32px; padding: 8px 0; }
html.motion .xform__note { margin-top: auto; }
html.motion .xform__frames { display: block; position: relative; height: 100%; }
html.motion .xform__frame { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
html.motion .xform__frame--main .u-old { opacity: 1; }
html.motion .xform__frame--main .u-new { opacity: 0; transform: translateY(6px); }
html.motion .xform.url-new .xform__frame--main .u-old { opacity: 0; transform: translateY(-6px); }
html.motion .xform.url-new .xform__frame--main .u-new { opacity: 1; transform: none; }
/* the title changes its mind once the new site has landed */
html.motion .xform__t--b { display: block; opacity: 0; transform: translateY(14px); }
html.motion .xform__t { transition: opacity .5s, transform .7s var(--ease-out); }
html.motion .xform.is-after .xform__t--a { opacity: 0; transform: translateY(-14px); }
html.motion .xform.is-after .xform__t--b { opacity: 1; transform: none; }
/* notes arrive with the part of the page they describe */
html.motion .xform.note-0 .n-note[data-note="0"], html.motion .xform.note-1 .n-note[data-note="1"],
html.motion .xform.note-2 .n-note[data-note="2"], html.motion .xform.note-3 .n-note[data-note="3"] { opacity: 1; transform: none; }
html.motion .n-emerg i { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
html.motion .xform__frame--old, html.motion .xform__frame .xform__label { display: none; }
html.motion .xform__step { opacity: .45; transition: opacity .5s, border-color .5s; }
html.motion .xform__step.is-done { opacity: .55; }
html.motion .xform__step.is-now { opacity: 1; border-top-color: var(--green); }
html.motion .xform__end { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .8s var(--ease-out); }
html.motion .xform[data-step="4"] .xform__end { opacity: 1; transform: none; }

/* per-element choreography, driven by --b (break), --a (assemble), --m (morph) */
html.motion .xform .o {
  --t: clamp(0, calc((var(--b, 0) - var(--d, 0)) * 1.6), 1);
  transform: translate3d(calc(var(--dx, 0) * var(--t) * 1px), calc(var(--dy, 0) * var(--t) * 1px), 0) rotate(calc(var(--r, 0) * var(--t) * 1deg));
  opacity: calc(1 - var(--t) * 1.15);
}
html.motion .xform .old { opacity: clamp(0, calc(1 - var(--a, 0) * 2.2), 1); }
html.motion .xform .old--top { background: none; }
html.motion .xform .new { opacity: clamp(0, calc(var(--a, 0) * 3), 1); }
html.motion .xform .n {
  --t: clamp(0, calc((var(--a, 0) - var(--d, 0)) * 2), 1);
  transform: translate3d(calc(var(--dx, 0) * (1 - var(--t)) * 1px), calc(var(--dy, 0) * (1 - var(--t)) * 1px), 0);
  opacity: var(--t);
}
html.motion .xform .xm-img__old { opacity: 1; }
html.motion .xform .xm-img__new { opacity: clamp(0, calc(var(--m, 0) * 2.4 - .7), 1); }
html.motion .xform.xk-on .xk { display: block; }
html.motion .xform.xk-landed .xk { display: none; }
html.motion .xform.xk-on .old [data-keep] { visibility: hidden; }
html.motion .xform:not(.xk-landed) .new [data-keep-to] { visibility: hidden; }
/* a small, time-based settle when each keeper lands */
html.motion .xform.xk-landed .new [data-keep-to] { animation: settle .32s var(--ease-out); transform-origin: 0 60%; }
@keyframes settle { 40% { transform: scale(1.07); } }

/* the door: the one place the mark moves */
html.motion .finale { height: 150vh; background: var(--green-ink); }
html.motion .finale__stage { position: sticky; top: 0; z-index: 2; height: 100svh; pointer-events: none; }
html.motion .start { position: relative; z-index: 1; margin-top: -100svh; }
html.motion .finale__glyph svg { visibility: hidden; }
html.motion .finale__portal { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */

@media (max-width: 960px) {
  .hd__nav, .hd__cta { display: none; }
  .hd__menu { display: inline-flex; align-items: center; justify-content: center; }
  .work__head, .start__grid, .explore__ui, .study__cap, .process__head { grid-template-columns: minmax(0, 1fr); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: none; align-content: center; }
  .hero__deck, .hero__bottom, .hero__title { min-width: 0; }
  .hero__title, .hero__bottom, .hero__deck { grid-column: 1; grid-row: auto; }
  .hero__title { order: 1; }
  .hero__deck { order: 2; padding: 34px 22px 0 0; }
  .hero__bottom { order: 3; padding-bottom: 32px; }
  .hero__deck .hero__cap { margin-top: 18px; font-size: .75rem; padding: 8px 12px; }
  .dock {
    position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 55;
    display: flex; justify-content: space-between;
    box-shadow: 0 10px 30px -10px rgba(13, 31, 23, .6);
    transform: translateY(140%);
    transition: transform .45s var(--ease-out), background .3s;
  }
  html.dock-on .dock { transform: none; }
  .process__steps { grid-template-columns: 1fr; gap: 28px; }
  .ft__top { grid-template-columns: 1fr 1fr; }
  .ft__top > :first-child { grid-column: 1 / -1; }
  .case__grid > * { grid-column: 1 / -1; }
  .explore__stage { width: 100%; }
  .study { width: 100%; }

  html.motion .xform { height: 340vh; }
  html.motion .xform__stage { grid-template-columns: 1fr; grid-template-rows: auto auto auto; align-content: center; gap: 18px; padding-top: calc(var(--hd-h) + 8px); }
  html.motion .xform__title { font-size: clamp(1.75rem, 7vw, 2.75rem); }
  html.motion .xform__frames { grid-row: 2; height: auto; }
  html.motion .xform__frame { position: relative; top: 0; transform: none; width: 100%; }
  html.motion .xform__side { grid-row: 3; grid-template-rows: none; gap: 14px; }
  html.motion .xform__step:not(.is-now) { display: none; }
  html.motion .xform[data-step="4"] .xform__steps { display: none; }
  html.motion .xform__note { margin-top: 0; }
}

@media (max-width: 560px) {
  .hero__title { font-size: 13.4vw; }
  .hero__ctas { gap: 18px; }
  /* kinds of business: one swipeable row */
  .opts { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--g) * -1); padding: 2px var(--g) 6px; scroll-snap-type: x proximity; scroll-padding-inline: var(--g); scrollbar-width: none; }
  .opts::-webkit-scrollbar { display: none; }
  /* a soft fade on the right edge says the row keeps going */
  .opts { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .opt { flex: none; scroll-snap-align: start; }
  .field input, .field textarea { font-size: 1.125rem; }
  .form { gap: 22px; }
  /* the door: a bigger arch on a small screen, and less scroll before it opens */
  .finale__glyph { width: .9em; height: 1.08em; }
  html.motion .finale { height: 125vh; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .form { grid-template-columns: 1fr; }
  .ft__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
