/* Landing page, laid out after hovalabs.com. Tokens and buttons are in theme.css, the card in card.css. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* border-box everywhere except inside the card, whose layout was written content-box */
.landing :where(:not(.stage, .stage *)) { box-sizing: border-box; }
main { overflow-x: clip; }
.wrap { max-width: 1350px; margin: 0 auto; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }
a { color: inherit; }
section { scroll-margin-top: 88px; }

/* ---------- type ---------- */
.eyebrow { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.display { font-weight: 700; text-wrap: balance; letter-spacing: -0.035em; line-height: .98; font-size: clamp(44px, 6.4vw, 84px); }
h2.display { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.03em; }
h2.display-cta { font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--ink2); max-width: 44ch; text-wrap: pretty; }
.fine { font-size: 15px; font-weight: 600; color: var(--muted); }
.text-link { display: inline-block; font-weight: 700; font-size: 18px; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: color .15s; }
.text-link:hover { color: var(--accent); }

/* ---------- nav: a floating blurred bar, as on hovalabs.com ---------- */
.nav-spacer { height: 64px; }
.site-nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 clamp(12px, 3vw, 24px); pointer-events: none; }
.site-nav-inner { pointer-events: auto; max-width: 1350px; height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; background: var(--nav); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 8px 30px -18px var(--shadow); }
.brand-link { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; transition: color .15s; }
.brand-link em { font-size: 1.12em; }
.brand-link:hover { color: var(--accent); }
/* the editor's card mark (assets/logo.svg), at the same size relative to the wordmark */
.brand-mark { flex: none; width: .58em; height: .81em; fill: var(--ink); transition: fill .15s; }
.brand-link:hover .brand-mark { fill: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 18px; font-weight: 600; color: var(--ink2); }
.nav-links a { text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-links svg { margin-left: 5px; vertical-align: 1px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.site-nav .theme-toggle { width: 44px; height: 44px; }
.nav-cta { padding: 10px 18px; white-space: nowrap; }
@media (max-width: 767.98px) {
  .nav-links { display: none; }
  .nav-cta { padding: 9px 13px; font-size: 15px; }
}
@media (max-width: 419.98px) { .brand-link span { display: none; } }

/* ---------- hero ---------- */
.hero-inner { min-height: clamp(560px, 88vh, 860px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; }
.hero-card { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.hero-hint { font-size: 15px; font-weight: 600; color: var(--muted); text-align: center; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
@media (max-width: 899.98px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; text-align: center; justify-items: center; padding-top: 32px; }
  .hero-copy { align-items: center; }
}

/* The example card: both faces in a preserve-3d stage so it can flip, with the tilt spring from card.js on top.
   landing.js animates --flip, mirrors the tilt through --s while the back is showing (so the edge under the pointer
   still lifts), and switches each face's visibility as the card passes edge-on. The visibility switch is what
   Safari needs: it ignores backface-visibility on an element whose descendants are composited (the scaled card
   and its holofoil layers) and would otherwise show the back mirrored. */
.hero-stage { --flip: 0deg; --s: 1; transform-style: preserve-3d; transform: perspective(1400px) rotateY(calc(var(--flip) + var(--rx) * var(--s))) rotateX(calc(var(--ry) * var(--s))); cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.hero-stage:focus-visible { outline: 3px solid var(--accent); outline-offset: 14px; border-radius: 8px; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face-back { transform: rotateY(180deg); visibility: hidden; }
.hero-stage .photo { cursor: inherit; }

/* foil chips, after the filter chips on hovalabs.com/work */
.foils { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 8vw, 108px) 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 60ch; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 56px; }
.tile { border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.section:not(.band) .tile { background: var(--surface); border: 1px solid var(--line2); box-shadow: 0 12px 34px -28px var(--shadow); }
.tile-no { font-size: 18px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.tile h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.tile p { font-size: 18px; color: var(--ink2); line-height: 1.5; text-wrap: pretty; }
.section-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { font-size: 16px; font-weight: 600; border: 1px solid var(--line2); color: var(--muted); border-radius: 999px; padding: 7px 14px; }

/* two columns with a list of rows, as "Selected work" on hovalabs.com */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; align-items: center; }
.split-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.rows { border-top: 1px solid var(--line2); }
.row-item { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line2); font-size: 18px; }
.row-item b { font-weight: 700; }
.row-item span { color: var(--muted); text-align: right; }

/* ---------- the problem: a specimen of the card everyone hands out ---------- */
.split-wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.points { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--line2); }
.point { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line2); font-size: 18px; line-height: 1.45; }
.point b { font-weight: 800; letter-spacing: -0.01em; }
.point span { color: var(--ink2); text-wrap: pretty; }
.specimen { margin: 0; padding: clamp(20px, 3vw, 36px); background: var(--bg); border-radius: 22px; display: flex; flex-direction: column; gap: 20px; }
.bizcards { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 16px 28px rgba(23,21,15,.16)); }
[data-theme=dark] .bizcards { filter: drop-shadow(0 16px 28px rgba(0,0,0,.45)); }
.bc-back { opacity: .6; }
.bc-back + .bc-back { opacity: .8; }
.bc-name { font-family: 'Times New Roman', Times, serif; font-weight: 700; font-size: 20px; fill: #1f1f1f; }
.bc-title { font-family: Arial, Helvetica, sans-serif; font-size: 10px; fill: #666; }
.bc-marks circle { fill: var(--accent); stroke: var(--bg); stroke-width: 2.5; }
.bc-marks text { font-family: Manrope, Helvetica, Arial, sans-serif; font-weight: 800; font-size: 12px; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; font-size: 15px; line-height: 1.4; color: var(--ink2); }
.legend > div { display: flex; gap: 10px; align-items: flex-start; }
.legend i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 12px/22px Manrope, Helvetica, Arial, sans-serif; font-style: normal; text-align: center; margin-top: 1px; }
.legend-note { grid-column: 1 / -1; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line2); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- call to action band ---------- */
.cta { background: var(--ink); color: var(--bg); }
.cta-inner { padding: 112px clamp(20px, 4vw, 40px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.cta p { color: var(--muted-inv); font-size: 18px; max-width: 40ch; text-wrap: pretty; }
.cta .btn-pill { margin-top: 6px; }

/* ---------- footer ---------- */
.footer { padding: 28px clamp(20px, 4vw, 40px) 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 18px; color: var(--muted); }
.footer a { color: inherit; text-decoration: none; transition: color .15s; }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
/* the giant wordmark bounces when you scroll past the bottom; see landing.js */
.wordmark { overflow: hidden; padding: 24px 0 clamp(24px, 4vw, 48px); display: flex; justify-content: center; }
.wordmark > div { display: flex; justify-content: center; width: 100%; text-transform: uppercase; white-space: nowrap; user-select: none; font-weight: 800; font-size: 11.4vw; line-height: .82; letter-spacing: -0.02em; color: var(--ink); }
.wordmark span { display: inline-block; will-change: transform; }
