/* ============================================================
   David Malko — personal site
   Rose gold + warm sand. Centered narrow container.
============================================================ */

/* Responsive overrides for inline-styled grids (ALWAYS PARSED FIRST) */
@media (max-width: 768px) {
  .responsive-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .responsive-grid-3 { grid-template-columns: 1fr !important; }
}

/* ---- Display: MADE Evolve Sans (5 weights from /uploads) ---- */
@font-face {
  font-family: 'MADE Evolve Sans';
  src: url('./uploads/MADE%20Evolve%20Sans%20Thin%20United.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE Evolve Sans';
  src: url('./uploads/MADE%20Evolve%20Sans%20Light%20United.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE Evolve Sans';
  src: url('./uploads/MADE%20Evolve%20Sans%20Regular%20United.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE Evolve Sans';
  src: url('./uploads/MADE%20Evolve%20Sans%20Medium%20United.otf') format('opentype');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE Evolve Sans';
  src: url('./uploads/MADE%20Evolve%20Sans%20Bold%20United.otf') format('opentype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Body: Roboto (TTF) ---- */
@font-face {
  font-family: 'Roboto';
  src: url('./uploads/Roboto-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./uploads/Roboto-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./uploads/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./uploads/Roboto-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./uploads/Roboto-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./uploads/Roboto-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./uploads/Roboto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./uploads/Roboto-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-display: 'MADE Evolve Sans', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, sans-serif;
  --rose-gold-light: #E8C5B0;
  --rose-gold:       #C8A28C;
  --rose-gold-deep:  #A8765F;
  --sand-warm:       #E4C9A8;
  --sand-light:      #F5E6D3;
  --ink:             #2A1F1B;
  --ink-soft:        #2A1F1Bb3; /* 70% */
  --ink-muted:       #2A1F1B80; /* 50% */
  --ink-faint:       #2A1F1B33; /* 20% */
  --paper:           #FAF4ED;
  --line:            rgba(168, 118, 95, 0.22);
  --card-bg:         #FFFFFF;
  --card-bg-hover:   #FFFBF6;
  --chip-bg:         rgba(255, 255, 255, 0.55);
  --nav-bg:          rgba(250, 244, 237, 0.72);
  --nav-bg-subtle:   rgba(250, 244, 237, 0.35);
  --bg-grad-1:       radial-gradient(ellipse 90% 70% at 100% 0%, rgba(232, 197, 176, 0.55), transparent 60%);
  --bg-grad-2:       radial-gradient(ellipse 70% 60% at 0% 100%, rgba(228, 201, 168, 0.35), transparent 65%);
  --accent-grad: linear-gradient(135deg, #E8C5B0 0%, #C8A28C 50%, #A8765F 100%);
  --link-icon-grad: linear-gradient(135deg, var(--rose-gold-light), var(--rose-gold));

  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 760px;
}

[data-theme="dark"] {
  --rose-gold-light: #E5B89C;
  --rose-gold:       #D4A085;
  --rose-gold-deep:  #C8826A;
  --sand-warm:       #8a6952;
  --sand-light:      #3a2a22;
  --ink:             #F5E6D3;
  --ink-soft:        #F5E6D3cc;
  --ink-muted:       #F5E6D399;
  --ink-faint:       #F5E6D333;
  --paper:           #1A1310;
  --line:            rgba(245, 230, 211, 0.16);
  --card-bg:         #2A1F1B;
  --card-bg-hover:   #3A2A22;
  --chip-bg:         rgba(42, 31, 27, 0.7);
  --nav-bg:          rgba(26, 19, 16, 0.78);
  --nav-bg-subtle:   rgba(26, 19, 16, 0.4);
  --bg-grad-1:       radial-gradient(ellipse 90% 70% at 100% 0%, rgba(200, 130, 106, 0.28), transparent 60%);
  --bg-grad-2:       radial-gradient(ellipse 70% 60% at 0% 100%, rgba(168, 118, 95, 0.18), transparent 65%);
  --accent-grad: linear-gradient(135deg, #C8826A 0%, #A8765F 50%, #5A3A2E 100%);
  --link-icon-grad: linear-gradient(135deg, #C8826A, #5A3A2E);
}

html, body, .nav, .card, .link-card, .cred, .tool-chip, .btn-ghost, .mobile-menu, .portrait-label, .portrait-frame-no {
  transition: background-color 400ms var(--easing), background-image 400ms var(--easing), color 400ms var(--easing), border-color 400ms var(--easing);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  background-image: var(--bg-grad-1), var(--bg-grad-2);
  background-attachment: fixed;
}

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

/* ----- typography ----- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1.display { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin: 0; font-weight: 700; }
h2.display { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; margin: 0; }
h3.display { font-size: 18px; line-height: 1.25; margin: 0; font-weight: 600; }

p { margin: 0 0 1em 0; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

/* ----- layout ----- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px 96px;
  position: relative;
}

@media (min-width: 720px) {
  main { padding: 128px 80px 96px; }
}

section + section { margin-top: 96px; }
@media (min-width: 720px) {
  section + section { margin-top: 128px; }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-gold-deep);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--rose-gold-deep) 0%, transparent 100%);
  opacity: 0.4;
}

/* ----- nav ----- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: backdrop-filter 300ms var(--easing), background 300ms var(--easing), border-color 300ms var(--easing);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 720px) {
  .nav-inner { padding: 22px 80px; }
}

.nav.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--nav-bg);
  border-bottom-color: var(--line);
}
.nav.subtle {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: var(--nav-bg-subtle);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent-grad);
  display: inline-block;
}

.nav-links { display: flex; gap: 28px; align-items: center; }
@media (max-width: 639px) { .nav-links { display: none; } }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  cursor: pointer;
  transition: color 200ms var(--easing);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--rose-gold-deep);
  transition: right 200ms var(--easing);
}
.nav-link:hover::after { right: 0; }
.nav-link.active { color: var(--rose-gold-deep); }
.nav-link.active::after { right: 0; }

.hamburger {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
@media (max-width: 639px) { .hamburger { display: inline-flex; align-items: center; justify-content: center; } }
.hamburger span {
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 280ms var(--easing), top 280ms var(--easing), opacity 200ms var(--easing);
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 18px; }
.hamburger span:nth-child(3) { top: 24px; }
.hamburger.open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* ----- mobile menu ----- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(232, 197, 176, 0.7), transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateY(-100%);
  transition: transform 360ms var(--easing);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu .nav-link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 0;
}

/* ----- page transitions ----- */
.page {
  animation: pageIn 360ms var(--easing) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
  * { transition: none !important; animation-duration: 0.001ms !important; }
}

/* ----- hero portrait ----- */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding-top: 24px;
}
.portrait {
  width: clamp(220px, 36vw, 300px);
  height: clamp(280px, 46vw, 380px);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px -30px rgba(168, 118, 95, 0.45),
    0 1px 0 0 rgba(255, 255, 255, 0.3) inset;
  will-change: transform;
}
.portrait::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(165deg, #E8C5B0 0%, #C8A28C 45%, #A8765F 100%);
}
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(245, 230, 211, 0.55), transparent 65%),
    radial-gradient(ellipse 100% 80% at 50% 110%, rgba(42, 31, 27, 0.4), transparent 60%);
  mix-blend-mode: soft-light;
}
.portrait-grain {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(42,31,27,0.06) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 55%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.portrait-label {
  position: absolute;
  left: 12px; bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 244, 237, 0.7);
  font-weight: 500;
}
.portrait-frame-no {
  position: absolute;
  right: 12px; top: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(250, 244, 237, 0.6);
  font-family: var(--font-display);
}

.hero-name { font-size: clamp(40px, 7vw, 64px); }
.hero-meta { color: var(--ink-soft); font-size: 15px; max-width: 460px; }
.hero-meta .arrow { color: var(--rose-gold-deep); font-weight: 600; }
.hero-divider {
  display: inline-block;
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--rose-gold);
  vertical-align: middle;
  margin: 0 10px 3px;
}
.hero-tagline {
  font-style: italic;
  font-size: 14px;
  opacity: 0.8;
  color: var(--ink);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* ----- photo grid ----- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
@media (min-width: 720px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
.photo-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 200ms var(--easing), box-shadow 200ms var(--easing);
}
.photo-card::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(245,230,211,0.35), transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 110%, rgba(42,31,27,0.35), transparent 65%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -16px rgba(168,118,95,0.25);
}
.photo-card.warm-peach   { background: linear-gradient(140deg, #F2D4BA 0%, #D9A98A 60%, #B07A5F 100%); }
.photo-card.dusty-bronze { background: linear-gradient(155deg, #C9A088 0%, #9B6F58 60%, #5E3A2C 100%); }
.photo-card.golden-hour  { background: linear-gradient(125deg, #F5DDB8 0%, #E0B188 50%, #B07F5C 100%); }
.photo-card.deep-sunset  { background: linear-gradient(160deg, #B07058 0%, #8A4A38 55%, #3E2018 100%); }
.photo-card.sand         { background: linear-gradient(150deg, #F0DCC0 0%, #D9BD96 60%, #A88560 100%); }
.photo-card.twilight     { background: linear-gradient(170deg, #8C6A60 0%, #5C3F38 55%, #2A1A18 100%); }
.photo-label {
  position: absolute;
  left: 12px; bottom: 10px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(250, 244, 237, 0.7);
  font-weight: 500;
  z-index: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rose-gold-deep);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
  cursor: pointer;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--rose-gold-deep);
  transition: right 200ms var(--easing);
}
.text-link:hover::after { right: 0; }

/* ----- causes grid (quieter than projects) ----- */
.causes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 640px) {
  .causes-grid { grid-template-columns: repeat(2, 1fr); }
}
.cause {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 4px;
  transition: transform 220ms var(--easing), border-color 220ms var(--easing), background 220ms var(--easing), box-shadow 220ms var(--easing);
  position: relative;
  color: inherit;
}
.cause:hover {
  border-color: rgba(168,118,95,0.32);
  background: rgba(232,197,176,0.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -16px rgba(168,118,95,0.22);
}
.cause-arrow {
  margin-left: auto;
  color: var(--rose-gold-deep);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms var(--easing), transform 200ms var(--easing);
  flex-shrink: 0;
  align-self: center;
}
.cause:hover .cause-arrow { opacity: 1; transform: translateX(0); }
[data-theme="dark"] .cause:hover { background: rgba(200,130,106,0.08); }
.cause-icon {
  font-size: 16px;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
}
.cause-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 3px;
  letter-spacing: -0.005em;
}
.cause-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ----- prose ----- */
.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.4em;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--rose-gold-deep); font-weight: 600; }

/* ----- interest cards ----- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 22px 24px;
  transition: transform 200ms var(--easing), box-shadow 200ms var(--easing), border-color 200ms var(--easing), background 200ms var(--easing);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -16px rgba(168, 118, 95, 0.22);
  border-color: rgba(168, 118, 95, 0.32);
  background: var(--card-bg-hover);
}
.card-icon {
  font-size: 18px;
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(232,197,176,0.4), rgba(228,201,168,0.4));
  margin-bottom: 6px;
}
.card-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.card-body { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* ----- link hub (2 col) ----- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 200ms var(--easing), box-shadow 200ms var(--easing), border-color 200ms var(--easing), background 200ms var(--easing);
  position: relative;
}
.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -16px rgba(168, 118, 95, 0.22);
  border-color: rgba(168, 118, 95, 0.35);
  background: var(--card-bg-hover);
}
.link-icon {
  width: 38px; height: 38px;
  border-radius: 4px;
  background: var(--link-icon-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FAF4ED;
  flex-shrink: 0;
}
[data-theme="dark"] .link-icon { color: #F5E6D3; }
.link-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-meta .l1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.link-meta .l2 {
  font-size: 13px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-card .arrow {
  margin-left: auto;
  color: var(--rose-gold-deep);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms var(--easing), transform 200ms var(--easing);
  flex-shrink: 0;
}
.link-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ----- footer ----- */
footer.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 64px;
  border-top: 1px solid var(--line);
  margin-top: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
@media (min-width: 720px) {
  footer.foot { padding: 40px 80px 80px; }
}
footer.foot .ital { font-style: italic; color: var(--rose-gold-deep); }

/* ----- now page ----- */
.now-meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.now-pulse {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--rose-gold-deep);
  position: relative;
}
.now-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid var(--rose-gold-deep);
  animation: pulse 2.4s var(--easing) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.now-block {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}
.now-block:last-child { border-bottom: 0; }
.now-block h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-gold-deep);
  margin: 0 0 10px;
}
.now-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

/* ----- blog ----- */
.blog-list { display: flex; flex-direction: column; gap: 0; }
.blog-card {
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  cursor: pointer;
  transition: transform 200ms var(--easing), padding-left 240ms var(--easing);
  align-items: start;
}
.blog-card:first-child { padding-top: 8px; }
.blog-card:hover {
  padding-left: 12px;
}
.blog-card:hover .blog-title { color: var(--rose-gold-deep); }
.blog-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 5px;
}
.blog-meta .pill {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232,197,176,0.55), rgba(200,162,140,0.45));
  color: var(--rose-gold-deep);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid rgba(168,118,95,0.18);
}
.blog-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
  transition: color 200ms var(--easing);
}
.blog-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 599px) {
  .blog-card { grid-template-columns: 1fr; gap: 8px; }
  .blog-meta { padding-top: 0; }
  .blog-meta .pill { margin-top: 0; margin-left: 8px; }
}

.btn-ghost {
  align-self: center;
  margin-top: 32px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(168,118,95,0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms var(--easing);
}
.btn-ghost:hover {
  border-color: var(--rose-gold-deep);
  color: var(--rose-gold-deep);
  background: rgba(232,197,176,0.18);
  transform: translateY(-1px);
}
.btn-row { display: flex; justify-content: center; }

/* ----- links page ----- */
.section-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-gold-deep);
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-head .count {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0.16em;
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rose-gold-deep) 0%, transparent 100%);
  opacity: 0.3;
}

.cred-list { display: flex; flex-direction: column; gap: 10px; }
.cred {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  border-radius: 4px;
  transition: transform 200ms var(--easing), box-shadow 200ms var(--easing), border-color 200ms var(--easing), background 200ms var(--easing);
  align-items: center;
}
.cred:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -16px rgba(168, 118, 95, 0.22);
  border-color: rgba(168, 118, 95, 0.32);
  background: var(--card-bg-hover);
}
.cred-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.cred-issuer {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.cred-date {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-gold-deep);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}
.cred-pill {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-gold-deep);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(168,118,95,0.3);
  background: rgba(232,197,176,0.25);
}
.cred-pill.in-progress::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--rose-gold-deep);
  margin-right: 7px;
  vertical-align: middle;
  animation: pulse-dot 1.6s var(--easing) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.tools-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-chip {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--chip-bg);
  letter-spacing: 0.01em;
  transition: all 200ms var(--easing);
  cursor: default;
}
.tool-chip:hover {
  color: var(--rose-gold-deep);
  border-color: rgba(168, 118, 95, 0.4);
  background: rgba(232,197,176,0.25);
  transform: translateY(-1px);
}

/* ----- shared section intro ----- */
.intro-line {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: -8px 0 24px;
  font-style: italic;
}

/* ----- icons ----- */
.icn { width: 18px; height: 18px; stroke-width: 1.6; }
.icn-sm { width: 14px; height: 14px; stroke-width: 1.6; }

/* ----- theme toggle ----- */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: color 200ms var(--easing), border-color 200ms var(--easing), background 200ms var(--easing), transform 300ms var(--easing);
  margin-left: 4px;
}
.theme-toggle:hover {
  color: var(--rose-gold-deep);
  border-color: rgba(168,118,95,0.4);
  background: rgba(232,197,176,0.18);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--rose-gold-deep);
  outline-offset: 2px;
}
.theme-toggle .icn { width: 16px; height: 16px; transition: transform 400ms var(--easing); }
.theme-toggle:hover .icn { transform: rotate(20deg); }
[data-theme="dark"] .theme-toggle:hover .icn { transform: rotate(-20deg); }

.mobile-theme-row {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 28px;
  letter-spacing: 0.04em;
}

/* ----- stats strip ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(168,118,95,0.18);
  border-bottom: 1px solid rgba(168,118,95,0.18);
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats.stats-6 { grid-template-columns: repeat(3, 1fr); }
}
.stat-cell {
  padding: 28px 16px;
  text-align: left;
  position: relative;
  border-right: 1px solid rgba(168,118,95,0.18);
  border-bottom: 1px solid rgba(168,118,95,0.18);
}
.stat-cell:nth-child(2n) { border-right: 0; }
.stats:not(.stats-6) .stat-cell:nth-last-child(-n+2) { border-bottom: 0; }
.stats.stats-6 .stat-cell:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 720px) {
  .stats:not(.stats-6) .stat-cell { border-bottom: 0; }
  .stats:not(.stats-6) .stat-cell:nth-child(2n) { border-right: 1px solid rgba(168,118,95,0.18); }
  .stats:not(.stats-6) .stat-cell:last-child { border-right: 0; }

  /* 6-cell variant: 3 cols × 2 rows */
  .stats.stats-6 .stat-cell { border-right: 1px solid rgba(168,118,95,0.18); border-bottom: 1px solid rgba(168,118,95,0.18); }
  .stats.stats-6 .stat-cell:nth-child(3n) { border-right: 0; }
  .stats.stats-6 .stat-cell:nth-child(2n) { border-right: 1px solid rgba(168,118,95,0.18); }
  .stats.stats-6 .stat-cell:nth-child(3n) { border-right: 0; }
  .stats.stats-6 .stat-cell:nth-last-child(-n+3) { border-bottom: 0; }
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 52px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
}
.stat-num .plus {
  font-size: 0.55em;
  color: var(--rose-gold-deep);
  margin-left: 2px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 12px;
  font-weight: 500;
}

/* ----- projects ----- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.full { grid-column: 1 / -1; }
}
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 24px 26px;
  transition: transform 200ms var(--easing), box-shadow 200ms var(--easing), border-color 200ms var(--easing), background 200ms var(--easing);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -16px rgba(168, 118, 95, 0.22);
  border-color: rgba(168, 118, 95, 0.3);
  background: var(--card-bg-hover);
}
.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.project-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.project-pill {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-gold-deep);
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(168,118,95,0.3);
  background: rgba(232,197,176,0.22);
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="dark"] .project-pill { background: rgba(200,130,106,0.15); }
.project-body { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.project-link {
  font-size: 12px;
  color: var(--rose-gold-deep);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ----- elevated linkedin card ----- */
.link-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(232,197,176,0.35), rgba(228,201,168,0.25));
  border-color: rgba(168,118,95,0.3);
  padding: 22px 24px;
}
[data-theme="dark"] .link-card.featured {
  background: linear-gradient(135deg, rgba(200,130,106,0.18), rgba(90,58,46,0.25));
  border-color: rgba(200,130,106,0.3);
}
.link-card.featured .link-icon { width: 44px; height: 44px; }
.link-card.featured .l1 { font-size: 14px; }
.link-card.featured .l2 { font-size: 13px; color: var(--rose-gold-deep); font-weight: 500; }
.link-card.featured .arrow { opacity: 1; transform: translateX(0); }

/* ----- footer easter egg ----- */
.year-tap {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.year-tap:focus-visible {
  outline: 2px solid var(--rose-gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.egg-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 19, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: pointer;
  animation: eggIn 600ms var(--easing) both;
}
.egg-overlay.closing { animation: eggOut 300ms var(--easing) both; }
@keyframes eggIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes eggOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.egg-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.01em;
  color: var(--rose-gold-deep);
  text-align: center;
  line-height: 1.15;
  max-width: 720px;
  text-wrap: balance;
}
/* ----- interest tiles (12 clickable) ----- */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 720px) {
  .interest-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
.interest-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px 18px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms var(--easing), border-color 200ms var(--easing), background 200ms var(--easing), box-shadow 200ms var(--easing);
  min-height: 110px;
}
.interest-tile:hover {
  transform: translateY(-2px);
  border-color: var(--rose-gold-deep);
  background: var(--card-bg-hover);
  box-shadow: 0 14px 40px -16px rgba(168,118,95,0.25);
}
.interest-emoji { font-size: 22px; line-height: 1; margin-bottom: 8px; }
.interest-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.interest-sub {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.interest-corner {
  position: absolute;
  top: 10px; right: 10px;
  color: var(--rose-gold-deep);
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 200ms var(--easing), transform 200ms var(--easing);
}
.interest-tile:hover .interest-corner { opacity: 1; transform: translate(0, 0); }

/* ----- social row (12 circular icons) ----- */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-dot {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 200ms var(--easing), border-color 200ms var(--easing), background 200ms var(--easing), color 200ms var(--easing), box-shadow 200ms var(--easing);
}
.social-dot:hover {
  transform: translateY(-2px);
  border-color: var(--rose-gold-deep);
  color: var(--rose-gold-deep);
  background: rgba(232,197,176,0.22);
  box-shadow: 0 10px 30px -12px rgba(168,118,95,0.3);
}
[data-theme="dark"] .social-dot:hover { background: rgba(200,130,106,0.18); }
.social-dot .icn { width: 18px; height: 18px; }
.social-dot::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--easing), transform 180ms var(--easing);
  z-index: 5;
}
.social-dot:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }

/* emoji icon block (Create / Collect cards on /links) */
.emoji-icon {
  width: 38px; height: 38px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(232,197,176,0.45), rgba(228,201,168,0.45));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
[data-theme="dark"] .emoji-icon {
  background: linear-gradient(135deg, rgba(200,130,106,0.25), rgba(90,58,46,0.3));
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168,118,95,0.3);
  background: rgba(232,197,176,0.35);
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms var(--easing), color 200ms var(--easing), border-color 200ms var(--easing), transform 200ms var(--easing);
}
[data-theme="dark"] .filter-btn { background: rgba(200,130,106,0.18); }
.filter-btn:hover { transform: translateY(-1px); }
.filter-btn.on {
  background: var(--rose-gold-deep);
  color: var(--paper);
  border-color: var(--rose-gold-deep);
}

/* tool chips with category dots + animated filter */
.tool-chip.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 220ms var(--easing), transform 220ms var(--easing), color 200ms var(--easing), background 200ms var(--easing), border-color 200ms var(--easing), box-shadow 200ms var(--easing);
}
.tool-chip.cat-chip:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(168,118,95,0.28);
}
.tool-chip.cat-chip.hide {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  position: absolute;
  width: 0; height: 0;
  padding: 0; margin: 0;
  overflow: hidden;
  border: 0;
}
.tool-chip.cat-chip.vis {
  opacity: 1;
}
.tool-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.45) inset;
}
[data-theme="dark"] .tool-dot { box-shadow: 0 0 0 2px rgba(255,255,255,0.18) inset; }

.egg-text small {
  display: block;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

/* ----- BMLoader (Black Mirror segmented ring next to logo) ----- */
.bm-loader {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
  animation: bm-tempo-spin 10s cubic-bezier(0.5, 0.05, 0.5, 0.95) infinite;
}

/* BMLoader hover easter egg — Black Mirror glitch wordmark over the whole logo */
.logo { position: relative; }
.logo .bm-loader, .logo .logo-text { transition: opacity 0.25s ease; }
.logo.egg .bm-loader, .logo.egg .logo-text { opacity: 0; }
.logo-egg {
  position: absolute; inset: -7px -12px;
  display: flex; align-items: center; justify-content: center;
  background: #0a0a0c; border-radius: 5px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700; font-size: 13px; letter-spacing: 3px; color: #ececee; white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.55);
  z-index: 60; pointer-events: none;
  animation: bm-egg-pop 0.28s cubic-bezier(0.2,0.8,0.2,1) both;
}
.bm-egg-ch { display: inline-block; opacity: 0; animation: bm-letter 0.5s linear both; }
.bm-egg-sp { display: inline-block; width: 0.5em; }
@keyframes bm-egg-pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes bm-letter {
  0%   { opacity: 0; }
  35%  { opacity: 0; }
  45%  { opacity: 1; }
  52%  { opacity: 0.15; }
  60%  { opacity: 1; }
  68%  { opacity: 0.35; }
  77%  { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { opacity: 1; }
}

.bm-loader .bm-spoke {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--rose-gold-deep);
  transform-origin: 1.5px 11px;
  animation: bm-fade 3.2s linear infinite;
}

.bm-loader .bm-spoke:nth-child(1) { transform: rotate(0deg);   animation-delay: -2.80s; }
.bm-loader .bm-spoke:nth-child(2) { transform: rotate(45deg);  animation-delay: -2.40s; }
.bm-loader .bm-spoke:nth-child(3) { transform: rotate(90deg);  animation-delay: -2.00s; }
.bm-loader .bm-spoke:nth-child(4) { transform: rotate(135deg); animation-delay: -1.60s; }
.bm-loader .bm-spoke:nth-child(5) { transform: rotate(180deg); animation-delay: -1.20s; }
.bm-loader .bm-spoke:nth-child(6) { transform: rotate(225deg); animation-delay: -0.80s; }
.bm-loader .bm-spoke:nth-child(7) { transform: rotate(270deg); animation-delay: -0.40s; }
.bm-loader .bm-spoke:nth-child(8) { transform: rotate(315deg); animation-delay: 0s; }

@keyframes bm-fade {
  0%   { opacity: 1; }
  100% { opacity: 0.15; }
}

@keyframes bm-tempo-spin {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(18deg); }
  35%  { transform: rotate(135deg); }
  62%  { transform: rotate(450deg); }
  68%  { transform: rotate(540deg); }
  73%  { transform: rotate(540deg); }
  100% { transform: rotate(720deg); }
}

[data-theme="dark"] .bm-loader .bm-spoke { background: #D4A085; }

.logo:hover .bm-loader { animation-duration: 2s; }

@media (prefers-reduced-motion: reduce) {
  .bm-loader, .bm-loader .bm-spoke { animation: none; }
  .bm-loader .bm-spoke { opacity: 0.5; }
}
