/* =========================================================
   GLOBAL THEME VARIABLES (single source of truth)
   ========================================================= */
:root{
  /* Layout */
  --max: 1120px;
  --radius: 18px;
  --radius2: 28px;

  /* Typography */
  --h1: clamp(2.1rem, 2.8vw + 1rem, 3.4rem);
  --h2: clamp(1.5rem, 1.3vw + 1rem, 2.1rem);
  --h3: clamp(1.15rem, .6vw + 1rem, 1.35rem);
  --body: clamp(1.02rem, .2vw + 1rem, 1.12rem);

  /* Surfaces */
  --bg: #0b0c10;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.14);

  /* Text */
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --faint: rgba(255,255,255,.50);

  /* Shadows */
  --shadow: 0 20px 60px rgba(0,0,0,.45);

  /* Accents */
  --accent: #7bdcb5;
  --accent2: #8ed1fc;

  /* Background ambient glows */
  --bg-glow1: rgba(123,220,181,.18);
  --bg-glow2: rgba(142,209,252,.14);
  --bg-glow3: rgba(255,255,255,.07);

  /* Header */
  --header-bg: rgba(15, 17, 22, 0.92);
  --header-stroke: rgba(255,255,255,0.15);
  --header-text: rgba(255,255,255,0.95);
  --header-subtext: rgba(255,255,255,0.75);

  /* Header theme tint */
  --header-tint1: rgba(47,164,169,.18);
  --header-tint2: rgba(106,79,179,.14);

  /* Footer */
  --footer-text: rgba(255,255,255,.55);

  /* Buttons */
  --btn-text: rgba(255,255,255,.95);

  /* Badge */
  --badge-bg: rgba(10,10,12,.55);

  --btn-g1: #2FA4A9;
  --btn-g2: #1B6B6E;
  --btn-glow: rgba(47,164,169,.55);

  --btn-h1: #6A4FB3;
  --btn-h2: #3A2A70;
  --btn-hglow: rgba(106,79,179,.75);

  --btn-border: rgba(255,255,255,.35);
  --btn-hborder: rgba(255,255,255,.45);

  /* Boosted theme tokens */
  --bg2: #12151d;
  --paper: #111418;
  --paper2: #161b22;
  --ink: rgba(255,255,255,.94);
  --ink2: rgba(255,255,255,.74);
  --edge: rgba(255,255,255,.16);

  --nav-bg: rgba(255,255,255,.08);
  --nav-bg-hover: rgba(255,255,255,.14);
  --nav-border: rgba(255,255,255,.18);
  --nav-border-hover: rgba(255,255,255,.30);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html,body{ overflow-x:hidden; }

body{
  margin:0;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 20% 0%, var(--bg-glow1), transparent 55%),
    radial-gradient(900px 600px at 80% 10%, var(--bg-glow2), transparent 55%),
    radial-gradient(900px 600px at 50% 100%, var(--bg-glow3), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  font: 400 var(--body)/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .2px;
  transition: background .45s ease, color .2s ease;
}

a{ color:inherit; }
a:hover{ opacity:.92; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* Accessibility */
:focus-visible{
  outline: 3px solid rgba(47,164,169,.75);
  outline-offset: 3px;
  border-radius: 10px;
}
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;

  background:
    radial-gradient(900px 200px at 15% 0%, var(--header-tint1), transparent 60%),
    radial-gradient(900px 200px at 85% 0%, var(--header-tint2), transparent 60%),
    var(--header-bg);

  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-stroke);

  box-shadow:
    0 10px 30px rgba(0,0,0,.25),
    0 0 18px rgba(255,255,255,.04);
}

.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.identity{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:260px;
}

.icon-box{
  width:46px;
  height:46px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow);
  flex-shrink:0;
  position:relative;
  overflow:hidden;
}

.icon-box::after{
  content:"";
  position:absolute; inset:-40%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-40%) rotate(10deg);
  animation: sheen 7s linear infinite;
  opacity:.55;
}
@keyframes sheen{ to{ transform: translateX(65%) rotate(10deg); } }

.identity-text{ display:flex; flex-direction:column; }
.name{
  font-weight:700;
  font-size:18px;
  line-height:1.1;
  color: var(--header-text);
}
.roles{
  font-size:13px;
  margin-top:4px;
  color: var(--header-subtext);
  white-space:nowrap;
}

.main-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

/* NAV PILLS */
.nav-pill{
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

  color: var(--btn-text, var(--text));
  background: linear-gradient(135deg, var(--btn-g1), var(--btn-g2));

  border: 1px solid transparent;
  box-shadow:
    inset 0 0 0 1px var(--btn-border),
    0 8px 20px rgba(0,0,0,.28),
    0 0 14px var(--btn-glow);

  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease;
}

.nav-pill:hover{
  background: linear-gradient(135deg, var(--btn-h1), var(--btn-h2));
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px var(--btn-hborder),
    inset 0 -2px 0 rgba(255,255,255,.35),
    0 12px 28px rgba(0,0,0,.35),
    0 0 18px var(--btn-hglow);
  filter: saturate(1.08) brightness(1.05);
}

.nav-pill.is-current{
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 90%, #000 0%),
    color-mix(in oklab, var(--accent) 60%, #000 0%)
  );
  border-color: color-mix(in oklab, var(--accent) 70%, rgba(255,255,255,.35));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.40),
    0 10px 24px rgba(0,0,0,.33),
    0 0 18px var(--btn-glow);
}

@media (max-width:780px){
  .header-inner{ flex-direction:column; align-items:flex-start; }
  .main-nav{ justify-content:flex-start; }
  .roles{ white-space:normal; }
}

/* =========================================================
   MAIN LAYOUT / COMMON COMPONENTS
   ========================================================= */
main{ padding: 28px 0 60px; }

.card{
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper2) 100%);
  border: 1px solid var(--edge);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.pad{ padding:22px; }

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 7px 12px;
  border-radius:999px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  font-size:.95rem;
}

.dot{
  width:8px; height:8px;
  border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(123,220,181,.18);
}

h1{ margin:14px 0 10px; font-size:var(--h1); line-height:1.1; }
h2{ margin:0 0 10px; font-size:var(--h2); line-height:1.15; }
h3{ margin:0 0 8px; font-size:var(--h3); }
p{ margin:0 0 12px; color: var(--ink2); }

.lead{ font-size:1.12em; color: var(--ink); opacity:1; }

.meta{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color: var(--faint);
  font-size:.95rem;
}

.pill{
  padding: 8px 12px;
  border-radius:999px;
  border: 1px solid var(--edge);
  background: var(--panel2);
  color: var(--ink);
  font-weight:500;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--btn-g1) 0%, var(--btn-g2) 100%);
  color: var(--btn-text);
  text-decoration:none;
  cursor:pointer;

  border: 1px solid rgba(255,255,255,.16);

  box-shadow:
    0 10px 28px rgba(0,0,0,.30),
    0 0 18px var(--btn-glow);

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}

.btn:hover{
  background: linear-gradient(135deg, var(--btn-h1) 0%, var(--btn-h2) 100%);
  transform: translateY(-2px);
  filter: brightness(1.10) saturate(1.10);

  box-shadow:
    0 16px 40px rgba(0,0,0,.45),
    0 0 22px var(--btn-hglow),
    0 0 60px rgba(106,79,179,.55),
    0 0 110px rgba(106,79,179,.35);
  opacity: 1;
}

.btn:active{ transform: translateY(0px) scale(.99); }

/* Footer */
footer{
  border-top: 1px solid var(--stroke);
  padding: 22px 0 40px;
  color: var(--footer-text);
}
footer .row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

/* =========================================================
   CONSISTENT PAGE HERO (Filmography + Textile Art + others)
   ========================================================= */
.page-hero{
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--panel2) 70%, transparent),
    color-mix(in oklab, var(--panel) 55%, transparent)
  );
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.page-hero h1{
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.page-blurb{
  margin: 10px 0 0;
  font-size: 18px;
  color: var(--ink2);
  max-width: 75ch;
}

/* =========================================================
   THEME SWITCHER (bottom right)
   ========================================================= */
.theme-switcher{
  position: fixed !important;
  right: 14px !important;
  bottom: 14px !important;
  z-index: 99999 !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;

  pointer-events: auto;
}

@supports (padding: max(0px)) {
  .theme-switcher{
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
  }
}

.theme-switcher button{
  padding: 9px 12px;
  font-size: 12px;
  cursor:pointer;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--btn-text);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
  opacity: .95;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.theme-switcher button:hover{
  transform: translateY(-1px) scale(1.03);
  filter: saturate(1.08) brightness(1.06);
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
}

/* Optional: show which theme is active */
.theme-switcher button.is-active{
  outline: 2px solid rgba(255,255,255,.6);
  outline-offset: 2px;
  transform: scale(1.03);
}

/* THEME SWITCHER: per-theme hover glows */
.theme-switcher button[data-theme="cinematic"]:hover{
  box-shadow:
    0 14px 30px rgba(0,0,0,.55),
    0 0 22px rgba(123,220,181,.55),
    0 0 50px rgba(142,209,252,.35);
  filter: brightness(1.08) saturate(1.1);
}

.theme-switcher button[data-theme="teal"]:hover{
  box-shadow:
    0 14px 30px rgba(0,0,0,.55),
    0 0 22px rgba(47,164,169,.55),
    0 0 50px rgba(94,201,255,.35);
  filter: brightness(1.08) saturate(1.1);
}

.theme-switcher button[data-theme="purple"]:hover{
  box-shadow:
    0 14px 30px rgba(0,0,0,.55),
    0 0 22px rgba(106,79,179,.60),
    0 0 50px rgba(47,164,169,.30);
  filter: brightness(1.08) saturate(1.1);
}

.theme-switcher button[data-theme="earth"]:hover{
  box-shadow:
    0 14px 30px rgba(0,0,0,.55),
    0 0 22px rgba(166,124,82,.60),
    0 0 50px rgba(63,167,163,.25);
  filter: brightness(1.07) saturate(1.08);
}

.theme-switcher button[data-theme="ivory"]:hover{
  box-shadow:
    0 14px 30px rgba(0,0,0,.35),
    0 0 22px rgba(120,90,60,.45),
    0 0 50px rgba(120,90,60,.22);
  filter: brightness(1.05) saturate(1.05);
}

/* The buttons look like the theme they control */
.theme-switcher button[data-theme="teal"]{
  background: linear-gradient(135deg, #2FA4A9 0%, #1B6B6E 100%);
  border-color: rgba(47,164,169,.55);
}
.theme-switcher button[data-theme="purple"]{
  background: linear-gradient(135deg, #6A4FB3 0%, #3A2A70 100%);
  border-color: rgba(106,79,179,.55);
}
.theme-switcher button[data-theme="earth"]{
  background: linear-gradient(135deg, #A67C52 0%, #6E4A2E 100%);
  border-color: rgba(166,124,82,.55);
}
.theme-switcher button[data-theme="ivory"]{
  background: linear-gradient(135deg, #F3EBDD 0%, #E7DAC5 100%);
  color: rgba(20,20,20,.88);
  border-color: rgba(120,90,60,.35);
}
.theme-switcher button[data-theme="cinematic"]{
  background: linear-gradient(135deg, #0b0c10 0%, #1b2230 100%);
  color: rgba(255,255,255,.95);
  border: 1px solid rgba(123,220,181,.45);
  box-shadow:
    0 10px 22px rgba(0,0,0,.45),
    0 0 16px rgba(123,220,181,.35);
}

/* =========================================================
   TEXTILE ART (QUILTS) PAGE
   ========================================================= */
.section-divider{
  margin: 3.2rem 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    color-mix(in oklab, var(--ink) 22%, transparent),
    transparent
  );
}

.quilt{
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 24px rgba(0,0,0,.30);
}

.quilt h2{
  margin: 0 0 12px;
  font-size: 1.35rem;
  letter-spacing: .2px;
  color: var(--ink);
}

.quilt figure{
  margin: 0 0 14px;
}

.quilt img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--panel2) 70%, transparent);
}

.quilt figcaption{
  margin-top: 10px;
  color: var(--muted);
  font-size: .95rem;
}

.quilt p{
  margin: 10px 0;
  color: var(--ink2);
}

@media (max-width: 720px){
  .quilt{ padding: 14px; }
}
/* ===== TEXTILE ART: image sizing control ===== */
.quilt .media{
  border-radius: 14px;
  border: 1px solid var(--stroke);
  overflow: hidden;

  /* cap the visible size */
  max-height: 520px;          /* adjust: 420–620 is a good range */
}

.quilt .media img{
  width: 100%;
  height: 520px;              /* must match max-height for consistent crop */
  object-fit: cover;          /* crops edges to fill */
  display: block;
}
.quilt .media{
  border-radius: 14px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  background: color-mix(in oklab, var(--panel2) 70%, transparent);
  max-height: 640px;
}

.quilt .media img{
  width: 100%;
  height: 640px;
  object-fit: contain;     /* shows whole image */
  display: block;
}
@media (max-width: 720px){
  .quilt .media{ max-height: 360px; }
  .quilt .media img{ height: 360px; }
}
/* ============================
   TEXTILE ART — HARD IMAGE CAP
   ============================ */

/* If your old rules exist, this overrides them no matter what */
.quilt figure { margin: 0 0 14px; }

.quilt img{
  width: 100% !important;
  height: auto !important;      /* keeps aspect ratio */
  max-height: 520px !important; /* caps the "huge" problem */
  object-fit: contain !important;
  display: block !important;
}
/* =========================================================
   TEXTILE ART FIX: make quilts behave like real cards
   Put this at the VERY END of styles.css
   ========================================================= */

.quilt{
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius);

  /* Use the SAME “card” surface as the rest of the site */
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper2) 100%);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);

  overflow: hidden;
}

.quilt img{
  width: 100%;
  height: auto;
  display: block;

  /* keep it contained + polished */
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--panel2);
}

/* Optional: make the divider also theme-aware but not “washed out” */
.section-divider{
  margin: 3.2rem 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--stroke),
    transparent
  );
}
/* ================================
   CONSISTENT PAGE HERO (THEMED)
   ================================ */
.page-hero{
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;

  /* This is the important part: use the themed “card” surfaces */
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper2) 100%);
  border: 1px solid var(--edge);

  box-shadow: var(--shadow);
}

.page-hero h1{
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.2px;
  color: var(--ink);
}

.page-hero .page-blurb,
.page-hero p{
  margin: 10px 0 0;
  font-size: 18px;
  color: var(--ink2);
  max-width: 75ch;
}
/* ================================
   CONSISTENT SECTION SPACING
   (matches Filmography rhythm)
   ================================ */

/* Space between stacked content blocks */
main > * + * {
  margin-top: 28px;
}

/* Grid cards spacing (Music Videos) */
.grid {
  margin-top: 28px;
  gap: 28px; /* was 16px */
}

/* Quilt articles spacing (Textile Art) */
.quilt {
  margin-top: 28px;
}
/* FORCE spacing between Music Videos cards */
.grid{
  display: grid;
  gap: 28px !important;
}
/* Music Videos: spacing between cards */
.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 22px;
}

/* Safety fallback (even if grid gets overridden somewhere) */
.grid > .card{
  margin: 0;
}
/* Music Videos (and any page that uses .section as a stack container) */
.section{
  display: grid;
  gap: 18px;              /* adjust: 16–26px */
  margin-top: 18px;       /* separates from hero nicely */
}
/* =========================================================
   IMAGE SAFETY — prevents "giant cropped image" everywhere
   ========================================================= */
img{
  max-width: 100%;
  height: auto;
  display: block;
}
/* Optional: make single images look “featured” but not huge */
.img-wrap{
  max-width: 760px;   /* pick your preferred cap */
  margin-left: auto;
  margin-right: auto;
}
/* =========================================================
   HOMEPAGE LAYOUT PATCH (index.html)
   Add this at the END of styles.css
   ========================================================= */

/* Safety defaults */
*{ box-sizing:border-box; }
html, body{ overflow-x:hidden; }
img{ max-width:100%; height:auto; display:block; }

/* Page wrapper */
.wrap{
  max-width: var(--max, 1120px);
  margin-left:auto;
  margin-right:auto;
  padding: 28px 18px 60px;
}

/* ----- Core card system ----- */
.card{
  background: linear-gradient(180deg, var(--paper, rgba(255,255,255,.06)) 0%, var(--paper2, rgba(255,255,255,.09)) 100%);
  border: 1px solid var(--edge, rgba(255,255,255,.16));
  border-radius: 28px;
  box-shadow: var(--shadow, 0 20px 60px rgba(0,0,0,.45));
  overflow:hidden;
}
.pad{ padding: 22px; }

/* Typography (lightweight defaults so index doesn’t look unstyled) */
h1{ margin:14px 0 10px; font-size: var(--h1, clamp(2.1rem, 2.8vw + 1rem, 3.4rem)); line-height:1.1; }
h2{ margin:0 0 10px; font-size: var(--h2, clamp(1.5rem, 1.3vw + 1rem, 2.1rem)); line-height:1.15; }
h3{ margin:0 0 8px; font-size: var(--h3, clamp(1.15rem, .6vw + 1rem, 1.35rem)); }
p{ margin:0 0 12px; color: var(--ink2, rgba(255,255,255,.74)); }
.lead{ font-size: 1.12em; color: var(--ink, rgba(255,255,255,.94)); opacity:1; }

a{ color:inherit; }
a:hover{ opacity:.92; }

/* ----- Hero layout (left card + portrait card) ----- */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 920px){
  .hero{ grid-template-columns: 1fr; }
}

/* Kicker pill */
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke, rgba(255,255,255,.14));
  background: var(--panel, rgba(255,255,255,.06));
  color: var(--muted, rgba(255,255,255,.70));
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  font-size: .95rem;
}
.dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent, #7bdcb5);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent, #7bdcb5) 25%, transparent);
}

/* CTA row */
.cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }

/* Meta pills (highlights) */
.meta{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color: var(--faint, rgba(255,255,255,.50));
  font-size: .95rem;
}
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--edge, rgba(255,255,255,.16));
  background: var(--panel2, rgba(255,255,255,.09));
  color: var(--ink, rgba(255,255,255,.94));
  font-weight: 500;
}

/* ----- Featured grid inside left card ----- */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px){
  .grid3{ grid-template-columns: 1fr; }
}
.mini{
  padding:18px;
  border-radius: 18px;
  border: 1px solid var(--stroke, rgba(255,255,255,.14));
  background: var(--panel, rgba(255,255,255,.06));
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  height:100%;
}
.mini p{ margin:0; }

/* ----- Portrait card ----- */
.portrait{
  height:100%;
  display:grid;
  grid-template-rows: auto 1fr;
}
.photo{
  aspect-ratio: 1 / 1;
  background: var(--panel2, rgba(255,255,255,.09));
  border-bottom: 1px solid var(--stroke, rgba(255,255,255,.14));
  position: relative;
}
.photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.badge{
  position:absolute;
  left:14px;
  bottom:14px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke, rgba(255,255,255,.14));
  background: var(--badge-bg, rgba(10,10,12,.55));
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  max-width: 90%;
}

/* ----- Split section (About + Current Note) ----- */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 920px){
  .split{ grid-template-columns: 1fr; }
}

/* ----- List + item rows ----- */
.list{ display:grid; gap: 10px; margin-top: 8px; }
.item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--stroke, rgba(255,255,255,.14));
  background: var(--panel, rgba(255,255,255,.06));
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.icon{
  width:36px; height:36px;
  border-radius: 14px;
  border: 1px solid var(--stroke, rgba(255,255,255,.14));
  background: var(--panel, rgba(255,255,255,.06));
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.item strong{ display:block; }
.item span{ color: var(--muted, rgba(255,255,255,.70)); }

/* ----- Buttons (match your themed gradients) ----- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--btn-g1, #2FA4A9) 0%, var(--btn-g2, #1B6B6E) 100%);
  color: var(--btn-text, rgba(255,255,255,.95));
  text-decoration:none;
  cursor:pointer;

  border: 1px solid rgba(255,255,255,.16);

  box-shadow:
    0 10px 28px rgba(0,0,0,.30),
    0 0 18px var(--btn-glow, rgba(47,164,169,.55));

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}
.btn:hover{
  background: linear-gradient(135deg, var(--btn-h1, #6A4FB3) 0%, var(--btn-h2, #3A2A70) 100%);
  transform: translateY(-2px);
  filter: brightness(1.10) saturate(1.10);
  box-shadow:
    0 16px 40px rgba(0,0,0,.45),
    0 0 22px var(--btn-hglow, rgba(106,79,179,.75));
}
.btn:active{ transform: translateY(0px) scale(.99); }

/* Footer */
footer{
  border-top: 1px solid var(--stroke, rgba(255,255,255,.14));
  padding: 22px 0 40px;
  color: var(--footer-text, rgba(255,255,255,.55));
}
footer .row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
/* Education helpers */
.section{
  margin-top: 18px;
  border: 1px solid var(--edge);
  background: var(--panel);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  padding: 18px;
}
.divider{
  margin: 16px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--edge) 70%, transparent), transparent);
}
.quote{
  padding: 14px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  border-radius: 12px;
  color: var(--ink);
  font-style: italic;
}
.img{
  width:100%;
  height:auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--edge);
}
.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
/* ============================================
   SECTION SURFACE CONTRAST BOOST (drop-in)
   Makes big section cards sync with theme colors
   ============================================ */

/* The big “background card” containers */
.page-hero,
.section,
.hero > .card,
main > .card {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper2) 100%) !important;
  border: 1px solid var(--edge) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.35) !important;
}

/* Optional: subtle inner lift so they never look flat */
.page-hero::before,
.section::before {
  content: "";
  display: block;
  height: 0;
}
.page-hero,
.section {
  position: relative;
  overflow: hidden;
}

.page-hero::after,
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 240px at 15% 0%, var(--bg-glow1), transparent 60%),
    radial-gradient(900px 240px at 85% 0%, var(--bg-glow2), transparent 60%);
  opacity: .35;
  pointer-events: none;
}
/* ============================================
   EDUCATION PAGE — SIDE BY SIDE CARDS
   ============================================ */

/* Base grid */
.grid.two{
  display: grid !important;
  grid-template-columns: 1fr; /* mobile first */
  gap: 18px !important;
  align-items: stretch;
}

/* Desktop: split into two columns */
@media (min-width: 900px){
  .grid.two{
    grid-template-columns: 1fr 1fr !important;
  }
}
/* Make education cards equal height and elegant */
.grid.two > .card{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
}
/* ===== Education: Official Education side-by-side ===== */
.grid.two{
  display: grid !important;
  grid-template-columns: 1fr !important; /* mobile default */
  gap: 18px !important;
  align-items: stretch;
}

@media (min-width: 900px){
  .grid.two{
    grid-template-columns: 1fr 1fr !important;
  }
}
.grid.two > .card{
  height: 100%;
}