/* ═══════════════════════════════════════════
   EVERDINNE — Yu-Jou Ting
   Clean CSS for two-column layout
   Enhanced readability with richer typography and warm chocolate browns
   Last restructured: 2026-04-30
═══════════════════════════════════════════ */

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --bg:           #f3f3f3;
  --ink:          #1a1410;
  --ink-mid:      #3a3530;
  --ink-soft:     #6d6560;
  --gold:         #c8a030;
  --gold-dim:     #b08a20;
  --legal:        #c1a724;
  --data:         #c8a030;
  --lit:          #740124;
  --crimson:      #6B0F1A;
  --crimson-mid:  #520025;
  --crimson-soft: #3f0d1c;
  --surface-dark: #f0f0ee;
  --surface-text: #2a3d30;
  --accent-soft:  #3d5543;
  --rule:         #d8d4d0;
  --rule-soft:    #e4e0dc;
  --sidebar-bg:   #f4f2f0;
  --serif:        'Cormorant Garamond', serif;
  --sans:         'Inter', sans-serif;

  /* Type scale */
  --text-xs:   9.5px;   /* labels, tags, chips */
  --text-sm:   12px;    /* secondary info, card text */
  --text-base: 14px;    /* body text */
  --text-lg:   18px;    /* work titles, section intros */
  --text-xl:   24px;    /* about name, writing title */
  --text-2xl:  32px;    /* hero name */
}

/* ─────────────────────────────────────────
   STICKY TOP BAR
───────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule-soft);
}

.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2.2rem;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-theme-toggle {
  background: none;
  border: 0.5px solid var(--rule);
  color: var(--ink-soft);
  cursor: pointer;
  padding: .3rem .5rem;
  display: flex;
  align-items: center;
  transition: color .2s, border-color .2s;
}
.topbar-theme-toggle:hover { color: var(--ink); border-color: var(--ink-mid); }
.icon-moon { display: none; }

/* ─────────────────────────────────────────
   DARK MODE
───────────────────────────────────────── */
body.dark {
  --bg:           #141210;
  --ink:          #f0ebe3;
  --ink-mid:      #ccc4b8;
  --ink-soft:     #8a8078;
  --gold:         #c8a030;
  --legal:        #c1a724;
  --data:         #c8a030;
  --lit:          #c0405a;
  --rule:         #2e2a24;
  --rule-soft:    #252018;
  --surface-dark: #1a1612;
  --surface-text: #7ab88a;
  --accent-soft:  #4a7a5a;
  --sidebar-bg:   #141210;
}

body.dark .icon-sun  { display: none; }
body.dark .icon-moon { display: block; }
body.dark .topbar    { background: var(--bg); border-bottom-color: var(--rule); }
body.dark .cursor-glow { background: radial-gradient(circle, #c8a030 0%, transparent 70%); }



.topbar-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.topbar-links a {
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s;
}
.topbar-links a:hover { color: var(--ink); }

.topbar-cv {
  color: var(--gold) !important;
  border: 0.5px solid var(--gold);
  padding: .25rem .7rem;
  transition: background .2s, color .2s !important;
}
.topbar-cv:hover { background: var(--gold); color: var(--bg) !important; }

/* Push layout down to clear topbar */


*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  padding-top: 44px;
  transition: background-color 600ms ease, color 400ms ease;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────
   ACCESSIBILITY
───────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─────────────────────────────────────────
   CURSOR GLOW
───────────────────────────────────────── */
.cursor-glow {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 340px; height: 340px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0; transition: opacity .4s;
}

.cursor-dot {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 5px; height: 5px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold);
  opacity: 0; transition: opacity .3s;
}

@media (hover: none) {
  .cursor-glow, .cursor-dot { display: none; }
}

/* ─────────────────────────────────────────
   TWO-COLUMN LAYOUT
───────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
  max-width: 1160px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 3rem 2.2rem 2rem;
  border-right: none;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  background: var(--bg);
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.sidebar-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .2rem;
  font-weight: 500;
}

.hero-quote {
  font-family: var(--serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
  line-height: 1.2;
  cursor: pointer;
  transition: opacity .3s, color .3s;
  user-select: none;
  margin: .3rem 0;
}
.hero-quote:hover { color: var(--gold); }

.hero-position {
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-top: .2rem;
  font-weight: 600;
}

.hero-hint {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  letter-spacing: .06em;
  margin-top: .3rem;
}

.hero-sub {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--ink-mid);
  font-weight: 500;
  padding-top: .5rem;
}

/* Sidebar meta */
.sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sidebar-meta-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-meta-label {
  font-size: var(--text-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: .35rem;
  display: block;
}

.sidebar-meta-item {
  font-size: var(--text-sm);
  color: var(--surface-text);
  line-height: 1.9;
  font-weight: 500;
  transition: color 400ms ease;
}
.sidebar-meta-item.gold { color: var(--gold); }
.sidebar-meta-item.gap  { margin-top: .35rem; }

/* ─────────────────────────────────────────
   SIDEBAR IDENTITY CARDS
───────────────────────────────────────── */
.sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.sidebar-card {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .75rem .9rem;
  border-left: 2px solid var(--gold);
  background: transparent;
}

.card-role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: .01em;
}

.card-org {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gold);
  line-height: 1.4;
}

.card-client {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: var(--text-xs);
}

.card-detail {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: .04em;
  margin-top: .1rem;
}

.card-location {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}

/* Language grid */
.sidebar-lang-grid {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.lang-item {
  font-size: var(--text-sm);
  color: var(--ink-mid);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.lang-level {
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Tools chip grid */
.sidebar-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .35rem;
  margin-top: .1rem;
}

.tool-chip {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-mid);
  background: var(--rule-soft);
  padding: .2rem .5rem;
  border-radius: 1px;
  line-height: 1.6;
}

/* Sidebar nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-top: 1rem;
  border-top: 0.5px solid var(--rule-soft);
}

.sidebar-nav a {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
}
.sidebar-nav a:hover        { color: var(--ink); }
.sidebar-nav .nav-github    { color: var(--ink-soft); }
.sidebar-nav .nav-github:hover { color: var(--ink); }

/* CV button */
.cv-btn {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 0.5px solid var(--gold);
  padding: .5rem .9rem;
  transition: background .2s, color .2s;
  display: inline-block;
  width: fit-content;
  font-weight: 600;
}
.cv-btn:hover { background: var(--gold); color: var(--bg); }

/* Sidebar footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 0.5px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: 9.5px;
  color: var(--ink-soft);
  font-weight: 500;
}
.sidebar-footer .footer-date { color: var(--ink-mid); }
.footer-updated { font-size: 9px; opacity: 0.7; }

/* ─────────────────────────────────────────
   MAIN CONTENT
───────────────────────────────────────── */
.main {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
}

.main hr {
  border: none;
  margin: 3rem 0;
}

/* ─────────────────────────────────────────
   SECTION LABELS
───────────────────────────────────────── */
.section-label {
  font-size: var(--text-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 1.6rem;
  display: block;
}

.section-hint {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: .1em;
  color: var(--ink-soft);
  text-transform: none;
  font-weight: 500;
  opacity: 0.75;
  margin-top: .2rem;
}

/* ─────────────────────────────────────────
   FOCUS AREAS (Impact / Annotation)
───────────────────────────────────────── */
.impact { padding-bottom: 0; }

.impact-anno {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
}

.impact-anno-left {
  padding: 1.4rem 1.2rem 1.4rem 0;
}
.impact-anno-left--b {
  padding-top: 2rem;
}

.impact-anno-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .5rem;
}

.impact-anno-domain {
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
  font-weight: 600;
}
.impact-anno-domain.legal { color: var(--legal); }
.impact-anno-domain.data  { color: var(--data); }

.impact-anno-right {
  padding: 1.4rem 0 1.4rem 1.8rem;
}
.impact-anno-right--b {
  padding-top: 2rem;
}

.impact-text {
  font-size: var(--text-base);
  color: var(--ink-mid);
  line-height: 1.75;
  font-weight: 500;
  margin-bottom: .8rem;
}

.impact-chips { display: flex; gap: .4rem; flex-wrap: wrap; }

.impact-chip {
  font-size: var(--text-xs);
  letter-spacing: .08em;
  padding: .2rem .6rem;
  background: var(--rule-soft);
  color: var(--ink-mid);
  font-weight: 600;
}

/* ─────────────────────────────────────────
   WORK ITEMS
───────────────────────────────────────── */
.work-item {
  display: grid;
  grid-template-columns: 36px 1fr 22px;
  gap: .9rem;
  align-items: start;
  padding: 1.4rem 0;
  background: none;
  width: 100%;
  text-align: left;
}

.work-num {
  font-family: var(--serif);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--crimson);
  padding-top: 3px;
  transition: color 400ms ease;
}
.work-item.legal     .work-num { color: var(--legal); }
.work-item.data      .work-num { color: var(--data); }
.work-item.literature .work-num { color: var(--lit); }

.work-body { display: flex; flex-direction: column; gap: .3rem; }

.work-tag {
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.work-item.legal      .work-tag { color: var(--legal); }
.work-item.data       .work-tag { color: var(--data); }
.work-item.literature .work-tag { color: var(--lit); }

.work-outcome {
  font-size: var(--text-xs);
  letter-spacing: .06em;
  color: var(--ink-mid);
  font-weight: 500;
  text-transform: none;
  margin-left: .6rem;
}

.work-title {
  font-family: var(--serif);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--ink);
  line-height: 1.35;
  font-weight: 400;
}

.work-desc {
  font-size: var(--text-base);
  color: var(--ink-mid);
  line-height: 1.72;
  font-weight: 500;
  transition: opacity .3s;
}

.work-item:first-of-type { border-top: none; }

.work-arrow {
  font-size: 13px;
  color: var(--rule);
  text-align: right;
  padding-top: 3px;
  transition: color .2s;
  text-decoration: none;
  align-self: start;
}
.work-item:hover .work-arrow { color: var(--gold); }

/* Perspective tabs */
.work-perspectives {
  display: flex;
  gap: .3rem;
  margin-top: .6rem;
  flex-wrap: wrap;
}

.perspective-tab {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 0.5px solid var(--rule);
  padding: .2rem .55rem;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  line-height: 1.6;
}
.perspective-tab:hover {
  color: var(--ink-mid);
  border-color: var(--ink-mid);
}
.perspective-tab.active {
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
}
.work-item.legal .perspective-tab.active   { color: var(--legal); border-color: var(--legal); }
.work-item.data .perspective-tab.active    { color: var(--data);  border-color: var(--data);  }
.work-item.literature .perspective-tab.active { color: var(--lit); border-color: var(--lit);  }

/* ─────────────────────────────────────────
   DISTRIBUTION CHART — FIX 2: centered
───────────────────────────────────────── */
.work-distribution { padding: 0; }

.dist-label {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 1.2rem;
  font-weight: 600;
  font-style: normal;
  text-align: center;
}

.dist-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3rem;
  height: 120px;
  padding-bottom: 0;
}

.dist-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  height: 100%;
}

.dist-bar {
  width: 28px;
  background: var(--rule);
  transition: height .6s ease, background .3s;
  height: var(--bar-height, 25%);
  min-height: 4px;
}
.dist-bar.legal    { background: var(--legal);    opacity: .7; }
.dist-bar.data     { background: var(--data);     opacity: .7; }
.dist-bar.literature { background: var(--lit);    opacity: .7; }

.dist-name {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.dist-pct {
  font-size: 9px;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity .2s;
  font-weight: 600;
}
.dist-item:hover .dist-pct { opacity: 1; }

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about-text p {
  font-size: var(--text-base);
  line-height: 1.9;
  color: var(--ink-mid);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-name-line {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .8rem !important;
  font-style: normal;
}

.about-tagline {
  font-family: var(--sans);
  font-size: 15px;
  font-style: normal;
  color: #1a1410;
  line-height: 1.9;
  font-weight: 600;
  margin: 1.2rem 0;
}

.about-open {
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 500;
}

.cv-link {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold);
  padding-bottom: 1px;
  font-weight: 600;
}
.cv-link:hover { opacity: .7; }

/* ─────────────────────────────────────────
   TIMELINE
───────────────────────────────────────── */
.timeline-section { padding-bottom: 0; }

.timeline-track {
  position: relative;
  width: 100%;
  margin-bottom: .6rem;
}

.tl-band {
  position: absolute;
  height: 12px;
  border-radius: 1px;
  cursor: pointer;
  transition: opacity .25s, filter .25s;
}
.tl-band:hover { filter: brightness(1.2); }

.timeline-axis {
  display: flex;
  justify-content: space-between;
  margin-top: .8rem;
  padding-top: .5rem;
  border-top: 0.5px solid var(--rule-soft);
}
.timeline-axis span { font-size: 10px; color: var(--ink-soft); letter-spacing: .08em; font-weight: 500; }
.tl-now { color: var(--gold) !important; }

.timeline-detail {
  margin-top: .8rem;
  min-height: 2rem;
  font-size: 12.5px;
  color: var(--ink-mid);
  font-weight: 500;
  opacity: 0;
  transition: opacity .3s ease;
  line-height: 1.5;
}
.timeline-detail.visible { opacity: 1; }
.timeline-detail strong  { color: var(--ink); font-weight: 600; }

/* ─────────────────────────────────────────
   WRITING
───────────────────────────────────────── */
.writing-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.2rem;
  padding: 1.2rem 0;
}

.writing-date {
  font-size: var(--text-xs);
  letter-spacing: .08em;
  color: var(--ink-soft);
  padding-top: 4px;
  font-weight: 500;
}

.writing-body { display: flex; flex-direction: column; gap: .4rem; }

.writing-title {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.3;
}

.writing-desc {
  font-size: var(--text-base);
  color: var(--ink-mid);
  line-height: 1.7;
  font-weight: 500;
}

.writing-full {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
  overflow: hidden;
}
.writing-full > * { min-height: 0; overflow: hidden; }
.writing-full.open { grid-template-rows: 1fr; }

.writing-full-inner {}

.writing-full p {
  font-size: var(--text-base);
  line-height: 1.95;
  color: var(--ink-mid);
  font-weight: 500;
  margin-top: 1rem;
}
.writing-full p:first-child { margin-top: .8rem; }

.writing-toggle {
  margin-top: .6rem;
  background: none; border: none;
  font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); cursor: pointer; padding: 0;
  font-family: var(--sans);
  transition: opacity .2s;
  font-weight: 600;
}
.writing-toggle:hover { opacity: .7; }
.writing-toggle span { display: inline-block; transition: transform .3s; }
.writing-toggle[aria-expanded="true"] span { transform: rotate(180deg); }

/* ─────────────────────────────────────────
   NOW
───────────────────────────────────────── */
.now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.now-label {
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .5rem;
  display: block;
  font-weight: 700;
}

.now-text {
  font-size: var(--text-base);
  color: var(--ink-mid);
  line-height: 1.7;
  font-weight: 500;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-text {
  font-size: var(--text-base);
  color: var(--ink-mid);
  line-height: 1.7;
  font-weight: 500;
  max-width: 420px;
}

.contact-link {
  font-size: var(--text-xs);
  letter-spacing: .08em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: opacity .2s;
  font-weight: 600;
}
.contact-link:hover { opacity: .7; }

/* ─────────────────────────────────────────
   NOTE BLOCK
───────────────────────────────────────── */
.note-block {
  margin: 0 0 3rem;
  padding: 1.6rem 1.8rem;
  border-left: 2px solid var(--accent-soft);
  background: var(--bg);
  transition: border-color 500ms ease;
}

.note-label {
  font-size: var(--text-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .5rem;
  display: block;
  font-weight: 700;
}

.note-main {
  font-family: var(--serif);
  font-size: var(--text-lg);
  line-height: 1.75;
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}

.note-reveal {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .5s, max-height .5s;
  font-size: var(--text-sm);
  color: var(--accent-soft);
  font-weight: 500;
  margin-top: .7rem;
  line-height: 1.7;
}
.note-block:hover .note-reveal { opacity: 1; max-height: 60px; }

/* ─────────────────────────────────────────
   PDF MODAL
───────────────────────────────────────── */
.pdf-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
}
.pdf-modal.open { display: flex; }

.pdf-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(20,16,14,.6);
  backdrop-filter: blur(3px);
}

.pdf-modal-content {
  position: relative; z-index: 1;
  width: min(90vw, 820px);
  height: min(88vh, 700px);
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 1.4rem 1.6rem 1.2rem;
  gap: .8rem;
}

.pdf-close {
  position: absolute; top: .8rem; right: 1rem;
  background: none; border: none;
  font-size: 22px; color: var(--ink-soft);
  cursor: pointer; line-height: 1;
  transition: color .2s;
}
.pdf-close:hover { color: var(--ink); }

.pdf-header { min-height: 1rem; }

.pdf-intro {
  font-size: 12px; color: var(--ink-mid);
  font-style: italic; line-height: 1.5;
  font-family: var(--serif);
  max-width: 80%;
  font-weight: 500;
}

.pdf-frame-wrap {
  flex: 1; position: relative;
  background: var(--rule-soft);
  overflow: hidden;
}

.pdf-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
  font-weight: 600;
}

.pdf-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; text-align: center;
  font-size: 12px; color: var(--ink-soft);
}

.pdf-fallback-btn {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border: 0.5px solid var(--gold); padding: .5rem 1rem;
  font-weight: 600;
}

#pdf-viewer {
  width: 100%; height: 100%; border: none;
  opacity: 0; transition: opacity .4s;
}

.pdf-download-btn {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  align-self: flex-start;
  border-bottom: 0.5px solid var(--gold);
  padding-bottom: 1px;
  transition: opacity .2s;
  font-weight: 600;
}
.pdf-download-btn:hover { opacity: .7; }

/* ─────────────────────────────────────────
   REDUCE MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE — tablet
───────────────────────────────────────── */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }

  .sidebar {
    position: relative;
    height: auto;
    padding: 2rem 1.8rem;
    border-right: none;
    border-bottom: 0.5px solid var(--rule-soft);
  }

  .main { padding: 2rem 1.8rem; }

  .now-grid { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — mobile
───────────────────────────────────────── */
@media (max-width: 500px) {
  .sidebar { padding: 1.5rem 1.2rem; }
  .main    { padding: 1.5rem 1.2rem; }
  .main hr { margin: 1.8rem 0; }

  .hero-quote { font-size: 24px; }

  .impact-anno { grid-template-columns: 80px 1fr; }
  .impact-anno-num { font-size: 28px; }

  .work-item { grid-template-columns: 28px 1fr 18px; }
  .work-title { font-size: 16px; }
  .work-outcome { display: block; margin-left: 0; margin-top: .2rem; }

  .writing-item { grid-template-columns: 1fr; }
  .writing-date { padding-top: 0; }

  .now-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  .contact-box { flex-direction: column; align-items: flex-start; gap: .8rem; }

  .pdf-modal-content { width: 100%; height: 100%; }

  .section-hint { display: none; }

  .about-tagline { font-size: 18px; }
}

/* ─────────────────────────────────────────
   WORK ITEMS — hover color only, no line
───────────────────────────────────────── */
.work-item { position: relative; }
