:root {
  --ink: #161412;
  --ink-soft: #5b5648;
  --rosewood: #141414;       /* deep brand accent — near-black in light mode */
  --rosewood-deep: #000000;
  --brass: #a4854c;          /* exact gold sampled from the Rosewood shield mark */
  --brass-text: #80642f;     /* accessible gold for small text on light surfaces */
  --on-accent: #ffffff;      /* text/icon color that sits on top of --rosewood */
  --cream: #ffffff;
  --canvas: #f7f4ee;
  --paper: #ffffff;
  --panel: #fffdf9;
  --line: #ded8cc;
  --danger: #a3312a;
  --danger-bg: #fbeceb;
  --success: #2f6a43;
  --success-bg: #eaf5ee;
  --radius: 10px;
  --shadow: 0 18px 40px -28px rgba(20, 10, 5, 0.45);
  --focus: 0 0 0 3px rgba(164, 133, 76, 0.45);
  --honeycomb-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='83.14' viewBox='0 0 72 83.14'%3E%3Cg fill='none' stroke='%23a4854c' stroke-opacity='.14' stroke-width='1.25'%3E%3Cpath d='M-24 0-12-20.78h24L24 0 12 20.78h-24Z'/%3E%3Cpath d='M12 20.78 24 0h24l12 20.78-12 20.78H24Z'/%3E%3Cpath d='M-24 41.57-12 20.78h24L24 41.57 12 62.35h-24Z'/%3E%3Cpath d='M12 62.35 24 41.57h24l12 20.78-12 20.79H24Z'/%3E%3C/g%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2ede2;
    --ink-soft: #c7bfae;
    --rosewood: #c9a768;
    --rosewood-deep: #a4854c;
    --brass: #c9a768;
    --brass-text: #c9a768;
    --on-accent: #141414;
    --cream: #121212;
    --canvas: #0e0e0e;
    --paper: #121212;
    --panel: #1a1a1a;
    --line: #2e2b26;
    --danger: #e08a83;
    --danger-bg: #3a1f1c;
    --success: #9bd18f;
    --success-bg: #1f2b1c;
    --honeycomb-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='83.14' viewBox='0 0 72 83.14'%3E%3Cg fill='none' stroke='%23c9a768' stroke-opacity='.16' stroke-width='1.25'%3E%3Cpath d='M-24 0-12-20.78h24L24 0 12 20.78h-24Z'/%3E%3Cpath d='M12 20.78 24 0h24l12 20.78-12 20.78H24Z'/%3E%3Cpath d='M-24 41.57-12 20.78h24L24 41.57 12 62.35h-24Z'/%3E%3Cpath d='M12 62.35 24 41.57h24l12 20.78-12 20.79H24Z'/%3E%3C/g%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  --ink: #f2ede2;
  --ink-soft: #c7bfae;
  --rosewood: #c9a768;
  --rosewood-deep: #a4854c;
  --brass: #c9a768;
  --brass-text: #c9a768;
  --on-accent: #141414;
  --cream: #121212;
  --canvas: #0e0e0e;
  --paper: #121212;
  --panel: #1a1a1a;
  --line: #2e2b26;
  --danger: #e08a83;
  --danger-bg: #3a1f1c;
  --success: #9bd18f;
  --success-bg: #1f2b1c;
  --honeycomb-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='83.14' viewBox='0 0 72 83.14'%3E%3Cg fill='none' stroke='%23c9a768' stroke-opacity='.16' stroke-width='1.25'%3E%3Cpath d='M-24 0-12-20.78h24L24 0 12 20.78h-24Z'/%3E%3Cpath d='M12 20.78 24 0h24l12 20.78-12 20.78H24Z'/%3E%3Cpath d='M-24 41.57-12 20.78h24L24 41.57 12 62.35h-24Z'/%3E%3Cpath d='M12 62.35 24 41.57h24l12 20.78-12 20.79H24Z'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Public Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* A quiet workspace keeps forms readable; the brand pattern is used as an accent. */
body {
  background: var(--canvas);
}

h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

a { color: var(--brass-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.site-header {
  background: linear-gradient(135deg, #1a1a1a, #000000);
  color: #fff;
  padding: 18px 24px;
}
.site-header .wrap {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header .brand img {
  width: auto;
  height: 58px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
.site-header .brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: #e8c988;
  letter-spacing: 0.04em;
}
.site-header nav a {
  min-width: 24px;
  min-height: 44px;
  padding: 11px 4px;
  color: #f3e8e2;
  text-decoration: none;
  font-size: 0.92rem;
  margin-left: 18px;
  display: inline-flex;
  align-items: center;
}
.site-header nav a:hover { text-decoration: underline; }
.site-header nav a[aria-current="page"] { color: #c9a768; font-weight: 600; }

/* Mobile menu (nav.js). The button only appears once the script has taken
   over; without it the nav is always inline. */
.nav-toggle { display: none; }
@media (max-width: 640px) {
  .site-header { position: relative; }
  .site-header.has-nav-toggle .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: #f3e8e2;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
  }
  .site-header.has-nav-toggle nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    padding: 6px 14px 12px;
    background: #0d0d0d;
    border-bottom: 1px solid #2c2923;
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.8);
  }
  .site-header.has-nav-toggle.nav-open nav { display: grid; }
  .site-header.has-nav-toggle nav a {
    margin: 0;
    padding: 12px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }
  .site-header.has-nav-toggle nav a:first-child { border-top: 0; }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.container.narrow { max-width: 720px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}

.masthead {
  text-align: center;
  padding: 6px 0 30px;
}
.masthead .kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 700;
}
.masthead h1 { font-size: clamp(26px, 4.4vw, 36px); max-width: 46ch; margin: 0 auto; }
.masthead .sub {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* legacy hero (kept for any page still using it) */
.hero {
  text-align: left;
  padding: 24px 28px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--brass-text);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ---- Portal entry: calm canvas with one restrained brand accent ---- */
.portal-entry-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
}
.portal-entry-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 84px;
  right: -130px;
  width: 440px;
  height: 430px;
  background-image: var(--honeycomb-pattern);
  background-size: 144px 166px;
  opacity: 0.28;
  mask-image: radial-gradient(circle at center, #000 0 42%, transparent 76%);
  pointer-events: none;
}
.portal-entry {
  max-width: 760px;
  padding-top: 38px;
}
.portal-intro {
  max-width: 680px;
  margin-bottom: 24px;
}
.portal-intro .eyebrow {
  margin-bottom: 8px;
  color: var(--brass-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.portal-intro h1 {
  max-width: 650px;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.05;
}
.portal-intro p {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1rem;
}
.portal-auth {
  max-width: 640px;
  padding: 30px;
}
.portal-auth > [role="tablist"] {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.portal-auth > [role="tablist"] .btn {
  min-height: 44px;
}
.portal-auth > [role="tablist"] .btn-secondary {
  border-color: transparent;
  background: transparent;
}
.portal-auth h2 {
  margin-bottom: 8px;
}
.portal-auth form {
  margin-top: 22px;
}
.js .auth-pending {
  visibility: hidden;
}
.password-control {
  position: relative;
}
.password-control input {
  padding-right: 74px;
}
.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 64px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--brass-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.no-script-alert {
  margin-bottom: 20px;
}

@media (max-width: 560px) {
  .site-header {
    padding: 11px 14px;
  }
  .site-header .wrap {
    gap: 8px;
  }
  .site-header .brand {
    min-width: 0;
    gap: 9px;
    font-size: 0.96rem;
    line-height: 1.15;
  }
  .site-header .brand img {
    width: auto;
    height: 44px;
  }
  .site-header .brand small {
    font-size: 0.62rem;
  }
  .site-header nav a {
    margin-left: 4px;
    padding-inline: 6px;
    white-space: nowrap;
  }
  .portal-entry {
    padding: 24px 16px 60px;
  }
  .portal-intro {
    margin-bottom: 18px;
  }
  .portal-intro h1 {
    font-size: 2.2rem;
  }
  .portal-auth {
    padding: 22px 20px;
  }
  .portal-auth > [role="tablist"] {
    display: flex;
    width: 100%;
  }
  .portal-auth > [role="tablist"] .btn {
    flex: 1;
    justify-content: center;
  }
}

/* ---- Public opportunities splash ---- */
.container.splash-page {
  max-width: 1120px;
  padding-top: 40px;
}

.splash-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.65fr);
  min-height: 480px;
  background:
    radial-gradient(circle at 80% 15%, rgba(164, 133, 76, 0.3), transparent 28%),
    linear-gradient(135deg, #1a1a1a 0%, #050505 70%);
  border: 1px solid #2c2923;
  border-radius: 18px;
  box-shadow: 0 28px 70px -42px rgba(0, 0, 0, 0.8);
  color: #f5f1e8;
}
.splash-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--honeycomb-pattern);
  background-size: 144px 166px;
  opacity: 0.45;
  pointer-events: none;
}
/* Gold shimmer: a brighter copy of the honeycomb, revealed through a diagonal
   band whose position (--shimmer) is driven by scroll in home.js. */
.splash-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='83.14' viewBox='0 0 72 83.14'%3E%3Cg fill='none' stroke='%23e8c988' stroke-opacity='.5' stroke-width='1.25'%3E%3Cpath d='M-24 0-12-20.78h24L24 0 12 20.78h-24Z'/%3E%3Cpath d='M12 20.78 24 0h24l12 20.78-12 20.78H24Z'/%3E%3Cpath d='M-24 41.57-12 20.78h24L24 41.57 12 62.35h-24Z'/%3E%3Cpath d='M12 62.35 24 41.57h24l12 20.78-12 20.79H24Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 144px 166px;
  opacity: 0;
  transition: opacity 0.5s ease, mask-position 0.25s ease-out, -webkit-mask-position 0.25s ease-out;
  -webkit-mask-image: linear-gradient(105deg, transparent 38%, #000 50%, transparent 62%);
  mask-image: linear-gradient(105deg, transparent 38%, #000 50%, transparent 62%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: var(--shimmer, 0%) 0;
  mask-position: var(--shimmer, 0%) 0;
  pointer-events: none;
}
.splash-hero.is-scrolling::before { opacity: 0.7; }
@media (prefers-reduced-motion: reduce) {
  .splash-hero::before { display: none; }
}

/* The hive: the bee's home in the hero's right column. */
.splash-hive {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: center;
  margin: 0 0 40px;
  width: clamp(120px, 14vw, 170px);
}
.hive { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
.hive-band { fill: #b8964f; stroke: #7c6230; stroke-width: 1.2; }
.hive-band:nth-of-type(odd) { fill: #c9a768; }
.hive-top { fill: #c9a768; stroke: #7c6230; stroke-width: 1.2; }
.hive-door { fill: #1a1611; }
.hive-shadow { fill: rgba(0, 0, 0, 0.35); }

/* A small bee. CSS wander is the no-JS fallback; home.js takes over with a
   measured hive → Apply Now → hive flight. Decorative and parked for
   reduced-motion. */
.bee {
  position: absolute;
  z-index: 2;
  top: 12%;
  left: 60%;
  width: 40px;
  height: auto;
  pointer-events: none;
  animation: bee-wander 28s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}
.bee--scripted { animation: none; }
.bee--landed .bee-wing--front, .bee--landed .bee-wing--back { animation: none; transform: rotate(-4deg) scaleY(0.9); }
.bee-body { fill: #e5c063; }
.bee-stripe { fill: none; stroke: #1a1611; stroke-width: 3.2; stroke-linecap: round; }
.bee-head { fill: #1a1611; }
.bee-eye { fill: #f5f1e8; }
.bee-sting { fill: #1a1611; }
.bee-antenna { fill: none; stroke: #1a1611; stroke-width: 1.8; stroke-linecap: round; }
.bee-wing { fill: rgba(255, 255, 255, 0.55); stroke: rgba(255, 255, 255, 0.8); stroke-width: 1; }
.bee-wing--front { transform-origin: 30px 19px; animation: bee-flap 0.11s ease-in-out infinite alternate; }
.bee-wing--back { transform-origin: 38px 20px; animation: bee-flap 0.11s ease-in-out infinite alternate-reverse; }
@keyframes bee-flap {
  from { transform: rotate(-14deg) scaleY(1); }
  to { transform: rotate(10deg) scaleY(0.72); }
}
/* The bee is drawn facing left; scaleX(-1) on the rightward legs keeps its
   head pointed the way it is flying. */
@keyframes bee-wander {
  0%   { transform: translate(0, 0) rotate(-6deg); }
  12%  { transform: translate(-6vw, 30px) rotate(6deg); }
  24%  { transform: translate(2vw, -8px) rotate(-8deg) scaleX(-1); }
  38%  { transform: translate(16vw, 40px) rotate(8deg) scaleX(-1); }
  50%  { transform: translate(22vw, -4px) rotate(-4deg) scaleX(-1); }
  62%  { transform: translate(17vw, 60px) rotate(6deg); }
  76%  { transform: translate(8vw, 84px) rotate(-8deg); }
  88%  { transform: translate(3vw, 30px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(-6deg); }
}
@media (max-width: 860px) {
  .bee { top: 8%; left: 66%; width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .bee, .bee-wing--front, .bee-wing--back { animation: none; }
}
.splash-hero-copy {
  position: relative;
  z-index: 1;
}
.splash-hero-copy {
  padding: clamp(44px, 7vw, 80px);
}
.splash-hero .eyebrow,
.section-kicker {
  margin-bottom: 12px;
  color: var(--brass-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.splash-hero h1 {
  max-width: 720px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(2.65rem, 6.5vw, 4.7rem);
  line-height: 0.98;
}
.splash-hero .lead {
  max-width: 650px;
  margin-bottom: 0;
  color: #d8d2c6;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}
.splash-hero .btn-primary,
.splash-cta .btn-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: #141414;
}
.splash-hero .btn-primary:hover,
.splash-cta .btn-primary:hover {
  background: #c9a768;
  border-color: #c9a768;
}
.splash-hero .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}
.splash-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}
.promise-label {
  display: block;
  margin-bottom: 8px;
  color: #c9a768;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.values-purpose {
  max-width: 620px;
  margin: -8px 0 22px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--brass);
}
.values-purpose .promise-label { color: var(--brass-text); margin-bottom: 4px; }
.values-purpose p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.5;
}
.values-hint { margin: 0 0 16px; font-size: 0.82rem; color: var(--ink-soft); }
.values-hint .section-kicker { display: inline-block; margin: 0 10px 0 0; }
.values-hint a { color: var(--brass-text); }
.values-section--compact { margin-top: 36px; padding: 0; }

/* Homepage "at a glance" strip: the same facts as How It Works, in one row
   under the hero so the page answers "what is this?" without scrolling. */
.glance-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}
.glance-strip .fact { padding: 12px 14px; }
.glance-strip .fact .label { font-size: 0.68rem; }
.glance-strip .fact .value { font-size: 1rem; }

.about-intro h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 8px; }
.about-intro { margin-top: 12px; }
.about-intro .values-purpose { margin: 20px 0 0; }
.companies-lead { max-width: 620px; color: var(--ink-soft); font-size: 1.02rem; }
.companies-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.companies-grid a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.companies-grid a:hover { transform: translateY(-2px); border-color: var(--brass); }
.companies-grid strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1.05rem; }
.companies-grid span { font-size: 0.86rem; color: var(--ink-soft); }

.splash-section {
  margin-top: 80px;
}
.splash-section h2,
.splash-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: start;
  padding: 0 28px;
}
.about-grid p {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.opportunity-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: clamp(36px, 7vw, 72px);
  padding: clamp(32px, 6vw, 64px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.opportunity-copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.experience-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.experience-list li {
  display: grid;
  gap: 4px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.experience-list li:first-child { padding-top: 0; }
.experience-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.experience-list strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
}
.experience-list span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.values-section {
  padding: 0 28px;
}
.values-section > h2 {
  max-width: 620px;
  margin-bottom: 28px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
/* Flip cards: front = brand icon + name, back = description. Hover/focus
   flips via CSS; home.js adds .is-flipped on tap for touch screens. Both
   faces stay in the DOM so assistive tech reads the description regardless. */
.value-card {
  position: relative;
  min-height: 256px;
  background: transparent;
  border-radius: 14px;
  cursor: pointer;
  perspective: 1200px;
  outline: none;
}
.value-card:focus-visible .value-card-inner { box-shadow: var(--focus), 0 18px 36px -24px rgba(20, 10, 5, 0.5); }
.value-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: 14px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  box-shadow: 0 18px 36px -24px rgba(20, 10, 5, 0.5);
}
.value-card:hover .value-card-inner,
.value-card:focus-visible .value-card-inner,
.value-card.is-flipped .value-card-inner { transform: rotateY(180deg); }
.value-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.value-back { transform: rotateY(180deg); }
.value-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  object-fit: contain;
}
.value-card h3 {
  font-size: 1.08rem;
  margin: 0;
}
.value-back h3 { margin-bottom: 10px; font-size: 0.95rem; color: var(--brass-text); }
.value-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  .value-card-inner { transition: none; transform: none !important; }
  .value-face { transition: opacity 0.2s ease; }
  .value-back { transform: none; opacity: 0; }
  .value-card:hover .value-back, .value-card:focus-visible .value-back, .value-card.is-flipped .value-back { opacity: 1; }
  .value-card:hover .value-front, .value-card:focus-visible .value-front, .value-card.is-flipped .value-front { opacity: 0; }
}

.splash-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 80px;
  padding: clamp(32px, 6vw, 60px);
  background: linear-gradient(135deg, #1a1a1a, #000);
  border-radius: 18px;
  color: #d8d2c6;
}
.splash-cta h2 {
  color: #fff;
}
.splash-cta p {
  max-width: 640px;
  margin-bottom: 0;
}
.splash-cta .btn {
  flex: 0 0 auto;
}

@media (max-width: 860px) {
  .splash-hero,
  .about-grid,
  .opportunity-panel {
    grid-template-columns: 1fr;
  }
  .splash-hero {
    min-height: 0;
  }
  .splash-hive {
    justify-self: start;
    margin: 0 0 36px 44px;
    width: 110px;
  }
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .glance-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .companies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container.splash-page {
    padding: 20px 14px 60px;
  }
  .splash-hero-copy {
    padding: 36px 24px;
  }
  .splash-hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
  }
  .splash-hive {
    margin: 0 0 28px 24px;
    width: 92px;
  }
  .about-grid,
  .values-section {
    padding-left: 8px;
    padding-right: 8px;
  }
  .splash-section,
  .splash-cta {
    margin-top: 56px;
  }
  .opportunity-panel {
    padding: 30px 24px;
  }
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .glance-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .companies-grid {
    grid-template-columns: 1fr;
  }
  .values-section--compact {
    margin-top: 28px;
  }
  .value-card {
    min-height: 200px;
  }
  .splash-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 26px;
  }
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.fact .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.fact .value { font-family: "IBM Plex Mono", monospace; font-size: 1.15rem; font-weight: 600; color: var(--brass-text); }

/* ---- How It Works: numbered steps ---- */
.steps-title { margin: 8px 0 18px; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: how-step;
}
.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.step::before {
  counter-increment: how-step;
  content: counter(how-step);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rosewood);
  color: var(--on-accent);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
}
.step h3 { margin-bottom: 6px; }
.step p:last-child, .step .req-list { margin-bottom: 0; }
.step .req-list { margin-top: 10px; }
.how-cta { margin-top: 40px; }
.how-cta a:not(.btn) { color: #e8c988; }
@media (max-width: 560px) {
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .step::before { width: 34px; height: 34px; font-size: 1rem; }
}

/* ---- Homepage photography ---- */
.section-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-grid .section-photo { margin-top: 24px; }
.opportunity-copy .section-photo { margin: 6px 0 24px; }

/* ---- FAQ page: details/summary accordion ---- */
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 20px 28px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2 { margin: 0; }
.faq-item summary::before {
  content: "\002B";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--brass-text);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.faq-item[open] summary::before { content: "\2212"; }
.faq-item summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.faq-item > *:not(summary) { margin-top: 14px; }
.faq-item p:last-child, .faq-item ul:last-child { margin-bottom: 0; }

.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.req-list li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.req-list .dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--brass); }

/* ---- Application progress: band + progress bar + stepper ---- */
.progress-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.band {
  background: linear-gradient(135deg, #1a1a1a, #000000);
  color: #f3e8e2;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.band .band-title { font-family: "Source Serif 4", serif; font-weight: 600; font-size: 17px; }
.band .progress-text { font-size: 12px; letter-spacing: 0.06em; opacity: 0.85; }
.progress-track { height: 4px; background: rgba(255, 255, 255, 0.18); }
.progress-fill { height: 100%; background: var(--brass); transition: width 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } }

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 14px 16px;
  counter-reset: step;
}
.stepper li { flex: 1 1 auto; min-width: 96px; }
.stepper button {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink-soft);
  padding: 10px 6px 4px;
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stepper button::before {
  counter-increment: step;
  content: counter(step);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--paper);
}
.stepper li.current button { color: var(--ink); font-weight: 700; }
.stepper li.current button::before { background: var(--rosewood); border-color: var(--rosewood); color: var(--on-accent); }
.stepper li.done button::before { content: "\2713"; background: transparent; border-color: var(--brass); color: var(--brass-text); }
.stepper button:hover { background: rgba(164, 133, 76, 0.1); }

/* Forms */
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.field { margin-bottom: 18px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; }
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="month"], input[type="number"], input[type="password"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.error-text {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 4px;
}
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 18px; }
legend { font-weight: 700; padding: 0 6px; }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-row label { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-weight: 400; margin: 0; }

.essay-prompt {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary { background: var(--rosewood); color: var(--on-accent); border-color: var(--rosewood); }
.btn-primary:hover { background: var(--rosewood-deep); border-color: var(--rosewood-deep); }
.btn-primary:disabled { background: var(--line); border-color: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--panel); }
.btn-text { background: none; color: var(--brass-text); padding: 6px 4px; }
.btn-danger { background: var(--paper); color: var(--danger); border-color: var(--danger); }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Alerts / states */
.alert { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; font-size: 0.94rem; }
.alert-info { background: rgba(164, 133, 76, 0.14); color: var(--ink); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-complete { background: var(--success-bg); color: var(--success); }
.badge-missing { background: var(--danger-bg); color: var(--danger); }
.badge-status { background: rgba(164, 133, 76, 0.14); color: var(--ink); }

.spinner {
  display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line);
  border-top-color: var(--brass); border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-soft); }

.file-drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  background: var(--paper);
}
.file-current {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(164, 133, 76, 0.12); border-radius: 8px; padding: 12px 14px; margin-top: 10px;
}

.review-section { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.review-section:last-child { border-bottom: none; }
.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 0.94rem; }
.review-row .k { color: var(--ink-soft); }
.review-row .v { text-align: right; font-weight: 600; }

table.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.data-table th { color: var(--ink-soft); font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; }
.data-table tr:hover td { background: rgba(164, 133, 76, 0.08); }
.table-wrap { overflow-x: auto; }

.autosave-note { font-size: 0.8rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; min-height: 18px; }

.site-footer { text-align: center; color: var(--ink-soft); font-size: 0.82rem; padding: 24px; }

/* ---- Rich site-wide footer: brand, Connect (email/location/social) ---- */
.site-footer-full {
  background: linear-gradient(135deg, #1a1a1a, #000000);
  color: #d8d2c6;
  margin-top: 60px;
}
.footer-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 28px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 300px;
}
.footer-brand img { width: auto; height: 64px; flex: 0 0 auto; }
.footer-connect {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}
.footer-heading {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #c9a768;
  margin-bottom: 2px;
}
.footer-connect a { color: #f3e8e2; text-decoration: none; font-size: 0.92rem; }
.footer-connect a:hover { text-decoration: underline; }
.footer-location { font-size: 0.92rem; color: #d8d2c6; }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f3e8e2;
  transition: background 0.15s ease;
}
.footer-social a:hover { background: rgba(201, 167, 104, 0.35); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 28px;
  text-align: center;
  font-size: 0.8rem;
  color: #a89f8f;
}
@media (max-width: 560px) {
  .footer-wrap { padding: 36px 20px 24px; gap: 26px; }
  .footer-brand { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}
