/* Phase 1A only. Legacy stylesheet still owns the sections below the hero. */
.site-header {height:var(--header);padding:6px var(--space-md);background:rgba(254,249,240,.94);backdrop-filter:blur(10px);box-shadow:none;font-family:var(--font-body);}
.site-header.is-scrolled {box-shadow:none;border-bottom:1px solid rgba(43,45,42,.12);}
.brand-logo {width:117px;height:61px;object-fit:contain;}
.menu-toggle {font-size:11px;letter-spacing:.08em;gap:12px;padding:0;}
.menu-lines {width:19px;height:10px;border-block:1px solid currentColor;}
#navigation {background:var(--color-surface);padding-inline:var(--space-md);}
.hero {padding:var(--header) 0 0;height:100vh;height:100svh;min-height:480px;max-height:1100px;background:var(--color-surface);}
.slideshow {height:100%;position:relative;touch-action:pan-y;background:var(--color-stone);}
.slide {transition:opacity var(--hero-fade) ease,visibility var(--hero-fade);}
.slide img {object-position:var(--image-position,50% 32%);transform:scale(1);}
.slide.is-active img {animation:maitri-zoom var(--hero-duration) linear both;}
.slide::after {content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,transparent 45%,rgba(0,0,0,var(--overlay,.66)) 100%);}
.hero-copy {position:absolute;z-index:1;left:var(--text-x,24px);right:24px;bottom:var(--text-y,92px);text-align:var(--text-align,left);color:var(--color-surface);text-shadow:0 1px 8px rgba(0,0,0,.2);}
.hero-name {font:italic 20px/1.5 var(--font-heading);margin-bottom:6px;}
.hero-heading {font:400 clamp(25px,7vw,42px)/1.25 var(--font-heading);letter-spacing:0;}
.hero-signature {font:italic 16px/1.6 var(--font-heading);margin-top:5px;}
.hero-controls {position:absolute;z-index:3;bottom:max(18px,env(safe-area-inset-bottom));left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--color-surface);}
.hero-progress {display:flex;gap:0;}
.hero-progress button {position:relative;background:none;border:0;padding:0 6px;min-width:44px;height:44px;color:inherit;}
.hero-progress span {display:block;height:2px;background:rgba(255,255,255,.4);}
.hero-progress [aria-current="true"] span {background:var(--color-surface);height:3px;}
.hero :focus-visible {outline:2px solid white;outline-offset:-2px;}
@keyframes maitri-zoom {from{transform:scale(1.018)}to{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.slide,.slide.is-active img{animation:none!important;transition:none!important;transform:none!important;}}

/* Phase 1B: scoped editorial story, selector and gallery. */
.story {display:block;max-width:none;background:var(--color-surface);padding:64px 24px;color:var(--color-charcoal);font-family:var(--font-body);}
.story-inner {max-width:448px;margin:auto;}
.story .eyebrow,.collections-intro .eyebrow {font:500 10px/1.7 var(--font-body);letter-spacing:.2em;color:#745941;margin-bottom:12px;}
.story h2,.collections-intro h2 {font:400 28px/1.3 var(--font-heading);letter-spacing:0;}
.story h2 em,.collections-intro h2 em {font-style:italic;color:#745941;}
.story-text {display:grid;grid-template-columns:1fr;gap:16px;margin-top:24px;font-size:15px;font-weight:300;line-height:1.8;color:#454843;}
.story-values {display:grid;gap:12px;margin:32px 0 0;}
.story-values>div {display:flex;align-items:baseline;justify-content:space-between;gap:12px;background:var(--color-surface-low);padding:14px 16px;}
.story-values dt {font:400 16px/1.5 var(--font-heading);}
.story-values dd {margin:0;text-align:right;font:400 9px/1.5 var(--font-body);text-transform:uppercase;letter-spacing:.08em;color:#745941;}
.collection-showcase {background:var(--color-surface-low);padding:40px 0 64px;--alternate:var(--color-surface-low);}
.collections-intro {padding-inline:24px;}
.collection-selector {margin:20px 0 12px;}
.collection-tabs {gap:24px;margin:0;padding:0 24px 12px;border:0;scrollbar-width:none;scroll-padding-inline:24px;}
.collection-tabs::-webkit-scrollbar {display:none;}
.collection-tabs button {flex:0 0 auto;white-space:nowrap;padding:6px 0;border:0;border-bottom:1px solid transparent;background:none;font:400 18px/1.5 var(--font-heading);color:#454843;}
.collection-tabs button.is-active {background:none;border-bottom-color:var(--color-charcoal);color:var(--color-charcoal);}
.selector-hint {width:25px;bottom:12px;font-size:23px;color:#745941;}
.collection-stage {max-width:900px;margin:auto;}
.gallery-image {height:auto;aspect-ratio:3/4;max-height:none;background:var(--color-stone);}
.gallery-image img {object-position:center 35%;}
.gallery-controls {padding:0;}
.gallery-controls button {width:44px;height:44px;padding:0;background:none;border:0;}
.collection-showcase .product-copy {padding:24px;}
@media(min-width:900px){.collection-showcase .product-section{grid-template-columns:1fr;}.collection-showcase .product-copy{margin-left:0;}.collection-stage{max-width:540px;}.collections-intro,.collection-selector{max-width:588px;margin-inline:auto;}}

/* Phase 1C: scoped sections; preserve approved header/hero/collection styling. */
.editorial-section {padding:64px 24px;background:var(--color-surface);font:300 14px/1.8 var(--font-body);color:var(--color-charcoal);}
.editorial-inner {max-width:448px;margin-inline:auto;}
.editorial-section h2 {font:400 28px/1.35 var(--font-heading);letter-spacing:0;margin:0 0 24px;}
.editorial-section h2 em {font-style:italic;color:#745941;}
.editorial-section h3 {font:400 18px/1.5 var(--font-heading);letter-spacing:0;margin-bottom:4px;}
.section-kicker {font:500 10px/1.8 var(--font-body);letter-spacing:.2em;text-transform:uppercase;color:#745941;margin-bottom:8px;}
.material-photo {height:auto;aspect-ratio:4/3;object-fit:cover;object-position:50% 50%;margin-bottom:24px;}
.material-points {display:grid;gap:14px;}.material-points>div {background:var(--color-surface-low);padding:16px;}
.moment-section {background:#f2ede5;padding-block:48px;}.moment-section h2 {font-size:24px;}.moment-section h2,.moment-section .section-kicker {text-align:center;}
.moment-player {position:relative;aspect-ratio:9/14;background:var(--color-stone);overflow:hidden;}
.moment-player img,.moment-player video {width:100%;height:100%;object-fit:cover;}
.moment-player video {position:absolute;inset:0;object-fit:contain;background:var(--color-charcoal);}
#moment-play {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:56px;height:56px;border:0;background:rgba(254,249,240,.94);font-size:30px;}
#moment-play:disabled {opacity:.5;cursor:default;}
.editorial-section .section-note {font-size:12px;line-height:1.7;color:#62645e;margin-top:16px;}
.order-panel.editorial-section {max-width:none;background:#eae4d9;}
.order-inset {padding:24px;background:#f4efe6;border:1px solid #d8d0c2;}
.order-heading {border-bottom:1px solid #ded5c7;margin-bottom:20px;}.order-heading h2 {font-size:26px;margin-bottom:16px;}
#order-selection {font-size:13px;margin-top:16px;color:#745941;}
#order-form {display:grid;gap:8px;margin:24px 0 0;}
#order-form label {font-size:11px;font-weight:500;letter-spacing:.06em;margin-top:8px;}
#order-form input,#order-form select,#order-form textarea {font:400 16px/1.5 var(--font-body);border:1px solid #d8d0c2;border-radius:0;background:var(--color-surface);padding:12px;width:100%;min-width:0;scroll-margin-top:100px;}
#order-form textarea {resize:vertical;}
#order-form .order-submit {width:100%;padding:16px 10px;border:0;background:var(--color-charcoal);color:var(--color-surface);font:500 11px/1.8 var(--font-body);letter-spacing:.12em;text-transform:uppercase;margin-top:16px;}
#order-feedback {font-size:13px;margin:8px 0 0;}
.order-alternative {text-align:center;border-top:1px solid #ded5c7;padding-top:20px;margin-top:24px;font-size:12px;}
.social-links {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px 24px;}
.social-links a,.social-links button {display:inline-flex;align-items:center;min-height:44px;font:400 12px/1.5 var(--font-body);color:#745941;padding:8px 0;background:none;border:0;}
.channel-status {flex-basis:100%;font:400 12px/1.6 var(--font-body);color:#62645e;}
.care-section {background:var(--color-surface-low);}.care-list {list-style:none;padding:0;counter-reset:care;display:grid;gap:24px;}
.care-list li {counter-increment:care;position:relative;padding-left:40px;}.care-list li::before {content:counter(care,decimal-leading-zero);position:absolute;left:0;top:0;font:400 23px/1.4 var(--font-heading);color:#745941;}
.connect-section {text-align:center;padding-block:48px;}.connect-photo {height:auto;aspect-ratio:16/9;object-fit:cover;object-position:50% 42%;margin-bottom:24px;}.connect-section h2 {font-size:24px;margin-bottom:12px;}.connect-section .social-links {margin-top:16px;}
.maitri-footer {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:36px 24px 72px;background:var(--color-surface);border-top:1px solid var(--color-stone);text-align:center;}
.maitri-footer img {width:120px;height:62px;object-fit:contain;}.maitri-footer .footer-signature {font:italic 14px/1.6 var(--font-heading);color:#745941;}.footer-links {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;font:400 11px/1.6 var(--font-body);}.footer-links .social-links {gap:16px;}.footer-links>a {min-height:44px;display:flex;align-items:center;}
.to-top {padding:8px 12px;min-height:44px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));}
@media(max-width:374px){.order-inset{padding:20px 16px;}}

/* Failure states retain layout; no broken-image glyph. */
img.image-unavailable {opacity:0;}
.gallery-image:focus-visible {outline:2px solid #745941;outline-offset:-3px;}
.social-links a,.social-links button {min-width:44px;justify-content:center;}

/* Contrast correction: 21px price text needs normal-text contrast. */
.product-price {color:#745941;}
#order-form input::placeholder,#order-form textarea::placeholder {color:#62645e;opacity:1;}

/* Phase 1E: edge affordances occupy the image, never a separate row. */
.product-gallery {position:relative;}
.gallery-controls {position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none;gap:0;}
.gallery-controls button {pointer-events:auto;width:48px;height:52px;min-width:48px;padding:0 9px;color:var(--color-surface);opacity:.62;transition:opacity .2s ease;}
.gallery-controls button:hover,.gallery-controls button:focus-visible,.gallery-controls button:active {opacity:1;color:var(--color-surface);}
.gallery-controls button:focus-visible {outline:2px solid var(--color-surface);outline-offset:-4px;}
.gallery-controls svg {filter:drop-shadow(0 1px 1px rgba(43,45,42,.55));}
.gallery-controls button:disabled {opacity:.5;}
.gallery-image img:not([src]) {opacity:0;}
.story h2,.collections-intro h2,.editorial-section h2,.hero-name {letter-spacing:0;word-spacing:normal;}
.story h2 em,.collections-intro h2 em,.editorial-section h2 em {color:inherit;}
.editorial-emphasis {color:#745941;}

/* Keep Vietnamese letters and their accents in the same face for small serif text. */
.story-values dt,.hero-signature,.maitri-footer .footer-signature {font-family:'Playfair Display','Times New Roman',serif;}

/* Keep branding/body stacks; use a consistent fallback for Vietnamese editorial titles and collection names. */
.story h2,.collections-intro h2,.editorial-section h2,.hero-name,.collection-tabs button {font-family:var(--font-editorial);}

/* Phase 1F: poster-led video gallery and native modal viewer only. */
.moment-section h2 {font-style:italic;}
.video-poster-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.video-poster {position:relative;display:block;width:100%;aspect-ratio:3/4;padding:0;border:0;background:var(--color-stone);overflow:hidden;}
.video-poster.video-featured {grid-column:1/-1;aspect-ratio:4/5;}
.video-poster img {object-fit:cover;object-position:50% 32%;}
.video-play-mark {position:absolute;inset:0;display:grid;place-items:center;color:var(--color-surface);filter:drop-shadow(0 1px 2px rgba(43,45,42,.6));}
.video-poster:focus-visible {outline:2px solid #745941;outline-offset:4px;}
.video-viewer {position:fixed;inset:0;margin:0;padding:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;border:0;background:#242420;color:var(--color-surface);overflow:hidden;}
.video-viewer::backdrop {background:#242420;}
.video-viewer[open] {display:flex;align-items:center;justify-content:center;}
.video-viewer-stage {position:relative;aspect-ratio:9/16;height:calc(100% - 112px);max-height:960px;max-width:100%;touch-action:pan-y;}
.viewer-poster,.viewer-media,.viewer-media video {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
.video-viewer button {display:grid;place-items:center;padding:0;border:0;background:none;color:var(--color-surface);min-width:48px;min-height:48px;z-index:4;}
.video-close {position:absolute;right:max(12px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top));}
.video-prev,.video-next {position:absolute;top:50%;transform:translateY(-50%);opacity:.7;}
.video-prev {left:0;}.video-next {right:0;}
.video-viewer button:hover,.video-viewer button:focus-visible {opacity:1;}
.video-viewer :focus-visible {outline:2px solid var(--color-surface);outline-offset:-3px;}
.video-collection-label {position:absolute;left:20px;right:20px;top:24px;text-align:center;font:italic 24px/1.4 var(--font-editorial);text-shadow:0 1px 6px #242420;opacity:0;transition:opacity .35s;pointer-events:none;z-index:2;}
.video-collection-label.is-visible {opacity:1;}
.video-viewer-status {position:absolute;left:20px;right:20px;bottom:72px;padding:12px;text-align:center;font:400 13px/1.7 var(--font-body);background:rgba(36,36,32,.85);z-index:2;}
.video-viewer-status:empty {display:none;}
