/* Yiğit Can Muştu — portfolio. Tokens match the Figma portfolio. */
:root {
  --bg: #F3F2EE;
  --surface: #FFFFFF;
  --surface-2: #F7F7F5;
  --ink: #14161A;
  --body: #3A3D42;
  --muted: #6B6F76;
  --line: #DAD8D2;
  --accent: #4C3FE0;
  --accent-soft: #EFEEFE;
  --ok: #1E7F4F;
  --ok-soft: #E8F3EC;
  --warn: #9A6412;
  --warn-soft: #FBF3E6;
  --hot-soft: #FCEDEB;
  --hot: #B42318;
  --radius: 20px;
  --shadow: 0 24px 60px -28px rgba(20, 22, 26, .35), 0 0 0 1px rgba(20, 22, 26, .06);
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.wrap.wide { max-width: 1360px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.h4 { font-family: var(--sans); font-weight: 600; font-size: 16.5px; line-height: 1.35; margin-bottom: 6px; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 64ch; color: var(--body); }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.label { font: 500 11.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.strong { color: var(--ink); font-weight: 500; }
.num { font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .05em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(243, 242, 238, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 11px/1 var(--mono); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); font-size: 14.5px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--accent); }
.nav .lang { font: 500 12px/1 var(--mono); letter-spacing: .06em; border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px; background: var(--surface); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; border: 1px solid var(--ink); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.link-arrow, .link-light { font: 500 13px/1.4 var(--mono); letter-spacing: .04em; text-decoration: none; }
.link-light { color: #C9CDD6; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 2px; }
.link-light:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero .display { max-width: 21ch; margin-bottom: 26px; }
.display em { font-style: normal; color: var(--accent); }
.hero .eyebrow { color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(30, 127, 79, .45); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 127, 79, .45); } 70% { box-shadow: 0 0 0 10px rgba(30, 127, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 127, 79, 0); } }
.brands { margin-top: clamp(48px, 7vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); }
.brands ul { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); letter-spacing: -0.01em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); margin-bottom: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(20, 22, 26, .45); border-color: #CBC8C0; }
.card[hidden] { display: none; }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.kicker { font: 500 11.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.card .h3 { margin-bottom: 10px; }
.card-sum { color: var(--body); font-size: 15px; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.chips { display: flex; gap: 8px; margin-top: 18px; }
.card-cta { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink); }
.card:hover .card-cta { color: var(--accent); }
.card-featured { grid-column: 1 / -1; flex-direction: row; }
.card-featured .media { flex: 1.35; aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 1px solid var(--line); }
.card-featured .card-body { flex: 1; padding: clamp(26px, 3vw, 44px); justify-content: center; }
.card-featured .card-foot { margin-top: 24px; }
.card-featured .h3 { font-size: clamp(24px, 2.4vw, 32px); }

/* Home: work groups and hero stats */
.work-group + .work-group { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.work-group[hidden] { display: none; }
.group-head { max-width: 640px; margin-bottom: 24px; }
.group-head .eyebrow { margin-bottom: 8px; }
.group-head .h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 8px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 56px); max-width: 860px; }
.hero-stats .fact { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.hero-stats .fact { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
.hero-stats .fact-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hero-stats .fact-ic svg { width: 20px; height: 20px; }
.hero-stats .fact-v { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.hero-stats .fact p:last-child { font-size: 14px; color: var(--muted); }
.about-single { grid-template-columns: minmax(0, 760px); }
.nav .nav-cv { font-size: 13.5px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; }
.nav .nav-cv:hover { color: #fff; background: #000; }

/* ---------- Media compositions ---------- */
/* Inline style="--bg:…" on a media block sets its panel colour. */
.media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.media-single img { position: absolute; left: 8%; top: 11%; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); transition: transform .6s ease; }
.card:hover .media-single img { transform: translate(-6px, -6px); }
.media-detail img { position: absolute; left: 50%; top: 50%; width: 86%; height: auto; transform: translate(-50%, -50%); border-radius: 12px; box-shadow: var(--shadow); transition: transform .6s ease; }
.card:hover .media-detail img { transform: translate(-50%, -50%) scale(1.03); }
.card-featured .media-detail img { width: 80%; }
.media-crop img { position: absolute; left: 7%; top: 9%; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); object-fit: initial; }
.hero-media[style], .phones-row[style] { background: var(--bg); }

.phone { border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--shadow); aspect-ratio: 9 / 19.5; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.browser > i { flex: none; display: block; height: 24px; background: var(--surface-2) radial-gradient(circle, #E06B5F 3.5px, transparent 4px) 12px 50% / 12px 12px no-repeat; border-bottom: 1px solid var(--line); position: relative; }
.browser > i::after { content: ""; position: absolute; left: 30px; top: 50%; width: 32px; height: 8px; transform: translateY(-50%); background: radial-gradient(circle, #E8B44A 3.5px, transparent 4px) 0 50% / 12px 12px no-repeat, radial-gradient(circle, #5DB46C 3.5px, transparent 4px) 14px 50% / 12px 12px no-repeat; }
.browser img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; }

.media-phones { display: flex; align-items: center; justify-content: center; gap: 4%; padding: 7% 6%; }
.media-phones .phone { width: 25%; }
.media-phones .phone:nth-child(2) { transform: translateY(-5%); }
.media-dp .browser { position: absolute; left: 7%; top: 10%; width: 76%; aspect-ratio: 16 / 10.5; }
.media-dp .phone { position: absolute; right: 6%; bottom: 7%; width: 21%; border-radius: 18px; }
.media-two .b1 { position: absolute; left: 6%; top: 9%; width: 72%; aspect-ratio: 16 / 10.5; }
.media-two .b2 { position: absolute; right: 5%; bottom: 7%; width: 50%; aspect-ratio: 4 / 3.25; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-grid .h2 { margin-bottom: 24px; max-width: 18ch; }
.about-grid p { font-size: 17px; max-width: 62ch; }
.facts { display: grid; gap: 14px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.fact p { margin: 0; }
.fact-v { font-family: var(--display); font-weight: 600; font-size: 30px; color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 4px !important; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); margin-top: clamp(48px, 6vw, 72px); padding-top: 36px; border-top: 1px solid var(--line); }
.ticks li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(-45deg); }
.exp li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.exp li p { margin: 0; font-size: 15px; }
.exp-date { font: 500 12px/1.6 var(--mono); color: var(--muted); letter-spacing: .03em; }
.exp-co { color: var(--accent) !important; font-weight: 500; margin-bottom: 4px !important; }
.tools-label { margin-top: 28px; }
.process-wrap { margin-top: clamp(48px, 6vw, 72px); }

/* ---------- Contact / footer ---------- */
.contact { background: var(--ink); color: #B9BDC6; }
.contact .display { color: #fff; max-width: 16ch; margin-bottom: 22px; }
.contact .lead { color: #B9BDC6; }
.contact .eyebrow { color: #8FA3FF; }
.site-footer { border-top: 1px solid var(--line); font: 400 12.5px/1.5 var(--mono); color: var(--muted); }
.contact + .site-footer, main:has(.contact) + .site-footer { border-top: 0; background: var(--ink); color: #80858F; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 26px; }

/* ---------- Case page ---------- */
.case-head { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 4vw, 48px); }
.back { display: inline-block; font: 500 13px/1 var(--mono); text-decoration: none; color: var(--muted); margin-bottom: clamp(32px, 5vw, 56px); }
.back:hover { color: var(--accent); }
.case-head .display { max-width: 18ch; margin-bottom: 22px; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.meta dd { color: var(--ink); font-weight: 500; font-size: 15px; }

.hero-media { border-radius: 24px; overflow: hidden; }
.hero-panel { background: var(--bg); padding: clamp(20px, 5vw, 72px); }
.hero-panel img { border-radius: 14px; box-shadow: var(--shadow); }
.hero-media > img, .hero-media > .zoom img { width: 100%; }
.hero-crop { position: relative; aspect-ratio: 16 / 8.5; padding: 0; }
.hero-crop .zoom { position: absolute; left: 6%; top: 9%; width: 100%; }
.hero-crop img { border-radius: 14px; box-shadow: var(--shadow); }
.hero-phones { display: flex; justify-content: center; align-items: center; gap: 3%; padding: clamp(28px, 5vw, 64px) 4%; }
.hero-phones .phone { width: 19%; max-width: 280px; }
.hero-phones .phone:nth-child(even) { transform: translateY(6%); }
.hero-dp { position: relative; aspect-ratio: 16 / 8.6; }
.hero-dp .browser { position: absolute; left: 5%; top: 9%; width: 70%; bottom: -4%; }
.hero-dp .phone { position: absolute; right: 7%; top: 14%; width: 17%; border-radius: 24px; }
.hero-browser { padding: clamp(20px, 4vw, 56px); background: var(--bg); }
.hero-browser .browser { aspect-ratio: 16 / 9.2; }

.case-body { max-width: 1200px; }
.block { margin-top: clamp(64px, 8vw, 104px); }
.block-head { max-width: 780px; margin-bottom: 28px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 20px; color: var(--ink); margin: 24px 0 0; }
.callout.conf { margin-top: clamp(40px, 5vw, 56px); background: var(--accent-soft); border-color: #D9D5FB; border-left-color: var(--accent); color: var(--body); font-size: 15px; }
.callout.warn { background: var(--warn-soft); border-color: #EBD9B8; border-left-color: var(--warn); }
.callout.ok { background: var(--ok-soft); border-color: #BFDCCB; border-left-color: var(--ok); }

.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sum-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.sum-item p:last-child { margin: 0; color: var(--ink); }

.rows .row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.rows dt { margin: 4px 0 0; }
.rows dd { color: var(--ink); font-size: 18px; line-height: 1.5; max-width: 62ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.persona, .option { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.persona .h3 { font-size: 20px; margin-bottom: 8px; }
.persona .label { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pain { color: var(--ink); font-weight: 500; margin: 0; }

.hypo li { display: grid; grid-template-columns: 48px 1fr 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.hypo li:last-child { border-bottom: 1px solid var(--line); }
.hypo p { margin: 0; }
.hypo .num { padding-top: 26px; }

.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: relative; }
.flow li p { font-size: 14.5px; margin-bottom: 14px; }
.flow li .num { display: block; margin-bottom: 14px; }
.flow li.hot { background: var(--hot-soft); border-color: #F2C9C4; }
.effort { display: flex; gap: 4px; }
.effort b, .effort i { width: 18px; height: 6px; border-radius: 3px; background: var(--ink); }
.effort i { background: var(--line); }
.flow li.hot .effort b { background: var(--hot); }
.note { margin-top: 16px; font-size: 14.5px; max-width: 80ch; }
.flow-new li.new { background: var(--accent-soft); border: 1.5px solid var(--accent); }
.badge { display: inline-block; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 5px 8px; border-radius: 999px; margin-bottom: 12px; }
.option .label .badge { margin: 0 0 0 6px; vertical-align: 1px; }

.hmw-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; }
.hmw li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.hmw li:last-child { border-bottom: 1px solid var(--line); }
.hmw li p { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.hmw .num { padding-top: 6px; }
.metrics-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 22px 20px; }
.metrics-box li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.metrics-box b { font-size: 18px; color: var(--ok); }
.metrics-box p { margin: 16px 0 0; font-size: 14px; }

.option.chosen { border: 2px solid var(--accent); }
.pro { color: var(--ok); margin: 14px 0 6px; font-size: 15px; }
.con { color: var(--hot); margin: 0; font-size: 15px; }

.panel { background: var(--bg); border-radius: 20px; padding: clamp(14px, 4vw, 56px); }
.panel > .zoom img, .panel > img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.panel .browser img { width: 100%; }
.shot figcaption { margin-top: 14px; font-size: 15px; max-width: 80ch; color: var(--body); }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.notes li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.notes p { font-size: 15px; margin: 0; }
.pin { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 500 12px/1 var(--mono); }

.tasks { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 15.5px; }
.tasks th { text-align: left; font: 500 11.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 20px; background: var(--surface-2); }
.tasks td { padding: 16px 20px; border-top: 1px solid var(--line); color: var(--ink); }
.tasks td:last-child { font-family: var(--mono); font-size: 14px; color: var(--ok); white-space: nowrap; }
.tasks .num { margin-right: 10px; }
.iter { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.metric p { margin: 0; }
.metric-v { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); color: var(--accent); letter-spacing: -0.02em; margin-bottom: 6px !important; }
.learn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.learn li { border-top: 2px solid var(--ink); padding-top: 16px; }
.learn p { font-size: 15px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 6px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.steps li .num { display: block; margin-bottom: 18px; }
.steps li p { font-size: 14.5px; margin: 0; }

.phones-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); padding: clamp(24px, 4vw, 56px); border-radius: 24px; }
.phones-row figcaption { text-align: center; margin-top: 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .05em; color: var(--muted); }
.phones-row .zoom { display: block; height: 100%; }

.ss-grid { display: grid; grid-template-columns: 1fr 1fr .46fr; gap: 20px; align-items: start; }
.ss .scroll { height: clamp(420px, 52vw, 640px); overflow-y: auto; display: block; overscroll-behavior: contain; }
.ss .browser.scroll > i { position: sticky; top: 0; z-index: 1; }
.ss .scroll img { height: auto; object-fit: initial; }
.ss figcaption { margin-top: 12px; font-size: 14px; color: var(--ink); }

.gallery { display: grid; gap: clamp(40px, 5vw, 64px); }
.gallery .browser img { aspect-ratio: auto; }

.next { margin-top: clamp(80px, 10vw, 128px); padding-top: 32px; padding-bottom: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.next-link { display: flex; justify-content: space-between; align-items: center; gap: 24px; text-decoration: none; }
.next-link .h2 { max-width: 22ch; transition: color .2s; }
.next-link .arrow { font-size: 36px; color: var(--ink); transition: transform .2s; }
.next-link:hover .h2, .next-link:hover .arrow { color: var(--accent); }
.next-link:hover .arrow { transform: translateX(6px); }

.zoom { display: block; cursor: zoom-in; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; }
.lightbox::backdrop { background: rgba(12, 13, 16, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 12px; background: #fff; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-featured { flex-direction: column; }
  .card-featured .media { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ss-grid { grid-template-columns: 1fr 1fr; }
  .ss-phone { grid-column: 1 / -1; max-width: 320px; }
}
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .about-grid, .about-cols, .hmw-grid, .iter { grid-template-columns: 1fr; }
  .summary, .grid-3, .notes, .metrics, .learn { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows .row { grid-template-columns: 1fr; gap: 6px; }
  .hypo li { grid-template-columns: 32px 1fr; }
  .hypo li > div:last-child { grid-column: 2; }
  .hypo .num { padding-top: 24px; }
  .phones-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-dp { aspect-ratio: 4 / 3.4; }
  .hero-dp .phone { width: 24%; }
  .hero-phones .phone { width: 23%; }
  .exp li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .nav a:not(.lang):not([href$="#contact"]):not(.nav-cv) { display: none; }
  .flow, .steps, .steps-5, .ss-grid { grid-template-columns: 1fr; }
  .ss-phone { max-width: none; }
  .hero-phones { gap: 2%; padding-inline: 3%; }
  .tasks td, .tasks th { padding: 12px 14px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
