:root {
  --bg: #0b121b;
  --surface: #111b28;
  --surface-2: #182535;
  --ink: #f4f6f8;
  --muted: #9aa7b7;
  --accent: #c9a25d;
  --accent-2: #c7d0da;
  --line: #233245;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 10% 20%, rgba(201, 162, 93, 0.12), transparent 28%),
              radial-gradient(circle at 80% 0%, rgba(183, 194, 207, 0.12), transparent 30%),
              linear-gradient(180deg, rgba(12, 19, 28, 0.94), rgba(10, 16, 24, 0.98)),
              var(--bg);
  color: var(--ink);
  font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "GRAD" 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover { color: var(--accent); }

strong {
  color: var(--accent);
  font-weight: 600;
}

em {
  color: var(--accent-2);
  font-style: italic;
}

img { max-width: 100%; display: block; border-radius: calc(var(--radius) - 6px); }

.google-sans {
  font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "GRAD" 0;
}

.nav-links,
.pill,
.eyebrow,
.label,
.hero-meta,
.icon-link,
.bio-details summary,
.list,
.card h3,
.pillar h3 {
  font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "GRAD" 0;
}

body:not([data-birthday="on"]) .holiday-overlay {
  display: none;
}

.holiday-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(201, 162, 93, 0.15), transparent 40%),
              radial-gradient(circle at bottom, rgba(199, 208, 218, 0.12), transparent 45%),
              #0a1119;
  text-align: center;
  animation: holidayFade 1.85s ease forwards;
}

.holiday-message {
  font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0.05em;
  color: var(--ink);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.holiday-message span {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: 0.04em;
  color: var(--accent-2);
}

@keyframes holidayFade {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 6vw;
  background: rgba(15, 20, 26, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.top-bar.compact { padding: 10px 6vw; box-shadow: var(--shadow); background: rgba(12, 16, 22, 0.9); }

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #182737, #0c141f);
  color: #f4f0e6;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

.brand-name strong {
  display: block;
  font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.brand-name span { color: var(--muted); font-size: 0.92rem; }

.nav-links { display: flex; gap: 18px; font-weight: 500; color: var(--muted); }

.nav-links a { padding: 6px 4px; border-bottom: 2px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; }

.nav-links a:hover { color: var(--ink); border-color: var(--accent); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), #dcb673);
  color: #1a1206;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28); }

.hero {
  position: relative;
  padding: 70px 6vw 60px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 30%, rgba(183, 194, 207, 0.18), transparent 52%),
              radial-gradient(circle at 80% 70%, rgba(201, 162, 93, 0.18), transparent 52%),
              linear-gradient(145deg, #0a1018 0%, #111a26 45%, #0a1018 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(140deg, rgba(11, 18, 27, 0.78), rgba(12, 20, 30, 0.5)),
                    url('assets/photos/hero-desk.jpg'),
                    url('assets/office/office-01.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  pointer-events: none;
}

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(280px, 1.05fr) 0.95fr; gap: 30px; }

.hero-copy h1 {
  font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 12px 0 14px;
}

.hero .lede {
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }

.text-link { font-weight: 600; border-bottom: 2px solid var(--line); padding-bottom: 4px; }

.hero-image {
  width: 100%;
  max-width: 600px;
  height: 250px;
  aspect-ratio: 16 / 9;
  margin-top: 18px;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.hero-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: #d8cfbf; font-weight: 600; }

.hero-meta span { padding: 6px 12px; border-radius: 999px; background: rgba(183, 194, 207, 0.12); border: 1px solid rgba(201, 162, 93, 0.28); }

.hero-card {
  background: linear-gradient(145deg, #121c28, #0c141e);
  color: #f6f2e8;
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(200, 160, 90, 0.2);
  border-radius: calc(var(--radius) - 6px);
  opacity: 0.5;
  pointer-events: none;
}

.badge { display: inline-flex; padding: 6px 12px; border-radius: 12px; background: rgba(200, 160, 90, 0.16); color: #f3e4c7; font-weight: 600; letter-spacing: 0.03em; }

.pillar-list { display: grid; gap: 14px; margin-top: 14px; }

.pillar h3 {
  margin: 0 0 4px;
  font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.pillar p { margin: 0; color: #d4cabb; font-size: 0.95rem; }

.hero-photo { margin-top: 18px; height: 160px; border-radius: calc(var(--radius) - 4px); background: linear-gradient(120deg, rgba(183, 194, 207, 0.32), rgba(201, 162, 93, 0.32)), url('assets/photos/library-wide.jpg'), url('assets/office/office-02.svg'); background-size: cover; background-position: center; filter: saturate(1.05); border: 1px solid var(--line); }

.section { padding: 44px 6vw 32px; position: relative; overflow: hidden; }

.section::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 10% 20%, rgba(200, 160, 90, 0.05), transparent 30%), radial-gradient(circle at 90% 80%, rgba(107, 164, 217, 0.05), transparent 26%); opacity: 0.6; }

.section-heading { position: relative; z-index: 1; }

.section-heading h2 { font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif; margin: 6px 0 8px; letter-spacing: -0.01em; font-size: clamp(1.7rem, 2.5vw, 2.2rem); font-weight: 600; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.muted { color: var(--muted); margin: 0; }

.cards { position: relative; z-index: 1; display: grid; gap: 18px; margin-top: 20px; }

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: linear-gradient(145deg, rgba(20, 29, 41, 0.96), rgba(16, 24, 36, 0.96));
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.card h3 { margin-top: 0; margin-bottom: 6px; font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif; font-size: 1.2rem; font-weight: 600; }

.card p { margin: 0 0 10px 0; color: var(--muted); }

.list { padding-left: 18px; color: var(--ink); margin: 0; display: grid; gap: 6px; }

.profile {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 24px;
  align-items: center;
}

.avatar {
  width: 100%;
  max-width: 260px;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  background: #0c1117;
  filter: saturate(1.05) contrast(1.02);
}

.profile-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
  font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif;
}

.profile-links { display: flex; align-items: center; gap: 12px; font-weight: 600; flex-wrap: wrap; }

.profiles { align-items: stretch; }

.profile.card { min-height: 360px; }

.bio-details {
  margin: 12px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.bio-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

.bio-details[open] summary {
  color: var(--ink);
}

.bio-details .list {
  margin-top: 10px;
  color: var(--muted);
}

.quote {
  font-style: italic;
  color: var(--accent-2);
  margin: 12px 0;
}

.icon-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }

.icon { width: 15px; height: 15px; display: inline-block; background-size: contain; background-repeat: no-repeat; }

.icon-linkedin { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><rect width="16" height="16" rx="3" fill="%23c8a05a"/><path d="M5.24 12.93H3.44V6.46h1.8v6.47ZM4.34 5.56c-.58 0-1.03-.43-1.03-.97 0-.55.45-.97 1.06-.97.61 0 1.03.42 1.04.97 0 .54-.43.97-1.07.97Zm9.19 7.37h-1.8V9.55c0-.83-.3-1.39-1.05-1.39-.57 0-.91.38-1.06.75-.05.13-.06.31-.06.5v3.52h-1.8s.02-5.72 0-6.47h1.8v.92c.24-.37.68-.9 1.64-.9 1.2 0 2.13.78 2.13 2.45v4Z" fill="%230f141a"/></svg>'); }

.icon-mail { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><rect width="16" height="16" rx="3" fill="%23c8a05a"/><path d="M3 4.5h10c.28 0 .5.22.5.5v6c0 .28-.22.5-.5.5H3a.5.5 0 0 1-.5-.5v-6c0-.28.22-.5.5-.5Zm9.25 1.12-4.15 2.77a.5.5 0 0 1-.54 0L3.4 5.62v5.13h8.85V5.62Zm-.67-.62H4.42l3.08 2.06 3.08-2.06Z" fill="%230f141a"/></svg>'); }

.gallery { position: relative; z-index: 1; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 20px; }

.gallery-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }

.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--line); }

.gallery-item figcaption { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

.press {
  padding-top: 20px;
}

.press-slider {
  position: relative;
  display: grid;
  align-items: center;
  gap: 14px;
}

.press-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 320px);
  gap: 16px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.press-strip::-webkit-scrollbar {
  height: 8px;
}

.press-strip::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 93, 0.35);
  border-radius: 999px;
}

.press-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 19, 28, 0.9);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.press-prev { left: -8px; }
.press-next { right: -8px; }

.press-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.press-card {
  scroll-snap-align: start;
  background: linear-gradient(145deg, rgba(18, 26, 38, 0.98), rgba(14, 22, 34, 0.98));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  padding: 16px;
  display: grid;
  gap: 8px;
  min-height: 150px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.press-source {
  font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.press-title {
  font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif;
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 600;
}

.press-cta {
  font-family: "Google Sans", "Satoshi", "Avenir Next", "Gill Sans", "Century Gothic", sans-serif;
  font-weight: 500;
  color: var(--accent);
}

@media (max-width: 720px) {
  .press-arrow { display: none; }
}

.contact { padding-bottom: 70px; }

.contact-card { position: relative; background: linear-gradient(145deg, #16212b, #0f161e); color: #f6f2e8; border-radius: calc(var(--radius) + 4px); padding: 30px; display: grid; gap: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }

.contact-card::after { content: ""; position: absolute; inset: -20%; background: radial-gradient(circle at 20% 30%, rgba(200, 160, 90, 0.1), transparent 40%), radial-gradient(circle at 80% 70%, rgba(107, 164, 217, 0.1), transparent 42%); opacity: 0.7; }

.contact-card > * { position: relative; z-index: 1; }

.contact-card .muted { color: #d5cdbd; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; margin: 0 0 6px; color: #d5cdbd; }

.footer { padding: 24px 6vw 40px; color: var(--muted); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }

[data-animate].visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .top-bar { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 10px; }
  .hero { padding-top: 50px; }
  .profile { grid-template-columns: 1fr; text-align: center; }
  .profile-links { justify-content: center; }
  .avatar { max-width: 280px; height: 340px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 12px; }
  .card { padding: 18px; }
  .top-bar { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-animate] { opacity: 1; transform: none; }
}
