/* dm-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/dm-sans-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/dm-sans-v17-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/dm-sans-v17-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/dm-sans-v17-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/fraunces-v38-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fraunces-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/fraunces-v38-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fraunces-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/fraunces-v38-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fraunces-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/fraunces-v38-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #ece8dc;
  --text: #243129;
  --muted: #68736c;
  --accent: #476957;
  --accent-dark: #31503f;
  --accent-light: #d7e5db;
  --warm: #c98c55;
  --border: #d8ddd7;
  --dark: #1d2b23;
  --shadow: 0 24px 70px rgba(36, 49, 41, 0.1);
  --header-bg: rgba(247, 245, 239, 0.9);
}

body.dark {
  --bg: #0f1712;
  --surface: #17221b;
  --surface-soft: #131c16;
  --text: #f4f7f4;
  --muted: #b4beb6;
  --accent: #91b39d;
  --accent-dark: #b9d2c1;
  --accent-light: #243a2c;
  --warm: #d8a16d;
  --border: #2a3b30;
  --dark: #0c130f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --header-bg: rgba(15, 23, 18, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
  transition: background 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 110px 0;
  scroll-margin-top: 80px;
}

.section-soft {
  background: var(--surface-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  border-color: var(--border);
}

.nav-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.main-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  cursor: pointer;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 76px;
  align-items: center;
}

.hero-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.5;
}

.hero-decor-one {
  width: 380px;
  height: 380px;
  top: -80px;
  right: -130px;
  background: var(--accent-light);
}

.hero-decor-two {
  width: 260px;
  height: 260px;
  bottom: -100px;
  left: -120px;
  background: rgba(201, 140, 85, 0.25);
}

.eyebrow,
.section-kicker,
.portrait-label,
.timeline-content > span {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.04em;
}

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

h1 {
  max-width: 860px;
  margin: 18px 0 26px;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  line-height: 1;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

h2 {
  margin: 12px 0 22px;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 30px;
}

.hero-meta span {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.portrait-wrapper{
    aspect-ratio:4 / 4.8;
    overflow:hidden;
    border-radius:28px;
    background:#eef3ef;
    box-shadow:0 25px 60px rgba(0,0,0,.12);
}

.portrait-photo{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 18%;
    transform:scale(1.08);
    transition:transform .4s ease;
}

.portrait-card:hover .portrait-photo{
    transform:scale(1.10);
}

.button-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
}

.button-light {
  background: white;
  color: #243129;
}

.portrait-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait-placeholder {
  aspect-ratio: 4 / 4.8;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.85), transparent 25%),
    linear-gradient(145deg, #dbe8de, #9fb8a7);
  color: #31503f;
  text-align: center;
}

.portrait-monogram {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

.portrait-info {
  padding-top: 22px;
}

.portrait-info h2 {
  margin: 4px 0 6px;
  font-size: 2rem;
}

.portrait-info > p {
  color: var(--muted);
  margin-bottom: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.intro-copy .lead {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 600;
}

.intro-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

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

.section-heading > p {
  max-width: 420px;
  color: var(--muted);
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.competency-card {
  min-height: 285px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-index {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--warm);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  opacity: 0.8;
}

.competency-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.experience-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.strength-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.strength-cloud span {
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 700;
  transform: rotate(-1deg);
}

.strength-cloud span:nth-child(even) {
  transform: rotate(1.5deg);
}

.detail-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 58px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-item {
  padding: 25px;
  border-right: 1px solid var(--border);
}

.detail-item:last-child {
  border-right: 0;
}

.detail-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.85rem;
}

.section-dark {
  background: var(--dark);
  color: white;
}

.section-heading.light .section-kicker {
  color: #a8c5b2;
}

.timeline {
  max-width: 930px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 42px;
  padding: 38px 0;
  border-top: 1px solid rgba(255,255,255,.16);
}

.timeline-period {
  color: #b9c8bf;
  font-weight: 700;
}

.timeline-content > span {
  color: #a8c5b2;
}

.timeline-content h3 {
  margin: 5px 0 6px;
  font-size: 1.55rem;
}

.timeline-content p {
  color: #c1cbc5;
}

.timeline-description {
  max-width: 680px;
}

.contact-section {
  padding-top: 48px;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  padding: 54px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.15), transparent 28%),
    var(--accent);
  color: white;
}

.contact-card .section-kicker {
  color: rgba(255,255,255,.72);
}

.contact-card h2 {
  margin-bottom: 12px;
}

.contact-card p {
  color: rgba(255,255,255,.82);
  margin-bottom: 0;
}

.contact-actions {
  min-width: 315px;
  flex-direction: column;
  align-items: flex-start;
}

.contact-phone {
  color: white;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 700;
}

.contact-actions span {
  color: rgba(255,255,255,.75);
}

.site-footer {
  padding: 34px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer-row div {
  display: flex;
  gap: 20px;
}

.legal-page {
  min-height: 100vh;
}

.legal-main {
  padding: 96px 0;
}

.legal-content {
  max-width: 840px;
}

.legal-content h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.legal-content h2 {
  margin-top: 42px;
  font-family: "DM Sans", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

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

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

@media (max-width: 940px) {
  .hero-grid,
  .intro-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 52px;
  }

  .portrait-card {
    max-width: 540px;
  }

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

  .section-heading,
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .detail-item:nth-child(2) {
    border-right: 0;
  }

  .detail-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }
}

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

  .brand-copy {
    display: none;
  }

  .main-nav {
    position: absolute;
    inset: 78px 20px auto;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .competency-grid,
  .detail-panel {
    grid-template-columns: 1fr;
  }

  .detail-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .detail-item:last-child {
    border-bottom: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-card {
    padding: 36px 26px;
  }

  .contact-actions {
    min-width: 0;
  }

  .footer-row {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

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