@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ebe8e2;
  --panel: #f6f4f0;
  --ink: #1f1c26;
  --soft: #55505e;
  --line: #cfcac1;
  --accent: #312557;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 19px/1.5 "Hanken Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

a:focus-visible, .frame:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Header */
.top { padding: 40px 0 0; }
.top-row { display: flex; align-items: center; gap: 14px; }
.mark { width: 48px; height: auto; }
.client { font-weight: 600; font-size: 18px; letter-spacing: 0.01em; }

h1 {
  margin: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
  max-width: 14ch;
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* Overview */
.overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  padding-bottom: clamp(72px, 10vw, 140px);
}
.thumb {
  color: inherit;
  text-decoration: none;
}
.thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  transition: transform .4s ease;
}
.thumb span {
  display: block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 21px;
}
.thumb:hover img { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .thumb img { transition: none; } .thumb:hover img { transform: none; } }

/* Option sections */
.option {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 128px);
  scroll-margin-top: 0;
}
.option:nth-child(even) { background: var(--panel); }

.intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  grid-template-areas:
    "name name name"
    "text specs btn";
  align-items: end;
  column-gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.intro h2 {
  grid-area: name;
  margin: 0 0 20px;
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.intro > p { grid-area: text; margin: 0; max-width: 34ch; font-size: 21px; color: var(--soft); }
.specs { grid-area: specs; }
.swatches { display: flex; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.swatches li {
  width: 40px; height: 40px;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, .12);
}
.type { margin: 0; font-size: 16px; color: var(--soft); }

.btn {
  grid-area: btn;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); }

/* Device frames */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.frame {
  height: min(76vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(31, 28, 38, .35);
  scrollbar-width: thin;
}
.frame img { width: 100%; }
.phone {
  border: 10px solid var(--ink);
  border-radius: 34px;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 16px;
  color: var(--soft);
}

/* Tablet */
@media (max-width: 1080px) {
  .intro {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name name"
      "text text"
      "specs btn";
    row-gap: 24px;
  }
  .stage { grid-template-columns: minmax(0, 1fr) 240px; }
}

/* Phone: show the phone view only, at a fixed height without its own scrolling */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .overview { grid-template-columns: 1fr; }
  .intro {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "text" "specs" "btn";
  }
  .intro > p { font-size: 19px; }
  .btn { justify-content: center; }
  .stage { grid-template-columns: 1fr; }
  .desk { display: none; }
  .phone {
    width: min(100%, 320px);
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
  }
}
