:root {
  --bg: #f4f4f5;
  --bg-alt: #ebebec;
  --surface: #ffffff;
  --text: #1f1f21;
  --muted: #6b6b70;
  --line: #d8d8dc;
  --accent: #2a2a2e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 20, 25, 0.06);
  --header-h: 72px;
  --max: 1100px;
  font-family: Outfit, Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(244, 244, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 300;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.site-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.25rem 4.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero h1,
.hero-name {
  font-size: clamp(4.2rem, 12vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 200;
  margin: 0 0 1.4rem;
}

.lede {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.55;
  margin: 0 0 2rem;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn:hover { opacity: 0.92; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt .section-head,
.section-alt .cv-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.section-alt .section-head { padding-top: 4rem; }
.section-alt .cv-grid { padding-bottom: 4rem; }

.section-head { margin-bottom: 2rem; }
.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  font-weight: 200;
}
.section-head p { margin: 0; color: var(--muted); max-width: 36rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(20, 20, 25, 0.1);
}
.gallery-item figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.ph {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #e7e7ea 0%, #f7f7f8 45%, #cfcfd3);
}
.ph-1 { background: linear-gradient(145deg, #dedee2, #f5f5f6 55%, #cfcfd4); }
.ph-2 { background: linear-gradient(160deg, #d5d5da, #efeff1 50%, #bbbbc1); aspect-ratio: 3/4; }
.ph-3 { background: linear-gradient(125deg, #ececef, #d8d8dd 60%, #f8f8f9); }
.ph-4 { background: linear-gradient(200deg, #c9c9cf, #eaeaec 40%, #f3f3f4); }
.ph-5 { background: linear-gradient(110deg, #f0f0f2, #d2d2d7 70%, #e8e8eb); aspect-ratio: 1; }
.ph-6 { background: linear-gradient(180deg, #e2e2e6, #fafafa 35%, #cdcdd2); }

.cv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.cv-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.cv-card h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.cv-list li:first-child { border-top: 0; padding-top: 0; }
.year { color: var(--muted); font-size: 0.85rem; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 28rem;
}
.contact-card p {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}
.contact-card p:last-child { margin-bottom: 0; }
.label { color: var(--muted); font-size: 0.85rem; }
.contact-card a { border-bottom: 1px solid var(--line); }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
.muted { color: var(--muted); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 25, 0.72);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-inner {
  width: min(900px, 100%);
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: #ddd;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .gallery, .cv-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.85rem 1.25rem; }
  .gallery, .cv-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}


.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact-form .btn { justify-self: start; margin-top: 0.25rem; }
.form-status { margin: 0; font-size: 0.95rem; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #8a2f2f; }
@media (max-width: 640px) {
  .contact-layout { grid-template-columns: 1fr; }
}


.btn:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.contact-form textarea::placeholder { color: #9a9aa0; }
