/* ==========================================================================
   SEO Cork — V2: the loud bits
   Intro, WebGL hero, ⌘K search, sound, fish portal, 3D coverflow, physics pit
   ========================================================================== */

/* ---------- Intro ---------- */
.is-intro, .is-intro body { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; clip-path: inset(0 0 0 0);
}
.intro-grid {
  position: absolute; inset: 0; opacity: .5;
  background:
    linear-gradient(color-mix(in srgb, var(--paper) 7%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 7%, transparent) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.intro-inner { position: relative; width: min(640px, calc(100vw - 32px)); display: grid; gap: 16px; }
.intro-label { font: 600 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.intro-search {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 500 clamp(17px, 2.4vw, 22px)/1 var(--f-mono);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 35%, transparent);
}
.intro-search svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; flex: none; }
.intro-caret { width: 2px; height: 22px; background: var(--ink); animation: caret 1s steps(1) infinite; margin-left: -8px; }
.intro-enter {
  margin-left: auto; padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--ink);
  font: 600 12px/1 var(--f-mono); opacity: 0;
}
.intro-results { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ir {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 8%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 10%, transparent);
}
.ir b { font: 600 12px/1 var(--f-mono); color: color-mix(in srgb, var(--paper) 50%, transparent); }
.ir span { display: grid; gap: 7px; }
.ir i { display: block; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--paper) 18%, transparent); }
.ir-you { background: var(--gold); color: var(--on-gold); border-color: var(--gold); position: relative; z-index: 2; }
.ir-you b { color: var(--on-gold); }
.ir-you span { gap: 2px; }
.ir-you em { font: normal 500 11px/1 var(--f-mono); }
.ir-you strong { font-size: 18px; letter-spacing: -.02em; }
.intro-meta { font: 500 13px/1.4 var(--f-mono); color: color-mix(in srgb, var(--paper) 55%, transparent); }
.intro-count { color: var(--gold); font-weight: 600; }
.intro-flood { position: absolute; inset: 0; z-index: 3; background: var(--gold); opacity: 0; visibility: hidden; display: grid; place-items: center; overflow: hidden; }
.intro-skip {
  position: absolute; right: 20px; bottom: 20px; z-index: 4; background: none; border: 1.5px solid color-mix(in srgb, var(--paper) 30%, transparent);
  color: var(--paper); font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; cursor: pointer;
}
.intro-skip:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Hero WebGL field ---------- */
/* Background layers must ignore the global `section > *` max-width cap */
.hero > .hero-gl, .hero > .hero-blob { max-width: none; margin: 0; }
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* Let the composition grow with large screens instead of huddling in the middle */
@media (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-inline: clamp(24px, 5vw, 120px);
    height: 100svh; min-height: 640px; padding-top: clamp(96px, 12svh, 140px); padding-bottom: clamp(32px, 6svh, 64px);
  }
  .hero-copy { max-width: min(880px, 48vw); }
  .hero-stage { max-width: min(700px, 40vw, 64svh); }
  .hero-title { font-size: clamp(48px, min(7.2vw, 12.5svh), 156px); }
  .kicker { margin-bottom: clamp(14px, 3svh, 28px); }
  .hero-lede { margin-top: clamp(18px, 3.4svh, 32px); }
  .hero-actions { margin-top: clamp(20px, 3.6svh, 36px); }
  .hero-proof { margin-top: clamp(18px, 3.6svh, 40px); }
}
.hero-stage { perspective: 1200px; }

/* ---------- Black hero ----------
   Swapping the paper/ink tokens inside the hero turns every white surface
   black and every black line light, while gold stays gold. */
.hero {
  --paper: #121211;
  --paper-2: #1F1F1D;
  --ink: #F1ECE2;
  --ink-2: #D8D2C6;
  --muted: #9C968B;
  background: var(--paper); color: var(--ink);
  border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
}
.hero .hero-title em { color: var(--gold); }
.hero .kicker { background: var(--paper); }
.hero .kicker .dot { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--gold); }
.hero .hero-lede, .hero .hero-proof { text-shadow: 0 0 20px var(--paper), 0 0 8px var(--paper); }
.hero .hero-proof li::before {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23121211' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* Gold buttons keep dark text */
.hero .btn-gold { --fg: var(--on-gold); --fill: #F1ECE2; border-color: var(--gold); }
.hero .btn-gold:hover, .hero .btn-gold:focus-visible { color: #121211; }
.hero .btn-line { border-color: rgba(241, 236, 226, .5); }

/* Results card: black glass with a gold offset shadow */
.hero .serp {
  background: #171716; border-color: rgba(241, 236, 226, .7);
  box-shadow: 10px 12px 0 var(--gold), 0 40px 90px rgba(0, 0, 0, .55);
}
.hero .serp-bar { border-color: rgba(241, 236, 226, .35); background: #121211; }
.hero .serp-row { background: #222220; }
.hero .serp-row.is-you { background: var(--gold); color: var(--on-gold); border-color: var(--gold); box-shadow: 0 0 40px rgba(234, 170, 44, .35); }
.hero .serp-row.is-you b, .hero .serp-row.is-you .you-stars small { color: var(--on-gold); }
.hero .serp-tag { background: #121211; color: var(--gold); border: 1.5px solid var(--gold); }


.hero .scroll-cue { color: var(--muted); }

/* Nav goes dark while it sits over the hero */
.nav.on-dark {
  --paper: #121211; --ink: #F1ECE2; --muted: #B5AFA4;
  color: var(--ink); border-color: rgba(241, 236, 226, .16);
}
.nav.on-dark .nav-cta { --fill: var(--gold); }
.nav.on-dark .nav-cta:hover, .nav.on-dark .nav-cta:focus-visible { color: var(--on-gold); }
.nav.on-dark .nav-search { background: rgba(241, 236, 226, .06); }
.nav.on-dark .nav-search kbd { background: var(--gold); color: var(--on-gold); }
.nav.on-dark .nav-toggle { background: var(--gold); }
.nav.on-dark .nav-toggle i { background: var(--on-gold); }
.nav { transition: transform .5s var(--ease), background-color .4s, color .4s, border-color .4s; }

/* ---------- Nav search + sound ---------- */
.nav-links { margin-left: auto; }
.nav-search {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); background: color-mix(in srgb, var(--paper) 60%, transparent);
  font: 500 14px/1 var(--f-display); color: var(--muted); cursor: pointer; transition: border-color .25s, color .25s;
}
.nav-search:hover { border-color: var(--ink); color: var(--ink); }
.nav-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.nav-search kbd { font: 600 11px/1 var(--f-mono); padding: 5px 7px; border-radius: 6px; background: var(--ink); color: var(--paper); }
.nav-sound {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); background: none; cursor: pointer;
}
.nav-sound i { width: 3px; height: 4px; border-radius: 2px; background: var(--ink); }
.nav-sound[aria-pressed="true"] { background: var(--gold); border-color: var(--ink); }
.nav-sound[aria-pressed="true"] i { animation: eq .9s ease-in-out infinite; }
.nav-sound[aria-pressed="true"] i:nth-of-type(2) { animation-delay: -.3s; }
.nav-sound[aria-pressed="true"] i:nth-of-type(3) { animation-delay: -.6s; }
.nav-sound[aria-pressed="true"] i:nth-of-type(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@media (max-width: 1180px) { .ns-label { display: none; } }
@media (max-width: 900px) {
  .nav { gap: 8px; }
  .nav-search { margin-left: auto; padding: 0; width: 42px; height: 42px; justify-content: center; flex: none; }
  .nav-search kbd { display: none; }
  .nav-toggle { margin-left: 0; }
}

/* ---------- ⌘K palette ---------- */
.palette {
  width: min(680px, calc(100vw - 24px)); max-height: min(640px, 80vh); margin: 10vh auto auto; padding: 0;
  border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); color: var(--ink);
  box-shadow: 12px 14px 0 var(--ink); overflow: hidden;
}
.palette[open] { display: flex; flex-direction: column; }
.palette::backdrop { background: rgba(21, 21, 20, .55); backdrop-filter: blur(6px); }
.pl-bar { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.pl-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; flex: none; }
.pl-bar input { flex: 1; border: 0; background: none; font: 500 20px var(--f-display); color: var(--ink); outline: none; min-width: 0; }
.pl-bar input::-webkit-search-cancel-button { display: none; }
.pl-bar kbd { font: 600 11px/1 var(--f-mono); padding: 6px 8px; border-radius: 6px; border: 1.5px solid var(--ink); }
.pl-meta { padding: 12px 22px 0; font: 500 12px/1 var(--f-mono); color: var(--muted); min-height: 24px; margin: 0; }
.pl-list { list-style: none; margin: 0; padding: 8px 10px 14px; overflow: auto; }
.pl-list [role=option] { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 14px 12px; border-radius: 14px; cursor: pointer; }
.pl-list [role=option][aria-selected=true] { background: var(--gold); }
.pl-rank { font: 700 14px/1.4 var(--f-mono); }
.pl-body { display: grid; gap: 3px; }
.pl-crumb { font: 500 12px/1.3 var(--f-mono); color: var(--muted); }
[aria-selected=true] .pl-crumb { color: var(--ink-2); }
.pl-title { font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.pl-snip { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.pl-list mark { background: color-mix(in srgb, var(--gold) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
[aria-selected=true] mark { background: var(--paper); }
.pl-suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; }
.pl-suggest span { font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 4px; }
.pl-suggest button { border: 1.5px solid var(--ink); background: none; border-radius: 999px; padding: 8px 12px; font: 500 14px var(--f-display); cursor: pointer; color: var(--ink); }
.pl-suggest button:hover { background: var(--ink); color: var(--paper); }
.pl-empty { padding: 18px 14px 22px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pl-empty strong { color: var(--ink); font-size: 18px; }

/* ---------- Portal ---------- */
.portal { position: relative; height: 100svh; background: var(--ink); overflow: hidden; color: var(--paper); }
.portal-pin { position: relative; height: 100svh; display: grid; place-items: center; }
.portal-top {
  position: absolute; top: clamp(84px, 10vh, 110px); left: 50%; translate: -50% 0; margin: 0; white-space: nowrap;
  display: flex; align-items: center; gap: 16px; font: 600 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
}
.portal-top i { width: 120px; height: 2px; background: linear-gradient(90deg, rgba(241, 236, 226, .3), var(--gold)); }
.portal-top span:last-child { color: var(--gold); }
.portal-ring { position: absolute; width: min(84vw, 58svh); aspect-ratio: 1; }
.portal-ring svg { width: 100%; height: 100%; overflow: visible; }
.portal-ring text { font: 600 21px var(--f-mono); letter-spacing: .32em; text-transform: uppercase; fill: rgba(241, 236, 226, .55); }
.portal-fish-wrap { width: min(50vw, 44svh); transform-origin: 59% 50%; will-change: transform; position: relative; z-index: 2; }
.portal-fish { width: 100%; height: auto; fill: var(--gold); stroke: var(--ink); stroke-width: 1.2; overflow: visible; }
.portal-line {
  position: absolute; bottom: clamp(36px, 7vh, 80px); margin: 0; text-align: center; padding: 0 16px;
  font-size: clamp(40px, 6vw, 96px); font-weight: 750; letter-spacing: -.045em; line-height: 1;
}
.portal-line em { font-family: var(--f-serif); font-weight: 400; font-style: italic; color: var(--gold); letter-spacing: -.01em; }

/* ---------- Services: horizontal 3D coverflow (desktop) ---------- */
.svc-count { display: none; }
.services.is-h { height: 100svh; padding-top: clamp(96px, 12vh, 130px); padding-bottom: 40px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); }
.services.is-h > * { max-width: none; margin-left: 0; margin-right: 0; }
.services.is-h .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 3vh; }
.services.is-h .section-head .eyebrow { position: absolute; top: clamp(70px, 9vh, 100px); }
.services.is-h .section-head h2 { font-size: clamp(40px, 4.6vw, 78px); max-width: 16ch; }
.services.is-h .svc-count {
  display: flex; align-items: flex-start; margin: 0; overflow: hidden;
  font-size: clamp(90px, 11vw, 190px); font-weight: 800; letter-spacing: -.07em; line-height: .8; font-variation-settings: "opsz" 96, "wdth" 75;
}
.services.is-h .svc-count b { display: inline-block; font-weight: 800; }
.services.is-h .svc-count span { font-size: .32em; margin-top: .14em; color: var(--muted); letter-spacing: -.02em; }
.services.is-h .cards { position: relative; display: flex; gap: 28px; width: max-content; align-self: center; justify-self: start; padding-left: 20vw; transform-style: preserve-3d; }
.services.is-h .card { width: clamp(340px, 28vw, 440px); min-height: min(54vh, 480px); padding: 40px 36px 32px; will-change: transform; }
.services.is-h .card h3 { font-size: clamp(30px, 2.6vw, 42px); }
.services.is-h .card:hover { translate: none; }

/* ---------- Page Two pit ---------- */
.pit { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.pit > * { margin: 0; max-width: none; }
.pit-head { justify-self: end; max-width: 520px; }
.pit-head h2 { font-size: clamp(48px, 6vw, 104px); margin-bottom: 22px; }
.pit-head h2 em { color: var(--gold); }
.pit-sub { color: rgba(241, 236, 226, .72); max-width: 40ch; }
.pit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.pit .btn-gold { border-color: var(--gold); --fill: var(--paper); }
.pit .btn-gold:hover { color: var(--ink); }
.pit .btn[disabled] { opacity: .6; cursor: progress; }
.pit-status { font: 500 13px/1.4 var(--f-mono); color: var(--gold); max-width: 30ch; }
.pit-box {
  position: relative; height: min(78vh, 680px); border-radius: 28px; overflow: hidden; touch-action: pan-y;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(234, 170, 44, .22), transparent 60%),
    #1E1E1C;
  border: 1.5px solid rgba(241, 236, 226, .14);
  max-width: 900px; width: 100%;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.pit-box.is-grabbing { cursor: grabbing; }
.pit-floor-label {
  position: absolute; left: 22px; top: 18px; font: 600 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(241, 236, 226, .4);
}
.pit-cleared {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px;
  font-size: clamp(26px, 3vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; opacity: 0; transition: opacity .6s .2s;
}
.pit-cleared em { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--gold); }
.pit.is-clear .pit-cleared { opacity: 1; }
.pit-list { list-style: none; margin: 0; padding: 0; }
.pill {
  --pop: 1;
  position: absolute; left: 0; top: 0; transform: translate(-999px, -999px);
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 16px 24px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: clamp(15px, 1.3vw, 19px); font-weight: 700; letter-spacing: -.02em; line-height: 1;
  border: 2px solid var(--paper); will-change: transform; transition: background .35s, color .35s, border-color .35s;
}
.pill > * { scale: var(--pop); display: inline-block; }
.pill-ink { background: #1E1E1C; color: var(--paper); border-color: rgba(241, 236, 226, .6); }
.pill-lee { background: var(--lee); color: var(--paper); border-color: var(--lee); }
.pill-big { font-size: clamp(20px, 1.9vw, 28px); padding: 20px 30px; }
.pill-round { width: 86px; height: 86px; padding: 0; font: 800 26px/1 var(--f-mono); }
.pill-char { width: 82px; height: 150px; padding: 0; border-radius: 40px; background: var(--gold); border-color: var(--gold); overflow: hidden; }
.pill-charhost { position: absolute; inset: -4px -22px; display: block; }
.pill.is-fixed { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.pill-t { pointer-events: none; }
/* No physics (reduced motion / no Matter): a tidy cloud of tags */
.pit-static .pit-box { height: auto; padding: 60px 24px 28px; cursor: default; }
.pit-static .pit-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pit-static .pill { position: relative; transform: none; }
.pit-static .pill-char, .pit-static .pit-cleared { display: none; }
@media (max-width: 900px) {
  .pit { grid-template-columns: 1fr; }
  .pit-head { justify-self: start; }
  .pit-box { height: 70vh; }
  .pill { padding: 12px 16px; }
  .pill-big { padding: 14px 20px; }
  .pill-round { width: 64px; height: 64px; font-size: 20px; }
  .pill-char { width: 62px; height: 112px; }
}

/* Hero without the character: the results card owns the stage */
.hero .hero-stage { aspect-ratio: auto; display: grid; align-items: center; }
.hero .serp { position: relative; top: auto; right: auto; width: 100%; }

/* Stretched link for the home service cards */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--gold); outline-offset: 4px; }
.local-more { margin-top: 28px; }

/* ---------- Shared multi-page footer ---------- */
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 56px);
  padding-top: 56px; border-top: 1.5px solid rgba(241, 236, 226, .18);
}
.footer .fg-col { display: block; }
.fg-h { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.fg-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fg-locs ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.fg-col a { color: rgba(241, 236, 226, .78); text-decoration: none; font-size: 15px; transition: color .2s; }
.fg-col a:hover { color: var(--gold); }
.fg-brand address { font-style: normal; color: rgba(241, 236, 226, .7); line-height: 1.8; margin-bottom: 20px; }
.fg-brand address a { color: var(--gold); }
.nav-links a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 10%, transparent); font-weight: 650; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Logo ---------- */
.brand { gap: 0; }
.brand-logo { display: block; height: clamp(30px, 2.8vw, 38px); width: auto; }
.nav.on-dark .brand-logo--light, .nav:not(.on-dark) .brand-logo--dark { display: none; }
.footer-word { justify-content: center; font-size: 0; margin-top: clamp(48px, 7vw, 96px); }
.footer-logo { width: min(100%, 760px); height: auto; }
.intro-flood img { width: min(64vw, 620px); height: auto; }

/* ---------- Cookie consent ---------- */
.cc-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 180; width: min(440px, calc(100vw - 32px));
  padding: 22px 22px 18px; border-radius: 22px; background: #121211; color: #F1ECE2;
  border: 1.5px solid rgba(241, 236, 226, .16); box-shadow: 8px 10px 0 var(--gold), 0 30px 80px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(24px); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.cc-banner.is-in { opacity: 1; transform: none; }
.cc-title { font-size: 21px; font-weight: 750; letter-spacing: -.03em; margin-bottom: 6px; }
.cc-text { font-size: 14.5px; line-height: 1.5; color: rgba(241, 236, 226, .78); }
.cc-text a, .cc-d-foot a { color: var(--gold); }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.cc-btn {
  padding: 13px 14px; border-radius: 999px; border: 2px solid currentColor; background: transparent; color: inherit;
  font: 650 15px/1 var(--f-display); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.cc-banner .cc-btn { border-color: rgba(241, 236, 226, .55); }
.cc-banner .cc-btn:hover, .cc-banner .cc-btn:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.cc-link { grid-column: 1 / -1; justify-self: center; margin-top: 4px; background: none; border: 0; color: rgba(241, 236, 226, .8); font: 500 14px var(--f-display); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
.cc-link:hover { color: var(--gold); }
.cc-dialog {
  width: min(560px, calc(100vw - 24px)); max-height: min(720px, 88vh); padding: 0; border: 2px solid var(--ink);
  border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 12px 14px 0 var(--gold);
}
.cc-dialog::backdrop { background: rgba(21, 21, 20, .55); backdrop-filter: blur(4px); }
.cc-form { padding: clamp(22px, 4vw, 34px); display: grid; gap: 14px; }
.cc-form h2 { font-size: 30px; letter-spacing: -.035em; }
.cc-d-sub { color: var(--ink-2); font-size: 15.5px; }
.cc-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; padding: 16px 0; border-top: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.cc-row label { font-weight: 700; font-size: 17px; }
.cc-row p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.cc-switch { position: relative; width: 52px; height: 30px; flex: none; margin-top: 2px; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch i { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: background .25s; }
.cc-switch i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.cc-switch input:checked + i { background: var(--ink); }
.cc-switch input:checked + i::after { transform: translateX(22px); background: var(--gold); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + i { opacity: .55; }
.cc-switch input:focus-visible + i { outline: 3px solid var(--gold); outline-offset: 3px; }
.cc-d-actions { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; margin-top: 6px; }
.cc-dialog .cc-btn { border-color: var(--ink); }
.cc-dialog .cc-btn:hover { background: var(--ink); color: var(--paper); }
.cc-btn-solid { background: var(--ink); color: var(--paper); }
.cc-btn-solid:hover { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--on-gold) !important; }
.cc-d-foot { font-size: 13.5px; color: var(--muted); }
.cc-d-foot a { color: var(--ink); }
@media (max-width: 520px) { .cc-d-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cc-banner { transition: none; } }

/* ---------- Footer legal row ---------- */
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer-legal p { margin: 0; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a, .footer-legal button { color: rgba(241, 236, 226, .65); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--gold); }

/* ---------- Legal pages & form notices ---------- */
.form-privacy { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.cta .form-privacy { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.form-privacy a, .cta .form-privacy a { color: inherit; text-decoration-color: var(--gold); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.legal-table { overflow-x: auto; border: 2px solid var(--ink); border-radius: 18px; }
.legal-table table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; line-height: 1.45; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.legal-table thead th { font: 600 11.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table code { white-space: nowrap; font: 500 13px var(--f-mono); background: color-mix(in srgb, var(--gold) 30%, transparent); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.legal-foot { margin-top: 3em; padding-top: 1.4em; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.legal-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legal-foot li + li { margin-top: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
