/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}

/* ── Tokens ── */
:root {
  --bg: #f7f6f3;
  --white: #ffffff;
  --text: #1c1c1a;
  --mid: #4a4a46;
  --muted: #8a8a84;
  --rule: #e2e2dc;
  --accent: #1c1c1a;
  --blue: #1d4ed8; /* used only for Oracle / current role */
  --blue-bg: #eff6ff;
  --r: 10px;
  --sans: "DM Sans", sans-serif;
  --serif: "DM Serif Display", serif;
  --ease: 0.22s ease;
  --max: 960px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 88px 0;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.on {
  opacity: 1;
  transform: none;
}

/* ── Hero entry animations ── */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.h-anim-0 {
  animation: fadeDown 0.65s ease both;
}
.h-anim-1 {
  animation: fadeUp 0.7s 0.1s ease both;
}
.h-anim-2 {
  animation: fadeUp 0.7s 0.2s ease both;
}
.h-anim-3 {
  animation: fadeUp 0.7s 0.3s ease both;
}
.h-anim-4 {
  animation: fadeUp 0.7s 0.4s ease both;
}
.h-anim-5 {
  animation: fadeUp 0.7s 0.5s ease both;
}

/* ── Section label / title ── */
.s-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.s-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 14px;
}
.s-sub {
  font-size: 0.97rem;
  color: var(--mid);
  max-width: 415px;
  margin-bottom: 56px;
  line-height: 1.7;
}
.rule {
  height: 1px;
  background: var(--rule);
  border: none;
  margin: 0;
}

/* ── Buttons ── */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--r);
  transition: opacity var(--ease);
}
.btn-dark:hover {
  opacity: 0.78;
  color: var(--white);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--r);
  border: 1px solid var(--rule);
  transition:
    border-color var(--ease),
    color var(--ease);
}
.btn-outline:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ════════════════════════════════
       NAV
    ════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 20px 0;
  transition:
    background var(--ease),
    padding var(--ease),
    box-shadow var(--ease);
}
#nav.scrolled {
  background: rgba(247, 246, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 13px 0;
  box-shadow: 0 1px 0 var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--ease);
  transform-origin: left center;
}
.nav-toggle.open span:nth-child(1) {
  transform: rotate(38deg) translateY(-1px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-38deg) translateY(1px);
}

/* Mobile drawer */
#nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 32px;
  gap: 28px;
}
#nav-mobile.open {
  display: flex;
}
#nav-mobile a {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--text);
  transition: color var(--ease);
}
#nav-mobile a:hover {
  color: var(--muted);
}

/* Back to top */
#back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--ease);
}
#back-top.visible {
  opacity: 1;
  transform: none;
}
#back-top:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

/* ════════════════════════════════
       HERO
    ════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
  border-bottom: 1px solid var(--rule);
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--mid);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}
.hero-keywords {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--mid);
  margin-bottom: 22px;
  line-height: 1.6;
}
.hero-keywords strong {
  color: var(--text);
  font-weight: 600;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.hero-pill {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mid);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 5px 12px;
  background: var(--white);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}
.hero-stat {
  display: inline-flex;
  flex-direction: column;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.stat-n {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--text);
  line-height: 1;
}
.stat-l {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ════════════════════════════════
       ABOUT
    ════════════════════════════════ */
#about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
  min-width: 0;
}
.about-photo {
  width: 100%;
  border-radius: var(--r);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}
.about-right {
  min-width: 0;
}
.about-greeting {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.about-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--text);
  margin-bottom: 4px;
}
.about-role {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.about-text p {
  font-size: 0.97rem;
  color: var(--mid);
  line-height: 1.78;
  margin-bottom: 14px;
}
.about-text p strong {
  color: var(--text);
  font-weight: 600;
}
.about-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
  transition: all var(--ease);
}
.about-socials a:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ════════════════════════════════
       SKILLS
    ════════════════════════════════ */
#skills {
  background: var(--bg);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.sk-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 26px 24px;
}
.sk-card.primary {
  border-color: var(--text);
}
.sk-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.sk-badge.ai-badge {
  background: var(--blue-bg);
  color: var(--blue);
}
.sk-badge.def-badge {
  background: var(--bg);
  color: var(--muted);
}
.sk-icon {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 12px;
}
.sk-title {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
}
.sk-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sb-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 5px;
}
.sb-label-row span:first-child {
  color: var(--text);
}
.sb-label-row span:last-child {
  color: var(--muted);
}
.sb-track {
  height: 2px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.sb-fill {
  height: 100%;
  background: var(--text);
  border-radius: 2px;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.sk-card.primary .sb-fill {
  background: var(--blue);
}

.tags-section {
}
.tags-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 0.8rem;
  color: var(--mid);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 5px 12px;
  background: var(--white);
}

/* ════════════════════════════════
       EXPERIENCE
    ════════════════════════════════ */
#experience {
  background: var(--white);
}
.tl {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 0;
  min-width: 0;
}
.tl-item + .tl-item {
  border-top: 1px solid var(--rule);
}

.tl-left {
  padding: 32px 24px 32px 0;
  min-width: 0;
}
.tl-period-label {
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}
.tl-right {
  padding: 32px 0 32px 32px;
  border-left: 1px solid var(--rule);
  min-width: 0;
}
.tl-item.current .tl-right {
  border-left-color: var(--blue);
}

.tl-co {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 2px;
}
.tl-role-label {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 16px;
  font-style: italic;
}
.tl-intro {
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.72;
  margin-bottom: 14px;
}
.tl-bullets {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tl-bullets li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.55;
}
.tl-bullets li::before {
  content: "—";
  color: var(--muted);
  flex-shrink: 0;
}
.tl-item.current .tl-bullets li::before {
  color: var(--blue);
}
.tl-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tl-clients span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 3px 9px;
}

/* ════════════════════════════════
       EDUCATION
    ════════════════════════════════ */
#education {
  background: var(--bg);
}
.edu-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  min-width: 0;
}
.edu-left {
  padding-right: 32px;
  min-width: 0;
}
.edu-years {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 8px;
}
.edu-inst {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
.edu-right {
  border-left: 1px solid var(--rule);
  padding-left: 32px;
  min-width: 0;
}
.edu-degree {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 10px;
}
.edu-body {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.75;
}
.edu-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ════════════════════════════════
       INTERESTS
    ════════════════════════════════ */
#interests {
  background: var(--white);
}
.int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.int-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 22px 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition:
    border-color var(--ease),
    color var(--ease);
}
.int-item i {
  font-size: 1.1rem;
  color: var(--text);
}
.int-item:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ── Photography section + bridge overrides ── */
.nav-ph-link {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  border: 1px solid var(--rule) !important;
  border-radius: 20px !important;
  padding: 5px 14px !important;
  color: var(--mid) !important;
  transition:
    border-color var(--ease),
    color var(--ease) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.nav-ph-link:hover {
  border-color: var(--text) !important;
  color: var(--text) !important;
}

#photography {
  background: var(--text);
  padding: 88px 0;
  overflow: hidden;
}
.ph-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ph-copy .s-label {
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}
.ph-copy .s-title {
  color: #fff;
  margin-bottom: 18px;
}
.ph-copy p {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 420px;
}
.ph-copy p strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.ph-destinations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 32px;
}
.ph-dest {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  padding: 4px 11px;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--r);
  transition: opacity var(--ease);
}
.btn-light:hover {
  opacity: 0.88;
  color: var(--text);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    border-color var(--ease),
    color var(--ease);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.ph-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 8px;
}
.ph-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.ph-gallery a:first-child {
  grid-row: 1 / 3;
}
.ph-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition:
    opacity 0.3s ease,
    transform 0.55s ease;
}
.ph-gallery a:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.int-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

@media (max-width: 780px) {
  .ph-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ph-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 140px;
  }
  .ph-gallery a:first-child {
    grid-row: auto;
  }
}
@media (max-width: 480px) {
  .ph-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 120px 120px;
  }
  .ph-gallery a:first-child {
    grid-row: 1 / 3;
  }
}

/* ════════════════════════════════
       FOOTER
    ════════════════════════════════ */
#footer {
  background: var(--text);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: all var(--ease);
}
.footer-socials a:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ════════════════════════════════
       RESPONSIVE
    ════════════════════════════════ */
@media (max-width: 780px) {
  section {
    padding: 64px 0;
  }

  /* Nav */
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  /* About: stack */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-photo {
    max-width: 220px;
  }

  /* Skills: single column */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Experience: collapse left col */
  .tl-item {
    grid-template-columns: 1fr;
  }
  .tl-left {
    padding: 24px 0 0;
    border-bottom: none;
  }
  .tl-right {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding: 16px 0 24px;
  }
  .tl-item.current .tl-right {
    border-top-color: var(--blue);
  }

  /* Education: stack */
  .edu-row {
    grid-template-columns: 1fr;
  }
  .edu-left {
    padding-right: 0;
    padding-bottom: 20px;
  }
  .edu-right {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 20px;
  }

  /* Hero stat */
  .hero-stat {
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .hero-name {
    letter-spacing: -0.02em;
  }
  .int-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
