:root {
  --navy: #0f172a;
  --slate: #0f172a;
  --ink: #0f172a;
  --paper: #f8fafc;
  --snow: #f8fafc;
  --mist: #f8fafc;
  --white: #fff;
  --fog: #94a3b8;
  --line: rgba(148, 163, 184, .3);
  --green: #4fbfa0;
  --green-text: #4fbfa0;
  --green-hover: #4fbfa0;
  --gold: #4fbfa0;
  --gold-hover: #4fbfa0;
  --text: #0f172a;
  --text-soft: #475569;
  --radius: 10px;
  --font: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.muted { color: var(--text-soft); }
.dark .muted, .site-footer .muted { color: var(--fog); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold); border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* header */
.site-header { background: var(--navy); color: var(--snow); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { text-decoration: none; }
.wordmark { font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; color: var(--snow); }
.wordmark .zero { color: var(--green); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { border-bottom-color: var(--green); }
.menu-btn { display: none; background: transparent; color: var(--snow); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; inset: 68px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a:not(.btn) { display: block; padding: 12px 0; }
}

/* buttons: dark text on light-colored fills keeps AA contrast */
.btn { display: inline-block; border: 2px solid transparent; border-radius: var(--radius); padding: 14px 24px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; transition: background .15s, color .15s; }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { filter: brightness(1.1); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: var(--green); filter: brightness(1.1); }
.btn-green:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { border-color: var(--fog); color: var(--snow); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.center-row { justify-content: center; }
.text-link { font-weight: 700; color: var(--green-text); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.beltway { color: #4fbfa0; font-weight: 600; text-decoration: none; }
.beltway:hover { text-decoration: underline; }
.beltway-dark { color: var(--ink); font-weight: 700; text-decoration: underline; }
.mini { font-size: .95rem; }

/* sections */
.dark { background: var(--navy); color: var(--snow); }
.slate { background: var(--slate); }
.paper { background: var(--paper); }
.mist { background: var(--mist); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #4fbfa0; margin-bottom: 12px; }
.eyebrow-green { color: var(--green-text); }
.lead { font-size: 1.2rem; color: var(--fog); max-width: 60ch; }
.lead-dark { font-size: 1.15rem; color: var(--text-soft); max-width: 62ch; }
.center { text-align: center; }
.final { padding: clamp(56px, 8vw, 96px) 0; }

/* hero */
.hero { padding: clamp(40px, 7vw, 88px) 0; }
.hero-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-fig { margin: 0; }
.hero-fig img { border-radius: 14px; border: 1px solid var(--line); }
figcaption { font-size: .85rem; color: var(--fog); margin-top: 8px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* cards + grids */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin: 28px 0; }
.card { background: var(--white); border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { counter-increment: s; border-top: 3px solid var(--green); padding-top: 16px; }
.steps:not(.steps-4) li::before { content: counter(s); display: block; font-weight: 800; font-size: 2rem; color: var(--green-text); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin: 0; padding: 28px; background: var(--paper); color: var(--ink); border-radius: 14px; font-weight: 700; font-size: 1.2rem; }
.checklist li { padding: 8px 0 8px 40px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 24px; height: 24px; border: 2px solid var(--green-text); border-radius: 4px; }
.checklist li.on::after { content: ""; position: absolute; left: 8px; top: 14px; width: 6px; height: 12px; border: solid var(--green-text); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.checklist li.strong { color: var(--green-text); }
.pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.pills li { background: var(--white); border: 1px solid #e2e8f0; border-radius: 999px; padding: 10px 20px; font-weight: 600; }
.callout { background: var(--white); border-left: 6px solid var(--green); border-radius: 10px; padding: 20px 24px; margin: 28px 0; }
.callout-text { font-size: 1.25rem; font-weight: 700; margin: 0; }

/* page head */
.page-head { padding: 36px 0 clamp(36px, 6vw, 64px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; font-size: .9rem; color: var(--fog); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--fog); }

/* prose */
.prose h2 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .6em; }
.answer { font-size: 1.3rem; font-weight: 600; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e2e8f0; font-weight: 700; }
.pager a { color: var(--green-text); text-decoration: none; }
.meta { font-size: .9rem; }

/* filters + faq + table */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.chip { border: 2px solid #94a3b8; background: var(--white); border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.chip.is-on { background: var(--navy); color: var(--snow); border-color: var(--navy); }
.tip-card[hidden] { display: none; }
.note { margin-top: 12px; }
.faq details { background: var(--white); border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 12px 0 0; }
.table-wrap { overflow-x: auto; margin-top: 20px; }
table { border-collapse: collapse; width: 100%; background: var(--white); min-width: 640px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
thead th { background: var(--navy); color: var(--snow); }
tbody th a { color: var(--green-text); font-weight: 700; }

/* portfolio */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
.feature figure { margin: 0; }
.feature figcaption { color: var(--text-soft); }
.feature img { border-radius: 14px; }
.placeholder { aspect-ratio: 4 / 3; border: 2px dashed #94a3b8; border-radius: 14px; display: grid; place-items: center; color: var(--text-soft); font-weight: 600; background: var(--mist); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

/* label kit + forms */
.kit { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .kit { grid-template-columns: 1fr; } }
label, legend { display: block; font-weight: 700; margin: 16px 0 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid #94a3b8; border-radius: 8px; background: var(--white); color: var(--text); }
input[type="checkbox"] { width: auto; }
.hint { font-size: .9rem; color: var(--text-soft); margin-top: 6px; }
.qr-box { background: var(--white); border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; min-height: 260px; display: grid; place-items: center; text-align: center; }
.qr-box svg { width: min(100%, 320px); height: auto; }
.kit-check { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; font-weight: 600; display: none; }
.kit-check.show { display: block; }
.kit-check.ok { background: #dcf3ec; color: #0f172a; }
.kit-check.warn { background: #fdf0d3; color: #6b4600; }
.kit-check.bad { background: #fbe1e1; color: #7a1c1c; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; gap: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 6px 0; }
.check input { margin-top: 5px; }
.form .btn { margin-top: 20px; }
.form-note { margin-top: 12px; font-weight: 600; }

/* footer */
.site-footer { background: var(--ink); color: var(--snow); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.foot-h { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fog); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 8px; }
.plain a { text-decoration: none; }
.plain a:hover { text-decoration: underline; }
.tag { letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; color: var(--fog); margin-top: 6px; }
.legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--fog); }

/* palette: light sections share one background, so separate them with a hairline */
.mist { border-top: 1px solid rgba(148, 163, 184, .35); border-bottom: 1px solid rgba(148, 163, 184, .35); }
.card, .faq details, .pills li { border-color: rgba(148, 163, 184, .4); }

/* logo image (white wordmark with mint zero, made for dark backgrounds) */
.brand { display: inline-block; line-height: 0; }
.logo { height: 34px; width: auto; }
.site-footer .logo { height: 36px; }

/* neutral catalog bridge card */
.bridge-sec { padding: clamp(28px, 5vw, 48px) 0; }
.bridge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--white); border: 1px solid rgba(148, 163, 184, .4); border-radius: 14px; padding: 20px 24px; }
.bridge-h { margin: 0; font-weight: 700; font-size: 1.1rem; max-width: 46ch; }
.btn-out-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-out-dark:hover { background: rgba(15, 23, 42, .06); }

/* placeholder badge */
.badge { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: rgba(79, 191, 160, .25); border: 1px solid var(--mint); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }

/* ---- three-pillar layout (home + section pages) ---- */
.ph { display: grid; place-items: center; text-align: center; border: 1px dashed rgba(148, 163, 184, .6); border-radius: 12px; background: rgba(148, 163, 184, .10); color: var(--fog); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 12px; }
.paper .ph, .mist .ph { background: #eef2f6; color: var(--text-soft); border-color: #94a3b8; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(165px, 1fr)); gap: 12px; }
.tile-tall { grid-column: 1 / 3; grid-row: 1 / 3; margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); min-height: 342px; }
.tile-tall img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; border: 0; border-radius: 0; }
.tile-tall figcaption { position: absolute; left: 10px; bottom: 10px; margin: 0; background: rgba(15, 23, 42, .85); color: var(--snow); padding: 2px 12px; border-radius: 999px; font-size: .75rem; }
.tile-wide { grid-column: 3 / 5; grid-row: 1; }
.tile-a { grid-column: 3; grid-row: 2; }
.tile-b { grid-column: 4; grid-row: 2; }
@media (max-width: 860px) { .tiles { grid-template-rows: repeat(2, 130px); } .tile-tall { min-height: 0; } }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.pillar { display: grid; grid-template-columns: 120px 1fr; gap: 18px; background: var(--white); border: 1px solid rgba(148, 163, 184, .4); border-radius: 14px; padding: 18px; align-items: start; }
.pillar h2 { font-size: 1.3rem; margin-bottom: .3em; }
.pillar p { font-size: .98rem; }
.pillar-img { width: 120px; height: 160px; object-fit: cover; object-position: 50% 45%; border-radius: 10px; }
.frame { margin: 0; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; border-radius: 14px; border: 1px solid var(--line); }
.res-card .btn { margin-top: 6px; }
.port-card img, .port-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; border-radius: 10px; margin-bottom: 14px; }
.grid3.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
/* on light sections, eyebrows and text links use dark text with a mint accent (mint text fails contrast on light) */
.eyebrow-dark, .eyebrow-green { color: var(--ink); border-left: 4px solid var(--mint); padding-left: 10px; }
.text-link, .text-link-dark { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.text-link:hover, .text-link-dark:hover { text-decoration-color: var(--ink); }
.tip-card .eyebrow { margin-bottom: 10px; }

/* small image tile (hero grid) */
.tile-img { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-img figcaption { position: absolute; left: 8px; bottom: 8px; margin: 0; background: rgba(15, 23, 42, .85); color: var(--snow); padding: 2px 10px; border-radius: 999px; font-size: .72rem; }
.tile-a img { object-fit: cover; object-position: center; }

/* banner tile: show the whole banner, on its own cream background */
.tile-banner { background: #faf7f0; display: grid; place-items: center; padding: 10px; }
.tile-banner img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }

/* comic tile + enlarged view */
.tile-comic { padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: zoom-in; display: grid; place-items: center; overflow: hidden; }
.tile-comic img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.tile-comic:focus-visible { outline: 3px solid var(--snow); box-shadow: 0 0 0 6px var(--mint); }
.zoom-dialog { border: 0; padding: 12px; border-radius: 14px; background: #fff; width: min(96vw, 1000px); }
.zoom-dialog::backdrop { background: rgba(15, 23, 42, .85); }
.zoom-dialog img { width: 100%; height: auto; display: block; border-radius: 8px; }
.zoom-dialog form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.zoom-close { font: inherit; font-weight: 700; background: var(--mint); color: var(--ink); border: 2px solid transparent; border-radius: 10px; padding: 8px 18px; cursor: pointer; }

/* full hot sauce concept sheet in the home portfolio card */
.port-card img.sheet-thumb { aspect-ratio: 1320 / 1003; height: auto; object-fit: contain; background: #f1f5f9; }

/* portfolio cards: show each image uncropped in the same frame; extra space is filled with a blurred copy */
.port-card .media { position: relative; aspect-ratio: 1312 / 1199; border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: var(--ink); }
.port-card .media img { position: relative; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; margin: 0; border-radius: 0; background: none; }
.port-card .media img.media-bg { position: absolute; top: -24px; left: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(18px); }
