@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin-var.woff2) format('woff2');
}

:root {
  --paper: #F5F5F2;
  --ink: #10172A;
  --muted: #555D70;
  --line: #D6D8D2;
  --accent: #E2481A;
  --accent-light: #FF8A5C;
  --night-muted: #B9BECB;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; padding: 10px 16px; border-radius: 6px; background: var(--ink); color: var(--paper); }

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

/* Header */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 32px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 16px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 96px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 64px; }
.hero h1 { flex: 1 1 640px; min-width: 0; max-width: 13ch; margin: 0; font-size: clamp(48px, 7.6vw, 120px); line-height: .98; letter-spacing: -0.045em; font-weight: 600; }
.hero-mark { flex: 0 1 280px; width: 280px; max-width: 60%; height: auto; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-copy { flex: 1 1 420px; min-width: 0; }
.lede { margin: 0; max-width: 44ch; font-size: 20px; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 6px; font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); color: #FFFFFF; }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.facts { flex: 1 1 420px; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px 32px; align-content: start; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: 20px; font-weight: 500; }

/* The mark assembles once on load */
.mark-body { transform-box: fill-box; transform-origin: 100% 100%; animation: grow 1s var(--ease) both; }
.mark-head { transform-box: fill-box; transform-origin: center; animation: grow .6s .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.mark-beak { transform-box: fill-box; transform-origin: 0 50%; animation: grow .5s .9s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes grow { from { transform: scale(0); } to { transform: scale(1); } }

/* Products */
h2 { margin: 0; font-size: clamp(36px, 4.4vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: 32px; }
.note { margin: 0; font-size: 17px; color: var(--muted); }
.products { padding-top: 40px; padding-bottom: 120px; }
.index-wrap { position: relative; }
.index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .75fr) 168px 28px;
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: padding .35s var(--ease);
}
.row:hover { padding-left: 12px; color: var(--ink); }
.row:hover .row-name { color: var(--accent); }
.row-name { font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; transition: color .2s ease; }
.row-desc { font-size: 17px; line-height: 1.5; color: var(--muted); }
.row-where { font-size: 15px; line-height: 1.4; color: var(--muted); }
.row-thumb { width: 168px; height: 105px; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); background: #FFFFFF; }
.row-arrow { transition: transform .35s var(--ease); }
.row:hover .row-arrow { transform: translateX(6px); }

/* Hover preview that follows the pointer (desktop only, see site.js) */
.preview {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 460px;
  height: 288px;
  overflow: hidden;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 28px 60px -20px rgba(16, 23, 42, .45), 0 0 0 1px rgba(16, 23, 42, .08);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(.92);
  transition: opacity .25s ease, transform .35s var(--ease);
}
.preview.on { opacity: 1; transform: translateY(-50%) scale(1); }
.pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .25s ease; }
.pv.on { opacity: 1; }

/* How we work */
.approach { border-top: 1px solid var(--line); }
.approach-inner { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 120px; padding-bottom: 120px; }
.approach h2 { flex: 1 1 320px; }
.approach-body { flex: 2 1 560px; min-width: 0; max-width: 62ch; display: grid; gap: 28px; font-size: 20px; line-height: 1.6; }
.approach-body p { margin: 0; }

/* Contact and footer */
.contact { background: var(--ink); color: var(--paper); }
.contact a { color: var(--night-muted); }
.contact a:hover { color: var(--accent-light); }
.contact-inner { padding-top: 120px; padding-bottom: 96px; }
.contact-note { margin: 0 0 24px; font-size: 18px; color: var(--night-muted); }
.contact .mail { display: inline-block; color: var(--paper); font-size: clamp(24px, 5.6vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; transition: color .2s ease; }
.contact .mail:hover { color: var(--accent-light); }
.legal-bar { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 32px; padding-top: 20px; padding-bottom: 20px; font-size: 15px; color: var(--night-muted); }
.legal-bar::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(245, 245, 242, .18); }
.legal-bar nav { display: flex; gap: 24px; }
.legal-bar nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 96px; }
.legal h1 { margin: 0 0 32px; font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.legal h2 { margin: 36px 0 10px; font-size: 22px; letter-spacing: -0.01em; line-height: 1.3; }
.legal p { margin: 0 0 14px; line-height: 1.65; }

@media (hover: none), (max-width: 900px) {
  .preview { display: none; }
}
@media (max-width: 900px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 28px 0; }
  .row:hover { padding-left: 0; }
  .row-thumb { order: -1; width: 100%; height: auto; aspect-ratio: 16 / 10; margin-bottom: 8px; }
  .row-arrow { display: none; }
  .hero { padding-top: 40px; padding-bottom: 72px; }
  .hero-mark { width: 160px; }
  .approach-inner, .contact-inner { padding-top: 88px; padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
