:root {
  color-scheme: dark;
  --bg: #0b1018;
  --bg-elevated: #101722;
  --surface: #141c28;
  --surface-soft: #17212f;
  --text: #f2f5f7;
  --text-soft: #a9b2bf;
  --muted: #737f8f;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #d99155;
  --accent-bright: #f0ad72;
  --blue: #73a9dc;
  --header: rgba(11, 16, 24, 0.78);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --container: 1180px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f1ed;
  --bg-elevated: #ebe8e2;
  --surface: #ffffff;
  --surface-soft: #e7e4dd;
  --text: #17202b;
  --text-soft: #4e5967;
  --muted: #697484;
  --line: rgba(20, 30, 42, 0.13);
  --accent: #a85f2e;
  --accent-bright: #8e4f25;
  --blue: #376f9f;
  --header: rgba(243, 241, 237, 0.82);
  --shadow: 0 28px 80px rgba(34, 39, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
}

.brand,
.nav-actions,
.desktop-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
  border-radius: 50%;
  color: var(--accent-bright);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.desktop-nav {
  gap: 34px;
  margin-left: auto;
  margin-right: 38px;
}

.desktop-nav a {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
}

.nav-actions {
  gap: 10px;
}

.icon-button,
.menu-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.icon-button svg {
  width: 17px;
}

.moon-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: block;
}

[data-theme="light"] .sun-icon {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #111821;
  font-size: 0.86rem;
  font-weight: 750;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: var(--accent-bright);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 22%, transparent);
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
}

.button-small {
  min-height: 40px;
  padding-inline: 17px;
  font-size: 0.78rem;
}

.button-small svg {
  width: 15px;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: max(720px, 100svh);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-art {
  background: url("assets/hero-data-cloud.png") center / cover no-repeat;
  opacity: 0.92;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 11, 17, 0.98) 2%, rgba(7, 11, 17, 0.9) 38%, rgba(7, 11, 17, 0.22) 71%),
    linear-gradient(0deg, rgba(7, 11, 17, 0.9), transparent 36%);
}

[data-theme="light"] .hero-art {
  filter: saturate(0.75) brightness(1.32);
}

[data-theme="light"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(243, 241, 237, 0.98) 2%, rgba(243, 241, 237, 0.89) 41%, rgba(243, 241, 237, 0.2) 74%),
    linear-gradient(0deg, rgba(243, 241, 237, 0.9), transparent 36%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.55fr);
  gap: clamp(60px, 9vw, 130px);
  align-items: end;
  padding-top: 128px;
  padding-bottom: 110px;
}

.hero-copy {
  min-width: 0;
  max-width: 700px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 6.2vw, 6.3rem);
  font-weight: 400;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--accent-bright);
  font-weight: 400;
}

.hero-text {
  max-width: 635px;
  margin-bottom: 36px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.hero-text strong {
  color: var(--text);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.text-link svg {
  width: 18px;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--text);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.profile-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(11, 16, 24, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

[data-theme="light"] .profile-card {
  border-color: rgba(18, 27, 37, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.monogram {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 25px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent-bright);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #71bd92;
  box-shadow: 0 0 0 4px rgba(113, 189, 146, 0.12);
  content: "";
}

.profile-card h2 {
  margin-bottom: 5px;
  font-size: 1.38rem;
}

.profile-card > div > p {
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.profile-card dl {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
}

.profile-card dt,
.profile-card dd {
  margin: 0;
  font-size: 0.76rem;
}

.profile-card dt {
  color: var(--muted);
}

.profile-card dd {
  text-align: right;
  font-weight: 650;
}

.phone-link {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.phone-link:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 16px;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  50% { transform: translateY(5px); }
}

.section {
  padding: clamp(90px, 12vw, 160px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(50px, 10vw, 145px);
}

.section-intro h2,
.section-heading h2,
.closing h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 4.5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.about {
  background:
    radial-gradient(circle at 10% 35%, color-mix(in srgb, var(--blue) 6%, transparent), transparent 30%),
    var(--bg);
}

.about-copy {
  max-width: 680px;
}

.about-copy p {
  color: var(--text-soft);
}

.about-copy .lead {
  margin-bottom: 28px;
  color: var(--text);
  font-family: Georgia, serif;
  font-size: clamp(1.48rem, 2.3vw, 2.1rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.about-copy strong {
  color: var(--text);
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.principles span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 650;
}

.database-test {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.database-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(36px, 7vw, 95px);
  align-items: center;
}

.database-panel h2 {
  max-width: 650px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 4.5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.database-panel p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--text-soft);
}

.database-panel code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--accent-bright);
  font-size: 0.88em;
}

.database-clock {
  display: grid;
  min-height: 210px;
  align-content: center;
  gap: 12px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.database-label,
.database-status {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.database-clock strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.database-clock.online .database-status {
  color: #71bd92;
}

.database-clock.error .database-status {
  color: #f0ad72;
}

.skills-section {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: end;
  margin-bottom: 62px;
}

.section-heading > p {
  max-width: 430px;
  margin-bottom: 5px;
  color: var(--text-soft);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-card {
  position: relative;
  min-height: 390px;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.skill-card:hover {
  z-index: 2;
  background: var(--surface);
  transform: translateY(-5px);
}

.card-number {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 0.78rem;
}

.skill-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 72px 0 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 18px;
  color: var(--accent-bright);
}

.skill-icon svg {
  width: 25px;
}

.skill-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.skill-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.credentials {
  background: var(--bg);
}

.credential-list {
  border-top: 1px solid var(--line);
}

.credential-item {
  display: grid;
  grid-template-columns: 90px 1fr 52px;
  gap: 35px;
  align-items: center;
  min-height: 148px;
  padding: 24px 14px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease, background-color 0.25s ease;
}

.credential-item:hover {
  padding-inline: 24px;
  background: var(--bg-elevated);
}

.credential-year,
.credential-org {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.credential-org {
  display: block;
  margin-bottom: 9px;
  color: var(--accent-bright);
}

.credential-body h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  font-weight: 590;
}

.credential-badge {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 50%;
  color: var(--accent-bright);
  font-family: Georgia, serif;
}

.credential-badge-neutral {
  border-color: color-mix(in srgb, var(--blue) 44%, transparent);
  color: var(--blue);
}

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

.timeline {
  position: relative;
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 55px 42px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--bg-elevated);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-date {
  margin-bottom: 10px;
  color: var(--accent-bright);
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline h3 {
  margin-bottom: 13px;
  font-size: 1.5rem;
}

.timeline-item > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--text-soft);
}

.closing {
  padding: clamp(90px, 13vw, 175px) 0;
  background:
    radial-gradient(circle at 78% 50%, rgba(100, 160, 211, 0.15), transparent 28%),
    linear-gradient(135deg, #9b552b, #bd7440 55%, #a85d30);
  color: #fff8f1;
  text-align: center;
}

.closing-inner {
  display: flex;
  max-width: 860px;
  flex-direction: column;
  align-items: center;
}

.closing .eyebrow {
  color: rgba(255, 248, 241, 0.74);
}

.closing h2 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.closing p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 248, 241, 0.78);
}

.button-light {
  border-color: #fff8f1;
  background: #fff8f1;
  color: #713816;
}

.button-light:hover {
  background: white;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.closing-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(255, 248, 241, 0.35);
  color: #fff8f1;
  font-size: 0.86rem;
  font-weight: 700;
  transition: border-color 0.2s ease;
}

.closing-link:hover {
  border-color: #fff8f1;
}

.closing-link svg {
  width: 17px;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p,
.back-to-top {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.back-to-top:hover {
  color: var(--text);
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay { transition-delay: 0.15s; }
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .desktop-nav,
  .desktop-linkedin {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .menu-toggle span {
    width: 17px;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    inset: 78px 0 0;
    z-index: 90;
    flex-direction: column;
    padding: 40px 24px;
    background: var(--bg);
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-family: Georgia, serif;
    font-size: 1.6rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .profile-card {
    max-width: 420px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card {
    min-height: 340px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }

  .database-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .brand-name {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    background-position: 64% center;
    opacity: 0.6;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(7, 11, 17, 0.96), rgba(7, 11, 17, 0.65)), linear-gradient(0deg, rgba(7, 11, 17, 0.98), transparent 55%);
  }

  [data-theme="light"] .hero-shade {
    background: linear-gradient(90deg, rgba(243, 241, 237, 0.95), rgba(243, 241, 237, 0.68)), linear-gradient(0deg, rgba(243, 241, 237, 0.98), transparent 55%);
  }

  .hero-grid {
    padding-top: 145px;
    padding-bottom: 100px;
  }

  h1 {
    font-size: clamp(2.85rem, 12vw, 3.8rem);
  }

  .scroll-cue {
    display: none;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-heading h2,
  .section-intro h2,
  .database-panel h2 {
    font-size: clamp(2.55rem, 12vw, 3.6rem);
  }

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

  .skill-card {
    min-height: auto;
  }

  .skill-icon {
    margin-top: 48px;
  }

  .credential-item {
    grid-template-columns: 55px 1fr;
    gap: 18px;
    padding-block: 30px;
  }

  .credential-badge {
    display: none;
  }

  .closing h2 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .closing-actions {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner .brand-name {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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