/* presageinc.com - site.css
   Values come from the Presage design system tokens (colors, typography, spacing, radius,
   elevation, motion, semantic) as exported from Claude Design, and from the approved canvas
   (Site Build Brief v1.4, Part A, canvas wins). Plain CSS, no preprocessor, no framework. */

/* ---------- Tokens ---------- */
:root {
  --navy: #153360; --orange: #ED672A; --light-gray: #F2F2F2; --charcoal: #333333; --white: #FFFFFF;
  --medium-gray: #999999; --gray-200: #E6E6E6; --gray-300: #D9D9D9; --gray-600: #666666;
  --navy-hover: #1B4076; --navy-press: #0F2646;
  --navy-a24: rgba(21,51,96,.24); --orange-a20: rgba(237,103,42,.2);
  --inverse-a50: rgba(242,242,242,.5);
  --overlay-hero: linear-gradient(to bottom, rgba(21,51,96,.3) 0%, rgba(21,51,96,.7) 100%);
  --focus-ring: 0 0 0 3px var(--orange-a20);
  --font-sans: "Open Sans", Arial, Helvetica, sans-serif;
  --container-max: 1100px; --measure-prose: 680px; --gutter: 24px;
  --duration-fast: 120ms; --ease-standard: cubic-bezier(.2,0,.3,1);
  --transition-color: color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    text-decoration-color var(--duration-fast) var(--ease-standard);
}
@media (prefers-reduced-motion: reduce) { :root { --duration-fast: 0ms; } }

/* ---------- Fonts (Latin subset, self-hosted, OFL) ---------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-400italic.woff2") format("woff2"); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--charcoal); font-family: var(--font-sans); font-size: 16px; line-height: 1.75; }
h1, h2, h3, p, ul, li, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--navy-a24); text-underline-offset: 3px; transition: var(--transition-color); }
a:hover { color: var(--orange); text-decoration-color: var(--orange); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--navy); }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: var(--focus-ring); }
em { font-style: italic; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: var(--white); font-weight: 600; padding: 11px 20px; border-radius: 2px; text-decoration: none; }
.skip-link:focus { top: 16px; color: var(--white); }

.shell { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure-prose); display: flex; flex-direction: column; gap: 24px; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--charcoal); text-wrap: pretty; }
h1, .h1 { font-size: 36px; font-weight: 700; line-height: 1.25; letter-spacing: .5px; color: var(--navy); text-wrap: pretty; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.25; color: var(--navy); text-wrap: pretty; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--navy); text-wrap: pretty; }
.prose h3 { line-height: 1.4; padding-top: 8px; }
.rule { width: 48px; height: 3px; background: var(--orange); }
.title-block { display: flex; flex-direction: column; gap: 16px; }
.lead-line { font-size: 20px !important; font-weight: 600; line-height: 1.4 !important; color: var(--navy) !important; }
.lead-block { padding-top: 16px; display: flex; flex-direction: column; gap: 20px; }
.small { font-size: 14px; line-height: 1.6; }
.muted { color: var(--gray-600); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: 0; white-space: nowrap; text-decoration: none; border-radius: 2px; border: 1px solid var(--navy); background: var(--navy); color: var(--white); cursor: pointer; transition: var(--transition-color); }
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); color: var(--white); text-decoration: none; }
.btn:active { background: var(--navy-press); border-color: var(--navy-press); transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--navy); }
.btn--inverse { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--inverse:hover { background: var(--light-gray); border-color: var(--light-gray); color: var(--navy); }
.btn--inverse:active { background: var(--gray-300); border-color: var(--gray-300); }
.btn-row { padding-top: 8px; }

/* Text links with the Lucide arrow-right glyph */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--navy); text-decoration: underline; text-decoration-color: var(--navy-a24); text-underline-offset: 4px; }
.link-arrow:hover { color: var(--orange); text-decoration-color: var(--orange); }
.link-arrow svg { width: 16px; height: 16px; flex: none; }
.link-arrow--lg svg { width: 20px; height: 20px; }
.link-strong { font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--gray-300); }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-block; text-decoration: none; }
.brand img { width: 260px; height: auto; padding: 42px 42px; }          /* clear space: mark height on all sides */
.brand--wordmark { display: none; }
.brand--wordmark img { width: 180px; height: auto; padding: 0; }
.nav-primary { display: flex; align-items: center; gap: 32px; }
.nav-primary a:not(.btn) { font-size: 16px; font-weight: 600; color: var(--navy); text-decoration: none; }
.nav-primary a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--navy-a24); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-primary a:not(.btn):hover { color: var(--orange); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; background: transparent; border: 0; border-radius: 2px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--navy); cursor: pointer; transition: var(--transition-color); }
.menu-toggle:hover { background: var(--light-gray); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close, .menu-toggle .label-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu, .menu-toggle[aria-expanded="true"] .label-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close, .menu-toggle[aria-expanded="true"] .label-close { display: inline-block; }

/* ---------- Header band (photograph + protection gradient) ---------- */
.band-photo { position: relative; overflow: hidden; background: var(--navy); height: clamp(360px, 33.34vw, 480px); }
.band-photo--home { height: clamp(480px, 43vw, 620px); }
.band-photo picture, .band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-photo img { object-fit: cover; object-position: 50% 50%; }
.band-photo--home img { object-position: 35% 60%; }
.band-photo--practice img { object-position: 60% 45%; }
.band-photo--record img { object-position: 45% 45%; }
.band-photo--about img { object-position: 50% 25%; }
.band-photo--contact img { object-position: 45% 50%; }
.band-photo::after { content: ""; position: absolute; inset: 0; background: var(--overlay-hero); }
.band-photo .shell { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 20px; padding-bottom: 56px; }
.band-photo--home .shell { gap: 24px; padding-bottom: 64px; }
.band-photo h1 { color: var(--white); max-width: 820px; }
.band-photo .subhead { font-size: 20px; font-weight: 600; line-height: 1.5; color: var(--light-gray); max-width: 680px; text-wrap: pretty; }
.band-photo .rule { margin-top: 12px; }
.band-photo--home .rule { margin-top: 16px; }
.band-photo .btn-row { padding-top: 8px; }

/* ---------- Bands ---------- */
.band { padding: 32px 0; }
.band--gray { background: var(--light-gray); }
.band--white { background: var(--white); }
.band--first { padding-top: 48px; }
.band--last { padding-bottom: 64px; }
.band--tight { padding: 24px 0; }
.band--timeline { padding: 40px 0 48px; }
.band--cards { padding: 0 0 32px; }
.band--closing { padding-top: 32px; padding-bottom: 64px; }

/* ---------- Timeline graphic ---------- */
.timeline { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.timeline svg { width: 100%; max-width: 850px; height: auto; }
.timeline .caption { font-size: 14px; line-height: 1.6; color: var(--charcoal); text-align: center; max-width: 850px; }
.timeline-mobile { display: none; flex-direction: column; gap: 32px; width: 100%; }
.timeline-mobile > div { display: flex; flex-direction: column; gap: 12px; }
.timeline-mobile svg { width: 100%; height: auto; max-width: none; }
.timeline-mobile .wave-labels { display: flex; flex-direction: column; gap: 4px; }
.timeline-mobile .wave-name { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.timeline-mobile .wave-meta { font-size: 14px; line-height: 1.6; color: var(--charcoal); text-wrap: pretty; }

/* ---------- Cards ---------- */
.band--cards .shell { display: flex; flex-direction: column; gap: 32px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--gray-300); border-top: 3px solid var(--gray-300); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color var(--duration-fast) var(--ease-standard); }
.card:hover { border-top-color: var(--navy); }
.card p { font-size: 16px; line-height: 1.75; color: var(--charcoal); }

/* ---------- Callout (Practice Areas "What to expect") ---------- */
.callout { border-left: 3px solid var(--navy); padding: 8px 24px; }
.callout p { font-style: italic; }

/* ---------- About: reading column + rail ---------- */
.about-grid { display: grid; grid-template-columns: 680px minmax(0, 1fr); gap: 24px; align-items: start; }
.about-grid .prose { max-width: none; }
.rail { position: sticky; top: 24px; }
.rail-box { background: var(--light-gray); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.rail-box picture, .rail-box img { width: 100%; }
.rail-box img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0%; height: auto; }
.rail-box p { font-size: 14px; line-height: 1.6; color: var(--charcoal); text-wrap: pretty; }
.rail-box .rail-name { font-weight: 600; color: var(--navy); }

/* ---------- On the Record ---------- */
.framing { font-size: 16px !important; font-weight: 600; line-height: 1.5 !important; color: var(--navy) !important; }
.entries { display: flex; flex-direction: column; border-bottom: 1px solid var(--gray-200); }
.entries li { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--gray-200); }
.entry-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.entry-head a, .entry-head .outlet { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--navy); }
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--navy); border: 1px solid var(--navy); border-radius: 999px; padding: 2px 10px; flex: none; }
.entry-title { font-weight: 600; line-height: 1.5 !important; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { display: flex; align-items: baseline; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--navy); }
.field .req { font-size: 14px; line-height: 1.6; color: var(--gray-600); }
.field .hint { font-size: 14px; line-height: 1.6; color: var(--charcoal); }
.field input, .field textarea { display: block; width: 100%; font-family: inherit; font-size: 16px; color: var(--charcoal); background: var(--white); border: 1px solid var(--gray-300); border-radius: 2px; outline: none; transition: var(--transition-color); }
.field input { height: 44px; padding: 0 12px; }
.field textarea { min-height: 160px; padding: 10px 12px; line-height: 1.75; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); box-shadow: var(--focus-ring); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--orange); }
.error-msg { display: none; font-size: 14px; line-height: 1.6; color: var(--charcoal); border-left: 3px solid var(--orange); padding-left: 8px; }
.field.is-invalid .error-msg, .form-error { display: block; }
.form-error { font-size: 14px; line-height: 1.6; color: var(--charcoal); border-left: 3px solid var(--orange); padding-left: 8px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.noscript-line { font-size: 14px; line-height: 1.6; color: var(--charcoal); }

/* ---------- 404 list ---------- */
.page-links { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); padding: 64px 0; }
.site-footer .shell { display: flex; flex-direction: column; gap: 32px; }
.site-footer .footer-brand img { width: 180px; height: auto; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-meta p { font-size: 14px; line-height: 1.6; color: var(--light-gray); text-wrap: pretty; }
.footer-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.6; color: var(--light-gray); text-decoration: underline; text-decoration-color: var(--inverse-a50); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--white); text-decoration-color: var(--white); }
.footer-links a:focus-visible { outline-color: var(--white); }
.footer-links img { flex: none; }

/* ---------- Mobile navigation panel ---------- */
.nav-mobile { display: none; background: var(--navy); padding: 8px 24px 24px; flex-direction: column; }
.nav-mobile ul { display: flex; flex-direction: column; }
.nav-mobile li a:not(.btn) { display: flex; align-items: center; height: 48px; font-size: 16px; font-weight: 600; color: var(--light-gray); text-decoration: none; text-underline-offset: 4px; }
.nav-mobile li a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--inverse-a50); }
.nav-mobile li a:not(.btn):hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--white); }
.nav-mobile .btn-row { padding-top: 16px; }
.nav-mobile .btn { width: 100%; }
.nav-mobile[data-open="true"] { display: flex; }
html.no-js .nav-mobile { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 859px) {
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .about-grid { display: flex; flex-direction: column; gap: 32px; }
  .about-grid .rail { order: -1; position: static; width: 100%; }
  .about-grid .prose { max-width: var(--measure-prose); }
  .footer-meta { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 699px) {
  h1, .h1 { font-size: 32px; }
  .site-header .shell { padding: 34px 24px; }
  .brand--lockup { display: none; }
  .brand--wordmark { display: inline-block; }
  .nav-primary { display: none; }
  .menu-toggle { display: inline-flex; }
  .band-photo { height: auto; min-height: 293px; aspect-ratio: 4 / 3; display: flex; flex-direction: column; }
  .band-photo--home { min-height: 600px; aspect-ratio: auto; }
  .band-photo img { object-position: 50% 50%; }
  .band-photo--home img { object-position: 50% 55%; }
  .band-photo--about img { object-position: 50% 20%; }
  .band-photo--record img { object-position: 30% 45%; }
  .band-photo .shell { padding-top: 72px; padding-bottom: 40px; gap: 16px; align-items: stretch; }
  .band-photo--home .shell { padding-top: 96px; padding-bottom: 48px; gap: 20px; }
  .band-photo .subhead { font-size: 18px; }
  .band-photo .rule { margin-top: 8px; }
  .band-photo .btn-row { padding-top: 4px; }
  .band-photo .btn { width: 100%; }
  .band { padding: 24px 0; }
  .band--first { padding-top: 48px; }
  .band--last { padding-bottom: 48px; }
  .band--tight { padding: 16px 0; }
  .band--timeline { padding: 40px 0; }
  .band--cards { padding: 16px 0 24px; }
  .band--cards .shell { gap: 24px; }
  .band--closing { padding-top: 24px; padding-bottom: 48px; }
  .prose { gap: 20px; }
  .lead-block { padding-top: 12px; gap: 16px; }
  .timeline svg.timeline-desktop { display: none; }
  .timeline-mobile { display: flex; }
  .timeline { gap: 12px; }
  .btn-row .btn:not(.btn--inline) { width: 100%; }
  .link-arrow { min-height: 44px; }
  .site-footer { padding: 48px 0; }
  .site-footer .shell { gap: 28px; }
}
[hidden] { display: none !important; }
.band--tight-bottom { padding-bottom: 24px; }
@media (max-width: 699px) { .band--tight-bottom { padding-bottom: 16px; } }
