:root {
  --ink: #211f1c;
  --navy: #5f4336;
  --blue: #b85f3b;
  --sky: #e8d9c5;
  --green: #b85f3b;
  --green-soft: #efe2d2;
  --paper: #f3efe7;
  --surface: #fbf8f2;
  --surface-soft: #f7f1e8;
  --accent: #b85f3b;
  --text: #211f1c;
  --line-strong: #bcae9e;
  --muted: #716a60;
  --line: #d8cfc2;
  --shadow: 0 20px 60px rgba(54, 43, 32, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1180px;
}

[data-theme="dark"] {
  --ink: #f4eee4;
  --navy: #e2b99d;
  --blue: #d27a55;
  --sky: #3a3028;
  --green: #e38a63;
  --green-soft: #33271f;
  --paper: #171512;
  --surface: #201d19;
  --surface-soft: #29241f;
  --accent: #e38a63;
  --text: #f4eee4;
  --line-strong: #62584e;
  --muted: #bdb3a5;
  --line: #3b352e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--surface);
  padding: .75rem 1rem;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus { left: 10px; }

.shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 .9rem;
  color: var(--green);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
.section-heading h2,
.page-intro h1,
.hero h1 {
  margin: 0;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.6rem); max-width: 700px; }
.section-heading p { max-width: 520px; color: var(--muted); margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 850; letter-spacing: -.02em; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  letter-spacing: -.05em;
}
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  padding: .65rem .85rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 650;
  font-size: .95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-button, .menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.menu-button { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--paper); box-shadow: 0 12px 30px rgba(54, 43, 32, .18); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-small { min-height: 40px; padding: .6rem .9rem; font-size: .9rem; }

.hero { padding: 72px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: stretch;
}
.hero-copy {
  padding: clamp(2rem, 4vw, 4.6rem);
  min-height: 620px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(184, 95, 59, .46), transparent 31%),
    radial-gradient(circle at 20% 100%, rgba(210, 166, 76, .34), transparent 35%),
    linear-gradient(145deg, #191816 0%, #29241f 58%, #432d23 100%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.hero-copy::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  right: -90px;
  bottom: -100px;
  box-shadow: 0 0 0 45px rgba(255,255,255,.04), 0 0 0 90px rgba(255,255,255,.025);
}
.hero h1 { font-size: clamp(3.2rem, 7vw, 7rem); max-width: 870px; }
.hero h1 span { color: #e7b86b; }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255,255,255,.78); max-width: 690px; margin: 1.4rem 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; z-index: 2; }
.hero .button-primary { background: #fbf8f2; color: #211f1c; }
.hero .button-secondary { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; }

.hero-side { display: grid; grid-template-rows: 1fr auto; gap: 1rem; }
.profile-card, .stat-card, .project-card, .post-card, .service-card, .contact-card, .article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(54, 43, 32, .06);
}
.profile-card { padding: 2rem; position: relative; overflow: hidden; }
.profile-portrait {
  min-height: 280px;
  border-radius: 18px;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.1)),
    linear-gradient(145deg, #eadfce, #dcb99d 50%, #c7a06f);
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: #3a2a21;
}
.profile-monogram { font-size: clamp(5rem, 12vw, 9rem); font-weight: 950; letter-spacing: -.1em; line-height: .7; opacity: .86; }
.profile-location { writing-mode: vertical-rl; font-size: .77rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; }
.profile-card h2 { margin: 1.5rem 0 .35rem; font-size: 1.5rem; }
.profile-card p { margin: 0; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-card { padding: 1.15rem; }
.stat-card strong { display: block; font-size: 1.65rem; line-height: 1; margin-bottom: .45rem; }
.stat-card span { color: var(--muted); font-size: .8rem; }

.marquee {
  padding: 18px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 26s linear infinite;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .78rem;
}
.marquee-track span::after { content: "✦"; margin-left: 3rem; color: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

.project-controls { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.filter-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: .6rem .9rem;
  cursor: pointer;
  font-weight: 750;
}
.filter-button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.project-card { grid-column: span 6; padding: 1.4rem; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-card.featured { grid-column: span 12; display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem; }
.project-visual {
  min-height: 260px;
  border-radius: 16px;
  padding: 1.25rem;
  overflow: hidden;
  background: var(--sky);
  position: relative;
}
.project-visual.dark { background: #2a2420; color: #fff; }
.project-visual.green { background: var(--green-soft); }
.dashboard-mock { display: grid; grid-template-columns: .6fr 1.4fr; gap: .8rem; height: 100%; }
.dashboard-sidebar { border-radius: 12px; background: rgba(255,255,255,.6); }
.dashboard-main { display: grid; grid-template-rows: auto 1fr; gap: .8rem; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.dashboard-kpis i, .dashboard-chart, .sheet-row, .research-dot { display: block; background: rgba(255,255,255,.72); border-radius: 10px; }
.dashboard-kpis i { height: 54px; }
.dashboard-chart { min-height: 170px; position: relative; overflow: hidden; }
.dashboard-chart::before {
  content: "";
  position: absolute;
  inset: 25% 8% 15%;
  background: linear-gradient(155deg, transparent 0 39%, #b85f3b 40% 43%, transparent 44% 54%, #d2a64c 55% 58%, transparent 59%);
}
.sheet-mock { display: grid; gap: .55rem; }
.sheet-row { height: 38px; background: color-mix(in srgb, var(--surface) 76%, transparent); }
.sheet-row:nth-child(1) { width: 46%; background: var(--green); }
.sheet-row:nth-child(2) { width: 100%; }
.sheet-row:nth-child(3) { width: 91%; }
.sheet-row:nth-child(4) { width: 96%; }
.sheet-row:nth-child(5) { width: 84%; }
.research-map { height: 100%; min-height: 220px; position: relative; }
.research-dot { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.09); }
.research-dot:nth-child(1) { width: 66px; height: 66px; left: 8%; top: 22%; }
.research-dot:nth-child(2) { width: 100px; height: 100px; left: 44%; top: 8%; }
.research-dot:nth-child(3) { width: 82px; height: 82px; right: 7%; bottom: 11%; }
.research-dot:nth-child(4) { width: 42px; height: 42px; left: 25%; bottom: 5%; }
.research-line { position: absolute; height: 2px; transform-origin: left center; background: rgba(255,255,255,.42); }
.project-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.tag { display: inline-flex; padding: .35rem .62rem; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .75rem; font-weight: 800; }
.project-card h3 { margin: 0 0 .7rem; font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: -.03em; }
.project-card p { color: var(--muted); margin: 0; }
.project-card[hidden] { display: none; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.service-card { padding: 1.4rem; }
.service-index { color: var(--green); font-weight: 900; }
.service-card h3 { margin: 2.4rem 0 .55rem; font-size: 1.15rem; }
.service-card p { color: var(--muted); margin: 0; font-size: .94rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.post-card { overflow: hidden; }
.post-cover { aspect-ratio: 16/10; padding: 1.2rem; background: var(--sky); display: flex; align-items: end; }
.post-cover.green { background: var(--green-soft); }
.post-cover.dark { background: #2b2520; color: #fff; }
.post-cover span { font-size: 4rem; font-weight: 950; line-height: .8; letter-spacing: -.08em; opacity: .86; }
.post-body { padding: 1.35rem; }
.post-kicker { display: flex; gap: .5rem; align-items: center; color: var(--green); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 900; }
.post-card h3 { margin: .8rem 0 .55rem; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.025em; }
.post-card p { color: var(--muted); margin: 0; }

.contact-card {
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background:
    radial-gradient(circle at 90% 20%, rgba(184, 95, 59, .18), transparent 30%),
    var(--surface);
}
.contact-card h2 { font-size: clamp(2rem, 5vw, 4.5rem); margin: 0 0 .75rem; letter-spacing: -.05em; line-height: 1; }
.contact-card p { margin: 0; max-width: 620px; color: var(--muted); }

.page-intro { padding: 90px 0 50px; }
.page-intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: end; }
.page-intro h1 { font-size: clamp(3.3rem, 8vw, 7.5rem); }
.page-intro p { color: var(--muted); font-size: 1.14rem; margin: 0; }
.blog-toolbar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.search-field { flex: 1; max-width: 440px; position: relative; }
.search-field input { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .85rem 1rem .85rem 2.8rem; }
.search-field svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }

.article-shell { width: min(calc(100% - 32px), 820px); margin: 0 auto; }
.article-header { padding: 90px 0 44px; }
.article-header h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.055em; line-height: .98; margin: 0 0 1.4rem; }
.article-deck { font-size: 1.25rem; color: var(--muted); max-width: 700px; }
.article-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; color: var(--muted); font-size: .9rem; margin-top: 1.5rem; }
.article-hero {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto 64px;
  min-height: 440px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eadfce, #d9b596 48%, #c79b69);
  overflow: hidden;
}
.article-hero strong { font-size: clamp(7rem, 20vw, 17rem); letter-spacing: -.12em; line-height: .7; color: #3a2a21; opacity: .78; }
.article-card { padding: clamp(1.5rem, 4vw, 3rem); }
.article-card h2 { margin-top: 2.6rem; font-size: 2rem; letter-spacing: -.03em; }
.article-card h2:first-child { margin-top: 0; }
.article-card p, .article-card li { font-size: 1.06rem; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.article-card blockquote { border-left: 4px solid var(--green); margin: 2rem 0; padding: .25rem 0 .25rem 1.4rem; font-size: 1.3rem; color: var(--ink); }

.site-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--muted); }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }



.writing-card,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(54, 43, 32, .06);
}
.writing-card {
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  background:
    radial-gradient(circle at 92% 12%, rgba(210, 166, 76, .15), transparent 28%),
    var(--surface);
}
.writing-card h2 {
  max-width: 820px;
  margin: 0 0 .9rem;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.writing-card p:last-child {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.empty-state {
  min-height: 430px;
  padding: clamp(2.2rem, 7vw, 5.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(circle at 86% 18%, rgba(184, 95, 59, .14), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(210, 166, 76, .12), transparent 34%),
    var(--surface);
}
.empty-state-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  font-size: 1.25rem;
}
.empty-state h2 {
  max-width: 900px;
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.empty-state > p:not(.eyebrow) {
  max-width: 640px;
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 980px) {
  .hero-grid, .page-intro-grid, .contact-card, .project-card.featured { grid-template-columns: 1fr; }
  .hero-copy { min-height: 560px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .project-card, .project-card.featured { grid-column: span 12; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .menu-button { display: grid; }
  .nav-links {
    position: fixed;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .8rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .9rem 1rem; }
  .nav .button-small { display: none; }
  .hero { padding-top: 32px; }
  .hero-copy { min-height: 530px; padding: 1.7rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .stat-row { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 1rem; }
  .services-grid, .post-grid { grid-template-columns: 1fr; }
  .blog-toolbar, .footer-grid { align-items: stretch; flex-direction: column; }
  .search-field { max-width: none; width: 100%; }
  .contact-card { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .writing-card { grid-template-columns: 1fr; align-items: start; }
}

/* Goodreads reading shelf */
.reading-section {
  padding-top: 76px;
}
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 1.2rem;
  align-items: start;
}
.reading-panel {
  min-width: 0;
  padding: clamp(1.25rem, 2.7vw, 2rem);
  background:
    radial-gradient(circle at 96% 0%, rgba(210, 166, 76, .11), transparent 32%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(54, 43, 32, .06);
}
.reading-panel-wide {
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 95, 59, .11), transparent 34%),
    var(--surface);
}
.reading-panel-header {
  min-height: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.reading-panel-header .eyebrow {
  display: inline-block;
  margin-bottom: .38rem;
}
.reading-panel-header h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.reading-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 13%, transparent);
}
.reading-profile-link,
.reading-footer a {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color .2s ease, transform .2s ease;
}
.reading-profile-link:hover,
.reading-footer a:hover {
  color: var(--ink);
}
.reading-loading,
.reading-fallback {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.reading-fallback a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reading-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

/* Goodreads injects its own class names and inline defaults; these rules
   intentionally override them so the live data matches the site. */
#gr_custom_widget_1723782911 .gr_custom_container_1723782911,
#gr_custom_widget_1723782912 .gr_custom_container_1723782912 {
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  overflow: visible !important;
}
#gr_custom_widget_1723782911 .gr_custom_container_1723782911 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
#gr_custom_widget_1723782912 .gr_custom_container_1723782912 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
#gr_custom_widget_1723782911 .gr_custom_header_1723782911,
#gr_custom_widget_1723782912 .gr_custom_header_1723782912,
#gr_custom_widget_1723782911 center,
#gr_custom_widget_1723782912 center,
#gr_custom_widget_1723782911 br[style*="clear"],
#gr_custom_widget_1723782912 br[style*="clear"] {
  display: none !important;
}
#gr_custom_widget_1723782911 .gr_custom_each_container_1723782911,
#gr_custom_widget_1723782912 .gr_custom_each_container_1723782912 {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column !important;
}
#gr_custom_widget_1723782911 .gr_custom_book_container_1723782911,
#gr_custom_widget_1723782912 .gr_custom_book_container_1723782912 {
  float: none !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3;
  margin: 0 0 .8rem !important;
  border-radius: 12px;
  overflow: hidden !important;
  background: var(--sky);
  box-shadow: 0 10px 22px rgba(54, 43, 32, .15);
}
#gr_custom_widget_1723782911 .gr_custom_book_container_1723782911 img,
#gr_custom_widget_1723782912 .gr_custom_book_container_1723782912 img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}
#gr_custom_widget_1723782911 .gr_custom_title_1723782911,
#gr_custom_widget_1723782912 .gr_custom_title_1723782912 {
  margin: 0 0 .24rem !important;
  color: var(--ink) !important;
  font-size: .94rem !important;
  font-weight: 850 !important;
  line-height: 1.24 !important;
  letter-spacing: -.015em !important;
}
#gr_custom_widget_1723782911 .gr_custom_title_1723782911 a,
#gr_custom_widget_1723782912 .gr_custom_title_1723782912 a,
#gr_custom_widget_1723782911 .gr_custom_author_1723782911 a,
#gr_custom_widget_1723782912 .gr_custom_author_1723782912 a {
  color: inherit !important;
  text-decoration: none !important;
}
#gr_custom_widget_1723782911 .gr_custom_author_1723782911,
#gr_custom_widget_1723782912 .gr_custom_author_1723782912 {
  color: var(--muted) !important;
  font-size: .78rem !important;
  line-height: 1.35 !important;
}
#gr_custom_widget_1723782911 .gr_custom_rating_1723782911,
#gr_custom_widget_1723782912 .gr_custom_rating_1723782912 {
  float: none !important;
  min-height: 17px;
  margin: .45rem 0 0 !important;
  order: 3;
}
#gr_custom_widget_1723782911 .gr_custom_rating_1723782911 img,
#gr_custom_widget_1723782912 .gr_custom_rating_1723782912 img {
  display: inline-block !important;
  width: auto !important;
  height: 14px !important;
}
#gr_custom_widget_1723782911 .gr_custom_review_1723782911,
#gr_custom_widget_1723782912 .gr_custom_review_1723782912,
#gr_custom_widget_1723782911 .gr_custom_tags_1723782911,
#gr_custom_widget_1723782912 .gr_custom_tags_1723782912 {
  display: none !important;
}

@media (max-width: 980px) {
  .reading-layout { grid-template-columns: 1fr; }
  #gr_custom_widget_1723782912 .gr_custom_container_1723782912 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .reading-panel-header {
    min-height: 0;
    flex-direction: column;
  }
  .reading-profile-link { white-space: normal; }
  #gr_custom_widget_1723782911 .gr_custom_container_1723782911,
  #gr_custom_widget_1723782912 .gr_custom_container_1723782912 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


.reading-heading {
  justify-content: flex-start;
}

.goodreads-widget [class*="gr_custom_book_container"] img {
  image-rendering: auto;
  transform: translateZ(0);
}

/* Personal photo-led homepage */
.photo-hero { padding: 24px 0 42px; }
.photo-hero-heading { margin-bottom: 1.25rem; }
.photo-hero-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.04em; }
.personal-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}
.personal-intro h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.personal-intro > p:last-child {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  min-height: 650px;
}
.photo-tile {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(54, 43, 32, .1);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}
.photo-tile:hover img { transform: scale(1.025); }
.photo-tile:nth-child(1) img { object-position: center 30%; }
.photo-tile:nth-child(2) img { object-position: center center; }
.photo-tile:nth-child(3) img { object-position: center 30%; }
.personal-contact { background: radial-gradient(circle at 90% 20%, rgba(210,166,76,.16), transparent 32%), var(--surface); }

/* Professional introduction moved to portfolio */
.portfolio-hero { padding: 72px 0 48px; }
.portfolio-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 1rem;
  align-items: stretch;
}
.portfolio-hero-copy {
  min-height: 610px;
  padding: clamp(2rem, 5vw, 4.8rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(184, 95, 59, .46), transparent 31%),
    radial-gradient(circle at 20% 100%, rgba(210, 166, 76, .34), transparent 35%),
    linear-gradient(145deg, #191816 0%, #29241f 58%, #432d23 100%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.portfolio-hero-copy h1 {
  margin: .35rem 0 1.3rem;
  max-width: 860px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.portfolio-hero-copy h1 span { color: #e7b86b; }
.portfolio-hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 0 0 2rem;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}
.button-light { background: #fbf8f2; color: #211f1c; }
.portfolio-profile {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(54, 43, 32, .06);
}
.portfolio-profile .profile-portrait { min-height: 290px; }
.portfolio-profile h2 { margin: 1.4rem 0 .35rem; font-size: 1.6rem; }
.portfolio-profile > p { margin: 0 0 1.4rem; color: var(--muted); }
.portfolio-stats { margin-top: 1rem; }

@media (max-width: 980px) {
  .personal-intro, .portfolio-hero-grid { grid-template-columns: 1fr; }
  .photo-grid { min-height: 560px; }
  .portfolio-hero-copy { min-height: 520px; }
}

@media (max-width: 620px) {
  .photo-hero { padding-top: 16px; }
  .personal-intro { gap: 1rem; margin-bottom: 1.4rem; }
  .personal-intro h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .photo-grid { grid-template-columns: 1fr; min-height: 0; gap: .7rem; }
  .photo-tile { aspect-ratio: 4 / 5; }
  .portfolio-hero { padding-top: 32px; }
  .portfolio-hero-copy { min-height: 500px; padding: 1.7rem; }
  .portfolio-hero-copy h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
}

/* Letterboxd film shelf */
.watching-section {
  padding-top: 12px;
}
.watching-heading {
  align-items: center;
}
.watching-profile-link,
.watching-footer a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color .2s ease, transform .2s ease;
}
.watching-profile-link:hover,
.watching-footer a:hover {
  color: var(--ink);
}
.watching-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}
.watching-panel {
  padding: clamp(1.25rem, 2.7vw, 2rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(210, 166, 76, .11), transparent 30%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(54, 43, 32, .06);
}
.watching-panel + .watching-panel {
  margin-top: 1.2rem;
}
.watching-panel-recent {
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 95, 59, .12), transparent 32%),
    var(--surface);
}
.watching-panel-header {
  min-height: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.watching-panel-header .eyebrow {
  margin-bottom: .38rem;
}
.watching-panel-header h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.film-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.film-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  transition: transform .22s ease;
}
.film-card:hover {
  transform: translateY(-4px);
}
.film-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--sky);
  box-shadow: 0 12px 26px rgba(54, 43, 32, .16);
}
.film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.film-card:hover .film-poster img {
  transform: scale(1.025);
}
.film-info {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding: .85rem .12rem 0;
}
.film-info strong {
  font-size: .95rem;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.film-info small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}
.film-rating {
  color: #00b020;
  font-size: .85rem;
  letter-spacing: .05em;
  line-height: 1.2;
}
[data-theme="dark"] .film-rating {
  color: #40bc62;
}

@media (max-width: 760px) {
  .watching-heading,
  .watching-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .watching-profile-link { white-space: normal; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Résumé snapshot */
.resume-section {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 72px 0 clamp(3.75rem, 7vw, 6.5rem);
}
.resume-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(54, 43, 32, .16);
}
.resume-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, .62fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  padding: clamp(1.8rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 14%, rgba(207, 111, 74, .16), transparent 25%),
    linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
}
.resume-intro h2 {
  margin: .45rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.75rem);
  line-height: .92;
  letter-spacing: -.065em;
}
.resume-intro h2 span { color: var(--accent); }
.resume-intro > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}
.resume-contact-card {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: .72rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  font-size: .88rem;
  box-shadow: 0 14px 36px rgba(54, 43, 32, .08);
}
.resume-contact-card > span { color: var(--muted); }
.resume-contact-card > a:not(.resume-link) {
  width: fit-content;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 720;
}
.resume-link {
  width: fit-content;
  margin-top: .3rem;
  padding-bottom: .16rem;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: .84rem;
  font-weight: 800;
}
.resume-layout {
  display: grid;
  grid-template-columns: minmax(225px, .62fr) minmax(0, 2fr);
  min-height: 620px;
}
.resume-sidebar {
  padding: clamp(1.6rem, 3.3vw, 2.8rem);
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}
.resume-sidebar-block + .resume-sidebar-block {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.resume-skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}
.resume-skill-cloud span {
  padding: .46rem .68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 760;
  line-height: 1;
}
.resume-education h3 {
  margin: .75rem 0 .35rem;
  font-size: 1.28rem;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.resume-education p,
.resume-certifications p {
  margin: .32rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.resume-education small {
  display: block;
  margin-top: .65rem;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.5;
}
.resume-timeline {
  position: relative;
  padding: clamp(1.8rem, 3.7vw, 3.25rem);
}
.resume-timeline::before {
  content: "";
  position: absolute;
  top: 3.4rem;
  bottom: 3.4rem;
  left: calc(clamp(1.8rem, 3.7vw, 3.25rem) + 1.2rem);
  width: 1px;
  background: var(--line);
}
.resume-entry {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: clamp(1rem, 2.2vw, 1.8rem);
}
.resume-entry + .resume-entry {
  margin-top: clamp(2.6rem, 5vw, 4.5rem);
  padding-top: clamp(2.6rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.resume-entry-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .08em;
}
.resume-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.resume-company {
  margin: 0 0 .42rem;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.resume-entry-header h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.resume-entry-header h3 span {
  color: var(--muted);
  font-size: .58em;
  font-weight: 560;
  letter-spacing: -.02em;
}
.resume-entry-meta {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
  text-align: right;
}
.resume-achievements {
  display: grid;
  gap: .75rem;
  max-width: 860px;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}
.resume-achievements li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.68;
}
.resume-achievements li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--accent);
}
.resume-achievements strong { color: var(--text); }
.resume-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.6rem;
}
.resume-highlight-grid > div {
  min-height: 94px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}
.resume-highlight-grid strong,
.resume-highlight-grid span {
  display: block;
}
.resume-highlight-grid strong {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.resume-highlight-grid span {
  margin-top: .48rem;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.35;
}
.resume-highlight-grid-camp > div:nth-child(2) {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
@media (max-width: 900px) {
  .resume-topbar { grid-template-columns: 1fr; }
  .resume-contact-card {
    align-self: auto;
    display: grid;
    grid-template-columns: repeat(3, max-content);
    align-items: center;
    justify-content: start;
    column-gap: 1.35rem;
  }
  .resume-contact-card .resume-link { margin-top: 0; }
  .resume-layout { grid-template-columns: 1fr; }
  .resume-sidebar {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 1.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .resume-sidebar-block + .resume-sidebar-block {
    margin-top: 0;
    padding-top: 0;
    padding-left: 1.5rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}
@media (max-width: 680px) {
 .resume-section { margin-top: 0; padding-top: 32px; }
  .resume-topbar { padding: 1.45rem; }
  .resume-contact-card {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .resume-sidebar {
    grid-template-columns: 1fr;
    padding: 1.45rem;
  }
  .resume-sidebar-block + .resume-sidebar-block {
    padding-top: 1.5rem;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .resume-timeline { padding: 1.45rem; }
  .resume-timeline::before {
    top: 2.8rem;
    bottom: 2.8rem;
    left: 2.65rem;
  }
  .resume-entry {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: .85rem;
  }
  .resume-entry-header {
    flex-direction: column;
    gap: .65rem;
  }
  .resume-entry-meta { text-align: left; }
  .resume-highlight-grid { grid-template-columns: 1fr; }
}


/* Writing section: mirrors the reading and watching shelves */
.writing-section { padding-top: 28px; }
.writing-heading { justify-content: flex-start; }
.writing-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(54, 43, 32, .08);
}
.writing-panel-header {
  min-height: 76px;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.writing-panel-header .eyebrow { margin: 0; }
.writing-profile-link,
.writing-footer a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color .2s ease, transform .2s ease;
}
.writing-profile-link:hover,
.writing-footer a:hover { color: var(--ink); }
.writing-panel-body {
  min-height: 315px;
  padding: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(130px, .32fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 88% 16%, rgba(184, 95, 59, .11), transparent 28%),
    linear-gradient(145deg, var(--surface) 0%, color-mix(in srgb, var(--sky) 35%, var(--surface)) 100%);
}
.writing-panel-body h3 {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.writing-panel-body p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.writing-page-mark {
  width: min(100%, 190px);
  aspect-ratio: 4 / 5;
  padding: 2rem 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .9rem;
  border: 1px solid var(--line);
  border-radius: 16px 16px 28px 16px;
  background: var(--paper);
  box-shadow: 16px 18px 0 color-mix(in srgb, var(--accent) 14%, transparent);
  transform: rotate(-2deg);
}
.writing-page-mark span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--line-strong);
}
.writing-page-mark span:nth-child(2) { width: 82%; }
.writing-page-mark span:nth-child(3) { width: 92%; }
.writing-page-mark span:nth-child(4) { width: 58%; background: var(--accent); }
.writing-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
}

/* Portfolio opening: the actual reporting work, shown as a system */
.portfolio-workbench { padding: 72px 0 48px; }
.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  gap: 1rem;
  align-items: stretch;
}
.workbench-intro {
  min-height: 670px;
  padding: clamp(2rem, 4.6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    radial-gradient(circle at 82% 16%, rgba(184,95,59,.52), transparent 28%),
    linear-gradient(145deg, #181715 0%, #27231f 56%, #3d2a22 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: var(--shadow);
}
.workbench-intro::after {
  content: "";
  position: absolute;
  right: -105px;
  bottom: -105px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 84px rgba(255,255,255,.02);
}
.workbench-intro .eyebrow { color: #e7b86b; }
.workbench-intro h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: .35rem 0 1.35rem;
  font-size: clamp(3.15rem, 6.2vw, 6rem);
  line-height: .94;
  letter-spacing: -.065em;
}
.workbench-intro h1 span { color: #e7b86b; }
.workbench-intro > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(1.02rem, 1.45vw, 1.17rem);
  line-height: 1.72;
}
.workbench-principles {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.8rem 0 2.1rem;
}
.workbench-principles span {
  padding: .48rem .72rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.82);
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .02em;
}
.workbench-intro .button { position: relative; z-index: 1; }
.reporting-stack {
  padding: clamp(1.45rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 8%, rgba(210,166,76,.13), transparent 24%),
    var(--surface);
  box-shadow: 0 16px 44px rgba(54,43,32,.08);
}
.reporting-stack-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .4rem .25rem 1.5rem;
}
.reporting-stack-header .eyebrow { margin-bottom: .45rem; }
.reporting-stack-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.stack-badge {
  flex: 0 0 auto;
  padding: .5rem .68rem;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.stack-layers {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.stack-layers li {
  min-height: 89px;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 88%, var(--paper));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.stack-layers li:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.stack-index {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.stack-layers strong,
.stack-layers small { display: block; }
.stack-layers strong {
  margin-bottom: .2rem;
  font-size: .98rem;
  letter-spacing: -.015em;
}
.stack-layers small {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.42;
}
.reporting-stack-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
}
.reporting-stack-note span {
  color: #e7b86b;
  font-size: 1.25rem;
  line-height: 1;
}
.reporting-stack-note p {
  margin: 0;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  font-size: .8rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .workbench-grid { grid-template-columns: 1fr; }
  .workbench-intro { min-height: 570px; }
}
@media (max-width: 620px) {
  .writing-panel-header { align-items: flex-start; flex-direction: column; }
  .writing-profile-link { white-space: normal; }
  .writing-panel-body {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 2rem 1.5rem 2.4rem;
  }
  .writing-page-mark { width: 125px; padding: 1.35rem 1rem; }
  .portfolio-workbench { padding-top: 32px; }
  .workbench-intro { min-height: 560px; padding: 1.7rem; }
  .workbench-intro h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .reporting-stack { padding: 1.15rem; }
  .reporting-stack-header { flex-direction: column; }
  .stack-layers li { grid-template-columns: 2.25rem minmax(0, 1fr); padding: .9rem; }
  .stack-index { width: 2.25rem; height: 2.25rem; }
}
