:root {
  --bg: #f5f0e8;
  --bg-soft: #ebe2d6;
  --paper: #fffaf1;
  --paper-strong: #ffffff;
  --ink: #171615;
  --muted: #676058;
  --line: rgba(23, 22, 21, 0.14);
  --accent: #2f594b;
  --accent-2: #8b5e3c;
  --shadow: 0 24px 70px rgba(35, 29, 21, 0.12);
  --radius: 30px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(47, 89, 75, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 22%, rgba(139, 94, 60, 0.14), transparent 24rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(23, 22, 21, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 22, 21, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.48), transparent 65%);
}

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

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

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0 36px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(35, 29, 21, 0.08);
}

.brand,
.header-actions,
.language-switch,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.header-link {
  transition: color 160ms ease, opacity 160ms ease;
}

.nav a:hover,
.header-link:hover {
  color: var(--ink);
}

.header-actions {
  gap: 10px;
}

.language-switch {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 240, 232, 0.7);
}

.lang-button {
  border: 0;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.lang-button.active {
  background: var(--ink);
  color: var(--paper);
}

.header-link {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 70px 0;
}

.hero {
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
  padding-top: 36px;
}

.eyebrow,
.section-kicker,
.proof-label {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 13vw, 158px);
  font-weight: 500;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 7vw, 82px);
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  font-size: 30px;
}

.hero-subtitle {
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.hero-text,
.intro-text p,
.talk-text,
.section-note,
.proof-card p,
.project-summary,
.project-meta p,
.education-card p,
.image-statement p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 18px;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 750;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 16px 34px rgba(23, 22, 21, 0.18);
}

.button.ghost {
  background: rgba(255, 250, 241, 0.58);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}

.hero-metrics article {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.64);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 30px -22px -28px 26px;
  border-radius: 42px;
  background: var(--bg-soft);
  z-index: -1;
  transform: rotate(3deg);
}

.portrait-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--paper);
  box-shadow: var(--shadow);
  aspect-ratio: 0.73 / 1;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.95) contrast(1.02);
}

.portrait-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.78);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font-weight: 750;
}

.intro-grid,
.image-statement,
.contact-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.section-title-block {
  position: sticky;
  top: 120px;
}

.section-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.intro-text {
  padding-top: 14px;
}

.intro-text p {
  margin-bottom: 24px;
  font-size: 21px;
}

.proof-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.proof-card,
.project-card,
.education-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 16px 44px rgba(35, 29, 21, 0.06);
}

.proof-card {
  min-height: 260px;
  padding: 24px;
}

.proof-card.accent {
  background: var(--ink);
  color: var(--paper);
}

.proof-card.accent .proof-label,
.proof-card.accent p {
  color: rgba(255, 250, 241, 0.72);
}

.proof-card h3 {
  font-size: 28px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 760px;
}

.section-note {
  max-width: 410px;
  margin-bottom: 8px;
  font-size: 16px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 89, 75, 0.35);
  box-shadow: var(--shadow);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.project-status,
.project-period {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.project-card h3 {
  min-height: 94px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
}

.project-summary {
  flex: 1;
  margin-bottom: 24px;
}

.project-meta {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 0;
}

.project-meta strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.project-meta p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.project-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.project-link::after {
  content: "↗";
}

.education-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.education-card {
  padding: 28px;
}

.education-card.big {
  min-height: 220px;
  background: linear-gradient(135deg, rgba(47, 89, 75, 0.13), rgba(255, 250, 241, 0.72));
}

.education-card.full {
  grid-column: 1 / -1;
}

.education-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 500;
}

.image-statement {
  align-items: center;
}

.image-statement figure {
  margin: 0;
  overflow: hidden;
  border-radius: 38px;
  box-shadow: var(--shadow);
  aspect-ratio: 0.8 / 1;
}

.image-statement img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.image-statement h2 {
  margin-bottom: 22px;
}

.contact-section {
  align-items: center;
  padding-bottom: 42px;
}

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

.contact-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.72);
  font-size: 20px;
  font-weight: 800;
}

.contact-links a::after {
  content: "↗";
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1000px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding: 4px 2px 2px;
  }

  .hero,
  .intro-grid,
  .image-statement,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-title-block {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    max-width: 520px;
  }

  .proof-section,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .site-header {
    top: 10px;
    margin-top: 10px;
  }

  .brand-name,
  .header-link {
    display: none;
  }

  .section {
    padding: 46px 0;
  }

  h1 {
    font-size: clamp(58px, 22vw, 88px);
  }

  h2 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hero-metrics,
  .proof-section,
  .project-grid,
  .education-layout {
    grid-template-columns: 1fr;
  }

  .portrait-card,
  .hero-media::before {
    border-radius: 28px;
  }

  .intro-text p,
  .hero-text {
    font-size: 18px;
  }

  .project-card {
    min-height: auto;
  }

  .project-card h3 {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

.project-number {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
