:root {
  --bg: #f7f3ea;
  --bg-glow: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fdf9f2;
  --text: #171717;
  --muted: #6f6a61;
  --border: #e5ded2;
  --accent: #f26a21;
  --accent-dark: #c84d16;
  --tech: #245cff;
  --dark: #111216;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 30px rgba(21, 18, 12, 0.08);
  --shadow-card: 0 22px 44px rgba(27, 21, 10, 0.08);
  --container: min(1140px, 92vw);
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151821;
  --bg-glow: #232c42;
  --surface: #1b1f29;
  --surface-soft: #222633;
  --text: #f2efe7;
  --muted: #b8b1a5;
  --border: #343a49;
  --accent: #f58a46;
  --accent-dark: #e16f2f;
  --tech: #8aa8ff;
  --dark: #0f1117;
  --shadow-soft: 0 14px 34px rgba(5, 7, 12, 0.36);
  --shadow-card: 0 24px 48px rgba(4, 6, 12, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 0%, var(--bg-glow) 0%, var(--bg) 55%), var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  text-rendering: optimizeLegibility;
}

p {
  margin: 0 0 1rem;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-sm {
  padding: 1.25rem 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Sora", "Segoe UI", sans-serif;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin-bottom: 1.05rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(229, 222, 210, 0.9);
  backdrop-filter: blur(8px);
  background: rgba(247, 243, 234, 0.92);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0 0 0 0;
  overflow: hidden;
}

.brand-avatar img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

html[data-theme="dark"] .brand-avatar {
  background: linear-gradient(135deg, #232c42 60%, #151821 100%);
  border-color: #343a49;
  box-shadow: 0 2px 8px rgba(5, 7, 12, 0.18);
}
}

.primary-nav,
.quick-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-nav {
  justify-content: center;
}

.primary-nav a,
.quick-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
  padding-right: 0.5rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.quick-links a:hover,
.quick-links a:focus-visible {
  color: var(--text);
}

.quick-links a {
  color: var(--tech);
}

.theme-toggle {
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  border-color: #d5ccbd;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--tech);
  outline-offset: 2px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 67ch;
}

.hero-positioning {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 65ch;
}

.hero-description {
  margin-bottom: 1.35rem;
  max-width: 62ch;
  font-size: 1.09rem;
}

.hero-metrics {
  margin: 0 0 1.45rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.hero-metrics li {
  padding: 0.72rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.hero-metrics strong {
  display: block;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.hero-metrics span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--tech);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 18px rgba(200, 77, 22, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: #c8c0b3;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}

.credibility-line {
  color: #5f594f;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  min-height: min(72vw, 640px);
}

.hero-main-image {
  margin: 0;
  height: 100%;
  max-height: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #ddd4c8;
  box-shadow: var(--shadow-card);
}

.hero-support-card {
  position: absolute;
  width: clamp(150px, 26vw, 235px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0;
}

.hero-support-card img {
  height: 150px;
}

.hero-support-card figcaption {
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.support-top {
  right: -1.8rem;
  top: 1.7rem;
  transform: rotate(1.25deg);
}

.support-bottom {
  left: -1.7rem;
  bottom: 1.35rem;
  transform: rotate(-1.15deg);
}

.floating-badge {
  position: absolute;
  right: 1.15rem;
  bottom: -0.75rem;
  background: var(--dark);
  color: #f6f2e9;
  border-radius: 999px;
  padding: 0.52rem 0.98rem;
  font-size: 0.84rem;
  box-shadow: 0 8px 16px rgba(17, 18, 22, 0.26);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.proof-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1rem 0.95rem;
  background: rgba(255, 255, 255, 0.84);
}

.proof-item strong {
  display: block;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.2rem;
  line-height: 1.15;
}

.proof-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

#work,
#timeline {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.62) 100%);
}

.about-copy p {
  margin-top: 0;
}

.section-heading {
  max-width: 72ch;
  margin-bottom: 1.75rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.work-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.work-card.featured {
  border-color: #d9c4ad;
  box-shadow: 0 18px 32px rgba(29, 22, 12, 0.11);
  position: relative;
}

.work-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--accent) 0%, #f8a169 100%);
}

.work-card h3 {
  margin-bottom: 0.4rem;
}

.work-meta {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0 0 0.85rem;
}

.work-card > p {
  margin-bottom: 0.95rem;
}

.work-tags {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work-tags li {
  font-size: 0.82rem;
  border: 1px solid #d5cfbf;
  color: #4f493f;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.work-link {
  color: var(--tech);
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}

.work-link.pending {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--muted);
}

.work-link:hover,
.work-link:focus-visible {
  text-decoration: underline;
}

.expertise-grid,
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.expertise-card,
.leadership-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem;
  min-height: 100%;
}

.leadership-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.leadership-media figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.leadership-media img {
  min-height: 280px;
}

.leadership-media figcaption {
  padding: 0.8rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0;
  border-left: 2px solid #d3cab9;
}

.timeline li {
  position: relative;
  padding: 0 0 1.7rem 1.2rem;
  margin-left: 0.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.59rem;
  top: 0.35rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d0c8b8;
}

.timeline .period {
  font-size: 0.9rem;
  color: var(--muted);
}

.timeline h3 {
  margin: 0.2rem 0 0.4rem;
}

.timeline p {
  margin-bottom: 0;
}

.philosophy {
  padding-top: 2.5rem;
}

.philosophy blockquote {
  margin: 0;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  line-height: 1.3;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.site-footer {
  background: var(--dark);
  color: #ece8df;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: start;
}

.site-footer .eyebrow {
  color: #bfb8a8;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.contact-list a {
  color: #efe7d8;
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(52, 58, 73, 0.95);
  background: rgba(17, 20, 29, 0.9);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(31, 35, 46, 0.8);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
  background: rgba(38, 44, 58, 0.95);
  border-color: #4a5369;
}

html[data-theme="dark"] .btn-secondary {
  background: rgba(28, 32, 43, 0.88);
}

html[data-theme="dark"] .btn-ghost {
  background: rgba(20, 23, 31, 0.45);
}

html[data-theme="dark"] .credibility-line {
  color: #c4bdaf;
}

html[data-theme="dark"] .hero-main-image {
  border-color: #3c4557;
}

html[data-theme="dark"] .hero-support-card,
html[data-theme="dark"] .proof-item,
html[data-theme="dark"] .expertise-card,
html[data-theme="dark"] .leadership-card,
html[data-theme="dark"] .hero-metrics li {
  background: rgba(27, 31, 41, 0.86);
}

html[data-theme="dark"] #work,
html[data-theme="dark"] #timeline {
  background: linear-gradient(180deg, rgba(22, 25, 34, 0.45) 0%, rgba(19, 22, 31, 0.72) 100%);
}

html[data-theme="dark"] .work-card {
  border-color: #3a4253;
}

html[data-theme="dark"] .work-card.featured {
  border-color: #6d5a4c;
}

html[data-theme="dark"] .work-tags li {
  border-color: #4b5365;
  color: #cdc7bb;
}

html[data-theme="dark"] .timeline {
  border-left-color: #4a5265;
}

html[data-theme="dark"] .timeline li::before {
  border-color: #1f2533;
  box-shadow: 0 0 0 1px #4f586d;
}

html[data-theme="dark"] .contact-list a {
  color: #f3ecdc;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0.75rem 0;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 300px;
  }

  .support-top,
  .support-bottom {
    position: static;
    transform: none;
    margin-top: 0.9rem;
    width: min(280px, 72%);
  }

  .floating-badge {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-grid,
  .expertise-grid,
  .leadership-grid,
  .leadership-media,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.6rem 0;
  }

  .site-header {
    position: static;
  }

  .theme-toggle {
    min-height: 40px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-main-image {
    min-height: 360px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .hero-description,
  .hero-positioning {
    font-size: 1rem;
  }

  .floating-badge {
    position: static;
    display: inline-block;
    margin-top: 0.65rem;
  }

  .credibility-line {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
