/* muhammedakkus.com — v2 */

@font-face { font-family: "Bricolage"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plex"; font-style: normal; font-display: swap; font-weight: 100 700; src: url(/fonts/ibm-plex-sans-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-display: swap; font-weight: 100 700; src: url(/fonts/ibm-plex-sans-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plex"; font-style: italic; font-display: swap; font-weight: 100 700; src: url(/fonts/ibm-plex-sans-latin-wght-italic.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F; }
@font-face { font-family: "Plex"; font-style: italic; font-display: swap; font-weight: 100 700; src: url(/fonts/ibm-plex-sans-latin-ext-wght-italic.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+1E00-1E9F; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2190-21FF,U+25E6; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+1E00-1E9F; }

:root {
  --bg: #F1F1EE;
  --bg-2: #E8E8E3;
  --surface: #F8F8F6;
  --ink: #17181C;
  --ink-2: #44474E;
  --muted: #74777E;
  --line: #D5D5CF;
  --dot: rgba(23, 24, 28, .07);
  --accent: #E2552D;
  --accent-soft: rgba(226, 85, 45, .1);
  --on-ink: #F1F1EE;
  --display: "Bricolage", "Plex", system-ui, sans-serif;
  --sans: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --label-col: 200px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111214;
  --bg-2: #18191C;
  --surface: #16171A;
  --ink: #ECEBE6;
  --ink-2: #BDBDB7;
  --muted: #8B8E94;
  --line: #2B2D32;
  --dot: rgba(236, 235, 230, .06);
  --accent: #FF6A43;
  --accent-soft: rgba(255, 106, 67, .12);
  --on-ink: #111214;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 46px; height: auto; }
.brand-name { font: 600 16.5px/1 var(--display); letter-spacing: -.01em; }
.mark .caret { stroke: var(--accent); animation: caret 1.15s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav-n { font: 400 10.5px var(--mono); color: var(--accent); }

.tools { display: flex; align-items: center; gap: 8px; }
.tool { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; transition: border-color .2s, transform .2s; }
.tool:hover { border-color: var(--ink); }
.flag-btn svg { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang { position: relative; }
.lang-pop {
  position: absolute; right: 0; top: calc(100% + 10px);
  display: flex; gap: 8px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.35);
}
.lang-pop[hidden] { display: none; }
.flag-chip { width: 52px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, background .2s, transform .2s; }
.flag-chip svg { width: 26px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag-chip:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.flag-chip[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.menu-btn { display: none; }
.menu-btn { flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }

/* ---------- type ---------- */
.display {
  font: 500 clamp(2.4rem, 5.4vw, 4.75rem)/1.04 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.display em, .display-2 em { font-style: normal; color: var(--accent); font-weight: 340; }
.display-2 { font: 500 clamp(2.1rem, 4.4vw, 3.8rem)/1.05 var(--display); letter-spacing: -.028em; font-variation-settings: "opsz" 96; text-wrap: balance; }
.h2 { font: 520 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 60ch; margin-top: 24px; }
.prose p + p { margin-top: 1em; }
.prose.big { font: 400 clamp(1.15rem, 1.9vw, 1.45rem)/1.55 var(--sans); color: var(--ink); max-width: 46ch; letter-spacing: -.005em; }
.prose { max-width: 66ch; color: var(--ink-2); margin-top: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); margin-bottom: 28px; padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; font: 500 15.5px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; background: none; color: var(--ink); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-solid { background: var(--ink); color: var(--on-ink); }
.btn-solid:hover { background: var(--accent); color: #fff; }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.btn-ghost { padding-inline: 14px; color: var(--ink-2); }
.btn-ghost:hover { color: var(--accent); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 9vw, 120px) clamp(56px, 8vw, 110px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 40px 0 0; color: var(--muted); }
.hero-meta div { display: flex; gap: 8px; }
.hero-meta dt { color: var(--accent); }
.hero-meta dd { margin: 0; }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 540px; justify-self: end; }
.hero-art canvas { width: 100%; height: 100%; }
.hero-art::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line); pointer-events: none; }

/* ---------- sections ---------- */
.section { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 56px); padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.label { position: sticky; top: 100px; align-self: start; display: flex; gap: 12px; font: 400 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.label-n { color: var(--accent); }
.section-body { min-width: 0; }
.stack > * + * { margin-top: 20px; }
.page-head { padding-block: clamp(48px, 8vw, 110px) clamp(36px, 5vw, 64px); }
.page-head .display { max-width: 16ch; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.stat { padding: 22px 18px 0 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); }
.stat-v { font: 500 clamp(1.8rem, 3.2vw, 2.6rem)/1 var(--display); letter-spacing: -.025em; }
.stat-l { font: 400 13px/1.4 var(--mono); color: var(--muted); }

/* grid cells */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.cell { padding: 22px 0 34px; border-top: 1px solid var(--line); }
.cell-n { display: block; color: var(--accent); margin-bottom: 18px; }
.cell h3 { font: 520 1.3rem/1.2 var(--display); letter-spacing: -.015em; margin-bottom: 8px; }
.cell p { color: var(--ink-2); font-size: 15.5px; }

/* rows (projects) */
.rows { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; padding: 26px 0; border-top: 1px solid var(--line); align-items: start; transition: background .3s; }
.row-n { color: var(--muted); padding-top: 6px; }
.row-title { font: 520 clamp(1.25rem, 2.1vw, 1.65rem)/1.2 var(--display); letter-spacing: -.02em; }
.row-title a { text-decoration: none; }
.row-title .ic { display: inline-block; vertical-align: baseline; margin-left: 6px; width: 16px; height: 16px; opacity: .45; transform: translateY(2px); transition: transform .3s var(--ease), opacity .3s; }
.row:hover .row-title .ic { opacity: 1; transform: translate(3px, -1px); color: var(--accent); }
.row-meta { color: var(--muted); margin-top: 8px; }
.row-side { color: var(--ink-2); font-size: 15.5px; }
.row-text { color: var(--ink-2); margin-top: 14px; max-width: 64ch; }
.rows-full .row { grid-template-columns: 52px minmax(0, 1fr) auto; }
.row-link { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding-top: 6px; white-space: nowrap; }
.row-link .ic { width: 14px; height: 14px; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 500; text-decoration: none; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { font: 400 12px/1 var(--mono); padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--surface); }
.pill { font: 400 11px/1 var(--mono); padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; vertical-align: 2px; letter-spacing: .04em; }

/* publications */
.pub { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.pub-kind { color: var(--accent); }
.pub-title { font: 520 clamp(1.25rem, 2.2vw, 1.75rem)/1.25 var(--display); letter-spacing: -.02em; margin-top: 14px; max-width: 46ch; text-wrap: pretty; }
.pub-venue { color: var(--ink-2); margin-top: 12px; }
.pub-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px; margin: 24px 0 0; padding-top: 20px; border-top: 1px dashed var(--line); }
.pub-meta dt { font: 400 11.5px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pub-meta dd { margin: 4px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.pub-note { margin-top: 14px; color: var(--muted); font-size: 14.5px; font-style: italic; }
.pub-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pub-actions .btn { height: 44px; }

/* timeline */
.timeline { border-bottom: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.tl-when { color: var(--muted); padding-top: 5px; }
.tl-role { font: 520 1.35rem/1.25 var(--display); letter-spacing: -.015em; }
.tl-org { margin-top: 6px; font-weight: 500; }
.tl-org a { text-decoration: none; }
.tl-text { margin-top: 12px; color: var(--ink-2); max-width: 66ch; }

/* log list */
.log li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 6px 20px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.log li:last-child { border-bottom: 1px solid var(--line); }
.log-y { color: var(--accent); }
.log-t a { text-decoration: none; }
.log-d { font-size: 14px; text-align: right; }

/* cv */
.cv-card { display: flex; gap: 20px; align-items: center; margin-top: 36px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); max-width: 760px; }
.cv-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; filter: grayscale(.2); }
.cv-name { font: 560 1.4rem/1.2 var(--display); letter-spacing: -.02em; }
.cv-contact { margin-top: 8px; color: var(--muted); line-height: 1.8; }
.cv-contact a { color: var(--ink-2); }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.skill h3 { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 400; }
.langs li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 18px; }
.langs li:last-child { border-bottom: 1px solid var(--line); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field span { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.5 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0 12px; transition: border-color .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #C2410C; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: #15803D; }
.form-status.err { color: #C2410C; }
:root[data-theme="dark"] .form-status.ok { color: #4ADE80; }
:root[data-theme="dark"] .form-status.err { color: #FB923C; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-side { display: grid; gap: 12px; align-content: start; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.contact-side .mono { margin-top: 10px; }
.contact-mail { font: 520 clamp(1.15rem, 1.8vw, 1.45rem)/1.3 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-mail a { text-decoration: none; }
.link-list li a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; padding: 4px 0; }
.link-list .ic { width: 14px; height: 14px; }

/* faq */
.faq { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 8px 24px; align-items: baseline; padding: 24px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-n { color: var(--muted); }
.faq-q { font: 520 clamp(1.15rem, 1.9vw, 1.45rem)/1.3 var(--display); letter-spacing: -.015em; }
.faq-item summary:hover .faq-q { color: var(--accent); }
.faq-i { position: relative; width: 14px; height: 14px; align-self: center; }
.faq-i::before, .faq-i::after { content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.faq-i::after { transform: rotate(90deg); }
.faq-item[open] .faq-i::after { transform: rotate(0); }
.faq-a { padding: 0 48px 28px 76px; color: var(--ink-2); max-width: 78ch; }
@media (max-width: 640px) { .faq-item summary { grid-template-columns: 34px minmax(0, 1fr) 18px; } .faq-a { padding: 0 0 24px 58px; } }
@media print { .faq-item { break-inside: avoid; } }

/* cta */
.cta-block .display-2 { max-width: 14ch; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-in { padding-block: clamp(48px, 7vw, 88px) 36px; }
.footer-mail { display: inline-block; font: 500 clamp(1.3rem, 5.6vw, 4.2rem)/1.05 var(--display); letter-spacing: -.04em; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease), color .3s; padding-bottom: 6px; }
.footer-mail:hover { background-size: 100% 2px; color: var(--ink); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 48px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.to-top { text-decoration: none; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mark .caret, .pulse { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  :root { --label-col: 150px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { position: fixed; inset: 72px 0 auto 0; height: calc(100dvh - 72px); background: var(--bg); padding: 24px var(--gutter); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font: 520 2rem/1.1 var(--display); letter-spacing: -.02em; padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); width: 100%; background: none !important; }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav-n { font-size: 12px; }
  .menu-btn { display: flex; }
  .menu-open .menu-btn span:first-child { transform: translateY(3.3px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
  .menu-open { overflow: hidden; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; justify-self: center; order: -1; margin-bottom: -10px; }
  .section { grid-template-columns: 1fr; }
  .label { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 20px; }
  .skills { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .grid-3, .skills, .field-row { grid-template-columns: 1fr; }
  .row, .rows-full .row { grid-template-columns: 34px minmax(0, 1fr); }
  .row-side, .row-link { grid-column: 2; }
  .tl { grid-template-columns: 1fr; gap: 4px; }
  .log li { grid-template-columns: 56px minmax(0, 1fr); }
  .log-d { grid-column: 2; text-align: left; }
  .lang-pop { right: -48px; }
  .flag-chip { width: 46px; height: 40px; }
  .cv-card { flex-direction: column; align-items: flex-start; }
  .hero-art { max-width: 260px; }
}

/* ---------- print (CV) ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --muted: #555; --line: #ccc; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .no-print, .skip, .hero-art { display: none !important; }
  .section { padding-block: 18px; grid-template-columns: 130px 1fr; break-inside: avoid; }
  .page-head { padding-block: 0 12px; }
  .display { font-size: 28pt; }
  .label { position: static; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .tl { padding: 10px 0; grid-template-columns: 120px 1fr; break-inside: avoid; }
  .tags li { border-color: #bbb; }
  a { text-decoration: none; }
}
