/* ============================================================
   WEST PORTLAND PHYSICAL THERAPY CLINIC — "The Unfurling"
   Design system derived from the WPPTC spiral logo:
   ink brushwork, vermillion field, bone paper.
   ============================================================ */

/* ---------- Fonts loaded via <link> in each page head ---------- */

:root {
  /* palette — from the logo */
  --ink:        #181210;
  --ink-2:      #221A15;
  --ink-3:      #2f251e;
  --ink-soft:   #4a3d33;
  --paper:      #F5EFE4;
  --paper-2:    #EDE4D3;
  --bone:       #FBF7EE;
  --clay:       #E2D6C3;
  --verm:       #D8402A;
  --verm-deep:  #A92E1B;
  --verm-glow:  #FF6B4A;
  --stone:      #8A7E72;
  --stone-2:    #B9AC9C;

  /* type */
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Spline Sans Mono", "Courier New", monospace;

  /* scale */
  --fs-hero: clamp(2.9rem, 8.5vw, 7.8rem);
  --fs-h1: clamp(2.6rem, 6.5vw, 5.6rem);
  --fs-h2: clamp(2rem, 4.6vw, 3.9rem);
  --fs-h3: clamp(1.45rem, 2.6vw, 2.1rem);
  --fs-lede: clamp(1.12rem, 1.7vw, 1.42rem);
  --fs-body: clamp(1rem, 1.15vw, 1.09rem);

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-luxe: cubic-bezier(.65, 0, .13, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ink); /* the living canvas paints over this */
  overflow-x: hidden;
}
body.is-dark { color: var(--paper); }

/* ---------- the living canvas (atmosphere.js) ---------- */
/* the real film — a motion loop built from the clinic's own photographs */
.atmo-video {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -3;
  pointer-events: none;
}
.atmo-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  pointer-events: none;
}
/* light pages breathe through a warm paper veil */
[data-nav="light"] body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 0%, rgb(245 239 228 / .84) 0%, rgb(242 234 220 / .9) 55%, rgb(236 226 208 / .93) 100%);
}
/* ribbon-cursor canvas rides above everything */
.fx-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 2800;
  pointer-events: none;
  mix-blend-mode: screen;
}
@media (pointer: fine) {
  html.fx-cursor, html.fx-cursor a, html.fx-cursor button,
  html.fx-cursor input, html.fx-cursor textarea, html.fx-cursor select {
    cursor: none;
  }
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--verm); color: var(--bone); }

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

/* ---------- grain veil ---------- */
.grain {
  pointer-events: none;
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  z-index: 2000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.4s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--verm);
  display: inline-flex;
  align-items: center;
  gap: .75em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 26px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M190 100 A90 90 0 1 1 10 100 A63 63 0 1 1 136 100 A44 44 0 1 1 48 100 A31 31 0 1 1 110 100 A21 21 0 1 1 68 100' fill='none' stroke='black' stroke-width='16' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M190 100 A90 90 0 1 1 10 100 A63 63 0 1 1 136 100 A44 44 0 1 1 48 100 A31 31 0 1 1 110 100 A21 21 0 1 1 68 100' fill='none' stroke='black' stroke-width='16' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eyebrow--bone { color: var(--stone-2); }

.display {
  font-family: var(--f-display);
  font-weight: 560;
  font-variation-settings: "SOFT" 60, "opsz" 100;
  line-height: 1.02;
  letter-spacing: -.015em;
}
.display em {
  font-style: italic;
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 100;
  color: var(--verm);
}
.is-dark .display em, .sec--ink .display em { color: var(--verm-glow); }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 34em;
}
.is-dark .lede, .sec--ink .lede { color: var(--stone-2); }

.prose p + p { margin-top: 1.1em; }
.prose { max-width: 62ch; }

/* split-text scaffolding */
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; will-change: transform; }

/* ---------- layout ---------- */
.wrap { width: min(1440px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sec { position: relative; padding-block: clamp(4.5rem, 10vw, 9rem); }
/* sections are translucent layers floating over the living canvas —
   never boxed, never flat white */
.sec--ink { background: linear-gradient(rgb(22 17 14 / .62), rgb(18 14 11 / .74)); color: var(--paper); }
.sec--ink2 { background: linear-gradient(rgb(28 21 17 / .6), rgb(22 17 14 / .72)); color: var(--paper); }
.sec--verm { background: linear-gradient(160deg, rgb(214 62 40 / .94), rgb(168 44 26 / .95)); color: var(--bone); }
.sec--bone { background: linear-gradient(rgb(249 244 234 / .9), rgb(243 236 223 / .87)); }
.sec--clay { background: linear-gradient(rgb(226 214 194 / .85), rgb(218 204 182 / .84)); }

/* sweeping arc edges — the section handshake (no straight dividers) */
.arc-top { border-radius: clamp(2rem, 8vw, 7rem) clamp(2rem, 8vw, 7rem) 0 0; margin-top: calc(-1 * clamp(2rem, 8vw, 7rem)); }
.arc-btm { border-radius: 0 0 clamp(2rem, 8vw, 7rem) clamp(2rem, 8vw, 7rem); }
.arc-tl { border-top-left-radius: clamp(3rem, 14vw, 13rem); }
.arc-tr { border-top-right-radius: clamp(3rem, 14vw, 13rem); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  transition: transform .5s var(--ease-out), background .4s, box-shadow .4s;
}
.nav__inner {
  width: min(1560px, 100% - clamp(1.25rem, 3vw, 3rem) * 2);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--ink) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgb(255 255 255 / .06); }
.nav.is-hidden { transform: translateY(-110%); }

.nav__logo { display: flex; align-items: center; gap: .8rem; }
.nav__logo img { height: 44px; width: auto; transition: opacity .3s; }
/* white silhouette of logo for dark chrome */
.nav__logo img { filter: brightness(0) invert(1); }
[data-nav="light"] .nav:not(.is-scrolled) .nav__logo img { filter: none; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav__links > li { position: relative; }
.nav__link {
  font-size: .88rem; font-weight: 500;
  letter-spacing: .02em;
  color: var(--bone);
  padding: .55rem .1rem;
  position: relative;
  display: inline-flex; align-items: center; gap: .35em;
}
[data-nav="light"] .nav:not(.is-scrolled) .nav__link { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: .2rem;
  width: 100%; height: 1.5px; background: var(--verm);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-luxe);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }

.nav__drop {
  position: absolute; top: calc(100% + .8rem); left: 50%;
  translate: -50% 0;
  min-width: 230px;
  background: var(--bone);
  color: var(--ink);
  border-radius: 18px 18px 18px 4px;
  padding: .6rem;
  box-shadow: 0 24px 60px -18px rgb(12 8 5 / .45);
  opacity: 0; visibility: hidden;
  transform: translateY(12px) scale(.97);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s;
}
.nav__links > li:hover .nav__drop,
.nav__links > li:focus-within .nav__drop {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.nav__drop a {
  display: block;
  font-size: .9rem; font-weight: 500;
  padding: .6rem .9rem;
  border-radius: 12px;
  transition: background .25s, color .25s, padding-left .25s;
}
.nav__drop a:hover { background: var(--verm); color: var(--bone); padding-left: 1.15rem; }

.nav__cta { margin-left: .4rem; }

.nav__burger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: .7rem .4rem;
  z-index: 1001;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: var(--bone);
  transition: transform .4s var(--ease-luxe), opacity .3s, background .3s;
}
[data-nav="light"] .nav:not(.is-scrolled) .nav__burger span { background: var(--ink); }
body.menu-open .nav__burger span { background: var(--bone) !important; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 950;
  background: var(--ink);
  color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter) 3rem;
  clip-path: circle(0% at calc(100% - 3rem) 3rem);
  visibility: hidden;
  transition: clip-path .8s var(--ease-luxe), visibility 0s .8s;
  overflow-y: auto;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 3rem) 3rem); visibility: visible; transition: clip-path .8s var(--ease-luxe); }
.menu__group { margin-bottom: 1.6rem; }
.menu__label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--verm-glow); margin-bottom: .5rem; }
.menu a.menu__item {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.25;
  display: inline-block;
  transition: color .3s, transform .4s var(--ease-out);
}
.menu a.menu__item:hover { color: var(--verm-glow); transform: translateX(.35em); }
.menu__contact { margin-top: auto; padding-top: 2rem; font-size: .9rem; color: var(--stone-2); display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--verm);
  --btn-fg: var(--bone);
  position: relative;
  display: inline-flex; align-items: center; gap: .7em;
  font-weight: 600; font-size: .92rem;
  letter-spacing: .015em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  padding: 1em 1.7em;
  border-radius: 100px;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease-out), transform .3s var(--ease-out), box-shadow .35s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-luxe);
}
.btn:hover { box-shadow: 0 14px 34px -12px rgb(216 64 42 / .55); }
.btn:hover::before { transform: translateY(0); }
.btn--ink { --btn-bg: var(--ink); }
.btn--ink::before { background: var(--verm); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 40%, transparent);
}
.btn--ghost::before { background: var(--verm); }
.btn--ghost:hover { color: var(--bone); }
.btn__arrow { width: 1em; height: 1em; flex: none; transition: transform .45s var(--ease-luxe); }
.btn:hover .btn__arrow { transform: rotate(45deg); }

.link-more {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-mono); font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500;
  color: var(--verm);
  padding-bottom: .3em;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1.5px no-repeat;
  transition: background-size .5s var(--ease-luxe);
}
.link-more:hover { background-size: 100% 1.5px; }

/* ---------- hero scaffolding ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: clip; }
.hero--short { min-height: 76svh; }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media img { position: absolute; left: 0; top: -13%; width: 100%; height: 126%; object-fit: cover; will-change: transform; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(178deg, rgb(24 18 16 / .45) 0%, rgb(24 18 16 / .18) 42%, rgb(24 18 16 / .88) 100%); }
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(3rem, 8vh, 6rem); color: var(--bone); }
.hero__title { font-size: var(--fs-hero); }
.hero__scroll-cue {
  position: absolute; bottom: 2.2rem; right: var(--gutter); z-index: 3;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--bone); opacity: .7;
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: .9em;
}
.hero__scroll-cue::after { content: ""; width: 1px; height: 52px; background: linear-gradient(var(--bone), transparent); animation: cue-drip 2.2s var(--ease-luxe) infinite; }
@keyframes cue-drip { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--ink);
  display: grid; place-items: center;
  color: var(--paper);
}
.loader__mark { width: clamp(110px, 18vw, 190px); position: relative; }
.loader__mark .spiral-path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__glow {
  position: absolute; inset: -55%;
  background: radial-gradient(circle, rgb(255 107 74 / .32) 0%, transparent 62%);
  opacity: 0; filter: blur(6px);
}
.loader__word {
  margin-top: 2.1rem;
  font-family: var(--f-display); font-weight: 460;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  letter-spacing: .04em;
  display: flex; gap: .32em; justify-content: center;
}
.loader__word span { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg); }
.loader__tag { margin-top: .8rem; text-align: center; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--stone); opacity: 0; }

/* page veil for transitions */
.veil {
  position: fixed; inset: 0; z-index: 2500;
  background: var(--ink);
  transform: translateY(101%);
  border-radius: 100% 100% 0 0 / 18% 18% 0 0;
  pointer-events: none;
}

/* ---------- cards & content blocks ---------- */
.tick-list li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: .65rem;
}
.tick-list li::before {
  content: "";
  position: absolute; left: 0; top: .38em;
  width: 1.05em; height: 1.05em;
  background: var(--verm);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M190 100 A90 90 0 1 1 10 100 A63 63 0 1 1 136 100 A44 44 0 1 1 48 100' fill='none' stroke='black' stroke-width='22' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M190 100 A90 90 0 1 1 10 100 A63 63 0 1 1 136 100 A44 44 0 1 1 48 100' fill='none' stroke='black' stroke-width='22' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* accordion */
.acc { border-radius: 22px; overflow: hidden; }
.acc__item { border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.acc__item:last-child { border-bottom: 0; }
.acc__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  text-align: left;
  font-family: var(--f-display); font-size: clamp(1.08rem, 2vw, 1.42rem); font-weight: 520;
  padding: 1.35rem .35rem;
  transition: color .3s, padding-left .4s var(--ease-out);
}
.acc__q:hover { color: var(--verm); padding-left: .9rem; }
.acc__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); position: relative; transition: transform .5s var(--ease-luxe), background .3s, border-color .3s; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; }
.acc__icon::before { width: 12px; height: 1.5px; }
.acc__icon::after { width: 1.5px; height: 12px; transition: transform .4s var(--ease-luxe); }
.acc__item.open .acc__icon { transform: rotate(180deg); background: var(--verm); border-color: var(--verm); color: var(--bone); }
.acc__item.open .acc__icon::after { transform: scaleY(0); }
.acc__a { height: 0; overflow: hidden; }
.acc__a-inner { padding: .1rem .35rem 1.6rem; max-width: 60ch; color: var(--ink-soft); }
.sec--ink .acc__a-inner, .is-dark .acc__a-inner { color: var(--stone-2); }

/* stat blocks */
.stat { position: relative; }
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500; line-height: 1;
  color: var(--verm);
}
.stat__label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; margin-top: .6rem; opacity: .75; }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; gap: 3rem; will-change: transform; padding-right: 3rem; }
.marquee__track > span {
  font-family: var(--f-display); font-weight: 480;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  display: inline-flex; align-items: center; gap: 3rem;
}
.marquee__track em { font-style: italic; color: transparent; -webkit-text-stroke: 1px currentColor; }
.marquee__dot { width: .55em; height: .55em; border-radius: 50%; background: var(--verm); display: inline-block; flex: none; }

/* ---------- image treatments ---------- */
.frame { position: relative; overflow: hidden; border-radius: 26px; }
.frame--curl { border-radius: 26px 26px 26px clamp(4rem, 9vw, 8rem); }
.frame--curl-r { border-radius: 26px 26px clamp(4rem, 9vw, 8rem) 26px; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.frame:hover img { transform: scale(1.045); }
.frame__veil { position: absolute; inset: 0; background: linear-gradient(200deg, transparent 42%, rgb(24 18 16 / .55)); }
.frame__cap {
  position: absolute; left: 1.2rem; bottom: 1.1rem; right: 1.2rem;
  color: var(--bone);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
}

/* ---------- footer ---------- */
.footer { position: relative; background: linear-gradient(rgb(14 11 9 / .78), rgb(10 8 6 / .9)); color: var(--paper); overflow: clip; }
.footer__cta { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); text-align: center; }
.footer__cta .display { font-size: var(--fs-h1); }
.footer__spiral {
  position: absolute; right: -8%; top: -18%;
  width: clamp(300px, 42vw, 640px); aspect-ratio: 1;
  opacity: .07; pointer-events: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgb(245 239 228 / .12);
}
.footer h4 { font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--verm-glow); margin-bottom: 1.1rem; }
.footer__grid li { margin-bottom: .45rem; }
.footer__grid a { color: var(--stone-2); font-size: .93rem; transition: color .25s, padding-left .3s var(--ease-out); }
.footer__grid a:hover { color: var(--bone); padding-left: .3em; }
.footer address { font-style: normal; color: var(--stone-2); font-size: .95rem; line-height: 1.8; }
.footer__brand img { height: 52px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1.2rem; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgb(245 239 228 / .12);
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone);
}
.footer__hours { display: grid; grid-template-columns: auto auto; gap: .2rem 1.2rem; color: var(--stone-2); font-size: .93rem; }
.footer__hours dt { font-weight: 600; color: var(--paper); }

/* ---------- CTA band (shared "Ready to get started?") ---------- */
.cta-band { position: relative; overflow: clip; }
.cta-band__pulse { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cta-band__pulse i {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgb(251 247 238 / .16);
  width: 24vmax; height: 24vmax;
}

/* ---------- reveal defaults (JS enhances) ---------- */
[data-reveal] { opacity: 0; }
[data-reveal="none"], .no-js [data-reveal] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .grain { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ---------- specialty shared blocks ---------- */
/* ---------- the brush sweep — the logo's stroke as an image mask ---------- */
:root {
  --brush-sweep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 460' preserveAspectRatio='none'%3E%3Cpath d='M-80 310 C 240 70 660 30 1280 230' stroke='white' stroke-width='250' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.brush-mask {
  -webkit-mask: var(--brush-sweep) center / 100% 100% no-repeat;
          mask: var(--brush-sweep) center / 100% 100% no-repeat;
}

/* spec heroes: edge-to-edge cinematic photography — no containers */
.spec-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: clip; background: transparent; color: var(--bone); }
.spec-hero__img { position: absolute; inset: 0; overflow: hidden; }
.spec-hero__img img { position: absolute; left: 0; top: -13%; width: 100%; height: 126%; object-fit: cover; opacity: .55; will-change: transform; }
.spec-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgb(24 18 16 / .4), rgb(24 18 16 / .06) 45%, rgb(16 12 10 / .9) 98%); }
.spec-hero::before {
  content: "";
  position: absolute; left: -14%; top: -20%; z-index: 1;
  width: 58vmax; height: 58vmax;
  background: radial-gradient(circle, rgb(232 137 79 / .12), transparent 62%);
  pointer-events: none;
}
.spec-hero__content { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.spec-hero__kicker { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--verm-glow); display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.spec-hero__kicker::after { content: ""; height: 1px; width: clamp(3rem, 8vw, 7rem); background: currentColor; opacity: .5; }
.spec-hero__title { font-size: clamp(2.7rem, 7vw, 6.4rem); max-width: 11em; }
.spec-hero__sub { margin-top: 1.4rem; font-size: var(--fs-lede); color: var(--stone-2); max-width: 30em; }

.chart-block {
  background: var(--bone);
  border-radius: 26px 26px 26px 4px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: 0 30px 60px -38px rgb(24 18 16 / .35);
}
.chart-block h3 { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 540; margin-bottom: 1rem; }
.chart-block .tick-list { font-size: .97rem; color: var(--ink-soft); }

.pull-quote {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  font-weight: 460;
  font-variation-settings: "SOFT" 80;
  line-height: 1.28;
  max-width: 24em;
}
.pull-quote em { color: var(--verm); font-style: italic; }

/* ---------- forms ---------- */
.field { position: relative; margin-bottom: 1.7rem; }
.field label {
  display: block;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  margin-bottom: .55rem; color: var(--stone);
}
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit; color: inherit;
  background: transparent;
  border: 0; border-bottom: 1.5px solid color-mix(in srgb, currentColor 25%, transparent);
  padding: .65rem .1rem;
  border-radius: 0;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--verm); }
.field textarea { min-height: 90px; resize: vertical; }

/* ---------- utility ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.center { text-align: center; margin-inline: auto; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: clamp(3rem, 6vw, 5rem); }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.stack > * + * { margin-top: 1.2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .hero__scroll-cue { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .frame--curl, .frame--curl-r { border-radius: 20px 20px 20px 3.2rem; }
}
