*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #F7F2EC;
  --beige: #EDE4D7;
  --white: #FFFFFF;
  --ink: #1C1510;
  --ink-muted: #6B5D4F;
  --accent: #8B6F4E;
  --nav-h: 76px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */

#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#nav.scrolled {
  background: rgba(247, 242, 236, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 24px rgba(28, 21, 16, 0.07);
}

.nav-logo img {
  width: 160px;
  display: block;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: color 0.2s, opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.5;
}

.nav-links a.active {
  color: var(--accent);
  opacity: 1;
}

/* ── HERO ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  scroll-margin-top: 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  padding-right: 48px;
  padding-left: max(48px, calc((100vw - 1100px) / 2));
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 52px;
  max-width: 520px;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.35s;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.65s;
}

.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-identity {
  text-align: center;
  margin-top: 16px;
}

.hero-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: #1A1410;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.7s;
}

.hero-title {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B6F4E;
  margin-top: 6px;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.8s;
}

.hero-photo-circle {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  outline: 1px solid rgba(139, 111, 78, 0.25);
  outline-offset: 10px;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.5s;
}

.hero-photo-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  padding: 0;
  margin: 0;
}

/* ── SHARED SECTION ── */

.section {
  padding: 100px 0;
  scroll-margin-top: var(--nav-h);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  margin-bottom: 48px;
}

/* ── FADE-IN (scroll-triggered) ── */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── WHAT I DO ── */

.what-i-do {
  background: var(--beige);
}

.what-i-do .container {
  max-width: 1296px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
}

.card {
  background: #F7F2EC;
  border-radius: 16px;
  border: 1px solid rgba(139, 111, 78, 0.2);
  padding: 40px;
  transition: all 0.35s ease;
  cursor: default;
  will-change: transform;
}

.card:hover {
  box-shadow: 0 0 24px rgba(139, 111, 78, 0.25);
  border-color: rgba(139, 111, 78, 0.5);
  transform: translateY(-2px);
}

.card-title {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: #8B6F4E;
  margin-bottom: 12px;
}

.card p {
  font-size: 16px;
  line-height: 1.85;
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── EXPERTISE ── */

.expertise {
  background: var(--white);
}

.expertise ul {
  list-style: none;
  padding-left: 0;
  max-width: 720px;
  margin-bottom: 52px;
}

.expertise ul li {
  display: flex;
  align-items: baseline;
  gap: 0;
  border-bottom: 1px solid rgba(139, 111, 78, 0.12);
  padding: 18px 0;
}

.expertise ul li:first-child {
  border-top: 1px solid rgba(139, 111, 78, 0.12);
}

.expertise-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  min-width: 200px;
  flex-shrink: 0;
}

.expertise-desc {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #3D2B1A;
  line-height: 1.6;
}

/* ── MENTOR QUOTE ── */

.mentor-quote {
  background: var(--beige);
  text-align: center;
  padding: 140px 0;
}

.mentor-quote .container {
  display: flex;
  justify-content: center;
}

.mentor-quote blockquote {
  max-width: 780px;
}

.mentor-quote blockquote {
  max-width: 720px;
}

.mentor-quote blockquote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 36px;
}

.cite-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cite-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #E8DDD0;
  border: 1px solid rgba(139, 111, 78, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.mentor-quote cite {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-style: normal;
  text-align: left;
}

.cite-link {
  color: var(--accent);
  text-decoration: none;
}

.cite-link:hover {
  text-decoration: underline;
}

.cite-link-secondary {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 111, 78, 0.3);
  transition: border-bottom-color 0.2s;
}

.cite-link-secondary:hover {
  border-bottom-color: var(--accent);
}

/* ── ENDORSEMENTS ── */

.endorsements {
  background: var(--white);
}

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

.endorsement-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.endorsement-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #E8DDD0;
  border: 1px solid rgba(139, 111, 78, 0.2);
  align-self: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.endorsement-card p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  color: #3D2B1A;
  line-height: 1.7;
  flex: 1;
}

.read-more {
  font-family: 'Jost', system-ui, sans-serif;
  font-style: normal;
  font-size: 13px;
  color: #8B6F4E;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 111, 78, 0.3);
  white-space: nowrap;
}

.read-more:hover {
  border-bottom-color: #8B6F4E;
}

.card-divider {
  border: none;
  border-top: 1px solid rgba(139, 111, 78, 0.12);
  margin: 16px 0;
}

.card-name {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .endorsements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .endorsements-grid {
    grid-template-columns: 1fr;
  }
}

/* ── CONTACT ── */

.contact {
  background: var(--cream);
}

.contact h2 {
  margin-bottom: 20px;
}

.contact p {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 440px;
  line-height: 1.85;
  margin-bottom: 44px;
}

/* ── BUTTON ── */

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 100px;
  border: 1px solid var(--accent);
  background: transparent;
  color: #1A1410;
  text-decoration: none;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  box-shadow: 0 0 18px rgba(139, 111, 78, 0.35);
  border-color: var(--accent);
}

.btn--cv {
  border-color: #7A8C5E;
  color: #7A8C5E;
}

.btn--cv:hover {
  box-shadow: 0 0 18px rgba(122, 140, 94, 0.35);
  border-color: #7A8C5E;
}

.btn--mail {
  background: #C4614A;
  color: #FFFFFF;
  border-color: #C4614A;
}

.btn--mail:hover {
  background: #B5503A;
  border-color: #B5503A;
  box-shadow: 0 0 18px rgba(196, 97, 74, 0.35);
}

/* ── FOOTER ── */

#footer {
  background: #1A1410;
  border-top: 1px solid rgba(139, 111, 78, 0.2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 6%;
  gap: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.footer-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: #EDE4D7;
  line-height: 1.5;
}

.footer-attribution {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-right a {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14px;
  color: #EDE4D7;
  text-decoration: none;
  line-height: 2.2;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 6%;
  text-align: center;
}

.footer-bottom span {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  color: rgba(237, 228, 215, 0.4);
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ── */

@media (max-width: 860px) {
  #nav {
    padding: 0 24px;
  }

  .container {
    padding: 0 24px;
  }

  .section {
    padding: 72px 0;
  }

  .nav-links {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 60px;
  }

  .hero-photo {
    order: 1;
    padding: 0 24px;
  }

  .hero-photo-circle {
    width: 220px;
    height: 220px;
  }

  .hero-text {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px 0;
  }

  .hero h1 {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
  }

  .footer-right {
    align-items: flex-start;
  }
}
