/* ==========================================================================
   Dominyon FinOps Inc. — design system
   Editorial finance aesthetic. Recurring motif: the ruled ledger line.
   ========================================================================== */

:root {
  /* Brand */
  --blue: #0084d1;
  --blue-hover: #0069a8;
  --blue-deep: #00456e;
  --blue-ink: #002a44;
  --tint: #eef7fd;
  --tint-2: #dcecf8;

  /* Neutrals */
  --paper: #ffffff;
  --ink: #0d1317;
  --ink-2: #3d4a52;
  --ink-3: #6b7a84;
  --rule: #dbe4ea;
  --rule-strong: #c3d2dc;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1200px;
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --shadow-sm: 0 1px 2px rgba(13, 19, 23, 0.05);
  --shadow: 0 18px 40px -24px rgba(0, 69, 110, 0.35);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "cv05";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }

/* --- Eyebrow / label ---------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--blue);
  flex: none;
}
.eyebrow--light { color: #9fd4f5; }
.eyebrow--light::before { background: #9fd4f5; }

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--tint);
  color: var(--blue-deep);
  border: 1px solid var(--tint-2);
  border-radius: 100px;
  padding: 0.32rem 0.8rem;
}

.lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }

/* --- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--ink { background: var(--blue-ink); color: #eaf4fb; }

/* --- THE MOTIF: ruled ledger line --------------------------------------- */
/* A hairline rule punctuated by tick marks, like the ruling on a ledger
   sheet. Used between every section and inside data surfaces. */
.ledger-rule {
  height: 13px;
  border: 0;
  margin: 0;
  background-image:
    linear-gradient(var(--rule), var(--rule)),
    repeating-linear-gradient(to right, var(--rule-strong) 0 1px, transparent 1px 88px);
  background-size: 100% 1px, 100% 13px;
  background-position: 0 6px, 0 0;
  background-repeat: no-repeat, repeat-x;
}
.ledger-rule--blue {
  background-image:
    linear-gradient(var(--blue), var(--blue)),
    repeating-linear-gradient(to right, rgba(0, 132, 209, 0.4) 0 1px, transparent 1px 88px);
}

/* Ledger paper: faint horizontal ruling used behind data-ish surfaces */
.ledger-paper {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 43px,
    var(--rule) 43px 44px
  );
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 0.8rem 1.45rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.22s cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 0.22s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
/* A single pass of light travels across the face on hover — the same restraint
   as a foil-stamped card catching the light, not a glow. */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  transform: skewX(-18deg) translateX(-100%);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
}
.btn:hover::before { animation: btn-sheen 0.62s cubic-bezier(0.32, 0.6, 0.3, 1) forwards; }
@keyframes btn-sheen { to { transform: skewX(-18deg) translateX(560%); } }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.06s; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; box-shadow: 0 12px 22px -14px rgba(0, 69, 110, 0.9); }
.btn--outline { background: transparent; color: var(--blue-deep); border-color: var(--rule-strong); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); background: var(--tint); box-shadow: 0 12px 22px -16px rgba(0, 69, 110, 0.6); }
.btn--outline::before { background: linear-gradient(100deg, transparent, rgba(0, 132, 209, 0.14), transparent); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.82rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
/* Reading progress, drawn as one more ruled line rather than a coloured bar.
   --scroll-progress is written by initStickyHeader(); with no JS it stays 0
   and the rule simply never appears. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px -26px rgba(0, 42, 68, 0.85);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 84px;
  transition: min-height 0.3s ease;
}
.site-header.is-stuck .site-header__bar { min-height: 72px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.logo__mark {
  flex: none;
  display: block;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.logo:hover .logo__mark { transform: scale(1.06); }
/* Pressing the header lock-up (which links home) pops the mark, then it
   eases back to size on release. */
.site-header .logo:active .logo__mark {
  transform: scale(1.18);
  transition-duration: 0.12s;
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--display); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em; }
.logo__sub {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.3rem;
}
/* Larger lock-up: the footer sign-off, where the mark has room to breathe. */
.logo--lg { gap: 0.9rem; }
.logo--lg .logo__mark { width: 250px; height: 200px; max-width: 100%; }
.logo--lg .logo__name { font-size: 1.7rem; }
.logo--lg .logo__sub { font-size: 0.68rem; letter-spacing: 0.26em; margin-top: 0.45rem; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.35rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
/* Scroll position marks the matching link with the same rule the hover draws. */
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.65rem; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
}
.hamburger span {
  display: block;
  width: 19px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.22s ease, background-color 0.22s ease;
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px; height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease;
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--rule);
  background: #fff;
  padding: 0.5rem var(--gutter) 1.5rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a.mobile-link {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 500;
}
.mobile-menu__actions { display: grid; gap: 0.6rem; margin-top: 1.25rem; }

@media (max-width: 900px) {
  .nav, .header-actions { display: none; }
  .hamburger { display: inline-flex; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 7vw, 6.5rem) 0; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background:
    radial-gradient(900px 420px at 88% -8%, var(--tint) 0%, transparent 62%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero h1 span { color: var(--blue); font-style: italic; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; background: var(--blue); }

/* Hero highlight panel — dark shade of brand blue, styled as a ledger card */
.hero__panel {
  background: var(--blue-deep);
  color: #dcecf8;
  border-radius: 6px;
  padding: 2.4rem 2.1rem;
  box-shadow: var(--shadow);
}
.hero__panel h3 {
  color: #fff;
  font-size: 1.05rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.62rem 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.22);
  font-size: 0.92rem;
}
/* The hero copy runs tall, so the panel beside it carries taller rows and a
   slightly larger label to match its height. */
.hero__panel .ledger-row { padding: 0.95rem 0; font-size: 1rem; }
.hero__panel .ledger-row__value { font-size: 0.94rem; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row__label { color: rgba(255, 255, 255, 0.72); }
.ledger-row__dots { flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, 0.3); transform: translateY(-3px); }
.ledger-row__value { font-family: var(--mono); color: #fff; font-size: 0.88rem; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
}

/* --- About -------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about__aside { position: sticky; top: 110px; }
.about__quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-left: 3px solid var(--blue);
  padding-left: 1.4rem;
  margin: 0 0 1.5rem;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; padding: 0; list-style: none; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__aside { position: static; }
}

/* Founder portrait. Sits on an offset sheet of ruled ledger paper so the
   photograph carries the same motif as every other surface on the page. */
.portrait {
  position: relative;
  max-width: 320px;
  margin: 0 0 2.1rem;
}
.portrait::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  right: -0.9rem;
  bottom: -0.9rem;
  left: 0.9rem;
  border-radius: 6px;
  background-color: var(--tint);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 21px,
    var(--rule) 21px 22px
  );
}
.portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .portrait { max-width: 260px; }
}

/* --- Services ----------------------------------------------------------- */
/* Deliberately not a 3-up card grid: a ruled ledger list, two columns, with
   hairlines between rows so it reads like a page from a book of accounts. */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}
.service {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.1rem;
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.service::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service:hover::after { width: 100%; }
.service__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tint-2);
  background: var(--tint);
  border-radius: 4px;
  color: var(--blue);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.service:hover .service__icon { background: var(--blue); color: #fff; border-color: var(--blue); }
.service h3 { margin-bottom: 0.35rem; font-size: 1.12rem; }
.service p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.service__no {
  position: absolute;
  top: 1.9rem; right: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
@media (max-width: 780px) { .service-list { grid-template-columns: 1fr; } }

/* --- Client experience -------------------------------------------------- */
.xp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.xp {
  background: #fff;
  padding: 1.9rem 1.6rem;
  transition: background-color 0.2s ease;
}
.xp:hover { background: var(--tint); }
.xp__step {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--blue);
  display: block;
  margin-bottom: 1.1rem;
}
.xp h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.xp p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }

/* --- Resources (free guide download) ------------------------------------ */
/* The flyer *is* the download control, so it has to read as pressable: it sits
   on the same offset sheet of ruled paper the portraits use, lifts on hover and
   carries a mono cue beneath it saying what a click does. */
.resource-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.flyer {
  position: relative;
  display: block;
  max-width: 520px;
  color: inherit;
  text-decoration: none;
}
.flyer::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  right: -0.9rem;
  bottom: 1.7rem;
  left: 0.9rem;
  border-radius: 6px;
  background-color: var(--tint);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 21px,
    var(--rule) 21px 22px
  );
}
.flyer__img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 0.5s ease;
}
.flyer:hover .flyer__img,
.flyer:focus-visible .flyer__img {
  transform: translateY(-5px);
  box-shadow: 0 30px 55px -30px rgba(0, 69, 110, 0.6);
}
.flyer:focus-visible { outline: none; }
.flyer:focus-visible .flyer__img { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 4px; }
.flyer:active .flyer__img { transform: translateY(-1px); transition-duration: 0.08s; }
.flyer__cue {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.15rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.2s ease;
}
.flyer__cue svg { color: var(--blue); transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.28, 1); }
.flyer:hover .flyer__cue { color: var(--blue); }
.flyer:hover .flyer__cue svg { transform: translateY(2px); }

.resource-body h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 0.4rem; }
.resource-points { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.resource-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.resource-points li svg { flex: none; margin-top: 4px; color: var(--blue); }
.resource-body__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
.resource-body__meta {
  margin: 1.1rem 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* An experience card on the resources page carries an onward link in a second
   paragraph; the home page cards have one paragraph and are untouched. */
.xp p + p { margin-top: 0.85rem; }

@media (max-width: 900px) {
  .resource-feature { grid-template-columns: 1fr; }
  .flyer { max-width: 100%; margin-left: 0.9rem; }
}

/* --- Ledger band -------------------------------------------------------- */
/* Full-bleed photograph of a ledger under a deep-blue wash: the motif that
   runs through the whole page, shown literally, carrying the booking CTA. */
.ledger-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue-ink);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.ledger-band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ledger-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(0, 42, 68, 0.95) 0%,
    rgba(0, 42, 68, 0.9) 48%,
    rgba(0, 69, 110, 0.62) 100%
  );
}
.ledger-band__inner { max-width: 44rem; }
.ledger-band__title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1rem;
}
.ledger-band__title span { color: #7ec8f2; }
.ledger-band__lede {
  color: rgba(234, 244, 251, 0.82);
  font-size: 1.02rem;
  max-width: 52ch;
  margin: 0 0 2rem;
}
.ledger-band__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* --- Pricing (ledger-sheet table) --------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.tier {
  padding: 1.9rem 1.3rem 2.2rem;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
/* Last column of each row carries no divider. */
.tier:nth-child(4n) { border-right: 0; }
.tier__name { font-family: var(--display); font-size: 1.35rem; margin: 0.9rem 0 0.15rem; }
.tier__price {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
  margin: 0.5rem 0 0.25rem;
}
.tier__per { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.tier__desc { font-size: 0.88rem; color: var(--ink-2); margin: 1rem 0 1.25rem; }
.tier ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  border-top: 1px solid var(--rule);
  flex: 1;
}
.tier li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.68rem 0;
  border-bottom: 1px dotted var(--rule-strong);
  font-size: 0.85rem;
  color: var(--ink-2);
}
.tier li svg { margin-top: 4px; color: var(--blue); }
.tier--featured { background: var(--blue-deep); color: #dcecf8; border-right-color: var(--blue-deep); border-bottom-color: var(--blue-deep); }
.tier--featured .tier__name { color: #fff; }
.tier--featured .tier__price { color: #fff; }
.tier--featured .tier__per,
.tier--featured .tier__desc { color: rgba(255, 255, 255, 0.72); }
.tier--featured ul { border-top-color: rgba(255, 255, 255, 0.22); }
.tier--featured li { color: rgba(255, 255, 255, 0.86); border-bottom-color: rgba(255, 255, 255, 0.18); }
.tier--featured li svg { color: #7fd0ff; }
.tier--featured .pill { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
@media (max-width: 1080px) {
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier { padding: 2.1rem 1.75rem 2.4rem; }
  .tier:nth-child(2n) { border-right: 0; }
  .tier:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
  .tier--featured { border-bottom-color: var(--blue-deep); }
}
@media (max-width: 700px) {
  .pricing { grid-template-columns: 1fr; }
  .tier { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tier:last-child { border-bottom: 0; }
}

/* --- Testimonials ------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.quote { border-top: 2px solid var(--blue); padding-top: 1.4rem; }
.quote__before {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 0.85rem;
}
.quote blockquote {
  margin: 0 0 1.35rem;
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.quote__who { font-size: 0.86rem; color: var(--ink-2); }
.quote__who strong { display: block; color: var(--ink); font-weight: 600; }

/* --- Story portrait ----------------------------------------------------- */
/* The origin story reads better against a face, and the column also pulls the
   paragraphs down to a sane measure — full-wrap prose ran to ~110 characters. */
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
/* Same offset sheet of ruled paper as the About portrait, mirrored to the
   other side so the two founder photographs don't read as a matched pair. */
.story__figure {
  position: relative;
  margin: 0;
  max-width: 440px;
  justify-self: end;
}
.story__figure::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  bottom: -0.9rem;
  left: -0.9rem;
  border-radius: 6px;
  background-color: var(--tint);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 21px,
    var(--rule) 21px 22px
  );
}
.story__figure img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 0.5s ease;
}
.story__figure:hover img {
  transform: translateY(-5px);
  box-shadow: 0 30px 55px -30px rgba(0, 69, 110, 0.6);
}

/* Founder bubble: a glass name-plate floating over the foot of the portrait,
   so the face on the page is attributed without a caption sitting apart from
   it. Inset on both sides so it never overhangs the ruled sheet behind. */
.story__figure .founder-bubble {
  position: absolute;
  z-index: 2;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 1.15rem;
  margin: 0;
  padding: 0.8rem 1.05rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid rgba(219, 228, 234, 0.95);
  box-shadow: 0 20px 38px -22px rgba(0, 42, 68, 0.65);
  text-align: left;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.story__figure:hover .founder-bubble {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 44px -22px rgba(0, 42, 68, 0.75);
}
/* The tail that makes it a bubble rather than a caption bar. */
.story__figure .founder-bubble::after {
  content: "";
  position: absolute;
  left: 1.9rem;
  bottom: -7px;
  width: 13px;
  height: 13px;
  background: inherit;
  border-right: 1px solid rgba(219, 228, 234, 0.95);
  border-bottom: 1px solid rgba(219, 228, 234, 0.95);
  border-bottom-right-radius: 3px;
  transform: rotate(45deg);
}
.founder-bubble__role {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.founder-bubble__role::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1px;
  background: var(--blue);
  transform: translateY(-0.2em);
}
/* Arrives a beat after the portrait itself has risen into place. */
.js .reveal .founder-bubble { opacity: 0; transform: translateY(10px); }
.js .reveal.is-in .founder-bubble {
  animation: bubble-in 0.55s cubic-bezier(0.22, 0.8, 0.28, 1) 0.35s forwards;
}
@keyframes bubble-in { to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__figure { max-width: 320px; justify-self: start; margin-left: 0.9rem; }
}

/* --- Contact ------------------------------------------------------------ */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-detail {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.contact-detail:first-of-type { border-top: 1px solid var(--rule); }
.contact-detail svg { color: var(--blue); margin-top: 4px; }
.contact-detail dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.contact-detail dd { margin: 0.2rem 0 0; font-size: 0.97rem; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* --- Forms -------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.45rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 0.78rem 0.9rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 132, 209, 0.16);
}
.field input:disabled { background: var(--tint); color: var(--ink-3); }
.field__hint { font-size: 0.78rem; color: var(--ink-3); margin: 0.4rem 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* Honeypot for the contact form */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --- Status messages ---------------------------------------------------- */
.msg {
  border-radius: 4px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid;
  display: none;
}
.msg.is-visible { display: block; }
.msg--ok { background: var(--tint); border-color: var(--tint-2); color: var(--blue-ink); }
.msg--err { background: #fdf2f2; border-color: #f5d3d3; color: #8c2b2b; }
.msg--info { background: #fbfcfd; border-color: var(--rule); color: var(--ink-2); }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--blue-ink); color: rgba(255, 255, 255, 0.72); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
}
.footer__grid .logo { color: #fff; }
.footer__grid .logo__sub { color: rgba(255, 255, 255, 0.5); }
.footer h4 {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; font-size: 0.92rem; }
.footer ul a {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.22, 0.8, 0.28, 1), color 0.18s ease;
}
.footer ul a:hover { transform: translateX(4px); }
.footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 780px) {
  .footer__grid { grid-template-columns: 1fr; }
  /* The 250px mark and the wordmark stop fitting side by side on phones. */
  .footer__grid .logo--lg { flex-wrap: wrap; }
}

/* --- App shell (portal + admin) ----------------------------------------- */
.app-body { background: #fbfcfe; display: flex; flex-direction: column; min-height: 100vh; }
.app-main { flex: 1; padding-block: clamp(2rem, 4vw, 3.25rem); }
.app-header { background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }
.app-header__bar { display: flex; align-items: center; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.app-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; flex-wrap: wrap; }
.app-nav a { font-size: 0.9rem; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.app-nav a:hover, .app-nav a[aria-current="page"] { color: var(--blue); }
.app-user {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--ink-3);
  padding-left: 1.25rem; border-left: 1px solid var(--rule);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 600; flex: none;
}
@media (max-width: 700px) {
  .app-header__bar { padding-block: 0.75rem; }
  .app-nav { width: 100%; margin-left: 0; gap: 1rem; justify-content: space-between; }
  .app-user { padding-left: 0; border-left: 0; }
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.25rem; }
.page-head p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

.panel {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  margin-bottom: 1.5rem;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.panel__head h2 { font-size: 1.3rem; margin: 0; }
.panel__count { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* --- Dropzone ----------------------------------------------------------- */
.dropzone {
  border: 1.5px dashed var(--rule-strong);
  border-radius: 6px;
  background: #fcfdfe;
  padding: clamp(1.75rem, 5vw, 3rem) 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--blue); background: var(--tint); outline: none; }
.dropzone.is-dragging { border-color: var(--blue); background: var(--tint); border-style: solid; }
.dropzone__icon { color: var(--blue); margin-bottom: 0.9rem; }
.dropzone h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.dropzone p { color: var(--ink-3); font-size: 0.87rem; margin: 0; }
.dropzone__browse { color: var(--blue); text-decoration: underline; }

.queue { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.queue li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 0.88rem;
  background: #fff;
}
.queue__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue__state { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.queue__state[data-state="uploading"] { color: var(--blue); }
.queue__state[data-state="done"] { color: #1a7f4b; }
.queue__state[data-state="error"] { color: #b23b3b; }

/* --- Tables (ledger style) ---------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}
table.ledger th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  padding: 0 0.9rem 0.7rem;
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}
table.ledger td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
table.ledger tbody tr:hover { background: #f7fbfe; }
table.ledger td:first-child, table.ledger th:first-child { padding-left: 0; }
table.ledger td:last-child, table.ledger th:last-child { padding-right: 0; text-align: right; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.83rem; color: var(--ink-2); white-space: nowrap; }
.filename { font-weight: 500; display: flex; align-items: center; gap: 0.55rem; }
.filename svg { color: var(--blue); flex: none; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
}
.status--received { background: var(--tint); border-color: var(--tint-2); color: var(--blue-deep); }
.status--reviewed { background: #edf9f2; border-color: #cdebda; color: #14683d; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.empty { text-align: center; padding: clamp(2rem, 5vw, 3.25rem) 1rem; color: var(--ink-3); }
.empty svg { color: var(--rule-strong); margin-bottom: 1rem; }
.empty h3 { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 0.3rem; }
.empty p { margin: 0; font-size: 0.9rem; }

.skeleton { display: grid; gap: 0.6rem; }
.skeleton div {
  height: 44px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f1f5f8 25%, #e7eef3 37%, #f1f5f8 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Mobile: turn the ledger tables into stacked cards */
@media (max-width: 760px) {
  table.ledger { min-width: 0; }
  table.ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.ledger tr {
    display: grid;
    gap: 0.4rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
  }
  table.ledger td {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.15rem 0;
    border: 0;
    text-align: left !important;
  }
  table.ledger td::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  table.ledger td:last-child { justify-items: start; }
  .table-wrap { overflow-x: visible; }
}

/* --- Auth page ---------------------------------------------------------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}
.auth__aside {
  background: var(--blue-ink);
  color: #dcecf8;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 47px, rgba(255, 255, 255, 0.05) 47px 48px);
  pointer-events: none;
}
.auth__aside .logo { color: #fff; position: relative; z-index: 1; }
.auth__aside .logo__sub { color: rgba(255, 255, 255, 0.5); }
.auth__pitch { position: relative; z-index: 1; max-width: 34ch; }
.auth__pitch h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.auth__pitch p { color: rgba(255, 255, 255, 0.72); font-size: 0.97rem; margin-bottom: 0; }
.auth__seal {
  position: relative; z-index: 1;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  display: flex; align-items: center; gap: 0.55rem;
}
.auth__panel { padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 3.5rem); display: flex; align-items: center; }
.auth__inner { width: 100%; max-width: 420px; margin-inline: auto; }
.auth__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: 1.9rem; }
.auth__tab {
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.auth__tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.auth__foot { margin-top: 1.5rem; font-size: 0.87rem; color: var(--ink-3); text-align: center; }
.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--blue); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__aside { min-height: 0; gap: 2rem; padding-block: 2.25rem; }
  .auth__seal { display: none; }
}

/* --- Utility ------------------------------------------------------------ */
.stack-sm > * + * { margin-top: 0.75rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-mono { font-family: var(--mono); }
.hidden { display: none !important; }
.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;
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

/* --- Micro-interactions ------------------------------------------------- */
/* Restraint is the brief: every hover here is a small, single-property shift
   that confirms a surface is live. Nothing bounces, nothing spins. */
.pill {
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.pill:hover {
  background: var(--tint-2);
  border-color: var(--blue);
  color: var(--blue-deep);
  transform: translateY(-1px);
}
.tier--featured .pill:hover { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.55); color: #fff; }

.service__icon { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.3s cubic-bezier(0.22, 0.8, 0.28, 1); }
.service:hover .service__icon { transform: translateY(-2px); }

.tier { transition: background-color 0.28s ease; }
.tier:hover { background: #fafdff; }
.tier--featured:hover { background: #005688; }

.quote { transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.28, 1); }
.quote:hover { transform: translateY(-4px); }

.portrait img { transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 0.5s ease; }
.portrait:hover img { transform: translateY(-5px); box-shadow: 0 30px 55px -30px rgba(0, 69, 110, 0.6); }

.contact-detail { transition: border-color 0.22s ease; }
.contact-detail:hover { border-bottom-color: var(--blue); }

/* --- Entrance animation ------------------------------------------------- */
/* Only hide pre-reveal content when JS is actually running, so a failed
   bundle can never leave the page blank. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { animation: rise 0.7s cubic-bezier(0.22, 0.8, 0.28, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal .founder-bubble { opacity: 1; transform: none; }
  .btn::before { display: none; }
  .btn:hover, .quote:hover, .pill:hover,
  .story__figure:hover img, .portrait:hover img,
  .flyer:hover .flyer__img, .flyer:hover .flyer__cue svg { transform: none; }
}
