* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f7f4ef;
  --black: #111;
  --red: #d63c2a;
  --muted: #777;
  --border: #ddd;
  --section-max: 1120px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--black);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 56px;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 244, 239, 0.98);
  backdrop-filter: blur(8px);
}

body.is-embed .site-nav { display: none; }
body.is-embed .hero { padding-top: 44px; }

.logo-wordmark {
  display: inline-block;
  color: var(--black);
  text-decoration: none;
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark-accent { color: var(--red); }

.nav-links {
  display: inline-flex;
  gap: 16px;
  margin-left: 14px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
}

.lang-btn {
  min-width: 44px;
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 8px 10px;
}

.lang-btn:last-child { border-right: none; }
.lang-btn.is-active { background: var(--black); color: var(--bg); }

.nav-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--bg);
  background: var(--black);
  border: 1px solid var(--black);
  padding: 9px 14px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

main { display: block; }

.hero,
.section {
  max-width: var(--section-max);
  margin: 0 auto;
  padding-left: 56px;
  padding-right: 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 66px;
  background-image:
    repeating-linear-gradient(45deg, rgba(17, 17, 17, 0.03) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-45deg, rgba(17, 17, 17, 0.02) 0 1px, transparent 1px 18px);
}

.hero-eyebrow,
.section-label {
  font-size: 0.74rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.1rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero-title .highlight { color: var(--red); }

.hero-lead {
  color: #3b3b3b;
  font-size: 1.05rem;
  line-height: 1.74;
  max-width: 64ch;
}

.hero-photo-wrap { display: flex; justify-content: center; }

.hero-photo-frame {
  border: 1px solid var(--border);
  background: #efe9df;
  box-shadow: 0 14px 26px rgba(17, 17, 17, 0.12);
  max-width: 390px;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.hero-photo,
#heroPhoto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  image-rendering: auto;
}

.section { padding-top: 62px; padding-bottom: 62px; }

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.section-intro {
  font-size: 0.95rem;
  color: #555;
  max-width: 70ch;
  line-height: 1.72;
}

.bridge {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bridge-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.9;
  max-width: 80ch;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  border: 1px solid var(--border);
  background: #fff;
  padding: 22px 22px 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.timeline-head h3 {
  font-size: 1rem;
  font-weight: 700;
}

.timeline-meta {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  font-weight: 700;
}

.timeline-points {
  margin-left: 18px;
  color: #383838;
  font-size: 0.9rem;
  line-height: 1.66;
  display: grid;
  gap: 7px;
}

.skills {
  border-top: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.skill-card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.skill-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.skill-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  padding: 8px;
  background: #f8f5ef;
  flex-shrink: 0;
}

.skill-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.skill-description {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.62;
}

.skill-items {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-item {
  border: 1px solid var(--border);
  background: #f7f4ef;
  color: #2f2f2f;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 8px;
}

.skill-projects {
  display: grid;
  gap: 8px;
}

.skill-project {
  border: 1px dashed #cfcfcf;
  padding: 9px 10px;
  background: #fcfaf6;
}

.skill-project-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #252525;
}

.skill-project-summary {
  font-size: 0.77rem;
  color: #5a5a5a;
  line-height: 1.58;
}

.documents {
  background: #111;
  color: var(--bg);
}

.documents .section-label { color: rgba(247, 244, 239, 0.7); }
.documents .section-heading h2 { color: var(--bg); }
.documents .section-intro { color: rgba(247, 244, 239, 0.72); }

.documents-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(247, 244, 239, 0.28);
  color: var(--bg);
  background: rgba(247, 244, 239, 0.08);
  padding: 11px 14px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.doc-btn--accent {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.contact {
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--border);
  background: #fff;
  padding: 13px;
  gap: 4px;
}

.contact-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  font-weight: 700;
}

.contact-value {
  font-size: 0.86rem;
  color: #242424;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #666;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-wordmark {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--black);
}

.footer-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.76rem;
  text-align: right;
}

@media (max-width: 1120px) {
  .hero,
  .section,
  .site-nav,
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-links { display: none; }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-photo-wrap { order: -1; }
  .hero-photo-frame { max-width: 320px; }

  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }

  .nav-home { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .site-nav {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo-wordmark { font-size: 1.5rem; }
  .hero { padding-top: 48px; padding-bottom: 48px; }
  .section { padding-top: 48px; padding-bottom: 48px; }

  .hero-title { font-size: clamp(2.6rem, 16vw, 3.6rem); }
  .section-heading h2 { font-size: clamp(1.8rem, 10vw, 2.5rem); }

  .documents-actions { width: 100%; }

  .doc-btn {
    width: 100%;
    justify-content: center;
  }

  .contact-grid { grid-template-columns: 1fr; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy { text-align: left; }
}
