/* ===== Tokens ===== */
:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --mid: #6b6b6b;
  --light: #a1a1a1;
  --line: #d6d6d6;
  --fill: #f0f0f0;
  --fill-2: #e0e0e0;
  --fill-3: #cccccc;
  --gutter: clamp(16px, 5.5vw, 80px);
  --section: clamp(72px, 9vw, 120px);
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--fill { background: var(--fill); }
.section--dark { background: var(--ink); color: var(--bg); }
.muted { color: var(--mid); }

.h-xxl { font-size: clamp(56px, 9vw, 128px); font-weight: 900; line-height: .92; letter-spacing: -.02em; }
.h-xl { font-size: clamp(40px, 5.5vw, 76px); font-weight: 900; line-height: 1; letter-spacing: -.015em; }
.h-lg { font-size: clamp(32px, 4vw, 56px); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--mid); line-height: 1.55; }

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.head-row .lead { max-width: 420px; }

/* ===== Placeholder (wireframe image) ===== */
.ph {
  position: relative;
  background:
    linear-gradient(to top right, transparent calc(50% - .6px), var(--line) 50%, transparent calc(50% + .6px)),
    linear-gradient(to bottom right, transparent calc(50% - .6px), var(--line) 50%, transparent calc(50% + .6px)),
    var(--fill);
  border-radius: 16px;
  overflow: hidden;
}
.ph[data-label]::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--bg); color: var(--mid);
  font-size: 12px; padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.section--fill .ph { background-color: var(--fill-2); }

/* ===== Buttons & chips ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  border: 1.5px solid var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--disabled { background: transparent; color: var(--mid); border-color: var(--line); cursor: default; }
.btn--disabled:hover { transform: none; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--mid); font-size: 13px; background: transparent;
}
button.chip { cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
button.chip:hover { border-color: var(--ink); color: var(--ink); }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1440px; margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { font-weight: 900; font-size: 26px; text-decoration: none; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 40px; }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 20px; }
.nav__cv { padding: 10px 20px; }

.lang { display: flex; gap: 6px; }
.lang__dot {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent;
  font-size: 12px; font-weight: 600; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.lang__dot:hover { transform: scale(1.08); }
.lang__dot[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.nav__burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 15px; }
.nav__burger span:last-child { top: 23px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: clamp(56px, 7vw, 96px) 0 var(--section); }
.hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__welcome { font-size: clamp(24px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.01em; }
.hero__text .lead { max-width: 560px; }
.hero__avatar { aspect-ratio: 4 / 5; border-radius: 24px; }

/* ===== Intro ===== */
.intro__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: 64px; }
.intro__body { display: grid; grid-template-columns: 420px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.intro__photo { aspect-ratio: 1 / 1.05; border-radius: 24px; }

/* Accordion */
.acc { border-top: 1px solid var(--ink); }
.acc:last-child { border-bottom: 1px solid var(--ink); }
.acc__head {
  width: 100%; display: flex; align-items: center; gap: 24px;
  padding: 26px 0; background: none; border: 0; cursor: pointer; text-align: left;
}
.acc__num { font-size: 13px; color: var(--mid); font-variant-numeric: tabular-nums; }
.acc__title { flex: 1; font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.01em; }
.acc__icon { width: 20px; height: 20px; position: relative; flex: none; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc.is-open .acc__icon::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__content { display: grid; grid-template-columns: 1fr 240px; gap: 40px; padding: 0 0 28px 44px; }
.acc__content p { color: var(--mid); }
.acc__content .ph { aspect-ratio: 24 / 17; border-radius: 12px; }

/* ===== Why ===== */
.why__rows { border-radius: var(--radius); overflow: hidden; }
.why-row { background: var(--fill); }
.why-row:nth-child(2) { background: var(--fill-2); }
.why-row:nth-child(3) { background: var(--fill-3); }
.why-row .acc__head { padding: 22px clamp(20px, 3vw, 40px); gap: clamp(20px, 3vw, 40px); }
.why-row .acc__num { font-size: clamp(56px, 7vw, 96px); font-weight: 900; color: var(--ink); line-height: 1; }
.why-row .acc__title { font-size: clamp(20px, 2vw, 28px); font-weight: 700; }
.why-row { border: 0; }
.why-row:last-child { border: 0; }
.why-row .acc__content { padding: 0 clamp(20px, 3vw, 40px) 32px calc(clamp(20px, 3vw, 40px) + clamp(76px, 10vw, 150px)); grid-template-columns: 1fr 260px; }
.why-row .acc__content p { color: var(--ink); font-size: 17px; }
.team { margin-top: 24px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); }
.team h3 { font-size: clamp(32px, 4vw, 56px); font-weight: 900; letter-spacing: -.01em; margin-bottom: 24px; }
.traits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.trait { padding: 20px; background: var(--fill); border-radius: 12px; font-weight: 600; transition: background .25s, color .25s; }
.trait:hover { background: var(--ink); color: var(--bg); }

/* ===== Skills ===== */
.skills__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 48px; }
.skills__head .lead { max-width: 560px; }
.deck { position: relative; height: 520px; }
.skill {
  position: absolute; width: 250px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  transform: rotate(var(--r, 0deg));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.skill:hover { transform: rotate(0) translateY(-14px); box-shadow: 0 24px 40px -20px rgba(0,0,0,.25); z-index: 2; }
.skill__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--fill-2); display: grid; place-items: center; }
.skill__icon::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--mid); }
.skill .ph { height: 96px; border-radius: 10px; }
.skill h3 { font-size: 20px; font-weight: 700; }
.skill p { font-size: 14px; color: var(--mid); line-height: 1.45; }
.skill .learning { font-size: 12px; color: var(--mid); border-top: 1px dashed var(--line); padding-top: 10px; }
.skill:nth-child(1) { left: 2%; top: 90px; --r: -5deg; }
.skill:nth-child(2) { left: 22%; top: 20px; --r: 4deg; }
.skill:nth-child(3) { left: 42%; top: 110px; --r: -2deg; }
.skill:nth-child(4) { left: 61%; top: 25px; --r: 5deg; }
.skill:nth-child(5) { left: 80%; top: 95px; --r: -4deg; }

/* ===== Projects (cassettes) ===== */
.shelf { display: flex; align-items: flex-end; gap: 10px; }
.cassette {
  width: min(520px, 100%); flex: none;
  border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--bg);
}
.cassette.is-swap { animation: pop .45s var(--ease); }
@keyframes pop { from { transform: translateY(16px); opacity: .3; } to { transform: none; opacity: 1; } }
.cassette__label { display: flex; justify-content: space-between; padding: 12px 20px; background: var(--ink); color: var(--bg); font-size: 12px; letter-spacing: .06em; }
.cassette__cover { height: 230px; border-radius: 0; }
.cassette__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cassette__body h3 { font-size: 32px; font-weight: 900; letter-spacing: -.01em; }
.spines { display: flex; gap: 10px; align-items: flex-end; flex: 1; }
.spine {
  width: 84px; height: 460px; flex: none;
  border: 1px solid var(--ink); border-radius: 8px; background: var(--fill-2);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 8px 8px 24px; cursor: pointer;
  transition: transform .4s var(--ease), background .25s;
}
.spine:nth-child(2n) { background: var(--fill); height: 440px; }
.spine:nth-child(3n) { background: var(--fill-3); height: 475px; }
.spine:hover { transform: translateY(-18px); }
.spine.is-active { background: var(--ink); color: var(--bg); transform: translateY(-18px); }
.spine__num { width: 100%; background: var(--bg); color: var(--ink); border-radius: 4px; padding: 12px 8px; font-size: 13px; font-weight: 500; text-align: left; }
.spine__name { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: .01em; }
.shelf-base { height: 18px; background: var(--ink); border-radius: 4px; }
.projects__foot { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ===== Word of mouth ===== */
.wom__arrows { display: flex; gap: 12px; }
.round {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent;
  display: grid; place-items: center; cursor: pointer; font-size: 20px; transition: background .2s, color .2s;
}
.round:hover { background: var(--ink); color: var(--bg); }
.wom__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: none;
  margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
}
.wom__track::-webkit-scrollbar { display: none; }
.quote {
  flex: none; width: min(460px, 82vw); min-height: 380px; scroll-snap-align: start;
  background: var(--bg); border-radius: var(--radius); padding: 40px;
  display: flex; flex-direction: column; gap: 24px;
}
.quote__mark { font-size: 96px; font-weight: 900; line-height: .6; height: 40px; }
.quote p { font-size: 21px; font-weight: 500; line-height: 1.45; flex: 1; }
.person { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--fill-2); flex: none; }
.person strong { display: block; font-size: 16px; }
.person span { font-size: 13px; color: var(--mid); }
.wom__progress { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.wom__bar { flex: 1; height: 3px; background: var(--line); position: relative; overflow: hidden; }
.wom__bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); transition: width .3s; }
.wom__count { font-size: 12px; color: var(--mid); font-variant-numeric: tabular-nums; }

/* ===== Achievements ===== */
.ach { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.ach__card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s; }
.ach__card:hover { border-color: var(--ink); }
.ach__top { display: flex; gap: 12px; }
.ach__num { font-size: clamp(40px, 4vw, 60px); font-weight: 900; line-height: .9; }
.ach__top .ph { flex: 1; height: 180px; border-radius: 6px; }
.ach__card h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.ach__card p { font-size: 14px; color: var(--mid); }
.ach__date { margin-top: auto; font-size: 12px; color: var(--mid); letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* ===== Footer ===== */
.footer { background: var(--fill); padding: var(--section) 0 48px; }
.footer__title { font-size: clamp(40px, 6vw, 80px); font-weight: 900; line-height: .98; letter-spacing: -.02em; max-width: 1100px; margin-bottom: 64px; }
.footer__grid { display: grid; grid-template-columns: 420px 1fr; gap: clamp(32px, 6vw, 80px); }
.footer__info { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
.footer__email { font-size: clamp(22px, 2vw, 28px); font-weight: 600; text-decoration: none; display: block; margin-bottom: 6px; word-break: break-all; }
.socials { list-style: none; margin: 0; padding: 0; width: 100%; }
.socials a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; font-weight: 500; transition: padding .25s var(--ease); }
.socials a:hover { padding-left: 8px; }
.form { background: var(--bg); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.form h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: var(--mid); }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; resize: vertical;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form__end { display: flex; justify-content: flex-end; }
.footer__end { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line); }
.footer__logo { font-size: clamp(88px, 16vw, 220px); font-weight: 900; line-height: .78; letter-spacing: -.04em; }
.footer__top { font-size: 15px; font-weight: 500; text-decoration: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 14px 20px; border-radius: 12px;
  font-size: 14px; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease); z-index: 100;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ===== Case study ===== */
.crumbs { display: flex; justify-content: space-between; margin-bottom: 40px; }
.crumbs a { text-decoration: none; font-weight: 500; font-size: 15px; }
.case-hero__title { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: end; margin-bottom: 48px; }
.case-hero__title .chips { margin-bottom: 20px; }
.case-cover { aspect-ratio: 16 / 7; border-radius: 24px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.facts > div { padding: 32px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: 12px; color: var(--mid); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.facts dd { margin: 0; font-size: 24px; font-weight: 700; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.step3 { background: var(--fill); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.step3 h3 { font-size: 30px; font-weight: 700; }
.step3 p { color: var(--mid); }
.step3--dark { background: var(--ink); color: var(--bg); }
.step3--dark p { color: var(--fill-2); }
.stats { display: flex; gap: 32px; margin-top: auto; }
.stats strong { display: block; font-size: 44px; font-weight: 900; line-height: 1; }
.stats span { font-size: 13px; color: var(--light); }
.ctx { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 80px); }
.ctx__nav { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.ctx__nav a { text-decoration: none; color: var(--mid); display: flex; align-items: center; gap: 12px; }
.ctx__nav a::before { content: ''; width: 12px; height: 2px; background: var(--light); transition: width .3s; }
.ctx__nav a:hover { color: var(--ink); }
.ctx__nav a:hover::before { width: 24px; background: var(--ink); }
.ctx__main { display: flex; flex-direction: column; gap: 72px; }
.ctx__main h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; line-height: 1.3; margin-bottom: 20px; }
.ctx__main .ph { aspect-ratio: 16 / 8; margin-top: 24px; }
.list-rows > div { display: flex; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.list-rows .n { font-size: 13px; color: var(--mid); }
.list-rows h4 { font-size: 20px; font-weight: 600; }
.list-rows p { color: var(--mid); font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpis > div { background: var(--bg); border-radius: 16px; padding: 28px; }
.kpis strong { display: block; font-size: 52px; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.kpis span { font-size: 14px; color: var(--mid); }
.timeline { border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding-top: 24px; margin-bottom: 40px; }
.timeline > div { display: flex; flex-direction: column; gap: 10px; position: relative; }
.timeline > div::before { content: ''; position: absolute; top: -32px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.timeline h4 { font-size: 22px; font-weight: 700; }
.timeline p { font-size: 14px; color: var(--mid); }
.timeline .ph { height: 180px; border-radius: 10px; margin-top: 6px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gallery .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.gallery .ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.big-quote { font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.15; margin-bottom: 56px; }
.learnings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.learnings > div { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.learnings strong { font-size: 40px; font-weight: 900; }
.learnings h4 { font-size: 20px; font-weight: 700; }
.learnings p { color: var(--mid); font-size: 15px; }
.next {
  display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center;
  border: 1.5px solid var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 48px); text-decoration: none;
  transition: background .3s, color .3s;
}
.next:hover { background: var(--ink); color: var(--bg); }
.next span { font-size: 16px; font-weight: 500; }
.next strong { display: block; font-size: clamp(44px, 6vw, 80px); font-weight: 900; line-height: 1; margin-top: 12px; }
.next .ph { aspect-ratio: 3 / 2; }

/* ===== Playground ===== */
.pg-head { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 32px; }
.pg-head__title { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.pg-head__title .lead { max-width: 380px; }
.pg-bar { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 18px 0; }
.masonry { columns: 3 320px; column-gap: 20px; padding-bottom: var(--section); }
.piece { break-inside: avoid; margin-bottom: 24px; cursor: zoom-in; display: block; width: 100%; border: 0; background: none; padding: 0; text-align: left; }
.piece .ph, .piece .note { transition: transform .4s var(--ease); }
.piece:hover .ph, .piece:hover .note { transform: scale(.98); }
.piece__meta { display: flex; justify-content: space-between; padding-top: 10px; font-size: 15px; font-weight: 600; }
.piece__meta span { font-weight: 400; color: var(--mid); font-size: 13px; }
.piece__meta span:first-child { font-weight: 600; color: var(--ink); font-size: 15px; }
.note { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 28px; font-size: 24px; font-weight: 700; line-height: 1.25; min-height: 240px; display: flex; align-items: flex-end; }
.piece--static { cursor: default; }
.lightbox {
  border: 0; padding: 0; border-radius: 24px; width: min(1200px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  overflow: hidden; background: var(--bg); color: var(--ink);
}
.lightbox::backdrop { background: rgba(26, 26, 26, .55); backdrop-filter: blur(4px); }
.lightbox__inner { display: grid; grid-template-columns: 1.6fr 1fr; min-height: 520px; }
.lightbox__inner > .ph { border-radius: 0; min-height: 320px; }
.lightbox__info { padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; color: var(--mid); font-size: 13px; }
.lightbox__close { width: 40px; height: 40px; border: 0; background: none; font-size: 24px; cursor: pointer; }
.lightbox__info h2 { font-size: 36px; font-weight: 900; }
.lightbox__nav { margin-top: auto; display: flex; justify-content: space-between; }
.lightbox__nav button { background: none; border: 0; font-weight: 500; cursor: pointer; padding: 8px 0; }

/* ===== About ===== */
.about-hero { display: grid; grid-template-columns: 1fr 600px; gap: 40px; align-items: center; padding-top: clamp(48px, 6vw, 80px); padding-bottom: var(--section); }
.about-hero > div:first-child { display: flex; flex-direction: column; gap: 28px; }
.collage { position: relative; height: 560px; width: 100%; max-width: 600px; }
.polaroid {
  position: absolute; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px 12px 16px;
  transform: rotate(var(--r, 0deg)); transition: transform .45s var(--ease); box-shadow: 0 10px 30px -18px rgba(0,0,0,.25);
}
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.polaroid .ph { border-radius: 2px; }
.polaroid figcaption { padding-top: 12px; font-weight: 500; }
.collage .polaroid:nth-child(1) { left: 0; top: 40px; --r: -7deg; }
.collage .polaroid:nth-child(1) .ph { width: 300px; height: 360px; }
.collage .polaroid:nth-child(2) { right: 12px; top: 0; --r: 6deg; }
.collage .polaroid:nth-child(2) .ph { width: 260px; height: 300px; }
.collage .polaroid:nth-child(3) { left: 250px; top: 300px; --r: -3deg; }
.collage .polaroid:nth-child(3) .ph { width: 240px; height: 220px; }
.from { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.from .ph { aspect-ratio: 1; border-radius: var(--radius); }
.from > div:last-child { display: flex; flex-direction: column; gap: 24px; }
.from p { color: var(--mid); font-size: 17px; }
.hobbies { display: flex; justify-content: center; gap: clamp(24px, 6vw, 100px); flex-wrap: wrap; padding-top: 16px; }
.hobbies .polaroid { position: static; }
.hobbies .polaroid .ph { width: 260px; height: 260px; }
.hobbies .polaroid:nth-child(1) { --r: -4deg; }
.hobbies .polaroid:nth-child(2) { --r: 3deg; margin-top: -16px; }
.hobbies .polaroid:nth-child(3) { --r: -2deg; margin-top: 20px; }
.journey > div { display: grid; grid-template-columns: 120px 1fr 280px; gap: 40px; padding: 28px 0; border-top: 1px solid var(--ink); align-items: center; }
.journey > div:last-child { border-bottom: 1px solid var(--ink); }
.journey .y { color: var(--mid); font-variant-numeric: tabular-nums; }
.journey strong { font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.journey .p { color: var(--mid); }
.goals { display: grid; grid-template-columns: 1fr 460px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.goals ol { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: g; }
.goals li { counter-increment: g; display: flex; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; }
.goals li::before { content: '0' counter(g); font-size: 40px; font-weight: 900; color: var(--light); min-width: 56px; }
.goals .ph { aspect-ratio: 46 / 52; border-radius: var(--radius); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.fact { background: #333; border-radius: 16px; padding: 28px; font-size: 20px; font-weight: 700; line-height: 1.3; transition: transform .3s var(--ease); }
.fact:nth-child(3n + 1) { background: var(--bg); color: var(--ink); }
.fact:hover { transform: translateY(-4px) rotate(-1deg); }
.cta-box { border: 1.5px solid var(--ink); border-radius: 32px; padding: clamp(40px, 7vw, 80px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta-box .lead { max-width: 560px; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .deck { height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .skill { position: static; width: auto; --r: 0deg !important; }
  .ach { grid-template-columns: repeat(3, 1fr); }
  .about-hero { grid-template-columns: 1fr; }
  .collage { height: 560px; max-width: 600px; }
  .traits { grid-template-columns: repeat(3, 1fr); }
  .spine { width: 64px; }
}

@media (max-width: 960px) {
  .nav__links {
    position: fixed; inset: 71px 0 auto 0; background: var(--bg); flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav__links a { padding: 16px 0; font-size: 22px; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__burger { display: block; }
  .nav__cv { display: none; }
  .hero__grid, .intro__top, .intro__body, .footer__grid, .case-hero__title, .ctx, .next, .from, .goals, .lightbox__inner { grid-template-columns: 1fr; }
  .hero__avatar { max-width: 420px; }
  .intro__photo { max-width: 420px; }
  .acc__content, .why-row .acc__content { grid-template-columns: 1fr; padding-left: 0; padding-right: 0; }
  .why-row .acc__content { padding: 0 clamp(20px, 3vw, 40px) 28px; }
  .shelf { flex-direction: column; align-items: stretch; }
  .cassette { width: 100%; }
  .spines { overflow-x: auto; padding-top: 24px; }
  .spine { height: 300px !important; }
  .ctx__nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts > div { border-top: 1px solid var(--line); }
  .steps3, .learnings, .kpis { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 0 28px; gap: 32px; }
  .timeline > div::before { top: 4px; left: -36px; }
  .journey > div { grid-template-columns: 80px 1fr; gap: 8px 24px; }
  .journey .p { grid-column: 2; }
}

@media (max-width: 640px) {
  .deck, .ach, .traits, .facts-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .lang__dot { width: 34px; height: 34px; font-size: 11px; }
  .nav__actions { gap: 10px; }
  .collage { height: 440px; }
  .collage .polaroid:nth-child(1) .ph { width: 200px; height: 250px; }
  .collage .polaroid:nth-child(2) { right: 8px; }
  .collage .polaroid:nth-child(2) .ph { width: 160px; height: 200px; }
  .collage .polaroid:nth-child(3) { left: 30%; top: 240px; }
  .collage .polaroid:nth-child(3) .ph { width: 170px; height: 150px; }
  .hobbies .polaroid .ph { width: 220px; height: 220px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-left: 0; padding-left: 0; }
  .footer__end { flex-direction: column; align-items: flex-start; gap: 24px; }
}
