@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/instrument-sans.woff2") format("woff2");
}

:root {
  --bg: #f4f0e8;
  --ink: #14130f;
  --muted: #6a665c;
  --line: #d6d0c2;
  --accent: #d9481c;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12110e;
    --ink: #f3efe6;
    --muted: #a09b8e;
    --line: #2e2c26;
    --accent: #ff7a4d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #fff; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--bg); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.wordmark {
  font: 700 20px/1 var(--display); letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: 10px;
}
.wordmark .mark { width: 22px; height: 22px; display: block; fill: currentColor; }
.wordmark .mark .pick { fill: var(--accent); }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 15px; font-weight: 500; }
.site-header nav a { color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: clamp(72px, 13vh, 150px); }
.eyebrow {
  margin: 0 0 28px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.hero h1 {
  margin: 0;
  font: 700 clamp(52px, 10.4vw, 164px)/0.9 var(--display);
  letter-spacing: -0.055em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-foot {
  margin-top: clamp(48px, 9vh, 110px);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  border-top: 1px solid var(--line); padding: 28px 0 clamp(56px, 9vh, 96px);
}
.hero-foot p { margin: 0; max-width: 34ch; }
.stat { font-size: 14px; color: var(--muted); }
.stat b {
  display: block; margin-bottom: 4px; color: var(--ink);
  font: 600 34px/1 var(--display); letter-spacing: -0.03em;
}

/* Brand bands */
.band { position: relative; overflow: hidden; color: #fff; }
.band .wrap { position: relative; z-index: 2; padding-top: clamp(72px, 12vh, 130px); }
.band .eyebrow { color: rgba(255,255,255,.62); }
.band h2 {
  margin: 0;
  font: 800 clamp(56px, 11vw, 176px)/0.88 var(--display);
  letter-spacing: -0.05em;
}
.band .lede {
  margin: 28px 0 0; max-width: 30ch;
  font-size: clamp(20px, 2.1vw, 28px); line-height: 1.3; color: rgba(255,255,255,.86);
}
.band-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.visit {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px;
  padding-bottom: 6px; border-bottom: 2px solid currentColor;
  transition: gap .25s;
}
.visit:hover { gap: 16px; }

.products { list-style: none; margin: clamp(48px, 8vh, 88px) 0 0; padding: 0; }
.products li { border-top: 1px solid rgba(255,255,255,.2); }
.products li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.product {
  display: grid; grid-template-columns: 1.1fr 1.5fr 0.9fr 28px; gap: 28px;
  align-items: center; padding: 26px 0;
  transition: padding .25s;
}
a.product:hover { padding-left: 14px; }
.product .name { font: 600 clamp(22px, 2.3vw, 32px)/1.1 var(--display); letter-spacing: -0.025em; }
.product .what { color: rgba(255,255,255,.74); font-size: 16px; }
.product .status { font-size: 14px; display: inline-flex; align-items: center; gap: 10px; }
.product .status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fe08f; flex: none;
  box-shadow: 0 0 0 4px rgba(95,224,143,.18);
}
.product .status.soon::before { background: #ffc061; box-shadow: 0 0 0 4px rgba(255,192,97,.18); }
.product .arrow { font-size: 22px; text-align: right; transition: transform .25s; }
a.product:hover .arrow { transform: translate(3px, -3px); }

/* Comet Barn band: dusk sky */
.band-comet {
  background: linear-gradient(180deg, #100f24 0%, #1d1a3f 32%, #4a3566 60%, #a8647c 82%, #f0a47c 100%);
}
.band-comet .wrap { padding-bottom: clamp(220px, 30vw, 380px); }
.band-comet h2 { text-transform: uppercase; color: #fbeedd; }
.band-comet .visit { color: #ffd9b0; }
.stars {
  position: absolute; inset: 0 0 35% 0; z-index: 0; opacity: .9;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 17% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 26% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 43% 18%, #ffe9c9 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 46%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 61% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 36%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 77% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 50%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 92% 8%, #ffe9c9 50%, transparent 51%),
    radial-gradient(1px 1px at 96% 34%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
.comet {
  position: absolute; z-index: 1; top: 13%; right: 9%;
  width: clamp(140px, 22vw, 340px); height: 2px;
  background: linear-gradient(90deg, #fff, rgba(255,233,201,.5) 30%, transparent);
  transform: rotate(-17deg); transform-origin: left center;
  animation: drift 9s ease-in-out infinite alternate;
}
.comet::before {
  content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 18px 6px rgba(255,226,180,.75);
}
@keyframes drift { from { translate: 0 0; } to { translate: -26px 8px; } }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: clamp(180px, 26vw, 340px); display: block; }

/* Tecyfy band: black, grid */
.band-tecyfy { background: #070707; }
.band-tecyfy::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 75% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 0%, #000 0%, transparent 75%);
}
.band-tecyfy .wrap { padding-bottom: clamp(72px, 12vh, 130px); }
.band-tecyfy h2 span {
  text-decoration: underline; text-decoration-thickness: 0.055em; text-underline-offset: 0.13em;
}
.band-tecyfy .lede { margin-top: 48px; }

/* Paper sections */
.sheet { padding: clamp(72px, 12vh, 130px) 0; }
.sheet + .sheet { border-top: 1px solid var(--line); }
.sheet-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.sheet h2 {
  margin: 0; font: 700 clamp(34px, 4.4vw, 60px)/1 var(--display); letter-spacing: -0.04em;
}
.facts { margin: 0; }
.facts div {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 500; }
.facts a { border-bottom: 1px solid var(--line); transition: border-color .2s, color .2s; }
.facts a:hover { color: var(--accent); border-color: var(--accent); }

.contact { text-align: left; }
.mail {
  display: inline-block; margin-top: 8px;
  font: 700 clamp(30px, 6.6vw, 104px)/1 var(--display); letter-spacing: -0.05em;
  transition: color .2s;
}
.mail:hover { color: var(--accent); }
.contact-more {
  margin: clamp(36px, 6vh, 64px) 0 0; display: flex; gap: 48px; flex-wrap: wrap;
  font-size: 15px; color: var(--muted);
}
.contact-more a { display: block; margin-top: 4px; color: var(--ink); font-weight: 500; font-size: 17px; }
.contact-more a:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); overflow: hidden; }
.site-footer .row {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 28px; font-size: 14px; color: var(--muted);
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer a:hover { color: var(--ink); }
.giant {
  margin: 0 0 -0.2em; text-align: center; white-space: nowrap; user-select: none;
  font: 800 19.5vw/0.8 var(--display); letter-spacing: -0.06em;
  color: var(--line); opacity: .6;
  pointer-events: none; /* its tall glyph box overlaps the footer links above it */
}

/* Legal pages */
.prose { padding-block: clamp(56px, 10vh, 110px); }
.prose > * { max-width: 68ch; }
.prose h1 { margin: 0 0 12px; font: 700 clamp(44px, 7vw, 88px)/0.95 var(--display); letter-spacing: -0.05em; }
.prose .updated { margin: 0 0 48px; color: var(--muted); font-size: 15px; }
.prose h2 { margin: 44px 0 10px; font: 600 24px/1.2 var(--display); letter-spacing: -0.02em; }
.prose p { margin: 0 0 14px; }
.prose a { border-bottom: 1px solid var(--line); }
.prose a:hover { color: var(--accent); border-color: var(--accent); }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars, .comet { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 820px) {
  body { font-size: 17px; }
  .site-header nav a.hide-s { display: none; }
  .site-header nav { font-size: 14px; gap: 14px; }
  .site-header nav a { white-space: nowrap; }
  .wordmark { font-size: 18px; }
  .comet { top: 4%; right: 6%; width: 110px; }
  .hero-foot { grid-template-columns: 1fr 1fr 1fr; }
  .hero-foot p { grid-column: 1 / -1; }
  .product { grid-template-columns: 1fr 24px; gap: 6px 16px; padding: 22px 0; }
  .product .what, .product .status { grid-column: 1; }
  .product .arrow { grid-column: 2; grid-row: 1; }
  .sheet-grid { grid-template-columns: 1fr; gap: 32px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}

/* Narrow phones: the mark, name and three links must fit one row. Below 360px the Contact link drops out. */
@media (max-width: 420px) {
  .site-header .wrap { gap: 12px; }
  .site-header nav { font-size: 13px; gap: 11px; }
  .wordmark { font-size: 16px; gap: 7px; }
  .wordmark .mark { width: 17px; height: 17px; }
}
@media (max-width: 359px) {
  .site-header nav a.hide-xs { display: none; }
}
