:root {
  --bg: #0f0f0d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --cream: #f3ede3;
  --text: #f4eee4;
  --dark: #151411;
  --muted: #b7ac9d;
  --muted-2: #8e8478;
  --line: rgba(244, 238, 228, 0.12);
  --line-strong: rgba(244, 238, 228, 0.2);
  --accent: #9a7d4d;
  --accent-soft: rgba(154, 125, 77, 0.1);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(154, 125, 77, 0.05), transparent 30rem),
    linear-gradient(135deg, #0b0b0a 0%, #14130f 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 24px;
}

.hero {
  min-height: calc(88vh - 68px);
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 42px;
  align-items: start;
  padding: 52px 0 42px;
}

.hero-text,
.card,
.photo-panel {
  animation: rise 700ms ease both;
}

.hero-text {
  padding-top: 6px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 11vw, 148px);
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: -0.08em;
}

.subtitle {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--cream);
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.intro {
  max-width: 670px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
  text-align: justify;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 17px 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 650;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button.primary {
  background: var(--cream);
  color: var(--dark);
  border-color: var(--cream);
}

.button.ghost {
  color: var(--muted);
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.button.primary:hover {
  background: #fbf6ed;
}

.icon {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.button.primary .icon {
  background: var(--dark);
  color: var(--cream);
}

.card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--surface), rgba(255, 255, 255, 0.02));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(145deg, var(--surface-hover), rgba(255, 255, 255, 0.025));
}

.cv-card {
  min-height: auto;
  margin-top: 62px;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
}

.card-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  text-align: justify;
}

.privacy-note {
  color: #d1c4b2 !important;
  font-style: italic;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.mini-links a {
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid rgba(154, 125, 77, 0.36);
  transition: color 180ms ease, border-color 180ms ease;
}

.mini-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.masonry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  padding: 8px 0 44px;
}

.masonry-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.photo-panel {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--surface), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  height: 640px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  filter: saturate(0.9) contrast(1.02);
}

.photo-panel figcaption {
  margin: 10px 4px 2px;
  color: var(--muted-2);
  font-size: 13px;
  font-style: italic;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 34px 0 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--cream);
  text-align: left;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer a {
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
}

.footer a:hover {
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 72px 0 34px;
  }

  .cv-card {
    margin-top: 0;
  }

  .masonry-grid {
    display: flex;
    flex-direction: column;
  }

  .masonry-column {
    display: contents;
  }

  .masonry-column:first-child .card:nth-child(1) {
    order: 1;
  }

  .masonry-column:nth-child(2) .card:nth-child(1) {
    order: 2;
  }

  .masonry-column:first-child .card:nth-child(2) {
    order: 3;
  }

  .masonry-column:nth-child(2) .photo-panel {
    order: 4;
  }

  .masonry-column:first-child .card:nth-child(3) {
    order: 5;
  }

  .masonry-column:nth-child(2) .card:nth-child(3) {
    order: 6;
  }

  .photo-panel img {
    height: auto;
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 28px, 1180px);
    padding-top: 20px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 94px);
  }

  .intro,
  .card p {
    text-align: left;
  }

  .card {
    padding: 24px;
    border-radius: 24px;
  }

  .photo-panel {
    border-radius: 24px;
  }

  .photo-panel img {
    border-radius: 16px;
  }

  .footer {
    display: block;
    padding-top: 28px;
  }

  .footer-links {
    margin-top: 12px;
    gap: 16px;
  }
}