/* Hallmark · shape: Feature Stack · genre: editorial · theme: Atelier (deal 2/3, seed service-yen-clinic-doctor-led-e6cd·f32c6a23·2026-11-07·r0) · job: book · draw: 183208
 * hero: Poster · nav: slab · footer: colophon block · imagery: photographs, the clinic's own 4 · signature: the doctor's hands at the fat-grafting cannula, full-bleed, close
 * axes: light/roman-serif/cool · posture: restrained · contrast: pass · fold: pass · brand: Yen Clinic (spec 2026-11-07) · v2.0.0
 * hero-review: in-thread · finish-review: subagent · 8 findings · 8 resolved · gap: none */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: R, the Switcher the draw dealt was cut because the Feature Stack already sorts the methods by scar type */
/* Hallmark · dismissed 40 · the hero text sits in the lower 40% of the scrim where the ink is at 78 to 90%; the gradient's transparent end lies above the text block */
/* Hallmark · dismissed 25 · .flow p and .steps p are one-sentence captions under a numbered step, legal from 28ch */
/* Hallmark · waive 44c · photo fills the green band top to bottom and bleeds off the right edge · the band is the scar page's hero frame, so its centre is the band's centre */
/* Hallmark · answered F4 · .btn--gold is the primary recipe recoloured for the green band, never beside .btn--primary on one screen */
/* Hallmark · answered F13 · Newsreader stands in for Sentient, which has no Vietnamese glyphs; same light roman role, still two families */

/* ---------- document ---------- */
:root { --banner-height: 72px; --bookbar-height: 64px; --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.26 0 0 0 0 0.2 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); }
html { scroll-padding-top: calc(var(--banner-height) + var(--space-lg)); }
body { color: var(--color-ink-2); line-height: 1.6; font-synthesis: none; }
h1, h2 { font-weight: var(--display-weight); color: var(--color-ink); }
h3 { font-weight: var(--serif-small); color: var(--color-ink); }
.lead { color: var(--color-ink-2); }
/* a short gold rule opens each section head: the one ornament the system repeats */
#main h2:not(.statement__line):not(.form__head)::before { content: ""; display: block; width: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-gold); margin-bottom: var(--space-lg); }
a { text-decoration-color: color-mix(in oklab, var(--color-accent) 70%, transparent); transition: text-decoration-color var(--dur-short) var(--ease-out); }
a:hover { text-decoration-color: var(--color-accent); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-xl); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-pill); background: transparent; color: var(--color-accent); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn--on-ink { border-color: var(--color-paper); color: var(--color-paper); }
.btn--on-ink:hover { background: var(--color-paper); color: var(--color-ink); }
.btn--on-ink:focus-visible { outline-color: var(--color-paper); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); }
.link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-gold); text-underline-offset: 0.3em; }
.link:hover { color: var(--color-accent); }
.link--on-ink { color: var(--color-paper); text-decoration-color: color-mix(in oklab, var(--color-paper) 60%, transparent); }
.link--on-ink:hover { text-decoration-color: var(--color-paper); }
.link--on-ink:focus-visible { outline-color: var(--color-paper); }
@media (prefers-reduced-motion: reduce) { .btn, a { transition: background-color var(--dur-short) linear, color var(--dur-short) linear; } }


/* ---------- hero: poster ---------- */
.hero { position: relative; min-height: calc(96dvh - var(--banner-height)); display: grid; align-items: end; isolation: isolate; }
.hero__photo { position: absolute; inset: 0; margin: 0; z-index: 1; }
.hero__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: sepia(0.12) saturate(0.95) contrast(0.97); }
.hero__layer { position: relative; z-index: 2; width: 100%; padding-block: var(--space-3xl) var(--space-2xl); background: linear-gradient(to top, color-mix(in oklab, var(--color-ink) 90%, transparent) 0%, color-mix(in oklab, var(--color-ink) 78%, transparent) 60%, transparent 100%); }
.hero__text { display: grid; gap: var(--space-lg); }
.hero h1 { color: var(--color-paper); font-size: var(--text-display); line-height: 1.02; letter-spacing: var(--tracking-display); max-width: 18ch; }
.hero .lead { color: color-mix(in oklab, var(--color-paper) 92%, transparent); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
@media (max-width: 60rem) { .hero { min-height: 88dvh; } }

/* ---------- sections ---------- */
section > .container { padding-inline: var(--gutter); }
.place { padding-block: var(--section-gap) var(--section-gap-s); }
.place h2 { margin-bottom: var(--space-2xl); }
.ruled-table { width: 100%; border-collapse: collapse; border-top: var(--rule-head) solid var(--color-gold); font-variant-numeric: tabular-nums; }
.ruled-table th, .ruled-table td { text-align: left; vertical-align: top; padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.ruled-table thead th { font-weight: 400; font-size: var(--text-sm); color: var(--color-muted); padding-block: var(--space-sm); }
.ruled-table tbody th { font-family: var(--font-display); font-weight: var(--serif-small); font-size: var(--text-title); color: var(--color-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ruled-table td { color: var(--color-ink-2); }
.place__note { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* feature stack */
.stack { padding-block: var(--section-gap-l); background: var(--color-paper-2); }
.sticky-stack { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl) var(--gap-columns); }
.pane-sticky { position: sticky; top: calc(var(--banner-height) + var(--space-xl)); align-self: start; display: grid; gap: var(--space-lg); justify-items: start; }
.pane-scroll { display: grid; gap: var(--space-2xl); }
/* one containment layer: a flat ivory card with a gold-tinted hairline, no shadow */
.stock { position: relative; border-radius: var(--radius-card); background: var(--color-card); border: var(--rule-hair) solid var(--color-card-edge); }
.card { padding: var(--space-xl); display: grid; gap: var(--space-md); align-content: start; }
.card h3 { font-size: var(--text-xl); }
.card p { max-width: 48ch; }
.card--photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-lg); align-items: start; }
.card--photo > div { display: grid; gap: var(--space-md); }
.ruled { list-style: none; margin: var(--space-xs) 0 0; padding: 0; border-top: var(--rule-head) solid var(--color-gold); }
.ruled > li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* photographs */
.photo { position: relative; margin: 0; border-radius: var(--radius-card); }
.photo > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.photo--small { aspect-ratio: auto; align-self: stretch; min-height: 360px; }
.photo--portrait { aspect-ratio: 4 / 5; min-height: 440px; }
.photo--wide { aspect-ratio: 4 / 3; min-height: 440px; }
.caption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* doctors: rows beside a head block */
.doctors { padding-block: var(--section-gap-l); }
.doctors__head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.doctors__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.rows { margin: 0; border-top: var(--rule-head) solid var(--color-gold); }
.rows > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); padding: var(--space-xl) 0 var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows dt { font-family: var(--font-display); font-weight: var(--serif-small); font-size: var(--text-title); color: var(--color-ink); line-height: 1.2; }
.rows dd { margin: 0; max-width: 52ch; }

/* cost: band with steps */
.band { background: var(--color-paper); }
.cost { padding-block: var(--section-gap-s); border-top: var(--rule-head) solid var(--color-gold); border-bottom: var(--rule-head) solid var(--color-gold); }
.cost__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.cost__head { display: grid; gap: var(--space-md); }
.cost__head > p:not(.lead) { max-width: 48ch; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.steps > li { counter-increment: step; display: grid; gap: var(--space-xs); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.steps > li::before { content: counter(step); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-3xl); line-height: 1; color: var(--color-accent); }
.steps h3 { font-size: var(--text-title); }
.steps p { max-width: 36ch; }

/* booking: the card beside the last photograph */
.booking { padding-block: var(--section-gap-l) var(--section-gap); }
.booking__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.form { padding: var(--space-xl); display: grid; gap: var(--space-lg); }
.form__head { font-size: var(--text-2xl); }
.form__line { max-width: 40ch; }
.field { display: grid; gap: var(--space-xs); }
.field label { font-size: var(--text-sm); color: var(--color-ink-2); }
.field input { min-height: 48px; padding: 0 var(--space-sm); border: 0; border-bottom: 1px solid var(--color-muted); border-radius: 0; background: transparent; color: var(--color-ink); outline: 2px solid transparent; outline-offset: 3px; transition: border-color var(--dur-short) var(--ease-out); }
.field input:focus-visible { outline-color: var(--color-focus); }
.field input[aria-invalid] { border-bottom-color: var(--color-error); }
.field input:disabled { opacity: 0.55; cursor: not-allowed; }
.seg { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.seg legend { font-size: var(--text-sm); color: var(--color-ink-2); margin-bottom: var(--space-xs); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); cursor: pointer; color: var(--color-ink); box-shadow: inset 1px 1px 0 color-mix(in oklab, var(--color-ink) 6%, transparent); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seg label:hover { background: var(--color-paper-2); }
.seg input:checked + label { border-color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink), inset 2px 2px 0 color-mix(in oklab, var(--color-ink) 12%, transparent); background: var(--card-shade); }
.seg input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.form .btn--primary { justify-self: start; }
.form__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }



/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .sticky-stack, .doctors__grid, .cost__grid, .booking__grid, .card--photo, .rows > div { grid-template-columns: minmax(0, 1fr); }
  .pane-sticky { position: static; }
  .card { min-height: 0; }
  .photo--portrait, .photo--wide { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ruled-table thead { display: none; }
  .ruled-table tr { display: grid; gap: var(--space-2xs); padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .ruled-table th, .ruled-table td { padding: 0; border: 0; }
}
