/* scottbresson.com — main stylesheet */

/* ===================== TOKENS =====================
   All text/background pairs verified WCAG AAA (7:1 normal, 4.5:1 large).
   Two accent values per mode:
     --accent-fill  = decorative use only (borders, fills, graphic marks)
     --accent       = text/interactive use (always AAA on all backgrounds)
   ===================================================== */
:root {
  /* Surfaces */
  --bg:         #F1EEE8;
  --bg-alt:     #E9E6DF;
  --bg-card:    #FAFAF8;
  --bg-inset:   #EDEAE3;
  --dark-slab:  #0E0D1A;

  /* Text — all clear 7:1 on every light surface */
  --ink:        #0C0C14;  /* 16.8:1 on --bg */
  --ink-2:      #4A4845;  /* 7.3:1  on --bg-alt (lowest pair) */
  --ink-3:      #4D4A45;  /* 7.1:1  on --bg-alt (lowest pair) */

  /* Accent — text use: 7:1+ on all light surfaces incl. tinted chip bg */
  --accent:     #3A2BB5;  /* 8.3:1 on --bg, 7.0:1 on chip bg */
  /* Accent — decorative: fills, borders, graphic marks (not used as text) */
  --accent-fill:#7B6EF6;

  /* Accent surfaces (tinted bg for chips, badges, eyebrow) */
  --accent-bg:  rgba(58,43,181,0.08);
  --accent-bd:  rgba(58,43,181,0.25);

  /* Structural borders */
  --border:     rgba(12,12,20,0.09);
  --border-2:   rgba(12,12,20,0.16);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

[data-theme="dark"] {
  /* Surfaces */
  --bg:         #0E0D1A;
  --bg-alt:     #13121F;
  --bg-card:    #1A1926;
  --bg-inset:   #111020;
  --dark-slab:  #0E0D1A;

  /* Text — all clear 7:1 on every dark surface */
  --ink:        #F1EEE8;  /* 16.6:1 on --bg */
  --ink-2:      #B8B5AF;  /* 8.5:1  on --bg-card (lowest pair) */
  --ink-3:      #A8A5A0;  /* 7.1:1  on --bg-card (lowest pair) */

  /* Accent — text use: 7:1+ on all dark surfaces incl. chip bg */
  --accent:     #ADA0FB;  /* 7.3:1  on --bg-card (lowest pair) */
  /* Accent — decorative fills/borders */
  --accent-fill:#9C91F8;

  /* Accent surfaces */
  --accent-bg:  rgba(123,110,246,0.14);
  --accent-bd:  rgba(123,110,246,0.30);

  /* Structural borders */
  --border:     rgba(241,238,232,0.09);
  --border-2:   rgba(241,238,232,0.16);
}

/* ===================== SKIP NAV ===================== */
.skip-nav {
  position: absolute; top: -100px; left: 20px; z-index: 9999;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: var(--r-sm);
  text-decoration: none; transition: top .15s;
}
.skip-nav:focus { top: 10px; }

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background .35s, color .35s;
  font-size: 16px;
  line-height: 1.6;
}

/* ===================== NAV ===================== */
nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 58px;
  background: var(--bg);
  border-bottom: .5px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .35s;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: -.025em;
  text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  transition: color .35s;
}
.wordmark-logo-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.wordmark-logo {
  width: 30px; height: 30px;
  object-fit: contain;
  display: block;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.wordmark:hover .wordmark-logo {
  transform: rotate(-8deg) scale(1.1);
}
.wordmark .last { font-style: italic; font-weight: 300; color: var(--accent); }
/* Note: wordmark uses --accent (text role, AAA) not --accent-fill */
.nav-r { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none; transition: color .2s;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px; font-weight: 500; color: var(--accent);
  border: .5px solid var(--accent-bd); padding: 6px 16px; border-radius: 100px;
  text-decoration: none; background: var(--accent-bg); transition: background .2s, border-color .2s;
}
/* Hover: very subtle tint — accent text stays 7.58:1+ on light, 7.02:1+ on dark */
.nav-cta:hover {
  background: rgba(58,43,181,0.05);
  border-color: rgba(58,43,181,0.40);
}
[data-theme="dark"] .nav-cta:hover {
  background: rgba(123,110,246,0.20);
  color: #BFB5FD; /* 7.02:1 on rgba hover bg -- AAA */
  border-color: rgba(123,110,246,0.45);
}
.toggle-wrap { display: flex; align-items: center; gap: 7px; }
.toggle-lbl { font-size: 11px; color: var(--ink-3); letter-spacing: .07em; text-transform: uppercase; }
.tog {
  width: 34px; height: 20px; border-radius: 10px;
  background: var(--bg-inset); border: .5px solid var(--border-2);
  position: relative; cursor: pointer; transition: background .35s;
  flex-shrink: 0;
}
.tok-k {
  position: absolute; top: 3px; left: 3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-fill);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] .tok-k { transform: translateX(14px); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px;
  padding: 84px 48px;
  max-width: 100%;
  min-height: calc(100vh - 58px);
}
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-left: calc((100vw - 1280px) / 2);
  padding-left: max(48px, calc((100vw - 1280px) / 2));
  pointer-events: none;
}
/* Re-enable clicks on interactive elements inside hero-text */
.hero-text a,
.hero-text button,
.hero-acts,
.hero-strip {
  pointer-events: auto;
}

/* ===================== HERO SHAPE ===================== */
.hero-shape-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-canvas {
  display: block;
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  cursor: grab;
  pointer-events: all;
}
.hero-canvas:active { cursor: grabbing; }
/* Compact experience strip below hero text */
.hero-strip {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 36px;
  border-top: .5px solid var(--border);
  padding-top: 20px;
}
.hs-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: .5px solid var(--border);
  gap: 12px;
}
.hs-row:last-child { border-bottom: none; }
.hs-co { font-size: 13px; font-weight: 500; color: var(--ink); }
.hs-role { font-size: 12px; color: var(--ink-3); text-align: right; }
.hs-stats { display: flex; gap: 24px; margin-top: 20px; padding-top: 16px; border-top: .5px solid var(--border); }
.hs-stat-n { font-family: var(--font-display); font-size: 26px; font-weight: 300; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.hs-stat-l { font-size: 11px; color: var(--ink-3); margin-top: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); padding: 5px 14px; border-radius: 100px;
  background: var(--accent-bg); border: .5px solid var(--accent-bd);
  margin-bottom: 28px;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.25; } }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.2vw, 70px);
  font-weight: 400; line-height: 1.03; letter-spacing: -.04em;
  color: var(--ink); margin-bottom: 22px;
}
.hero-title em { font-style: italic; color: var(--accent); font-weight: 300; }
.hero-sub {
  font-size: 17px; line-height: 1.72; color: var(--ink-2);
  max-width: 430px; margin-bottom: 36px;
}
.hero-acts { display: flex; align-items: center; gap: 18px; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 12px 22px; border-radius: 100px; text-decoration: none;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .76; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink-2); font-size: 14px; text-decoration: none; transition: color .2s;
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost svg { transition: transform .2s; }
.btn-ghost:hover svg { transform: translate(2px,-2px); }
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 12px 26px; border-radius: 100px; text-decoration: none;
  transition: opacity .2s;
}
.btn-accent:hover { opacity: .82; }
/* In dark mode, --accent is light (#ADA0FB) — dark text for AAA (8.4:1) */
[data-theme="dark"] .btn-accent { color: #0C0C14; }

/* ===================== FOCUS STYLES (AAA) ===================== */
:focus-visible {
  outline: 3px solid var(--accent-fill);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible { border-radius: var(--r-sm); }
.tog:focus-visible { border-radius: 10px; }

/* Hero card */
.hero-card {
  background: var(--bg-card); border: .5px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.hc-label {
  font-size: 11px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3);
}
.hc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: .5px solid var(--border);
}
.hc-row:last-child { border: none; }
.hc-co { font-size: 15px; font-weight: 500; color: var(--ink); }
.hc-role { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.badge {
  font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 100px;
  background: var(--accent-bg); color: var(--accent); border: .5px solid var(--accent-bd);
  white-space: nowrap;
}
.hc-stats { display: flex; gap: 28px; padding-top: 16px; border-top: .5px solid var(--border); }
.hc-stat-n {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 300; color: var(--ink); letter-spacing: -.04em;
}
/* hc-stat-n uses --ink (not accent) — numbers are informational, not decorative */
.hc-stat-l { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

/* ===================== SECTION SHELL ===================== */
.sec { padding: 100px 48px; }
.sec-alt { background: var(--bg-alt); }
.sec-dark { background: var(--dark-slab); }

/* ── Dark-slab section: always use dark-mode text palette ── */
.sec-dark .sec-label    { color: #ADA0FB; }
.sec-dark .sec-title    { color: #F1EEE8; }
.sec-dark .sec-title em { color: #ADA0FB; }
.sec-dark .dark-t       { color: #F1EEE8; }
.sec-dark .dark-t em    { color: #ADA0FB; }
.sec-dark .bio          { color: #B8B5AF; }
.sec-dark .bio strong   { color: #F1EEE8; }
.sec-dark .cr-co        { color: #F1EEE8; }
.sec-dark .cr-role      { color: #B8B5AF; }
/* ────────────────────────────────────────────────────────── */
.sec-inner { max-width: 1280px; margin: 0 auto; }
.sec-label {
  font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 48px); font-weight: 400;
  letter-spacing: -.035em; line-height: 1.08;
  color: var(--ink); margin-bottom: 52px; max-width: 560px;
}
.sec-title em { font-style: italic; color: var(--accent); font-weight: 300; }
.dark-t { color: #F1EEE8; }
.dark-t em { color: var(--accent); }

/* ===================== COMPANY CARDS ===================== */
.co-list { display: flex; flex-direction: column; gap: 16px; }
.co-card {
  background: var(--bg-card); border: .5px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s;
}
.co-card:hover { border-color: var(--border-2); }
.co-head {
  /* Reset button defaults */
  appearance: none; -webkit-appearance: none;
  border: none; background: none;
  font-family: var(--font-body); font-size: inherit; color: inherit;
  text-align: left; width: 100%;
  /* Layout */
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; gap: 16px; padding: 28px 36px 24px;
  cursor: pointer;
}
.co-name {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 400; letter-spacing: -.02em; color: var(--ink);
}
.co-name em { font-style: italic; color: var(--accent); font-weight: 300; }
.co-year { font-size: 12px; color: var(--ink-3); margin-left: 10px; }
.co-role { font-size: 13px; color: var(--ink-2); margin: 5px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px; font-weight: 500; padding: 3px 11px; border-radius: 100px;
  background: var(--accent-bg); color: var(--accent); border: .5px solid var(--accent-bd);
}
.chip.n {
  background: var(--bg-inset); color: var(--ink-2); border-color: var(--border-2);
}
.co-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.co-logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-inset); border: .5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.co-logo img {
  width: 65%; height: 65%; object-fit: contain;
}
/* Logos that need white bg */
.co-logo.light-logo { background: #fff; }
/* Walmart spark */
.co-logo.walmart { background: var(--bg-inset); }
.expand-btn {
  font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); cursor: pointer; background: none; border: none;
  font-family: var(--font-body); display: flex; align-items: center; gap: 4px;
  padding: 0; transition: color .2s;
}
.expand-btn:hover { color: var(--accent); }
.exp-ico { transition: transform .3s; display: inline-block; }

/* Accordion panel */
.co-panel { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.4,0,.2,1); }
.co-panel.open { max-height: 600px; }
.co-panel-inner {
  border-top: .5px solid var(--border);
  display: grid; grid-template-columns: 1.2fr 1fr;
}
.co-story { padding: 28px 36px; border-right: .5px solid var(--border); }
.co-story p { font-size: 14px; line-height: 1.78; color: var(--ink-2); margin-bottom: 10px; }
.co-story p:last-child { margin: 0; }
.co-story strong { color: var(--ink); font-weight: 500; }
.co-visual {
  background: var(--bg-inset);
  display: flex; align-items: center; justify-content: center;
  min-height: 180px;
}
/* Mini mock screens */
.ms {
  width: 80%; height: 80%; min-height: 140px;
  background: var(--bg-card); border-radius: 9px;
  border: .5px solid var(--border-2); overflow: hidden;
}
.ms-hdr {
  height: 24px; background: var(--bg-inset); border-bottom: .5px solid var(--border);
  display: flex; align-items: center; padding: 0 8px; gap: 4px;
}
.msd { width: 5px; height: 5px; border-radius: 50%; }
.msb { height: 3px; border-radius: 2px; background: var(--border-2); }
.msb.ac { background: var(--accent-fill); opacity: .5; }
.ms-body { padding: 9px; display: flex; flex-direction: column; gap: 7px; }

/* ===================== PILLARS ===================== */
.pillars {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: var(--border);
  border: .5px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.pillar { background: var(--bg-card); padding: 40px 34px; transition: background .2s; }
.pillar:hover { background: var(--bg-inset); }
.pil-n {
  font-family: var(--font-display); font-size: 48px; font-weight: 300;
  font-style: italic; color: var(--accent-fill); opacity: .28;
  line-height: 1; margin-bottom: 18px;
}
.pil-t { font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 9px; letter-spacing: -.01em; }
.pil-d { font-size: 14px; line-height: 1.72; color: var(--ink-2); }

/* ===================== ABOUT ===================== */
.about-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 72px; align-items: start; }
.portrait {
  aspect-ratio: 3/4; max-width: 280px; background: #1A1926;
  border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
  border: .5px solid rgba(241,238,232,.1);
}
.portrait-i {
  font-family: var(--font-display); font-size: 72px; font-weight: 300;
  font-style: italic; color: var(--accent-fill); opacity: .35; letter-spacing: -.05em;
}
.bio { font-size: 15px; line-height: 1.82; color: #A7A5A1; margin-bottom: 28px; }
/* #A7A5A1 = 7.83:1 on #0E0D1A — WCAG AAA */
.bio strong { color: #F1EEE8; font-weight: 500; }
.cr {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0; border-bottom: .5px solid rgba(241,238,232,.08);
}
.cr:last-child { border: none; }
.cr-co { font-size: 14px; font-weight: 500; color: #F1EEE8; min-width: 148px; }
.cr-role { font-size: 13px; color: #A8A5A0; }
/* #A8A5A0 = 7.84:1 on #0E0D1A — WCAG AAA */

/* ===================== CTA ===================== */
.cta { text-align: center; padding: 120px 48px; position: relative; overflow: hidden; }
.cta-logo {
  width: 64px; height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
}
.cta-poly {
  position: absolute;
  width: 200px; height: 200px;
  pointer-events: none;
}
/* diagonal scatter: left sits low, right sits high */
.cta-poly-left  { left: 32px;  bottom: 12%; }
.cta-poly-right { right: 32px; top: 10%;    }
@media (max-width: 1100px) {
  .cta-poly { width: 160px; height: 160px; }
  .cta-poly-left  { left: 16px; }
  .cta-poly-right { right: 16px; }
}
@media (max-width: 700px) {
  .cta-poly { width: 120px; height: 120px; }
  .cta-poly-left  { left: 4px;  bottom: 8%; }
  .cta-poly-right { right: 4px; top: 8%;   }
}
@media (max-width: 480px) {
  .cta-poly { display: none; }
}
.cta-i { max-width: 540px; margin: 0 auto; }
.cta-sub { font-size: 16px; color: var(--ink-2); margin-bottom: 38px; line-height: 1.65; }
.cta-acts { display: flex; align-items: center; justify-content: center; gap: 20px; }

/* ===================== FOOTER ===================== */
footer {
  border-top: .5px solid var(--border); padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.foot-c { font-size: 12px; color: var(--ink-3); }


/* ===================== SECTION POLY ===================== */
.sec-head-wrap {
  position: relative;
  margin-bottom: 52px;
}
.sec-head-wrap .sec-label,
.sec-head-wrap .sec-title {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.sec-head-wrap .sec-label { margin-bottom: 14px; }
.sec-poly-canvas {
  position: absolute;
  /* Align bottom of canvas with bottom of heading text */
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  pointer-events: none;
}
@media (max-width: 860px) {
  .sec-poly-canvas { width: 140px; height: 140px; }
}
@media (max-width: 600px) {
  .sec-poly-canvas { display: none; }
}

/* ===================== REVEAL ===================== */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.rv.v { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 0; padding: 56px 20px; min-height: auto; }
  .hero-text { padding-left: 0; max-width: 100%; }
  .sec { padding: 72px 20px; }
  .co-head { padding: 22px 20px 18px; }
  .co-story { padding: 20px; }
  .co-panel-inner { grid-template-columns: 1fr; }
  .co-story { border-right: none; border-bottom: .5px solid var(--border); }
  .co-visual { min-height: 150px; }
  .pillars { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta { padding: 80px 20px; }
  .cta-acts { flex-direction: column; }
  footer { flex-direction: column; gap: 10px; text-align: center; padding: 20px; }
}

/* ===================== CONTACT MODAL ===================== */
.modal-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(12,12,20,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: .5px solid var(--border-2);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(12,12,20,.22);
  width: 100%; max-width: 560px;
  padding: 40px;
  position: relative;
  max-height: 92dvh;
  overflow-y: auto;
  animation: modal-in .22s cubic-bezier(.4,0,.2,1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: .5px solid var(--border-2);
  background: var(--bg-inset);
  color: var(--ink-2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  font-size: 16px; line-height: 1;
}
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }
.modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.modal h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 8px;
}
.modal-desc {
  font-size: 15px; color: var(--ink-2); margin: 0 0 20px; line-height: 1.55;
}
.modal-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
}
.modal-req {
  font-style: italic; font-size: 13px; color: var(--ink-3);
}
.recaptcha-badge img {
  height: 36px; border-radius: 4px; display: block;
}

/* Form rows */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field:last-of-type { margin-bottom: 0; }

.form-label {
  font-size: 13px; font-weight: 500; color: var(--ink);
  letter-spacing: .01em;
}

.form-input, .form-textarea {
  background: var(--bg-inset);
  border: 1.5px solid var(--border-2);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%; box-sizing: border-box;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-3); }
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-fill);
  box-shadow: 0 0 0 3px rgba(123,110,246,.18);
}
.form-input.error, .form-textarea.error {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,.14);
}
[data-theme="dark"] .form-input.error,
[data-theme="dark"] .form-textarea.error {
  border-color: #E57373;
  box-shadow: 0 0 0 3px rgba(229,115,115,.14);
}
.form-textarea { resize: vertical; min-height: 110px; position: relative; }
.form-textarea-wrap { position: relative; }
.char-count {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 11px; color: var(--ink-3); pointer-events: none;
}

.form-error {
  font-size: 12px; color: #C0392B; display: none; margin-top: 2px;
}
[data-theme="dark"] .form-error { color: #E57373; }
.form-error.show { display: block; }

.form-actions { margin-top: 28px; }
.btn-modal-submit {
  width: 100%;
  background: var(--accent-fill);
  color: #fff;
  border: none; border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  padding: 14px 24px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  letter-spacing: .01em;
}
.btn-modal-submit:hover { opacity: .88; }
.btn-modal-submit:active { transform: scale(.99); }
.btn-modal-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-modal-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.form-success {
  display: none; text-align: center; padding: 28px 0 8px;
}
.form-success.show { display: block; }
.success-icon { font-size: 36px; margin-bottom: 12px; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400; color: var(--ink); margin: 0 0 8px;
}
.form-success p { font-size: 14px; color: var(--ink-2); margin: 0; }
/* ========================================================= */

/* Images inside .co-visual are lightbox-eligible */
.co-visual img[data-lb] {
  cursor: zoom-in;
  transition: opacity .15s;
  border-radius: 6px;
}
.co-visual img[data-lb]:hover { opacity: .88; }

/* ===================== MAGNIFIER ===================== */
/* Lens overlays the lightbox image */
.zoom-lens {
  position: fixed;
  width: 120px; height: 120px;
  border: 1.5px solid rgba(173,160,251,0.7);
  background: rgba(123,110,246,0.08);
  border-radius: 6px;
  pointer-events: none;
  display: none;
  z-index: 9200; /* above lightbox (9100) */
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset;
}
/* Zoom panel floats alongside the lightbox image */
.zoom-panel {
  position: fixed;
  width: 340px; height: 340px;
  border: .5px solid rgba(241,238,232,.18);
  border-radius: var(--r-lg);
  overflow: hidden;
  z-index: 9200;
  display: none;
  box-shadow: 0 16px 56px rgba(12,12,20,.55);
  pointer-events: none;
  background-repeat: no-repeat;
  background-color: #1A1926;
}
/* Hide on touch devices */
@media (hover: none) {
  .zoom-lens, .zoom-panel { display: none !important; }
}

/* ===================== IMAGE LIGHTBOX ===================== */
.lb-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(12,12,20,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
.lb-backdrop.open { display: flex; }

.lb-box {
  position: relative;
  max-width: min(90vw, 1080px);
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: default;
  animation: lb-in .2s cubic-bezier(.4,0,.2,1);
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: none; }
}

.lb-close {
  position: fixed;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(241,238,232,.12);
  border: .5px solid rgba(241,238,232,.2);
  color: #F1EEE8;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  transition: background .15s;
  z-index: 9110;
}
.lb-close:hover { background: rgba(241,238,232,.22); }
.lb-close:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }

.lb-img {
  max-width: 100%;
  max-height: calc(90dvh - 64px);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(12,12,20,.55);
  display: block;
  object-fit: contain;
}

.lb-caption {
  font-size: 13px;
  color: rgba(241,238,232,.6);
  text-align: center;
  max-width: 680px;
  line-height: 1.55;
  font-family: var(--font-body);
}
/* ========================================================= */