/* =========================================================
   CITLoB Design System — Editorial Warm Paper
   Locked from the citlob-redesign reference language.
   Tokens, type and components used across every page.
   ========================================================= */

/* ============ TOKENS ============ */
:root {
  /* Warm paper palette */
  --bg:           #F4EDE0;
  --bg-deep:      #EBE0CB;
  --bg-card:      #F9F4EA;
  --paper:        #F4EDE0;
  --ivory:        #EBE0CB;
  --ivory-2:      #E5DCC6;

  /* Ink */
  --ink:          #14110D;
  --ink-2:        #2A2117;
  --ink-soft:     #4A413A;
  --ink-mute:     #8A7F72;

  /* Lines */
  --line:         #D9CFB8;
  --line-soft:    #E5DCC6;
  --rule:         #D9CFB8;
  --rule-strong:  #C2B69A;

  /* Accents — CITLoB blue */
  --accent:        #0A6FA8;   /* primary brand blue — text, em, borders, fills */
  --accent-deep:   #075480;   /* darker blue — hovers / darkest */
  --accent-bright: #00AFEF;   /* vivid CITLoB cyan — fills & pops */
  --accent-on-dark:#5CCBF5;   /* light cyan — accents on dark backgrounds */
  --gold:          #9A7728;
  --sage:          #8FA68A;
  --sage-deep:     #5F7A5C;

  --success:      #5F7A5C;
  --danger:       #C0392B;   /* kept red — form errors only */

  /* Type */
  --f-display:    'Fraunces', Georgia, serif;
  --f-body:       'Manrope', system-ui, sans-serif;
  --f-deva:       'Noto Sans Devanagari', serif;

  /* Layout */
  --maxw:         1280px;
  --gut:          clamp(20px, 4vw, 56px);
  --radius:       4px;
  --radius-lg:    8px;
  --radius-pill:  999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper-grain overlay (from the redesign reference) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

/* ============ UTILITIES ============ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 var(--gut); }

/* Eyebrow with dot separators (reference style) */
.eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.eyebrow .dot {
  display: inline-block;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  margin: 0 6px;
}
.eyebrow.eyebrow--solo::before { display: none; }
.eyebrow--inverse { color: rgba(244,237,224,0.7); }
.eyebrow--inverse::before { background: var(--accent); }
.eyebrow--accent { color: var(--accent); }
.eyebrow--accent::before { background: var(--accent); }

/* Display heading */
.h-display {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 0.98;
}
.h-display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 350;
  color: var(--accent);
}
.h-display .deva {
  font-family: var(--f-deva);
  color: var(--accent);
  font-weight: 400;
  font-size: 0.62em;
  margin-right: 0.18em;
  vertical-align: 0.02em;
}

.lede {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.muted { color: var(--ink-soft); }
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  background: transparent;
}
.tag--accent { border-color: var(--accent); color: var(--accent-deep); background: rgba(0,175,239,0.08); }
.tag--sage    { border-color: var(--sage);   color: var(--sage-deep); background: rgba(143,166,138,0.14); }
.tag--ink     { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag--gated   { background: var(--bg-card); color: var(--ink-soft); border: 1px dashed var(--rule-strong); }

/* Buttons (pill, with arrow micro-animation from reference) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  transition: background .25s, color .25s, transform .25s, border-color .25s;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  justify-content: center;
}
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn--accent:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--small { padding: 9px 16px; font-size: 12px; }
.btn--large { padding: 16px 28px; font-size: 14px; }
.btn--full { width: 100%; }
.btn .arr, .btn .arrow { transition: transform .25s; display: inline-block; }
.btn:hover .arr, .btn:hover .arrow { transform: translateX(3px); }
.btn--inverse-ghost { background: transparent; color: var(--bg); border-color: rgba(244,237,224,0.45); }
.btn--inverse-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ============ TOPNAV ============ */
.event-bar {
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 9px var(--gut);
  position: relative;
  z-index: 51;
  font-weight: 300;
}
.event-bar a { color: var(--accent); margin-left: 14px; font-weight: 600; }
.event-bar a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 4px; }
.event-bar .deva { font-family: var(--f-deva); color: var(--accent); margin-right: 6px; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,237,224,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}

/* Brand — typographic logo "CITLoB" with italic accent on the B */
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-logo-img { display: block; height: 46px; width: auto; }
@media (max-width: 600px) { .brand-logo-img { height: 38px; } }
.brand-logo {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand-logo em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 500;
  color: var(--accent);
}
.brand-meta {
  font-family: var(--f-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  align-self: center;
  line-height: 1.2;
  max-width: 140px;
}
/* Legacy brand-mark/brand-text still rendered: hide the square C, restyle text */
.brand-mark {
  display: none;
}
.brand-text { line-height: 1.05; }
.brand-text strong {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  display: inline-block;
  color: var(--ink);
  position: relative;
}
.brand-text strong em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 500;
  color: var(--accent);
}
.brand-text small {
  font-family: var(--f-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color .25s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--accent);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 10px 18px; font-size: 12px; }
.nav-login {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background .25s, color .25s;
}
.nav-login:hover { background: var(--bg-card); color: var(--accent); }

/* Logged-in profile chip */
.profile-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .25s;
}
.profile-chip:hover { border-color: var(--ink); }
.profile-chip .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
}
.profile-chip .name { font-size: 13px; font-weight: 600; }
.profile-chip .role { font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase; }
.profile-chip .arr-down { color: var(--ink-soft); font-size: 11px; }

/* ============ MOBILE NAV (hamburger + drawer) ============ */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
  position: relative;
}
.nav-toggle .bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 12px;
  transition: transform .25s, opacity .25s, top .25s;
}
.nav-toggle .bar:nth-child(1) { top: 14px; }
.nav-toggle .bar:nth-child(2) { top: 21px; }
.nav-toggle .bar:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-cta { order: 2; gap: 6px; margin-left: auto; }
  .nav-cta .btn--ghost, .nav-cta .nav-login { display: none; }
  .nav-cta .btn { padding: 9px 14px; font-size: 11.5px; }

  /* The links collapse into a slide-down drawer */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut);
    box-shadow: 0 18px 30px -20px rgba(20,17,13,0.18);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .3s ease, visibility 0s linear .3s;
  }
  .nav-links.is-open {
    max-height: 70vh;
    visibility: visible;
    transition: max-height .3s ease, visibility 0s linear 0s;
    overflow-y: auto;
  }
  .nav-links a {
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a:hover::after, .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--accent); }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 540px) {
  .nav { padding: 14px 0; }
  .nav-cta .btn { padding: 8px 12px; font-size: 11px; }
  .brand-text small, .brand-meta { display: none; }
}

/* ============ MARQUEE / SCRIPT RIBBON ============ */
.marquee {
  background: var(--bg-deep);
  color: var(--ink);
  padding: 24px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-deep), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg-deep), transparent); }
.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-style: italic;
  font-weight: 350;
  font-size: 26px;
  letter-spacing: -0.01em;
  align-items: center;
  width: max-content;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee-track .dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; display: inline-block; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ SECTION SHELLS ============ */
section { padding: clamp(60px, 8vw, 110px) 0; position: relative; }
.section--tight { padding: clamp(50px, 6vw, 80px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(30px, 6vw, 80px);
  margin-bottom: clamp(50px, 7vw, 80px);
  align-items: end;
}
.section-head h2 { font-size: clamp(36px, 5vw, 68px); }
.section-head .lede { margin-top: 18px; max-width: 56ch; }
.section-head--centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 820px;
  margin-left: auto; margin-right: auto;
}
.section-head--centered .eyebrow { justify-content: center; }
.section-head--solo {
  grid-template-columns: 1fr;
  margin-bottom: 60px;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

.section--ivory { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink   { background: var(--ink); color: var(--bg); }
.section--ink h2, .section--ink h3 { color: var(--bg); }

/* Page hero */
.page-hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(50px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 50% at 90% 0%, rgba(0,175,239,0.08), transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(48px, 7vw, 100px);
  margin-top: 24px;
  max-width: 18ch;
}
.page-hero .lede { margin-top: 28px; max-width: 60ch; }

/* Breadcrumb */
.breadcrumb {
  display: flex; gap: 10px; align-items: center;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }

/* ============ TRUST / PARTNER STRIP ============ */
.trust-strip {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.trust-strip .label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); text-align: center; margin-bottom: 30px; font-weight: 600;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px 24px;
  align-items: center;
}
.trust-item {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-align: center;
  opacity: 0.7;
  transition: all .35s;
  cursor: default;
}
.trust-item:hover { opacity: 1; color: var(--ink); transform: translateY(-2px); }
.trust-item .small {
  display: block;
  font-family: var(--f-body);
  font-size: 9.5px; font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============ STAT BLOCKS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 36px 28px;
  transition: background .35s;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px;
}
.stat:hover { background: var(--bg-card); }
.stat .num {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 350;
  font-size: clamp(46px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: block;
}
.stat .num sup {
  font-size: 0.4em;
  font-style: italic;
  color: var(--accent);
  vertical-align: top;
  font-weight: 400;
}
.stat p { margin-top: 16px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; max-width: 26ch; }

/* ============ CARD GRIDS ============ */
.cards-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 880px) {
  .cards-grid--3 { grid-template-columns: 1fr; }
  .cards-grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg);
  padding: 40px 32px;
  transition: background .35s;
  cursor: default;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.card:hover { background: var(--bg-card); }
.card-icon {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 24px;
  width: auto; height: auto;
  background: none; border: none;
  display: block;
}
.card-icon::after { content: none; }
.card-num {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 24px;
  display: block;
}
.card h3 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.card .desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.card .more {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex; gap: 8px; align-items: center;
}
.card .more .arr { color: var(--ink); transition: transform .25s, color .25s; }
.card:hover .more .arr { transform: translateX(4px); color: var(--accent); }
.card-tag {
  position: absolute; top: 28px; right: 28px;
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 14px;
  color: var(--accent); font-weight: 400;
  letter-spacing: 0;
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 32px;
  position: relative;
  z-index: 3;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244,237,224,0.14);
}
.foot-brand .brand-mark { color: #5CCBF5; }
.foot-brand .brand-text strong { color: var(--bg); }
.foot-brand .brand-text small { color: rgba(244,237,224,0.55); }
.foot-brand p {
  margin-top: 22px;
  color: rgba(244,237,224,0.65);
  font-size: 14px;
  line-height: 1.65;
  max-width: 38ch;
  font-weight: 300;
}
.foot-col h5 {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 600;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 12px; }
.foot-col a { color: rgba(244,237,224,0.78); font-size: 14px; transition: color .25s; }
.foot-col a:hover { color: var(--bg); }
.foot-col address { font-style: normal; color: rgba(244,237,224,0.78); font-size: 14px; line-height: 1.7; }
.foot-col address a:hover { color: #5CCBF5; }

.foot-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: rgba(244,237,224,0.55);
  font-size: 12px;
}
.foot-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bottom a:hover { color: var(--bg); }

@media (max-width: 880px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-top { grid-template-columns: 1fr; } }

/* ============ FORMS ============ */
.form {
  background: var(--bg-card);
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form h3 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.form .sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; }
.field { margin-bottom: 20px; position: relative; }
.field label {
  display: block;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 8px; font-weight: 600;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 0;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .35s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 90px; }
.field--boxed input, .field--boxed textarea, .field--boxed select {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--bg);
}
.form .row   { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 700px) { .form .row, .form .row-3 { grid-template-columns: 1fr; } }
.form-help { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.form-divider { height: 1px; background: var(--line); margin: 28px 0; }
.checkbox-row {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
  cursor: pointer;
}
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }

/* Steps */
.stepper {
  display: flex; gap: 0;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.step {
  flex: 1; padding: 16px 18px;
  border-bottom: 2px solid transparent;
  transition: border-color .25s;
  cursor: default;
}
.step .num {
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 400;
  font-size: 14px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.step .label { font-size: 13px; font-weight: 600; }
.step--active { border-bottom-color: var(--ink); }
.step--done .num { color: var(--sage-deep); }
.step--done .num::before { content: "✓ "; }
.step--upcoming { opacity: 0.5; }

/* ============ FILTERS / SEARCH ============ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.search-box {
  flex: 1; min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: border-color .25s;
}
.search-box:focus-within { border-color: var(--ink); }
.search-box input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 14px;
}
.search-box .icon { color: var(--ink-soft); font-size: 16px; }
.filter-chip {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .25s;
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-chip--active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-chip .x { font-size: 13px; opacity: 0.7; }

/* ============ TABS ============ */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  overflow-x: auto;
}
.tab {
  padding: 14px 22px;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .25s;
  cursor: pointer;
  background: transparent;
}
.tab:hover { color: var(--ink); }
.tab--active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.tab .count {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--f-body);
  font-weight: 500;
}

/* ============ LISTING CARDS (Directory / Jobs) ============ */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all .35s cubic-bezier(.2,.7,.3,1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.listing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.listing-card:hover { border-color: var(--ink); transform: translateY(-3px); background: var(--bg); }
.listing-card:hover::before { transform: scaleX(1); }
.listing-card .logo {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--bg-deep);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  border: 1px solid var(--line);
}
.listing-card .name {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.listing-card .meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.listing-card .desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.listing-card .footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.listing-card .location {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.contact-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all .25s;
}
.contact-cta:hover { background: var(--ink); color: var(--bg); }
.contact-cta--locked {
  border-style: dashed;
  border-color: var(--rule-strong);
  color: var(--ink-soft);
}
.contact-cta--locked:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); border-style: solid; }
.contact-cta .lock { font-size: 11px; }

/* Job listing rows */
.job-list { border-top: 1px solid var(--line); }
.job-row {
  display: grid;
  grid-template-columns: 60px 2fr 1fr 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding-left .35s, background .25s;
}
.job-row:hover { padding-left: 12px; background: var(--bg-card); }
.job-row .logo {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 18px;
}
.job-row .role {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.job-row .company { font-size: 13px; color: var(--ink-soft); }
.job-row .type { font-size: 13px; }
.job-row .loc { font-size: 13px; color: var(--ink-soft); }
.job-row .when { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 880px) {
  .job-row { grid-template-columns: 1fr; gap: 8px; padding-left: 0 !important; }
  .job-row .logo { display: none; }
}

/* ============ BOARD CARDS ============ */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.board-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  transition: all .35s cubic-bezier(.2,.7,.3,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.board-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.board-card:hover { border-color: var(--ink); transform: translateY(-2px); background: var(--bg); }
.board-card:hover::before { transform: scaleX(1); }
.board-card .photo {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--ivory-2) 100%);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 38px;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.board-card .photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.board-card:hover .photo img { transform: scale(1.04); }
.board-card h4 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.board-card .role { font-size: 11px; color: var(--accent-deep); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.board-card .affiliation { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }
.board-card .li { margin-top: 12px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.board-card .li:hover { color: var(--accent); }

.board-section + .board-section { margin-top: 60px; }
.board-section h3 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(24px, 2vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.board-section h3 .count {
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 400;
  color: var(--ink-mute);
  font-size: 15px;
}

/* ============ TIMELINE ============ */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 32px;
  margin-left: 12px;
}
.timeline-item {
  position: relative;
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px; top: 26px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
}
.timeline-item .year {
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 400;
  font-size: 16px;
  color: var(--accent-deep);
  letter-spacing: 0;
}
.timeline-item h4 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.01em;
  margin-top: 4px; margin-bottom: 8px;
}
.timeline-item p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; max-width: 640px; }

/* ============ DASHBOARD ============ */
.dash-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-side {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.dash-side .me { display: flex; gap: 14px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.dash-side .me .avatar {
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
}
.dash-side .me .name { font-family: var(--f-display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.dash-side .me .id { font-size: 11px; letter-spacing: 0.12em; color: var(--ink-mute); text-transform: uppercase; font-weight: 600; }
.dash-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.dash-nav a {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-2);
  transition: background .25s, color .25s;
}
.dash-nav a:hover { background: var(--bg); color: var(--accent); }
.dash-nav a.active { background: var(--ink); color: var(--bg); }
.dash-nav a .ico { font-size: 14px; opacity: 0.7; }
.dash-nav a.active .ico { opacity: 1; }

.dash-main { display: flex; flex-direction: column; gap: 22px; }
.widget {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px;
}
.widget-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 20px;
}
.widget-head h3 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.widget-head a { font-size: 11px; color: var(--accent-deep); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.widget-head a:hover { color: var(--ink); }

.status-card {
  background: var(--ink); color: var(--bg);
  padding: 32px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.status-card::after {
  content: "भाषा";
  position: absolute; right: -20px; bottom: -40px;
  font-family: var(--f-deva);
  font-weight: 600; font-size: 150px;
  color: rgba(0,175,239,0.15); line-height: 0.8;
  pointer-events: none;
}
.status-card .label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244,237,224,0.7); font-weight: 600; }
.status-card .tier {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: 34px; margin-top: 6px; letter-spacing: -0.02em;
}
.status-card .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(244,237,224,0.18); position: relative; z-index: 2; }
.status-card .meta .key { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,237,224,0.6); margin-bottom: 4px; font-weight: 600; }
.status-card .meta .val { font-family: var(--f-display); font-variation-settings: "opsz" 144; font-weight: 500; font-size: 16px; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.quick-action {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  transition: all .25s;
}
.quick-action:hover { border-color: var(--ink); background: var(--bg-card); }
.quick-action .ico {
  display: block; margin-bottom: 12px;
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 400;
  color: var(--accent);
  font-size: 20px;
}
.quick-action .lbl { font-size: 14px; font-weight: 600; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.table th {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-deep);
}
.table tbody tr:hover { background: rgba(0,175,239,0.04); }
.table .pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.pill--success { background: rgba(95,122,92,0.18); color: var(--sage-deep); }
.pill--info    { background: rgba(0,175,239,0.16); color: var(--accent-deep); }
.pill--danger  { background: rgba(192,57,43,0.18); color: var(--danger); }
.pill--neutral { background: var(--bg-deep); color: var(--ink-soft); }

/* Pricing comparison */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.price-col { padding: 36px 28px; border-right: 1px solid var(--line); position: relative; transition: background .35s; }
.price-col:last-child { border-right: none; }
.price-col:hover { background: var(--bg-card); }
.price-col--featured { background: var(--bg-card); }
.price-col--featured::before {
  content: "Most popular"; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--accent); color: var(--bg);
  padding: 5px 14px; border-radius: var(--radius-pill);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}
.price-col h4 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.price-col .who { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.price-col .price {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 350;
  font-size: 48px;
  letter-spacing: -0.04em;
  margin-top: 22px;
  line-height: 1;
}
.price-col .price small { font-size: 13px; color: var(--ink-soft); margin-left: 4px; font-weight: 400; }
.price-col .gst { font-size: 11px; color: var(--ink-mute); margin-top: 4px; letter-spacing: 0.04em; }
.price-col ul { list-style: none; margin-top: 28px; }
.price-col li {
  padding: 11px 0; border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start;
}
.price-col li:first-child { border-top: none; }
.price-col li::before { content: "+"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.price-col li.no::before { content: "—"; color: var(--ink-mute); }
.price-col .btn { margin-top: 24px; width: 100%; }
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-col { border-right: none; border-bottom: 1px solid var(--line); }
  .price-col:last-child { border-bottom: none; }
}

/* Razorpay checkout mock */
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 30px 80px -30px rgba(20,17,13,0.18);
}
.checkout-head {
  background: var(--ink); color: var(--bg);
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.checkout-head .razor {
  font-family: var(--f-body); font-size: 12px;
  letter-spacing: 0.06em; color: rgba(244,237,224,0.6);
}
.checkout-head .razor strong { color: var(--accent); font-weight: 600; }
.checkout-body { padding: 28px; }
.checkout-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.checkout-row .key { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.checkout-row .val { font-family: var(--f-display); font-variation-settings: "opsz" 144; font-weight: 500; font-size: 15px; }
.checkout-total { padding: 16px 0; margin-top: 10px; border-top: 1px solid var(--ink); border-bottom: none !important; }
.checkout-total .key { font-family: var(--f-display); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; text-transform: none !important; color: var(--ink) !important; }
.checkout-total .val { font-family: var(--f-display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.payment-methods {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 24px 0 16px;
}
.payment-method {
  padding: 12px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.payment-method:hover, .payment-method--active { border-color: var(--accent); background: var(--bg-card); color: var(--accent-deep); }

/* ============ CLIENT-SIDE FILTER / SEARCH HELPERS ============ */
.filter-hidden { display: none !important; }
.no-results {
  display: none;
  padding: 44px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  margin-top: 16px;
}
.no-results.show { display: block; }

/* ============ MODALS / OVERLAYS ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,17,13,0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg);
  max-width: 560px;
  width: 100%;
  border-radius: var(--radius);
  padding: 36px 36px 32px;
  position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal .close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-deep); }
.modal .close:hover { background: var(--ink); color: var(--bg); }

/* ============ MAP / EMBED ============ */
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--ivory-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.map-frame::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}
.map-pin {
  width: 18px; height: 18px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  position: relative; z-index: 2;
  box-shadow: 0 0 0 6px rgba(0,175,239,0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(0,175,239,0.25); }
  50%      { box-shadow: 0 0 0 14px rgba(0,175,239,0); }
}
.map-label {
  position: absolute; top: 16px; left: 16px;
  background: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
  z-index: 2;
}

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE HELPERS ============ */
.hide-mobile { }
@media (max-width: 700px) { .hide-mobile { display: none !important; } }
.show-mobile { display: none; }
@media (max-width: 700px) { .show-mobile { display: block; } }

/* ============ EXTRA MOBILE TWEAKS ============ */
@media (max-width: 880px) {
  /* Make wide data tables horizontally scrollable instead of busting layout */
  .widget table.table { display: block; overflow-x: auto; }
  /* Membership pricing — 1-column instead of unreadable squeeze */
  .pricing-grid { grid-template-columns: 1fr; }
  /* Stepper wraps on small screens */
  .stepper { flex-wrap: wrap; }
  .step { flex: 1 1 50%; min-width: 50%; border-right: 1px solid var(--line-soft); }
  /* Hero metas with 4 facts → 2 columns */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  /* Inline 2-col rows in forms */
  .form .row, .form .row-3 { grid-template-columns: 1fr; }
  /* Founders & ribbon don't need to overflow on small screens */
  .founders-track .founder-name { font-size: 22px; }
  .founders-track { gap: 40px; }
}
@media (max-width: 640px) {
  /* Stepper to 1-up on phones */
  .step { flex: 1 1 100%; min-width: 100%; border-right: none; border-bottom: 1px solid var(--line-soft); }
  /* Tier card padding tighter */
  .tier { padding: 28px 22px; }
  /* Dashboard sidebar drops below content */
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  /* Section heads stack */
  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  /* Hero CTAs full-width-ish */
  .btn { padding: 12px 20px; }
  .btn--large { padding: 14px 22px; }
  /* Buttons in rows should wrap nicely */
  .hero-cta, .cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .cta-row .btn { width: 100%; justify-content: center; }
  /* Mission heading shrinks */
  .mission .display { font-size: clamp(26px, 8vw, 36px); }
  /* Cards horizontal scroll inside listing grid */
  .listing-grid { grid-template-columns: 1fr; }
  /* Editions strip to 2 columns */
  .editions { grid-template-columns: repeat(2, 1fr); }
  /* Sponsor grids collapse cleanly */
  .sponsor-grid--platinum, .sponsor-grid--gold { grid-template-columns: 1fr; }
  .sponsor-grid--silver { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  /* Trim event bar so it fits */
  .utility { font-size: 11px; }
  .utility-inner { flex-wrap: wrap; gap: 8px; padding: 8px var(--gut); }
  .utility-right { flex-wrap: wrap; gap: 12px; }
  /* Hero typography breathing room */
  .h-display { line-height: 1.05; }
  /* Single-column footer */
  .foot-top { grid-template-columns: 1fr !important; gap: 28px; }
  /* Filter bar wraps cleaner */
  .filter-bar { gap: 8px; }
  .search-box { min-width: 100%; }
  /* Founders names smaller still */
  .founders-track .founder-name { font-size: 18px; }
}

/* ============ MACRON KERNING FIX ============
   Fraunces (variable, display optical sizes) kerns the letter AFTER a
   macron'd 'ā' so tightly that the macron visually appears to sit on
   the next glyph instead of on the 'a'. Wrap the 'ā' in this span,
   e.g.  Samv<span class="macron-fix">ā</span>d
   to disable kerning and add a hair of breathing room. */
.macron-fix {
  font-feature-settings: "kern" 0;
  letter-spacing: 0.04em;
  padding-right: 0.02em;
}


/* ============ LEGAL / POLICY PAGES ============ */
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -0.01em;
  color: var(--ink); margin: 44px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-family: var(--f-display); font-weight: 500; font-size: 18px; margin: 30px 0 10px; }
.legal-content p { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 16px; }
.legal-content ul, .legal-content ol { margin: 0 0 18px 1.3em; }
.legal-content li { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 8px; }
.legal-content a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--accent); }
.legal-content strong { color: var(--ink); font-weight: 600; }

.legal-updated { margin-top: 14px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
