:root {
  --bg: #f7f4ef;
  --panel: #ffffff;
  --soft: #eee9e1;
  --text: #17191d;
  --muted: #626870;
  --line: #ded8ce;
  --accent: #111318;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(20, 20, 20, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px clamp(20px, 5vw, 72px);
  background: rgba(247,244,239,.86); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222,216,206,.75);
}
.brand { font-weight: 900; letter-spacing: .18em; text-transform: uppercase; font-size: .92rem; }
.site-nav { display: flex; gap: 28px; align-items: center; font-weight: 650; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.7rem; }
.section { padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 72px); }
.hero { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(28px, 6vw, 76px); align-items: center; min-height: 76vh; }
.eyebrow { margin: 0 0 10px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.7rem, 6vw, 6.8rem); line-height: .98; letter-spacing: -.06em; max-width: 880px; }
h2 { font-size: clamp(2rem, 3.5vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
h3 { font-size: 1.2rem; line-height: 1.25; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 14px 22px; font-weight: 800; border: 1px solid var(--accent); }
.primary { background: var(--accent); color: white; box-shadow: var(--shadow); }
.secondary { background: transparent; color: var(--accent); }
.hero-card { min-height: 430px; border-radius: var(--radius); background: linear-gradient(145deg,#fff,#e8e2d8); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; padding: 34px; border: 1px solid var(--line); }
.avatar, .portrait, .thumb { display: grid; place-items: center; background: #ded8ce; color: #555; font-weight: 900; }
.avatar { width: 180px; height: 180px; border-radius: 50%; font-size: 4rem; }
.hero-card p { font-weight: 850; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.soft-bg { background: var(--soft); }
.about { display: grid; grid-template-columns: .7fr 1.2fr .8fr; gap: 44px; align-items: center; }
.portrait { width: min(280px, 65vw); aspect-ratio: 1; border-radius: 50%; font-size: 4rem; margin: auto; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; font-weight: 800; }
.values span { display: inline-grid; place-items: center; width: 32px; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature, .project-card, .post { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 16px 40px rgba(20,20,20,.04); }
.feature { text-align: center; }
.feature span { font-size: 2rem; }
.feature p, .project-card p, .post p { color: var(--muted); }
.section-row { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 32px; }
.text-link { font-weight: 850; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.thumb { height: 180px; border-radius: 18px; margin-bottom: 20px; font-size: 2rem; letter-spacing: .18em; }
.post-list { display: grid; gap: 16px; }
.post { display: grid; grid-template-columns: 100px 1fr 1.4fr; gap: 22px; align-items: center; }
time { color: var(--muted); font-weight: 900; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.contact p { color: var(--muted); max-width: 680px; }
.site-footer { padding: 44px clamp(20px, 5vw, 72px); display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: start; border-top: 1px solid var(--line); color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 28px; font-weight: 750; color: var(--text); }
.muted { color: var(--muted); }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 20px; right: 20px; top: 72px; display: none; flex-direction: column; align-items: flex-start; padding: 22px; border-radius: 20px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .hero, .about, .feature-grid, .card-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-card { min-height: 310px; }
  .post { grid-template-columns: 1fr; }
  .contact, .section-row, .site-footer { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  h1 { font-size: 2.55rem; }
  .section { padding-left: 18px; padding-right: 18px; }
  .actions, .button { width: 100%; }
  .site-header { padding: 18px; }
}
