:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #1f2933;
  --muted: #667085;
  --soft: #efe8db;
  --line: #ddd3c3;
  --accent: #8a5f2d;
  --accent-dark: #68461f;
  --navy: #172230;
  --radius: 22px;
  --shadow: 0 18px 52px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 4% 0%, rgba(138, 95, 45, 0.11), transparent 29rem),
    linear-gradient(180deg, #faf8f2 0%, var(--bg) 38rem);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(138, 95, 45, 0.48);
  outline-offset: 3px;
}

.site-header,
.site-footer,
.section,
.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(221, 211, 195, 0.72);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-switcher a {
  color: var(--muted);
}

.language-switcher a[aria-current="true"] {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--accent-dark);
}

.hero {
  padding: 72px 0 42px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.lead {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.positioning {
  max-width: 820px;
  color: var(--accent-dark);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
}

.button.secondary:hover {
  background: #fff8ec;
  color: var(--accent-dark);
}

.section {
  padding: 34px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-link {
  margin-top: 18px;
}

.panel {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.language-panel {
  background: linear-gradient(135deg, #fffdf8, #fff5e5);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.project-preview,
.project-list {
  counter-reset: project;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  position: relative;
  min-height: 210px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
  border-color: rgba(138, 95, 45, 0.52);
  box-shadow: 0 20px 48px rgba(31, 41, 51, 0.10);
}

.project-card a {
  color: var(--ink);
}

.project-card h2,
.project-card h3 {
  padding-right: 58px;
}

.project-value {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.project-value strong {
  color: var(--accent-dark);
}

.pitch-card {
  background: linear-gradient(135deg, #ffffff, #fff7e8);
}

.project-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(138, 95, 45, 0.28);
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.card p,
.panel p,
li {
  color: var(--muted);
}

.card p:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

.list-clean {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.kicker {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 42px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  .nav {
    justify-content: flex-start;
    column-gap: 16px;
    row-gap: 8px;
  }

  .language-switcher {
    margin-top: 2px;
  }

  .hero {
    padding-top: 42px;
  }

  .grid,
  .grid.two,
  .project-list {
    grid-template-columns: 1fr;
  }
}


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

.timeline-item {
  position: relative;
  padding: 22px 24px 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 6px;
  height: calc(100% - 48px);
  border-radius: 999px;
  background: var(--accent);
}

.timeline-item span,
.cv-timeline strong {
  color: var(--accent-dark);
  font-weight: 900;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.qr-card {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #fff6e8);
  text-align: center;
  box-shadow: var(--shadow);
}

.qr-image {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.contact-link {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf1;
}

.contact-link span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-link a {
  overflow-wrap: anywhere;
}

.qr-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  width: min(260px, 70vw);
  aspect-ratio: 1;
  border: 12px solid var(--ink);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(31, 41, 51, 0.08) 1px, transparent 1px),
    #fffdf8;
  background-size: 22px 22px;
}

.qr-placeholder span {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 10px solid var(--ink);
  background: #fffdf8;
}

.qr-placeholder span:nth-child(1) { top: 20px; left: 20px; }
.qr-placeholder span:nth-child(2) { top: 20px; right: 20px; }
.qr-placeholder span:nth-child(3) { bottom: 20px; left: 20px; }
.qr-placeholder span:nth-child(4) { bottom: 54px; right: 54px; width: 34px; height: 34px; border-width: 8px; }
.qr-placeholder strong { color: var(--accent-dark); font-size: 1.25rem; letter-spacing: 0.16em; }

.cv-body {
  background: #ebe6dc;
}

.cv-page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.cv-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin: 8px 0 18px;
}

.cv-sheet {
  padding: clamp(32px, 6vw, 58px);
  border: 1px solid var(--line);
  background: #fffefa;
  box-shadow: 0 22px 60px rgba(23, 32, 42, 0.12);
}

.cv-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--line);
}

.cv-header h1 {
  margin: 4px 0 8px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.cv-meta {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.cv-sheet section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.cv-sheet section:last-child {
  border-bottom: 0;
}

.compact-list {
  columns: 2;
  gap: 28px;
  margin: 0;
  padding-left: 18px;
}

.cv-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

@media (max-width: 780px) {
  .contact-layout,
  .cv-timeline {
    grid-template-columns: 1fr;
  }

  .cv-header {
    flex-direction: column;
  }

  .cv-meta {
    text-align: left;
  }

  .compact-list {
    columns: 1;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cv-actions {
    display: none;
  }

  .cv-body {
    background: #fff;
  }

  .cv-page {
    width: auto;
    margin: 0;
  }

  .cv-sheet {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .cv-sheet section,
  .timeline-item,
  .card,
  .panel {
    break-inside: avoid;
  }
}
