/* Quivly — self-hosted Geist (Latin subset, variable) */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --paper: #F4F5F7;
  --ink: #14181D;
  --steel: #9AA3AE;
  --signal: #1F4BFF;
  --rule: rgba(20, 24, 29, 0.14);
  --rule-soft: rgba(20, 24, 29, 0.07);
}

:root[data-theme="dark"] {
  --paper: #0E1116;
  --ink: #EDEFF2;
  --steel: #5A636E;
  --signal: #5B7BFF;
  --rule: rgba(237, 239, 242, 0.17);
  --rule-soft: rgba(237, 239, 242, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--signal);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

@keyframes qv-lift {
  from { transform: translateY(7px); }
  to { transform: translateY(0); }
}

@keyframes qv-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-row,
  .mark-lift {
    animation: none !important;
  }
}

/* —— Shell —— */
.page {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4.4vw, 72px);
  height: 46px;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-sale {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-note {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.11em;
  color: var(--steel);
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.btn-theme {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1;
}

.btn-theme:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-inquire {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--signal);
  color: #FFFFFF;
  padding: 7px 16px 6px;
  line-height: 1;
  border-radius: 999px;
}

.btn-inquire:hover {
  color: #FFFFFF;
  opacity: 0.86;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4.4vw, 72px);
}

/* —— Hero —— */
.section-hero {
  padding: clamp(48px, 8vw, 108px) 0 clamp(32px, 5vw, 56px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: qv-fade 700ms ease-out both;
}

.brand-mark {
  display: block;
  overflow: visible;
}

.mark-lift {
  animation: qv-lift 900ms cubic-bezier(.16, .84, .24, 1) 260ms both;
}

.brand-wordmark {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-top: clamp(40px, 7vw, 96px);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--signal);
}

.hero-title {
  margin: 18px 0 0;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: clamp(46px, 10.4vw, 152px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  max-width: 15ch;
}

.hero-lede {
  margin: clamp(24px, 3.4vw, 40px) 0 0;
  max-width: 46ch;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
}

.hero-offer {
  margin-top: clamp(52px, 8vw, 104px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(28px, 4vw, 44px);
}

.hero-offer-title {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: clamp(29px, 4.7vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: var(--ink);
  max-width: 22ch;
}

.meta-row {
  margin-top: clamp(26px, 3.6vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.cta-row {
  margin-top: clamp(28px, 3.6vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

.btn-cta {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--signal);
  color: #FFFFFF;
  padding: 15px 30px 13px;
  line-height: 1;
}

.btn-cta:hover {
  color: #FFFFFF;
  opacity: 0.86;
}

.cta-email {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--steel);
}

/* —— Motion / rack —— */
.section-motion {
  padding: clamp(44px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--rule);
}

.section-label {
  display: flex;
  gap: 22px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.section-label-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.section-label-meta {
  margin-left: auto;
}

.rack {
  position: relative;
  margin-top: clamp(36px, 5vw, 68px);
  height: clamp(200px, 26vw, 300px);
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--ink);
  user-select: none;
}

.draw-label {
  position: absolute;
  top: 2px;
  left: 0;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 260ms linear;
  font-family: "Geist Mono", monospace;
  font-size: clamp(11px, 1.05vw, 13px);
  letter-spacing: 0.01em;
  color: var(--signal);
  white-space: nowrap;
  pointer-events: none;
}

[data-shaft] {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

[data-bar] {
  width: 2px;
  height: 58%;
  background: var(--steel);
  transform-origin: bottom center;
  transition:
    transform 640ms cubic-bezier(.16, .84, .24, 1),
    background-color 240ms linear;
}

.motion-copy {
  margin-top: clamp(32px, 4.4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.motion-headline {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 3.9vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.036em;
}

.motion-body {
  margin: 0;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

/* —— Could be —— */
.section-could {
  padding: clamp(44px, 7vw, 96px) 0 clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--rule);
}

.could-list {
  margin-top: clamp(28px, 4vw, 52px);
  display: grid;
  gap: 0;
}

.could-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-top: 1px solid var(--rule-soft);
}

.could-row:last-child {
  border-bottom: 1px solid var(--rule-soft);
}

.could-num {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.could-title {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.could-tag {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: right;
}

/* —— Brand system —— */
.section-brand {
  padding: clamp(44px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--rule);
}

.sheet-heading {
  margin-top: clamp(32px, 4.4vw, 60px);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}

.sheet-heading-spaced {
  margin-top: clamp(40px, 5vw, 68px);
}

.palette-block {
  margin-top: 22px;
  display: grid;
  gap: 26px;
}

.palette-group {
  display: grid;
  gap: 12px;
}

.palette-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.4vw, 18px);
}

.swatch {
  display: grid;
  gap: 8px;
}

.swatch-chip {
  height: clamp(56px, 8vw, 92px);
  border: 1px solid var(--rule);
}

.swatch-name {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.swatch-hex {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.type-block {
  margin-top: 26px;
}

.type-display {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: clamp(60px, 15vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.type-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  border-top: 1px solid var(--rule-soft);
  padding-top: 12px;
}

.type-meta-spaced {
  margin-top: 14px;
}

.type-body {
  margin: 28px 0 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.6;
}

.type-specimen {
  margin-top: 24px;
  font-family: "Geist Mono", monospace;
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.lockup-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.lockup-card {
  border: 1px solid var(--rule);
  display: grid;
  gap: 0;
}

.lockup-stage {
  min-height: clamp(120px, 15vw, 176px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 24px;
}

.lockup-stage-dark {
  background: #0E1116;
}

.lockup-wordmark {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lockup-wordmark-dark {
  color: #EDEFF2;
}

.lockup-caption {
  border-top: 1px solid var(--rule);
  padding: 10px 12px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.favicon-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(16px, 3vw, 40px);
}

.favicon-sample {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.favicon-frame {
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
}

.favicon-frame-64 { width: 64px; height: 64px; }
.favicon-frame-32 { width: 32px; height: 32px; }
.favicon-frame-16 { width: 16px; height: 16px; }

.favicon-size {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--steel);
}

.favicon-note {
  margin: 0;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--steel);
}

/* —— Name —— */
.section-name {
  padding: clamp(44px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--rule);
}

.name-grid {
  margin-top: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.name-headline {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.036em;
  max-width: 24ch;
}

.name-body {
  margin: 24px 0 0;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.6;
}

.spec-table {
  display: grid;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--rule-soft);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.spec-row:first-child {
  border-top: 1px solid var(--rule);
}

.spec-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.spec-key {
  color: var(--steel);
}

/* —— Acquire —— */
.section-acquire {
  padding: clamp(56px, 9vw, 128px) 0 clamp(56px, 9vw, 120px);
  border-top: 1px solid var(--ink);
}

.acquire-title {
  margin: clamp(28px, 4vw, 52px) 0 0;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 8.6vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.acquire-meta {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 26px 0 44px;
  display: grid;
  gap: 18px;
}

.footer-disclaimer {
  margin: 0;
  max-width: 66ch;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--steel);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

@media (max-width: 520px) {
  .topbar-note {
    display: none;
  }

  .could-row {
    grid-template-columns: 36px 1fr;
  }

  .could-tag {
    display: none;
  }
}
