/* ============================================================
   POLLOCK TAX & CONSULTING
   ============================================================ */

:root {
  --bg:           #FAFAF7;
  --bg-elev:      #F4F2EC;
  --bg-deep:      #ECEAE2;
  --ink:          #0A1226;
  --ink-2:        #2A3349;
  --ink-3:        #5A6478;
  --ink-4:        #8A93A6;
  --line:         #E2DED2;
  --line-2:       #D4CFC0;
  /* Official flag colors — U.S. "Old Glory" Blue/Red, Spain Red/Yellow.
     Used wherever a blue/red/yellow appears, so the palette stays true to the flags. */
  --accent:       #0A3161;   /* Old Glory Blue — PMS 282 C */
  --accent-hover: #B31942;   /* Old Glory Red  — PMS 193 C */

  --us-primary:   #0A3161;   /* Old Glory Blue */
  --us-soft:      rgba(10, 49, 97, 0.08);
  --us-border:    rgba(10, 49, 97, 0.25);
  --es-primary:   #AA151B;   /* Spanish flag red */
  --es-soft:      rgba(170, 21, 27, 0.08);
  --es-border:    rgba(170, 21, 27, 0.25);
  --es-gold:      #F1BF00;   /* Spanish flag yellow — emblem accent only */
  --both-primary: #6B4E8F;       
  --both-soft:    rgba(107, 78, 143, 0.08);
  --both-border:  rgba(107, 78, 143, 0.25);
  --prep-primary: #8A93A6;
  --prep-soft:    rgba(138, 147, 166, 0.08);
  --prep-border:  rgba(138, 147, 166, 0.25);

  --font-sans:  'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --grid-max:   1240px;
  --grid-pad:   clamp(20px, 4vw, 56px);
  --section-y:  clamp(80px, 11vw, 140px);

  --radius:     2px;
  --radius-md:  6px;
  --radius-lg:  12px;

  --ease:       cubic-bezier(.2,.7,.2,1);
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --t-fast:     180ms;
  --t-med:      320ms;
  --t-slow:     680ms;
}

[data-theme="dark"] {
  --bg:           #0A0E1A;
  --bg-elev:      #11162A;
  --bg-deep:      #060912;
  --ink:          #F5F1E8;
  --ink-2:        #DCD8CD;
  --ink-3:        #9AA3B5;
  --ink-4:        #5C667B;
  --line:         #1C2238;
  --line-2:       #2A3148;
  --accent:       #7AA0E0;
  --accent-hover: #E84757;

  --us-primary:   #7AA0E0;
  --us-soft:      rgba(122, 160, 224, 0.10);
  --us-border:    rgba(122, 160, 224, 0.30);
  --es-primary:   #E84757;
  --es-soft:      rgba(232, 71, 87, 0.10);
  --es-border:    rgba(232, 71, 87, 0.30);
  --both-primary: #B89FE0;
  --both-soft:    rgba(184, 159, 224, 0.10);
  --both-border:  rgba(184, 159, 224, 0.30);
  --prep-primary: #9AA3B5;
  --prep-soft:    rgba(154, 163, 181, 0.08);
  --prep-border:  rgba(154, 163, 181, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps anchored sections clear of the sticky header */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Skip link — first thing in the tab order, visible only when focused */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 16px; }
body { margin: 0; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

/* Keyboard focus. Everything interactive here is a custom-styled control, so
   the ring is defined once rather than left to each component. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
[data-theme="dark"] :focus-visible { outline-color: #7FA8D9; }
/* Pointer users keep the clean look; keyboard users always get the ring. */
:focus:not(:focus-visible) { outline: none; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .25; }

.container {
  max-width: var(--grid-max);
  margin-inline: auto;
  padding-inline: var(--grid-pad);
  position: relative;
  z-index: 2;
}

/* Section labels. Nudged up a size and to a bold weight so each section
   announces itself, while the uppercase tracking keeps them quiet enough
   not to compete with the display heading beneath. */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-block;
}

.section-rule { height: 1px; background: var(--line); margin: 0; border: 0; }

.display-1 {
  font-weight: 300;
  font-size: clamp(34px, 5.8vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.display-2 {
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0;
}

.body-lg {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
}

.body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

[data-bilingual] [data-lang] { display: none; }
html[lang="en"] [data-bilingual] [data-lang="en"],
html[lang="en"] .lang-toggle [data-lang="en"] { display: inline; }
html[lang="es"] [data-bilingual] [data-lang="es"],
html[lang="es"] .lang-toggle [data-lang="es"] { display: inline; }
[data-bilingual="block"] [data-lang] { display: none; }
html[lang="en"] [data-bilingual="block"] [data-lang="en"] { display: block; }
html[lang="es"] [data-bilingual="block"] [data-lang="es"] { display: block; }

/* NAV */
.nav {
  position: sticky; top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  display: inline-flex; 
  align-items: center; /* Ensures perfect vertical flex distribution */
  gap: 12px;
  color: var(--ink);
  line-height: 1;      /* Flattens any hidden text block line-height issues */
}
.logo-mark { width: 28px; height: 32px; flex: 0 0 auto; }
.logo-mark svg { width: 100%; height: 100%; fill: currentColor; }
.logo-word { font-weight: 500; font-size: 18px; letter-spacing: -0.018em; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav-link:hover { color: var(--accent-hover); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}
.mobile-nav-link[aria-current="page"] { color: var(--accent); }

.nav-controls { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--bg-elev); color: var(--accent-hover); }
.icon-btn svg { width: 16px; height: 16px; }

.menu-toggle {
  display: none;
}

/* Mobile Side Navigation Menu */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: var(--bg);
  border-left: 1px solid var(--line);
  z-index: 200;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  /* visibility:hidden takes the off-canvas links out of the tab order natively,
     so a keyboard user cannot land on a drawer they cannot see. */
  visibility: hidden;
  transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--t-med) var(--ease), visibility 0s;
}
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 199;
  display: none;
}
.mobile-drawer-overlay.is-open {
  display: block;
}
.mobile-drawer .close-btn {
  align-self: flex-end;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.mobile-nav-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
}
.lang-toggle button {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  position: relative;
  overflow: hidden;
}
.lang-toggle button .lang-label { display: inline-block; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.lang-toggle button .lang-flag {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  line-height: 1;
}
.lang-toggle button:hover .lang-label { opacity: 0; transform: translateY(-4px); }
.lang-toggle button:hover .lang-flag { opacity: 1; transform: translateY(0); }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-toggle button:not([aria-pressed="true"]):hover { color: var(--accent-hover); }

@media (max-width: 880px) { 
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.btn-primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--accent-hover); color: var(--accent-hover); }

/* Screen-reader-only text (skip links, live regions) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===== HAND-OFF BLOCK (intake summary the visitor can copy) ===== */
.btn-sm { padding: 8px 14px; font-size: 13px; gap: 8px; }
.btn-sm svg { width: 15px; height: 15px; }

.handoff {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  padding: 20px;
  text-align: left;
}
.handoff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.handoff-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.handoff-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.handoff-text {
  margin: 0;
  max-height: 230px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.handoff-hint { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }

/* Buttons that need to read as inline links */
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.linkish:hover { color: var(--accent-hover); }

[data-copy].is-copied, [data-copy-text].is-copied {
  border-color: var(--accent);
  color: var(--accent);
}
[data-copy].is-copy-failed, [data-copy-text].is-copy-failed {
  border-color: var(--es-primary);
  color: var(--es-primary);
}
.btn-arrow { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============ HERO with Design-First Image Grid ============ */
.hero {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(80px, 11vw, 130px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 4.5vw, 64px);
  align-items: center;
}
.hero-text .eyebrow { margin-bottom: 40px; }
/* The headline is set to break exactly on its three <br> lines. "handled with
   care," is the widest line in English and "resueltos en España." in Spanish,
   so the two languages get their own cap rather than one compromise size. */
.hero-headline { font-size: clamp(32px, 4.9vw, 68px); }
html[lang="es"] .hero-headline { font-size: clamp(30px, 4.4vw, 60px); }
.hero-sub { margin-top: 32px; max-width: 52ch; }
.hero-actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Editorial-led image mosaic showcase */
.hero-image-showcase {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  position: relative;
}
.showcase-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  filter: grayscale(0.1) contrast(1.02);
  transition: transform var(--t-slow) var(--ease-out), filter var(--t-med) var(--ease);
}
.showcase-img:hover {
  transform: scale(1.02);
  filter: grayscale(0);
}
.img-panel-1 {
  grid-column: 1 / span 8;
  grid-row: 1 / span 8;
  z-index: 2;
}
.img-panel-2 {
  grid-column: 5 / span 8;
  grid-row: 5 / span 8;
  z-index: 1;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-image-showcase {
    max-width: 380px;
    margin: 0 auto;
  }
}

/* SECTIONS */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.section-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: start;
}
.section-head .eyebrow { padding-top: 6px; }
.section-head .lede { max-width: 56ch; }

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  /* Add these two lines below to scale it down */
  max-width: 460px; /* Adjust this number to make it as small as you'd like */
  margin: 0 auto;   
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-portrait.no-image::after {
  content: "Portrait of Andy Pollock";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-4);
}
.about-bio p {
  color: var(--ink-2);
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
}
.about-bio p.lead {
  font-size: clamp(20px, 2vw, 24px);
  color: var(--ink);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.012em;
  margin-bottom: 28px;
}
.about-bio .signature { margin-top: 36px; font-size: 14px; color: var(--ink-3); }

/* The logo wall closes the About section rather than standing as its own
   band, so it sits tighter to the section edges than a full section would. */
.creds { margin-top: clamp(48px, 6vw, 68px); padding-top: 40px; border-top: 1px solid var(--line); }
#about { padding-bottom: clamp(44px, 5vw, 64px); }
.creds-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}

/* Static, borderless logo wall. Each cell is the same size; the per-logo cap
   below evens out the very different aspect ratios so nothing reads as louder
   than its neighbors. */
.creds-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 20px;
}
.cred-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20%;
  height: 62px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: default;
}
/* The source files are trimmed to their artwork, so a single height/width cap
   keeps every mark at roughly the same optical weight. */
.cred-item img {
  --cred-h: 32px;
  max-height: var(--cred-h);
  max-width: min(100%, 148px);
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(1) opacity(0.55);
  transition: filter var(--t-med) var(--ease);
}
/* Nearly every mark is dark artwork on transparency, so dark mode inverts the
   luminance rather than brightening it — SAP is already light and is exempt. */
[data-theme="dark"] .cred-item img { filter: grayscale(1) invert(1) opacity(0.62); }
[data-theme="dark"] .cred-item[data-logo="sap"] img { filter: grayscale(1) brightness(1.6) opacity(0.62); }
@media (hover: hover) {
  .cred-item:hover img { filter: grayscale(1) opacity(0.85); }
  [data-theme="dark"] .cred-item:hover img { filter: grayscale(1) invert(1) opacity(0.9); }
  [data-theme="dark"] .cred-item[data-logo="sap"]:hover img { filter: grayscale(1) brightness(1.6) opacity(0.9); }
}

/* The square marks need more height to match the wordmarks. */
.cred-item[data-logo="ey"] img             { --cred-h: 46px; }
.cred-item[data-logo="american-club"] img  { --cred-h: 58px; }
.cred-item[data-logo="sap"] img            { --cred-h: 34px; }

.cred-item span {
  color: var(--ink-4);
  white-space: nowrap;
}

@media (max-width: 880px) {
  .cred-item { flex-basis: 33.333%; }
}
@media (max-width: 520px) {
  .creds-grid { row-gap: 12px; }
  .cred-item { flex-basis: 50%; height: 60px; }
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============ WORKING TOGETHER ============ */
.commitments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.commitment {
  background: var(--bg);
  padding: 36px 32px;
}
.commitment-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 20px;
}
.commitment h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ink);
}
.commitment p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
}
@media (max-width: 880px) {
  .commitments { grid-template-columns: 1fr; }
  .commitment { padding: 28px 24px; }
}

/* ============ REFERENCE PAGES ============
   Shared by the resource teasers on the home page and by the standalone
   calendar / what's-new pages. */
.page-hero {
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { display: block; margin-bottom: 20px; }
.page-hero .display-1 { font-size: clamp(32px, 4.6vw, 62px); max-width: 20ch; }
.page-hero .lede { margin-top: 24px; max-width: 62ch; color: var(--ink-3); }
.page-hero + .section { padding-top: clamp(48px, 7vw, 88px); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--ink-3);
  transition: color var(--t-fast) var(--ease);
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 14px; height: 14px; flex-shrink: 0; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.resource-card {
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  border-right: 1px solid var(--line);
  transition: background var(--t-fast) var(--ease);
}
.resource-grid .resource-card:last-child { border-right: 0; }
.resource-card:hover { background: var(--bg-elev); }

.resource-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.resource-card h3 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}
.resource-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
  max-width: 46ch;
}
.resource-meta {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-3);
}
.resource-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--accent);
}
.resource-card:hover .resource-cta { color: var(--accent-hover); }
.resource-cta svg {
  width: 16px; height: 16px;
  transition: transform var(--t-fast) var(--ease);
}
.resource-card:hover .resource-cta svg { transform: translateX(4px); }

/* Single wide card used as the "next up" link at the foot of a reference page */
.next-up { padding-top: clamp(52px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.resource-card--wide {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  border-right: 1px solid var(--line);
}
.resource-card--wide .resource-cta { align-self: flex-start; }

@media (max-width: 880px) {
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .resource-grid .resource-card:last-child { border-bottom: 0; }
  .resource-card--wide { padding: 32px 24px; border-bottom: 1px solid var(--line); }
}

/* ============ UNIFIED OFFER ============ */
/* "Did you know?" stats strip */
.stats-strip {
  margin: 8px 0 clamp(48px, 6vw, 72px);
  padding: clamp(28px, 4vw, 40px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.stats-strip-head { max-width: 64ch; margin-bottom: 32px; }

/* Stats arrive in sequence once the strip is on screen. They start visible so
   that without JavaScript, or if the script fails, the figures still read. */
.stat { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
[data-stats].is-armed .stat { opacity: 0; transform: translateY(10px); }
[data-stats].is-armed .stat.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-stats].is-armed .stat { opacity: 1; transform: none; transition: none; }
}
.stats-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--es-primary);
  display: block;
  margin-bottom: 10px;
}
.stats-strip-head p { color: var(--ink-2); font-size: clamp(16px, 2vw, 19px); line-height: 1.5; margin: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.stat { border-top: 2px solid var(--accent); padding-top: 14px; }
.stat-num {
  display: block;
  font-weight: 300;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}
.stat-label { display: block; color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
.stats-source { margin: 28px 0 0; color: var(--ink-4); font-size: 12px; line-height: 1.5; }

/* ============ WHERE AMERICANS LIVE (choropleth) ============
   Geometry from Natural Earth (public domain), dissolved to autonomous
   communities. Figures are INE padrón 2022, the last full breakdown. */
.map-block { margin-top: clamp(48px, 6vw, 72px); }
.map-head { max-width: 62ch; margin-bottom: 32px; }
.map-head h3,
.offer-lead h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.map-head p,
.offer-lead p { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.6; }

/* Hands the reader from the map over to the profile tabs. Without it the tab
   column starts flush under the map legend and reads as part of it. */
.offer-lead {
  max-width: 62ch;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(40px, 5vw, 56px);
  margin-bottom: clamp(36px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.es-map { width: 100%; height: auto; display: block; }

/* One hue, five steps. Each path is stroked in its own fill so the province
   outlines inside a community disappear and the region reads as one shape. */
.es-step-0 path { fill: #DCDDD8; stroke: #DCDDD8; }
.es-step-1 path { fill: #C2CCDA; stroke: #C2CCDA; }
.es-step-2 path { fill: #8FA6C4; stroke: #8FA6C4; }
.es-step-3 path { fill: #4A719F; stroke: #4A719F; }
.es-step-4 path { fill: #0A3161; stroke: #0A3161; }
.es-region path { stroke-width: 1.6; stroke-linejoin: round; transition: opacity var(--t-fast) var(--ease); }
.es-inset { fill: none; stroke: var(--line-2); stroke-width: 1; }

[data-theme="dark"] .es-step-0 path { fill: #232A3B; stroke: #232A3B; }
[data-theme="dark"] .es-step-1 path { fill: #2E3E5C; stroke: #2E3E5C; }
[data-theme="dark"] .es-step-2 path { fill: #40608F; stroke: #40608F; }
[data-theme="dark"] .es-step-3 path { fill: #5C86BE; stroke: #5C86BE; }
[data-theme="dark"] .es-step-4 path { fill: #8FB4E4; stroke: #8FB4E4; }

/* Dim everything but the region being pointed at or focused */
.map-block.is-focusing .es-region path { opacity: 0.28; }
.map-block.is-focusing .es-region.is-active path { opacity: 1; }

.map-legend {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px;
}
.map-legend-label { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.map-swatch { width: 26px; height: 8px; border-radius: 1px; display: block; }
.map-swatch.es-step-0 { background: #DCDDD8; }
.map-swatch.es-step-1 { background: #C2CCDA; }
.map-swatch.es-step-2 { background: #8FA6C4; }
.map-swatch.es-step-3 { background: #4A719F; }
.map-swatch.es-step-4 { background: #0A3161; }
[data-theme="dark"] .map-swatch.es-step-0 { background: #232A3B; }
[data-theme="dark"] .map-swatch.es-step-1 { background: #2E3E5C; }
[data-theme="dark"] .map-swatch.es-step-2 { background: #40608F; }
[data-theme="dark"] .map-swatch.es-step-3 { background: #5C86BE; }
[data-theme="dark"] .map-swatch.es-step-4 { background: #8FB4E4; }

.map-table-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.map-list { list-style: none; margin: 0; padding: 0; }
.map-list li + li { margin-top: 2px; }
.map-row {
  display: grid;
  grid-template-columns: minmax(0, 8.5em) 1fr 2.6em;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 7px 8px;
  border-radius: var(--radius);
  text-align: left;
  transition: background var(--t-fast) var(--ease);
}
.map-row:hover, .map-row.is-active { background: var(--bg-elev); }
.map-row-name { font-size: 14px; color: var(--ink-2); }
.map-row-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.map-row-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
[data-theme="dark"] .map-row-bar > span { background: #5C86BE; }
.map-row-val { font-size: 13px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.map-row-rest { padding: 10px 8px 0; font-size: 13px; color: var(--ink-3); }
.map-source { margin: 20px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-3); }

@media (max-width: 880px) {
  .map-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats-grid { grid-template-columns: 1fr; } }

.offer-tabs-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.offer-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  position: sticky;
  top: 92px;
}
.offer-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.012em;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), padding var(--t-med) var(--ease);
  position: relative;
}
.offer-tab-divider {
  display: none;
  color: var(--line-2);
  padding: 0 10px;
  user-select: none;
}
.offer-tab::before {
  content: "";
  position: absolute;
  left: -16px; top: 50%;
  width: 8px; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-med) var(--ease);
}
.offer-tab:hover { color: var(--accent-hover); }
.offer-tab[aria-pressed="true"] {
  color: var(--ink);
  padding-left: 12px;
}
.offer-tab[aria-pressed="true"]::before { transform: scaleX(1); }

/* Right pane content */
.offer-pane {
  display: none;
  animation: offer-fade .5s var(--ease-out);
}
.offer-pane.is-active { display: block; }
@keyframes offer-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.offer-persona-head {
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.offer-persona-head h3 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
}
.offer-title-wrapper {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.offer-persona-head h3 .offer-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.offer-persona-head p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}
.offer-persona-head p em { font-style: italic; color: var(--ink); }

.offer-services-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.offer-services {
  display: grid;
  gap: 0;
}
/* Static rows: these list the filings a profile typically faces, so they
   read as a reference list rather than as links out to the agencies. */
.offer-service {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: inherit;
}
.offer-service:last-child { border-bottom: 1px solid var(--line); }
.offer-service-body { display: flex; flex-direction: column; gap: 6px; }
.offer-service-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.offer-service-forms {
  font-family: var(--font-sans); /* This switches it over to Satoshi */
  font-size: 12px;               /* Slightly bumped size to keep Satoshi readable */
  font-weight: 500;              /* Gives it a clean weight match */
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);           /* Slightly darker ink variable to help legibility */
}

.offer-cta {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.offer-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

@media (max-width: 880px) {
  .offer-tabs-wrap { grid-template-columns: 1fr; gap: 32px; }
  .offer-tabs {
    position: static;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--grid-pad));
    padding: 0 var(--grid-pad);
    gap: 0;
  }
  .offer-tabs::-webkit-scrollbar { display: none; }
  .offer-tab {
    border: 0;
    padding: 16px 0;
    grid-template-columns: auto;
    white-space: nowrap;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .offer-tab-divider {
    display: inline;
  }
  .offer-tab-divider:last-child {
    display: none;
  }
  .offer-tab::before { display: none; }
  .offer-tab[aria-pressed="true"] {
    padding-left: 0;
    color: var(--ink);
  }
}

/* PROCESS */
.process { background: var(--bg); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-step {
  padding: 44px 36px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: background var(--t-fast) var(--ease);
}
.process-step:last-child { border-right: 0; }
.process-step:hover { background: var(--bg-elev); }

.process-num {
  font-size: 40px;
  font-weight: 300;
  color: var(--ink-4);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 28px;
}
.process-step h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
  color: var(--ink);
}
.process-step p { color: var(--ink-3); font-size: 15px; line-height: 1.55; margin: 0; }

/* A single-weight line drawing per step, sitting at the foot of the card just
   above the duration. Purely decorative, so it inherits ink rather than accent
   and lifts a shade on hover with the rest of the cell. */
.process-art {
  margin-top: auto;
  padding-top: 32px;
  color: var(--ink-4);
  transition: color var(--t-med) var(--ease);
}
.process-art svg {
  display: block;
  width: 100%;
  max-width: 128px;
  height: auto;
}
.process-step:hover .process-art { color: var(--ink-3); }

.process-step .duration { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--ink-3); }
.process-art + .duration { margin-top: 0; padding-top: 20px; }

@media (max-width: 880px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }
  .process-step:last-child { border-bottom: 0; }
  .process-art { padding-top: 24px; }
  .process-art svg { max-width: 104px; }
}

/* ============ ONBOARDING FORM ============ */
.onboard { background: var(--bg-elev); }
.onboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) { .onboard-grid { grid-template-columns: 1fr; gap: 44px; } }

.onboard-side .body-lg { margin-top: 28px; }
.onboard-side ul {
  margin: 32px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.onboard-side li {
  font-size: 15px; color: var(--ink-2);
  display: flex; align-items: center; gap: 12px;
}
.onboard-side li::before {
  content: ""; width: 14px; height: 1px;
  background: var(--accent); display: inline-block;
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 44px);
}

.form-progress { display: flex; gap: 4px; margin-bottom: 32px; }
.form-progress span {
  flex: 1; height: 2px;
  background: var(--line);
  border-radius: 1px;
  position: relative; overflow: hidden;
}
.form-progress span::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.form-progress span.is-active::after { transform: scaleX(1); }

.form-step { display: none; animation: fadeUp .55s var(--ease-out) both; }
.form-step.is-active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  line-height: 1.25;
}
.form-step .step-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }

.field { margin-bottom: 22px; }
.field label,
.field .field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.input, .textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 12px 0;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color var(--t-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus { border-bottom-color: var(--accent); }
.textarea { resize: vertical; min-height: 90px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  user-select: none;
}
.chip:hover { border-color: var(--accent-hover); color: var(--accent-hover); }
.chip.is-selected { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.is-selected:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.toggle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.toggle-row:last-of-type { border-bottom: 1px solid var(--line); }
.toggle-row .label { font-size: 15px; color: var(--ink); line-height: 1.4; }
.toggle-row .help { font-size: 12px; color: var(--ink-4); margin-top: 3px; }

.yn {
  display: inline-flex; gap: 4px;
  background: var(--bg-elev);
  border-radius: 999px;
  padding: 3px;
}
.yn button {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: all var(--t-fast) var(--ease);
}
.yn button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.form-nav {
  display: flex; justify-between: space-between; align-items: center;
  margin-top: 36px;
  gap: 16px;
}
.form-nav .step-count { font-size: 13px; color: var(--ink-3); }

.form-success { display: none; animation: fadeUp .6s var(--ease-out); }
.form-success.is-visible { display: block; }
.form-success-head {
  text-align: center;
  padding: 24px 20px 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.form-success-head svg { margin: 0 auto 20px; width: 44px; height: 44px; color: var(--accent); }
.form-success-head h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.018em; margin: 0 0 10px; }
.form-success-head p { color: var(--ink-3); max-width: 40ch; margin: 0 auto; font-size: 15px; line-height: 1.5; }
.form-success-head p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-success-head p a:hover { color: var(--accent-hover); }
.form-success .calendar-wrap { margin-top: 20px; }
.form-success .calendar-intro { margin-bottom: 16px; font-size: 14px; color: var(--ink-2); }
.calendly-inline-widget {
  min-width: 280px;
  height: 680px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.calendar-fallback {
  padding: 32px 24px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink-3);
}
.calendar-fallback .btn { margin-top: 16px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 26px 0;
  text-align: left;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.faq-q:hover { color: var(--accent-hover); }
.faq-q .plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute;
  background: currentColor;
  transition: transform var(--t-med) var(--ease);
}
.faq-q .plus::before { width: 14px; height: 1px; }
.faq-q .plus::after  { width: 1px; height: 14px; }
.faq-item.is-open .faq-q .plus::after { transform: rotate(90deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med) var(--ease-out);
}
.faq-a > div { overflow: hidden; }
.faq-a-inner { padding: 0 0 26px; max-width: 64ch; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* Accordion-based prose (bio expander + "tax detail by situation") */
.bio-deeper { margin-top: 28px; }
.bio-deeper .faq-q,
.tax-detail .faq-q { font-size: 15px; font-weight: 500; }
.bio-deeper .faq-a-inner p,
.tax-detail .faq-a-inner p { margin: 0 0 14px; }
.bio-deeper .faq-a-inner p:last-child,
.tax-detail .faq-a-inner p:last-child { margin-bottom: 0; }

.tax-detail { margin-top: clamp(40px, 6vw, 64px); }
.tax-detail-head { max-width: 64ch; margin-bottom: 8px; }
.tax-detail-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.tax-detail-head h3 { font-size: clamp(20px, 3vw, 26px); font-weight: 500; letter-spacing: -0.015em; margin: 0 0 12px; color: var(--ink); }
.tax-detail-head p { color: var(--ink-3); font-size: 15px; line-height: 1.55; margin: 0; }

/* ============ TIMELINE ============ */
/* The tinted band dissolves into the page rather than ending on a hard edge,
   so the step down into the next section is a handoff rather than a cut. */
.timeline-section { background: var(--bg-elev); position: relative; }
.timeline-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(64px, 9vw, 120px);
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.timeline-section > .container { position: relative; z-index: 1; }

.tl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center; /* Add this line to center the items */
  margin-bottom: 40px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.tl-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tl-legend-swatch {
  width: 16px; height: 11px;
  border-radius: 1.5px;
  flex-shrink: 0;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(10,18,38,0.06);
}
.tl-legend-swatch--us    { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2011'%3E%3Crect%20width='16'%20height='11'%20fill='%23fff'/%3E%3Cg%20fill='%23B31942'%3E%3Crect%20width='16'%20height='1.57'/%3E%3Crect%20y='3.14'%20width='16'%20height='1.57'/%3E%3Crect%20y='6.28'%20width='16'%20height='1.57'/%3E%3Crect%20y='9.43'%20width='16'%20height='1.57'/%3E%3C/g%3E%3Crect%20width='7'%20height='6.28'%20fill='%230A3161'/%3E%3Cg%20fill='%23fff'%3E%3Ccircle%20cx='1.7'%20cy='1.4'%20r='.55'/%3E%3Ccircle%20cx='4.1'%20cy='1.4'%20r='.55'/%3E%3Ccircle%20cx='2.9'%20cy='3.4'%20r='.55'/%3E%3Ccircle%20cx='1.7'%20cy='5'%20r='.55'/%3E%3Ccircle%20cx='4.1'%20cy='5'%20r='.55'/%3E%3C/g%3E%3C/svg%3E"); }
.tl-legend-swatch--spain { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2011'%3E%3Crect%20width='16'%20height='11'%20fill='%23AA151B'/%3E%3Crect%20y='2.75'%20width='16'%20height='5.5'%20fill='%23F1BF00'/%3E%3C/svg%3E"); }
.tl-legend-swatch--prep  { background: var(--prep-primary); }
.tl-legend-swatch--both  { background: var(--both-primary); }

.serpentine-timeline {
  position: relative;
  padding: 24px 0 48px;
}

/* Two fixed lanes: U.S. obligations run down the left, Spanish ones down the
   right, so a reader can follow one jurisdiction without zig-zagging. The
   curves that used to link an alternating layout are gone; a single straight
   spine runs behind every row instead. */
.stl-columns-head {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  margin-bottom: 4px;
}
.stl-column-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.stl-column-label--us    { grid-column: 1; margin-right: 32px; color: var(--us-primary); }
.stl-column-label--spain { grid-column: 3; margin-left: 32px;  color: var(--es-primary); }

.serpentine-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  min-height: 140px;
  padding-bottom: 48px;
  position: relative;
}
.serpentine-row:last-child { padding-bottom: 0; min-height: 0; }
.serpentine-row::before {
  content: '';
  position: absolute;
  left: calc(50% - 0.5px);
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
  z-index: 0;
}
.stl-card--left {
  grid-column: 1;
  padding: 0 32px 0 0;
  justify-self: end;
  width: 100%;
}
.stl-card--right {
  grid-column: 3;
  padding: 0 0 0 32px;
  justify-self: start;
  width: 100%;
}
/* Prep windows are not a filing in either country, so they sit on the spine
   itself rather than claiming one of the two lanes. */
.serpentine-row--span {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 0;
}
.serpentine-row--span .stl-node { grid-column: 1; }
.stl-card--span {
  grid-column: 1;
  width: 100%;
  max-width: 560px;
  margin-top: 16px;
}

.stl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.stl-dot--us    { border-color: var(--us-primary);    background: var(--us-soft); }
.stl-dot--spain { border-color: var(--es-primary);    background: var(--es-soft); }
.stl-dot--prep  { border-color: var(--prep-primary);  background: var(--prep-soft); }
.stl-dot--both  { border-color: var(--both-primary);  background: var(--both-soft); }
.serpentine-row:hover .stl-dot { transform: scale(1.3); }

.stl-event {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px 20px 24px;
  transition: all var(--t-fast) var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.stl-event::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: var(--prep-primary);
}
.stl-event--us::before    { background: var(--us-primary); }
.stl-event--spain::before { background: var(--es-primary); }
.stl-event--prep::before  { background: var(--prep-primary); }
.stl-event--both::before  { background: var(--both-primary); }
.stl-event:hover {
  transform: translateY(-2px);
}
.stl-event--us:hover    { border-color: var(--us-border);    box-shadow: 0 4px 24px var(--us-soft); }
.stl-event--spain:hover { border-color: var(--es-border);    box-shadow: 0 4px 24px var(--es-soft); }
.stl-event--prep:hover  { border-color: var(--prep-border);  box-shadow: 0 4px 24px var(--prep-soft); }
.stl-event--both:hover  { border-color: var(--both-border);  box-shadow: 0 4px 24px var(--both-soft); }

.stl-event-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 1px solid;
}
.stl-event-flag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
}
.stl-event-flag--us    { color: var(--us-primary);    border-color: var(--us-border);    background: var(--us-soft); }
.stl-event-flag--us::before    { background: var(--us-primary); }
.stl-event-flag--spain { color: var(--es-primary);    border-color: var(--es-border);    background: var(--es-soft); }
.stl-event-flag--spain::before { background: var(--es-primary); }
.stl-event-flag--prep  { color: var(--prep-primary);  border-color: var(--prep-border);  background: var(--prep-soft); }
.stl-event-flag--prep::before  { background: var(--prep-primary); }
.stl-event-flag--both  { color: var(--both-primary);  border-color: var(--both-border);  background: var(--both-soft); }
.stl-event-flag--both::before  { background: var(--both-primary); }

/* Minimalist flag chips (styled like the emblem's flags, not emoji) carry the jurisdiction */
.stl-event-flag--us::before,
.stl-event-flag--spain::before {
  width: 15px; height: 10px;
  border-radius: 1.5px;
  background-color: transparent;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(10,18,38,0.06);
}
.stl-event-flag--us::before    { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2011'%3E%3Crect%20width='16'%20height='11'%20fill='%23fff'/%3E%3Cg%20fill='%23B31942'%3E%3Crect%20width='16'%20height='1.57'/%3E%3Crect%20y='3.14'%20width='16'%20height='1.57'/%3E%3Crect%20y='6.28'%20width='16'%20height='1.57'/%3E%3Crect%20y='9.43'%20width='16'%20height='1.57'/%3E%3C/g%3E%3Crect%20width='7'%20height='6.28'%20fill='%230A3161'/%3E%3Cg%20fill='%23fff'%3E%3Ccircle%20cx='1.7'%20cy='1.4'%20r='.55'/%3E%3Ccircle%20cx='4.1'%20cy='1.4'%20r='.55'/%3E%3Ccircle%20cx='2.9'%20cy='3.4'%20r='.55'/%3E%3Ccircle%20cx='1.7'%20cy='5'%20r='.55'/%3E%3Ccircle%20cx='4.1'%20cy='5'%20r='.55'/%3E%3C/g%3E%3C/svg%3E"); }
.stl-event-flag--spain::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2011'%3E%3Crect%20width='16'%20height='11'%20fill='%23AA151B'/%3E%3Crect%20y='2.75'%20width='16'%20height='5.5'%20fill='%23F1BF00'/%3E%3C/svg%3E"); }

.stl-event h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.3;
}
.stl-event p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}
.stl-event p em { font-style: italic; color: var(--ink-2); }
.stl-event .stl-forms {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-4);
}

.stl-node {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
  position: relative;
  z-index: 2;
  gap: 8px;
}
.stl-date-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid;
}
.stl-date-label--us    { color: var(--us-primary);   border-color: var(--us-border);   background: var(--us-soft); }
.stl-date-label--spain { color: var(--es-primary);   border-color: var(--es-border);   background: var(--es-soft); }
.stl-date-label--prep  { color: var(--prep-primary); border-color: var(--prep-border); background: var(--prep-soft); }
.stl-date-label--both  { color: var(--both-primary); border-color: var(--both-border); background: var(--both-soft); }

.stl-events-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 720px) {
  .serpentine-timeline { padding: 12px 0 32px; }
  .stl-columns-head { display: none; }
  .serpentine-row,
  .serpentine-row--span {
    grid-template-columns: 28px 1fr;
    justify-items: stretch;
    gap: 16px;
    min-height: auto;
    padding-bottom: 0;
    margin-bottom: 16px;
  }
  .serpentine-row::before {
    left: 13px;
  }
  .stl-card--left,
  .stl-card--right,
  .stl-card--span {
    grid-column: 2;
    padding: 0;
    width: 100%;
    max-width: none;
    margin-top: 0;
  }
  .stl-node,
  .serpentine-row--span .stl-node {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    padding-top: 14px;
    gap: 0;
  }
  .stl-node .stl-date-label { display: none; }
  .stl-event { padding: 18px 18px 18px 22px; }
  .stl-event-flag {
    margin-bottom: 8px;
  }
  .stl-event[data-date]::after {
    content: attr(data-date);
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
}

/* ============ WHAT'S NEW ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.news-item {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background var(--t-fast) var(--ease);
  position: relative;
  overflow: hidden;
}
.news-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--prep-primary);
}
.news-item--us::before    { background: var(--us-primary); }
.news-item--spain::before { background: var(--es-primary); }
.news-item--both::before  { background: var(--both-primary); }
.news-item:hover { background: var(--bg-elev); }

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
}
.news-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
}
.news-tag--us    { color: var(--us-primary);   border-color: var(--us-border);   background: var(--us-soft); }
.news-tag--us::before    { background: var(--us-primary); }
.news-tag--spain { color: var(--es-primary);   border-color: var(--es-border);   background: var(--es-soft); }
.news-tag--spain::before { background: var(--es-primary); }
.news-tag--both  { color: var(--both-primary); border-color: var(--both-border); background: var(--both-soft); }
.news-tag--both::before  { background: var(--both-primary); }

.news-date {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-4);
}
.news-item h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.014em;
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.3;
}
.news-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}
.news-item p em { font-style: italic; color: var(--ink-2); }

@media (max-width: 960px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-item { padding: 26px 22px; }
}

.timeline-note {
  color: var(--ink-3);
  font-size: 14px;
  max-width: 64ch;
  font-style: italic;
  text-align: center;   /* Centers the text lines inside the block */
  margin-inline: auto;  /* Centers the 64ch bounding box on the page */
}

/* CTA strip */
.cta-strip {
  padding: clamp(60px, 9vw, 110px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-strip-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}
.cta-strip h2 { max-width: 20ch; }
@media (max-width: 720px) { .cta-strip-grid { grid-template-columns: 1fr; } }

/* FOOTER */
.footer { padding: 72px 0 32px; background: var(--bg); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-lockup-link { display: inline-block; margin-bottom: 20px; }
.footer-lockup { width: 230px; max-width: 70vw; height: auto; display: block; }
.footer-lockup--dark { display: none; }
[data-theme="dark"] .footer-lockup--light { display: none; }
[data-theme="dark"] .footer-lockup--dark { display: block; }
.lockup-fallback { display: none; }
.footer-lockup-link.lockup-failed .footer-lockup { display: none !important; }
.footer-lockup-link.lockup-failed .lockup-fallback { display: inline-flex; }
.footer-brand p { color: var(--ink-3); font-size: 14px; max-width: 36ch; line-height: 1.55; margin: 0; }
.footer-col h3 { font-size: 13px; color: var(--ink); margin: 0 0 16px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--ink-3); font-size: 14px; transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--accent-hover); }
.footer-social {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.footer-social svg {
  width: 16px; height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
  transition: transform var(--t-fast) var(--ease);
}
.footer-social:hover svg { transform: translateY(-1px); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
}

@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* POLICY MODAL */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  background: color-mix(in oklab, var(--bg-deep) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: stretch; justify-content: flex-end;
}
.modal.is-open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  width: min(760px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  animation: slideIn .35s var(--ease-out);
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.modal-head {
  padding: 24px 36px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  gap: 16px;
}
.modal-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.modal-tabs button {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: all var(--t-fast) var(--ease);
}
.modal-tabs button:hover { color: var(--accent-hover); }
.modal-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.modal-body { padding: 36px; overflow-y: auto; flex: 1; }
.modal-body h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 6px; }
.modal-body .updated { font-size: 12px; color: var(--ink-4); margin-bottom: 32px; }
.modal-body h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 28px 0 10px;
  letter-spacing: .04em;
  color: var(--ink);
  text-transform: uppercase;
}
.modal-body p { font-size: 14px; line-height: 1.7; color: var(--ink-2); margin: 0 0 12px; }
.modal-body ul { font-size: 14px; line-height: 1.7; color: var(--ink-2); padding-left: 18px; margin: 0 0 12px; }
.modal-body li { margin-bottom: 6px; }
.modal-body em { font-style: italic; color: var(--ink); }

.modal-pane { display: none; }
.modal-pane.is-active { display: block; }

@media (max-width: 720px) {
  .modal-panel { width: 100%; border-left: 0; }
  .modal-head { padding: 18px 20px; flex-direction: column; align-items: flex-start; }
  .modal-body { padding: 24px 20px; }
}

/* COOKIE BANNER */
.cookies {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 520px;
  z-index: 90;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  box-shadow: 0 8px 30px color-mix(in oklab, var(--ink) 8%, transparent);
  display: none;
  animation: fadeUp .4s var(--ease-out);
}
.cookies.is-visible { display: block; }
.cookies-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cookies-actions button {
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.cookies-actions button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cookies-actions button:hover { border-color: var(--accent-hover); color: var(--accent-hover); }
.cookies-actions button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

/* SCROLL ANIMATIONS */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* FOOTER THEME TOGGLE */
.footer-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  color: var(--ink-3);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.footer-theme-toggle:hover { border-color: var(--line-2); color: var(--ink); background: var(--bg-elev); }
.footer-theme-toggle svg { width: 13px; height: 13px; flex-shrink: 0; }
.footer-theme-toggle .moon { display: none; }
.footer-theme-toggle .sun  { display: block; }
[data-theme="dark"] .footer-theme-toggle .sun  { display: none; }
[data-theme="dark"] .footer-theme-toggle .moon { display: block; }

.theme-toggle { display: none; }

/* ============================================================
   POLLOCKTAX PREMIUM INTERACTIVE OPENER
   ============================================================ */

body.opener-active {
  overflow: hidden !important;
}

.opener-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #FAFAF7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fluid WebGL/Canvas layer setup */
.opener-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.opener-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  padding-inline: clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.opener-headline-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr; 
  align-items: center;
  width: 100%;
  max-width: 1340px;
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #0A1226;
  line-height: 1.2;
  opacity: 0; /* Changed from 1 to 0 so it starts hidden */
  transform: translateY(0);
  /* You can change 0.5s to 0.2s below to make it appear even faster */
  transition: opacity 0.55s ease, transform 0.3s ease; 
  padding-inline: clamp(20px, 5vw, 60px);
}

.opener-static {
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.opener-static.align-left {
  justify-self: start;
  text-align: left;
}

.opener-static.align-right {
  justify-self: end;
  text-align: right;
}

.opener-center-group {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.opener-connector {
  color: #5A6478;
  font-style: italic;
  font-weight: 300;
  white-space: nowrap;
}

.opener-rotator {
  display: inline-block;
  vertical-align: middle;
  height: 64px;
  overflow: hidden;
  position: relative;
  min-width: 320px;
  border-left: 1px solid rgba(138, 147, 166, 0.3);
  padding-left: 24px;
}

.rotator-inner {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.rotator-inner span {
  display: block;
  height: 64px;
  line-height: 64px;
  font-weight: 700;
  color: #0A3161;
  text-align: left;
}

.opener-skip {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 4vw, 40px);
  bottom: clamp(20px, 4vw, 36px);
  padding: 8px 16px;
  border: 1px solid rgba(10, 18, 38, 0.14);
  border-radius: 999px;
  background: transparent;
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: .04em;
  color: #5A6478;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.opener-skip:hover { color: #0A1226; border-color: rgba(10, 18, 38, 0.3); }

.opener-brand-reveal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.opener-brand-reveal.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.opener-lockup {
  width: min(440px, 80vw);
  height: auto;
  animation: logoPulse 2s ease-in-out infinite alternate;
}
.opener-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.opener-logo {
  height: 80px;
  width: auto;
  animation: logoPulse 2s ease-in-out infinite alternate;
}

.opener-brand-text {
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0;
  color: #0A1226;
}

@keyframes logoPulse {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

@media (max-width: 880px) {
  .opener-headline-wrap {
    display: flex; /* Overrides the desktop grid on mobile */
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .opener-center-group {
    flex-direction: column;
    gap: 8px;
  }
  .opener-static.align-left,
  .opener-static.align-right {
    justify-self: center;
    text-align: center;
  }
  .opener-rotator {
    min-width: 240px;
    height: 50px;
    border-left: none;
    padding-left: 0;
  }
  .rotator-inner span {
    height: 50px;
    line-height: 50px;
    text-align: center;
  }
}
