/* =============================================================
   SoloMan.be — Main Stylesheet
   One person. Many ideas. Several artificial minds.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-headline, .hero-lead, .hero-actions, .hero-status {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Custom Properties --- */
:root {
  --bg:              #09080b;
  --bg-elevated:     #0e0d10;
  --bg-card:         #111014;
  --bg-card-hover:   #161419;

  --gold:            #c9a227;
  --gold-light:      #deba40;
  --gold-dim:        #8c711b;
  --gold-subtle:     rgba(201,162,39,0.07);
  --gold-border:     rgba(201,162,39,0.22);

  --text:            #f0ece3;
  --text-2:          #948f85;
  --text-3:          #524d47;

  --border:          rgba(240,236,227,0.07);
  --border-subtle:   rgba(240,236,227,0.04);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', ui-monospace, 'Cascadia Code', monospace;

  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --dur:       0.25s;
  --dur-slow:  0.55s;

  --w:   1120px;
  --w-n: 700px;
}

/* --- Base --- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

p { margin: 0; }
p + p { margin-top: 1em; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.container--narrow { max-width: var(--w-n); }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: #0a0800;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  transition: top 0.1s;
}
.skip-link:focus { top: 0; }

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

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

/* ============================================================
   HEADER — Horizontal Logo + Wordmark
   Left: icon mark crop + SOLOMAN / TECHNOLOGY text
   Right: all nav links (desktop) or hamburger (mobile)
   ============================================================ */

:root {
  --header-h: 4.5rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: #000;
  backdrop-filter: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--dur) var(--ease);
}
.site-header.scrolled { border-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

/* ── Logo — horizontal wordmark image ────────────────────── */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
}
.header-logo:hover { opacity: 0.75; }

.header-logo img {
  height: 61px;
  width: auto;
  display: block;
  mix-blend-mode: lighten; /* black bg of the PNG dissolves into the header */
}

/* ── Right side: nav + hamburger ─────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}
.header-nav a {
  display: block;
  padding: 0.38rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  border-radius: 2px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.header-nav a:hover,
.header-nav a:focus-visible { color: var(--text); background: rgba(255,255,255,0.04); }
.header-nav a.active { color: var(--gold); }

/* ── Hamburger ────────────────────────────────────────────── */
.nav-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color var(--dur) var(--ease);
}
.nav-btn:hover { border-color: var(--gold-border); }

.nav-btn-bar {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--text-2);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-btn[aria-expanded="true"] .nav-btn-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-btn[aria-expanded="true"] .nav-btn-bar:nth-child(2) { opacity: 0; }
.nav-btn[aria-expanded="true"] .nav-btn-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile nav overlay ───────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(9,8,11,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { list-style: none; text-align: center; width: 100%; }
.mobile-nav li { border-bottom: 1px solid var(--border-subtle); }
.mobile-nav a {
  display: block;
  padding: 1.1rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--dur) var(--ease);
}
.mobile-nav a:hover { color: var(--gold); }

/* ── Breakpoint: hide desktop nav, show hamburger ─────────── */
@media (max-width: 820px) {
  .header-nav { display: none; }
  .nav-btn    { display: flex; }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */

section {
  padding-block: clamp(4rem, 10vw, 8rem);
}

/* Section label */
.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 3rem;
  height: 1px;
  background: var(--gold-dim);
  opacity: 0.5;
}

/* Large display heading */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Thin gold rule */
.rule {
  height: 1px;
  background: linear-gradient(to right, var(--gold-border), transparent);
  margin-block: clamp(3rem, 8vw, 6rem);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  position: relative;
  isolation: isolate;
}

/* Grain overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

/* Radial ambient glow — centred on where the logo hangs */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(201,162,39,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  opacity: 0;
  animation: fade-up 1s var(--ease) 0.15s forwards;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-lead {
  max-width: 52ch;
  color: var(--text-2);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.75;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  opacity: 0;
  animation: fade-up 1s var(--ease) 0.35s forwards;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  opacity: 0;
  animation: fade-up 1s var(--ease) 0.55s forwards;
}

.hero-status {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.75s forwards;
}
.hero-status .sep {
  margin-inline: 0.75rem;
  color: var(--gold-dim);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: #0a0800;
  border-color: var(--gold);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-secondary {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--text);
  border-color: var(--gold-border);
}

/* ============================================================
   STORY — Founding manifesto
   ============================================================ */

.story-manifesto {
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Header */
.story-header {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.story-title em {
  font-style: italic;
  color: var(--gold);
}

.story-intro {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--text-2);
  line-height: 1.5;
}

/* Dividers */
.story-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border), transparent);
  margin-block: clamp(2.5rem, 6vw, 5rem);
}

.story-divider-inline {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin-block: 2rem;
}

/* Editorial image */
.story-image {
  max-width: 600px;
  margin-inline: auto;
}
.story-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.88);
  border-radius: 2px;
}
.story-image figcaption {
  text-align: center;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-top: 1.25rem;
}

/* Two-column layout */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 0 clamp(2.5rem, 5vw, 4rem);
  align-items: start;
  max-width: 900px;
  margin-inline: auto;
}

/* Body text */
.story-first {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.story-p {
  font-size: clamp(0.95rem, 1.9vw, 1.05rem);
  line-height: 1.88;
  color: var(--text-2);
  margin-bottom: 1.1rem;
}

.story-standalone {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--text);
  margin-block: 0.5rem 0.75rem;
}

/* In-flow statement — gold border-left */
.story-statement {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-style: italic;
  color: var(--gold);
  line-height: 1.35;
  margin-block: 1.75rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold-border);
}

/* Linus line — centered with thin rules */
.story-linus {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  text-align: center;
  margin-block: 2.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Aside — desktop pull-quotes, sticky */
.story-aside {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 4rem;
}

.story-pq {
  margin: 0;
  padding: 0;
  border: none;
}
.story-pq p {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.4;
  font-size: clamp(0.92rem, 1.6vw, 1.1rem);
}
.story-pq p + p { margin-top: 0.2rem; }

.story-pq--journey {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
}
.story-pq--journey p {
  color: var(--gold);
  font-style: italic;
}

.story-pq--ecosystem-aside {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.story-pq--ecosystem-aside p {
  color: var(--text-3);
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .story-layout { grid-template-columns: 1fr; }
  .story-aside  { display: none; }
}

/* Coda */
.story-coda {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.story-ecosystem {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 3rem;
}
.story-ecosystem span {
  display: block;
  color: var(--text-2);
  font-style: italic;
  font-size: 0.82em;
  margin-top: 0.25rem;
}

.story-coda-body {
  text-align: left;
  margin-bottom: 3rem;
}

.story-machines {
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding-block: clamp(2rem, 4vw, 3rem);
  margin-block: clamp(2.5rem, 5vw, 4rem);
}
.story-machines p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}
.story-machines p + p {
  color: var(--gold);
  font-style: italic;
}

.story-final {
  margin-block: 2rem;
}
.story-final p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--text-2);
  line-height: 1.55;
}
.story-final p + p { margin-top: 0.75rem; }

.story-tagline {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2rem;
}

/* Work transition label */
.story-work-transition {
  text-align: center;
  padding-block: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.story-work-transition p {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ============================================================
   WORK — Project Cards
   ============================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.project-card {
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background var(--dur) var(--ease);
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.project-card:hover { background: var(--bg-card-hover); }
.project-card:hover::after { transform: scaleX(1); }

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--dur) var(--ease);
}
.project-card:hover .project-name { color: var(--gold); }

.status-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-building    { background: rgba(201,162,39,0.1);  color: var(--gold);   border: 1px solid rgba(201,162,39,0.25); }
.badge-exploring   { background: rgba(148,143,133,0.08); color: var(--text-2); border: 1px solid rgba(148,143,133,0.2); }
.badge-researching { background: rgba(90,120,160,0.08); color: #7a9abc;       border: 1px solid rgba(90,120,160,0.2); }
.badge-publishing  { background: rgba(70,150,90,0.08);  color: #6aaa82;       border: 1px solid rgba(70,150,90,0.2); }

.project-desc {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}

.project-url {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--dur) var(--ease);
  margin-top: auto;
}
.project-url:hover { color: var(--gold); }
.project-url svg {
  width: 9px; height: 9px;
  transition: transform var(--dur) var(--ease);
}
.project-url:hover svg { transform: translate(2px,-2px); }

/* ============================================================
   NOW
   ============================================================ */

.now-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.now-body {
  color: var(--text-2);
  font-size: clamp(0.95rem, 2vw, 1.07rem);
  line-height: 1.85;
}

.focus-list {
  list-style: none;
}
.focus-list li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
}
.focus-list li:first-child { border-top: 1px solid var(--border-subtle); }
.focus-list li::before {
  content: '—';
  color: var(--gold-dim);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}

@media (max-width: 760px) {
  .now-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   THE BOARD
   ============================================================ */

.board {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.board-intro {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 56ch;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.board-member {
  background: var(--bg-card);
  padding: 1.75rem 1.5rem;
  transition: background var(--dur) var(--ease);
}
.board-member:hover { background: var(--bg-card-hover); }

.board-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.board-role {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.board-desc {
  font-size: 0.825rem;
  color: var(--text-2);
  line-height: 1.65;
}

.board-footnote {
  font-size: 0.82rem;
  color: var(--text-3);
  font-style: italic;
  border-left: 2px solid var(--gold-dim);
  padding-left: 1rem;
  opacity: 0.8;
}

/* ============================================================
   NOTES
   ============================================================ */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.note-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.note-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-card-hover);
}

.note-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.note-date {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.note-tag {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: var(--gold-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.note-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.75rem;
  flex: 1;
  display: block;
  transition: color var(--dur) var(--ease);
}
.note-title:hover { color: var(--gold); }

.note-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.note-read-time {
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-top: auto;
}

.notes-more {
  display: flex;
  justify-content: center;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-headline {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--text);
}

.about-body {
  color: var(--text-2);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.85;
}

@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.contact-inner {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.contact-text {
  flex: 1;
  min-width: 0;
}

.contact-logo {
  flex-shrink: 0;
  width: clamp(160px, 18vw, 260px);
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.contact-logo::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.contact-logo img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: lighten;
  opacity: 0.92;
}

@media (max-width: 640px) {
  .contact-inner { flex-direction: column; }
  .contact-logo  { width: 140px; }
}

.contact-lead {
  color: var(--text-2);
  font-size: clamp(0.95rem, 2vw, 1.07rem);
  line-height: 1.8;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.email-stack {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.email-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.email-link {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,162,39,0.25);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.email-link:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.copy-btn:hover,
.copy-btn:focus-visible { border-color: var(--gold-border); color: var(--gold); }
.copy-btn.copied { border-color: rgba(106,170,130,0.3); color: #6aaa82; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.78rem;
  color: var(--text-3);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-2);
}

.footer-tagline {
  font-style: italic;
  color: var(--text-3);
  font-size: 0.78rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--dur) var(--ease);
}
.footer-nav a:hover { color: var(--text-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-joke {
  font-style: italic;
  color: var(--text-3);
}

/* ============================================================
   NOTES INDEX PAGE
   ============================================================ */

.page-header {
  padding-top: calc(3.75rem + clamp(3.5rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border-subtle);
}

.page-header-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.page-header-desc {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.7;
}

.notes-list {
  display: grid;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.notes-list-item {
  background: var(--bg-card);
  padding: 2.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  transition: background var(--dur) var(--ease);
}
.notes-list-item:hover { background: var(--bg-card-hover); }

.notes-list-item h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.notes-list-item h2 a {
  color: var(--text);
  transition: color var(--dur) var(--ease);
}
.notes-list-item h2 a:hover { color: var(--gold); }

.notes-list-item-desc {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 62ch;
}

.notes-list-item-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .notes-list-item {
    grid-template-columns: 1fr;
  }
  .notes-list-item-side {
    text-align: left;
    align-items: flex-start;
  }
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

.article-header {
  padding-top: calc(3.75rem + clamp(3.5rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border-subtle);
}

.article-category {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.article-category a {
  color: var(--text-3);
  transition: color var(--dur) var(--ease);
}
.article-category a:hover { color: var(--gold); }
.article-category .sep { color: var(--text-3); }

.article-title {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 1.75rem;
}

.article-byline {
  display: flex;
  gap: 2rem;
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}
.article-byline span { text-transform: uppercase; }

.article-body {
  padding-block: clamp(3rem, 8vw, 6rem);
  max-width: 68ch;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  margin-top: 3em;
  margin-bottom: 1em;
  color: var(--text);
}

.article-body h3 {
  font-size: 1.25rem;
  margin-top: 2em;
  margin-bottom: 0.75em;
  color: var(--text-2);
}

.article-body p {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.85;
  color: var(--text-2);
}
.article-body p + p { margin-top: 1.5em; }

.article-body blockquote {
  margin-block: 2em;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--gold);
  background: var(--bg-elevated);
  color: var(--text-2);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
}
.article-body ul li + li,
.article-body ol li + li { margin-top: 0.5em; }

.draft-notice {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gold-border);
  background: var(--gold-subtle);
  border-radius: 2px;
  margin-bottom: 2.5em;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.55;
}
.draft-notice::before { content: '//'; color: var(--gold-dim); flex-shrink: 0; font-family: var(--font-mono); }

.article-footer {
  padding-bottom: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
}
.back-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--dur) var(--ease);
}
.back-link:hover { color: var(--gold); }

/* ============================================================
   404 PAGE
   ============================================================ */

.page-404 {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  padding-top: 3.75rem;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.page-404-title {
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.page-404-lead {
  color: var(--text-2);
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.page-404-joke {
  margin-top: 3rem;
  font-style: italic;
  color: var(--text-3);
  font-size: 0.875rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
