/* Design tokens — derived from the Autosend hero (Mobbin reference) */
:root {
  --bg: #f8f8f7;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #3a3a3a;
  --muted: #6b6b6b;
  --rule: #e6e6e3;
  --dot: #d9d9d5;
  --accent: #5b5bf5;
  --accent-ink: #ffffff;
  --accent-hover: #4a48e6;
  --spot: #f26a1b;

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --frame: 1280px;
  --gutter: 32px;
  --nav-h: 64px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Frame: the thin vertical rails ---------- */
.frame {
  max-width: var(--frame);
  margin: 0 auto;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--bg);
}
.band { border-bottom: 1px solid var(--rule); }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Type ---------- */
.mono, .eyebrow, .btn, .nav-links a {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.eyebrow { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.eyebrow::before { content: "● "; color: var(--accent); font-size: 9px; vertical-align: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; color: var(--ink); text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(40px, 4.4vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; }
h3 { font-size: 26px; line-height: 1.2; }
h1 em, h2 em { font-style: italic; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
p { margin: 0 0 1em; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  font-size: 13px; font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  background: none; color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -1px 0 rgba(0,0,0,.18); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--rule); }
.btn-ghost:hover { border-color: #cfcfcb; }
.btn-text { padding: 0 4px; }
.btn-text:hover { color: var(--accent); }
.btn-lg { height: 40px; padding: 0 20px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.nav .frame { background: transparent; }
.nav-inner {
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { height: 26px; width: auto; }
.brand span { font-family: var(--sans); font-weight: 500; font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 13px; text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.lang { display: inline-flex; padding: 0 4px; gap: 0; }
.lang button { all: unset; box-sizing: border-box; cursor: pointer; padding: 0 8px; height: 34px; line-height: 34px; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.lang .sep { color: var(--rule); line-height: 34px; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  min-height: 640px; align-items: center;
  overflow: hidden;
}
.hero-copy { padding: 72px 0 72px var(--gutter); }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 32px; }
.cta-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero-art { align-self: stretch; position: relative; display: flex; align-items: flex-end; justify-content: flex-end; }
.hero-art img {
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 70% 55%;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%);
  mask-image: linear-gradient(to right, transparent 0, #000 12%);
}

/* ---------- Stats + logo strip ---------- */
.strip { display: grid; grid-template-columns: 300px 1fr; align-items: center; }
.stat { padding: 32px var(--gutter); border-right: 1px solid var(--rule); }
.stat-num { font-family: var(--sans); font-size: 40px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.stat-cap { font-size: 14px; color: var(--muted); margin: 6px 0 0; max-width: 17em; }
.logos { display: flex; justify-content: space-around; align-items: center; gap: 12px; padding: 16px var(--gutter); overflow: hidden; }
.logos img { height: 76px; width: auto; mix-blend-mode: multiply; filter: saturate(.9); transition: transform .2s ease; }
@media (hover: hover) { .logos img:hover { transform: translateY(-3px); } }

/* ---------- Dotted grid sections ---------- */
.dots {
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 16px 16px;
}
.section-head {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 300px; padding: 72px var(--gutter); text-align: center;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 16px 16px; background-position: center;
}
.section-head h2 { max-width: 18em; margin: 0 auto; }
.section-head .eyebrow { margin: 0 0 14px; }
.section-head p { max-width: 38em; margin: 18px auto 0; }

/* ---------- Feature grid (About Us bullets) ---------- */
.grid { display: grid; border-top: 1px solid var(--rule); background: var(--bg); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { padding: 28px var(--gutter) 32px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.grid-4 .cell:nth-child(4n) { border-right: 0; }
.cell .idx { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 18px; display: block; }
.cell p { margin: 0; color: var(--ink); font-size: 16px; }

/* ---------- Split rows (Company / Covers) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.split > * { padding: 56px var(--gutter); }
.split > :first-child { border-right: 1px solid var(--rule); }
.split h3 { margin-bottom: 18px; }
.split .eyebrow { margin-bottom: 12px; }
.media { display: flex; align-items: center; justify-content: center; background: var(--surface); }
.media.dots { background-color: var(--bg); }
.split > .media.art { padding: 24px; background: var(--bg); }
.media.art img { width: 100%; height: auto; max-height: none; mix-blend-mode: multiply; }
.media img { max-height: 320px; width: auto; }
.media .pair { display: flex; gap: 40px; align-items: flex-end; }
.media .pair img { max-height: 200px; }


/* Info cards */
.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.info .cell:nth-child(2n) { border-right: 0; }
.info h3 { font-size: 22px; margin-bottom: 12px; }
.big { font-family: var(--sans); font-size: 40px; letter-spacing: -0.02em; line-height: 1; margin: 4px 0 12px; color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.checklist li { counter-increment: c; padding: 8px 0 8px 34px; position: relative; border-bottom: 1px dashed var(--rule); color: var(--ink-2); font-size: 15px; }
.checklist li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 9px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.checklist li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.tile {
  all: unset; cursor: zoom-in; display: flex; flex-direction: column; align-items: stretch;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg);
  transition: background .2s ease;
}
.gallery .tile:nth-child(8n) { border-right: 0; }
.tile:hover { background: var(--surface); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tile img { aspect-ratio: 1; width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; padding: 18px; transition: transform .25s ease; }
@media (hover: hover) { .tile:hover img { transform: scale(1.05); } }
.tile span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 12px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(20,20,20,.72); backdrop-filter: blur(4px); }
.lb-inner { width: 100%; height: 100%; display: grid; place-items: center; }
.lb-card { background: #fff; border-radius: 10px; padding: 24px; width: min(560px, calc(100vw - 32px)); position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.lb-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.lb-title { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.lb-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lb-close { position: absolute; top: 10px; right: 10px; }

/* ---------- Contact ---------- */
/* Top row: 3 equal boxes. Bottom row: the 2 representatives, half width each. */
.contact { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.contact .cell { grid-column: span 2; }
.contact .cell:nth-child(n+4) { grid-column: span 3; }
.contact .cell:nth-child(3), .contact .cell:nth-child(5) { border-right: 0; }
.contact address, .contact dl { font-style: normal; margin: 0; color: var(--ink); line-height: 1.7; }
.contact dl { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
.contact dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact dd { margin: 0; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--rule); display: inline-block; padding: 9px 0 1px; margin: -9px 0 0; }
.contact a:hover { color: var(--accent); border-color: var(--accent); }
.person { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; }

/* ---------- Footer ---------- */
/* 3 columns with equal side tracks, so the copyright sits in the true centre whatever the logo widths */
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 40px var(--gutter); }
.footer > :first-child { justify-self: start; }
.footer > :last-child { justify-self: end; }
.footer small { text-align: center; }
.footer img { height: 44px; width: auto; }
.footer .jam { height: 22px; filter: invert(1); }
.footer small { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery .tile:nth-child(8n) { border-right: 1px solid var(--rule); }
  .gallery .tile:nth-child(4n) { border-right: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 .cell:nth-child(4n) { border-right: 0; }
  .grid-4 .cell:nth-child(2n) { border-right: 0; }
  .logos img:nth-child(n+5) { display: none; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; --nav-h: 60px; }

  /* Header: one tidy row, 40px touch targets */
  .nav-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .nav-links { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-primary { display: none; }
  .brand { min-width: 0; height: 40px; }
  .brand img { height: 22px; }
  .brand span { font-size: 13px; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; }
  .lang { height: 40px; padding: 0 2px; }
  .lang button { height: 38px; line-height: 38px; min-width: 32px; padding: 0 4px; text-align: center; }
  .lang .sep { line-height: 38px; padding: 0 1px; }
  .menu-btn { display: inline-flex; width: 40px; height: 40px; padding: 0; }
  .mobile-menu[data-open="true"] { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); background: var(--bg); }
  .mobile-menu a { padding: 14px var(--gutter); border-top: 1px solid var(--rule); text-decoration: none; font-family: var(--mono); font-size: 14px; text-transform: uppercase; }
  .mobile-menu a.btn-primary { margin: 14px var(--gutter); border-top: 0; }

  /* Hero: stacked, equal-width buttons, no stray gaps */
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 40px var(--gutter) 32px; }
  .hero-copy h1 { font-size: clamp(34px, 9.4vw, 44px); margin-bottom: 16px; }
  .hero-copy .lead { font-size: 17px; margin-bottom: 24px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-row .btn { width: 100%; height: 44px; }
  .cta-row .btn-text { background: var(--surface); border: 1px solid var(--rule); padding: 0 16px; }
  .hero-art { min-height: 0; }
  .hero-art img { width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }

  /* Stat + logos */
  .strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px var(--gutter); }
  .logos { padding: 12px var(--gutter); }
  .logos img { height: 64px; }
  .logos img:nth-child(n+4) { display: none; }

  /* Section titles */
  .section-head { min-height: 200px; padding: 48px var(--gutter); }

  /* Feature list: compact rows, number beside the text */
  .grid-4 { grid-template-columns: 1fr; }
  .grid-4 .cell { border-right: 0; display: flex; gap: 14px; align-items: baseline; padding: 16px var(--gutter); }
  .grid-4 .cell .idx { margin: 0; flex: none; width: 20px; }
  .grid-4 .cta-cell { display: block; padding: 20px var(--gutter); }
  .grid-4 .cta-cell .idx { display: none; }
  .grid-4 .cta-cell p, .grid-4 .cta-cell .btn { width: 100%; }
  .grid-4 .cta-cell .btn { height: 44px; }

  /* Split rows: every illustration sits above its text, consistent order */
  .split, .info, .contact { grid-template-columns: 1fr; }
  .split > * { padding: 32px var(--gutter); }
  .split > :first-child { border-right: 0; border-bottom: 1px solid var(--rule); }
  .split > .media { order: -1; border-bottom: 1px solid var(--rule); }
  .split:has(> .media) > :not(.media) { border-bottom: 0; }
  .split > .media.art { padding: 16px var(--gutter); }
  .media .pair { gap: 20px; }

  .info .cell, .contact .cell { border-right: 0; padding: 24px var(--gutter); }
  .contact .cell, .contact .cell:nth-child(n+4) { grid-column: auto; }

  /* Gallery: 3 across so the 32 covers don't become an endless scroll */
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery .tile:nth-child(n) { border-right: 1px solid var(--rule); }
  .gallery .tile:nth-child(3n) { border-right: 0; }
  .tile img { padding: 10px; }
  .tile span { white-space: normal; line-height: 1.35; padding: 0 8px 10px; min-height: calc(2 * 1.35em + 10px); }

  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer > :first-child, .footer > :last-child { justify-self: center; }
}
@media (max-width: 359px) {
  .brand span { font-size: 12px; letter-spacing: .05em; }
  .brand { gap: 7px; }
}
