/*
  Owen Castell, DDS: Springforth concept demo for a fictional business (wow8-public / dental)
  Idea: a neighbourhood office that doubles as a gallery for local photography.
  Futura-style Jost carries the voice, Josefin Sans sets the wordmark,
  and one rust accent does the rest.
  Shape rule: frames and panels are square-cut, interactive controls are full pills.
*/

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-roman.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("fonts/josefin-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@property --blind {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 10%;
}
@property --aperture {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 160%;
}

:root {
  --wall: #f2f5f6;
  --paper: #fbfcfc;
  --mist: #e4eaec;
  --line: #cbd4d8;
  --line-strong: #93a2aa;
  --ink: #18252e;
  --ink-soft: #4b5a65;
  --rust: #9c3821;
  --rust-deep: #822c18;
  --rust-light: #e9a288;
  --rust-text: #fbefea;
  --on-rust: #fffcfa;
  --on-dark: #eef2f3;
  --on-dark-soft: #b9c5cb;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1296px;
  --header-h: 76px;
  --section-y: clamp(88px, 12vw, 168px);

  --shadow-frame: 0 1px 0 rgb(24 37 46 / 0.05), 0 26px 52px -30px rgb(24 37 46 / 0.5);
  --shadow-frame-lift: 0 1px 0 rgb(24 37 46 / 0.05), 0 34px 64px -30px rgb(24 37 46 / 0.55);

  /* z-index scale: header < callbar < toggle < skip link */
  --z-header: 30;
  --z-callbar: 40;
  --z-toggle: 45;
  --z-skip: 60;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: 0.004em;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn-rust {
  background: var(--rust);
  color: var(--on-rust);
}
.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9875rem;
}
.btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.link-line {
  display: inline-block;
  padding: 6px 0 5px;
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 260ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-rust:hover {
    background: var(--rust-deep);
  }
  .link-line:hover {
    background-size: 35% 1px;
  }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--wall);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  height: var(--header-h);
}
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  margin-right: auto;
}
.wordmark-name {
  font-family: "Josefin Sans", "Jost", sans-serif;
  font-weight: 300;
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark-sub {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.nav {
  display: flex;
  gap: clamp(18px, 2vw, 30px);
}
.nav a {
  font-size: 0.98rem;
  text-decoration: none;
  padding: 8px 0 6px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    background-size: 100% 1px;
  }
}

.menu {
  display: none;
  position: static;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 500;
  user-select: none;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu[open] summary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--wall);
  border-bottom: 1px solid var(--line);
  padding: 4px var(--gutter) 28px;
  box-shadow: 0 30px 40px -30px rgb(24 37 46 / 0.35);
}
.menu-panel a {
  display: block;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 1.3rem;
  text-decoration: none;
}
.menu-panel a:first-child {
  border-top: 0;
}
.menu-panel .btn {
  display: flex;
  margin-top: 16px;
  border-top: 0;
  font-size: 1.0625rem;
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }
  .menu {
    display: block;
  }
}
@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }
  .header-call {
    display: none;
  }
  .wordmark-name {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }
  .wordmark-sub {
    font-size: 0.72rem;
  }
}
@media (max-width: 359px) {
  .wordmark-name {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }
  .menu summary {
    padding: 0 16px;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
}
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(560px, calc(100svh - var(--header-h) - 116px));
  display: grid;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--mist);
}
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 38%;
}
.hero-film {
  opacity: 0;
  transition: opacity 1200ms ease;
}
.hero-film.is-playing {
  opacity: 1;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--wall) 0%, var(--wall) 27%, rgb(242 245 246 / 0.9) 37%, rgb(242 245 246 / 0.45) 50%, rgb(242 245 246 / 0) 62%),
    linear-gradient(0deg, rgb(242 245 246 / 0.7) 0%, rgb(242 245 246 / 0) 18%);
}
.hero-content {
  padding-block: clamp(40px, 7vh, 88px) clamp(56px, 9vh, 104px);
}
.hero-copy {
  max-width: min(560px, 42vw);
}
.hero-eyebrow {
  font-size: 1rem;
  font-weight: 500;
  color: var(--rust);
  letter-spacing: 0.01em;
}
.hero h1 {
  margin: 18px 0 26px;
  font-size: clamp(3.1rem, 1.6rem + 4.4vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.024em;
  font-weight: 400;
}
.hero h1 .line {
  display: block;
}
.hero h1 em {
  font-weight: 350;
  padding-bottom: 0.06em;
}
.hero-lede {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.34rem);
  line-height: 1.5;
  max-width: 31ch;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 34px;
}
.hero-label {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  max-width: 300px;
  padding: 10px 14px;
  background: rgb(251 252 252 / 0.92);
  box-shadow: 0 10px 24px -18px rgb(24 37 46 / 0.6);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.hero-label strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.facts {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px clamp(20px, 3vw, 48px);
  padding-block: 26px 30px;
}
.facts li {
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
  line-height: 1.35;
}
.facts strong {
  display: block;
  font-weight: 500;
  font-size: 1.0625rem;
}
.facts span {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.facts .nowrap {
  display: inline;
  margin: 0;
  white-space: nowrap;
}
/* Concept demo: a small caption under the facts strip. */
.facts-note {
  margin-top: -14px;
  padding-bottom: 22px;
  padding-left: calc(var(--gutter) + 17px);
}

/* hero intro: the film opens around one person, then the copy settles in */
@keyframes aperture {
  from {
    --aperture: 0%;
  }
  to {
    --aperture: 160%;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.motion-ok .hero-media:not(.is-open) {
  -webkit-mask-image: radial-gradient(circle at 64% 34%, #000 var(--aperture), transparent calc(var(--aperture) + 16%));
  mask-image: radial-gradient(circle at 64% 34%, #000 var(--aperture), transparent calc(var(--aperture) + 16%));
  animation: aperture 1900ms var(--ease-out) 120ms both;
}
.motion-ok .hero-copy > * {
  animation: rise 900ms var(--ease-out) both;
}
.motion-ok .hero-copy > :nth-child(1) {
  animation-delay: 380ms;
}
.motion-ok .hero-copy > :nth-child(2) {
  animation-delay: 460ms;
}
.motion-ok .hero-copy > :nth-child(3) {
  animation-delay: 560ms;
}
.motion-ok .hero-copy > :nth-child(4) {
  animation-delay: 640ms;
}
.motion-ok .facts li {
  animation: fade 900ms ease both;
  animation-delay: calc(820ms + var(--i, 0) * 70ms);
}
.motion-ok .facts-note {
  animation: fade 900ms ease 1100ms both;
}
.motion-ok .hero-label {
  animation: fade 900ms ease 1500ms both;
}

@media (max-width: 860px) {
  .hero-stage {
    min-height: 0;
    display: block;
  }
  .hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    height: clamp(260px, 46svh, 480px);
  }
  .hero-media img,
  .hero-media video {
    object-position: 66% 30%;
  }
  .hero-shade {
    display: none;
  }
  .hero-content {
    padding-block: 26px 8px;
  }
  .hero-copy {
    max-width: 36rem;
  }
  .hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(2.7rem, 1.7rem + 5vw, 4.4rem);
  }
  .hero-actions {
    margin-top: 24px;
  }
  .hero-label {
    top: calc(clamp(260px, 46svh, 480px) - 52px);
    bottom: auto;
    right: 12px;
    max-width: 230px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 28px 8px;
  }
  .facts-note {
    margin-top: 10px;
    padding-bottom: 8px;
  }
}

/* ---------- section scaffolding ---------- */

.section {
  padding-block: var(--section-y);
}
.section-title {
  font-size: clamp(2.2rem, 1.45rem + 2.6vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
}
.lede {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}
.small-print {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* frames: a paper mat around every photograph, like a print on a wall */
.mat {
  background: var(--paper);
  padding: clamp(10px, 1.3vw, 18px);
  outline: 1px solid rgb(24 37 46 / 0.1);
  box-shadow: var(--shadow-frame);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.mat img {
  width: 100%;
  height: auto;
}

/* ---------- full attention: the blinds open on a conversation ---------- */

.attention-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: center;
}
.blinds-figure {
  margin: 0;
}
.blinds-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mist);
}
.blinds-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ten soft-edged slats; --blind runs from -0.6% (closed) to 10.6% (open) */
.motion-ok .blinds-over {
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0, #000 calc(var(--blind) - 0.5%), transparent calc(var(--blind) + 0.5%), transparent 10%);
  mask-image: repeating-linear-gradient(to bottom, #000 0, #000 calc(var(--blind) - 0.5%), transparent calc(var(--blind) + 0.5%), transparent 10%);
  --blind: -0.6%;
}
.blinds-figure figcaption {
  margin-top: 16px;
}
.attention-copy .section-title {
  max-width: 13ch;
}
.pull {
  margin: 36px 0 28px;
}
.pull blockquote {
  margin: 0;
}
.pull blockquote p {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
  line-height: 1.36;
  font-style: italic;
  font-weight: 350;
  color: var(--ink);
  text-indent: -0.42em;
}
.pull figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.attention-copy > p {
  max-width: 40ch;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .attention-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- first visit: the dial ---------- */

.first-visit {
  background: var(--mist);
}
.fv-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
/* the heading and the dial stay in view while the steps scroll past */
.fv-side {
  position: sticky;
  top: calc(var(--header-h) + 4vh);
}
.fv-side .lede {
  margin-top: 20px;
}
.dial {
  margin: clamp(28px, 4vh, 48px) 0 0;
}
.dial-art {
  position: relative;
  width: min(100%, 360px, 40vh);
  aspect-ratio: 1;
  container-type: inline-size;
}
.dial-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dial .ticks-minor {
  stroke: var(--line-strong);
  stroke-width: 8;
  stroke-dasharray: 1.2 18.278;
  stroke-dashoffset: 0.6;
  fill: none;
}
.dial .ticks-major {
  stroke: var(--ink);
  stroke-width: 15;
  stroke-dasharray: 2.4 94.989;
  stroke-dashoffset: 1.2;
  fill: none;
}
.dial .arc {
  fill: none;
  stroke: var(--rust);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
.dial .dot {
  fill: var(--ink);
  opacity: 1;
}
.dial .dot-range {
  opacity: 0.3;
}
.dial-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
  pointer-events: none;
}
.dial-center span {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.dial-center strong {
  font-weight: 300;
  font-size: clamp(2.6rem, 2rem + 2vw, 4rem);
  font-size: 17cqi;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 6px 0 8px;
}
.dial-legend {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.key {
  display: flex;
  align-items: center;
  gap: 12px;
}
.key::before {
  content: "";
  flex: none;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: var(--rust);
}
.key-clean::before {
  height: 4px;
  border-radius: 0;
  background: radial-gradient(circle, var(--ink) 1.9px, transparent 2.2px) 0 50% / 8px 4px repeat-x;
}

.motion-ok .dial .arc {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2400ms var(--ease-in-out);
}
.motion-ok .dial.is-drawn .arc {
  stroke-dashoffset: 0;
}
.motion-ok .dial .dot {
  opacity: 0;
  transition: opacity 420ms ease;
  transition-delay: calc(var(--i) * 22ms);
}
.motion-ok .dial.is-clean .dot {
  opacity: 1;
}
.motion-ok .dial.is-clean .dot-range {
  opacity: 0.3;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps .step:first-child {
  border-top: 0;
  padding-top: 8px;
}
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0 18px;
  padding: 34px 0 38px;
  border-top: 1px solid var(--line);
}
.step-n {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 1.0625rem;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}
.step.is-active .step-n {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--on-rust);
}
.step h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.step p {
  margin-top: 10px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.step-optional {
  border-top: 1px dashed var(--line-strong);
}
.step-optional .step-n {
  border-style: dashed;
  font-size: 0.8rem;
}
.step-optional h3 {
  font-style: italic;
  font-weight: 400;
}
.reassure {
  margin-top: 28px;
  padding: 26px 28px;
  background: var(--paper);
  outline: 1px solid rgb(24 37 46 / 0.08);
}
.reassure h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--rust);
}
.reassure p {
  margin-top: 8px;
  color: var(--ink);
  max-width: 50ch;
}

@media (max-width: 960px) {
  .fv-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .fv-side {
    position: static;
  }
  .dial {
    display: grid;
    justify-items: center;
  }
  .dial-art {
    width: min(100%, 300px);
  }
  .dial-legend {
    justify-self: stretch;
    max-width: 340px;
    margin-inline: auto;
  }
  .steps .step:first-child {
    border-top: 1px solid var(--line);
    padding-top: 34px;
  }
}

/* ---------- care: a salon hang of six services ---------- */

.care-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.salon {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  row-gap: 56px;
}
.work figure {
  margin: 0;
}
/* Desktop: two hangs of three, every frame centred on one eye-level line, labels on one line below. */
@media (min-width: 961px) {
  .salon {
    grid-template-columns: repeat(24, minmax(0, 1fr));
    grid-template-rows: auto auto clamp(80px, 8vw, 132px) auto auto;
    column-gap: clamp(20px, 2.6vw, 44px);
    row-gap: 0;
  }
  .work,
  .work figure {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
  }
  .work .mat {
    align-self: center;
  }
  .work .label {
    align-self: start;
  }
  .w1 {
    grid-column: 1 / 8;
    grid-row: 1 / span 2;
  }
  .w2 {
    grid-column: 8 / 18;
    grid-row: 1 / span 2;
  }
  .w3 {
    grid-column: 18 / 25;
    grid-row: 1 / span 2;
  }
  .w4 {
    grid-column: 1 / 11;
    grid-row: 4 / span 2;
  }
  .w5 {
    grid-column: 11 / 18;
    grid-row: 4 / span 2;
  }
  .w6 {
    grid-column: 18 / 25;
    grid-row: 4 / span 2;
  }
}
.label {
  margin-top: 22px;
  max-width: 36ch;
}
.label h3 {
  font-size: 1.32rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.008em;
}
.label .medium {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.label .note {
  margin-top: 10px;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.care-foot {
  margin-top: clamp(48px, 5vw, 72px);
}
@media (hover: hover) and (pointer: fine) {
  .work:hover .mat {
    transform: translateY(-5px);
    box-shadow: var(--shadow-frame-lift);
  }
}
.motion-ok .work {
  opacity: 0;
  transform: translateY(26px);
}
.motion-ok .work.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

@media (min-width: 601px) and (max-width: 960px) {
  .salon .work:nth-child(even) {
    margin-top: 48px;
  }
}
@media (max-width: 600px) {
  .salon {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 52px;
  }
  .salon .work:nth-child(even) {
    padding-left: 18px;
  }
  .salon .work:nth-child(odd) {
    padding-right: 18px;
  }
}

/* ---------- insurance and cost ---------- */

.money {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.money-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
}
.money-head {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 6vh);
}
.money-head .lede {
  margin-top: 22px;
}
.why {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 40ch;
}
.why h3 {
  font-size: 1.0625rem;
  font-weight: 500;
}
.why p {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--ink-soft);
}
.group + .group {
  margin-top: clamp(48px, 6vw, 80px);
}
.group-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--rust);
  padding-bottom: 14px;
}
.answers {
  margin: 0;
}
.answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 10px clamp(24px, 4vw, 56px);
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
}
.answer dt {
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 500;
}
.answer dd {
  margin: 0;
}
.token {
  display: block;
  font-size: clamp(1.75rem, 1.35rem + 1.1vw, 2.35rem);
  line-height: 1.05;
  font-weight: 350;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--rust);
  padding-bottom: 0.08em;
}
.detail {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 44ch;
}

@media (max-width: 960px) {
  .money-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .money-head {
    position: static;
  }
}
@media (max-width: 600px) {
  .answer {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- the doctor, and the art on the walls ---------- */

.doctor {
  background: var(--ink);
  color: var(--on-dark);
  padding-top: var(--section-y);
  overflow: hidden;
}
.doctor :focus-visible {
  outline-color: var(--rust-light);
}
.doctor-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.kicker {
  font-size: 1rem;
  font-weight: 500;
  color: var(--rust-light);
}
.doctor h2 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.024em;
}
.doctor-lede {
  margin-top: 30px;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
  line-height: 1.42;
  font-weight: 350;
  max-width: 30ch;
}
.doctor-intro > p:not(.kicker):not(.doctor-lede) {
  margin-top: 20px;
  color: var(--on-dark-soft);
  line-height: 1.7;
  max-width: 50ch;
}
.credentials {
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgb(238 242 243 / 0.2);
}
.credentials div + div {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgb(238 242 243 / 0.14);
}
.credentials dt {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rust-light);
}
.credentials dd {
  margin: 8px 0 0;
  line-height: 1.5;
}
.credentials dd span {
  display: block;
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
}
.gallery-note {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 7vw, 120px);
  align-items: end;
  margin-top: clamp(80px, 10vw, 136px);
}
.gallery-note h3 {
  font-size: clamp(1.8rem, 1.3rem + 1.9vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}
.gallery-note h3 em {
  font-weight: 350;
}
.gallery-note p {
  color: var(--on-dark-soft);
  line-height: 1.7;
}
.marquee {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgb(238 242 243 / 0.16);
  padding-block: clamp(22px, 3vw, 40px) clamp(40px, 5vw, 72px);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0;
  font-size: clamp(2.4rem, 1.2rem + 5.4vw, 6.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.marquee-track span {
  padding-right: 0.7em;
  white-space: nowrap;
}
.marquee-track span:nth-child(even) {
  font-style: italic;
  font-weight: 300;
  color: var(--rust-light);
}
.marquee-track .dup {
  display: none;
}
.js .marquee-track {
  flex-wrap: nowrap;
  width: max-content;
  animation: marquee 80s linear infinite;
  animation-play-state: paused;
}
.js .marquee-track .dup {
  display: inline;
}
.motion-ok .marquee-track {
  animation-play-state: running;
}
@media (hover: hover) and (pointer: fine) {
  .motion-ok .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 960px) {
  .doctor-grid,
  .gallery-note {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- patients' words ---------- */

.voices-title {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  line-height: 1.15;
}
.voices-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 104px);
  margin-top: clamp(40px, 5vw, 64px);
  align-items: start;
}
.voice {
  margin: 0;
}
.voice blockquote {
  margin: 0;
}
.voice blockquote::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-bottom: 26px;
  background: var(--rust);
}
.voice blockquote p {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.85rem);
  line-height: 1.38;
  font-weight: 350;
  letter-spacing: -0.006em;
}
.voice-small blockquote p {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
}
.voice figcaption {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.voice-small {
  margin-top: clamp(0px, 6vw, 96px);
}
.voices-source {
  margin-top: clamp(48px, 6vw, 80px);
  max-width: 70ch;
}
@media (max-width: 860px) {
  .voices-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .voice-small {
    margin-top: 0;
  }
}

/* ---------- visit: one decisive color block ---------- */

.visit {
  background: var(--rust);
  color: var(--rust-text);
}
.visit :focus-visible {
  outline-color: var(--on-rust);
}
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.visit h2 {
  color: var(--on-rust);
  max-width: 14ch;
}
.big-phone {
  display: inline-block;
  margin-top: clamp(28px, 4vw, 48px);
  color: var(--on-rust);
  font-size: clamp(2.3rem, 1rem + 6.8vw, 7.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 0.1em;
  border-bottom: 2px solid rgb(255 252 250 / 0.35);
  transition: border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .big-phone:hover {
    border-bottom-color: var(--on-rust);
  }
}
.visit-call > p {
  margin-top: 28px;
  max-width: 42ch;
}
.visit-details h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-rust);
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(255 252 250 / 0.28);
}
.visit-details > * + h3 {
  margin-top: 36px;
}
.hours {
  margin: 12px 0 0;
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}
.hours dt {
  font-weight: 500;
  color: var(--on-rust);
}
.hours dd {
  margin: 0;
  text-align: right;
}
.visit-details address {
  font-style: normal;
  margin-top: 12px;
  line-height: 1.6;
}
.visit-details .link-line {
  margin-top: 10px;
  color: var(--on-rust);
}
.visit-details .contact-lines {
  margin-top: 12px;
  line-height: 1.8;
}
.visit-details .contact-lines a {
  color: var(--on-rust);
  overflow-wrap: anywhere;
}
@media (max-width: 960px) {
  .visit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding-block: clamp(56px, 7vw, 88px) 40px;
}
.site-footer :focus-visible {
  outline-color: var(--rust-light);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgb(238 242 243 / 0.14);
}
.footer-mark {
  font-family: "Josefin Sans", "Jost", sans-serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.footer-top p + p {
  margin-top: 6px;
}
.footer-top a {
  color: var(--on-dark);
}
.footer-fine {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 82ch;
}
.footer-fine a {
  color: var(--on-dark);
}

/* ---------- mobile call bar and motion toggle ---------- */

.callbar {
  position: fixed;
  left: 12px;
  right: 76px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: var(--z-callbar);
  transform: translateY(150%);
  transition: transform 340ms var(--ease-drawer);
}
.callbar .btn {
  width: 100%;
  box-shadow: 0 16px 32px -16px rgb(24 37 46 / 0.6);
}
.callbar.is-shown {
  transform: none;
}
@media (min-width: 861px) {
  .callbar {
    display: none;
  }
}

.motion-toggle {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .motion-toggle:hover {
    border-color: var(--ink);
  }
}
.motion-toggle .mt-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.motion-toggle[hidden] {
  display: none;
}
.motion-toggle:active {
  transform: scale(0.97);
}
.mt-icon {
  position: relative;
  width: 12px;
  height: 14px;
  flex: none;
}
.mt-icon::before,
.mt-icon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
  border-radius: 1px;
}
.mt-icon::before {
  left: 0;
}
.mt-icon::after {
  right: 0;
}
.motion-toggle[aria-pressed="true"] .mt-icon::before {
  width: 0;
  height: 0;
  left: 1px;
  border-radius: 0;
  background: none;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
}
.motion-toggle[aria-pressed="true"] .mt-icon::after {
  display: none;
}
@media (max-width: 860px) {
  .motion-toggle {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: var(--z-toggle);
    width: 52px;
    height: 52px;
    box-shadow: 0 12px 28px -18px rgb(24 37 46 / 0.55);
  }
  .js .site-footer {
    padding-bottom: 104px;
  }
}

/* ---------- print ---------- */

@media print {
  .site-header,
  .callbar,
  .motion-toggle,
  .hero-media,
  .marquee {
    display: none !important;
  }
  .motion-ok .work {
    opacity: 1;
    transform: none;
  }
}
