:root {
  --mist-a: #edf3ef;
  --mist-b: #f5ead6;
  --mist-c: #def3d8;
  --copper-a: #eaa444;
  --copper-b: #c55f2c;
  --copper-c: #6a2312;
  --patina-a: #569a86;
  --patina-b: #1b4a3d;
  --patina-c: #213320;
  --ink: #1f2422;
  --soft: rgba(31, 36, 34, 0.56);
  --rule: rgba(31, 36, 34, 0.16);
  --accent: #bf5114;
  --pill: #fffdfb;
  --pill-ink: #1f2422;
  --sans: "Archivo Variable", "Archivo", system-ui, sans-serif;
  --mono: "Geist Mono Variable", "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  overflow: hidden;
  background: var(--mist-a);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100vw;
  height: 100vh;
  padding: clamp(14px, min(3.4vw, 4.6vh), 44px) clamp(16px, 4vw, 56px) clamp(10px, 2.4vh, 26px);
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
}

/* the three hull themes, stacked: the new one fades over the old one */
.themes { position: absolute; inset: 0; z-index: -1; }
.theme {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(120% 80% at 82% 8%, color-mix(in srgb, var(--a) 70%, transparent), transparent 62%),
    linear-gradient(162deg, var(--a) 0%, var(--b) 52%, var(--c) 100%);
}
.theme:first-child { opacity: 1; }
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: clamp(11px, 1.05vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand svg { width: 18px; height: 18px; }

.tabs {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
  backdrop-filter: blur(8px);
}
.tabs__pill {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 60px;
  border-radius: 999px;
  background: var(--pill);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 1px 2px rgba(20, 16, 12, 0.12), 0 6px 18px -6px rgba(20, 16, 12, 0.35);
}
.tab {
  position: relative;
  z-index: 1;
  padding: clamp(6px, 1.1vh, 9px) clamp(12px, 1.6vw, 20px);
  border: 0;
  border-radius: 999px;
  background: none;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font: 500 clamp(12px, 1.15vw, 14px) / 1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.35s;
}
.tab[aria-selected="true"] { color: var(--pill-ink); }
.tab:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(16px, 4vw, 64px);
  padding-top: clamp(10px, 3vh, 40px);
  min-height: 0;
}
.mask { display: block; overflow: hidden; padding-block: 0.06em; margin-block: -0.06em; }
.mask > span { display: inline-block; transform-origin: 0 100%; will-change: transform; }

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}
.name {
  margin-top: clamp(4px, 1vh, 12px);
  font-weight: 500;
  font-variation-settings: "wdth" 88;
  font-size: clamp(40px, min(12vw, 19vh), 188px);
  line-height: 0.86;
  letter-spacing: -0.035em;
}
.name .mask { padding-bottom: 0.1em; }
.line {
  max-width: 30ch;
  margin-top: clamp(6px, 1.6vh, 18px);
  font-size: clamp(13px, min(1.45vw, 2.4vh), 19px);
  line-height: 1.35;
  color: var(--soft);
}

.specs {
  display: grid;
  grid-template-columns: 1fr;
  font-family: var(--mono);
}
.spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(5px, 1.3vh, 12px) 0;
  border-top: 1px solid var(--rule);
}
.spec:last-child { border-bottom: 1px solid var(--rule); }
.spec dt {
  font-size: clamp(10px, 0.95vw, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.spec dd { white-space: nowrap; }
.spec dd > span { display: inline-block; }
.spec b {
  font-weight: 450;
  font-size: clamp(16px, min(2.3vw, 3.6vh), 30px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.spec i {
  margin-left: 0.35em;
  font-style: normal;
  font-size: clamp(10px, 0.95vw, 12px);
  color: var(--soft);
}

.hull { position: relative; margin-top: clamp(4px, 1.5vh, 18px); }
.hull__frame {
  position: relative;
  height: clamp(70px, 30vh, 300px);
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent), 0 18px 40px -26px rgba(12, 18, 16, 0.55);
}
/* a thin light edge on top of the photos, like glass */
.hull__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.shot { position: absolute; inset: 0; visibility: hidden; will-change: clip-path; }
.shot:first-child { visibility: visible; }
.shot__in { position: absolute; inset: 0; transform-origin: 50% 60%; }
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform-origin: var(--pos, 50% 50%);
}
.hull__cap {
  margin-top: 8px;
  text-align: right;
  font-family: var(--mono);
  font-size: clamp(9px, 0.9vw, 11px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.hull__cap > span { display: inline-block; }

/* phones and the small preview box: a single column */
@media (max-width: 640px) {
  .page { grid-template-rows: auto 1fr 1fr; }
  .bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hull { align-self: start; margin-top: clamp(14px, 6vh, 64px); }
  .hero { grid-template-columns: 1fr; align-items: start; align-content: end; gap: clamp(12px, 4vh, 40px); padding-top: 12px; }
  .name { font-size: clamp(40px, min(17vw, 11vh), 96px); }
  .specs { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .spec { padding: 5px 0; }
  .spec:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .line { font-size: 13px; }
  .hull__frame { height: clamp(64px, 22vh, 220px); }
  .hull__cap { margin-top: 6px; }
}
@media (max-height: 460px) and (max-width: 640px) {
  .eyebrow { display: none; }
  .name { font-size: clamp(36px, 11vw, 52px); }
}
