/* =========================================================
   Pranav Sanvatsarkar — personal site
   Theme: "Fresh" — airy white & mint, teal primary,
          coral warmth, lime highlights.
   Change the palette here in :root.
   ========================================================= */

/* Self-hosted variable fonts (SIL Open Font License) */
@font-face { font-family: "Sora"; src: url("../fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* Brand */
  --teal-900: #0A3D3A;
  --teal-800: #0B5550;
  --teal-700: #0F766E;          /* primary (AA on white) */
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-100: #CCFBF1;
  --aqua: #67E8F9;
  --coral: #FF6B57;
  --coral-ink: #D9432F;         /* coral text on light (AA large) */
  --coral-100: #FFE4DE;
  --lime: #BEF264;
  --lime-300: #D9F99D;
  --lime-ink: #3F7A0E;
  --sun: #FFC94D;
  --sun-100: #FFF3D1;
  --violet: #8B7CF6;

  /* Neutrals */
  --paper: #FAFCF9;
  --paper-2: #EEF7F3;           /* mint tint */
  --card: #FFFFFF;
  --ink: #10222B;
  --ink-2: #314651;
  --muted: #5E717B;
  --line: #DCE9E4;

  /* Text on teal surfaces */
  --on-teal: #FFFFFF;
  --on-teal-muted: #D3F5EF;

  --grad-hero: radial-gradient(1000px 600px at 95% 0%, rgba(103,232,249,.34), transparent 60%),
               radial-gradient(800px 500px at 20% 0%, rgba(20,184,166,.10), transparent 60%),
               radial-gradient(380px 260px at 0% 100%, rgba(190,242,100,.40), transparent 70%),
               radial-gradient(320px 220px at 70% 105%, rgba(255,107,87,.16), transparent 70%),
               linear-gradient(180deg, #F4FCFA 0%, #FBFDFC 100%);
  --grad-teal: linear-gradient(120deg, #0F766E 0%, #0D9488 45%, #14B8A6 100%);
  --grad-btn: linear-gradient(120deg, #0F766E, #0D9488);

  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(16,34,43,.05), 0 8px 24px rgba(15,118,110,.07);
  --shadow-lg: 0 24px 60px rgba(15,118,110,.18);
  --max: 1160px;
  --read: 720px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 .5em; font-optical-sizing: auto; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: var(--read); }
.kicker {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700); display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem; font-weight: 500;
}
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--coral), var(--sun)); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.hl { background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 .08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.35em; border-radius: 999px;
  font: 600 .98rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); }
/* primary (class name kept for compatibility) */
.btn-lime { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 22px rgba(13,148,136,.32); }
.btn-lime:hover { filter: brightness(1.08); box-shadow: 0 10px 26px rgba(13,148,136,.4); }
.btn-ghost { border-color: var(--teal-700); color: var(--teal-800); background: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--teal-800); }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; width: 100%;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; height: auto; padding: .55rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; border: 2px solid var(--teal-500); }
.brand b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.brand small { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; color: var(--teal-700); text-transform: uppercase; }
.id-chip { display: inline-flex; align-items: center; gap: .75rem; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-decoration: none; color: inherit; flex-shrink: 1; min-width: 0; }
.id-chip .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal-500); box-shadow: none; flex-shrink: 0; }
.id-chip b { display: block; font-family: var(--font-display); font-size: .98rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.id-chip span { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); display: inline-block; flex-shrink: 0; animation: pulse 1.6s infinite; }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav a { text-decoration: none; font-size: .93rem; padding: .5em .8em; border-radius: 999px; color: var(--ink-2); transition: color .15s, background .15s; }
.nav a:hover { color: var(--teal-800); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--teal-800); background: var(--teal-100); font-weight: 600; }
.nav .btn { margin-left: .6rem; padding: .62em 1.1em; color: #fff; }
.nav .btn:hover, .nav .btn[aria-current="page"] { color: #fff; background: var(--grad-btn); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: .5rem; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff;
    padding: 1rem var(--gutter) 1.5rem; gap: .2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .8em 1em; font-size: 1.05rem; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; }
}
@media (max-width: 520px) {
  .id-chip { gap: .55rem; }
  .id-chip .avatar { width: 40px; height: 40px; }
  .id-chip b { font-size: .88rem; }
  .id-chip span { font-size: .64rem; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
/* ".dark" = feature surface (now light & fresh) */
.dark { background: var(--paper-2); color: var(--ink); }
.dark .lead { color: var(--ink-2); }
.tint { background: linear-gradient(180deg, #FFF8EC, #FFFDF8); }
.blueprint {
  background-image:
    linear-gradient(rgba(15,118,110,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,118,110,.035) 1px, transparent 1px),
    var(--grad-hero);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-color: var(--paper);
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.section-head p { margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; font-weight: 800; background: linear-gradient(100deg, var(--teal-600) 0%, var(--teal-500) 35%, var(--coral) 75%, #FF9A6B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.portrait { position: relative; max-width: 400px; justify-self: end; width: 100%; }
.portrait::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--lime), var(--teal-500) 55%, var(--aqua));
}
.portrait::after {
  content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; right: -30px; top: -22px;
  background: var(--coral); opacity: .9; box-shadow: 0 10px 30px rgba(255,107,87,.4);
}
.portrait img { position: relative; z-index: 1; border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.portrait .tag {
  position: absolute; z-index: 2; left: -22px; bottom: 28px; background: #fff; color: var(--ink); border-radius: 14px;
  padding: .65rem .9rem; box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.3; border: 1px solid var(--line);
}
.portrait .tag b { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--coral-ink); text-transform: uppercase; }
.meta-line { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 2.2rem; }
.meta-line span::before { content: "● "; color: var(--teal-500); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 300px; order: -1; margin-left: 4px; }
  .portrait::after { width: 54px; height: 54px; right: -14px; }
  .portrait .tag { left: auto; right: -10px; bottom: -14px; }
}

/* ---------- Impact stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: #fff; padding: 1.5rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c, var(--teal-500)); }
.stat:nth-child(1) { --c: var(--teal-500); } .stat:nth-child(2) { --c: var(--coral); }
.stat:nth-child(3) { --c: var(--lime); } .stat:nth-child(4) { --c: var(--sun); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; color: var(--teal-700); line-height: 1; margin-bottom: .45rem; }
.stat:nth-child(2) b { color: var(--coral-ink); } .stat:nth-child(3) b { color: var(--lime-ink); } .stat:nth-child(4) b { color: #B7791F; }
.stat span { font-size: .92rem; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.hero + .dark { background: var(--paper); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); position: relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card { text-decoration: none; display: flex; flex-direction: column; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16,34,43,.05), 0 20px 44px rgba(15,118,110,.14); border-color: var(--teal-500); }
.card .ico { font-size: 1.7rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--teal-100); margin-bottom: 1.1rem; }
.grid > .card:nth-child(4n+2) .ico { background: var(--coral-100); }
.grid > .card:nth-child(4n+3) .ico { background: var(--lime-300); }
.grid > .card:nth-child(4n+4) .ico { background: var(--sun-100); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 1.2rem; font-weight: 600; font-size: .92rem; color: var(--teal-700); }

.help-card ul { list-style: none; padding: 0; margin: 1rem 0 0; font-size: .92rem; color: var(--ink-2); }
.help-card li { padding: .3rem 0 .3rem 1.4rem; position: relative; }
.help-card li::before { content: "→"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.who { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .6rem; }

/* ---------- Principles ---------- */
.principles { counter-reset: p; display: grid; gap: .9rem; }
.principle { display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; padding: 1.4rem 1.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.principle::before { counter-increment: p; content: "0" counter(p); font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.1rem; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-teal); }
.principle:nth-child(2)::before { background: linear-gradient(135deg, var(--coral), #FF9A6B); }
.principle:nth-child(3)::before { background: linear-gradient(135deg, #7CC21C, var(--lime)); color: var(--ink); }
.principle h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.principle p { color: var(--muted); margin: 0; max-width: 64ch; }
@media (max-width: 640px) { .principle { grid-template-columns: 1fr; gap: .7rem; } }

/* ---------- Post cards ---------- */
.post-card .type { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .45em; margin-bottom: .9rem; color: var(--teal-700); font-weight: 500; }
.post-card .type i { font-style: normal; font-size: 1rem; }
.post-card[data-type="lesson"] .type { color: var(--coral-ink); }
.post-card[data-type="tech"] .type { color: var(--teal-700); }
.post-card[data-type="cert"] .type { color: #A86A00; }
.post-card[data-type="case"] .type { color: #5B4BD6; }
.post-card h3 { font-size: 1.28rem; }
.post-card .foot { margin-top: auto; padding-top: 1.2rem; display: flex; gap: 1rem; font-size: .82rem; color: var(--muted); font-family: var(--font-mono); }
.post-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.pill { font-size: .74rem; padding: .25em .7em; border-radius: 999px; background: var(--paper-2); color: var(--teal-800); border: 1px solid var(--line); white-space: nowrap; }
.post-card.featured { grid-column: span 2; background: var(--grad-teal); border-color: transparent; color: #fff; overflow: hidden; }
.post-card.featured::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; bottom: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(190,242,100,.55), transparent 70%); }
.post-card.featured h3 { color: #fff; font-size: 1.75rem; }
.post-card.featured p, .post-card.featured .foot { color: var(--on-teal-muted); }
.post-card.featured .type { color: var(--lime); }
.post-card.featured .pill { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.25); color: #fff; }
@media (max-width: 640px) { .post-card.featured { grid-column: auto; } }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  font: 500 .9rem/1 var(--font-body); padding: .65em 1.05em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); transition: .15s;
  display: inline-flex; gap: .45em; align-items: center;
}
.chip:hover { border-color: var(--teal-500); color: var(--teal-800); }
.chip[aria-pressed="true"] { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.chip .n { font-family: var(--font-mono); font-size: .75rem; opacity: .7; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin: 0; }

/* ---------- Timeline ---------- */
.tl-legend { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.timeline { position: relative; padding: 1rem 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(var(--lime), var(--teal-500) 35%, var(--aqua) 65%, var(--coral)); transform: translateX(-1.5px); }
.tl-year { position: relative; text-align: center; margin: 2.2rem 0 1.6rem; z-index: 1; }
.tl-year span { display: inline-block; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .1em; background: var(--grad-teal); color: #fff; padding: .4em 1em; border-radius: 999px; box-shadow: 0 6px 16px rgba(13,148,136,.3); }
.tl-item { position: relative; width: 50%; padding: 0 3rem 2.2rem 0; }
.tl-item.right { margin-left: 50%; padding: 0 0 2.2rem 3rem; }
.tl-node {
  position: absolute; top: .4rem; right: -25px; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.35rem; background: var(--card);
  border: 3px solid var(--teal-500); box-shadow: 0 0 0 6px var(--paper); z-index: 2;
}
.tl-item.right .tl-node { right: auto; left: -25px; }
.tl-item[data-kind="cert"] .tl-node { border-color: var(--lime-ink); background: var(--lime-300); }
.tl-item[data-kind="career"] .tl-node { border-color: var(--teal-500); background: var(--teal-100); }
.tl-item[data-kind="edu"] .tl-node { border-color: var(--sun); background: var(--sun-100); }
.tl-item[data-kind="milestone"] .tl-node { border-color: var(--coral); background: var(--coral-100); }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); border-top: 4px solid var(--teal-500); }
.tl-item[data-kind="cert"] .tl-card { border-top-color: var(--lime); }
.tl-item[data-kind="edu"] .tl-card { border-top-color: var(--sun); }
.tl-item[data-kind="milestone"] .tl-card { border-top-color: var(--coral); }
.tl-card .when { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .45rem; }
.tl-card .when .k { color: var(--teal-700); text-transform: uppercase; letter-spacing: .12em; }
.tl-card h3 { font-size: 1.18rem; margin-bottom: .2rem; }
.tl-card .org { font-weight: 600; color: var(--ink-2); font-size: .95rem; margin-bottom: .6rem; }
.tl-card p { font-size: .95rem; color: var(--muted); margin-bottom: .7rem; }
.tl-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tl-card .todo { display: inline-block; font-size: .72rem; background: var(--sun-100); color: #7A5A00; border: 1px dashed var(--sun); border-radius: 6px; padding: .1em .5em; }
.tl-item.hide { display: none; }
@media (max-width: 760px) {
  .timeline::before { left: 25px; }
  .tl-year { text-align: left; }
  .tl-item, .tl-item.right { width: 100%; margin-left: 0; padding: 0 0 1.8rem 70px; }
  .tl-node, .tl-item.right .tl-node { left: 0; right: auto; }
}

/* ---------- Certifications ---------- */
.cert-card { display: flex; flex-direction: column; }
.cert-badge {
  width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; font-size: 1.9rem;
  background: linear-gradient(135deg, var(--teal-100), #E0F7FF); margin-bottom: 1.1rem; box-shadow: inset 0 0 0 2px rgba(20,184,166,.35);
}
.grid > .flip:nth-child(3n+2) .cert-badge { background: linear-gradient(135deg, var(--coral-100), #FFF1E6); box-shadow: inset 0 0 0 2px rgba(255,107,87,.3); }
.grid > .flip:nth-child(3n+3) .cert-badge { background: linear-gradient(135deg, var(--lime-300), #F2FDE0); box-shadow: inset 0 0 0 2px rgba(124,194,28,.35); }
.cert-card .lvl { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .4rem; }
.cert-card .focus { font-size: .9rem; color: var(--ink-2); margin-top: .8rem; background: var(--paper-2); border-radius: 10px; padding: .7rem .8rem; }
.cert-card .focus b { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-ink); display: block; margin-bottom: .3rem; }
.soon { font-size: .78rem; color: var(--muted); margin-top: auto; padding-top: 1.1rem; font-family: var(--font-mono); }

/* ---------- Hobbies ---------- */
.hobby { display: grid; grid-template-columns: 140px 1fr; gap: 2rem; padding: 2.4rem 0; border-top: 1px solid var(--line); align-items: start; }
.hobby .big {
  width: 140px; height: 140px; display: grid; place-items: center; overflow: hidden;
  border-radius: 30px; background: var(--teal-100); box-shadow: var(--shadow); border: 3px solid #fff;
}
.hobby .big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hobby:nth-child(2) .big { background: var(--lime-300); }
.hobby:nth-child(3) .big { background: var(--coral-100); }
.hobby:nth-child(4) .big { background: var(--sun-100); }
.hobby h2 { font-size: 2rem; margin-bottom: .2rem; }
.hobby .sub { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 1rem; }
.hobby p { max-width: 64ch; color: var(--ink-2); }
.hobby .lesson { border-left: 4px solid var(--coral); padding: .2rem 0 .2rem 1rem; color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; margin-top: 1rem; }
@media (max-width: 640px) { .hobby { grid-template-columns: 1fr; gap: 1rem; } .hobby .big { width: 96px; height: 96px; border-radius: 22px; } }

/* ---------- Conversation form ---------- */
.convo-wrap { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .convo-wrap { grid-template-columns: 1fr; } }
.letter { background: var(--card); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative; }
.letter::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 5px; border-radius: 0 5px 5px 0; background: linear-gradient(var(--lime), var(--teal-500), var(--coral)); }
.letter .salute { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1rem; }
.prose-form { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 2.25; color: var(--ink); }
.prose-form p { margin: 0 0 1.1rem; }
.inline-in {
  font: inherit; font-family: var(--font-body); font-size: .82em; color: var(--teal-800); font-weight: 500;
  border: 0; border-bottom: 2px dashed #A9CFC6; background: transparent; padding: 0 .2em .05em; min-width: 8ch;
  transition: border-color .15s, background .15s; border-radius: 4px 4px 0 0;
}
.inline-in:focus { outline: none; border-bottom-color: var(--teal-600); border-bottom-style: solid; background: var(--teal-100); }
.inline-in::placeholder { color: #93A6AE; font-weight: 400; }
select.inline-in { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 1.2em; background-image: linear-gradient(45deg, transparent 50%, var(--teal-700) 50%), linear-gradient(135deg, var(--teal-700) 50%, transparent 50%); background-position: right .35em top 55%, right .05em top 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.w-s { width: 12ch; } .w-m { width: 18ch; } .w-l { width: 24ch; }
@media (max-width: 640px) { .w-s, .w-m, .w-l { width: 100%; } }
.topic-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 1.4rem; font-family: var(--font-body); line-height: 1.2; }
.topic-chips label { cursor: pointer; }
.topic-chips input { position: absolute; opacity: 0; pointer-events: none; }
.topic-chips span { display: inline-flex; gap: .4em; align-items: center; font-size: .9rem; padding: .55em .95em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); transition: .15s; }
.topic-chips span:hover { border-color: var(--teal-500); }
.topic-chips input:checked + span { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.topic-chips input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.prose-form textarea.inline-in { display: block; width: 100%; min-height: 120px; border: 1.5px dashed #A9CFC6; border-radius: 12px; padding: .8rem 1rem; line-height: 1.6; font-size: 1rem; resize: vertical; }
.prose-form textarea.inline-in:focus { border-style: solid; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; font-family: var(--font-body); }
.form-foot small { color: var(--muted); font-size: .85rem; line-height: 1.5; max-width: 40ch; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; font-family: var(--font-body); font-size: .95rem; }
.form-status.err { color: #B42318; }
.sent { text-align: center; padding: 2rem 1rem; }
.sent .big { font-size: 3rem; }
.side-panel { background: var(--grad-teal); color: var(--on-teal); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); position: sticky; top: 92px; overflow: hidden; }
.side-panel::after { content: ""; position: absolute; width: 200px; height: 200px; right: -70px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(190,242,100,.5), transparent 70%); pointer-events: none; }
.side-panel h3 { color: #fff; }
.side-panel .btn-lime { background: #fff; color: var(--teal-800); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.next-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.next-steps li { position: relative; padding: 0 0 1.5rem 3.2rem; color: var(--on-teal-muted); font-size: .97rem; }
.next-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-family: var(--font-mono); font-size: .85rem; font-weight: 600; }
.next-steps b { color: #fff; display: block; font-weight: 600; }

/* ---------- Article ---------- */
.article-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.article-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-top: 1.6rem; align-items: center; }
.article-meta img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--teal-500); }
.article-body { padding: clamp(40px, 6vw, 72px) 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--read)) 240px; gap: 64px; justify-content: center; }
@media (max-width: 1040px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.prose { font-size: 1.08rem; color: var(--ink-2); }
.prose h2 { font-size: 1.85rem; margin: 2.4em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.prose a { color: var(--teal-700); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal-600); }
.prose blockquote { margin: 2em 0; padding: 1.1em 1.4em; border-left: 5px solid var(--coral); background: linear-gradient(90deg, var(--coral-100), rgba(255,228,222,0)); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.45; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--teal-100); color: var(--teal-900); padding: .1em .35em; border-radius: 5px; }
.prose pre { background: var(--teal-900); color: #E6FFFA; padding: 1.2rem 1.4rem; border-radius: var(--radius); overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .7em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-800); font-weight: 500; background: var(--paper-2); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.callout { border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.8em 0; border: 1px solid var(--line); background: var(--card); font-size: 1rem; }
.callout b:first-child { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .35rem; }
.callout.do { border-left: 5px solid #65A30D; background: #F7FEE7; }
.callout.do b:first-child { color: var(--lime-ink); }
.callout.dont { border-left: 5px solid var(--coral); background: #FFF5F2; }
.callout.dont b:first-child { color: var(--coral-ink); }
.callout.note { border-left: 5px solid var(--teal-500); background: #F0FDFA; }
.callout.note b:first-child { color: var(--teal-700); }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8em 0; }
.dodont .callout { margin: 0; }
.dodont ul { margin: .2em 0 0; padding-left: 1.1em; font-size: .97rem; }
@media (max-width: 640px) { .dodont { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 96px; align-self: start; font-size: .88rem; }
.toc b { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .8rem; }
.toc a { display: block; text-decoration: none; color: var(--muted); padding: .35rem 0 .35rem .9rem; border-left: 3px solid var(--line); line-height: 1.4; }
.toc a:hover, .toc a.on { color: var(--teal-800); border-left-color: var(--teal-500); }

/* Case-study specifics */
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.cs-facts div { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.cs-facts b { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); font-weight: 500; margin-bottom: .2rem; }
.cs-facts span { color: var(--ink); font-size: .95rem; }
@media (max-width: 760px) { .cs-facts { grid-template-columns: repeat(2, 1fr); } }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.8em 0; }
.outcomes div { background: var(--grad-teal); border-radius: var(--radius); padding: 1.2rem; }
.outcomes div:nth-child(2) { background: linear-gradient(120deg, #E8513D, var(--coral) 60%, #FF9A6B); }
.outcomes div:nth-child(3) { background: linear-gradient(120deg, #3F7A0E, #65A30D 60%, #84CC16); }
.outcomes b { display: block; font-family: var(--font-display); font-size: 2.3rem; color: #fff; font-weight: 600; line-height: 1; margin-bottom: .4rem; }
.outcomes span { color: rgba(255,255,255,.92); font-size: .9rem; line-height: 1.45; display: block; }
@media (max-width: 640px) { .outcomes { grid-template-columns: 1fr; } }
.diagram { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1rem 1rem; margin: 1.6em 0; overflow-x: auto; }
.diagram .cap { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: .8rem .4rem 0; }
.diagram .mermaid { display: flex; justify-content: center; min-width: 560px; }
.diagram .mermaid svg { max-width: 100%; height: auto; }
.prose pre.mermaid { background: none; color: var(--ink); padding: 0; border-radius: 0; overflow: visible; font-size: 14px; line-height: 1.3; white-space: pre; }
.prose pre.mermaid:not([data-processed]) { color: transparent; min-height: 200px; }

.author-box { display: flex; gap: 1.2rem; align-items: center; background: var(--paper-2); border-radius: var(--radius); padding: 1.4rem; margin-top: 3rem; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: var(--shadow); }
.author-box p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.author-box a { color: var(--teal-700); font-weight: 600; }

/* ---------- CTA band (bold teal moment) ---------- */
.cta-band.dark { background: var(--grad-teal); color: #fff; position: relative; overflow: hidden; }
.cta-band.dark::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(190,242,100,.45), transparent 70%); }
.cta-band.dark::after { content: ""; position: absolute; width: 300px; height: 300px; left: -100px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,87,.35), transparent 70%); }
.cta-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 .4rem; }
.cta-band .lead { color: var(--on-teal-muted); margin: 0; }
.cta-band .kicker { color: var(--lime); }
.cta-band .btn-lime { background: #fff; color: var(--teal-800); box-shadow: 0 10px 26px rgba(0,0,0,.15); }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #B6DCD6; padding: 56px 0 32px; font-size: .92rem; border-top: 4px solid; border-image: linear-gradient(90deg, var(--lime), var(--teal-500), var(--aqua), var(--coral)) 1; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); font-weight: 500; margin-bottom: 1rem; }
.foot-grid a { display: block; text-decoration: none; padding: .2rem 0; color: #B6DCD6; }
.foot-grid a:hover { color: #fff; }
.foot-grid a.brand { display: flex; padding: 0; }
.foot-grid .brand b { color: #fff; }
.foot-grid .brand small { color: var(--lime); }
.foot-bottom { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; display: grid !important; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); padding: 0 !important; color: #fff; }
.socials a:hover { background: var(--lime); color: var(--ink) !important; }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Utilities / motion ---------- */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: rise .75s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--d, 0) * 80ms); }
.reveal.in.from-left { animation-name: slideL; } .reveal.in.from-right { animation-name: slideR; }
@keyframes slideL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes slideR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.in { opacity: 1; animation: none; } html { scroll-behavior: auto; } }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .center { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.mini-tl { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--teal-100); }
.mini-tl li { position: relative; padding: 0 0 1.3rem 1.6rem; }
.mini-tl li::before { content: ""; position: absolute; left: -8.5px; top: .4rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-500); }
.mini-tl li:nth-child(even)::before { border-color: var(--coral); }
.mini-tl b { display: block; font-family: var(--font-mono); font-size: .76rem; color: var(--teal-700); letter-spacing: .06em; }
.mini-tl span { color: var(--ink-2); }

/* =========================================================
   v3 — modern hero, motion & varied card styles
   ========================================================= */
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.12); } 100% { transform: translate(0,0) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20,184,166,.55); } 100% { box-shadow: 0 0 0 10px rgba(20,184,166,0); } }

.anim-in { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { grid-template-columns: 1.15fr .85fr; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; animation: drift 18s ease-in-out infinite; }
.blob.b1 { width: 380px; height: 380px; background: #67E8F9; right: 4%; top: -80px; }
.blob.b2 { width: 300px; height: 300px; background: #BEF264; left: -80px; bottom: -60px; animation-duration: 22s; opacity: .45; }
.blob.b3 { width: 220px; height: 220px; background: #FFB4A6; left: 45%; bottom: -90px; animation-duration: 26s; opacity: .45; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: -.045em; line-height: 1.04; }
.rotator { font-family: var(--font-mono); font-size: clamp(.95rem, 1.6vw, 1.1rem); color: var(--ink-2); margin: 0 0 1.2rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-height: 1.8em; }
.rotator .prompt { color: var(--coral); font-weight: 600; }
.rotator .rot { color: #fff; background: var(--teal-700); padding: .15em .55em; border-radius: 8px; font-weight: 600; }
.caret { width: 10px; height: 1.2em; background: var(--teal-600); animation: blink 1s steps(1) infinite; border-radius: 2px; margin-left: -2px; }
.hero-banner { position: relative; justify-self: end; width: 100%; max-width: 440px; }
.hero-banner .frame { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); border: 5px solid #fff; transform: rotate(1.5deg); transition: transform .5s ease; }
.hero-banner:hover .frame { transform: rotate(0deg) scale(1.01); }
.hero-banner .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,61,58,.45)); }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner::before { content: ""; position: absolute; inset: -14px 18px 26px -18px; border-radius: 34px; background: conic-gradient(from 140deg, var(--lime), var(--teal-500), var(--aqua), var(--coral), var(--lime)); z-index: -1; filter: saturate(1.1); opacity: .85; transform: rotate(-4deg); }
.float-chip { position: absolute; display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.9); border-radius: 16px; padding: .6rem .85rem; box-shadow: 0 14px 34px rgba(16,34,43,.16); font-size: .8rem; color: var(--muted); line-height: 1.25; animation: floaty 5s ease-in-out infinite; z-index: 2; }
.float-chip span { font-size: 1.3rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-100); }
.float-chip b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
.float-chip.c1 { left: -46px; top: 14%; }
.float-chip.c2 { right: -26px; top: calc(46% + 70px); animation-delay: -1.6s; } .float-chip.c2 span { background: var(--lime-300); }
.float-chip.c3 { left: -30px; bottom: 9%; animation-delay: -3.2s; } .float-chip.c3 span { background: var(--coral-100); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-banner { justify-self: center; max-width: 340px; order: -1; margin: 0 auto 1rem; }
  .hero-banner .frame { aspect-ratio: 1 / 1; }
  .hero-banner { max-width: 300px; }
  .float-chip { font-size: .72rem; padding: .45rem .65rem; }
  .float-chip span { width: 30px; height: 30px; font-size: 1rem; }
  .float-chip.c1 { left: -14px; top: auto; bottom: -18px; } .float-chip.c2 { right: -14px; top: -16px; } .float-chip.c3 { display: none; }
}

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; padding: 18px 0; margin-top: -26px; position: relative; z-index: 3; }
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding: .95rem 0; transform: rotate(-1.2deg); margin: 0 -40px; box-shadow: 0 10px 30px rgba(16,34,43,.18); position: relative; z-index: 3; }
.marquee .track { display: flex; width: max-content; gap: 2.4rem; animation: marquee 38s linear infinite; font-family: var(--font-mono); font-size: .92rem; letter-spacing: .02em; }
.marquee .track span { display: inline-flex; align-items: center; gap: 2.4rem; white-space: nowrap; }
.marquee .track span::after { content: "✦"; color: var(--lime); }
.marquee:hover .track { animation-play-state: paused; }
.stats-sec { padding: clamp(56px, 7vw, 88px) 0 0; }
.stat { transition: transform .3s ease, box-shadow .3s ease; }
.stat:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(15,118,110,.16); }
.stat b { font-variant-numeric: tabular-nums; letter-spacing: -.04em; font-weight: 800; }


/* ---------- Spotlight + glow-border cards ---------- */
.spot { overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(20,184,166,.13), transparent 45%); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--teal-500), var(--coral) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before, .spot:hover::after { opacity: 1; }
.tilt { transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.help-card { border-radius: 22px; }
.help-card:hover { box-shadow: 0 24px 50px rgba(15,118,110,.16); }

/* ---------- Principles: terminal style ---------- */
.principle { position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.principle:hover { transform: translateX(8px); box-shadow: 0 18px 40px rgba(15,118,110,.14); }
.principle h3 { font-size: 1.25rem; }

/* ---------- Post cards: covers + bento ---------- */
.post-card { padding: 0; overflow: hidden; border-radius: 22px; }
.post-card .body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card .cover { height: 130px; position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 1rem 1.2rem; overflow: hidden; }
.post-card .cover i { font-style: normal; font-size: 2.6rem; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .cover i { transform: translateY(-6px) rotate(-8deg) scale(1.1); }
.post-card .cover .cv-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.85); color: var(--ink); padding: .35em .7em; border-radius: 999px; }
.cv-case { background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.35) 1.5px, transparent 0) 0 0/14px 14px, linear-gradient(135deg, #6D5DF6, #8B7CF6 50%, #67E8F9); }
.cv-tech { background: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px) 0 0/18px 18px, linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px) 0 0/18px 18px, linear-gradient(135deg, #0F766E, #14B8A6 60%, #67E8F9); }
.cv-lesson { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 10px, transparent 10px 22px), linear-gradient(135deg, #FF6B57, #FF9A6B 55%, #FFC94D); }
.cv-cert { background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.4) 0 18px, transparent 19px), radial-gradient(circle at 20% 90%, rgba(255,255,255,.25) 0 30px, transparent 31px), linear-gradient(135deg, #65A30D, #A3E635 60%, #FFC94D); }
.post-card .type { margin-bottom: .7rem; }
.post-card.featured { background: #fff; color: inherit; border: 1px solid var(--line); }
.post-card.featured::after { display: none; }
.post-card.featured .cover { height: 190px; }
.post-card.featured .cover i { font-size: 4.4rem; }
.post-card.featured h3 { color: var(--ink); font-size: 1.6rem; }
.post-card.featured p { color: var(--muted); } .post-card.featured .foot { color: var(--muted); }
.post-card.featured .type { color: #5B4BD6; }
.post-card.featured .pill { background: var(--paper-2); border-color: var(--line); color: var(--teal-800); }
.post-card.featured .body { flex: 1; }

/* ---------- Flip cards (certifications) ---------- */
.flip { perspective: 1200px; outline: none; }
.flip-inner { display: grid; height: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.flip:hover .flip-inner, .flip:focus-within .flip-inner, .flip.flipped .flip-inner { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; }
.face.back { transform: rotateY(180deg); background: var(--grad-teal); color: #fff; border-color: transparent; }
.face.back h3 { color: #fff; font-size: 1.1rem; }
.face.back .focus { background: rgba(255,255,255,.14); color: #fff; font-size: .95rem; }
.face.back .focus b { color: var(--lime); }
.face.back .soon, .face.back .more { color: var(--on-teal-muted); }
.face.back .more { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.flip-hint { margin-top: auto; padding-top: 1rem; font-family: var(--font-mono); font-size: .72rem; color: var(--teal-700); letter-spacing: .04em; }
.cert-card .cert-badge { transition: transform .5s ease; }

/* ---------- Timeline life milestones ---------- */
.tl-item[data-kind="life"] .tl-node { border-color: #F472B6; background: #FDF2F8; }
.tl-item[data-kind="life"] .tl-card { border-top-color: #F472B6; background: linear-gradient(135deg, #FFF7FB, #FFFFFF 60%); }
.tl-item[data-kind="life"] .tl-card .when .k { color: #BE185D; }
.tl-card { transition: transform .3s ease, box-shadow .3s ease; }
.tl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,118,110,.14); }
.tl-node { transition: transform .3s ease; }
.tl-item:hover .tl-node { transform: scale(1.12) rotate(-6deg); }

/* ---------- Hobby cards ---------- */
.hobby .big { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.hobby:hover .big { transform: rotate(-8deg) scale(1.06); }

/* ---------- Reading progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); z-index: 60; background: linear-gradient(90deg, var(--lime), var(--teal-500), var(--coral)); }

/* ---------- Buttons ---------- */
.btn-lime { position: relative; overflow: hidden; }
.btn-lime::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn-lime:hover::after { left: 120%; }

@media (prefers-reduced-motion: reduce) {
  .anim-in { animation: none; opacity: 1; }
  .blob, .float-chip, .marquee .track, .caret, .live, .hero h1 em { animation: none !important; }
  .flip-inner { transition: none; }
}

@media (hover: none) { .flip-hint { font-size: 0; } .flip-hint::after { content: "↻ tap to see my focus"; font-size: .72rem; } }
