/* Typecase: shared tokens, header (drawer-nav section) and footer (mega-footer section).
   Tokens: the "Postcard" palette of the office-cards-contact page layer, accents deepened for AA text contrast.
   Fonts: Funnel Display + Kumbh Sans, from the same layer. */
:root { --bg: #fdf6e9; --fg: #22303c; --accent: #c8102e; --accent-2: #0369a1; --card: #f5ead3; --muted: color-mix(in oklab, var(--fg) 74%, var(--bg)); --accent-ink: var(--accent); --accent-2-ink: var(--accent-2); --on-accent: #ffffff; --on-accent-2: #ffffff; --line: color-mix(in oklab, var(--fg) 14%, transparent); --font-display: "Funnel Display"; --font-body: "Kumbh Sans"; --v-stroke: var(--fg); --v-accent: var(--accent); --v-fill: var(--fg); }
/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body), system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--fg); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
main { position: relative; z-index: 1; background: var(--bg); border-radius: 0 0 28px 28px; box-shadow: 0 24px 40px -24px color-mix(in oklab, var(--fg) 40%, transparent); padding-bottom: 32px; }
.ic { width: 20px; height: 20px; flex: none; }
/* shared pause control (WCAG 2.2.2) */
.pz { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--fg) 22%, transparent); background: color-mix(in oklab, var(--bg) 82%, transparent); color: var(--fg); cursor: pointer; }
.pz svg { width: 14px; height: 14px; fill: currentColor; }
.pz[aria-pressed=true] .i-pa, .pz:not([aria-pressed=true]) .i-pl { display: none; }
.pz:hover { border-color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .pz { display: none; } }

/* navigation */
#navigation { position: sticky; top: 0; z-index: 50; }
#navigation .dn-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; padding: 0 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
#navigation .dn-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--fg); text-decoration: none; }
#navigation .dn-logo svg { width: 28px; height: 28px; }
#navigation .dn-right { display: flex; align-items: center; gap: 10px; }
#navigation .dn-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; text-decoration: none; }
#navigation .dn-cta:hover { background: color-mix(in oklab, var(--accent) 86%, var(--fg)); }
#navigation .dn-btn { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; display: grid; place-items: center; }
#navigation .dn-btn span { position: absolute; width: 18px; height: 2px; background: var(--fg); transition: transform 300ms, opacity 300ms; }
#navigation .dn-btn span:first-child { transform: translateY(-4px); } #navigation .dn-btn span:last-child { transform: translateY(4px); }
#navigation.open .dn-btn span:first-child { transform: rotate(45deg); } #navigation.open .dn-btn span:last-child { transform: rotate(-45deg); }
#navigation .dn-overlay { position: fixed; inset: 0; background: var(--bg); color: var(--fg); clip-path: circle(0 at var(--x, 95%) var(--y, 32px)); transition: clip-path 450ms cubic-bezier(.7,0,.2,1), visibility 0s 450ms; visibility: hidden; display: grid; grid-template-columns: 1fr 360px; grid-template-rows: 1fr auto; gap: 24px; padding: 100px 48px 36px; pointer-events: none; overflow-y: auto; }
#navigation.open .dn-overlay { clip-path: circle(150% at var(--x, 95%) var(--y, 32px)); transition: clip-path 600ms cubic-bezier(.7,0,.2,1), visibility 0s; visibility: visible; pointer-events: auto; }
#navigation .dn-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
#navigation .dn-links a { display: flex; align-items: baseline; gap: 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 7.5vw, 104px); line-height: 1; letter-spacing: -0.03em; color: var(--fg); text-decoration: none; transform: translateY(40px); opacity: 0; transition: transform 500ms cubic-bezier(.2,.8,.2,1), opacity 400ms, color 200ms; transition-delay: 0ms; }
#navigation.open .dn-links a { transform: none; opacity: 1; transition-delay: calc(var(--i) * 60ms + 200ms); }
#navigation .dn-links a:hover, #navigation .dn-links a[aria-current=page] { color: var(--accent); }
#navigation .dn-links a:focus { outline: none; }
#navigation .dn-links a:focus-visible { color: var(--accent); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
#navigation .dn-links a small { font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
#navigation .dn-preview { align-self: start; margin-top: 8px; }
#navigation .dn-preview .tile { height: 240px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); filter: hue-rotate(var(--hue, 0deg)); transition: filter 320ms; position: relative; overflow: hidden; }
#navigation .dn-preview .tile::after { content: ""; position: absolute; inset: 40% 10% 10% 40%; border-radius: 10px 0 0 0; background: color-mix(in oklab, var(--bg) 75%, transparent); }
#navigation .dn-preview b { display: block; margin-top: 14px; font-size: 16px; }
#navigation .dn-preview p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
#navigation .dn-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: var(--muted); }
#navigation .dn-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); text-decoration: none; font-weight: 600; }
@media (max-width: 800px) { #navigation .dn-overlay { grid-template-columns: 1fr; padding: 96px 24px 24px; } #navigation .dn-preview { display: none; } }
@media (max-width: 520px) { #navigation .dn-bar { padding: 0 16px; } #navigation .dn-cta { padding: 0 14px; font-size: 14px; } #navigation .dn-logo { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { #navigation .dn-overlay { clip-path: none; opacity: 0; transition: opacity 250ms, visibility 0s 250ms; } #navigation.open .dn-overlay { opacity: 1; transition: opacity 250ms, visibility 0s; } #navigation .dn-links a { transition-delay: 0ms !important; } }

/* footer */
#footer { position: sticky; bottom: 0; z-index: 0; background: var(--card); color: var(--fg); }
#footer .in-wrap { max-width: 1120px; margin: 0 auto; padding: 48px 24px 24px; }
#footer .band { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#footer .logo { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; } #footer .logo span { color: var(--accent); } #footer .pitch { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
#footer form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } #footer form label { width: 100%; font-size: 14px; font-weight: 600; }
#footer input { font: inherit; padding: 11px 14px; min-height: 44px; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--fg) 30%, transparent); background: var(--bg); color: var(--fg); min-width: 240px; } #footer form button { font: inherit; font-weight: 700; min-height: 44px; padding: 11px 18px; border-radius: 10px; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; }
#footer .ok { width: 100%; margin: 0; font-size: 14px; color: var(--fg); }
#footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; }
#footer .cols > div { opacity: 0; transform: translateY(16px); transition: opacity 500ms, transform 500ms; transition-delay: calc(var(--i) * 60ms); } #footer.in .cols > div { opacity: 1; transform: none; }
#footer h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
#footer ul { list-style: none; margin: 0; padding: 0; } #footer li { margin: 0; } #footer li a { display: inline-block; padding: 6px 0; color: var(--fg); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 85% / 0 1px; transition: background-size 200ms; } #footer li a:hover { background-size: 100% 1px; }
#footer .addr { font-style: normal; font-size: 15px; line-height: 1.6; } #footer .addr a { font-weight: 700; }
#footer .bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
#footer .bottom p { margin: 0; } #footer .bottom a:not(.tileio-made) { color: var(--fg); }
#footer .credits { flex-basis: 100%; }
#footer .top { font: inherit; font-size: 14px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--fg) 30%, transparent); background: transparent; color: var(--fg); cursor: pointer; } #footer .top:hover { border-color: var(--accent); }
.tileio-made { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--fg) 26%, transparent); color: var(--fg); font-size: 13px; font-weight: 600; text-decoration: none; }
.tileio-made:hover { border-color: var(--fg); }
@media (max-width: 760px) { #footer .cols { grid-template-columns: 1fr 1fr; } } @media (max-width: 480px) { #footer form { width: 100%; } #footer input { flex: 1; min-width: 0; } }
@media (prefers-reduced-motion: reduce) { #footer .cols > div { transition: none; opacity: 1; transform: none; } }
