:root {
  color-scheme: light;
  --bg: #edf0f3;
  --surface: #f7f8f9;
  --text: #15191e;
  --muted: #56616c;
  --line: #c8ced5;
  --accent: #315fbd;
  --accent-ink: #f5f7fa;
  --danger: #a53f3f;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101419;
    --surface: #171d24;
    --text: #edf1f5;
    --muted: #9aa5b0;
    --line: #323b45;
    --accent: #7b9ddd;
    --accent-ink: #111820;
    --danger: #e18888;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100dvh; overflow-x: clip; color: var(--text); background: var(--bg); font-family: Aptos, "Segoe UI Variable", "Helvetica Neue", sans-serif; }
button, input { font: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
a { color: inherit; }
.shell { width: min(1400px, calc(100% - 56px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 12px max(28px, calc((100vw - 1400px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
}
.brand { width: fit-content; font-size: 17px; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
nav { display: flex; gap: 28px; white-space: nowrap; }
nav a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--text); }
.cart-button { justify-self: end; border: 0; color: var(--text); background: transparent; cursor: pointer; font-weight: 750; }
.cart-count { min-width: 24px; display: inline-grid; place-items: center; margin-left: 7px; padding: 3px 7px; color: var(--accent-ink); background: var(--accent); }

.hero { min-height: calc(100dvh - 70px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(420px, 5fr); align-items: center; gap: clamp(40px, 7vw, 110px); padding-block: clamp(40px, 6vw, 82px); }
.hero-copy { max-width: 680px; }
.eyebrow { margin: 0 0 22px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.055em; text-wrap: balance; }
h1 { max-width: 10ch; margin-bottom: 24px; font-size: clamp(52px, 6vw, 88px); line-height: .94; }
.hero-text { max-width: 22ch; margin-bottom: 32px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button, .add-button, .newsletter-form button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--line); text-decoration: none; white-space: nowrap; font-weight: 780; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover, .add-button:hover, .newsletter-form button:hover { transform: translateY(-2px); }
.button:active, .add-button:active, .newsletter-form button:active { transform: translateY(1px) scale(.98); }
.button-primary, .newsletter-form button { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.button-secondary { background: transparent; }
.hero-media { min-height: min(76dvh, 820px); background: #cbd7e1; }

.section { padding-block: clamp(96px, 12vw, 168px); content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section-heading { max-width: 760px; margin-bottom: clamp(44px, 7vw, 90px); }
.section-heading h2, .space-copy h2, .newsletter h2 { margin-bottom: 20px; font-size: clamp(42px, 5.5vw, 76px); line-height: .96; }
.section-heading p, .space-copy p, .newsletter-copy p { max-width: 52ch; margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }

.product-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.product { grid-column: span 5; display: grid; gap: 18px; }
.product-featured { grid-column: span 7; grid-row: span 2; }
.product-compact { grid-column: span 7; grid-template-columns: minmax(0, 4fr) minmax(250px, 3fr); align-items: stretch; }
.product-media { min-height: 460px; background: var(--surface); border: 1px solid var(--line); }
.product-featured .product-media { min-height: 700px; }
.product-compact .product-media { min-height: 360px; }
.product-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.product-type { margin-bottom: 8px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.product h3 { margin-bottom: 9px; font-size: 25px; line-height: 1.05; }
.price { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.add-button { min-height: 42px; padding-inline: 16px; color: var(--text); background: transparent; font-size: 13px; }

.space-story { display: grid; grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); align-items: end; gap: clamp(36px, 7vw, 100px); }
.space-media { min-height: 680px; }
.space-copy { padding-bottom: 24px; }
.space-copy a { display: inline-block; margin-top: 28px; color: var(--accent); font-weight: 800; text-underline-offset: 5px; }

.newsletter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: clamp(44px, 9vw, 140px); border-top: 1px solid var(--line); }
.newsletter-form { display: grid; gap: 10px; }
.newsletter-form label { font-size: 14px; font-weight: 750; }
.form-row { display: grid; grid-template-columns: 1fr auto; }
.newsletter-form input { min-height: 52px; width: 100%; padding: 0 15px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.form-status { min-height: 22px; margin-bottom: 0; color: var(--muted); font-size: 14px; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--accent); }
.site-footer { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-weight: 750; }
.site-footer a { color: var(--muted); text-decoration: none; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: min(360px, calc(100% - 48px)); padding: 14px 18px; color: var(--accent-ink); background: var(--accent); font-weight: 750; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.media { position: relative; overflow: hidden; }
.media img { transition: opacity .35s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.media:hover img { transform: scale(1.025); }
.media.is-loading::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(100deg, var(--surface) 20%, color-mix(in srgb, var(--surface) 72%, var(--text)) 45%, var(--surface) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.media.is-loading img { opacity: 0; }
.media.is-error::after { content: attr(data-error); position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: var(--muted); background: var(--surface); text-align: center; }
@keyframes shimmer { to { background-position: -220% 0; } }
.has-js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.16, 1, .3, 1), transform .65s cubic-bezier(.16, 1, .3, 1); }
.has-js .reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 72%, transparent); outline-offset: 3px; }
@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 64dvh; }
  .product, .product-featured, .product-compact { grid-column: span 6; grid-row: auto; grid-template-columns: 1fr; }
  .product-featured .product-media, .product-media, .product-compact .product-media { min-height: 500px; }
  .space-story, .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .shell { width: min(100% - 30px, 680px); }
  .site-header { min-height: 64px; padding: 10px 15px; }
  .hero { min-height: calc(100dvh - 64px); padding-block: 34px; }
  h1 { font-size: clamp(46px, 14vw, 68px); }
  .hero-media { min-height: 52dvh; }
  .section { padding-block: 90px; }
  .product-grid { grid-template-columns: 1fr; }
  .product, .product-featured, .product-compact { grid-column: auto; }
  .product-featured .product-media, .product-media, .product-compact .product-media { min-height: 420px; }
  .product-info { align-items: stretch; flex-direction: column; }
  .add-button { width: 100%; }
  .space-media { min-height: 520px; }
  .form-row { grid-template-columns: 1fr; gap: 10px; }
  .cart-button { min-height: 44px; }
  .newsletter-form input { font-size: 16px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .has-js .reveal { opacity: 1; transform: none; }
  .media:hover img { transform: none; }
}

/* FORM/01: Swiss product catalogue */
:root {
  color-scheme: light;
  --bg: #f2f4f3;
  --surface: #ffffff;
  --text: #101820;
  --muted: #47525d;
  --line: #aeb9c0;
  --accent: #1958d1;
  --accent-ink: #ffffff;
}
body { font-family: Arial, Helvetica, "Microsoft YaHei UI", sans-serif; }
.site-header { background: rgb(242 244 243 / .94); backdrop-filter: blur(12px); }
.hero {
  min-height: calc(100dvh - 92px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  padding: 0;
  border: 1px solid #101820;
  background: #c9dce7;
}
.hero::before {
  content: "FORM/01";
  position: absolute;
  right: -2vw;
  bottom: -4vw;
  z-index: -1;
  color: rgb(16 24 32 / .09);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(120px, 22vw, 340px);
  line-height: .72;
  letter-spacing: -.1em;
  white-space: nowrap;
}
.hero-copy {
  grid-column: 1 / 7;
  align-self: stretch;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 92px);
  border-right: 1px solid #101820;
  background: rgb(242 244 243 / .88);
}
.hero-media { grid-column: 7 / 13; min-height: 0; position: relative; overflow: hidden; background: #c9dce7; }
.hero-media img { position: absolute; inset: 0; object-position: center 48%; }
h1,
.section-heading h2,
.space-copy h2,
.newsletter h2 {
  font-family: "Arial Black", Arial, "Microsoft YaHei UI", sans-serif;
  font-weight: 900;
  letter-spacing: -.075em;
}
h1 { max-width: 8ch; font-size: clamp(64px, 7.1vw, 108px); line-height: .84; }
.eyebrow,
.product-type,
.price { font-family: Consolas, "Courier New", monospace; }
.button,
.add-button,
.newsletter-form button { border-color: #101820; border-radius: 0; }
.button-primary { border-color: var(--accent); }
.product-media { border-color: #101820; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { grid-column: 1; min-height: 46dvh; border-right: 0; border-bottom: 1px solid #101820; }
  .hero-media { grid-column: 1; min-height: 54dvh; }
}

@media (max-width: 767px) {
  .hero { min-height: calc(100dvh - 78px); margin-top: 14px; }
  .hero-copy { min-height: 44dvh; padding: 30px 24px; }
  .hero-media { min-height: 50dvh; }
  h1 { max-width: 8ch; font-size: clamp(48px, 14vw, 64px); }
  .hero-text { max-width: 24ch; font-size: 17px; }
}
