html { scroll-behavior: smooth; }

/* ─── Design tokens ─── */
:root {
  --amber: #B86B10;
  --black: #111111;
  --muted: #6b7280;
  --line:  #e5e5e5;
  --soft:  #faf9f7;
  --white: #ffffff;
  --font:  'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

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

/* ─── Base ─── */
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: white; }
a:focus-visible, button:focus-visible { outline: none; background-color: rgba(184,107,16,0.15) !important; border-radius: 4px; }
button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.65);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}
.site-header-inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  color: inherit;
}
.logo-badge { width: 32px; height: 32px; flex: none; }
.logo-divider { width: 1px; height: 16px; background: #d8d8d8; flex: none; }
.logo-name { font-size: 11px; color: #767676; letter-spacing: 0.02em; }

.nav-desktop {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: #555;
}
.nav-desktop a { transition: color 0.15s; }
.nav-desktop a:hover { color: var(--black); }
.nav-contact { color: var(--amber) !important; font-weight: 600; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--black);
  display: block;
}

/* ─── Mobile nav overlay ─── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #111111;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.mobile-nav.open {
  display: flex;
  animation: navItemIn 0.35s ease both;
}
@keyframes navItemIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  font-family: var(--font);
}
.mobile-nav-logo { width: 72px; height: 72px; opacity: 0.9; }
.mobile-nav a {
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 700;
  color: white;
  animation: navItemIn 0.35s ease both;
}
.mobile-nav a:nth-child(2) { animation-delay: 60ms; }
.mobile-nav a:nth-child(3) { animation-delay: 120ms; }
.mobile-nav a.mobile-nav-contact { color: var(--amber); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 88px 24px 96px;
  overflow: hidden;
  color: var(--black);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('hero-bg.jpeg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.7) brightness(1.25);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255,255,255,0.88);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}
.hero-wordmark { display: flex; justify-content: flex-start; margin-bottom: 28px; }
.hero-wordmark svg { width: 120px; height: auto; }
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(38px, 5.2vw, 70px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  max-width: 16ch;
  color: var(--black);
}
.hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 48px;
  text-wrap: balance;
}
.hero-ctas {
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--black);
  color: white;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 4px;
  border: 1px solid var(--black);
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--amber); border-color: var(--amber); }
.btn-ghost {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--black); }
.btn-ghost .arrow { transition: transform 0.15s; }
.btn-ghost:hover .arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════════
   NOTES SECTION
═══════════════════════════════════════════ */
.notes-section {
  background: var(--soft);
  padding: 72px 24px;
  border-top: 1px solid var(--line);
}
.notes-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}
.notes-sidebar {
  position: sticky;
  top: 85px;
}
.notes-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.notes-title {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.notes-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 28px;
}

/* ─── Filter chips ─── */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  line-height: 1;
}
.chip:hover { border-color: var(--amber); color: var(--amber); }
.chip.active { background: var(--amber); border-color: var(--amber); color: white; font-weight: 600; }

/* ─── Series filter row ─── */
.filter-series {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}
.filter-series-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 2px;
  width: 100%;
}
.chip-series {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  line-height: 1;
}
.chip-series:hover { border-color: var(--amber); color: var(--amber); }
.chip-series.active { background: var(--amber); border-color: var(--amber); color: white; font-weight: 600; }

/* ─── Article list card ─── */
.article-list {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.article-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  transition: box-shadow 0.2s ease, opacity 0.18s ease, transform 0.18s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.article-row.fading {
  opacity: 0;
  transform: translateY(4px);
}
.article-row:first-child { border-top: none; }
.article-row[hidden] { display: none; }

.row-arrow-left {
  width: 0;
  align-self: stretch;
  margin: -18px 0 -18px -20px;
  overflow: hidden;
  flex: none;
  background: var(--amber);
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s ease, margin-right 0.25s ease;
}

@media (min-width: 861px) {
  .article-row:hover { box-shadow: inset 3px 0 0 var(--amber); }
  .article-row:hover .row-arrow-left { width: 28px; margin-right: 10px; }
  .article-row:hover .article-row-body { margin-left: 0; }
}
@media (max-width: 860px) {
  .article-row:active { box-shadow: inset 3px 0 0 var(--amber); }
}

.article-row-body { flex: 1; min-width: 0; margin-left: 16px; }

.article-row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.article-row-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--amber);
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}
.article-row-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-row-meta { font-size: 12px; color: #767676; margin-bottom: 7px; }
.article-row-excerpt {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

/* ═══════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════ */
.contact-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 88px 24px;
  display: flex;
  justify-content: center;
}
.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.contact-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.13;
  margin: 0 0 18px;
}
.contact-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 46ch;
}
.contact-right {
  border-left: 1px solid var(--line);
  padding-left: 64px;
}
.contact-badge { width: 96px; height: 96px; margin-bottom: 28px; display: block; }
.contact-name { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.contact-bio { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 24px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--amber);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.15s;
}
.contact-email:hover { opacity: 0.7; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  padding: 28px 24px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
}
.site-footer-inner {
  max-width: 1080px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-wordmark {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.035em;
}
.footer-email { color: var(--muted); border-bottom: 1px solid var(--line); }
.footer-email:hover { color: var(--amber); border-color: var(--amber); }
.footer-left { display: flex; align-items: baseline; gap: 3px; }
.footer-right { display: flex; align-items: center; gap: 10px; }
.footer-pipe { color: var(--line); font-size: 13px; }
.footer-rss { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.footer-rss:hover { color: var(--amber); }
.footer-icon-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; transition: color 0.15s ease; }
.footer-icon-link:hover { color: var(--black); }
.footer-icon-link.pill { background: var(--muted); color: #fff; border-radius: 6px; padding: 3px 8px 3px 6px; }
.footer-icon-link.pill:hover { background: var(--black); color: #fff; }

/* ═══════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════ */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-hamburger { display: flex; }

  .notes-inner { grid-template-columns: 1fr; gap: 32px; }
  .notes-sidebar { position: static; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-right { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 64px 24px 72px; }
  .hero-ctas { flex-direction: column; gap: 16px; }
  .article-row-excerpt { display: none; }
  .logo-wrap { margin-left: -8px; }
}

/* ═══════════════════════════════════════════
   HERO WORDMARK ANIMATIONS
═══════════════════════════════════════════ */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.75); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes drawStroke {
  from { stroke-dashoffset: 62; }
  to   { stroke-dashoffset: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}
.logo-wrap {
  animation: scaleIn 0.65s cubic-bezier(.22,.68,0,1.2) 0.1s both,
             float 5s ease-in-out 0.9s infinite;
}
.anim-stroke {
  stroke-dasharray: 62;
  stroke-dashoffset: 62;
  animation: drawStroke 0.7s cubic-bezier(.4,0,.2,1) 0.55s both;
}
