:root {
  --ink: #17221d;
  --muted: #66716b;
  --cream: #f4f1e8;
  --paper: #fbfaf6;
  --sage: #bbc8b4;
  --green: #315945;
  --green-dark: #20382d;
  --line: #d9ddd5;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  background: rgba(251, 250, 246, 0.92);
  position: relative;
  z-index: 20;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -2px;
}
.brand span { color: #d26f49; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 600; }
.nav-links a { transition: color 180ms ease; }
.nav-links a:hover { color: #c66846; }
.nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
}
.language-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.language-select:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.menu-button { display: none; }

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 58% 42%;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-copy { padding: 70px 50px 80px 0; }
.eyebrow, .section-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b9277;
  box-shadow: 0 0 0 4px #e2e9df;
}
.hero h1, .section h2, .contact h2 {
  margin: 22px 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -3.5px;
  line-height: 1.02;
}
.hero h1 { font-size: clamp(50px, 6vw, 78px); }
.hero h1 em, .contact h2 em {
  color: #9d5f48;
  font-family: Georgia, serif;
  font-weight: 400;
}
.hero-intro {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  border-radius: 3px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border: 1px solid var(--line); background: transparent; }

.hero-art {
  height: 470px;
  position: relative;
  overflow: hidden;
  margin: 70px 0;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(224, 231, 217, 0.35), transparent 50%),
    var(--cream);
}
.sun {
  position: absolute;
  top: 55px;
  right: 70px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #dfa26c;
  opacity: 0.9;
}
.ridge {
  position: absolute;
  left: -10%;
  width: 120%;
  clip-path: polygon(0 72%, 10% 55%, 22% 68%, 34% 38%, 45% 69%, 58% 48%, 69% 65%, 82% 30%, 100% 68%, 100% 100%, 0 100%);
}
.ridge-back {
  bottom: 95px;
  height: 260px;
  background: #9baa92;
  opacity: 0.72;
}
.ridge-front {
  bottom: 0;
  height: 300px;
  background: #55705d;
  clip-path: polygon(0 62%, 12% 53%, 25% 69%, 38% 42%, 50% 73%, 64% 47%, 77% 65%, 88% 39%, 100% 60%, 100% 100%, 0 100%);
}
.trail {
  position: absolute;
  z-index: 3;
  bottom: -5px;
  left: 42%;
  width: 65px;
  height: 225px;
  border-radius: 50% 50% 0 0;
  background: #c9af91;
  clip-path: polygon(52% 0, 62% 12%, 45% 24%, 64% 39%, 38% 58%, 67% 78%, 34% 100%, 73% 100%, 100% 77%, 74% 58%, 100% 38%, 78% 23%, 96% 0);
  transform: rotate(-7deg);
}
.trail-dot { position: absolute; z-index: 4; width: 7px; height: 7px; border-radius: 50%; background: #dca578; }
.trail-dot-one { bottom: 174px; left: 47%; }
.trail-dot-two { bottom: 70px; left: 51%; }

.section { padding-top: 110px; padding-bottom: 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 52px; }
.section-heading h2, .contact h2 {
  margin: 10px 0 0;
  font-size: clamp(38px, 5vw, 58px);
}
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 90px; }
.about-copy .lead {
  max-width: 650px;
  margin: 0 0 22px;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -1.2px;
}
.about-copy > p:last-child { max-width: 610px; color: var(--muted); line-height: 1.75; }
.about-note {
  border-left: 1px solid var(--line);
  padding: 10px 0 10px 40px;
  align-self: end;
  color: #6a796f;
}
.about-image {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: 22px;
  border-radius: 3px;
}
.mountain-mark { width: 120px; height: 70px; margin-bottom: 15px; }
.about-note p { margin: 0; color: var(--ink); line-height: 1.5; }
.about-note p > span:first-child { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 55px; }
.skills span, .tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: #59655f;
  background: #f8f7f2;
  font-size: 12px;
  font-weight: 600;
}
.language-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.language-note strong { color: var(--ink); }

.story {
  border-block: 1px solid var(--line);
  background: #eef0e9;
}
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.story-inner h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -3px;
  line-height: 1.05;
}
.story-copy { max-width: 500px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.story-copy p { margin: 0; }
.story-copy .citizenship { margin-top: 18px; color: var(--green); font-weight: 700; }
.story-image {
  display: block;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  object-fit: cover;
  object-position: center 45%;
}

.experience { border-top: 1px solid var(--line); }
.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  grid-template-columns: 25% 75%;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-date { color: var(--muted); font-size: 13px; }
.timeline-item h3 { margin: 0 0 5px; font-family: "Manrope", sans-serif; font-size: 21px; }
.timeline-place { color: #9d6a55; font-size: 13px; }
.timeline-item div > p:last-child { max-width: 650px; color: var(--muted); line-height: 1.7; }

.projects { background: #eef0e9; }
.projects-heading { align-items: end; }
.text-link { border-bottom: 1px solid var(--ink); padding-bottom: 5px; font-size: 14px; font-weight: 700; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 62% 38%; }
.project-preview {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-card-featured .project-preview { min-height: 450px; }
.preview-one { background: #d8dfd0; }
.preview-window {
  width: min(82%, 440px);
  height: 390px;
  border: 1px solid rgba(23, 34, 29, 0.12);
  border-radius: 7px;
  background: #fafbf7;
  box-shadow: 0 18px 40px rgba(48, 65, 54, 0.12);
  transform: rotate(-2deg);
}
.preview-bar, .terminal-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #e4e7df;
  padding-left: 12px;
}
.preview-bar i, .terminal-bar i { width: 6px; height: 6px; border-radius: 50%; background: #bdc7b7; }
.project-image {
  display: block;
  width: 100%;
  height: calc(100% - 32px);
  object-fit: contain;
  background: #17181d;
}
.project-info { background: var(--paper); padding: 36px; position: relative; }
.project-card-featured .project-info { display: flex; flex-direction: column; justify-content: center; }
.project-number { color: #9aa39d; font-size: 12px; }
.project-info h3 { margin: 15px 0 10px; font-family: "Manrope", sans-serif; font-size: 25px; }
.project-info h3 a:hover { color: #9d5f48; }
.project-info > p:not(.project-number) { color: var(--muted); line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.tags span { padding: 7px 10px; background: transparent; }
.preview-two { background: #d5d0c1; }
.phone { width: 150px; height: 260px; border: 7px solid #26352d; border-radius: 24px; background: #f8f7f1; transform: rotate(5deg) translateY(20px); box-shadow: 0 15px 30px rgba(38, 53, 45, 0.18); }
.phone-notch { width: 55px; height: 12px; margin: 0 auto; border-radius: 0 0 8px 8px; background: #26352d; }
.phone-screen { padding: 26px 16px; display: flex; flex-direction: column; }
.phone-screen span { color: var(--muted); font-size: 8px; }
.phone-screen b { margin-top: 4px; font-size: 12px; }
.phone-card { height: 125px; margin-top: 18px; border-radius: 8px; background: linear-gradient(145deg, #879b80, #b7c2ad); }
.preview-three { background: #303e35; }
.terminal { width: 72%; height: 190px; border: 1px solid #66756c; border-radius: 7px; background: #1f2a24; color: #c5d0c7; box-shadow: 0 15px 35px rgba(20, 28, 23, 0.25); }
.terminal-bar { border-color: #48564e; }
.terminal-bar i { background: #718078; }
.terminal p { margin: 18px 20px 8px; font-family: monospace; font-size: 11px; }
.terminal p span { color: #d39a70; }
.terminal p b { color: #e4b18f; }
.terminal p em { color: #91ab96; font-style: normal; }

.contact {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.contact h2 { margin: 12px 0 32px; }

footer { border-top: 1px solid var(--line); }
.footer-inner { height: 90px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.social-links { display: flex; gap: 22px; }
.social-links a { color: var(--ink); font-weight: 600; }

@media (max-width: 820px) {
  .container { width: min(100% - 32px, 1120px); }
  .site-header { height: 72px; }
  .menu-button {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
  }
  .menu-button > span:not(.sr-only) { width: 20px; height: 1px; background: var(--ink); }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 12px 30px rgba(23, 34, 29, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 18px; }
  .nav-cta { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 18px !important; }
  .language-select { align-self: flex-start; margin: 10px 18px 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 0 40px; }
  .hero h1 { letter-spacing: -2.5px; }
  .hero-art { height: 390px; margin: 10px 0 50px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-note { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 0; }
  .story-inner { grid-template-columns: 1fr; gap: 24px; }
  .timeline-item { grid-template-columns: 30% 70%; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: auto; grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 43px; }
  .hero-intro { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-art { height: 330px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading h2 { font-size: 39px; }
  .about-copy .lead { font-size: 24px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .timeline-date { margin-bottom: 8px; }
  .project-info { padding: 28px 24px; }
  .project-card-featured .project-preview { min-height: 300px; }
  .preview-window { width: 82%; height: 220px; }
  .projects-heading .text-link { margin-top: 25px; }
  .contact h2 { font-size: 38px; letter-spacing: -2px; }
  .footer-inner { height: auto; min-height: 110px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
  .footer-inner p { margin: 0; }
}
