:root {
  --bg: #e3e5df;
  --surface: #f4f5ef;
  --soft: #cfd6d2;
  --text: #1f2827;
  --muted: #586560;
  --line: #1f2827;
  --primary: #2f9fb0;
  --accent: #b5483d;
  --container: 1240px;
  --wide: 1480px;
  --side: clamp(48px, 5vw, 84px);
  --section: clamp(88px, 10vw, 156px);
  --gap: clamp(34px, 6vw, 86px);
  --font: Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --hero-size: clamp(3rem, 6.5vw, 7.2rem);
  --title-size: clamp(2.15rem, 4.2vw, 4.7rem);
  --body-size: 16px;
  --radius-sm: 2px;
  --radius-md: 6px;
  --shadow: 0 28px 70px rgba(31, 40, 39, .14);
  --level: 58%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--body-size); line-height: 1.62; letter-spacing: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: var(--hero-size); max-width: 920px; }
h2 { font-size: var(--title-size); }
p { margin: 0; color: var(--muted); }
.eyebrow, .section-index, .depth-marker { margin: 0 0 14px; font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0; color: var(--accent); }
.announce { padding: 10px var(--side); background: var(--text); color: var(--bg); font-size: .82rem; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px var(--side); background: rgba(227, 229, 223, .94); border-bottom: 1px solid var(--line); }
.brand-mark { font-weight: 900; text-decoration: none; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { font-size: .8rem; text-transform: uppercase; text-decoration: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--text); }
.button, .mobile-buy button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; }
.button.primary, .mobile-buy button { background: var(--text); color: var(--bg); }
.button.wide { width: 100%; }
.button.is-added, [data-add-to-bag].is-added { background: var(--accent); color: var(--bg); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
section:not(.hero) { padding: var(--section) var(--side); }

.hero { position: relative; min-height: 92vh; display: grid; align-items: end; overflow: hidden; background: var(--text); }
.hero picture, .hero picture img { position: absolute; inset: 0; }
.hero picture img { object-position: center; }
.hero:after { content: ""; position: absolute; inset: 0; background: rgba(227, 229, 223, .18); }
.water-scale { position: absolute; z-index: 2; top: 104px; right: var(--side); bottom: 64px; display: flex; flex-direction: column; justify-content: space-between; padding-left: 16px; border-left: 2px solid var(--primary); color: var(--surface); font-size: .72rem; font-weight: 900; }
.hero-copy { position: relative; z-index: 2; max-width: 850px; padding: 118px var(--side) 70px; }
.hero-copy p:last-of-type { max-width: 610px; margin: 22px 0 32px; color: var(--text); font-size: 1.12rem; font-weight: 700; }

.descent-map { display: grid; grid-template-columns: .32fr .68fr; gap: var(--gap); max-width: var(--wide); margin: 0 auto; align-items: end; border-bottom: 1px solid var(--line); }
.descent-copy { max-width: 760px; }
.descent-copy p { margin-top: 24px; max-width: 620px; }
.descent-map figure { grid-column: 2; margin: 20px 0 0; aspect-ratio: 16 / 8; border: 1px solid var(--line); }

.access-deck { display: grid; grid-template-columns: minmax(280px, .36fr) minmax(0, .48fr) minmax(180px, .16fr); gap: 0; max-width: var(--wide); margin: 0 auto; align-items: stretch; }
.access-panel { display: grid; align-content: center; gap: 20px; padding: 36px; border: 1px solid var(--line); border-right: 0; background: var(--surface); min-width: 0; }
.access-image { margin: 0; min-height: 720px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.access-readings { display: grid; align-content: stretch; border: 1px solid var(--line); border-left: 0; }
.access-readings span { display: grid; align-content: center; min-height: 33.333%; padding: 22px; border-bottom: 1px solid var(--line); color: var(--muted); }
.access-readings span:last-child { border-bottom: 0; }
.access-readings b { display: block; color: var(--primary); font-size: 1.8rem; line-height: 1; }
.concept-label, .price { color: var(--text); font-weight: 900; }
.option-row { display: flex; flex-wrap: wrap; gap: 10px; }
.option-row button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.option-row .is-selected, .thumb-row .is-selected { background: var(--primary); color: var(--text); }
.bag-status, .form-status { min-height: 1.5em; font-weight: 800; color: var(--text); }
.text-link.dark { font-weight: 900; text-decoration-thickness: 2px; }

.level-section { display: grid; grid-template-columns: .38fr .62fr; gap: var(--gap); align-items: center; background: var(--text); color: var(--bg); }
.level-section p { color: rgba(227, 229, 223, .82); }
.level-copy { max-width: 560px; }
.reservoir-panel { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 34px; align-items: center; min-width: 0; }
.reservoir-vessel { position: relative; height: 460px; border: 2px solid var(--bg); background: rgba(227, 229, 223, .12); overflow: hidden; }
.reservoir-fill { position: absolute; left: 16px; right: 16px; bottom: 16px; height: var(--level); background: var(--primary); border-top: 8px solid var(--bg); }
.valve-mark { position: absolute; right: -14px; top: 42%; width: 28px; height: 72px; background: var(--accent); border: 1px solid var(--bg); }
.level-control { display: grid; gap: 16px; color: var(--bg); font-weight: 900; }
input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--primary); }
.level-output { grid-column: 2; display: grid; gap: 6px; font-size: 1.15rem; }

.image-bay { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .58fr) minmax(280px, .42fr); gap: var(--gap); align-items: center; }
.image-bay figure, .gallery-main-wrap, .texture-section figure { margin: 0; aspect-ratio: 4 / 5; border: 1px solid var(--line); box-shadow: var(--shadow); }
.texture-bay figure { aspect-ratio: 1 / 1; }
.campaign { position: relative; min-height: 650px; display: grid; align-items: end; color: var(--bg); overflow: hidden; }
.campaign img { position: absolute; inset: 0; object-position: center; }
.campaign:after { content: ""; position: absolute; inset: 0; background: rgba(31, 40, 39, .42); }
.campaign div { position: relative; z-index: 1; max-width: 760px; }
.campaign p { color: rgba(227, 229, 223, .84); }

.material-appendix, .contact-section, .depth-section, .readings-grid, .layered-use, .routine-section, .faq-section, .final-cta { max-width: var(--container); margin: 0 auto; }
.material-appendix { display: grid; grid-template-columns: .32fr .34fr .34fr; gap: var(--gap); border-top: 1px solid var(--line); }
.routine-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.routine-steps li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.routine-steps span { display: block; margin-bottom: 8px; font-weight: 900; color: var(--accent); }
.ledger { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.ledger div { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-weight: 900; }
.ledger dd { margin: 0; color: var(--muted); }
.contact-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: var(--gap); }
.contact-form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; font-weight: 900; }
input, textarea, select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
textarea { resize: vertical; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 32px var(--side); border-top: 1px solid var(--line); font-size: .84rem; }

.pdp { padding-bottom: 40px; }
.pdp-commerce { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); gap: var(--gap); align-items: start; width: 100%; max-width: var(--wide); min-width: 0; margin: 0 auto; }
.pdp-gallery { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.gallery-main-wrap { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; aspect-ratio: 5 / 4; min-height: 620px; }
.gallery-main-wrap img { object-fit: contain; background: var(--surface); }
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumb-row button { aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); background: none; cursor: pointer; overflow: hidden; }
.thumb-row .is-selected { border-color: var(--accent); }
.buy-panel { position: sticky; top: 92px; display: grid; gap: 20px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-left: 10px solid var(--primary); background: var(--surface); border-radius: var(--radius-sm); }
.buy-panel > * { min-width: 0; max-width: 100%; }
.buy-panel h1 { max-width: none; font-size: clamp(40px, 4vw, 58px); word-break: normal; overflow-wrap: normal; }
.quantity { display: grid; grid-template-columns: 48px 1fr 48px; border: 1px solid var(--line); }
.quantity button, .quantity input { border: 0; border-radius: 0; text-align: center; background: var(--surface); }
.quantity button:first-child { border-right: 1px solid var(--line); }
.quantity button:last-child { border-left: 1px solid var(--line); }
.service-list { margin: 0; padding-left: 20px; color: var(--muted); }
.depth-hero { width: min(980px, calc(100% - (var(--side) * 2))); padding-left: 0; padding-right: 0; }
.readings-grid { display: grid; grid-template-columns: .35fr .65fr; gap: var(--gap); }
.texture-section, .cutaway-plate, .info-section { width: min(var(--container), calc(100% - (var(--side) * 2))); padding-left: 0; padding-right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.layered-use, .routine-section, .faq-section, .final-cta { width: min(920px, calc(100% - (var(--side) * 2))); padding-left: 0; padding-right: 0; }
.cutaway-plate figure { margin: 0; aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.info-section { align-items: start; }
.info-section > div { min-height: 240px; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.routine-track { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border: 1px solid var(--line); }
.routine-track span { padding: 18px; border-right: 1px solid var(--line); background: var(--surface); }
.routine-track span:last-child { border-right: 0; }
.routine-track .active { background: var(--primary); font-weight: 900; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
summary { cursor: pointer; font-weight: 900; }
.final-cta { text-align: center; }
.final-cta .button { margin-top: 28px; }
.mobile-buy { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); }
.mobile-buy span { font-weight: 900; }

@media (max-width: 900px) {
  :root { --side: 28px; --section: 84px; }
  .site-nav { position: absolute; top: calc(100% + 10px); right: var(--side); display: none; flex-direction: column; align-items: stretch; width: min(320px, calc(100vw - 44px)); padding: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .menu-toggle { display: block; }
  .water-scale { top: auto; left: var(--side); right: var(--side); bottom: 28px; height: 34px; flex-direction: row; border-left: 0; border-top: 2px solid var(--primary); padding: 8px 0 0; }
  .descent-map, .access-deck, .level-section, .reservoir-panel, .image-bay, .material-appendix, .contact-section, .pdp-commerce, .readings-grid, .texture-section, .cutaway-plate, .info-section { grid-template-columns: 1fr; }
  .descent-map figure { grid-column: auto; }
  .access-panel { border-right: 1px solid var(--line); }
  .access-image { min-height: 480px; }
  .access-readings { border-left: 1px solid var(--line); border-top: 0; grid-template-columns: repeat(3, 1fr); }
  .access-readings span { min-height: 150px; border-bottom: 0; border-right: 1px solid var(--line); }
  .access-readings span:last-child { border-right: 0; }
  .level-output { grid-column: auto; }
  .reservoir-vessel { max-width: 260px; height: 320px; }
  .buy-panel { position: static; }
  .mobile-buy { display: flex; }
  .pdp { padding-bottom: 92px; }
  .gallery-main-wrap { min-height: 420px; }
  .routine-track { grid-template-columns: 1fr 1fr; }
  .routine-track span:nth-child(2) { border-right: 0; }
}

@media (max-width: 520px) {
  :root { --side: 22px; --section: 68px; --hero-size: 3rem; --title-size: 2rem; }
  .announce { font-size: .76rem; }
  .hero { min-height: 84vh; }
  .hero picture img { object-position: 54% center; }
  .hero-copy { padding-top: 92px; padding-bottom: 84px; }
  .thumb-row, .routine-track, .ledger div, .access-readings { grid-template-columns: 1fr; }
  .gallery-main-wrap { aspect-ratio: 4 / 5; min-height: 0; }
  .access-readings span { border-right: 0; border-bottom: 1px solid var(--line); }
  .access-readings span:last-child { border-bottom: 0; }
  .routine-track span { border-right: 0; border-bottom: 1px solid var(--line); }
  .routine-track span:last-child { border-bottom: 0; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
