:root {
  --cream: #ece0d1;
  --beige: #dbc1ac;
  --brown: #967259;
  --dark-brown: #634832;
  --chocolate: #38220f;
  --white: #fffaf3;
  --ink: #2b1a0c;
  --brown-line-faint: rgba(99, 72, 50, .13);
  --brown-line-soft: rgba(99, 72, 50, .14);
  --brown-line: rgba(99, 72, 50, .25);
  --brown-line-strong: rgba(99, 72, 50, .3);
  --cream-line: rgba(236, 224, 209, .22);
  --cream-line-soft: rgba(236, 224, 209, .2);
  --white-copy: rgba(255, 250, 243, .72);
  --white-copy-muted: rgba(255, 250, 243, .64);
  --white-copy-soft: rgba(255, 250, 243, .62);
  --information-shadow: 0 16px 40px rgba(56, 34, 15, .06);
  --information-shadow-hover: 0 24px 55px rgba(56, 34, 15, .16);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: 0 24px 70px rgba(56, 34, 15, 0.12);
  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --container: min(1180px, calc(100% - 3rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.6; }
body.menu-open, body.modal-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--cream); background: var(--dark-brown); }

.container { width: var(--container); margin-inline: auto; }
.section { padding: clamp(6rem, 10vw, 9.5rem) 0; }
.skip-link { position: fixed; z-index: 1000; top: 1rem; left: 1rem; padding: .75rem 1rem; color: var(--white); background: var(--chocolate); border-radius: .5rem; transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.3rem; color: var(--dark-brown); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { width: 2.2rem; height: 1px; content: ""; background: currentColor; }
.eyebrow-light { color: var(--beige); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .98; }
h1 em, h2 em { font-weight: 400; color: var(--brown); }
h2 { margin-bottom: 0; font-size: clamp(2.8rem, 5.4vw, 5.5rem); letter-spacing: -.045em; }

.site-header { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; color: var(--white); transition: color .3s ease, background .3s ease, box-shadow .3s ease; }
.site-header.scrolled { color: var(--chocolate); background: rgba(236, 224, 209, .94); box-shadow: 0 8px 35px rgba(56, 34, 15, .08); backdrop-filter: blur(14px); }
.nav-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 88px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .8rem; }
.brand-mark { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; border: 0; border-radius: 0; font-family: var(--serif); font-size: 1rem; letter-spacing: -.08em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.brand-copy small { margin-top: .24rem; font-size: .55rem; letter-spacing: .11em; text-transform: uppercase; opacity: .72; }
.primary-nav { display: flex; align-items: center; gap: 1.9rem; font-size: .74rem; font-weight: 600; letter-spacing: .07em; }
.primary-nav a { position: relative; padding-block: .5rem; }
.primary-nav a::after { position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; content: ""; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-phone { display: inline-flex; align-items: center; justify-self: end; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.nav-phone span { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.menu-toggle { display: none; color: inherit; background: none; border: 0; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--chocolate); }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(32, 18, 7, .9) 0%, rgba(45, 27, 13, .65) 46%, rgba(28, 16, 7, .24) 100%), linear-gradient(0deg, rgba(24, 13, 5, .55), transparent 45%), url("/assets/images/madrac-ambient.webp") center 45% / cover no-repeat; transform: scale(1.035); animation: hero-settle 1.8s cubic-bezier(.22, 1, .36, 1) forwards; }
.hero-bg::after { position: absolute; inset: 0; content: ""; background-image: radial-gradient(rgba(255,255,255,.12) .5px, transparent .5px); background-size: 5px 5px; opacity: .18; pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding-top: 8rem; padding-bottom: 7rem; }
.hero-eyebrow { color: var(--beige); }
.hero h1 { max-width: 900px; margin: 0 0 1.8rem; font-size: clamp(4rem, 8.2vw, 8rem); letter-spacing: -.055em; }
.hero h1 em { color: var(--beige); }
.hero-lead { max-width: 600px; margin-bottom: 2.2rem; color: rgba(255, 250, 243, .78); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.button { display: inline-flex; min-height: 3.65rem; align-items: center; justify-content: center; gap: 1.5rem; padding: .9rem 1.6rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(-1px); }
.button:focus-visible, .text-button:focus-visible, .menu-toggle:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--chocolate); box-shadow: 0 14px 28px rgba(28, 15, 5, .22); }
.button-primary:hover { background: #241407; box-shadow: 0 18px 32px rgba(28, 15, 5, .28); }
.hero .button-primary { color: var(--chocolate); background: var(--cream); }
.hero .button-primary:hover { background: var(--white); }
.button-ghost { color: var(--white); border-color: rgba(255, 255, 255, .45); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.12); }
.hero-phone { display: inline-flex; flex-direction: column; margin-top: 3.5rem; }
.phone-label { color: var(--beige); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; }
.hero-phone strong { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 400; }
.hero-footer { position: absolute; z-index: 1; right: 0; bottom: 2rem; left: 0; display: flex; align-items: center; gap: 1rem; color: rgba(255,255,255,.52); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-line { width: 6rem; height: 1px; background: rgba(255,255,255,.35); }

.about { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 8vw, 9rem); align-items: end; }
.section-intro h2 { max-width: 740px; }
.about-copy { padding-bottom: .4rem; }
.about-copy > p { margin-bottom: 2.4rem; color: var(--dark-brown); font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.85; }
.about-signature { display: flex; align-items: center; gap: 1rem; color: var(--dark-brown); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.signature-mark { font-family: var(--serif); font-size: 2.2rem; font-style: italic; font-weight: 400; letter-spacing: -.12em; text-transform: none; }
.image-story { position: relative; display: grid; grid-template-columns: 1fr 240px; gap: 1.2rem; margin-top: 5.5rem; align-items: end; }
.image-story figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); }
.image-story-main { height: min(52vw, 600px); }
.image-story-main img, .image-story-detail img { height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.image-story:hover .image-story-main img { transform: scale(1.025); }
.image-story-detail { height: 240px; }
.image-story-card { position: absolute; right: 190px; bottom: 28px; width: 270px; padding: 1.8rem; color: var(--white); background: var(--chocolate); border-radius: var(--radius-md); box-shadow: var(--shadow); transform: rotate(-2deg); }
.story-number { display: block; margin-bottom: .7rem; font-family: var(--serif); font-size: 3.5rem; line-height: 1; }
.image-story-card p { margin-bottom: 0; color: var(--beige); font-size: .82rem; }

.products { background: var(--beige); }
.section-heading { display: grid; grid-template-columns: 1.25fr .55fr; gap: 5rem; align-items: end; margin-bottom: 4rem; }
.section-heading > p { margin-bottom: .6rem; color: var(--dark-brown); font-size: .95rem; line-height: 1.8; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.product-card { overflow: hidden; background: rgba(255,250,243,.48); border: 1px solid rgba(99,72,50,.13); border-radius: var(--radius-lg); transition: transform .35s ease, box-shadow .35s ease, background .35s ease; }
.product-card:hover { background: rgba(255,250,243,.75); box-shadow: var(--shadow); transform: translateY(-8px); }
.product-image { position: relative; height: clamp(280px, 34vw, 440px); margin: .65rem; overflow: hidden; border-radius: calc(var(--radius-lg) - .5rem); }
.product-image img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.product-card:hover img { transform: scale(1.045); }
.product-index { position: absolute; top: 1rem; right: 1rem; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; color: var(--white); background: rgba(56,34,15,.78); border-radius: 50%; font-size: .65rem; backdrop-filter: blur(8px); }
.featured-label { position: absolute; top: 1rem; left: 1rem; padding: .55rem .85rem; color: var(--white); background: var(--chocolate); border-radius: 999px; font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.product-info { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.5rem 1.6rem; }
.product-info h3 { margin-bottom: .55rem; font-size: clamp(1.7rem, 2.5vw, 2.4rem); }
.product-info p { margin-bottom: 0; color: var(--dark-brown); font-size: .8rem; }
.product-info a { display: grid; flex: 0 0 auto; width: 3rem; height: 3rem; place-items: center; color: var(--white); background: var(--chocolate); border-radius: 50%; transition: transform .25s ease, background .25s ease; }
.product-info a:hover { background: var(--dark-brown); transform: rotate(45deg); }
.product-details-button { margin-top: .85rem; padding: 0 0 .15rem; color: var(--chocolate); background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.product-details-button:hover { color: var(--brown); }
.product-details-button:focus-visible, .product-dialog-close:focus-visible { outline: 3px solid var(--brown); outline-offset: 4px; }
.product-card-featured { color: var(--white); background: var(--dark-brown); }
.product-card-featured:hover { background: var(--chocolate); }
.product-card-featured .product-info p { color: var(--beige); }
.product-card-featured .product-details-button { color: var(--beige); }

.product-dialog { width: min(1080px, calc(100% - 2rem)); max-width: none; height: min(90svh, 820px); max-height: min(90svh, 820px); padding: 0; overflow: hidden; color: var(--ink); background: var(--cream); border: 0; border-radius: var(--radius-lg); box-shadow: 0 32px 90px rgba(28,15,5,.36); }
.product-dialog::backdrop { background: rgba(43,26,12,.72); backdrop-filter: blur(8px); }
.product-dialog-layout { display: grid; grid-template-columns: .85fr 1.15fr; height: 100%; min-height: 0; }
.product-dialog-image { min-height: 100%; margin: 0; overflow: hidden; }
.product-dialog-image img { height: 100%; object-fit: cover; }
.product-dialog-content { position: relative; min-height: 0; padding: clamp(2rem, 5vw, 4.5rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--brown) transparent; scrollbar-gutter: stable; scrollbar-width: thin; }
.product-dialog-content::-webkit-scrollbar { width: .55rem; }
.product-dialog-content::-webkit-scrollbar-track { background: transparent; }
.product-dialog-content::-webkit-scrollbar-thumb { background: var(--brown); border: .18rem solid transparent; border-radius: 999px; background-clip: padding-box; }
.product-dialog-close { position: absolute; top: 1.25rem; right: 1.25rem; display: grid; width: 2.75rem; height: 2.75rem; padding: 0; place-items: center; color: var(--chocolate); background: transparent; border: 1px solid var(--brown-line-strong); border-radius: 50%; cursor: pointer; font-family: var(--sans); font-size: 1.5rem; line-height: 1; transition: color .25s ease, background .25s ease, transform .25s ease; }
.product-dialog-close:hover { color: var(--white); background: var(--chocolate); transform: rotate(90deg); }
.product-dialog-content h2 { max-width: 620px; margin-bottom: 1.5rem; padding-right: 2.5rem; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.product-dialog-lead { max-width: 680px; margin-bottom: 2rem; color: var(--dark-brown); font-size: .92rem; line-height: 1.8; }
.product-specifications { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 2.2rem; border-top: 1px solid var(--brown-line); border-left: 1px solid var(--brown-line); }
.product-specifications div { min-height: 112px; padding: 1rem; border-right: 1px solid var(--brown-line); border-bottom: 1px solid var(--brown-line); }
.product-specifications dt { margin-bottom: .45rem; color: var(--brown); font-size: .61rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.product-specifications dd { margin: 0; color: var(--dark-brown); font-size: .78rem; line-height: 1.55; }
.dialog-order-button { width: fit-content; }

.order-section { color: var(--white); background: var(--dark-brown); }
.order-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.order-copy { position: sticky; top: 130px; }
.order-copy h2 { margin-bottom: 2rem; font-size: clamp(3rem, 5vw, 5rem); }
.order-copy h2 em { color: var(--beige); }
.order-copy > p { max-width: 500px; color: rgba(255,250,243,.68); }
.order-contact { display: flex; flex-direction: column; margin-top: 4rem; }
.order-contact span { color: var(--beige); font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; }
.order-contact a { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.form-card { min-height: 600px; padding: clamp(1.6rem, 4vw, 3rem); color: var(--ink); background: var(--cream); border-radius: var(--radius-lg); box-shadow: 0 28px 70px rgba(28,15,5,.24); }
.form-card-heading { display: flex; justify-content: space-between; margin-bottom: 2.5rem; padding-bottom: 1rem; color: var(--dark-brown); border-bottom: 1px solid rgba(99,72,50,.25); font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.4rem; }
.field > span { color: var(--dark-brown); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field b { color: #9a3e2d; }
.field small { font-weight: 500; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; padding: .95rem 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(99,72,50,.35); border-radius: 0; outline: 0; transition: border-color .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--chocolate); }
.field textarea { resize: vertical; }
.custom-fields { margin: .7rem 0 1.4rem; padding: 1.5rem; background: rgba(219,193,172,.35); border: 1px solid rgba(99,72,50,.12); border-radius: var(--radius-md); animation: custom-in .35s ease both; }
.custom-fields-title { margin-bottom: 1.4rem; color: var(--dark-brown); font-family: var(--serif); font-size: 1.5rem; }
.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.submit-button { width: 100%; justify-content: space-between; margin-top: .4rem; border: 0; }
.submit-button:disabled { cursor: wait; opacity: .65; }
.form-status { min-height: 1.4rem; margin: .8rem 0 0; color: #8f3125; font-size: .78rem; text-align: center; }
.hidden-field { position: absolute; left: -9999px; }
.success-panel { display: grid; min-height: 510px; align-content: center; justify-items: center; padding: 2rem; text-align: center; }
.success-panel[hidden] { display: none; }
.success-icon { display: grid; width: 4.5rem; height: 4.5rem; margin-bottom: 2rem; place-items: center; color: var(--white); background: var(--chocolate); border-radius: 50%; font-size: 1.5rem; box-shadow: 0 12px 25px rgba(56,34,15,.18); }
.success-panel h3 { max-width: 500px; margin: .7rem 0 1rem; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.success-panel > p:not(.eyebrow) { color: var(--dark-brown); }
.text-button { margin-top: 1.5rem; padding: .6rem 0; color: var(--chocolate); background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.benefits { background: var(--cream); }
.benefits-heading { max-width: 850px; margin-bottom: 4rem; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(99,72,50,.25); border-left: 1px solid rgba(99,72,50,.25); }
.benefit-card { position: relative; min-height: 320px; padding: 2rem; border-right: 1px solid rgba(99,72,50,.25); border-bottom: 1px solid rgba(99,72,50,.25); transition: color .35s ease, background .35s ease, transform .35s ease; }
.benefit-card:hover { z-index: 1; color: var(--white); background: var(--chocolate); transform: translateY(-8px); }
.benefit-icon { display: block; margin-bottom: 5rem; font-family: var(--serif); font-size: 2.4rem; }
.benefit-number { position: absolute; top: 2rem; right: 2rem; font-size: .62rem; letter-spacing: .12em; }
.benefit-card h3 { margin-bottom: 1rem; font-size: 1.75rem; }
.benefit-card p { margin: 0; color: var(--dark-brown); font-size: .82rem; line-height: 1.75; transition: color .35s ease; }
.benefit-card:hover p { color: var(--beige); }

.gallery { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery-item { grid-column: span 4; margin: 0; overflow: hidden; border-radius: var(--radius-md); }
.gallery-item-wide { grid-column: span 8; }
.gallery-item-tall { grid-row: span 2; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.gallery-item:hover img { transform: scale(1.045); }

.contact { position: relative; min-height: 700px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--chocolate); }
.contact-image { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34,19,7,.94) 0%, rgba(49,29,13,.73) 48%, rgba(36,21,9,.25) 100%), url("/assets/images/madrac-premium.webp") center / cover no-repeat; }
.contact-content { position: relative; z-index: 1; padding-block: 7rem; }
.contact-content h2 { max-width: 780px; margin-bottom: 1.8rem; }
.contact-content h2 em { color: var(--beige); }
.contact-content > p:not(.eyebrow) { margin-bottom: .3rem; color: var(--beige); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contact-number { display: block; width: fit-content; margin-bottom: 2.2rem; font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4.5rem); }
.button-light { color: var(--chocolate); background: var(--cream); }
.button-light:hover { background: var(--white); }

.site-footer { padding: 2.5rem 0; color: var(--cream); background: var(--chocolate); border-top: 1px solid rgba(236,224,209,.15); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.site-footer p, .site-footer > a { margin: 0; color: rgba(236,224,209,.6); font-size: .66rem; letter-spacing: .06em; }
.footer-meta { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.footer-social { display: flex; align-items: center; gap: .45rem; }
.footer-social a { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; color: var(--beige); border: 1px solid var(--cream-line); border-radius: 50%; transition: color .25s ease, background .25s ease, border-color .25s ease; }
.footer-social a:hover { color: var(--chocolate); background: var(--cream); border-color: var(--cream); }
.footer-social svg { width: 1rem; height: 1rem; fill: currentColor; }
.footer-grid > a:last-child { justify-self: end; color: var(--beige); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-credit { margin: 1.5rem auto 0; padding-top: 1rem; color: rgba(236,224,209,.5); border-top: 1px solid var(--cream-line); font-size: .64rem; letter-spacing: .06em; text-align: center; }
.footer-credit a { color: var(--beige); transition: color .25s ease; }
.footer-credit a:hover { color: var(--cream); }
.footer-credit a:focus-visible { color: var(--cream); outline: 1px solid var(--cream); outline-offset: 3px; }

.location-section { background: var(--cream); }
.location-heading { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: end; margin-bottom: 3rem; }
.location-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.location-heading p:last-child { max-width: 320px; margin: 0 0 .5rem; color: var(--dark-brown); font-size: .95rem; line-height: 1.8; }
.location-map { overflow: hidden; aspect-ratio: 16 / 7; min-height: 380px; border: 1px solid var(--brown-line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.location-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@keyframes hero-settle { from { transform: scale(1.09); } to { transform: scale(1.035); } }
@keyframes custom-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .nav-wrap { grid-template-columns: 1fr auto; }
  .nav-phone { display: none; }
  .menu-toggle { position: relative; z-index: 102; display: grid; width: 2.8rem; height: 2.8rem; padding: .7rem; place-items: center; cursor: pointer; }
  .menu-toggle span { position: absolute; width: 1.4rem; height: 1px; background: currentColor; transition: transform .25s ease; }
  .menu-toggle span:first-child { transform: translateY(-4px); }
  .menu-toggle span:last-child { transform: translateY(4px); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .primary-nav { position: fixed; z-index: 101; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.25rem; padding: 15vh 10vw; color: var(--cream); background: var(--chocolate); transform: translateX(100%); transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a { font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 4rem); font-weight: 400; letter-spacing: -.03em; }
  .about-grid, .section-heading, .order-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 2rem; }
  .section-heading > p { max-width: 600px; }
  .order-copy { position: static; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .product-dialog-layout { grid-template-columns: 1fr; grid-template-rows: minmax(240px, 280px) minmax(0, 1fr); }
  .product-dialog-image { min-height: 0; max-height: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
  .gallery-item, .gallery-item-wide { grid-column: span 1; }
  .gallery-item-tall { grid-row: span 1; }
  .location-heading { grid-template-columns: 1fr; }
  .location-heading .eyebrow { grid-column: auto; }
  .location-map { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 680px) {
  :root { --container: min(100% - 2rem, 1180px); --radius-lg: 1.4rem; }
  html { scroll-padding-top: 72px; }
  .section { padding: 5.5rem 0; }
  .nav-wrap { min-height: 72px; }
  .brand-copy small { display: none; }
  .hero { min-height: 840px; }
  .hero-bg { background-position: 58% center; }
  .hero-content { padding-top: 7rem; padding-bottom: 8rem; }
  .hero h1 { font-size: clamp(3.5rem, 16vw, 5rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-footer { bottom: 1.4rem; }
  .hero-footer span:last-child { display: none; }
  .about-grid { gap: 2.5rem; }
  .image-story { grid-template-columns: 1fr; margin-top: 3.5rem; }
  .image-story-main { height: 480px; }
  .image-story-detail { display: none; }
  .image-story-card { right: 1rem; bottom: 1rem; width: min(250px, calc(100% - 2rem)); }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 310px; }
  .product-dialog { height: calc(100svh - 1rem); max-height: calc(100svh - 1rem); }
  .product-dialog-layout { grid-template-rows: minmax(190px, 210px) minmax(0, 1fr); }
  .product-dialog-image { min-height: 0; max-height: none; }
  .product-dialog-content { padding: 1.5rem; }
  .product-dialog-close { top: .85rem; right: .85rem; }
  .product-specifications { grid-template-columns: 1fr; }
  .product-specifications div { min-height: auto; }
  .field-row, .dimension-grid { grid-template-columns: 1fr; gap: 0; }
  .custom-fields { padding: 1.2rem; }
  .form-card { padding: 1.3rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 270px; }
  .benefit-icon { margin-bottom: 3.5rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .contact { min-height: 650px; }
  .contact-image { background-position: 60% center; }
  .location-map { aspect-ratio: 3 / 4; min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-meta { grid-column: auto; grid-row: auto; justify-content: flex-start; flex-wrap: wrap; }
  .footer-grid > a:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.sleep-importance { background: var(--white); }
.information-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.information-copy { padding-top: .4rem; }
.information-copy p { color: var(--dark-brown); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.85; }
.information-copy p:last-child { margin-bottom: 0; }

.memory-foam { color: var(--white); background: var(--dark-brown); }
.memory-foam-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); }
.memory-foam-heading { position: sticky; top: 130px; align-self: start; }
.memory-foam-heading h2 em { color: var(--beige); }
.memory-foam-lead { margin-bottom: 3rem; color: var(--white-copy); font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.45; }
.memory-benefit-list { border-top: 1px solid var(--cream-line); }
.memory-benefit-list article { display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--cream-line); }
.memory-benefit-list article > span { color: var(--beige); font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.memory-benefit-list h3 { margin-bottom: .55rem; font-size: 1.55rem; }
.memory-benefit-list p { margin: 0; color: var(--white-copy-muted); font-size: .84rem; line-height: 1.75; }

.mattress-guide { background: var(--white); }
.guide-heading { max-width: 850px; margin-bottom: 4.5rem; }
.guide-heading > p:last-child { max-width: 660px; margin: 2rem 0 0; color: var(--dark-brown); font-size: 1rem; }
.guide-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--brown-line); border-left: 1px solid var(--brown-line); }
.guide-item { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; min-height: 240px; padding: 2rem; border-right: 1px solid var(--brown-line); border-bottom: 1px solid var(--brown-line); }
.guide-item:last-child { grid-column: 1 / -1; min-height: auto; }
.guide-index { padding-top: .25rem; color: var(--brown); font-size: .65rem; font-weight: 700; letter-spacing: .14em; }
.guide-item h3 { margin-bottom: 1rem; font-size: clamp(1.7rem, 2.5vw, 2.25rem); }
.guide-item p { max-width: 480px; margin: 0; color: var(--dark-brown); font-size: .86rem; line-height: 1.8; }

.faq-section { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.faq-heading { position: sticky; top: 130px; }
.faq-heading > p:last-child { max-width: 420px; margin-top: 2rem; color: var(--dark-brown); }
.faq-list { border-top: 1px solid var(--brown-line-strong); }
.faq-list details { border-bottom: 1px solid var(--brown-line-strong); }
.faq-list summary { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: 1.6rem 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.25; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--brown); border-radius: 50%; font-family: var(--sans); font-size: 1rem; transition: color .25s ease, background .25s ease, transform .25s ease; }
.faq-list details[open] summary span { color: var(--white); background: var(--chocolate); transform: rotate(45deg); }
.faq-list details p { max-width: 680px; margin: -.35rem 3.5rem 1.6rem 0; color: var(--dark-brown); font-size: .86rem; line-height: 1.8; }
.faq-list summary:focus-visible { outline: 3px solid var(--brown); outline-offset: 4px; }

.sleep-facts { color: var(--white); background: var(--chocolate); }
.sleep-facts-heading { max-width: 850px; margin-bottom: 4rem; }
.sleep-facts-heading h2 em { color: var(--beige); }
.sleep-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--cream-line-soft); border-left: 1px solid var(--cream-line-soft); }
.sleep-fact-card { min-height: 330px; padding: 2rem; border-right: 1px solid var(--cream-line-soft); border-bottom: 1px solid var(--cream-line-soft); }
.sleep-fact-card strong { display: block; margin-bottom: 5rem; color: var(--beige); font-family: var(--serif); font-size: clamp(2.8rem, 4.5vw, 4.5rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.sleep-fact-card h3 { margin-bottom: 1rem; font-size: 1.65rem; }
.sleep-fact-card p { margin: 0; color: var(--white-copy-soft); font-size: .82rem; line-height: 1.75; }

@media (max-width: 980px) {
  .information-split, .memory-foam-grid, .faq-grid { grid-template-columns: 1fr; }
  .memory-foam-heading, .faq-heading { position: static; }
  .sleep-facts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .guide-list, .sleep-facts-grid { grid-template-columns: 1fr; }
  .memory-benefit-list article { grid-template-columns: 2.4rem 1fr; }
  .guide-item, .guide-item:last-child { grid-column: auto; grid-template-columns: 2.5rem 1fr; min-height: auto; padding: 1.5rem; }
  .sleep-fact-card { min-height: 280px; }
  .sleep-fact-card strong { margin-bottom: 3.5rem; }
}
