/* ── Tokens ── */
:root {
  --bg:          #f7f4ef;
  --bg-dark:     #f0ece5;
  --text:        #1a1a1a;
  --text-muted:  #666;
  --divider:     #e8e4de;
  --label:       #bbb;
  --dark:        #1a1a1a;
  --dark-border: #2a2a2a;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --section-pad: clamp(60px, 8vw, 100px);
  --content-max: 900px;
  --duration:    300ms;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
.t-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--label);
  display: block;
  margin-bottom: 20px;
}
.t-heading {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 20px;
}
.t-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 520px;
}
.t-divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 0;
}

/* ── Section wrapper ── */
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-pad) clamp(20px, 5vw, 40px);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px clamp(20px, 5vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.site-nav > * { pointer-events: auto; }
.nav-initials {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  font-weight: 400;
}
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  height: 1px;
  background: #fff;
  mix-blend-mode: difference;
  transition: width var(--duration) var(--ease);
}
.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 14px; }
.nav-hamburger span:nth-child(3) { width: 22px; }
.nav-hamburger:hover span,
.nav-hamburger:focus-visible span { width: 22px; }

/* ── Nav overlay ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay a {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  color: rgba(247,244,239,0.85);
  letter-spacing: 2px;
  transition: color var(--duration);
}
.nav-overlay a:hover { color: #fff; }
.nav-overlay .nav-lang {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.nav-overlay .nav-lang button {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(247,244,239,0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--duration);
  padding: 4px 0;
}
.nav-overlay .nav-lang button.active { color: rgba(247,244,239,0.9); border-bottom: 1px solid rgba(247,244,239,0.4); }
.nav-overlay .nav-lang button:hover { color: rgba(247,244,239,0.9); }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 28px clamp(20px, 5vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 8px;
  letter-spacing: 4px;
  color: #444;
  text-transform: uppercase;
}
.footer-socials { display: flex; gap: 20px; }
.footer-socials a {
  font-size: 8px;
  letter-spacing: 2px;
  color: #555;
  text-transform: uppercase;
  transition: color var(--duration);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-socials a:hover { color: var(--bg); }
.footer-socials svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Hero ── */
.hero {
  height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -80px;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.72);
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.38) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  will-change: transform;
}
.hero-label {
  font-size: 9px;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  font-family: var(--sans);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 300;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1.15;
}
.hero-rule { width: 40px; height: 1px; background: rgba(255,255,255,0.35); }
.hero-sub {
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  font-family: var(--sans);
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  font-size: 8px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
  transform-origin: top;
  animation: scrollGrow 1.8s ease-in-out infinite;
}
@keyframes scrollGrow {
  0%   { transform: scaleY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none; opacity: 0.3; transform: scaleY(1); }
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.about-portrait {
  aspect-ratio: 3 / 4;
  background-image: url('/img/profile.jpg');
  background-size: cover;
  background-position: center top;
  border-radius: 2px;
  transform-style: preserve-3d;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-meta { display: flex; gap: 36px; flex-wrap: wrap; }
.about-meta-item { display: flex; flex-direction: column; gap: 4px; }
.about-meta-label {
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--label);
  text-transform: uppercase;
}
.about-meta-value { font-size: 13px; color: var(--text-muted); }
.cta-link {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: opacity var(--duration);
}
.cta-link:hover { opacity: 0.45; }

/* ── Photography gallery ── */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 48px;
}
.photo-card {
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
  transform-style: preserve-3d;
  transition: transform 150ms ease, box-shadow 150ms ease;
  will-change: transform;
}
.photo-card:nth-child(1) { height: 280px; }
.photo-card:nth-child(2) { height: 200px; margin-top: 64px; }
.photo-card:nth-child(3) { height: 200px; }
.photo-card:nth-child(4) { height: 280px; margin-top: -64px; }
.photo-card:nth-child(5) { height: 260px; grid-column: span 2; max-width: 62%; margin: 0 auto; width: 100%; }
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 400ms ease;
}
.photo-card:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .photo-card { transition: none; }
  .photo-card img { transition: none; }
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 300;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 2px; }

/* ── Hospitality cards ── */
.hosp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.hosp-card {
  background: var(--bg-dark);
  border-radius: 2px;
  padding: clamp(20px, 3vw, 32px) clamp(18px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hosp-number { font-size: 9px; letter-spacing: 3px; color: var(--label); }
.hosp-title { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--text); line-height: 1.3; }
.hosp-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ── Contact section ── */
.contact-section { background: var(--dark); }
.contact-section .t-label { color: #555; }
.contact-section .t-heading { color: var(--bg); }
.contact-section .t-body { color: #666; }
.contact-email {
  font-family: var(--serif);
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 300;
  color: rgba(247,244,239,0.65);
  letter-spacing: 1px;
  transition: color var(--duration);
  display: inline-block;
  margin-top: 8px;
}
.contact-email:hover { color: var(--bg); }
.contact-socials {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.contact-socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  transition: color var(--duration);
}
.contact-socials a:hover { color: var(--bg); }
.contact-socials svg { width: 16px; height: 16px; }

/* ── CV page ── */
.cv-profile { max-width: 640px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--divider), transparent);
}
.timeline-item { position: relative; margin-bottom: 2px; }
.timeline-dot {
  position: absolute;
  left: -24px; top: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--divider);
  transition: all var(--duration);
  z-index: 1;
}
.timeline-item.open .timeline-dot,
.timeline-item:hover .timeline-dot { background: var(--text); border-color: var(--text); }
.timeline-header {
  padding: 14px 16px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--duration);
  user-select: none;
}
.timeline-header:hover,
.timeline-item.open .timeline-header { background: #fff; }
.timeline-role { font-family: var(--serif); font-size: 17px; font-weight: 400; color: var(--text); line-height: 1.3; }
.timeline-org { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.timeline-date { font-size: 11px; color: var(--label); white-space: nowrap; padding-top: 3px; flex-shrink: 0; }
.timeline-chevron { color: var(--label); transition: transform var(--duration); flex-shrink: 0; margin-top: 4px; }
.timeline-item.open .timeline-chevron { transform: rotate(180deg); }
.timeline-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.timeline-item.open .timeline-body { max-height: 300px; }
.timeline-body-inner {
  padding: 0 16px 16px;
  background: #fff;
  border-radius: 0 0 2px 2px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}
.edu-section { margin-top: 32px; padding-top: 28px; border-top: 1px dashed var(--divider); }
.edu-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); flex-wrap: wrap; }
.edu-name { font-family: var(--serif); font-size: 16px; font-weight: 400; color: var(--text); }
.edu-school { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.edu-year { font-size: 11px; color: var(--label); white-space: nowrap; }
.skills-section { margin-top: 48px; }
.skills-group { margin-bottom: 28px; }
.skills-group-title { font-family: var(--serif); font-size: 16px; font-style: italic; color: var(--text-muted); margin-bottom: 14px; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 300;
  background: var(--bg);
  border: 1px solid var(--divider);
  color: var(--text);
  transition: all var(--duration);
}
.skill-tag:hover { background: var(--bg-dark); border-color: #ccc; }
.skill-tag.featured { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── Responsive ── */
@media (max-width: 680px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-height: 340px; }
  .hosp-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .photo-card:nth-child(1),
  .photo-card:nth-child(2),
  .photo-card:nth-child(3),
  .photo-card:nth-child(4) { height: 220px; margin-top: 0; }
  .photo-card:nth-child(5) { max-width: 100%; height: 220px; }
  .contact-socials { gap: 20px; }
}
