:root {
  --paper: #f8f2e6;
  --paper-deep: #efe5d6;
  --card: #fcf8f0;
  --ink: #32241b;
  --muted: #686154;
  --line: #ded5c8;
  --primary: #624431;
  --primary-dark: #3f2a1d;
  --sun: #f0d980;
  --rose: #dca59d;
  --leaf: #aec5a1;
  --sky: #a9cbdc;
  --violet: #cbb8d9;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(66, 45, 30, 0.1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(circle, rgba(98, 68, 49, 0.18) 0.8px, transparent 0.9px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  z-index: -1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 8px;
  z-index: 100;
  transform: translateY(-160%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
}
.skip-link:focus { transform: none; }

.container { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 64px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 242, 230, 0.93);
  border-bottom: 1px solid rgba(222, 213, 200, 0.95);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 230px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--primary);
  color: white;
}
.brand-name {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 17px;
  line-height: 1.1;
}
.brand-role {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.015em;
}
.desktop-nav { display: flex; align-items: center; gap: 24px; }
.desktop-nav a, .mobile-nav a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 160ms ease;
}
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
}
.mobile-nav { display: none; padding: 8px 20px 20px; border-top: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 10px 12px; border-radius: 5px; }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--paper-deep); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: #dca05d; }
.display {
  margin-bottom: 24px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(3.75rem, 7.6vw, 7.2rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.page-title {
  margin: 24px 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.section-title {
  margin: 14px 0 18px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
}
.card-title {
  margin: 18px 0 10px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}
.lead { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.7; }
.lede-strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.hero { padding: 100px 0 94px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: 76px; align-items: center; }
.hero-copy .lead { max-width: 700px; }
.identity-kicker { margin: 18px 0 16px; color: var(--primary); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 18px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); background: var(--primary-dark); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--paper-deep); }

.network {
  position: relative;
  aspect-ratio: 1;
  isolation: isolate;
  border-radius: 50%;
}
.network::before, .network::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px solid rgba(98, 68, 49, 0.25);
  border-radius: 50%;
}
.network::after { inset: 31%; }
.network-lines { position: absolute; inset: 0; color: rgba(98, 68, 49, 0.48); z-index: -1; }
.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 95px;
  aspect-ratio: 1;
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 5px 0 rgba(98, 68, 49, .12), 0 14px 32px rgba(98, 68, 49, .12);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 20px;
}
.node.center { left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--primary); color: white; width: 100px; }
.node.one { left: 6%; top: 15%; background: var(--sun); }
.node.two { right: 3%; top: 19%; background: var(--rose); }
.node.three { right: 2%; bottom: 16%; background: var(--sky); }
.node.four { left: 7%; bottom: 15%; background: var(--leaf); }

.role-strip { background: var(--primary); color: white; border-bottom: 1px solid var(--primary); }
.role-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.role-chip { padding: 22px 24px; border-left: 1px solid rgba(255,255,255,.18); }
.role-chip:last-child { border-right: 1px solid rgba(255,255,255,.18); }
.role-chip span { display: block; color: rgba(255,255,255,.65); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.role-chip strong { display: block; margin-top: 5px; font-size: 14px; font-weight: 600; }

.section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.section.soft { background: rgba(252, 248, 240, 0.72); }
.section.dark { background: var(--primary); color: white; }
.section.dark .eyebrow, .section.dark .lead, .section.dark .muted { color: rgba(255,255,255,.72); }
.section.dark .eyebrow::before { background: var(--sun); }
.section-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: end; margin-bottom: 42px; }
.three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.three-grid > article { padding: 32px; background: rgba(252, 248, 240, .8); }
.three-grid > article + article { border-left: 1px solid var(--line); }
.number-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 6px; font-weight: 700; }
.sun { background: var(--sun); }
.rose { background: var(--rose); }
.leaf { background: var(--leaf); }
.sky { background: var(--sky); }
.violet { background: var(--violet); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project-card {
  position: relative;
  min-height: 320px;
  padding: 34px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent, var(--sky));
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-card .tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.project-card h2, .project-card h3 { margin: 16px 0 14px; font-family: "DM Serif Display", Georgia, serif; font-size: 32px; font-weight: 400; line-height: 1.08; }
.project-card p { color: var(--muted); }
.project-card ul { margin: 22px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); }
.project-card li { position: relative; padding-left: 18px; margin: 8px 0; font-size: 14px; }
.project-card li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 7px; background: var(--accent, var(--sky)); }

.inline-link { font-size: 14px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.inline-link:hover { color: var(--primary); }
.section.dark .inline-link:hover { color: var(--sun); }

.page-hero { padding: 100px 0 80px; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 76px; align-items: end; }
.fact-panel { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.profile-panel { padding: 0; overflow: hidden; }
.profile-photo { width: 100%; height: clamp(300px, 34vw, 380px); object-fit: cover; object-position: center; border-bottom: 1px solid var(--line); background: var(--ink); }
.profile-panel-copy { padding: 24px 30px 18px; }
.profile-panel .fact-list div { padding: 12px 0; }
.fact-list { display: grid; gap: 0; margin: 0; }
.fact-list div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fact-list dd { margin: 5px 0 0; font-weight: 600; }

.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-org { color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.timeline-role { margin-bottom: 10px; font-family: "DM Serif Display", Georgia, serif; font-size: 30px; font-weight: 400; line-height: 1.15; }
.timeline-item p { margin-bottom: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.simple-list { padding: 0; margin: 24px 0 0; list-style: none; border-top: 1px solid var(--line); }
.simple-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.simple-list strong { display: block; }
.simple-list span { color: var(--muted); font-size: 14px; }

.expertise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.expertise-card { padding: 34px; background: var(--card); border-bottom: 1px solid var(--line); }
.expertise-card:nth-child(odd) { border-right: 1px solid var(--line); }
.expertise-card:nth-last-child(-n+2) { border-bottom: 0; }
.expertise-card h2, .expertise-card h3 { margin: 16px 0 10px; font-family: "DM Serif Display", Georgia, serif; font-size: 29px; font-weight: 400; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.skill-tags span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 600; }

.book-feature { display: grid; grid-template-columns: .72fr 1.28fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.book-cover { min-height: 500px; display: grid; align-content: center; padding: 50px; background: var(--primary); color: white; }
.book-cover small { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.book-cover h2 { margin: 28px 0 10px; font-family: "DM Serif Display", Georgia, serif; font-size: 58px; font-weight: 400; line-height: 1; }
.book-cover p { color: rgba(255,255,255,.7); }
.book-copy { padding: 52px; }
.book-copy h3 { font-family: "DM Serif Display", Georgia, serif; font-size: 34px; font-weight: 400; }
.book-copy ul { padding-left: 20px; color: var(--muted); }
.fiction-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.article { padding: 84px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.article-header { max-width: 820px; }
.prose { max-width: 820px; margin-top: 34px; font-size: 17px; line-height: 1.82; }
.prose p + p { margin-top: 18px; }
.diagram { margin-top: 38px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.diagram-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.diagram-panel { padding: 24px; border-radius: 8px; }
.diagram-panel h3 { font-family: "DM Serif Display", Georgia, serif; font-size: 26px; font-weight: 400; }
.chain { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.chain span { padding: 9px 13px; border: 1px solid rgba(50,36,27,.25); border-radius: 999px; background: rgba(255,255,255,.58); font-size: 13px; font-weight: 600; }
.diagram figcaption { margin-top: 18px; color: var(--muted); font-size: 13px; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flow-step { min-height: 150px; padding: 18px; border-radius: 8px; }
.flow-step strong { display: block; margin-top: 10px; }
.flow-step span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.flow-step p { margin: 8px 0 0; font-size: 13px; }

.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
.contact-options { display: grid; gap: 12px; margin-top: 28px; }
.contact-option { padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; background: rgba(252,248,240,.72); font-size: 14px; font-weight: 600; }
.contact-form { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; margin-top: 18px; }
.field label, .field > span { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #cfc3b3;
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(98,68,49,.12); }
.status { margin: 14px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.status a { font-weight: 600; text-underline-offset: 3px; }

.notice { margin: 28px 0 0; padding: 18px 20px; border-left: 5px solid var(--sun); background: rgba(240, 217, 128, .22); color: var(--muted); font-size: 14px; }
.cta { padding: 70px 0; background: var(--primary); color: white; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.cta h2 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
.cta p { margin: 10px 0 0; color: rgba(255,255,255,.7); }
.cta .button { background: white; color: var(--primary); border-color: white; flex: 0 0 auto; }

.site-footer { padding: 46px 0; background: #2f2119; color: white; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; }
.footer-brand { font-family: "DM Serif Display", Georgia, serif; font-size: 26px; }
.footer-copy { max-width: 620px; margin-top: 8px; color: rgba(255,255,255,.64); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-nav a { color: rgba(255,255,255,.78); font-size: 13px; text-decoration: none; }
.copyright { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.52); font-size: 12px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }

@media (max-width: 1040px) {
  .desktop-nav { gap: 15px; }
  .desktop-nav a { font-size: 13px; }
  .hero-grid { gap: 42px; }
  .node { width: 82px; font-size: 17px; }
  .node.center { width: 90px; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { min-height: auto; }
}

@media (max-width: 820px) {
  .container, .narrow { width: min(100% - 40px, 1180px); }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav[data-open="true"] { display: block; }
  .hero { padding: 72px 0; }
  .hero-grid, .page-hero-grid, .section-head, .contact-layout, .split { grid-template-columns: 1fr; gap: 40px; }
  .network { width: min(100%, 520px); margin: 0 auto; }
  .role-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .role-chip:nth-child(3) { border-top: 1px solid rgba(255,255,255,.18); }
  .role-chip:nth-child(4) { border-top: 1px solid rgba(255,255,255,.18); }
  .three-grid, .project-grid, .expertise-grid, .fiction-grid { grid-template-columns: 1fr; }
  .three-grid > article + article { border-left: 0; border-top: 1px solid var(--line); }
  .expertise-card:nth-child(odd) { border-right: 0; }
  .expertise-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .expertise-card:last-child { border-bottom: 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .book-feature { grid-template-columns: 1fr; }
  .book-cover { min-height: 400px; }
  .diagram-grid { grid-template-columns: 1fr; }
  .cta-inner, .footer-inner { display: grid; grid-template-columns: 1fr; align-items: start; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 540px) {
  .brand { min-width: 0; }
  .brand-role { max-width: 180px; }
  .display { font-size: clamp(3.3rem, 16vw, 5rem); }
  .page-title { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .node { width: 70px; font-size: 15px; }
  .node.center { width: 76px; }
  .role-strip-inner { grid-template-columns: 1fr; }
  .role-chip { border-right: 1px solid rgba(255,255,255,.18); border-top: 1px solid rgba(255,255,255,.18); }
  .section { padding: 68px 0; }
  .page-hero { padding: 70px 0 60px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-form, .project-card, .book-copy { padding: 26px; }
  .book-cover { padding: 36px; }
  .book-cover h2 { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .cta, .button-row, .menu-toggle, .skip-link { display: none !important; }
  body { background: white; color: black; }
  body::before { display: none; }
  .section, .page-hero, .article { padding: 30px 0; }
  .project-card, .expertise-card, .timeline-item { break-inside: avoid; }
}
