:root {
  --ground: #F2F5F3;
  --surface: #FFFFFF;
  --ink: #172A2C;
  --ink-2: #475B5E;
  --line: #B7C8C7;
  --accent: #167486;
  --on-accent: #FFFFFF;
  --font-display: "Barlow", sans-serif;
  --font-body: "Inter", sans-serif;
  --wrap: 1328px;
  --gutter: clamp(20px, 5vw, 64px);
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --radius-control: 4px;
  --radius-card: 12px;
  --type-xs: 13px;
  --type-sm: 14px;
  --type-base: 16px;
  --type-lede: 20px;
  --type-h3: 28px;
  --type-h2: clamp(38px, 4.5vw, 58px);
  --type-h1: clamp(60px, 6.1vw, 98px);
  --section: clamp(72px, 9vw, 128px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--ground); font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; top: -100px; left: var(--gutter); padding: var(--s-3) var(--s-4); background: var(--ink); color: var(--surface); }
.skip-link:focus { top: var(--s-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: var(--ground); }
.header-layout { display: flex; align-items: center; min-height: 96px; gap: var(--s-6); }
.brand { flex: 0 0 auto; display: block; width: 205px; overflow: hidden; }
.brand img { width: 205px; height: 54px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 32px); margin-left: auto; }
.main-nav a { font-size: var(--type-sm); font-weight: 500; white-space: nowrap; transition: color .2s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.header-action { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-5); min-height: 48px; padding: 0 var(--s-4); border: 1px solid var(--ink); border-radius: var(--radius-control); font-size: var(--type-sm); font-weight: 600; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.header-action:hover { color: var(--surface); background: var(--ink); }
.header-action span { font-size: 17px; }
.menu-button { display: none; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); padding-block: var(--s-5); color: var(--ink-2); font-size: var(--type-sm); }
.breadcrumb a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: var(--s-1); }
.breadcrumb a:hover { color: var(--accent); }
.product-opening { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.opening-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: var(--s-8); }
.opening-copy { position: relative; z-index: 2; padding-block: var(--s-8); }
.opening-copy h1 { max-width: 9ch; font-family: var(--font-display); font-size: var(--type-h1); font-weight: 600; line-height: .99; letter-spacing: -.047em; text-wrap: balance; }
.opening-copy h1 span { color: var(--accent); }
.opening-copy .lede { max-width: 30ch; margin-top: var(--s-7); color: var(--ink-2); font-size: var(--type-lede); line-height: 1.5; text-wrap: pretty; }
.opening-copy .body-copy { max-width: 44ch; margin-top: var(--s-5); color: var(--ink-2); font-size: var(--type-base); line-height: 1.65; text-wrap: pretty; }
.primary-action { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s-7); min-height: 64px; margin-top: var(--s-7); padding-inline: var(--s-5); border: 1px solid var(--accent); border-radius: var(--radius-control); color: var(--on-accent); background: var(--accent); font-size: var(--type-base); font-weight: 600; transition: transform .24s ease, background .24s ease; }
.primary-action:hover { transform: translateY(-2px); background: var(--ink); border-color: var(--ink); }
.action-arrow { font-size: 22px; font-weight: 400; }
.product-note { max-width: 42ch; margin-top: var(--s-5); color: var(--ink-2); font-size: var(--type-sm); line-height: 1.6; }
.product-note a { color: var(--accent); text-decoration: underline; text-underline-offset: var(--s-1); }
.product-gallery { position: relative; z-index: 1; align-self: center; min-width: 0; }
.gallery-stage { position: relative; isolation: isolate; display: grid; place-items: center; height: 590px; overflow: hidden; background: var(--surface); }
.gallery-stage::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(100deg, var(--ground), var(--surface) 60%, var(--ground)); }
.gallery-stage::after { content: ""; position: absolute; z-index: -1; left: -5%; right: -5%; bottom: 0; height: 19%; background: var(--line); opacity: .35; clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%); }
.gallery-stage img { position: relative; z-index: 1; width: auto; height: 560px; object-fit: contain; filter: drop-shadow(18px 16px 15px rgba(23,42,44,.18)); }
.gallery-stage:has(img[data-swapping]) img { animation: image-place .32s ease-out; }
@keyframes image-place { from { opacity: .45; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.gallery-count { position: absolute; z-index: 2; right: var(--s-5); bottom: var(--s-5); color: var(--ink-2); font-size: var(--type-sm); font-variant-numeric: tabular-nums; }
.thumbnail-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); padding-block: var(--s-3); }
.thumbnail-button { display: grid; place-items: center; min-width: 0; height: 88px; overflow: hidden; padding: var(--s-2); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--line); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.thumbnail-button:hover, .thumbnail-button[aria-pressed="true"] { border-color: var(--accent); background: var(--ground); }
.thumbnail-button img { width: auto; max-width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.gallery-help { padding-bottom: var(--s-4); color: var(--ink-2); font-size: var(--type-xs); line-height: 1.5; }
.detail-section { padding-block: var(--section); border-bottom: 1px solid var(--line); }
.detail-layout { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1fr); gap: clamp(64px, 10vw, 160px); align-items: start; }
.detail-intro h2, .next-step h2 { max-width: 12ch; font-family: var(--font-display); font-size: var(--type-h2); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.detail-intro p { max-width: 38ch; margin-top: var(--s-6); color: var(--ink-2); font-size: var(--type-base); line-height: 1.7; text-wrap: pretty; }
.tab-buttons { display: flex; flex-wrap: wrap; gap: var(--s-4); border-bottom: 1px solid var(--line); }
.tab-btn { position: relative; min-height: 56px; padding: 0 var(--s-3); border: 0; color: var(--ink-2); background: transparent; font-size: var(--type-sm); font-weight: 600; cursor: pointer; }
.tab-btn[aria-selected="true"] { color: var(--ink); }
.tab-btn[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); }
.tab-panel { padding-block: var(--s-7); }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-family: var(--font-display); font-size: var(--type-h3); font-weight: 600; line-height: 1.15; }
.tab-panel p { max-width: 60ch; margin-top: var(--s-5); color: var(--ink-2); font-size: var(--type-base); line-height: 1.7; text-wrap: pretty; }
.fact-list { margin-top: var(--s-6); border-top: 1px solid var(--line); }
.fact-list li { display: grid; grid-template-columns: minmax(120px, .38fr) 1fr; gap: var(--s-5); padding-block: var(--s-4); border-bottom: 1px solid var(--line); font-size: var(--type-base); line-height: 1.55; }
.fact-list strong { font-weight: 600; }
.fact-list span { color: var(--ink-2); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: var(--type-base); font-weight: 600; text-decoration: underline; text-underline-offset: var(--s-1); }
.tab-panel .text-link { margin-top: var(--s-5); }
.next-step { padding-block: var(--section); }
.next-step-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); align-items: end; gap: var(--s-8); }
.next-step p { max-width: 45ch; margin-top: var(--s-6); color: var(--ink-2); font-size: var(--type-base); line-height: 1.7; }
.next-step .primary-action { margin-top: 0; justify-self: end; }
.site-footer { border-top: 1px solid var(--line); padding-top: var(--s-8); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-8); padding-bottom: var(--s-8); }
.footer-brand { display: block; font-family: var(--font-display); font-size: var(--type-h3); font-weight: 600; }
.footer-brand span { display: block; margin-top: var(--s-2); color: var(--ink-2); font-family: var(--font-body); font-size: var(--type-sm); font-weight: 400; }
.footer-grid p { max-width: 30ch; margin-top: var(--s-5); color: var(--ink-2); font-size: var(--type-sm); line-height: 1.65; }
.footer-grid nav, .footer-grid address { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); font-size: var(--type-sm); font-style: normal; line-height: 1.5; }
.footer-grid nav a:hover, .footer-grid address a:hover { color: var(--accent); }
.footer-grid address span { color: var(--ink-2); }
.footer-grid address span:not(:first-child) { margin-top: var(--s-4); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--type-xs); }
@media (max-width: 1100px) {
  .header-layout { min-height: 80px; }
  .brand, .brand img { width: 180px; }
  .main-nav { gap: var(--s-4); }
  .main-nav a { font-size: var(--type-xs); }
  .opening-layout { gap: var(--s-6); }
  .gallery-stage { height: 520px; }
  .gallery-stage img { height: 490px; }
  .detail-layout { gap: var(--s-8); }
}
@media (max-width: 760px) {
  .header-layout { min-height: 74px; gap: var(--s-3); }
  .brand, .brand img { width: 166px; }
  .brand img { height: 44px; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin-left: auto; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--ink); background: transparent; font-size: var(--type-sm); font-weight: 600; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: var(--s-3) var(--gutter) var(--s-5); border-bottom: 1px solid var(--line); background: var(--ground); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding-block: var(--s-3); font-size: var(--type-base); }
  .header-action { min-height: 42px; padding-inline: var(--s-3); font-size: var(--type-sm); }
  .opening-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; }
  .opening-copy { padding-block: var(--s-5); }
  .opening-copy h1 { font-size: clamp(48px, 10vw, 64px); }
  .opening-copy .lede { margin-top: var(--s-5); font-size: var(--type-base); }
  .opening-copy .body-copy, .product-note { display: none; }
  .primary-action { min-height: 58px; margin-top: var(--s-6); }
  .product-gallery { margin-inline: calc(-1 * var(--gutter)); }
  .gallery-stage { height: 490px; }
  .gallery-stage img { height: 460px; }
  .thumbnail-gallery { display: flex; gap: var(--s-2); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: thin; }
  .thumbnail-button { flex: 0 0 74px; height: 74px; }
  .gallery-help { padding-inline: var(--gutter); }
  .detail-layout, .next-step-layout { display: block; }
  .detail-intro p { margin-top: var(--s-5); }
  .product-tabs { margin-top: var(--s-7); }
  .tab-buttons { flex-wrap: nowrap; gap: var(--s-2); overflow-x: auto; }
  .tab-btn { flex: 0 0 auto; }
  .next-step .primary-action { margin-top: var(--s-7); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .header-action { display: none; }
  .opening-copy h1 { font-size: 48px; }
  .primary-action { width: 100%; }
  .gallery-stage { height: 430px; }
  .gallery-stage img { height: 405px; }
  .fact-list li { display: block; }
  .fact-list span { display: block; margin-top: var(--s-2); }
  .footer-grid { display: block; }
  .footer-grid > * + * { margin-top: var(--s-7); }
  .footer-bottom { display: block; }
  .footer-bottom > * { display: block; }
  .footer-bottom > * + * { margin-top: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-stage:has(img[data-swapping]) img { animation: none; }
  .header-action, .main-nav a, .primary-action, .thumbnail-button { transition: none; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .gallery-stage { height: 520px; }
  .gallery-stage img { height: 490px; }
  .opening-copy { padding-block: var(--s-5); }
  .opening-copy .lede { margin-top: var(--s-6); }
  .opening-copy .body-copy { margin-top: var(--s-4); }
  .opening-copy .primary-action { margin-top: var(--s-6); }
}
