:root {
  /* Figma design tokens — constant across themes */
  --orange: #d84806;        /* brand-primary */
  --action-fill: #c74206;   /* interactive-action-fill (button bg) */
  --paper: #ead7b7;         /* Identity Band stays paper/cream in both themes */
  --paper-light: #f4e8d4;
  --green: #7bbf34;
  --purple: #a45de0;
  --blue: #3d91d0;
  --gold: #f3a61e;
  --max: 1440px;
  --hero-art-max: 1920px;
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --page-edge: max(var(--page-gutter), calc((100vw - var(--max)) / 2));
  --frame-edge: max(var(--page-gutter), calc((100vw - var(--hero-art-max)) / 2));
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Released dark-theme tokens */
  --ink: #121212;           /* surface-canvas */
  --cream: #f7f5f0;         /* text-primary */
  --muted: #d9d6ce;         /* text-muted */
  --border: #6b6a70;        /* border-default */
  --link: #da4f10;          /* interactive-link */
  --quote-muted: #e8d1b2;   /* manifesto quote secondary tone (dark only) */
  --scrim-rgb: 9, 10, 10;
  --hero-image: url('assets/home-hero-noise-to-clear-v2.png');
  --hairline: color-mix(in srgb, var(--border), transparent 60%);
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.55;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; background: #f7f5f0; color: #121212; padding: .75rem 1rem; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .7rem;
  padding: .7rem var(--page-edge) 1rem;
  background: linear-gradient(to bottom, rgba(var(--scrim-rgb),.96), rgba(var(--scrim-rgb),.72), transparent);
  backdrop-filter: blur(8px);
}
.brand { display: inline-flex; justify-content: flex-start; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: clamp(13rem, 17vw, 15.5rem); height: auto; }
.brand-mark { display: none; width: 2.65rem; height: 2.65rem; }
.site-nav { display: flex; align-items: center; justify-content: flex-start; gap: clamp(1rem, 3vw, 2.6rem); }
.site-nav .button-small {
  position: absolute;
  top: 50%;
  right: var(--page-edge);
  transform: translateY(-50%);
}
.site-nav .button-small:hover,
.site-nav .button-small:focus-visible { transform: translateY(calc(-50% - 2px)); }
.site-nav a { text-decoration: none; font-size: .95rem; color: var(--cream); white-space: nowrap; }
.site-nav > a:not(.button) { position: relative; }
.site-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.35rem; height: 1px; background: var(--orange); transition: right .2s; }
.site-nav > a:not(.button):hover::after,
.site-nav > a:not(.button):focus-visible::after,
.site-nav > a:not(.button)[aria-current="page"]::after { right: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .8rem 1.55rem; border: 1px solid var(--action-fill); border-radius: 2px; background: var(--action-fill); color: #f7f5f0; text-decoration: none; font-weight: 600; box-shadow: 0 10px 30px rgba(199,66,6,.16); transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #e0530a; box-shadow: 0 14px 36px rgba(199,66,6,.28); }
.button-small { min-height: 2.65rem; padding-inline: 1.2rem; }
.button-outline { background: transparent; border-color: var(--link); color: var(--link); }
.button-outline:hover, .button-outline:focus-visible { background: var(--link); color: #f7f5f0; }

.section-dark { background: radial-gradient(circle at 45% 35%, color-mix(in srgb, var(--ink), white 6%) 0, var(--ink) 42%, color-mix(in srgb, var(--ink), black 6%) 100%); }
.hero { position: relative; overflow: hidden; min-height: 100vh; padding: 11.5rem var(--page-edge) 5rem; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 4%; background: linear-gradient(to top, rgba(var(--scrim-rgb),.16), transparent); pointer-events: none; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background-image: var(--hero-image); background-size: cover; background-position: center 51%; background-repeat: no-repeat; }
.hero-scrim { display: none; }
.hero-inner { position: relative; z-index: 3; width: min(var(--max), 100%); margin: -72px auto 0; text-align: left; }
.display-wordmark { margin: 0; }
.display-wordmark img { width: min(620px, 52vw); margin: 0; filter: drop-shadow(0 16px 40px rgba(199,66,6,.14)); }
.hero-tagline { margin: 1.6rem 0 .55rem; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.2vw, 4.2rem); font-weight: 500; line-height: 1.1; color: var(--cream); text-shadow: 0 3px 16px rgba(var(--scrim-rgb),.6); }
.hero-intro { width: min(650px, 48%); margin: 0; font-size: clamp(1rem, 1.7vw, 1.25rem); color: var(--cream); text-shadow: 0 2px 10px rgba(var(--scrim-rgb),.55); }

/* Hidden on desktop — both hero images now bake these labels into the artwork itself. Kept in the DOM (visually hidden, not display:none) so screen readers still get the content, and restored to a live visible layout below 1050px where the cover-cropped image no longer shows the text legibly. */
.concept-list { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.concept { --accent: var(--orange); display: grid; grid-template-columns: minmax(55px, 1fr) minmax(230px, 1.6fr); align-items: center; gap: .8rem; }
.concept-line { height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent) 70%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent), transparent 35%); }
.concept h3 { margin: 0; color: var(--accent); text-transform: uppercase; letter-spacing: .02em; font-size: clamp(.92rem, 1.7vw, 1.25rem); }
.concept p { margin: .08rem 0 0; color: var(--cream); font-size: clamp(.82rem, 1.2vw, 1rem); }
.concept-orange { --accent: var(--orange); }
.concept-green { --accent: var(--green); }
.concept-purple { --accent: var(--purple); }
.concept-blue { --accent: var(--blue); }
.concept-gold { --accent: var(--gold); }

.manifesto-section {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2rem, 3.5vw, 3rem) var(--page-edge);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.manifesto-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.manifesto-heading { position: relative; padding-left: clamp(1.25rem, 2.5vw, 2rem); }
.manifesto-heading::before {
  content: "";
  position: absolute;
  inset: .15rem auto .15rem 0;
  width: 2px;
  background: var(--orange);
}
.manifesto {
  margin: 0;
  max-width: 9ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: .98;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--cream);
}
.manifesto .accent { color: var(--orange); }
.manifesto-statement {
  padding-top: .5rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.45;
  color: var(--quote-muted);
}
.manifesto-statement p { margin: 0; }
.manifesto-statement p + p { margin-top: .45rem; }
.manifesto-statement p:last-of-type { margin-top: 1.25rem; color: var(--cream); }
.manifesto-cta { margin-top: 1.75rem; }

.story-band { position: relative; display: flex; align-items: center; min-height: 440px; background: var(--paper); color: #121212; overflow: hidden; }
.story-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.story-copy { position: relative; z-index: 1; padding: 4rem clamp(2rem, 7vw, 7rem); max-width: 40%; }
.section-kicker { margin: 0 0 .65rem; color: var(--action-fill); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 800; }
.story-copy h2, .pathways h2 { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1.04; font-weight: 500; }
.story-copy p:not(.section-kicker) { max-width: 38ch; font-size: 1.07rem; }
.text-link, .pathway-card a { color: var(--action-fill); text-decoration: none; font-weight: 700; }

.pathways { padding: 5rem var(--page-edge) 2.5rem; }
.pathways-inner { width: min(var(--max), 100%); margin: auto; }
.pathways .section-kicker, .pathways h2 { text-align: center; }
.pathways h2 { color: var(--cream); font-size: clamp(2.1rem, 4vw, 3.8rem); font-style: italic; }
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr) minmax(280px, 1.08fr); grid-template-rows: auto auto; gap: 3.5rem 0; }
.pathways-heading { grid-column: 1 / -1; grid-row: 1; }
.pathway-card { padding: 1.2rem clamp(1rem, 2vw, 1.7rem); border-right: 1px solid var(--hairline); }
.pathway-card img { width: 58px; height: 58px; margin-bottom: 1.2rem; }
.pathway-card h3 { margin: 0 0 .65rem; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; color: var(--cream); }
.pathway-card p { color: var(--muted); font-size: .92rem; }
.pathway-card a { color: var(--link); font-size: .9rem; }
.cta-card { grid-column: 4; grid-row: 2; margin-left: 1.5rem; padding: 2.3rem 1.8rem; border: 1px solid color-mix(in srgb, var(--orange), transparent 55%); border-radius: 18px; text-align: center; align-self: stretch; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, color-mix(in srgb, var(--orange), transparent 95%), transparent); }
.cta-heading { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-style: italic; line-height: 1.2; color: var(--cream); }
.cta-card > p:nth-child(2) { color: var(--muted); }
.cta-card .button { margin: 1.4rem auto 0; }

.site-footer { width: 100%; margin: 0; padding: 2.5rem var(--page-edge) 2rem; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 1.5rem; }
.footer-main { width: min(var(--max), 100%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-mark { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; text-decoration: none; }
.footer-logo { width: min(13rem, 52vw); height: auto; }
.footer-mark .footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.55rem; color: var(--cream); }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; color: var(--cream); }
.footer-meta { width: min(var(--max), 100%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; letter-spacing: .02em; color: var(--muted); }
.social-links { display: flex; align-items: center; gap: 1.4rem; }
.social-links a { text-decoration: none; color: var(--orange); font-weight: 600; }

@media (min-width: 781px) {
  .footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .footer-main nav {
    justify-self: center;
  }

  .footer-main > .button {
    justify-self: end;
  }
}

@media (max-width: 1050px) {
  .hero-bg { background-position: center 44%; }
  .concept-list { position: relative; z-index: 3; width: min(600px, 92%); height: auto; padding: 0; margin: 2rem auto 0; overflow: visible; clip: auto; white-space: normal; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .concept:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .story-band { min-height: 380px; }
  .story-copy { padding-bottom: 1rem; max-width: 55%; }
  .pathway-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .pathways-heading { grid-column: 1 / -1; grid-row: 1; }
  .pathway-card:nth-of-type(2) { border-right: 0; }
  .pathway-card:nth-of-type(3) { grid-column: 1 / -1; border-right: 0; }
  .cta-card { grid-column: 1 / -1; grid-row: auto; margin: 0; min-height: 280px; }
}

@media (max-width: 780px) {
  .site-header { gap: .65rem; padding: .65rem var(--page-gutter) .9rem; background: rgba(var(--scrim-rgb),.92); }
  .site-nav { width: auto; gap: clamp(.7rem, 3.5vw, 1.35rem); }
  .site-nav a { font-size: clamp(.8rem, 3.4vw, .95rem); }
  .site-nav .button-small {
    right: var(--page-gutter);
    min-height: 2.55rem;
    padding-inline: clamp(.75rem, 3.5vw, 1.2rem);
  }
  .display-wordmark img { width: min(420px, 82vw); }
  .hero-inner { margin-top: -40px; }
  .hero-intro { width: min(420px, 88%); }
  .hero-bg { background-position: 64% 40%; }
  .hero-tagline { font-size: clamp(1.4rem, 6.2vw, 4.2rem); }
  .hero { padding-top: 7.2rem; }
  .hero-bg { background-position: center 40%; }
  .concept-list { grid-template-columns: 1fr; gap: .45rem; width: min(420px, 96%); }
  .concept:last-child { grid-column: auto; width: auto; justify-self: stretch; }
  .concept { grid-template-columns: 70px 1fr; }
  .manifesto-section { padding-block: 2.25rem; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .manifesto { max-width: 11ch; }
  .manifesto-statement { padding: 0 0 0 1.25rem; }
  .story-band { min-height: 0; flex-direction: column; align-items: stretch; }
  .story-bg { position: static; order: 2; height: 220px; }
  .story-copy { order: 1; padding: 3rem 1.5rem 1.75rem; max-width: none; background: var(--paper); }
  .pathways { padding-inline: var(--page-gutter); }
  .pathway-grid { grid-template-columns: 1fr; }
  .pathway-card { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 1.8rem .5rem; }
  .pathway-card:last-child { border-bottom: 0; }
  .site-footer { text-align: center; }
  .footer-main { flex-direction: column; text-align: center; }
  .footer-mark { align-items: center; }
  .footer-meta { flex-direction: column; }
}

@media (max-width: 480px) {
  .brand-logo { display: none; }
  .brand-mark { display: block; }
}

@media (max-width: 390px) {
  .site-nav { gap: clamp(.6rem, 3vw, .85rem); }
  .site-nav a { font-size: clamp(.74rem, 3.3vw, .82rem); }
  .site-nav .button-small { min-height: 2.4rem; padding-inline: .65rem; }
}

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

/* Shared framed-site system
   Large screens reveal a warm paper workspace around one continuous 1600px
   site sheet. The sheet becomes edge-to-edge on mobile. Page-specific hero
   and section surfaces remain owned by their existing stylesheets. */
body.site-framed {
  --sheet-max: 1600px;
  --sheet-margin: clamp(1rem, 2.1vw, 2rem);
  --page-edge: var(--page-gutter);
  --frame-edge: var(--page-gutter);
  background-color: #dcc8a7;
  background-image:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, .22), transparent 30%),
    radial-gradient(circle at 88% 72%, rgba(92, 62, 31, .09), transparent 34%),
    repeating-linear-gradient(0deg, rgba(75, 49, 25, .025) 0 1px, transparent 1px 5px);
  background-attachment: fixed;
}

.site-framed .site-sheet {
  position: relative;
  width: min(var(--sheet-max), calc(100% - (2 * var(--sheet-margin))));
  min-height: 100vh;
  margin-inline: auto;
  overflow: clip;
  background: var(--ink);
  border-inline: 1px solid rgba(55, 39, 24, .28);
  box-shadow: 0 0 0 1px rgba(255, 248, 232, .16), 0 18px 56px rgba(44, 28, 14, .22);
}

.site-framed .site-header {
  right: auto;
  left: 50%;
  width: min(var(--sheet-max), calc(100% - (2 * var(--sheet-margin))));
  transform: translateX(-50%);
}

@media (max-width: 780px) {
  body.site-framed { --sheet-margin: 0px; }

  .site-framed .site-sheet {
    width: 100%;
    border-inline: 0;
    box-shadow: none;
  }

  .site-framed .site-header { width: 100%; }
}
