:root {
  --bg: #f5f2ec;
  --surface: #fbf9f5;
  --ink: #161512;
  --muted: #6b665e;
  --line: #e2dccf;
  --tint: #ebe5d9;
  --accent: #2f5d50;
  --radius: 22px;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:root { --gut: 40px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* NAV */
.nav { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.nav-name { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .lang { color: var(--ink); font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center;
  padding-top: 56px; padding-bottom: 96px;
}
.eyebrow { color: var(--muted); font-size: 15px; font-weight: 500; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(52px, 8vw, 108px); line-height: .95; letter-spacing: -0.045em;
  font-weight: 700; margin-bottom: 28px;
}
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; max-width: 560px; color: #2c2a26; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-photo { justify-self: end; width: 100%; max-width: 360px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; font-size: 16px;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }
.icon-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn svg[fill="none"] { fill: none; }

/* SECTIONS */
.section { padding-top: 96px; padding-bottom: 32px; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gut)) 1px no-repeat; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 380px; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(22, 21, 18, .35); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.card-tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* SIDE PROJECT */
.side-card {
  margin-top: 20px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end;
  background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 40px 44px;
}
.pill { display: inline-block; font-size: 12px; border: 1px solid rgba(245, 242, 236, .3); border-radius: 999px; padding: 2px 10px; margin-bottom: 18px; color: rgba(245, 242, 236, .75); }
.side-card h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; margin-bottom: 14px; }
.side-card p { color: rgba(245, 242, 236, .78); font-size: 15px; line-height: 1.55; }
.side-aside p { margin-bottom: 20px; }
.side-card .btn-ghost { color: var(--bg); border-color: rgba(245, 242, 236, .35); }
.side-card .btn-ghost:hover { background: rgba(245, 242, 236, .08); }

/* ABOUT */
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.about-text p { margin-bottom: 18px; color: #2c2a26; }
.about-big { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink) !important; }

/* EXPERIENCE */
.exp { list-style: none; margin-top: 32px; }
.exp li { display: grid; grid-template-columns: 260px 1fr 140px; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.exp-co { font-weight: 600; }
.exp-role { color: var(--muted); }
.exp-years { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }

/* CONTACT */
.contact { padding-bottom: 96px; }
.contact h2 { max-width: 760px; font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.04em; margin-bottom: 36px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }

.footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; padding-top: 28px; padding-bottom: 40px; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gut)) 1px no-repeat; }

/* CASE PAGE */
.case-head { padding-top: 40px; padding-bottom: 48px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 15px; margin-bottom: 40px; }
.back:hover { color: var(--ink); }
.case-head h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; max-width: 960px; margin-bottom: 22px; }
.case-sub { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: #2c2a26; max-width: 760px; margin-bottom: 44px; }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.case-meta dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.case-meta dd { font-weight: 500; }
.case-cover { background: var(--tint); border-radius: var(--radius); overflow: hidden; max-height: 640px; }
.case-cover img { width: 100%; object-fit: cover; object-position: top; }

.prose { padding-top: 72px; padding-bottom: 40px; }
.prose > * { max-width: 700px; margin-left: auto; margin-right: auto; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin-top: 72px; margin-bottom: 20px; }
.prose h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; margin-top: 44px; margin-bottom: 12px; }
.prose p { margin-bottom: 18px; color: #2c2a26; }
.prose ul, .prose ol { margin: 0 auto 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; color: #2c2a26; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  max-width: 900px; margin: 8px auto 56px; padding: 0;
}
.prose blockquote p:first-child {
  font-size: clamp(24px, 3vw, 36px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); font-weight: 500;
}
.prose blockquote p:last-child:not(:first-child) { font-size: 15px; color: var(--muted); }

.fig { max-width: 1120px !important; margin: 40px auto 48px !important; }
.fig-narrow { max-width: 860px !important; }
.fig-stack { display: flex; flex-direction: column; gap: 20px; }
.fig-row { display: flex; gap: 20px; align-items: flex-start; }
.fig-row .fig-item { min-width: 0; }
.fig-item { background: var(--tint); border-radius: 18px; overflow: hidden; }
.fig-item img { width: 100%; }
.fig-item.portrait { background: transparent; border-radius: 0; }
.fig-row .fig-item.portrait:only-child { flex: none !important; width: 100%; max-width: 380px; margin: 0 auto; }
.fig figcaption { font-size: 14px; color: var(--muted); max-width: 700px; margin: 14px auto 0; text-align: center; }

.next {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  border-top: 1px solid var(--line); padding: 48px 0 80px; margin-top: 40px;
}
.next-label { color: var(--muted); font-size: 15px; }
.next-title { font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.03em; font-weight: 600; transition: color .2s; }
.next:hover .next-title { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 900px) {
  :root { --gut: 16px; }
  .nav-links { gap: 18px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; padding-bottom: 64px; }
  .hero-photo { order: -1; justify-self: start; max-width: 260px; }
  .section { padding-top: 64px; }
  .section-head { flex-direction: column; align-items: start; gap: 12px; }
  .cards { grid-template-columns: 1fr; }
  .side-card { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .exp li { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .exp-years { text-align: right; }
  .exp-role { grid-column: 1 / -1; grid-row: 2; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .prose { padding-top: 48px; }
  .prose h2 { margin-top: 56px; }
  .fig-row { flex-direction: column; }
  .fig-row .fig-item { flex: none !important; width: 100%; }
  .fig-row .fig-item.portrait { max-width: 360px; margin: 0 auto; }
  .footer { flex-direction: column; gap: 6px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .nav-links a:nth-child(2) { display: none; }
}
