/* =====================================================================
   fidelstine.com: shared look. Layout lives in one file per screen:
     phone.css   up to 699px   app-like: bottom dock, swipeable doors, list rows, accordions
     tablet.css  700-1099px    magazine: split image-and-text rows, two-column grids
     desktop.css 1100px and up editorial: side-by-side doors that widen on hover
   The business side borrows the business site's indigo, brass and Bodoni.
   The charity side borrows the charity site's cream, red, navy and Newsreader.
   ===================================================================== */

@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-normal-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic-latin.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/work-sans-normal-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f5f1ea;
  --paper-2: #ece5d9;
  --ink: #111a2e;
  --ink-2: #3a4157;
  --muted: #62677a;
  --line: rgba(17, 26, 46, 0.12);
  --line-2: rgba(17, 26, 46, 0.22);
  --indigo: #142143;
  --indigo-2: #1c2c58;
  --indigo-deep: #0c1429;
  --brass: #cfaf5c;
  --brass-2: #e6d19a;
  --brass-ink: #82621c;
  --cream: #faf6f1;
  --red: #a33234;
  --red-bright: #c2413f;
  --pink: #e8b4bc;
  --navy: #16324f;
  --navy-deep: #0e2338;
  --on-dark: #f4f0e7;
  --on-dark-2: rgba(244, 240, 231, 0.76);

  --bodoni: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --news: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --work: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 56px;
  --maxw: 1240px;
  --top-h: 76px;
  --dock-h: 0px;
  --r: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --adire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23cfaf5c' stroke-opacity='.18'%3E%3Ccircle cx='28' cy='28' r='11'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E");
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='1.4' fill='%23a33234' fill-opacity='.16'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; padding-bottom: var(--dock-h); background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.i { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: var(--brass-2); color: var(--indigo-deep); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; }

/* ---------- shared pieces ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-ink); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.7; }
/* the FN badge and the crest always sit on a white tile at their true proportions */
.tile { display: inline-grid; place-items: center; flex: none; background: #fff; border-radius: 10px; box-shadow: 0 1px 0 rgba(17, 26, 46, 0.06); }
.tile img { width: 72%; height: auto; }
.tile--sm { width: 38px; height: 38px; }
.tile--lg { width: 64px; height: 64px; border-radius: 16px; }
.tile--round { border-radius: 50%; }
.tile--round img { width: 94%; border-radius: 50%; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--brass { background: var(--brass); }
.dot--red { background: var(--red); }

.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: transform 0.2s var(--ease), background-color 0.2s; }
.pill .i { width: 17px; height: 17px; }
.lbl__pre { font-weight: 500; opacity: 0.82; }
.pill--biz { background: var(--indigo); color: var(--brass-2); }
.pill--biz:hover { background: var(--indigo-2); }
.pill--char { background: var(--red); color: #fff; font-family: var(--work); }
.pill--char:hover { background: var(--red-bright); }
.pill:active { transform: scale(0.97); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.98rem; border: 1px solid transparent; overflow: hidden; isolation: isolate; transform: translate(var(--mx, 0), var(--my, 0)); transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.35s var(--spring); }
.btn .i { width: 18px; height: 18px; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn--biz { background: var(--brass); color: var(--indigo-deep); }
.btn--biz:hover { background: var(--brass-2); box-shadow: 0 14px 30px -14px rgba(207, 175, 92, 0.8); }
.btn--char { background: var(--red); color: #fff; font-family: var(--work); }
.btn--char:hover { background: var(--red-bright); box-shadow: 0 14px 30px -14px rgba(163, 50, 52, 0.8); }
.btn--char-line { border-color: rgba(22, 50, 79, 0.3); color: var(--navy); font-family: var(--work); }
.btn--char-line:hover { border-color: var(--navy); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

/* ---------- opening curtain (once per visit) ---------- */
.curtain { display: none; }
.js:not(.seen) .curtain { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; animation: curtain-done 0s linear 1.9s forwards; }
.curtain__half { position: absolute; top: 0; bottom: 0; width: 50.5%; }
.curtain__half--l { left: 0; background: var(--indigo) var(--adire); background-size: 56px 56px; animation: open-l 1.05s var(--ease) 0.75s forwards; }
.curtain__half--r { right: 0; background: var(--cream) var(--dots); background-size: 26px 26px; animation: open-r 1.05s var(--ease) 0.75s forwards; }
.curtain__badge { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; translate: -50% -50%; display: grid; place-items: center; background: #fff; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); animation: badge 1.3s var(--ease) forwards; }
.curtain__badge img { width: 62px; }
@keyframes open-l { to { transform: translateX(-101%); } }
@keyframes open-r { to { transform: translateX(101%); } }
@keyframes badge { 0% { opacity: 0; scale: 0.6; } 35% { opacity: 1; scale: 1; } 70% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.25; } }
@keyframes curtain-done { to { visibility: hidden; } }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--indigo); }
.top__word { font-family: var(--bodoni); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; }
.top__nav { display: flex; gap: 28px; margin-inline: auto; }
.top__nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink-2); padding: 6px 0; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.top__nav a:hover { color: var(--ink); }
.top__nav a:hover::after { transform: scaleX(1); }
.top__go { display: flex; gap: 8px; }
.top__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--brass), var(--brass-2) 48%, var(--pink) 52%, var(--red)); }

/* ---------- intro ---------- */
.intro { text-align: center; display: grid; justify-items: center; gap: 18px; padding: 56px var(--gutter) 36px; }
.intro__eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.intro__eyebrow .sep { width: 28px; height: 1px; background: var(--line-2); }
.intro__title {
  font-family: var(--bodoni); font-weight: 500; line-height: 0.95; letter-spacing: 0.04em; text-transform: uppercase;
  background: linear-gradient(100deg, var(--indigo) 0 38%, var(--brass-ink) 46%, var(--red) 54%, var(--navy-deep) 62% 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out 2.2s infinite;
}
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.intro__title .ch { display: inline-block; background: inherit; -webkit-background-clip: text; background-clip: text; }
.js .intro__title .ch { animation: letter 1s var(--ease) both; animation-delay: calc(var(--i) * 55ms + var(--start, 0.2s)); }
.js:not(.seen) .intro__title .ch { --start: 1.25s; }
@keyframes letter { from { opacity: 0; transform: translateY(0.35em) rotate(4deg); filter: blur(6px); } }
.intro__lead { max-width: 52ch; color: var(--ink-2); font-size: 1.15rem; }

/* the top bar and intro form one deep indigo band; the bar turns back to paper once you scroll */
.js .top:not(.is-scrolled) { background: var(--indigo-deep); -webkit-backdrop-filter: none; backdrop-filter: none; transition: border-color 0.3s, background-color 0.3s; }
.js .top:not(.is-scrolled) .top__brand { color: var(--on-dark); }
.js .top:not(.is-scrolled) .top__nav a { color: var(--on-dark-2); }
.js .top:not(.is-scrolled) .top__nav a:hover { color: var(--brass-2); }
.js .top:not(.is-scrolled) .pill--biz { background: rgba(207, 175, 92, 0.14); box-shadow: inset 0 0 0 1px rgba(207, 175, 92, 0.5); }
.js .top:not(.is-scrolled) .pill--biz:hover { background: rgba(207, 175, 92, 0.24); }
.intro {
  position: relative; isolation: isolate; overflow: hidden; margin-bottom: 40px; padding-block: 72px 60px;
  background: linear-gradient(180deg, var(--indigo-deep) 0%, var(--indigo) 100%);
  box-shadow: 0 30px 60px -40px rgba(12, 20, 41, 0.7);
}
/* slow drifting light: gold on the business side, red on the charity side */
.intro__glow { position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(32% 42% at 28% 52%, rgba(207, 175, 92, 0.22), transparent 70%),
    radial-gradient(34% 46% at 74% 62%, rgba(163, 50, 52, 0.32), transparent 70%),
    radial-gradient(26% 30% at 52% 18%, rgba(232, 180, 188, 0.08), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent 18%, #000 40%); mask-image: linear-gradient(180deg, transparent 18%, #000 40%);
  animation: glow-drift 18s ease-in-out infinite alternate; }
@keyframes glow-drift { 0% { transform: translate(-3%, 0) scale(1); } 50% { transform: translate(2%, -3%) scale(1.06); } 100% { transform: translate(4%, 2%) scale(1.02); } }
/* fine film grain so the gradient never bands */
.intro__glow::after { content: ""; position: absolute; inset: 0; opacity: 0.08; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--adire); background-size: 56px 56px; opacity: 0.5; -webkit-mask-image: radial-gradient(70% 90% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 90% at 50% 40%, #000, transparent); }
.intro::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(520px, 70%); height: 2px; translate: -50% 0; background: linear-gradient(90deg, transparent, var(--brass), var(--pink), var(--red), transparent); opacity: 0.8; }
.intro__eyebrow { color: var(--brass-2); }
.intro__eyebrow .sep { background: rgba(230, 209, 154, 0.45); }
/* gold foil: ivory lettering with a band of brass that sweeps across */
.intro__title { background-image: linear-gradient(100deg, var(--on-dark) 0 34%, var(--brass-2) 42%, var(--brass) 48%, #fff7e0 52%, var(--brass) 56%, var(--on-dark) 64% 100%); filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.4)); }
/* a small brass ornament between the name and the line beneath it */
.intro__orn { display: flex; align-items: center; gap: 12px; margin-block: -2px 2px; }
.intro__orn span { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--brass)); }
.intro__orn span:last-child { background: linear-gradient(90deg, var(--brass), transparent); }
.intro__orn i { width: 7px; height: 7px; rotate: 45deg; border: 1px solid var(--brass); box-shadow: 0 0 12px rgba(207, 175, 92, 0.6); }
.intro__lead { color: var(--on-dark-2); }
.js .rise { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 0.15s); }
.js:not(.seen) .rise { animation-delay: calc(var(--d, 0) * 110ms + 1.2s); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- doors: look (layout is per device) ---------- */
.doorbar, .doors__hint, .dock { display: none; }
.door { position: relative; display: block; overflow: hidden; text-decoration: none; isolation: isolate; color: #fff; }
.door__media { position: relative; overflow: hidden; background: var(--indigo); }
.door--char .door__media { background: var(--navy-deep); }
.door__slides, .door__slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.door__slides img { object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity 1.4s ease, transform 7s linear, filter 0.6s; }
.door__slides img.is-on { opacity: 1; transform: scale(1); }
.door__shade { position: absolute; inset: 0; }
.door--biz .door__shade { background: linear-gradient(180deg, rgba(12, 20, 41, 0.15) 0%, rgba(12, 20, 41, 0.45) 45%, rgba(12, 20, 41, 0.94) 100%), var(--adire); background-size: auto, 56px 56px; }
.door--char .door__shade { background: linear-gradient(180deg, rgba(14, 35, 56, 0.1) 0%, rgba(14, 35, 56, 0.4) 45%, rgba(58, 18, 22, 0.92) 100%); }
.door__dots { position: absolute; top: 20px; right: 22px; z-index: 2; display: flex; gap: 6px; }
.door__dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.45); transition: width 0.4s var(--ease), background-color 0.4s; }
.door__dots span.is-on { width: 22px; background: #fff; }
.door__body { position: relative; z-index: 2; display: grid; gap: 14px; align-content: end; }
.door__kicker { display: flex; align-items: center; gap: 12px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.door--biz .door__kicker { color: var(--brass-2); }
.door--char .door__kicker { color: var(--pink); font-family: var(--work); }
.door__title { font-weight: 500; line-height: 1.02; max-width: 16ch; text-wrap: balance; }
.door--biz .door__title { font-family: var(--bodoni); letter-spacing: -0.01em; }
.door--biz .door__title em { color: var(--brass); }
.door--char .door__title { font-family: var(--news); letter-spacing: -0.015em; }
.door--char .door__title em { color: var(--pink); }
.door__title em { display: block; font-style: italic; }
.door__more { display: grid; }
.door__more-in { display: grid; gap: 12px; min-height: 0; overflow: hidden; }
.door__text { max-width: 46ch; color: rgba(255, 255, 255, 0.84); font-size: 1rem; }
.door--char .door__text { font-family: var(--work); }
.door__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.door__tags li { padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.door__cta { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.96rem; transition: gap 0.3s var(--ease), background-color 0.3s; }
.door--biz .door__cta { background: var(--brass); color: var(--indigo-deep); }
.door--char .door__cta { background: var(--red); color: #fff; font-family: var(--work); }
.door:hover .door__cta { gap: 16px; }
.door--biz:hover .door__cta { background: var(--brass-2); }
.door--char:hover .door__cta { background: var(--red-bright); }
.door:focus-visible { outline: 3px solid var(--brass); outline-offset: -6px; }
.door__cursor { display: none; }

.seam { position: relative; z-index: 5; }
.seam__knot { position: absolute; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.55); }
.seam__knot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid; border-color: var(--brass) var(--red) var(--red) var(--brass); opacity: 0.5; }
.seam__knot svg { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); overflow: visible; animation: spin 30s linear infinite; }
.seam__knot text { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; fill: var(--indigo); }
.seam__knot img { width: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ribbons (level since 7 Oct 2026) ---------- */
.ribbons { position: relative; z-index: 2; margin-top: 64px; display: grid; }
.ribbon { overflow: hidden; }
.ribbon__track { display: flex; align-items: center; width: max-content; animation: ribbon 55s linear infinite; }
.ribbon span { white-space: nowrap; padding: 14px 20px; font-style: italic; font-size: 1.3rem; }
.ribbon i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ribbon--biz { background: var(--indigo) var(--adire); background-size: 56px 56px; }
.ribbon--biz span { font-family: var(--bodoni); color: var(--brass-2); }
.ribbon--biz i { background: var(--brass); }
.ribbon--char { background: var(--cream) var(--dots); background-size: 26px 26px; border-block: 1px solid var(--line); }
.ribbon--char span { font-family: var(--news); color: var(--red); }
.ribbon--char i { background: var(--navy); }
.ribbon--char .ribbon__track { animation-direction: reverse; animation-duration: 48s; }
.ribbons:hover .ribbon__track { animation-play-state: paused; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- paths: one switch changes the whole section's character ---------- */
.paths {
  --bg: var(--indigo); --fg: var(--on-dark); --fg-2: var(--on-dark-2); --accent: var(--brass); --card: rgba(244, 240, 231, 0.05); --card-line: rgba(244, 240, 231, 0.14); --display: var(--bodoni); --body: var(--sans);
  position: relative; margin-top: -24px; padding: 120px var(--gutter);
  background-color: var(--bg); color: var(--fg); transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
  isolation: isolate;
}
.paths::before, .paths::after { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity 0.7s; pointer-events: none; }
.paths::before { background: var(--adire); background-size: 56px 56px; }
.paths::after { background: var(--dots); background-size: 26px 26px; opacity: 0; }
.paths[data-theme="char"] { --bg: var(--cream); --fg: var(--navy-deep); --fg-2: #4a443f; --accent: var(--red); --card: #fff; --card-line: rgba(42, 38, 36, 0.12); --display: var(--news); --body: var(--work); }
.paths[data-theme="char"]::before { opacity: 0; }
.paths[data-theme="char"]::after { opacity: 1; }
.paths__inner { max-width: var(--maxw); margin: 0 auto; }
.paths__head { display: grid; justify-items: center; text-align: center; gap: 16px; margin-bottom: 48px; }
.paths .eyebrow { color: var(--accent); transition: color 0.7s; }
.paths h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 1.3rem + 3vw, 4rem); line-height: 1.05; }
.paths h2 em { font-style: italic; color: var(--accent); transition: color 0.7s; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-top: 8px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 10%, transparent); border: 1px solid var(--card-line); }
.switch__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--accent); transition: transform 0.55s var(--spring), background-color 0.7s; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5); }
.paths[data-theme="char"] .switch__thumb { transform: translateX(100%); }
.switch__btn { position: relative; z-index: 1; min-width: 150px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: 0.96rem; color: var(--fg); transition: color 0.4s; }
.switch__btn[aria-selected="true"] { color: var(--indigo-deep); }
.paths[data-theme="char"] .switch__btn[aria-selected="true"] { color: #fff; }
.panel { display: grid; gap: 34px; }
.panel__lead { max-width: 60ch; margin: 0 auto; text-align: center; color: var(--fg-2); font-family: var(--body); font-size: 1.08rem; }
.panel.is-entering .card { animation: card-in 0.8s var(--ease) both; animation-delay: calc(var(--n) * 90ms + 60ms); }
.panel.is-entering .panel__lead { animation: rise 0.6s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(26px); } }
.card a { position: relative; display: grid; text-decoration: none; color: var(--fg); background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r); transition: transform 0.5s var(--ease), box-shadow 0.4s, background-color 0.7s, border-color 0.7s; }
.card__media { display: block; overflow: hidden; background: color-mix(in srgb, var(--fg) 10%, transparent); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card a:hover .card__media img { transform: scale(1.06); }
.card__body { display: grid; gap: 8px; align-content: start; }
.card__num { font-family: var(--display); font-style: italic; color: var(--accent); font-size: 1.05rem; transition: color 0.7s; }
.card__title { font-family: var(--display); font-weight: 500; line-height: 1.15; }
.card__text { color: var(--fg-2); font-family: var(--body); font-size: 0.97rem; }
.card__go { margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.93rem; color: var(--accent); transition: gap 0.3s var(--ease), color 0.7s; font-family: var(--body); }
.card a:hover .card__go { gap: 14px; }
.card__chev { display: none; color: var(--accent); }
.panel__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- story and route ---------- */
.story { padding: 120px var(--gutter) 100px; }
.story__head { max-width: 760px; margin: 0 auto 56px; display: grid; justify-items: center; text-align: center; gap: 16px; }
.story__head h2 { font-family: var(--bodoni); font-weight: 500; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.05; }
.story__head h2 em { display: block; font-family: var(--news); font-style: italic; color: var(--red); }
.story__head p:not(.eyebrow) { color: var(--ink-2); max-width: 60ch; }
.route { position: relative; max-width: var(--maxw); margin: 0 auto; }
.route__end { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--r); }
.route__end--biz { background: var(--indigo) var(--adire); background-size: 56px 56px; color: var(--on-dark); }
.route__end--char { background: #fff var(--dots); background-size: 26px 26px; color: var(--navy-deep); border: 1px solid var(--line); }
.route__pin { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.route__pin .i { width: 22px; height: 22px; }
.route__end--biz .route__pin { background: var(--brass); color: var(--indigo-deep); }
.route__end--char .route__pin { background: var(--red); color: #fff; }
.route__place { font-weight: 500; font-size: 1.6rem; line-height: 1.15; }
.route__end--biz .route__place { font-family: var(--bodoni); }
.route__end--char .route__place { font-family: var(--news); }
.route__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.route__end--biz .route__label { color: var(--brass); }
.route__end--char .route__label { color: var(--red); font-family: var(--work); }
.route__end ul { display: grid; gap: 8px; margin-top: 6px; }
.route__end li { padding-top: 8px; border-top: 1px solid; font-size: 0.97rem; }
.route__end--biz li { border-color: rgba(244, 240, 231, 0.14); }
.route__end--char li { border-color: var(--line); font-family: var(--work); }
.route__line { position: relative; }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__ghost { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route__path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 0)); vector-effect: non-scaling-stroke; }
.route__traveller { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 4px solid var(--brass); box-shadow: 0 0 0 6px rgba(207, 175, 92, 0.22); transform: translate(var(--tx, 0), var(--ty, 0)); opacity: 0; transition: opacity 0.4s, border-color 0.4s; }
.route__traveller.is-on { opacity: 1; }
.route__traveller.is-late { border-color: var(--red); box-shadow: 0 0 0 6px rgba(163, 50, 52, 0.18); }
.route__km { position: absolute; display: grid; justify-items: center; gap: 2px; text-align: center; color: var(--ink-2); font-size: 0.95rem; }
.route__km strong { font-family: var(--bodoni); font-weight: 500; font-size: 1.7rem; color: var(--ink); line-height: 1.1; }
.route__km span { font-family: var(--news); font-style: italic; color: var(--red); }

/* ---------- contact ---------- */
.contact { padding: 0 var(--gutter) 120px; }
.contact__head { max-width: var(--maxw); margin: 0 auto 36px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.contact__head h2 { font-family: var(--bodoni); font-weight: 500; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.05; }
.contact__head h2 em { font-family: var(--news); font-style: italic; color: var(--red); }
.contact__grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 22px; }
.ccard { position: relative; display: grid; gap: 16px; align-content: start; padding: 40px; border-radius: 24px; overflow: hidden; isolation: isolate; }
.ccard::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(460px circle at var(--gx, 50%) var(--gy, 50%), var(--glow), transparent 60%); }
.ccard:hover::before { opacity: 1; }
.ccard--biz { --glow: rgba(207, 175, 92, 0.2); background: var(--indigo) var(--adire); background-size: 56px 56px; color: var(--on-dark); }
.ccard--char { --glow: rgba(232, 180, 188, 0.45); background: var(--cream) var(--dots); background-size: 26px 26px; color: var(--navy-deep); border: 1px solid var(--line); }
.ccard__kicker { display: flex; align-items: center; gap: 12px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.ccard--biz .ccard__kicker { color: var(--brass); }
.ccard--char .ccard__kicker { color: var(--red); font-family: var(--work); }
.ccard h3 { font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.1; }
.ccard--biz h3 { font-family: var(--bodoni); }
.ccard--char h3 { font-family: var(--news); }
.ccard__list { display: grid; }
.ccard__list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; border-bottom: 1px solid; }
.ccard--biz .ccard__list a { border-color: rgba(244, 240, 231, 0.12); }
.ccard--char .ccard__list a { border-color: var(--line); font-family: var(--work); }
.ccard__list span { display: grid; gap: 1px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.ccard__list small { text-wrap: pretty; font-size: 1.02rem; font-weight: 500; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; color: var(--value); }
.ccard--biz { --label: var(--brass); --value: var(--on-dark); }
.ccard--char { --label: var(--red); --value: var(--navy-deep); }
.ccard__list .i { width: 20px; height: 20px; }
.ccard--biz .ccard__list .i { color: var(--brass); }
.ccard--char .ccard__list .i { color: var(--red); }
.ccard__list .chev { width: 16px; height: 16px; opacity: 0.5; transition: transform 0.25s var(--ease), opacity 0.25s; }
.ccard__list a:hover .chev { transform: translateX(4px); opacity: 1; }
.ccard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ccard--biz .btn--ghost { color: var(--brass-2); }
.ccard--char .btn--ghost { color: var(--navy); font-family: var(--work); }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; background: var(--indigo-deep); color: var(--on-dark-2); }
.foot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--adire); background-size: 56px 56px; opacity: 0.35; }
.foot > * { position: relative; z-index: 1; }
.foot__band { height: 6px; background: linear-gradient(90deg, var(--brass) 0 50%, var(--red) 50% 100%); }
.foot__inner { max-width: var(--maxw); margin: 0 auto; }
.foot__brand { display: grid; gap: 14px; align-content: start; }
.foot__logo { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--on-dark); justify-self: start; }
.foot__word { font-family: var(--bodoni); font-size: 1.9rem; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1; }
.foot__line { font-family: var(--news); font-size: 1.2rem; color: var(--brass-2); }
.foot__line em { color: var(--pink); }
.foot__note { font-size: 0.92rem; max-width: 40ch; }
.foot__col summary { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark); }
.foot__col summary::-webkit-details-marker { display: none; }
.foot__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.foot__col--char .foot__dot { background: var(--red); }
.foot__dot--both { background: linear-gradient(90deg, var(--brass) 50%, var(--red) 50%); }
.foot__col ul { display: grid; gap: 10px; margin-top: 16px; }
.foot__col a { color: var(--on-dark); text-decoration: none; position: relative; }
.foot__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.foot__col a:hover { color: var(--brass-2); }
.foot__col a:hover::after { transform: scaleX(1); }
.foot__col--char a:hover { color: var(--pink); }
.foot__giant {
  font-family: var(--bodoni); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; line-height: 0.8; text-align: center; white-space: nowrap; user-select: none;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 240, 231, 0.16);
  background: linear-gradient(90deg, rgba(207, 175, 92, 0.22), rgba(163, 50, 52, 0.22)); -webkit-background-clip: text; background-clip: text;
}
.foot__base { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0 28px; border-top: 1px solid rgba(244, 240, 231, 0.12); font-size: 0.86rem; }
.foot__credits summary { cursor: pointer; font-weight: 600; color: var(--on-dark); }
.foot__credits p { margin-top: 10px; max-width: 80ch; }
.foot__credits a { color: var(--brass-2); }
.foot__top { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; font-weight: 600; }
.foot__top .i { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.foot__top:hover .i { transform: translateY(-3px); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; animation-delay: 0s !important; }
  .js:not(.seen) .curtain { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .door__slides img { transform: none; }
  .ribbon__track, .intro__title, .intro__glow { animation: none; }
}
