/* Tokens */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #fffdf8;
  --ink: #0e1726;
  --muted: #4d5666;
  --line: #d3ccbd;
  --navy: #0d1a30;
  --cobalt: #1c4fd6;
  --cobalt-dark: #143ba6;
  --cobalt-light: #a9c0ff;
  --copper: #a14f1c;
  --copper-light: #e39a62;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --font: "Archivo", Arial, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--font); font-variation-settings: "wdth" 100; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: .98; }
section[id] { scroll-margin-top: 76px; }
:focus-visible { outline: 3px solid var(--copper-light); outline-offset: 3px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.is-placeholder { text-decoration: underline dotted 2px; text-underline-offset: 5px; text-decoration-color: var(--copper-light); }
.lead { font-size: 18px; color: var(--muted); max-width: 44ch; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; background: var(--cobalt); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; border: 2px solid var(--cobalt); border-radius: 2px; transition: background .18s, border-color .18s; }
.button:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); }
.button--light { background: var(--card); color: var(--navy); border-color: var(--card); }
.button--light:hover { background: var(--paper-2); border-color: var(--paper-2); }
.button--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.button--outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.text-link { font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--copper-light); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name { font-weight: 800; font-size: 20px; font-variation-settings: "wdth" 125; letter-spacing: -.01em; }
.brand-sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: 600; text-decoration: none; }
.nav a:not(.button):hover { color: var(--cobalt); }
.nav .button { min-height: 44px; padding: 0 18px; }
.menu-toggle { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--navy); color: #fff; min-height: min(660px, calc(100vh - 72px)); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 72px 56px 72px max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.hero h1 { font-size: clamp(52px, 5.6vw, 88px); line-height: .95; margin-bottom: 30px; max-width: 9ch; }
.hero-copy { font-size: 19px; color: #dfe5ef; max-width: 40ch; }
.hero-copy--small { font-size: 16px; color: #aebbd0; margin-top: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 36px; }
.hero-photo { position: relative; min-height: 420px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero-photo figcaption { position: absolute; right: 0; bottom: 0; background: var(--navy); color: #c9d3e3; font-size: 12px; padding: 7px 12px; }

/* Services: fuse board + legend */
.services { padding: clamp(72px, 10vw, 120px) 0; }
.services-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.board { background: #dcd6c9; border: 1px solid #c4bcab; padding: 26px 28px; margin-bottom: 0; border-radius: 4px 4px 0 0; }
.rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 14px 0; background: linear-gradient(#b9b3a6, #b9b3a6) center / 100% 30px no-repeat; }
.breaker { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; background: #fbfaf6; border: 1px solid #c9c2b2; border-radius: 3px; padding: 12px 0 16px; box-shadow: 0 2px 0 #c4bcab; transition: background .15s; }
.breaker b { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--ink); }
.breaker i { display: block; width: 18px; height: 40px; border-radius: 3px; background: #e9e5dc; border: 1px solid #c9c2b2; position: relative; }
.breaker i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 16px; background: var(--navy); border-radius: 2px; transition: background .15s; }
.breaker.is-active { background: #fff; }
.breaker.is-active i::after { background: var(--copper); }

.legend { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid #c4bcab; border-top: 0; font-size: 16px; }
.legend caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.legend thead th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 20px; border-bottom: 2px solid var(--ink); }
.legend tbody tr { border-bottom: 1px solid var(--line); transition: background .15s; }
.legend tbody tr:last-child { border-bottom: 0; }
.legend tbody tr:hover, .legend tbody tr.is-active { background: #f7f1e6; }
.legend td, .legend tbody th { padding: 20px; vertical-align: top; text-align: left; }
.legend-f { width: 90px; font-weight: 800; color: var(--copper); font-variation-settings: "wdth" 125; }
.legend tbody th { width: 34%; font-size: 21px; font-weight: 800; line-height: 1.2; font-variation-settings: "wdth" 112; letter-spacing: -.01em; }
.legend tbody td:last-child { color: var(--muted); }

/* Audience */
.audience { background: var(--paper-2); padding: clamp(72px, 9vw, 112px) 0; }
.audience .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.audience-item h3 { font-size: clamp(38px, 4.4vw, 58px); line-height: .98; margin-bottom: 22px; }
.audience-item:last-child h3 { color: var(--cobalt); }
.audience-item p { color: var(--muted); max-width: 46ch; }

/* About */
.about { padding: clamp(80px, 11vw, 136px) 0; }
.about .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.about h2 { font-size: clamp(44px, 6vw, 84px); line-height: .95; }
.about-copy p { color: var(--muted); max-width: 52ch; }
.about-copy p + p { margin-top: 16px; }

/* Process */
.process { background: var(--navy); color: #fff; padding: clamp(72px, 9vw, 112px) 0; }
.process-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.process-head .lead { color: #c3cddc; }
.steps { counter-reset: k; border-top: 1px solid rgba(255, 255, 255, .25); }
.step { counter-increment: k; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 32px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.step::before { content: counter(k) "."; font-weight: 800; font-size: 20px; color: var(--copper-light); }
.step h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.step p { color: #c3cddc; max-width: 46ch; }

/* Contact */
.contact { background: var(--cobalt); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact h2 { max-width: 12ch; }
.contact-intro p { color: #e3ebfb; margin-top: 22px; max-width: 42ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.contact-actions[hidden], .button[hidden] { display: none; }
.sticker { background: var(--card); color: var(--ink); padding: 26px 28px 18px; border-radius: 6px; box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 18px 40px rgba(6, 20, 60, .25); transform: rotate(-1.2deg); }
.sticker-top { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.sticker-name { font-weight: 800; font-size: 30px; line-height: 1.05; font-variation-settings: "wdth" 125; letter-spacing: -.02em; margin: 4px 0 14px; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.sticker-name.is-placeholder { text-decoration: none; }
.sticker-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dotted #b8b0a0; }
.sticker-list div:last-child { border-bottom: 0; }
.sticker-list dt { font-size: 13px; color: var(--muted); padding-top: 2px; }
.sticker-list dd { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.sticker-list .is-placeholder { text-decoration: none; color: var(--muted); font-weight: 600; }
.sticker-list a { color: var(--cobalt); text-underline-offset: 3px; }

/* Footer */
.footer { background: var(--navy); color: #c9d3e3; padding: 40px 0 26px; font-size: 15px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: #9aa8bd; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; font-size: 13px; color: #9aa8bd; }

/* Tablet */
@media (max-width: 1024px) {
  .nav { gap: 22px; }
  .nav a { font-size: 14px; }
  .hero-text { padding-right: 40px; }
  .legend tbody th { width: 38%; font-size: 19px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: none; border: 2px solid var(--ink); color: var(--ink); font: 700 15px var(--font); cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .menu-toggle[aria-expanded="true"] span { box-shadow: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav.is-open { display: flex; }
  .nav a { font-size: 17px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .button { margin-top: 14px; border-bottom: 2px solid var(--cobalt); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 56px var(--gutter) 48px; }
  .hero h1 { max-width: none; }
  .hero-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .services-head, .process-head { display: block; }
  .services-head .lead, .process-head .lead { margin-top: 16px; }
  .board { padding: 18px; }
  .rail { gap: 4px; }
  .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px minmax(0, 1fr); }
  .step p { grid-column: 2; }
  .sticker { max-width: 460px; }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header .wrap { min-height: 64px; }
  section[id] { scroll-margin-top: 68px; }
  .brand-name { font-size: 18px; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 60px); }
  .hero-copy { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-photo img { object-position: 74% center; }
  .lead { font-size: 17px; }
  .board { padding: 12px 10px; }
  .breaker { padding: 8px 0 10px; gap: 8px; }
  .breaker b { font-size: 11px; }
  .breaker i { width: 12px; height: 28px; }
  .breaker i::after { height: 11px; }
  .legend thead { display: none; }
  .legend tbody tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 16px 14px; }
  .legend td, .legend tbody th { padding: 0; }
  .legend-f { width: auto; grid-row: span 2; }
  .legend tbody th { width: auto; font-size: 19px; margin-bottom: 4px; }
  .legend tbody td:last-child { grid-column: 2; font-size: 15px; }
  .audience .wrap { grid-template-columns: 1fr; }
  .step { grid-template-columns: 36px minmax(0, 1fr); padding: 22px 0; }
  .contact-actions .button { width: 100%; }
  .sticker { padding: 20px 18px 12px; transform: rotate(-.8deg); }
  .sticker-list div { grid-template-columns: 1fr; gap: 0; }
  .footer-top { display: block; }
  .footer-nav { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
