@font-face { font-family: 'Hanken Grotesk'; src: url('assets/fonts/HankenGrotesk-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/InstrumentSerif-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/InstrumentSerif-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
 --cream: #F2EDE3; --sand: #D6C8B2; --sage: #9B9B78; --olive: #4C5741; --charcoal: #252820;
 --ink: #252820; --muted: #5d5f52; --line: rgba(37, 40, 32, .18);
 --sans: 'Hanken Grotesk', system-ui, sans-serif; --serif: 'Instrument Serif', Georgia, serif;
 --pad: clamp(1.25rem, 5.4vw, 6rem);
 --ease: cubic-bezier(.22, .8, .24, 1);
 --dark: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--olive); }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 50; background: var(--charcoal); color: var(--cream); padding: .6rem 1rem; border-radius: 99px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

/* World layers */
#world { position: fixed; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.world-ready #world { opacity: 1; }
#world canvas { display: block; width: 100%; height: 100%; }
#fallback { position: fixed; inset: 0; z-index: 0; display: none; background: radial-gradient(120% 90% at 70% 40%, #fbf8f2 0%, var(--cream) 45%, var(--sand) 130%); }
.fallback #fallback { display: block; }
.fallback #world { display: none; }
/* Legibility: a soft wash on the side the copy sits on (opacity set by script); it turns charcoal in scene 04. */
.washes { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.washes i { position: absolute; inset: 0; opacity: 0; --w: color-mix(in srgb, #1F211B calc(var(--dark) * 100%), var(--cream)); --w1: color-mix(in srgb, var(--w) 86%, transparent); --w2: color-mix(in srgb, var(--w) 58%, transparent); }
.wash-left { background: linear-gradient(90deg, var(--w1) 0%, var(--w2) 30%, transparent 54%); }
.wash-right { background: linear-gradient(270deg, var(--w1) 0%, var(--w2) 30%, transparent 54%); }
.wash-split { background: linear-gradient(90deg, var(--w1) 0%, var(--w2) 22%, transparent 36%, transparent 64%, var(--w2) 78%, var(--w1) 100%); }
.wash-bottom { background: linear-gradient(12deg, var(--w1) 0%, var(--w2) 34%, transparent 58%); }
.washes::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 85% 80% at 55% 50%, transparent 55%, rgba(37, 40, 32, .16) 100%); }
.wash-center { background: radial-gradient(ellipse 60% 75% at 50% 55%, var(--w1) 0%, var(--w2) 45%, transparent 100%); }
.grain { position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .07; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Header */
.header { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; gap: 2rem; padding: 1.25rem var(--pad); color: color-mix(in srgb, var(--cream) calc(var(--dark) * 100%), var(--ink)); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 600; letter-spacing: .2em; font-size: .86rem; }
.brand-mark { width: 16px; height: 21px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; position: relative; }
.brand-mark::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 1.6px; height: 9px; background: currentColor; transform: translateX(-50%) rotate(14deg); transform-origin: bottom; }
.header nav { margin-left: auto; display: flex; gap: 2rem; }
/* A soft wash under the header keeps the navigation legible over bright windows in the render. */
.header::before { content: ''; position: absolute; inset: 0 0 -1.5rem; z-index: -1; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--w, var(--cream)) 70%, transparent), transparent); --w: color-mix(in srgb, #1F211B calc(var(--dark) * 100%), var(--cream)); }
.header nav a { text-decoration: none; font-size: .9rem; position: relative; }
.header nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.header nav a:hover::after { right: 0; }
.header-cta { text-decoration: none; font-size: .88rem; font-weight: 500; padding: .62rem 1.15rem; border-radius: 99px; background: color-mix(in srgb, var(--cream) calc(var(--dark) * 100%), var(--charcoal)); color: color-mix(in srgb, var(--charcoal) calc(var(--dark) * 100%), var(--cream)); transition: background .3s; }
.header-cta:hover { background: var(--olive); }

/* Scenes: tall scroll rooms; the copy is pinned and faded by script (--show). */
main { position: relative; z-index: 3; }
.scene { position: relative; }
.scene-hero { height: 250vh; }
.scene-story { height: 330vh; }
.scene-care { height: 340vh; }
.scene-person { height: 250vh; }
.scene-steps { height: 320vh; }
.scene-start { height: 190vh; }
.copy { --show: 1; position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 6.5rem var(--pad) 4rem; max-width: calc(36rem + var(--pad)); opacity: var(--show); transform: translate3d(0, calc((1 - var(--show)) * 18px), 0); }
.js .copy { will-change: opacity, transform; }
.eyebrow { display: flex; align-items: center; gap: .8rem; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); margin-bottom: 1.6rem; }
.eyebrow::before { content: ''; width: 2.2rem; height: 1px; background: currentColor; }
.eyebrow .num { font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 2rem; }
h2 em { display: block; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.scene-story .copy { margin-left: auto; }

/* Hero */
.scene-hero .copy { max-width: none; }
h1 { font-size: clamp(3.6rem, 9.2vw, 10.4rem); line-height: .9; letter-spacing: -.05em; font-weight: 500; margin-bottom: 2rem; max-width: 9.5ch; }
.h1-line { display: block; }
h1 em { font-size: 1.08em; letter-spacing: -.02em; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.5; max-width: 30rem; color: var(--ink); margin-bottom: 2.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: .8rem 1.5rem; border-radius: 99px; text-decoration: none; font-weight: 500; font-size: .95rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s; border: 1px solid var(--charcoal); }
.button-solid { background: var(--charcoal); color: var(--cream); }
.button-solid:hover { background: var(--olive); border-color: var(--olive); }
.button-line { background: rgba(242, 237, 227, .5); backdrop-filter: blur(6px); }
.button-line:hover { background: var(--charcoal); color: var(--cream); }
.scroll-cue { position: fixed; z-index: 4; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: opacity .6s; }
.scroll-cue span { width: 1px; height: 2.6rem; background: linear-gradient(var(--ink), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.past-hero .scroll-cue { opacity: 0; }

/* Scene 02 */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: .4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); opacity: .5; transition: opacity .6s var(--ease); }
.steps li.is-active { opacity: 1; }
.step-n { font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1; color: var(--olive); }
.steps p { color: var(--muted); font-size: .95rem; max-height: 0; overflow: hidden; transition: max-height .7s var(--ease), margin .7s var(--ease); }
.steps li.is-active p { max-height: 5rem; margin-top: .35rem; }

/* Scene 03 */
.care-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.care-list button { all: unset; cursor: pointer; display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; font-size: clamp(1.2rem, 1.7vw, 1.6rem); letter-spacing: -.02em; line-height: 1.2; color: var(--muted); transition: color .4s; }
.care-list button:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.care-n { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--olive); min-width: 1.6rem; }
.care-list li.is-active button { color: var(--ink); }
.care-list li.is-active button span:last-child, .care-list li.is-active button { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--sage); }
.care-detail { max-width: 26rem; color: var(--muted); font-size: .98rem; min-height: 3.2em; padding-left: 2.6rem; border-left: 1px solid var(--line); }
.marker { position: fixed; left: 0; top: 0; z-index: 4; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(37, 40, 32, .8); background: rgba(250, 247, 240, .92); color: var(--ink); box-shadow: 0 6px 18px rgba(37, 40, 32, .16); backdrop-filter: blur(6px); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .4s, background .4s, color .4s; font-family: var(--serif); font-style: italic; font-size: 1rem; }
.marker::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(37, 40, 32, .28); animation: pulse 2.8s var(--ease) infinite; }
.marker.is-active::before { border-color: var(--olive); }
@keyframes pulse { 0% { transform: scale(.85); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .marker::before { animation: none; } }
.marker.is-active { background: var(--olive); color: var(--cream); border-color: var(--olive); }

/* Scene 04: the dark, calm room; copy on both sides of the portrait. */
.scene-person .copy { color: var(--cream); }
.scene-person em, .scene-person .eyebrow { color: #BFC29E; }
.scene-person .copy p:not(.person-name):not(.eyebrow), .scene-person .person-name span, .scene-person .facts dd { color: rgba(242, 237, 227, .72) !important; }
.scene-person .facts { border-top-color: rgba(242, 237, 227, .2); }
@media (min-width: 901px) {
 .scene-person .copy { max-width: none; display: grid; grid-template-columns: minmax(0, 22rem) 1fr minmax(0, 21rem); column-gap: 2rem; align-items: center; }
 .split-a { grid-column: 1; }
 .split-b { grid-column: 3; padding-top: 4.5rem; }
 .scene-person h2 { font-size: clamp(2.1rem, 3.1vw, 3.2rem); }
}
.person-name { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; margin-bottom: 1.4rem; }
.person-name span { display: block; font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; color: var(--muted); margin-top: .4rem; }
.scene-person .copy p:not(.person-name):not(.eyebrow) { color: var(--muted); margin-bottom: 1rem; max-width: 31rem; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 1.6rem; margin: 1.4rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); justify-content: start; }
.facts div { margin: 0; }
.facts dt { font-size: 1.6rem; letter-spacing: -.03em; font-weight: 500; }
.facts dd { margin: 0; font-size: .82rem; color: var(--muted); }

/* Scene 05: copy low on the left, one large quote at a time beside the client's portrait. */
.scene-steps .copy { justify-content: flex-end; padding-bottom: 4.2rem; max-width: calc(41rem + var(--pad)); }
.scene-steps h2 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); margin-bottom: 1.4rem; }
.rating { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.8rem; font-size: .95rem; }
.rating strong { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.rating-count { color: var(--muted); }
.stars { color: var(--olive); letter-spacing: .12em; font-size: .95rem; }
.star-off { color: var(--sand); }
.quotes { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.quote.is-active { opacity: 1; transform: none; }
.quote blockquote { margin: .6rem 0 1rem; font-family: var(--serif); font-size: clamp(1.6rem, 2.75vw, 2.75rem); line-height: 1.1; letter-spacing: -.01em; }
.quote figcaption { font-size: .85rem; color: var(--muted); }
.quote-dots { display: flex; gap: .4rem; margin-top: 1.4rem; }
.quote-dots span { width: 1.6rem; height: 2px; background: var(--line); transition: background .4s; }
.quote-dots span.is-active { background: var(--olive); }

/* Scene 06 */
.scene-start .copy { max-width: calc(40rem + var(--pad)); }
.booking { display: grid; gap: .9rem; padding: 1.6rem; border-radius: 22px; background: rgba(255, 253, 248, .74); backdrop-filter: blur(14px); border: 1px solid rgba(37, 40, 32, .08); max-width: 30rem; }
.booking-title { font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }
.booking label { display: grid; gap: .3rem; font-size: .82rem; color: var(--muted); }
.booking i { font-style: normal; opacity: .7; }
.booking input { font: inherit; font-size: 1rem; color: var(--ink); padding: .72rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .7); }
.booking input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(76, 87, 65, .14); }
.booking input[aria-invalid] { border-color: #9a5b45; }
.booking .button { justify-self: start; margin-top: .3rem; }
.form-help { font-size: .78rem; color: var(--muted); }
.form-status { font-size: .88rem; color: var(--olive); min-height: 1px; }
.studio-info { display: grid; grid-template-columns: repeat(3, auto); gap: 2rem; margin-top: 2rem; font-size: .88rem; justify-content: start; }
.studio-info h3 { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin-bottom: .4rem; }
.studio-info a { text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 901px) {
 /* Form and studio details side by side so the finale fits one screen. */
 /* The finale is centred on the open passage: the one symmetrical composition of the journey. */
 .scene-start .copy { max-width: none; display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 15rem); grid-template-rows: auto auto 1fr; column-gap: 3.5rem; align-content: center; justify-content: center; }
 .scene-start .copy > .eyebrow, .scene-start .copy > h2 { grid-column: 1 / -1; justify-self: center; text-align: center; }
 .scene-start .copy > .eyebrow::after { content: ''; width: 2.2rem; height: 1px; background: currentColor; }
 .scene-start h2 { max-width: 18ch; font-size: clamp(2.4rem, 4.2vw, 4.2rem); }
 .scene-start h2 em { display: inline; }
 .scene-start .studio-info { grid-template-columns: 1fr; margin-top: 0; align-self: end; gap: 1.3rem; }
}
footer { position: relative; z-index: 3; display: flex; justify-content: space-between; padding: 1.4rem var(--pad); font-size: .8rem; color: var(--muted); }
footer a { text-decoration: none; }

/* Without 3D everything reads as a normal page. */
.fallback .scene { height: auto; }
.fallback .copy { position: relative; opacity: 1; transform: none; }
.fallback .steps p { max-height: none; margin-top: .35rem; }
.fallback .steps li { opacity: 1; }
.fallback .quote { grid-area: auto; opacity: 1; transform: none; margin-bottom: 1.6rem; }
.fallback .marker, .fallback .scroll-cue { display: none; }

/* Stacked layout: subject in the upper half, copy in the lower. */
@media (max-width: 900px) and (min-aspect-ratio: 0/1) {
 .header nav { display: none; }
 .header { padding: 1rem 1.25rem; }
 .header-cta { margin-left: auto; padding: .55rem 1rem; }
}
@media (max-width: 900px) and (orientation: portrait) {
 body { font-size: 16px; }
 .washes i { background: linear-gradient(0deg, color-mix(in srgb, var(--w) 95%, transparent) 0%, var(--w1) 38%, transparent 60%) !important; }
 .copy { justify-content: flex-end; padding: 6rem 1.25rem 2.2rem; }
 .scene-hero .copy { padding-bottom: 5.2rem; }
 h1 { font-size: clamp(3rem, 15.5vw, 5.4rem); margin-bottom: 1.2rem; }
 .lede { margin-bottom: 1.6rem; }
 h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-bottom: 1.3rem; }
 .eyebrow { margin-bottom: 1rem; }
 .steps li { padding: .7rem 0; }
 .care-list { margin-bottom: 1rem; }
 .care-list button { padding: .35rem 0; font-size: 1.12rem; }
 .care-detail { padding-left: 1rem; font-size: .9rem; }
 .scene-person .copy p:not(.person-name):not(.eyebrow):last-of-type { display: none; }
 .person-name { font-size: 1.55rem; margin-bottom: .8rem; }
 .facts { gap: 1.1rem; margin-top: .6rem; padding-top: .9rem; }
 .facts dt { font-size: 1.25rem; }
 .scene-start .copy { justify-content: center; }
 .studio-info { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin-top: 1.4rem; }
 .booking { padding: 1.2rem; }
 .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
 .copy { transform: none; }
 .scroll-cue span { animation: none; }
}
.preview .header, .preview .scroll-cue, .preview .marker { display: none; }

/* Paused by the Digicare homepage (off screen): the page's endless animations stop too (the scroll cue, the markers'
   pulse). Only they are named, so pausing or resuming does not restyle the whole page. */
html.preview-paused .scroll-cue span, html.preview-paused .marker::before { animation-play-state: paused !important; }
