/* Scribal Solutions: editorial design system
   Palette: ink navy, warm paper, burgundy, oxidized copper, deep forest. */

:root {
  --ink: #14202e;
  --ink-2: #1d2d41;
  --ink-3: #2b3e56;
  --paper: #f6f0e2;
  --paper-2: #efe6d1;
  --paper-3: #e4d8bb;
  --white: #fffdf8;
  --burgundy: #7b2335;
  --burgundy-2: #5d1a28;
  --copper: #9a5530;
  --copper-light: #e0a074;
  --forest: #23463b;
  --forest-2: #1a352c;
  --muted: #4a5565;
  --muted-dark: #b9c1cd;
  --line: rgba(20, 32, 46, 0.16);
  --line-dark: rgba(246, 240, 226, 0.2);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1180px;
  --radius: 4px;
  --shadow: 0 1px 1px rgba(20, 32, 46, 0.08), 0 8px 24px -8px rgba(20, 32, 46, 0.28);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
main:focus { outline: none; }
::selection { background: var(--burgundy); color: var(--paper); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; border-radius: var(--radius); transition: top 0.2s; }
.skip-link:focus { top: 0.75rem; }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--copper-light); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section-tint { background: rgba(228, 216, 187, 0.4); border-block: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--paper); }
.two-col { display: grid; gap: clamp(1.75rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.7rem; }
.eyebrow::before { content: ""; width: 1.8rem; height: 1px; background: currentColor; flex: none; }
.section-dark .eyebrow, .cta-band .eyebrow { color: var(--copper-light); }
.display-xl { font-size: clamp(2.7rem, 7.2vw, 5.6rem); line-height: 1; letter-spacing: -0.03em; font-weight: 520; }
.display-l { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 530; }
.display-m { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.display-s { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.section-dark .lede, .cta-band .lede { color: var(--muted-dark); }
em, .ital { font-style: italic; }
.serif-italic { font-family: var(--serif); font-style: italic; }
.mono { font-family: var(--mono); }

/* ink-style underlines: links */
a { color: inherit; text-decoration: none; }
.prose a, .link, .footer-col a, .postcard a, .contact-details a, .faq-list a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 1px;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.prose a:hover, .link:hover, .footer-col a:hover, .postcard a:hover, .contact-details a:hover, .faq-list a:hover { background-size: 100% 3px; color: var(--copper); }
.section-dark .link:hover, .site-footer a:hover { color: var(--copper-light); }
.link { font-weight: 600; display: inline-flex; gap: 0.4em; align-items: baseline; }

/* hand-drawn underline stroke */
.ink-u { position: relative; white-space: nowrap; }
.ink-u::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.16em; height: 0.26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C32 2.5 62 11 94 5.5S152 3.5 198 7' fill='none' stroke='%239a5530' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.section-dark .ink-u::after, .cta-band .ink-u::after, .offline .ink-u::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C32 2.5 62 11 94 5.5S152 3.5 198 7' fill='none' stroke='%23e0a074' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.js .ink-u::after { clip-path: inset(0 100% 0 0); transition: clip-path 0.9s var(--ease) 0.6s; }
.js .is-in .ink-u::after, .js .ink-u.is-in::after { clip-path: inset(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 0.7rem; justify-content: center;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bg);
  padding: 0.85rem 1.5rem; min-height: 48px; border-radius: 999px;
  font: 600 1rem/1.1 var(--sans); letter-spacing: 0.01em; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.3s var(--ease), border-color 0.3s, transform 0.2s var(--ease), box-shadow 0.3s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--burgundy); transform: translateY(101%); transition: transform 0.45s var(--ease); z-index: -1; border-radius: inherit; }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { border-color: var(--burgundy); box-shadow: 0 8px 18px -8px rgba(123, 35, 53, 0.6); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--paper); box-shadow: none; }
.btn-light { --bg: var(--paper); --fg: var(--ink); }
.btn-light::before { background: var(--copper-light); }
.btn-light:hover { border-color: var(--copper-light); color: var(--ink); }
.btn-small { padding: 0.55rem 1.1rem; min-height: 44px; font-size: 0.95rem; }
.btn-large { padding: 1.05rem 1.9rem; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

/* ---------- reveal ---------- */
.js [data-reveal]:not([data-reveal="lines"]) { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in:not([data-reveal="lines"]) { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.line > span { display: block; }
.js [data-reveal="lines"] .line > span { transform: translateY(108%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 0.09s); }
.js [data-reveal="lines"].is-in .line > span { transform: none; }
.js [data-reveal="lines"] { opacity: 1; }
.js [data-reveal="lines"]:not(:has(.line)) { opacity: 0; transition: opacity 0.9s var(--ease); }
.js [data-reveal="lines"].is-in:not(:has(.line)) { opacity: 1; }

/* ---------- home: hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem); position: relative; overflow: clip; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { margin-bottom: 0.45em; }
.hero h1 em { color: var(--burgundy); font-weight: 500; }
.hero .lede { max-width: 33em; }
.hero-tag { font-family: var(--serif); font-style: italic; color: var(--copper); font-size: 1.15rem; margin-top: 2rem; display: flex; align-items: center; gap: 0.8rem; }
.hero-tag::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }
.caret { display: inline-block; width: 0.09em; height: 0.82em; background: var(--copper); margin-left: 0.08em; vertical-align: -0.06em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* stage: notes -> marks -> polished */
.stage-wrap { position: relative; padding: 0 0.5rem 1.5rem; --sy: 0px; }
.stage-wrap::before, .stage-wrap::after { content: ""; position: absolute; inset: 1.4rem 0.9rem 0.2rem 1.1rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow); z-index: 0; }
.stage-wrap::before { transform: rotate(3.2deg) translateY(calc(var(--sy) * -0.5)); }
.stage-wrap::after { background: var(--paper-3); transform: rotate(-2.4deg) translateY(calc(var(--sy) * 0.35)); z-index: -1; }
.stage { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow); transform: translateY(var(--sy)) rotate(-0.4deg); overflow: hidden; }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--paper-2); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stage-tabs { display: flex; gap: 0.3rem; }
.stage-tabs button { white-space: nowrap; font: 500 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: none; border: 1px solid transparent; color: var(--muted); padding: 0.45rem 0.65rem; min-height: 36px; border-radius: 999px; cursor: pointer; transition: background 0.25s, color 0.25s; }
.stage-tabs button:hover { color: var(--ink); }
.stage-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.stage-body { display: grid; padding: 1.4rem 1.4rem 1.2rem; min-height: 15.5rem; background-image: repeating-linear-gradient(transparent 0 1.74rem, rgba(110, 140, 190, 0.2) 1.74rem 1.8rem); background-position: 0 1.3rem; }
.stage-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s; }
.stage[data-stage="1"] .p1, .stage[data-stage="2"] .p2, .stage[data-stage="3"] .p3 { opacity: 1; visibility: visible; }
.p1 { font-family: var(--mono); font-size: 0.98rem; line-height: 1.8rem; color: var(--ink-3); }
.p2 { font-family: var(--mono); font-size: 0.98rem; line-height: 1.8rem; color: var(--ink-3); }
.p3 { font-family: var(--serif); font-size: 1.28rem; line-height: 1.8rem; color: var(--ink); }
.p3 .p3-title { font-weight: 650; font-size: 1.45rem; line-height: 1.8rem; display: block; margin-bottom: 0.2rem; }
.p3 .w { display: inline-block; white-space: pre-wrap; }
.stage[data-stage="3"].is-anim .p3 .w { animation: wordIn 0.6s var(--ease) both; animation-delay: calc(var(--w) * 38ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.5em); } }
.mk { background: linear-gradient(var(--burgundy), var(--burgundy)) 0 55% / 0 2px no-repeat; transition: background-size 0.6s var(--ease); }
.mk-u { background: linear-gradient(var(--copper), var(--copper)) 0 100% / 0 3px no-repeat; }
.stage[data-stage="2"] .mk { background-size: 100% 2px; }
.stage[data-stage="2"] .mk-u { background-size: 100% 3px; }
.mk sup { font-size: 0.65em; color: var(--burgundy); font-weight: 500; margin-left: 0.1em; }
.margin-notes { margin: 1.1rem 0 0; border-top: 1px dashed rgba(123, 35, 53, 0.4); padding-top: 0.7rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.5; color: var(--burgundy); }
.margin-notes li { display: flex; gap: 0.6rem; margin-bottom: 0.2rem; }
.margin-notes b { font-weight: 500; }
.stage[data-stage="2"].is-anim .margin-notes li { animation: noteIn 0.5s var(--ease) both; animation-delay: calc(0.5s + var(--n) * 0.45s); }
@keyframes noteIn { from { opacity: 0; transform: translateX(-8px); } }
.stage-foot { padding: 0.55rem 0.9rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--muted); background: var(--paper-2); }
@media (max-width: 480px) { .stage-top { flex-direction: column; align-items: flex-start; } .stage-body { padding: 1.1rem 1rem; min-height: 24rem; } .p3 { font-size: 1.15rem; } }


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

/* A compact editorial masthead and a balanced standalone hero. */
body { display: flex; flex-direction: column; min-height: 100svh; overflow-x: visible; }
:root { --max: 1240px; }
.coming-header { padding-block: 1rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; flex: none; }
.brand-mark { width: auto; height: 46px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 560 1.5rem/1 var(--serif); letter-spacing: -.025em; }
.brand-sub { margin-top: .35rem; font: 500 .65rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.header-note { margin: 0; font: 400 .72rem/1.5 var(--mono); letter-spacing: .075em; text-transform: uppercase; color: var(--muted); }
main { display: flex; align-items: center; min-height: calc(100svh - 84px); }
.hero { width: 100%; padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 7vw, 6rem); }
.hero-grid { gap: clamp(2.5rem, 5vw, 5rem); }
.hero-copy { min-width: 0; }
.coming-notice { color: var(--burgundy); font-size: .72rem; letter-spacing: .12em; margin-bottom: 1.6rem; }
.display-xl { font-size: clamp(2.5rem, 4.65vw, 4.25rem); font-weight: 450; line-height: 1.08; letter-spacing: -.045em; text-wrap: initial; }
.hero h1 { margin-bottom: .55em; }
.hero h1 em { font-weight: 450; }
.line { overflow: visible; padding-bottom: .12em; }
.line > span { white-space: nowrap; }
.hero .lede { max-width: 31rem; font-size: clamp(1.05rem, 1.3vw, 1.15rem); line-height: 1.7; }
.hero-actions { margin-top: 1.6rem; }
.btn-large { min-height: 48px; padding: .85rem 1.4rem; font-size: 1rem; }
.hero-tag { margin: 1.75rem 0 0; font-size: 1.05rem; }
.stage-wrap { min-width: 0; padding: 0 .5rem 1rem; }
.stage-top { flex-direction: column; align-items: flex-start; padding: 1rem 1.15rem .8rem; gap: .6rem; }
.stage-top > span { font-size: .65rem; letter-spacing: .14em; color: var(--copper); }
.stage-tabs { gap: .35rem; }
.stage-tabs button { min-height: 40px; }
.stage-body { padding: 1.5rem; min-height: 19rem; }
.stage-foot { font-size: .65rem; padding: .7rem 1.15rem; }
.coming-footer { padding-block: 1.5rem; color: var(--muted); background: transparent; text-align: center; border-top: 1px solid var(--line); --signature-color: var(--muted); --signature-accent: var(--burgundy); }
.coming-footer > .wrap > p:first-child { font-size: .8rem; margin: 0; }
.coming-footer .site-signature { margin-top: .65rem; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
@media (min-width: 600px) and (max-width: 959px) {
  .display-xl { font-size: clamp(2.75rem, 6.5vw, 3.75rem); }
  .hero-grid { max-width: 720px; }
  .stage-wrap { max-width: 540px; width: 100%; }
}
@media (max-width: 599px) {
  .header-note { display: none; }
  .coming-header { padding-block: .9rem; }
  .brand-mark { height: 40px; }
  .brand-name { font-size: 1.35rem; }
  .brand-sub { font-size: .6rem; }
  .header-inner { min-height: 40px; }
  main { min-height: calc(100svh - 69px); }
  .hero { padding-block: 2.25rem 3.25rem; }
  .hero-grid { gap: 2.75rem; }
  .coming-notice { margin-bottom: 1.2rem; font-size: .65rem; letter-spacing: .09em; }
  .display-xl { font-size: clamp(1.9rem, 9.5vw, 3.25rem); }
  .hero .lede { font-size: 1.05rem; }
  .hero-tag { margin-top: 1.4rem; font-size: 1rem; }
  .stage-body { padding: 1.1rem; min-height: 20rem; }
  .p1, .p2 { font-size: .88rem; }
  .margin-notes { font-size: .75rem; }
  .stage-tabs button { padding-inline: .6rem; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal="lines"] .line > span, .js .ink-u::after { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* Single-hero landing page: intrinsic content height is always allowed to grow. */
body { display: block; min-height: 100vh; min-height: 100dvh; }
main { display: block; min-height: 0; }
.hero {
  display: flex; flex-direction: column; overflow: visible;
  min-height: 100vh; min-height: 100dvh;
  padding-block: max(1rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-bottom));
}
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.hero-masthead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 52px; }
.hero-grid { flex: 1; padding-block: clamp(1.5rem, 4vh, 3rem); }
.hero-grid > * { min-width: 0; }
.hero-credit { padding-top: .75rem; color: var(--muted); --signature-color: var(--muted); --signature-accent: var(--burgundy); }
.hero-credit .site-signature { margin: 0; }
.hero .line > span { white-space: normal; }
.stage-tabs { flex-wrap: wrap; }
.stage-tabs button { min-height: 44px; }
/* Keep the stage height stable through all three animated states, without a large fixed blank sheet. */
.stage-body { min-height: 0; }
.stage-panel { min-width: 0; }
.header-note { display: block; }
@media (min-width: 760px) and (max-width: 959px) {
  .hero-grid { max-width: var(--max); grid-template-columns: 1.15fr .85fr; gap: 2rem; }
  .hero .display-xl { font-size: clamp(2.5rem, 4.65vw, 4.25rem); }
  .stage-wrap { max-width: none; }
}
@media (max-width: 759px) {
  :root { --gutter: 1.25rem; }
  .hero { padding-block: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-bottom)); }
  .hero-masthead { min-height: 40px; gap: .75rem; flex-wrap: wrap; }
  .brand-mark { height: 40px; }
  .header-note { font-size: .6rem; letter-spacing: .04em; }
  .hero-grid { padding-block: 1.25rem .75rem; gap: 1.25rem; max-width: 600px; grid-template-columns: minmax(0, 1fr); }
  .hero .display-xl { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .coming-notice { font-size: .65rem; margin-bottom: .75rem; }
  .hero h1 { margin-bottom: .5em; }
  .hero .lede { font-size: 1rem; line-height: 1.5; margin-bottom: 0; }
  .hero-actions { margin-top: 1rem; }
  .hero-tag { margin-top: 1rem; }
  .stage-wrap { width: 100%; max-width: 540px; padding-inline: .35rem; padding-bottom: .65rem; }
  .stage-top { padding: .65rem .85rem .5rem; gap: .25rem; }
  .stage-body { min-height: 0; padding: .85rem 1rem; }
  .p1, .p2 { font-size: .88rem; line-height: 1.5rem; }
  .p3 { font-size: 1.1rem; line-height: 1.5rem; }
  .p3 .p3-title { font-size: 1.25rem; line-height: 1.5rem; }
  .margin-notes { font-size: .75rem; line-height: 1.4; margin-top: .65rem; padding-top: .5rem; }
  .stage-foot { padding: .5rem .85rem; }
  .hero-credit { padding-top: .5rem; }
}
@media (max-width: 359px) {
  :root { --gutter: 1rem; }
  .header-note { flex-basis: 100%; }
  .stage-tabs { gap: .1rem; }
  .stage-tabs button { padding-inline: .45rem; }
}
@media (max-height: 500px) and (min-width: 760px) {
  .hero-grid { padding-block: 1.25rem; }
  .hero .display-xl { font-size: clamp(2.25rem, 4vw, 3rem); }
}

/* Existing ghost-button treatment opens a native, keyboard-accessible postal dialog. */
.postal-dialog { width: min(24rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.postal-dialog::backdrop { background: rgba(20, 32, 46, .45); }
.postal-dialog h2 { font-size: 1.5rem; }
.postal-dialog address { margin-block: 1.25rem; line-height: 1.6; }
.postal-dialog .btn { min-height: 44px; }
@media (max-width: 759px) {
  .hero .display-xl { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .hero-grid { gap: 1rem; }
  .hero-actions { gap: .5rem; }
  .hero-actions > .btn { flex: 1 1 8.5rem; min-width: 0; min-height: 48px; padding: .75rem .85rem; font-size: .95rem; }
}
@media (max-width: 759px) {
  .hero-grid { padding-block: 1rem .5rem; }
  .hero-actions, .hero-tag { margin-top: .75rem; }
  .stage-body { padding-block: .75rem; }
}
/* Animated word wrappers may wrap a long word when users enlarge text. */
.p3 .w { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 759px) {
  .hero-actions > .btn { gap: .45rem; padding-inline: .65rem; }
  .hero-actions .btn-arrow { flex: none; }
}

/* Match the main site's quill-and-inkwell tilt, with keyboard support. */
.brand-mark { flex: none; transition: transform .5s var(--ease); transform-origin: 50% 90%; }
.brand:hover .brand-mark, .brand:focus-visible .brand-mark { transform: rotate(-6deg); }
@media (prefers-reduced-motion: reduce) {
  .brand:hover .brand-mark, .brand:focus-visible .brand-mark { transform: none; }
}

/* Preserve the original red eyebrow treatment in its new masthead position. */
.hero-masthead .coming-notice { display: flex; margin: 0; color: var(--burgundy); }

.hero-credit { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; column-gap: .6rem; row-gap: .15rem; text-align: center; }
.hero-credit .client-copyright, .hero-credit .site-signature { margin: 0; font-family: var(--sans); font-size: .875rem; font-weight: 400; line-height: 1.5; }
