/* ==========================================================================
   hunnewell.tech — Signal Flags
   Reference implementation. Depends on tokens.css (load it first).
   Sections:
     1. Fonts            5. Hero / hoist         9. About
     2. Base             6. Work / product rows  10. Contact
     3. Utilities        7. Product panels       11. Footer
     4. Header           8. Lab                  12. Motion & print
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Site fonts: always loaded. */
@font-face { font-family: "Familjen Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/site/familjen-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/site/familjen-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/site/familjen-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/site/red-hat-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/site/red-hat-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/site/red-hat-mono-latin-600-normal.woff2") format("woff2"); }
/* Product-panel fonts: only used inside .panel-*; the browser fetches them
   lazily when a panel using them renders. */
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/panels/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/panels/geist-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/panels/geist-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/panels/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/panels/bitter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/panels/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/panels/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/panels/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/panels/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/panels/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/panels/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/panels/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/panels/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Swapjaw IPA"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/panels/swapjaw-ipa-600.woff2") format("woff2"); }
@font-face { font-family: "Besley"; font-weight: 400 900; font-style: normal; font-display: swap; src: url("assets/fonts/panels/besley-variable.ttf") format("truetype"); }

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--hw-bunting);
  color: var(--hw-navy);
  font-family: var(--hw-font-sans);
  font-size: var(--hw-fs-body);
  line-height: var(--hw-lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--hw-flag-blue); }
a:hover { color: var(--hw-flag-red); }
:focus-visible { outline: 3px solid var(--hw-flag-yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--hw-navy); }
svg { display: block; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--hw-navy); color: var(--hw-bunting); padding: 10px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* 3. Utilities ------------------------------------------------------------ */
.wrap { max-width: var(--hw-maxw); margin: 0 auto; padding-inline: var(--hw-gutter); }
.mono { font-family: var(--hw-font-mono); }
.label {
  font-family: var(--hw-font-mono);
  font-size: var(--hw-fs-label);
  letter-spacing: var(--hw-ls-label);
  text-transform: uppercase;
}
.label--accent { color: var(--hw-flag-red); }
/* Caps are reserved for signal-like labels (product category, status tags, stat names, codes).
   Everything else that is meta uses the mono face in sentence case. */
.label--plain { text-transform: none; letter-spacing: 0.01em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons (links styled as buttons) */
.btn {
  display: inline-flex; align-items: center; min-height: 48px;
  font-family: var(--hw-font-sans); font-weight: var(--hw-fw-heading); font-size: 16px;
  padding: 11px 22px; border: var(--hw-rule); border-radius: var(--hw-radius);
  text-decoration: none; transition: background-color var(--hw-dur) var(--hw-ease), color var(--hw-dur) var(--hw-ease);
}
.btn--primary { background: var(--hw-flag-yellow); color: var(--hw-navy); }
.btn--primary:hover { background: var(--hw-navy); color: var(--hw-flag-yellow); }
.btn--secondary { background: var(--hw-navy); color: var(--hw-bunting); }
.btn--secondary:hover { color: var(--hw-bunting); background: var(--hw-flag-blue); }

/* Status tags */
.tag {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--hw-font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  border: var(--hw-rule-tag); padding: 4px 9px;
}
.tag--dev { border: var(--hw-rule-tag-dev); }

/* Flags (inline SVG <use> from the sprite in index.html) */
.flag { width: 100%; height: auto; aspect-ratio: 3 / 2; }

/* 4. Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--hw-bunting);
  border-bottom: var(--hw-rule);          /* this rule is also the halyard the hero flags hang from */
}
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 14px; padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand__home { display: flex; align-items: center; min-height: 44px; min-width: 44px; }
.brand__home .flag { width: var(--hw-flag-w-nav); }
.brand__swap { position: relative; display: grid; align-items: center; }
.brand__swap > * { grid-area: 1 / 1; transition: opacity var(--hw-dur) var(--hw-ease), transform var(--hw-dur) var(--hw-ease); }
.brand__counts { display: flex; align-items: center; gap: 8px; }
.brand__counts a { color: var(--hw-navy); text-decoration: none; padding-block: 12px; }
.brand__counts a:hover { color: var(--hw-flag-red); }
.brand__dot { color: var(--hw-flag-red); }
.brand__word {
  font-weight: var(--hw-fw-bold); font-size: 22px; letter-spacing: -0.02em; white-space: nowrap;
  color: var(--hw-navy); text-decoration: none;
  opacity: 0; transform: translateY(6px); pointer-events: none;
}
/* After the hero wordmark scrolls out of view (main.js sets .is-scrolled),
   the counts swap for the full name. */
.site-header.is-scrolled .brand__counts { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.site-header.is-scrolled .brand__word   { opacity: 1; transform: none; pointer-events: auto; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-nav a { color: var(--hw-navy); text-decoration: none; padding-block: 12px; font-size: 16px; font-weight: var(--hw-fw-heading); }
.site-nav a:hover { color: var(--hw-flag-red); }
.site-nav a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav a.site-nav__contact { color: var(--hw-flag-red); }

/* 5. Hero / hoist --------------------------------------------------------- */
.hero { padding-bottom: 56px; }
.hoist { display: flex; flex-wrap: nowrap; gap: var(--hw-flag-gap); }
.hoist__item { display: flex; flex-direction: column; align-items: center; width: var(--hw-flag-w-hero); }
.hoist__cord { width: 2px; height: var(--hw-flag-cord); background: var(--hw-navy); }
.hero__body { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.hero__name { font-weight: var(--hw-fw-display); line-height: var(--hw-lh-display); letter-spacing: var(--hw-ls-display); }
.hero__name-main { display: block; font-size: var(--hw-fs-display); }
.hero__name-sub  { display: block; font-size: var(--hw-fs-display-sub); letter-spacing: var(--hw-ls-display-sub); line-height: 1; margin-top: 4px; font-weight: var(--hw-fw-heading); padding-left: 0.04em; }
.hero__est { margin-top: 16px; font-size: var(--hw-fs-label-lg); }
/* padding-top drops the lead's first line onto the wordmark's cap line (half-leading + ascender gap at lh 0.9). */
.hero__aside { max-width: 24em; display: flex; flex-direction: column; gap: 20px; padding-top: calc(var(--hw-fs-display) * 0.13); }
.hero__lead { font-size: var(--hw-fs-lead); line-height: 1.45; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* 6. Work / product rows -------------------------------------------------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-title { font-weight: var(--hw-fw-heading); font-size: var(--hw-fs-h2); letter-spacing: var(--hw-ls-h2); line-height: 1; }

.work { border-top: var(--hw-rule); }
.work .section-head { padding-top: var(--hw-section-y-sm); padding-bottom: 16px; }
.products { display: flex; flex-direction: column; gap: var(--hw-gap-rows); padding-top: 16px; }

.product {
  container: product / inline-size;
  display: flex; flex-wrap: wrap;
  border: var(--hw-rule); background: var(--hw-white);
}
.product--flip { flex-direction: row-reverse; }   /* alternate rows: panel on the left */

.product__info { flex: 3 1 440px; min-width: 0; padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.product__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product__id { display: flex; align-items: center; gap: 12px; }
.product__id .flag { width: var(--hw-flag-w-row); flex: none; }
.product__name { font-weight: var(--hw-fw-heading); font-size: var(--hw-fs-h3); letter-spacing: var(--hw-ls-h3); line-height: 1; }
.product__desc { max-width: 40em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; font-size: 13px; }
.stats dt { font-family: var(--hw-font-mono); opacity: .78; text-transform: uppercase; letter-spacing: .04em; }
.stats dd { font-size: var(--hw-fs-stat); font-weight: var(--hw-fw-heading); }
.stats dd.num { font-family: var(--hw-font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.product__link { margin-top: auto; font-family: var(--hw-font-mono); font-size: 14px; font-weight: 600; }

/* Panel container: the product's own look lives ONLY inside this box. */
.product__panel { flex: 2 1 320px; min-width: 0; min-height: 300px; display: flex; flex-direction: column; border-left: var(--hw-rule); overflow: hidden; }
.product--flip .product__panel { border-left: 0; border-right: var(--hw-rule); }
/* Mockups render at 86% (type and spacing together) so they support the product name, not outrank it. */
.product__panel > :not(.panel__caption) { zoom: 0.86; }
.panel__caption {
  margin-top: auto; border-top: var(--hw-rule); background: var(--hw-bunting); color: var(--hw-navy);
  padding: 8px 14px; display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--hw-font-mono); font-size: var(--hw-fs-micro); letter-spacing: var(--hw-ls-micro); text-transform: uppercase;
}
/* When the row stacks (info and panel each full width), the panel sits below
   the info with a top rule instead of a side rule. */
@container product (max-width: 759px) {
  .product__panel, .product--flip .product__panel { border-left: 0; border-right: 0; border-top: var(--hw-rule); }
  .product__info { padding: 26px 22px; }
}

/* 7. Product panels --------------------------------------------------------
   Each block below recreates a slice of that product's real UI using its own
   fonts and colors. Keep these values in sync with the live product sites;
   they are intentionally NOT tokenized into the Hunnewell system.          */

/* VesselProfile — Swiss Registry: Geist + Geist Mono, black and white, one vermilion dot */
.panel-vp { background: #FFFFFF; color: #0A0A0A; font-family: "Geist", ui-sans-serif, system-ui, sans-serif; }
.panel-vp__bar { background: #0A0A0A; color: #FFFFFF; padding: 14px 20px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.panel-vp__mark { display: block; width: 22px; height: 22px; }
.panel-vp__dot { display: inline-block; width: .17em; height: .17em; margin-left: .04em; border-radius: 50%; background: #E8432E; }
.panel-vp__body { padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.panel-vp__label { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6B6B6B; }
.panel-vp__h { font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.025em; margin-top: -8px; }
.panel-vp__card { background: #FFFFFF; border: 1px solid #D9D9D9; border-top: 1.5px solid #0A0A0A; padding: 14px 16px; }
.panel-vp__ship { font-weight: 700; font-size: 20px; margin-top: 6px; }
.panel-vp__imo { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: #555555; font-variant-numeric: tabular-nums; }
.panel-vp__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.panel-vp__k { font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #6B6B6B; }
.panel-vp__btn { align-self: flex-start; background: #0A0A0A; color: #FFFFFF; font-weight: 600; font-size: 14px; padding: 10px 16px; }

/* SendRepair — Copper & Patina: Bitter 800 + Hanken Grotesk, deep patina hero, copper CTA */
.panel-sr { background: #F4F1EC; color: #1F2A28; font-family: "Hanken Grotesk", system-ui, sans-serif; }
.panel-sr__bar { padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; background: #F4F1EC; border-bottom: 1px solid #ECE7DF; }
.panel-sr__logo { display: flex; align-items: center; gap: 8px; font-family: "Bitter", Georgia, serif; font-weight: 800; font-size: 18px; color: #173A34; }
.panel-sr__mark { display: block; width: 22px; height: 22px; }
.panel-sr__nav { font-size: 12px; font-weight: 600; color: #FFFFFF; background: #A9572A; padding: 6px 10px; border-radius: 8px; }
.panel-sr__body { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: center; background: #173A34; color: #F4F1EC; }
.panel-sr__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #E0915C; }
.panel-sr__h { font-family: "Bitter", Georgia, serif; font-weight: 800; font-size: 34px; line-height: 1.08; letter-spacing: -0.01em; }
.panel-sr__lead { font-size: 14px; line-height: 1.45; color: #CFE3DC; }
.panel-sr__btn { align-self: flex-start; font-weight: 600; font-size: 14px; background: #A9572A; color: #FFFFFF; padding: 10px 18px; border-radius: 8px; }

/* Blockbook — Oswald + Work Sans, paper grain, navy, mustard, tomato */
.panel-bb { background-color: #F6EFDC; background-image: radial-gradient(rgba(90,81,63,.10) 1px, transparent 1.2px); background-size: 4px 4px; color: #1B2A57; font-family: "Work Sans", system-ui, sans-serif; }
.panel-bb__bar { background: #1B2A57; padding: 14px 22px; }
.panel-bb__logo { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 30px; color: #E8B93C; letter-spacing: .02em; text-shadow: 2px 2px 0 #E2553A; line-height: 1; }
.panel-bb__place { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 11px; color: #F6EFDC; letter-spacing: .12em; }
.panel-bb__body { padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.panel-bb__card { background: #FFFDF5; border: 2px solid #1B2A57; box-shadow: 5px 5px 0 #E8B93C; padding: 16px 18px; }
.panel-bb__h { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.panel-bb__p { font-size: 14px; line-height: 1.5; margin-top: 6px; }
.panel-bb__btn { align-self: flex-start; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 14px; letter-spacing: .04em; background: #FFFDF5; border: 2px solid #1B2A57; box-shadow: 3px 3px 0 #1B2A57; padding: 9px 16px; }

/* swapjaw — Neon Night: Space Grotesk + Manrope + Swapjaw IPA, ink-violet night, cyan glow, pink→violet CTA */
.panel-sj { background: radial-gradient(ellipse 80% 50% at 0% 0%, #2E1650 0%, rgba(16,12,27,0) 70%), #100C1B; color: #EFEAFF; font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; }
.panel-sj__bar { padding: 14px 20px; border-bottom: 1px solid #352B57; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-sj__logo { display: flex; align-items: center; gap: 8px; font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.panel-sj__mark { display: block; width: 24px; height: 24px; }
.panel-sj__nav { font-size: 12px; font-weight: 800; color: #EFEAFF; border: 1px solid #4A3D78; padding: 6px 12px; border-radius: 999px; }
.panel-sj__body { padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; flex: 1; justify-content: center; }
.panel-sj__h { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 30px; line-height: 1.04; letter-spacing: -0.03em; }
.panel-sj__h em { font-style: normal; color: #2EE6F5; text-shadow: 0 0 22px rgba(46,230,245,.45); }
.panel-sj__demo { border: 1px solid #352B57; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(160deg, rgba(255,93,177,.10), rgba(169,139,255,.06) 40%, #1B152D 70%); }
.panel-sj__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.panel-sj__tag { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #A69CC9; border: 1px solid #352B57; border-radius: 999px; padding: 3px 9px; }
.panel-sj__dot { width: 6px; height: 6px; border-radius: 50%; background: #2EE6F5; box-shadow: 0 0 8px #2EE6F5; }
.panel-sj__line { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.panel-sj__word { display: inline-flex; flex-direction: column; align-items: flex-start; }
.panel-sj__say { font-weight: 800; font-size: 22px; line-height: 1.15; }
.panel-sj__ipa { display: flex; font-family: "Swapjaw IPA", "Noto Sans", sans-serif; font-weight: 600; font-size: 14px; line-height: 1.35; color: #9C8FD3; }
.panel-sj__seg { display: flex; flex-direction: column; align-items: center; }
.panel-sj__seg b { font-weight: 600; }
.panel-sj__seg s { font-size: 10px; line-height: 1.2; color: #FF5DB1; opacity: .85; }
.panel-sj__seg--swap { background: rgba(169,139,255,.12); border-radius: 4px; padding: 0 2px; color: #B9A4FF; }
.panel-sj__seg--on { background: rgba(46,230,245,.12); border-radius: 4px; padding: 0 2px; color: #2EE6F5; text-shadow: 0 0 10px rgba(46,230,245,.67); }
.panel-sj__btn { align-self: flex-start; font-weight: 800; font-size: 14px; color: #100C1B; background: linear-gradient(90deg, #FF5DB1, #A98BFF); padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(255,93,177,.25); }
/* Inkwell — Charcoal (light): Besley, warm paper, charcoal text, amber only on link underlines and checked boxes.
   Hand-fitted from the app's Charcoal theme; the TTF is the full variable font (no woff2 subset yet). */
.panel-ink { background: #FCFCFB; color: #262624; font-family: "Besley", Georgia, serif; }
.panel-ink__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #FFFFFF; border-bottom: 1px solid #E2E1DC; font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif; }
.panel-ink__dots { display: flex; gap: 6px; }
.panel-ink__dots i { width: 9px; height: 9px; border-radius: 50%; background: #C9C8C3; }
.panel-ink__file { font-size: 12px; font-weight: 600; color: #141413; }
.panel-ink__seg { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 6px; background: #F3F3F0; font-size: 10px; color: #6B6A66; }
.panel-ink__seg > * { padding: 2px 8px; border-radius: 4px; font-weight: 400; }
.panel-ink__seg b { background: #FFFFFF; color: #141413; font-weight: 500; box-shadow: 0 0 0 1px #E2E1DC; }
.panel-ink__body { padding: 22px 26px 18px; flex: 1; font-size: 13px; line-height: 1.5; }
.panel-ink__h1 { font-weight: 650; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; color: #141413; padding-bottom: 8px; border-bottom: 1px solid #E2E1DC; }
.panel-ink__h2 { font-weight: 650; font-size: 16px; line-height: 1.2; color: #141413; margin-top: 14px; padding-bottom: 5px; border-bottom: 1px solid #E2E1DC; }
.panel-ink__p { margin: 10px 0 0; }
.panel-ink__list { list-style: none; margin: 10px 0 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 3px; }
.panel-ink__list li { display: flex; align-items: center; gap: 8px; }
.panel-ink__list i { flex: none; width: 11px; height: 11px; border-radius: 3px; border: 1px solid #6B6A66; background: #FCFCFB; position: relative; }
.panel-ink__list .is-done i { background: #D9A514; border-color: #D9A514; }
.panel-ink__list .is-done i::after { content: ""; position: absolute; left: 3px; top: 0; width: 3px; height: 6px; border: solid #262624; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.panel-ink__table { border-collapse: collapse; margin-top: 12px; font-size: 12px; }
.panel-ink__table th, .panel-ink__table td { border: 1px solid #E2E1DC; padding: 3px 10px; text-align: left; }
.panel-ink__table th { background: #F3F3F0; font-weight: 650; color: #141413; }
.panel-ink__link { text-decoration: underline; text-decoration-color: #D9A514; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* 8. Lab ------------------------------------------------------------------ */
.lab { padding-block: var(--hw-section-y) 64px; }
.lab .section-head { margin-bottom: 24px; }
.lab__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: var(--hw-rule); border-left: var(--hw-rule); }
.lab__item { border-right: var(--hw-rule); border-bottom: var(--hw-rule); padding: 22px; display: flex; flex-direction: column; gap: 8px; background: var(--hw-white); }
.lab__stage { font-size: var(--hw-fs-small); color: var(--hw-flag-red); font-weight: var(--hw-fw-heading); }
.lab__name { font-size: var(--hw-fs-h4); letter-spacing: var(--hw-ls-h4); font-weight: var(--hw-fw-heading); line-height: 1.2; }
.lab__desc { font-size: var(--hw-fs-small); }

/* 9. About ---------------------------------------------------------------- */
.about { background: var(--hw-navy-deep); color: var(--hw-bunting); }
.about__inner { padding-block: var(--hw-section-y); display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: start; }
.about__body { display: flex; flex-direction: column; gap: 18px; font-size: var(--hw-fs-about); line-height: 1.5; }
.about__legal { color: var(--hw-flag-yellow); }

/* 10. Contact ------------------------------------------------------------- */
/* Deliberately smaller than About: a strip, not a section. */
.contact { background: var(--hw-flag-yellow); color: var(--hw-navy); border-top: var(--hw-rule); border-bottom: var(--hw-rule); }
.contact__inner { padding-block: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.contact__inner h2 { font-weight: var(--hw-fw-regular); }
.contact__email { color: var(--hw-navy); font-weight: var(--hw-fw-heading); font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.1; word-break: break-word; }
.contact__email:hover { color: var(--hw-navy); text-decoration-thickness: 3px; }

/* 11. Footer -------------------------------------------------------------- */
.site-footer__inner { padding-block: 22px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.site-footer__hoist { display: flex; gap: 4px; }
.site-footer__hoist .flag { width: 24px; }

/* 12. Motion & print ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 560px) {
  :root { --hw-fs-h2: 32px; --hw-fs-h3: 28px; --hw-gutter: 20px; --hw-flag-gap: 6px; --hw-flag-cord: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .site-header { position: static; }
}
