/* =========================================================
   muratdemirai.com — editorial personal site
   Palette: petrol navy · champagne gold · cream paper
   ========================================================= */
:root {
  --ink: #0a1c26;
  --ink-2: #0f2a37;
  --ink-3: #143746;
  --ink-soft: #3d4c4f;
  --muted: #6d7674;
  --gold: #c0a068;
  --gold-bright: #e2c795;
  --gold-deep: #9c7c43;
  --paper: #f6f2e9;
  --paper-2: #efe7d8;
  --paper-3: #e6dcc9;
  --surface: #fffdf8;
  --line: #dbd0bb;
  --line-strong: #c6b699;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Mono", "Consolas", monospace;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-deep); }

::selection { background: var(--gold); color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 780px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 120;
  background: var(--gold); color: var(--ink); padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.02em;
}
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.eyebrow, .kicker {
  margin: 0 0 16px;
  color: var(--gold-deep);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.95rem, 3.9vw, 3rem);
  font-weight: 500;
  letter-spacing: -.025em;
  max-width: 22ch;
}
.section-lead {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 242, 233, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topline {
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: 0 0 42px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--gold-bright);
  font-family: var(--serif); font-size: .95rem; letter-spacing: .04em;
  border-radius: 2px;
  box-shadow: inset 0 0 0 3px rgba(226, 199, 149, .12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif); font-size: 1.34rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--ink);
}
.brand-role {
  margin-top: 4px;
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  position: relative; padding: 8px 0;
  font-size: .82rem; color: var(--ink-soft); letter-spacing: .01em;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-mail {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  font-size: .74rem; font-weight: 500; letter-spacing: .04em;
  color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.header-mail .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep);
}
.header-mail:hover { background: var(--ink); border-color: var(--ink); color: var(--gold-bright); }
.header-mail:hover .dot { background: var(--gold-bright); }

.menu-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: transparent; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center; font-size: 1.05rem;
}
.site-header.is-scrolled { box-shadow: 0 14px 34px -26px rgba(10, 28, 38, .55); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 88% 0%, rgba(192, 160, 104, .16), transparent 60%),
    radial-gradient(ellipse 55% 55% at 0% 100%, rgba(50, 96, 118, .35), transparent 60%),
    linear-gradient(158deg, #0c222d 0%, #0a1c26 52%, #071520 100%);
  color: #c9d3d3;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 82%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; right: -12%; top: 12%;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(192, 160, 104, .13);
  filter: blur(80px);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(30px, 5.5vw, 76px);
  align-items: center;
  padding: clamp(48px, 6.5vw, 92px) 0 clamp(52px, 6vw, 80px);
}
.hero .eyebrow { color: var(--gold-bright); margin-bottom: 22px; }
.hero h1 {
  font-family: var(--serif);
  color: #fbf8f1;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.035em;
  max-width: 15ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
}
.hero-lead {
  margin: 24px 0 0;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #b8c4c5;
}
.hero-note {
  margin: 22px 0 0;
  padding-left: 15px;
  border-left: 1px solid rgba(226, 199, 149, .45);
  font-size: .8rem;
  line-height: 1.6;
  letter-spacing: .02em;
  color: #93a3a5;
  max-width: 46ch;
}
.hero-copy .actions { margin-top: 30px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 2px; border: 1px solid transparent;
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-bright); color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #f1ece1; }
.btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-2); color: var(--gold-bright); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--gold-bright); }
.btn .arrow { font-size: 1rem; line-height: 1; }

/* ---------- portrait ---------- */
.hero-portrait { position: relative; }
.portrait-frame {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(192, 160, 104, .38);
  background: rgba(255, 255, 255, .03);
}
.portrait-frame::before,
.portrait-frame::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  border: 1px solid var(--gold-bright); pointer-events: none;
}
.portrait-frame::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.portrait-frame::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.portrait-frame img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%;
}
.portrait-badge {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: #f4efe4;
}
.portrait-badge strong {
  display: block;
  font-family: var(--serif); font-size: 1.02rem; font-weight: 500; letter-spacing: -.01em;
}
.portrait-badge span {
  display: block; margin-top: 4px;
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #b9c4c3;
}
.portrait-badge .mark {
  flex: 0 0 auto;
  padding: 5px 8px; border: 1px solid rgba(226, 199, 149, .5);
  font-size: .58rem; letter-spacing: .14em; color: var(--gold-bright);
}
.portrait-side {
  position: absolute; left: -34px; top: 0;
  writing-mode: vertical-rl;
  font-size: .58rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(226, 199, 149, .6);
}

/* ---------- ticker ---------- */
.ticker {
  position: relative; overflow: hidden;
  background: var(--ink-3);
  border-top: 1px solid rgba(226, 199, 149, .18);
  border-bottom: 1px solid rgba(226, 199, 149, .18);
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 26px;
  padding: 13px 0 13px 26px;
  white-space: nowrap;
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: #b6c2c2;
}
.ticker-item::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- section skeleton ---------- */
.section {
  padding: clamp(62px, 8vw, 108px) 0;
  border-top: 1px solid var(--line);
  overflow-x: hidden;
}
.section:first-of-type { border-top: 0; }
.section--alt { background: var(--paper-2); }
.section--surface { background: var(--surface); }
.section--ink {
  background:
    radial-gradient(ellipse 55% 60% at 95% 0%, rgba(192, 160, 104, .14), transparent 60%),
    var(--ink);
  border-top: 0;
  color: #b8c4c5;
}
.section--ink .section-title,
.section--ink h3 { color: #f7f2e6; }
.section--ink .section-lead { color: #9fb0b2; }
.section--ink .kicker { color: var(--gold-bright); }
.section--ink .rail { border-color: rgba(226, 199, 149, .35); }
.section--ink .rail span { color: var(--gold-bright); }

.section-head {
  display: grid; grid-template-columns: 92px 1fr;
  gap: 26px; align-items: start;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.rail {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding-top: 6px;
  border-left: 1px solid var(--line-strong);
  padding-left: 16px;
  margin-left: 2px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  color: var(--gold-deep);
}
.rail::after { content: ""; width: 1px; height: 34px; background: var(--line); }
.section-head .kicker { margin-bottom: 12px; }

.link-more {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 8px;
  font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.link-more:hover { color: var(--gold-deep); }
.link-more span { transition: transform .25s var(--ease); }
.link-more:hover span { transform: translateX(4px); }

/* ---------- three layers ---------- */
.layers { border-top: 1px solid var(--line); }
.layer {
  display: grid; grid-template-columns: 92px 1fr;
  gap: clamp(18px, 3vw, 38px);
  padding: clamp(26px, 3.6vw, 42px) 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.layer:hover { background: rgba(255, 253, 248, .65); }
.layer-num {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -.02em;
}
.layer-body { max-width: 76ch; }
.layer-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.62rem);
  font-weight: 500;
  margin-bottom: 10px;
}
.layer-title span {
  display: inline-block; margin-left: 10px;
  font-family: var(--sans); font-size: .6rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep);
  vertical-align: middle;
}
.layer-text { font-size: .95rem; line-height: 1.78; color: var(--ink-soft); }
.layer-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding: 0; list-style: none;
}
.layer-tags li {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  font-size: .68rem; letter-spacing: .03em; color: var(--ink-soft);
  background: var(--surface);
}

/* ---------- cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  overflow: hidden;
  transition: background .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), rgba(192, 160, 104, 0));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover { background: #fff; }
.card:hover::before { transform: scaleX(1); }
.card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.card-tag {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-deep);
}
.card-no {
  font-family: var(--serif); font-size: 1.1rem; color: var(--line-strong);
}
.card h3 {
  font-family: var(--serif); font-size: clamp(1.18rem, 1.9vw, 1.45rem);
  font-weight: 500; margin-bottom: 10px;
}
.card p { font-size: .9rem; line-height: 1.75; color: var(--ink-soft); }
.card-metric {
  display: block; margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: .72rem; letter-spacing: .02em; color: var(--muted);
}
.card-metric b { color: var(--ink); font-weight: 600; }

/* ---------- notes list ---------- */
.note-list { border-top: 1px solid var(--line); }
.note-item {
  display: grid; grid-template-columns: 76px 1fr 32px;
  gap: clamp(14px, 2.5vw, 30px);
  align-items: start;
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background .3s var(--ease);
}
.note-item:hover { background: rgba(255, 253, 248, .8); color: var(--ink); }
.note-num {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 300;
  color: var(--gold); line-height: 1.1;
}
.note-tag {
  display: block; margin-bottom: 8px;
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}
.note-title {
  font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500; line-height: 1.25; letter-spacing: -.015em;
  transition: color .25s var(--ease);
}
.note-item:hover .note-title { color: var(--gold-deep); }
.note-summary {
  margin: 8px 0 0; max-width: 66ch;
  font-size: .88rem; line-height: 1.7; color: var(--muted);
}
.note-arrow {
  font-size: 1.1rem; color: var(--gold-deep);
  transition: transform .25s var(--ease);
}
.note-item:hover .note-arrow { transform: translateX(5px); }

/* ---------- timeline ---------- */
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.tl-item {
  position: relative;
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
}
.tl-item:last-child { border-right: 0; padding-right: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: -4px;
  width: 7px; height: 7px; background: var(--gold); border-radius: 50%;
}
.tl-year {
  display: block;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 12px;
}
.tl-title {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 500;
  margin-bottom: 8px;
}
.tl-text { font-size: .86rem; line-height: 1.7; color: var(--muted); }

/* ---------- quote band ---------- */
.quote-band {
  position: relative; overflow: hidden;
  padding: clamp(54px, 7vw, 88px) 0;
  background:
    radial-gradient(ellipse 60% 90% at 15% 0%, rgba(192, 160, 104, .18), transparent 62%),
    var(--ink);
  color: #e7e2d6;
}
.quote-band blockquote {
  margin: 0;
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.55rem);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: -.025em;
  color: #f8f3e8;
}
.quote-band blockquote em { color: var(--gold-bright); font-style: italic; }
.quote-band cite {
  display: block; margin-top: 26px;
  font-style: normal; font-size: .66rem; letter-spacing: .22em;
  text-transform: uppercase; color: #9fb0b2;
}
.quote-grid {
  display: grid; grid-template-columns: .5fr 1.5fr;
  gap: 30px; align-items: start;
}
.quote-mark {
  font-family: var(--serif); font-size: 5rem; line-height: .8;
  color: rgba(192, 160, 104, .55);
}

/* ---------- contact band ---------- */
.contact-band {
  padding: clamp(56px, 7vw, 92px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(30px, 5vw, 70px); align-items: end;
}
.contact-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.025em;
  max-width: 24ch;
  margin-bottom: 16px;
}
.contact-band p { max-width: 54ch; font-size: .95rem; }
.contact-mail {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.contact-mail:hover { color: var(--gold-deep); }
.contact-list {
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line-strong);
}
.contact-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: .84rem; color: var(--ink);
}
.contact-list li span {
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}

/* ---------- page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(46px, 6vw, 76px) 0 clamp(38px, 4.6vw, 56px);
  background:
    radial-gradient(ellipse 55% 80% at 92% 0%, rgba(192, 160, 104, .16), transparent 60%),
    linear-gradient(160deg, #0c222d, #0a1c26 60%, #071520);
  color: #b9c5c6;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb {
  margin: 0 0 26px;
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: #8fa1a3;
}
.breadcrumb a { color: #b9c5c6; }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb span { margin: 0 8px; color: rgba(226, 199, 149, .5); }
.page-hero .eyebrow { color: var(--gold-bright); margin-bottom: 14px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fbf8f1;
  max-width: 20ch;
}
.page-hero-lead {
  margin: 18px 0 0;
  max-width: 64ch;
  font-size: .98rem;
  line-height: 1.75;
  color: #a9b8b9;
}
.page-hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 26px;
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: #8fa1a3;
}
.page-hero-meta span::before {
  content: ""; display: inline-block; width: 4px; height: 4px;
  margin-right: 8px; vertical-align: 2px; background: var(--gold);
}

/* ---------- prose ---------- */
.prose { max-width: 74ch; }
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.62rem);
  font-weight: 500;
  margin: 40px 0 12px;
  scroll-margin-top: 110px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--serif);
  font-size: 1.12rem; font-weight: 500; margin: 26px 0 8px;
}
.prose p { font-size: .96rem; line-height: 1.82; }
.prose ul, .prose ol { margin: 14px 0 20px; padding-left: 0; list-style: none; }
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: .94rem;
  line-height: 1.72;
}
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 1px; background: var(--gold);
}
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; padding-left: 30px; }
.prose ol li::before {
  content: counter(item) "."; position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: .72rem; color: var(--gold-deep);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { border-bottom: 1px solid var(--gold); }
.prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- aside ---------- */
.with-aside {
  display: grid; grid-template-columns: 1fr 320px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.with-aside > * { min-width: 0; }
.aside-card {
  position: sticky; top: 104px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}
.aside-card h2 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  margin-bottom: 16px;
}
.aside-card dl { margin: 0 0 18px; }
.aside-card dt {
  margin-top: 12px;
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}
.aside-card dd {
  margin: 3px 0 0;
  font-size: .88rem; color: var(--ink); line-height: 1.55;
}
.aside-card dd a { border-bottom: 1px solid var(--line-strong); }
.aside-card dd a:hover { border-color: var(--gold); }
.aside-note {
  margin: 18px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .8rem; line-height: 1.65; color: var(--muted);
}
.aside-card .btn { width: 100%; margin-top: 18px; }
.aside-list { margin: 0; padding: 0; list-style: none; }
.aside-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.aside-list li:last-child { border-bottom: 0; }
.aside-list a { color: var(--ink); }
.aside-list a:hover { color: var(--gold-deep); }
.aside-list span {
  margin-right: 8px; font-family: var(--mono); font-size: .66rem; color: var(--gold-deep);
}

/* ---------- callout ---------- */
.callout {
  margin-top: 30px;
  padding: 20px 22px;
  background: var(--paper-2);
  border-left: 2px solid var(--gold);
  font-size: .84rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

/* ---------- expertise ---------- */
.expertise { border-top: 1px solid var(--line-strong); }
.expertise-item {
  display: grid; grid-template-columns: 92px 1fr;
  gap: clamp(18px, 3vw, 38px);
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.expertise-num {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 300; line-height: 1; color: var(--gold);
}
.expertise-item h2 {
  font-family: var(--serif); font-size: clamp(1.22rem, 2.1vw, 1.55rem);
  font-weight: 500; margin-bottom: 10px;
}
.expertise-item p { font-size: .94rem; line-height: 1.78; max-width: 74ch; }
.tag-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 16px 0 0; padding: 0; list-style: none;
}
.tag-list li {
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: .68rem; color: var(--ink-soft);
}

/* ---------- process ---------- */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.step {
  padding: 26px 24px 4px 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step-num {
  display: block; margin-bottom: 14px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  color: var(--gold-deep);
}
.step h3 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500; margin-bottom: 8px;
}
.step p { font-size: .86rem; line-height: 1.72; color: var(--muted); }

/* ---------- checklist ---------- */
.checklist {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.check-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px;
  background: var(--surface);
}
.check-num {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: .7rem; color: var(--gold-deep);
  padding-top: 4px;
}
.check-item p { margin: 0; font-size: .88rem; line-height: 1.65; color: var(--ink-soft); }

/* ---------- research articles ---------- */
.research-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}
.research-layout > * { min-width: 0; }
.article {
  padding: clamp(28px, 3.4vw, 42px) 0;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 100px;
}
.article:first-child { border-top: 0; padding-top: 0; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 12px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-deep);
}
.article-meta .sep { color: var(--line-strong); }
.article h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin-bottom: 14px;
  max-width: 30ch;
}
.article-standfirst {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 62ch;
}
.article p { font-size: .94rem; line-height: 1.82; max-width: 72ch; }
.article h3 {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 500;
  margin: 26px 0 8px;
}
.article-quote {
  margin: 22px 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 64ch;
}
.keypoints {
  margin: 20px 0 0; padding: 18px 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  list-style: none;
}
.keypoints li {
  position: relative;
  padding-left: 20px;
  margin: 0 0 8px;
  font-size: .86rem; line-height: 1.65;
}
.keypoints li:last-child { margin-bottom: 0; }
.keypoints li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 8px; height: 1px; background: var(--gold-deep);
}
.toc {
  position: sticky; top: 104px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}
.toc h2 {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 500;
  margin-bottom: 14px;
}
.toc ol {
  margin: 0; padding: 0; list-style: none;
  counter-reset: toc;
}
.toc li { border-bottom: 1px solid var(--line); }
.toc li:last-child { border-bottom: 0; }
.toc a {
  display: flex; gap: 10px;
  padding: 11px 0;
  font-size: .82rem; line-height: 1.5; color: var(--ink);
}
.toc a::before {
  counter-increment: toc; content: counter(toc, decimal-leading-zero);
  font-family: var(--mono); font-size: .64rem; color: var(--gold-deep);
  padding-top: 3px;
}
.toc a:hover { color: var(--gold-deep); }
.toc-note {
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .75rem; line-height: 1.6; color: var(--muted);
}

/* ---------- contact page ---------- */
.contact-layout {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(30px, 5vw, 64px); align-items: start;
}
.mail-panel {
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--ink);
  color: #c3cfcf;
  border-top: 2px solid var(--gold);
}
.mail-panel .eyebrow { color: var(--gold-bright); }
.mail-panel h2 {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 400; color: #fbf8f1; margin-bottom: 12px;
}
.mail-panel p { font-size: .88rem; line-height: 1.7; color: #a9b8b9; }
.mail-panel .contact-mail {
  color: #fbf8f1; font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  margin-top: 14px;
}
.mail-panel .contact-mail:hover { color: var(--gold-bright); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mail-actions .btn--ghost { border-color: rgba(255, 255, 255, .26); }
.mail-actions .btn--solid { background: var(--gold); color: var(--ink); }
.form-panel {
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.form-panel h2 {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500;
  margin-bottom: 6px;
}
.form-panel > p { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .9rem;
  line-height: 1.5;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin-top: 12px; font-size: .72rem; line-height: 1.6; color: var(--muted); }
.form-note a { border-bottom: 1px solid var(--line-strong); }
.form-status {
  margin-top: 12px;
  font-size: .78rem;
  color: var(--gold-deep);
  min-height: 1.2em;
}
.form-status.is-error { color: #a4462b; }

/* ---------- legal ---------- */
.legal { max-width: 78ch; }
.legal h2 {
  font-family: var(--serif); font-size: 1.32rem; font-weight: 500;
  margin: 34px 0 10px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: .92rem; line-height: 1.8; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal-updated {
  display: inline-block; margin-bottom: 26px;
  padding: 5px 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: .68rem; letter-spacing: .08em; color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(48px, 6vw, 76px) 0 30px;
  background: var(--ink);
  color: #9fb0b2;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 160, 104, .8), transparent);
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr .7fr .8fr;
  gap: clamp(30px, 5vw, 70px);
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 18px; }
.brand--footer .brand-glyph {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(226, 199, 149, .45);
}
.brand--footer .brand-name { color: #f7f2e6; }
.brand--footer .brand-role { color: #8fa1a3; }
.footer-brand p {
  max-width: 46ch;
  font-size: .86rem; line-height: 1.75; color: #93a3a5;
}
.footer-place {
  margin-top: 12px !important;
  font-family: var(--mono); font-size: .66rem !important;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold) !important;
}
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h2 {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: .6rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-bright);
}
.footer-col a, .footer-col span {
  font-size: .85rem; color: #9fb0b2;
  transition: color .22s var(--ease);
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .7rem; color: #7e9092;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- utilities ---------- */
.mt-18 { margin-top: 18px; }
.mt-26 { margin-top: 26px; }
.mt-36 { margin-top: 36px; }
.mb-18 { margin-bottom: 18px; }
.tight-hero { padding-top: clamp(64px, 9vw, 110px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: .78rem; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .research-layout { grid-template-columns: 1fr 270px; }
  .with-aside { grid-template-columns: 1fr 290px; }
}

@media (max-width: 920px) {
  .header-inner { min-height: 68px; }
  .menu-toggle { display: inline-flex; order: 3; }
  .header-actions .header-mail { display: none; }
  .nav {
    position: fixed; inset: 71px 0 auto 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(10, 28, 38, .6);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    width: 100%; padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: .94rem;
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--gold-deep); }

  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-copy { order: 2; }
  .hero-portrait { order: 1; max-width: 420px; }
  .portrait-side { display: none; }
  .hero h1 { max-width: 18ch; }

  .section-head { grid-template-columns: 1fr; gap: 4px; }
  .rail { flex-direction: row; align-items: center; border-left: 0; padding-left: 0; margin-left: 0; }
  .rail::after { width: 40px; height: 1px; }
  .cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .tl-item { padding-bottom: 24px; }
  .tl-item:nth-child(2) { border-right: 0; }
  .tl-item:nth-child(1), .tl-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step { padding-bottom: 22px; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .quote-grid { grid-template-columns: 1fr; gap: 8px; }
  .quote-mark { font-size: 3.6rem; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
  .contact-layout { grid-template-columns: 1fr; }
  .with-aside, .research-layout { grid-template-columns: 1fr; }
  .aside-card, .toc { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .checklist { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 66px 1fr; }
  .expertise-item { grid-template-columns: 66px 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-role { display: none; }
  .brand-name { font-size: 1.18rem; }
  .brand-glyph { width: 38px; height: 38px; flex-basis: 38px; }
  .header-actions { gap: 8px; }
  .section-head { margin-bottom: 28px; }
  .section-title { max-width: none; }
  .hero { padding-top: 0; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-lead { font-size: .95rem; }
  .hero-portrait { max-width: 330px; }
  .portrait-badge { left: 18px; right: 18px; bottom: 18px; }
  .portrait-badge .mark { display: none; }
  .note-item { grid-template-columns: 44px 1fr; }
  .note-arrow { display: none; }
  .timeline { grid-template-columns: 1fr; }
  .tl-item { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .tl-item:last-child { border-bottom: 0; }
  .process { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .step:last-child { border-bottom: 0; }
  .layer { grid-template-columns: 1fr; gap: 10px; }
  .layer-num { font-size: 1.5rem; }
  .expertise-item { grid-template-columns: 1fr; gap: 10px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list li { font-size: .8rem; }
  .page-hero-meta { gap: 8px 16px; font-size: .58rem; }
  .article { padding: 26px 0; }
  .article h2 { max-width: none; }
}

@media (max-width: 380px) {
  :root { --pad: 16px; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .contact-band, .ticker, .actions, .menu-toggle, .toc { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .section, .page-hero { padding: 16pt 0; break-inside: avoid; background: #fff !important; color: #111 !important; }
  .page-hero h1, .section--ink .section-title { color: #111 !important; }
  a { color: #111; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
