:root {
  --bg:      #F8F7F5;
  --surface: #EFEFEB;
  --dark:    #111010;
  --mid:     #3C3A38;
  --muted:   #8E8C88;
  --border:  #D9D6CF;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--dark);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── NAVBAR ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(248, 247, 245, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 0.825rem;
  color: var(--mid);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.025em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--dark);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--dark); }

/* ── HERO ── */
#home {
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.hero-text .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 1.75rem;
}

.hero-text .roles {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.875rem;
}

.hero-text .name-tag {
  font-size: 0.875rem;
  color: var(--mid);
  font-weight: 500;
}

.hero-photo {
  position: relative;
}

.hero-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow:
    0 2px 6px rgba(17, 16, 16, 0.06),
    0 12px 32px rgba(17, 16, 16, 0.10),
    0 32px 72px rgba(17, 16, 16, 0.08);
}

.hero-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 640px;
  object-position: top center;
}

.hero-photo-wrap .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,16,16,0.18) 0%, transparent 55%);
  pointer-events: none;
}

/* ── DARK BAND ── */
#quote-band {
  background: #111010;
  padding: 5.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

#quote-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.quote-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote-inner p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  color: #E5E2DB;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 2.75rem;
}

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(229, 226, 219, 0.38);
  color: #E5E2DB;
  padding: 0.7rem 2.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn-outline:hover {
  background: rgba(229, 226, 219, 0.09);
  border-color: rgba(229, 226, 219, 0.6);
}
.btn-outline:active { opacity: 0.8; transform: scale(0.98); }

/* ── SPLIT SECTION ── */
#split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.split-photo {
  position: relative;
  overflow: hidden;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.split-photo .color-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,16,16,0.28) 0%, rgba(28, 50, 68, 0.22) 100%);
  mix-blend-mode: multiply;
}

.split-text {
  background: #2B2B2B;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.split-text p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  color: #E5E2DB;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ── PAGE HERO (for inner pages) ── */
.page-hero {
  padding-top: 64px;
  background: var(--bg);
}

.page-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.page-hero-inner .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.page-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--dark);
  line-height: 1.1;
}

/* ── ABOUT ── */
#about {
  padding: 7rem 2.5rem;
  background: var(--bg);
}

.about-inner {
  max-width: 780px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 3.5rem;
}

.about-body p {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--mid);
  margin-bottom: 1.625rem;
}

.about-body p:last-child { margin-bottom: 0; }

/* ── SKILLS ── */
#skills {
  padding: 7rem 2.5rem;
  background: var(--surface);
}

.skills-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.skills-header {
  margin-bottom: 3.5rem;
}

.skills-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-top: 0.75rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg);
  padding: 2rem 2rem 2.25rem;
  border-radius: 3px;
  box-shadow:
    0 1px 3px rgba(17,16,16,0.04),
    0 6px 20px rgba(17,16,16,0.06),
    0 16px 40px rgba(17,16,16,0.04);
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 6px rgba(17,16,16,0.06),
    0 12px 32px rgba(17,16,16,0.10),
    0 24px 56px rgba(17,16,16,0.06);
}

.skill-icon {
  width: 38px; height: 38px;
  background: var(--dark);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.375rem;
}

.skill-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.skill-card p {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── CONTACT ── */
#contact {
  padding: 7rem 2.5rem;
  background: var(--bg);
}

.contact-inner {
  max-width: 780px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 0.875rem;
}

.contact-inner .sub {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2.75rem;
}

.form-grid {
  display: grid;
  gap: 1.375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.375rem;
}

.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.field label span {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  background: #FAFAF8;
  font-size: 0.875rem;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(17,16,16,0.06);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  background: var(--dark);
  color: var(--bg);
  padding: 0.75rem 2.25rem;
  border: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-submit:hover { background: #2C2C2C; }
.btn-submit:active { transform: scale(0.97); }
.btn-submit:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }

/* ── FOOTER ── */
footer {
  background: #111010;
  padding: 2rem 2.5rem;
  text-align: center;
}

footer p {
  font-size: 0.72rem;
  color: #5C5A58;
  letter-spacing: 0.06em;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem;
  }
  .hero-text { order: 1; }
  .hero-photo { order: 0; }

  #split {
    grid-template-columns: 1fr;
  }
  .split-photo { min-height: 280px; }

  .form-row { grid-template-columns: 1fr; }

  .nav-inner { padding: 0 1.5rem; }
  .nav-links { gap: 1.5rem; }
}
