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

:root {
  --mocha: #A47764;
  --mocha-light: #C4A394;
  --mocha-lighter: #E8D5CC;
  --mocha-faint: #F5EDE8;
  --black: #000000;
  --white: #FFFFFF;
  --cream: #FAF7F5;
  --text: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #666666;
  --mocha-text: #835A46;
  --border: rgba(164,119,100,0.2);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(5rem + env(safe-area-inset-top));
  background: var(--cream);
  overscroll-behavior: none;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  line-height: 1.15;
  color: var(--black);
  font-weight: 500;
}

.display {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.0;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mocha-text);
  display: inline-block;
  margin-bottom: 1.25rem;
}

/* ============================================================
   Layout
   ============================================================ */

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 7rem 0; }

.divider {
  width: 60px;
  height: 1px;
  background: var(--mocha);
  margin: 1.5rem 0;
}

.divider-center {
  width: 60px;
  height: 1px;
  background: var(--mocha);
  margin: 1.5rem auto;
}

/* ============================================================
   Skip Link
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 1100;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}
.skip-link:focus { top: 0; }

/* ============================================================
   Navigation
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: calc(1rem + env(safe-area-inset-top)) 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,247,245,0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--black);
  letter-spacing: 0.02em;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--mocha);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  margin: 5px 0;
  transition: all 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================================
   Focus Styles
   ============================================================ */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--mocha);
  outline-offset: 3px;
}

/* ============================================================
   Hero
   ============================================================ */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(8rem + env(safe-area-inset-top)) 0 6rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  padding: 0 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mocha-text);
  margin-bottom: 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--mocha);
}

.hero-heading { margin-bottom: 2rem; }

.hero-heading .accent { color: var(--black); }
.hero-heading .line-2 { color: var(--black); }
.hero-heading .love-emphasis { font-style: italic; color: var(--mocha); }

.hero-role {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 400;
  font-style: italic;
  color: var(--mocha-text);
  margin-bottom: 1.5rem;
}

.hero-sub {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-expertise {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.hero-expertise-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-expertise-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mocha);
  flex-shrink: 0;
}

.hero-expertise-item:first-child::before {
  display: none;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-weight: 500;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: var(--mocha); }

.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-ghost:hover {
  background: var(--black);
  color: var(--white);
}

.btn-big { padding: 1.1rem 2.5rem; font-size: 0.85rem; }

/* ============================================================
   About
   ============================================================ */

#about {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.about-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-intro h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.about-intro p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.highlight-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--cream);
}

.highlight-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================================
   Toolkit / Expertise
   ============================================================ */

#toolkit {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.toolkit-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 4rem;
}
.toolkit-header h2 { font-size: clamp(2rem, 4vw, 3rem); }
.toolkit-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
}

.toolkit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.skill-card {
  padding: 2.25rem;
  border: 1px solid var(--border);
  background: var(--white);
}

.skill-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--black);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.skill-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.skill-card li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.skill-card li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mocha);
  flex-shrink: 0;
}

/* ============================================================
   Experience
   ============================================================ */

#experience {
  background: var(--black);
  color: var(--white);
}

#experience .section-label { color: var(--mocha-light); }

.exp-header { margin-bottom: 4rem; }
.exp-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
  color: var(--white);
}
.exp-header p { color: rgba(255,255,255,0.6); font-size: 1rem; font-weight: 300; }

.exp-list { display: flex; flex-direction: column; }

.exp-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  padding: 2.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.exp-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }

.exp-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding-top: 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  font-weight: 400;
}

.exp-date-start { color: var(--white); font-weight: 500; }
.exp-date-end { color: rgba(255,255,255,0.5); font-weight: 400; }
.exp-date-end.is-current { color: var(--mocha-light); font-weight: 600; }

.exp-date-connector {
  width: 16px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.exp-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.exp-company {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--mocha-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.exp-content p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.75;
  font-weight: 300;
}

/* Focus styles for dark background */
#experience a:focus-visible { outline-color: var(--mocha-light); }

/* ============================================================
   Achievements
   ============================================================ */

#achievements {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.ach-header { margin-bottom: 4rem; }
.ach-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }

.ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.ach-card {
  padding: 2.25rem;
  border: 1px solid var(--border);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ach-type {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mocha-text);
}

.ach-card h3 { font-size: 1.1rem; font-weight: 500; line-height: 1.3; }
.ach-venue { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.ach-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; font-weight: 300; }

/* ============================================================
   Community
   ============================================================ */

#community {
  background: var(--mocha-faint);
  border-bottom: 1px solid var(--border);
}

.comm-header { margin-bottom: 4rem; }
.comm-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.comm-header p { color: var(--text-secondary); margin-top: 0.5rem; font-weight: 300; }

.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.comm-grid.two-col { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }

.comm-card {
  padding: 2.25rem;
  border: 1px solid var(--border);
  background: var(--white);
}

.comm-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; }

.comm-org {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--mocha-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.comm-period {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 400;
}
.comm-card p:last-child { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; font-weight: 300; }

/* ============================================================
   Education
   ============================================================ */

#education {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.edu-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.edu-inner h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }

.edu-degree {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.edu-uni {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--mocha-text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.edu-year { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2.5rem; font-weight: 400; }

.edu-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.edu-module {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.edu-module::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mocha);
  flex-shrink: 0;
}

/* ============================================================
   Contact
   ============================================================ */

#contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  color: var(--white);
  position: relative;
}

.contact-inner { max-width: 650px; padding: 4rem 2rem; }
.contact-inner .section-label { color: var(--mocha-light); margin-bottom: 1rem; }
.contact-inner h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--white);
}
.contact-inner h2 .accent { color: var(--mocha-light); }

.contact-inner p {
  color: rgba(255,255,255,0.6);
  max-width: 460px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
}

.contact-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }

.contact-ctas .btn-primary {
  background: var(--mocha);
  color: var(--white);
}
.contact-ctas .btn-primary:hover {
  background: var(--mocha-light);
  color: var(--black);
}

.contact-ctas .btn-ghost {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.contact-ctas .btn-ghost:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Focus styles for dark background */
#contact a:focus-visible { outline-color: var(--mocha-light); }

/* ============================================================
   Footer
   ============================================================ */

footer {
  background: var(--black);
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
footer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ============================================================
   Reduced Motion
   ============================================================ */

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

/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */

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

/* ============================================================
   Responsive — Mobile (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {
  html { scroll-padding-top: 4rem; }
  section { padding: 4.5rem 0; }

  nav { padding: calc(0.85rem + env(safe-area-inset-top)) 1.5rem 0.85rem; }
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0s linear 0.3s;
    z-index: 999;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.3s;
  }
  .nav-links a { font-size: 1rem; letter-spacing: 0.15em; }

  .about-compact { grid-template-columns: 1fr; gap: 2.5rem; }
  .toolkit-grid { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .exp-date { flex-direction: row; align-items: center; gap: 0.5rem; }
  .ach-grid { grid-template-columns: 1fr; }
  .comm-grid { grid-template-columns: 1fr; }
  .comm-grid.two-col { grid-template-columns: 1fr; }

  #hero { padding: calc(7rem + env(safe-area-inset-top)) 0 4rem; }
  .hero-inner { padding: 0 1.5rem; }
  .hero-role { font-size: 1.2rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-expertise { font-size: 1rem; }

  #contact { min-height: auto; padding: 5rem 0; }
  .btn-big { padding: 1rem 2rem; font-size: 0.8rem; }
}

/* ============================================================
   Responsive — Small Mobile (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-inner { padding: 0 1.25rem; }
  .about-highlights { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .contact-ctas { flex-direction: column; align-items: center; }
  .contact-ctas .btn-big { width: 100%; justify-content: center; }
  section { padding: 3.5rem 0; }
  .edu-modules { grid-template-columns: 1fr; gap: 0.5rem; }
  .edu-module { font-size: 0.82rem; }
}
