/* ==========================================================================
   Sahar Cane — personal brand site
   Shared styles for index.html, writing.html and articles/*.html
   ========================================================================== */

:root {
  --bg: #f6f1e9;
  --bg-alt: #efe7da;
  --surface: #fffaf2;
  --ink: #16120f;
  --ink-soft: #4a423b;
  --muted: #7a6f65;
  --line: rgba(22, 18, 15, 0.12);
  --ember: #e4572e;
  --ember-deep: #c2411c;
  --amber: #f2a541;
  --glow: rgba(242, 165, 65, 0.28);
  --dark: #15110e;
  --dark-ink: #f6efe4;
  --dark-soft: #b9ab9b;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 18, 15, 0.06), 0 12px 32px -12px rgba(22, 18, 15, 0.18);
}

:root[data-theme="dark"] {
  --bg: #110e0c;
  --bg-alt: #1a1512;
  --surface: #1f1916;
  --ink: #f6efe4;
  --ink-soft: #cfc3b5;
  --muted: #9a8d80;
  --line: rgba(246, 239, 228, 0.12);
  --ember: #ff6a3d;
  --ember-deep: #ff8660;
  --glow: rgba(242, 165, 65, 0.16);
  --dark: #0b0908;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--amber); color: #16120f; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
em.accent, .accent { font-style: italic; color: var(--ember); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

section { padding: 120px 0; position: relative; }
@media (max-width: 760px) { section { padding: 80px 0; } }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  border: 2px solid transparent; cursor: pointer;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ember); color: #fff; box-shadow: 0 10px 24px -10px var(--ember); }
.btn-primary:hover { background: var(--ember-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--ember); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.93rem; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn { padding: 10px 20px; font-size: 0.9rem; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .25s, opacity .25s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-links .btn { display: inline-flex; margin-top: 10px; padding: 12px 22px; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at center, var(--glow), transparent 62%);
  pointer-events: none; z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: 1.0; letter-spacing: -0.035em; margin-bottom: 28px; }
.hero h1 em { font-style: italic; color: var(--ember); font-weight: 500; }
.hero .lede { margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.tagline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.01em; color: var(--ink-soft);
  margin: 0 0 14px; display: flex; align-items: center; gap: 14px;
}
.tagline::before { content: ""; width: 36px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--amber), var(--ember)); }
.tagline span { color: var(--ember); }
.hero-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
}

.portrait { position: relative; }
.portrait-frame {
  position: relative; border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.stat-float {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 0.82rem; line-height: 1.3; color: var(--ink-soft);
  animation: bob 6s ease-in-out infinite;
}
.stat-float strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; }
.stat-float.a { left: -36px; top: 18%; }
.stat-float.b { right: -24px; bottom: 14%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait { max-width: 420px; margin: 0 auto; width: 100%; }
  .stat-float.a { left: -8px; }
  .stat-float.b { right: -8px; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--dark); color: var(--dark-ink);
  padding: 22px 0; overflow: hidden; white-space: nowrap;
  transform: rotate(-1.2deg); margin: 0 -2%; width: 104%;
}
.marquee-track { display: inline-flex; gap: 40px; animation: scroll 38s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 1.6rem; font-style: italic; }
.marquee-track span.dot { color: var(--amber); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.story-body p { font-size: 1.1rem; color: var(--ink-soft); }
.manifesto {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; font-weight: 500;
  border-left: 3px solid var(--ember); padding-left: 24px; margin: 0;
}
.manifesto em { color: var(--ember); }
.manifesto cite { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.manifesto cite::before { content: "— "; }
.story-side { position: sticky; top: 104px; }
.story-open { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem) !important; line-height: 1.35; color: var(--ink) !important; letter-spacing: -0.01em; }
.story-body .aside { font-style: italic; color: var(--muted); }
.story-h { font-size: 1.6rem; margin: 44px 0 14px; }
.story-body .manifesto { margin-top: 36px; }

.bison {
  margin-top: 88px;
  padding: 56px; border-radius: 28px;
  background: linear-gradient(135deg, #2a1a12, #16120f 70%); color: var(--dark-ink);
  position: relative; overflow: hidden;
}
.bison::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 165, 65, 0.25), transparent 65%); pointer-events: none;
}
.bison .eyebrow { color: var(--amber); }
.bison-lead { color: var(--dark-soft); font-size: 1.08rem; max-width: 62ch; }
.bison-intro { max-width: 640px; position: relative; z-index: 1; }
.bison-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; position: relative; z-index: 1; }
.bc { border-radius: 18px; padding: 26px; border: 1px solid rgba(246, 239, 228, 0.14); }
.bc.cow { background: rgba(246, 239, 228, 0.04); }
.bc.bison-side { background: rgba(242, 165, 65, 0.12); border-color: rgba(242, 165, 65, 0.4); }
.bc-icon { font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 14px; }
.bc h3 { font-size: 1.35rem; margin-bottom: 8px; color: var(--dark-ink); }
.bc.bison-side h3 { color: var(--amber); }
.bc p { margin: 0; color: var(--dark-soft); font-size: 0.97rem; }
.bison-call { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.25; margin: 0; letter-spacing: -0.015em; }
.bison-call em { color: var(--amber); }
@media (max-width: 900px) { .story-side { position: static; } }
@media (max-width: 700px) { .bison { padding: 36px 22px; } .bison-compare { grid-template-columns: 1fr; } }

@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 28px; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-num { font-family: var(--serif); font-style: italic; color: var(--ember); font-size: 1rem; margin-bottom: 18px; }
.pillar h3 { font-size: 1.9rem; margin-bottom: 10px; }
.pillar > p { color: var(--ink-soft); margin-bottom: 22px; }
.svc-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.svc-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.svc-list strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.svc-list span { font-size: 0.92rem; color: var(--muted); line-height: 1.5; display: block; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; counter-reset: step; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-style: italic; color: var(--ember); font-size: 0.95rem; display: block; margin-bottom: 8px; }
.step h4 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }


@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- Speaking ---------- */
.speaking { background: var(--dark); color: var(--dark-ink); overflow: hidden; }
.speaking .eyebrow { color: var(--amber); }
.speaking .lede { color: var(--dark-soft); }
.speaking h2 em { color: var(--amber); }
.talks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(246, 239, 228, 0.12); border: 1px solid rgba(246, 239, 228, 0.12); border-radius: var(--radius); overflow: hidden; }
.talk { background: var(--dark); padding: 36px 32px; transition: background .3s; }
.talk:hover { background: #1d1713; }
.talk-tag { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--amber); margin-bottom: 14px; display: block; }
.talk h3 { font-size: 1.6rem; margin-bottom: 12px; }
.talk p { color: var(--dark-soft); margin: 0; font-size: 0.98rem; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 36px; }
.formats .chip { background: transparent; color: var(--dark-ink); border-color: rgba(246, 239, 228, 0.25); }
.speaking .btn-ghost { border-color: var(--dark-ink); color: var(--dark-ink); }
.speaking .btn-ghost:hover { background: var(--dark-ink); color: var(--dark); }
@media (max-width: 760px) { .talks { grid-template-columns: 1fr; } .talk { padding: 28px 22px; } }

/* ---------- NeyTorious ---------- */
.ney { overflow: hidden; }
.ney-word { font-family: var(--serif); font-size: clamp(3rem, 10vw, 8.5rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 600; margin: 8px 0 40px; }
.ney-word .n { color: var(--ember); font-style: italic; }
.ney-word .fa { font-size: 0.45em; color: var(--muted); vertical-align: middle; margin-left: 16px; font-weight: 400; }
.ney-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ney-body p { font-size: 1.1rem; color: var(--ink-soft); }
.ney-body h3 { font-size: 1.6rem; margin: 32px 0 12px; }
.ney-body h3:first-child { margin-top: 0; }
.venn { width: 100%; max-width: 480px; margin: 0 auto; display: block; }
.venn text { font-family: var(--sans); font-weight: 700; font-size: 15px; fill: var(--ink); }
.venn .core { font-family: var(--serif); font-style: italic; font-size: 17px; fill: #fff; }
.venn-caption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 16px; }
.purpose {
  margin-top: 80px; padding: 48px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ember), #f08a3c 60%, var(--amber));
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.purpose p { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; max-width: 22ch; letter-spacing: -0.02em; }
.purpose small { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; opacity: 0.85; margin-bottom: 10px; }
.purpose .btn { background: #fff; color: #16120f; }
.purpose .btn:hover { transform: translateY(-2px); }
@media (max-width: 900px) { .ney-grid { grid-template-columns: 1fr; gap: 48px; } .purpose { padding: 32px 24px; } }

/* ---------- Writing & research ---------- */
.writing { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-meta { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.card-meta .tag { color: var(--ember); }
.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; flex: 1; }
.card .more { font-weight: 700; font-size: 0.92rem; color: var(--ember); margin-top: 8px; }
.card.soon { border-style: dashed; }
.section-foot { margin-top: 40px; }

.pub-venue { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); min-width: 64px; text-align: center; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

 .facet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.facet {
  --c: var(--ember);
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 20px; padding: 22px 20px 20px; min-height: 184px;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.facet::before {
  content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
  transition: transform .5s ease;
}
.facet::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); transform: scaleX(0.18); transform-origin: left; transition: transform .45s ease; }
.facet:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.facet:hover::before { transform: scale(1.35); }
.facet:hover::after { transform: scaleX(1); }
.facet.f1 { --c: #e4572e; }
.facet.f2 { --c: #f2a541; }
.facet.f3 { --c: #8e5a9b; }
.facet.f4 { --c: #2f8f83; }
.facet-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--c); color: #fff; box-shadow: 0 10px 20px -8px var(--c);
}
.facet-icon svg { width: 24px; height: 24px; }
.facet strong { margin-top: auto; font-family: var(--serif); font-size: 1.28rem; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 6px; }
.facet-sub { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 420px) { .facet { min-height: 0; padding: 16px 14px; } .facet-icon { width: 40px; height: 40px; margin-bottom: 14px; } .facet strong { font-size: 1.1rem; } }

/* ---------- Experience timeline ---------- */
.experience { padding-top: 40px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 880px; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--ember), var(--line)); }
.tl-item { display: grid; grid-template-columns: 150px 1fr; position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 145px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ember); }
.tl-item.now::before { background: var(--ember); box-shadow: 0 0 0 6px var(--glow); }
.tl-year { font-weight: 700; font-size: 0.9rem; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.tl-body { padding-left: 36px; }
.tl-body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.tl-org { font-weight: 600; color: var(--ember); font-size: 0.95rem; margin-bottom: 6px; }
.tl-body p:not(.tl-org) { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.tl-body p a { color: var(--ember); font-weight: 700; text-underline-offset: 3px; }
.tl-body p a:hover { color: var(--ember-deep); }
.tl-kind { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
@media (max-width: 640px) {
  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 32px; }
  .tl-item::before { left: 0; }
  .tl-body { padding-left: 0; }
  .tl-year { margin-bottom: 4px; }
}

.engage { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.ney-intro { margin: -12px 0 28px; max-width: 68ch; }
.ney-pillars { list-style: none; margin: 0 0 72px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ney-pillars li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.ney-pillars strong { display: block; font-family: var(--serif); font-size: 1.2rem; margin-bottom: 4px; }
.ney-pillars span { font-size: 0.92rem; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 900px) { .ney-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ney-pillars { grid-template-columns: 1fr; } }

/* ---------- Research ---------- */
.research-section { background: var(--bg-alt); }
.papers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.paper {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px;
  padding: 32px; min-height: 280px; border-radius: 24px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--ember), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.paper:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ember) 35%, transparent); }
.paper:hover::after { transform: scaleX(1); }
.paper-art { position: absolute; right: -18px; top: -18px; width: 150px; height: 150px; color: var(--ember); opacity: 0.09; transition: transform .8s ease, opacity .4s; }
.paper:hover .paper-art { transform: rotate(30deg); opacity: 0.16; }
.paper-meta { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--muted); font-weight: 600; position: relative; }
.paper h3 { font-size: 1.35rem; line-height: 1.3; position: relative; flex: 1; }
.paper-link { font-weight: 700; color: var(--ember); font-size: 0.95rem; display: inline-flex; gap: 6px; align-items: center; }
.paper:hover .paper-link .arrow { transform: translate(2px, -2px); }
.paper-link .arrow { transition: transform .2s; }
@media (max-width: 800px) { .papers { grid-template-columns: 1fr; } .paper { min-height: 0; padding: 26px 22px; } }


.award-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  background: rgba(242, 165, 65, 0.14); color: var(--amber); border: 1px solid rgba(242, 165, 65, 0.35);
}

/* ---------- Life ---------- */
.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.life-card {
  position: relative; border-radius: var(--radius); padding: 96px 24px 28px; min-height: 240px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.life-card .icon { position: absolute; top: 24px; left: 24px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--glow); color: var(--ember); }
.life-card .icon svg { width: 26px; height: 26px; }
.life-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.life-card p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.5; }
.life-card.feature { grid-column: span 2; background: var(--dark); color: var(--dark-ink); border: 0; }
.life-card.feature p { color: var(--dark-soft); }
.life-card.feature .icon { background: rgba(242, 165, 65, 0.18); color: var(--amber); }
.life-card.feature strong { font-family: var(--serif); font-size: 3.4rem; line-height: 1; letter-spacing: -0.04em; color: var(--amber); display: block; margin-bottom: 8px; font-weight: 500; }

.interests { margin-top: 64px; }
.interests h3 { font-size: 1.5rem; margin-bottom: 20px; }
.interest-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.interest-cloud .chip { font-size: 0.95rem; padding: 10px 18px; }

@media (max-width: 960px) { .life-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .life-grid { grid-template-columns: 1fr; } .life-card.feature { grid-column: span 1; } }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: 140px 0; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.035em; max-width: 14ch; margin: 0 auto 24px; }
.contact .lede { margin: 0 auto 40px; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact-links { margin-top: 40px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.contact-links a { font-weight: 700; text-decoration: none; color: var(--ink-soft); border-bottom: 2px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.contact-links a:hover { color: var(--ember); border-color: var(--ember); }

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 680px; margin: 8px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow);
}
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reason { border: 0; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.reason legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 12px; padding: 0; }
.reason label { cursor: pointer; }
.reason input { position: absolute; opacity: 0; pointer-events: none; }
.reason span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); transition: all .2s; }
.reason label:hover span { border-color: var(--ember); }
.reason input:checked + span { background: var(--ember); border-color: var(--ember); color: #fff; }
.reason input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field em { font-weight: 500; color: var(--muted); font-style: normal; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px var(--glow); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot .btn { border: 0; font-family: inherit; }
.form-foot .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: 0.95rem; font-weight: 600; }
.form-status.ok { color: #2f8f83; }
.form-status.err { color: var(--ember-deep); }
.contact-form.sent .reason, .contact-form.sent .field, .contact-form.sent .field-row, .contact-form.sent .btn { display: none; }
.contact-form.sent .form-status { font-size: 1.1rem; }
@media (max-width: 600px) { .contact-form { padding: 24px 18px; } .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Writing page & article ---------- */
.page-head { padding: 88px 0 56px; }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); letter-spacing: -0.035em; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filters button { font: inherit; font-size: 0.88rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.article-list { padding-top: 0; }
.empty-note { color: var(--muted); font-style: italic; }

.article { padding: 72px 0 120px; }
.article-inner { max-width: 720px; margin: 0 auto; }
.article-back { font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--muted); }
.article-back:hover { color: var(--ember); }
.article h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); letter-spacing: -0.03em; margin: 28px 0 20px; }
.article-meta { color: var(--muted); font-size: 0.92rem; display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.prose { font-size: 1.14rem; line-height: 1.8; color: var(--ink-soft); }
.prose h2 { font-size: 1.9rem; margin: 48px 0 16px; color: var(--ink); }
.prose p { margin-bottom: 1.4em; }
.prose blockquote { margin: 40px 0; padding-left: 24px; border-left: 3px solid var(--ember); font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--ink); font-style: italic; }
.prose a { color: var(--ember); }
.author-box { margin-top: 64px; padding: 28px; border-radius: var(--radius); background: var(--bg-alt); display: flex; gap: 20px; align-items: center; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.author-box strong { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .stat-float { animation: none; }
}
