/* ==========================================================================
   Denise Imhof – Onepager
   ========================================================================== */

@font-face {
  font-family: 'Six Caps';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/sixcaps-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Questrial';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/questrial-latin.woff2) format('woff2');
  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: 'Questrial';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/questrial-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #1d5aa6;
  --blue-dark: #12407a;
  --blue-soft: #e8f0fa;
  --red: #c0392b;          /* Torii-Rot als Akzent */
  --gold: #c9a227;         /* Goldener Pavillon */
  --ink: #2b2f36;
  --muted: #5d6573;
  --panel: rgba(255, 255, 255, .84);
  --panel-border: rgba(255, 255, 255, .7);
  --shadow: 0 24px 60px -20px rgba(15, 35, 65, .35), 0 2px 6px rgba(15, 35, 65, .08);
  --radius: 22px;
  --wrap: 1120px;
  --header-h: 112px;
  --font: 'Questrial', Arial, sans-serif;
  --font-jp: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', 'MS Mincho', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: #dfe7df;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .item_title {
  font-family: 'Questrial', Arial, serif !important;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .6em;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* ---------- Hintergrund ---------- */
.bg {
  position: fixed;
  inset: -6vh 0;
  z-index: -1;
  background: url(../img/denise-imhof-japanologie.webp) center / cover no-repeat;
  transform: translate3d(0, var(--bg-shift, 0px), 0) scale(1.08);
  will-change: transform;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.08) 38%, rgba(255,255,255,.12) 70%, rgba(255,255,255,.4) 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, .9);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(29, 90, 166, .12);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(15, 35, 65, .3); background: rgba(250, 250, 250, .95); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 18px 0 8px;
  transition: padding .3s;
}
.scrolled .header-inner { padding: 8px 0 4px; }

.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--blue); width: max-content; }
.logo-name {
  font-family: 'Six Caps', Arial, serif !important;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: font-size .3s, text-shadow .3s;
  text-shadow: 1px 1px 0 #9fb9da, 2px 2px 0 rgba(18, 64, 122, .15);
}
.scrolled .logo-name { font-size: 2.5rem; }
.logo-tag { font-family: Arial, sans-serif; font-size: .7rem; color: #111; white-space: nowrap; }
.logo:hover { color: var(--blue-dark); }

.nav { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: .95rem;
  text-decoration: none;
  color: var(--blue);
  border-radius: 999px;
  transition: background .25s, color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.nav a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 48px 0 96px;
}
.hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.hero-text {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(24px, 5vw, 56px);
  max-width: 720px;
  min-width: 0;
  animation: rise 1s cubic-bezier(.2, .8, .2, 1) both;
}
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--red); margin-bottom: 1.2em; }

/* 3D-Titel: gestapelte Schatten + Neigung per Maus */
.title-3d {
  perspective: 800px;
  font-size: clamp(1.9rem, 8.4vw, 5.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--blue);
  margin-bottom: .45em;
}
.title-3d span {
  display: block;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
  text-shadow:
    1px 1px 0 #2f6dbb,
    2px 2px 0 #2a64ad,
    3px 3px 0 #255b9f,
    4px 4px 0 #1f5191,
    5px 5px 0 #1a4783,
    6px 6px 0 #153d75,
    7px 7px 12px rgba(10, 30, 60, .35),
    10px 14px 28px rgba(10, 30, 60, .25);
  color: #fff;
  -webkit-text-stroke: 1px rgba(29, 90, 166, .35);
  animation: flipIn .9s cubic-bezier(.2, .8, .2, 1) backwards;
}
.title-3d span:nth-child(2) { animation-delay: .12s; }
.title-3d span:nth-child(3) {
  animation-delay: .24s;
  color: var(--gold);
  -webkit-text-stroke: 1px rgba(120, 90, 10, .35);
  text-shadow:
    1px 1px 0 #b8901c, 2px 2px 0 #a8821a, 3px 3px 0 #977417, 4px 4px 0 #866614,
    5px 5px 0 #755811, 6px 6px 0 #644b0e, 7px 7px 12px rgba(60, 40, 0, .35), 10px 14px 28px rgba(60, 40, 0, .25);
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.lead-sm { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(29, 90, 166, .8); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(29, 90, 166, .9); }
.btn-ghost { border: 1px solid rgba(29, 90, 166, .35); color: var(--blue); background: rgba(255, 255, 255, .6); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.kanji {
  writing-mode: vertical-rl;
  font-family: var(--font-jp);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: .15em;
  margin: 0;
  color: #fff;
  text-shadow:
    3px 3px 0 rgba(192, 57, 43, .85),
    0 10px 30px rgba(0, 0, 0, .35);
  animation: rise 1.4s .3s cubic-bezier(.2, .8, .2, 1) both, float 7s 1.7s ease-in-out infinite;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px;
  width: 30px; height: 48px; margin-left: -15px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }

/* ---------- Sektionen / Kästen ---------- */
.section { padding: 56px 0; }
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  padding: clamp(26px, 5vw, 60px);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(var(--blue), var(--red));
}

.h2-3d {
  display: inline-block;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: .02em;
  text-shadow:
    1px 1px 0 #c9d8ec,
    2px 2px 0 #b6cae4,
    3px 3px 0 #a3bcdb,
    4px 4px 8px rgba(18, 64, 122, .25);
  transform-origin: 50% 100%;
  margin-bottom: .8em;
}
.reveal .h2-3d { transform: perspective(600px) rotateX(-75deg); opacity: 0; transition: transform 1s cubic-bezier(.2, .8, .2, 1) .15s, opacity .6s .15s; }
.reveal.in .h2-3d { transform: perspective(600px) rotateX(0); opacity: 1; }

h3 { font-size: 1.35rem; color: var(--blue-dark); }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(29, 90, 166, .1);
  border-radius: 18px;
  padding: 28px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
  transform-style: preserve-3d;
}
.card:hover { transform: perspective(900px) rotateX(3deg) rotateY(-4deg) translateY(-6px); box-shadow: 0 26px 40px -24px rgba(15, 35, 65, .45); }
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 10px 20px -8px rgba(29, 90, 166, .7);
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.ticks { list-style: none; margin: 0 0 1em; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 28px; border-bottom: 1px dashed rgba(29, 90, 166, .15); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute; left: 4px; top: 50%;
  width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, .15);
}

/* Vita */
.person { font-size: 1.15rem; }
.vita-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-top: 1.5em; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid rgba(29, 90, 166, .2); }
.timeline li { position: relative; padding: 0 0 22px 10px; }
.timeline li::before {
  content: "";
  position: absolute; left: -35px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
}
.timeline li:first-child::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 6px rgba(192, 57, 43, .18); }
.timeline .year { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 2px; }
.timeline p { margin: 0; }

.vita-side { display: grid; gap: 22px; align-content: start; }
.info-block h3 { font-size: 1.1rem; margin-bottom: .5em; }
.info-block p { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: .92rem;
  transition: transform .2s, background .2s;
}
.chips li:hover { transform: translateY(-2px); background: #dbe7f6; }
.chips small { color: var(--muted); font-size: .8em; }

/* Übersetzungen */
.lang-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 28px 0; }
.lang {
  display: grid; justify-items: center; gap: 8px;
  padding: 26px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(29, 90, 166, .1);
  text-align: center;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.lang:hover { transform: perspective(700px) rotateY(12deg) translateY(-4px); box-shadow: -14px 20px 30px -22px rgba(15, 35, 65, .5); }
.lang-glyph {
  font-size: 1.9rem;
  color: var(--blue);
  text-shadow: 2px 2px 0 #c9d8ec, 4px 4px 8px rgba(18, 64, 122, .2);
}
.lang-glyph[lang="ja"] { font-family: var(--font-jp); color: var(--red); text-shadow: 2px 2px 0 #f0cbc6, 4px 4px 8px rgba(120, 30, 20, .2); }

/* Grafikdesign */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.work { margin: 0; }
.work-wide { grid-column: 1 / -1; }
.work-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 18px 40px -22px rgba(15, 35, 65, .55);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}
.work-tall .work-btn { aspect-ratio: 4 / 5; }
.work-tall .work-btn img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.work-btn img { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.work-btn:hover { transform: perspective(1000px) rotateX(4deg) translateY(-8px); box-shadow: 0 34px 50px -26px rgba(15, 35, 65, .6); }
.work-btn:hover img { transform: scale(1.06); }
.work-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.work figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding: 12px 4px 0; font-size: .95rem; }
.work figcaption span { color: var(--muted); }

/* Zoom von ganz klein auf groß beim Hineinscrollen */
.zoom-in { opacity: 0; transform: scale(.15) rotate(-6deg); transition: transform 1.1s cubic-bezier(.16, 1.1, .3, 1), opacity .6s; }
.zoom-in.in { opacity: 1; transform: none; }
.gallery .zoom-in:nth-child(2) { transition-delay: .15s; }
.gallery .zoom-in:nth-child(3) { transition-delay: .3s; }

.soon { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; }
.soon li { padding: 8px 16px; border-radius: 999px; border: 1px dashed rgba(29, 90, 166, .35); font-size: .92rem; color: var(--blue-dark); }
.soon span { color: var(--muted); font-size: .85em; margin-left: 4px; }

/* Kontakt */
.panel-contact { text-align: center; }
.panel-contact::before { width: 100%; height: 5px; bottom: auto; background: linear-gradient(90deg, var(--blue), var(--red), var(--gold)); }
.panel-contact .lead-sm { margin-inline: auto; }
.mail {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 18px 0 22px;
  padding: 18px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  text-decoration: none;
  box-shadow: 0 6px 0 #0c2f5c, 0 22px 40px -16px rgba(18, 64, 122, .8);
  transition: transform .15s, box-shadow .15s;
  max-width: 100%;
}
.mail span { overflow-wrap: anywhere; }
.mail svg { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mail:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 9px 0 #0c2f5c, 0 28px 46px -16px rgba(18, 64, 122, .85); }
.mail:active { transform: translateY(4px); box-shadow: 0 2px 0 #0c2f5c, 0 12px 20px -12px rgba(18, 64, 122, .8); }

/* Rechtliches */
.section-legal { padding-top: 0; }
.panel-legal { padding: 10px clamp(20px, 4vw, 40px); }
.panel-legal details { border-bottom: 1px solid rgba(29, 90, 166, .12); }
.panel-legal details:last-child { border-bottom: 0; }
.panel-legal summary { cursor: pointer; list-style: none; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; }
.panel-legal summary::-webkit-details-marker { display: none; }
.panel-legal summary::after { content: "+"; font-size: 1.6rem; color: var(--blue); transition: transform .3s; }
.panel-legal details[open] summary::after { transform: rotate(45deg); }
.panel-legal summary h2 { font-size: 1.2rem; margin: 0; color: var(--blue-dark); }
.panel-legal details > p { font-size: .95rem; }

/* Footer */
.site-footer { background: rgba(250, 250, 250, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 26px 0; font-size: .85rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--blue); }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(18, 64, 122, .8);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); color: #fff; }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Lightbox – Bild zoomt aus der Kachel auf volle Größe */
.lightbox {
  border: 0; padding: 0; margin: auto;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 20, 35, .82); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 56px 16px 24px; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  width: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7);
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  animation: lbZoom .6s cubic-bezier(.16, 1.1, .3, 1) both;
}
.lightbox figcaption { color: #fff; font-size: 1rem; text-align: center; }
.lb-close {
  position: fixed; top: 14px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: var(--red); border-color: var(--red); }

/* Allgemeines Einblenden */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.panel .reveal { transition-delay: .1s; }
.cards .card:nth-child(2), .lang-grid .lang:nth-child(2) { transition-delay: .2s; }
.lang-grid .lang:nth-child(3) { transition-delay: .3s; }
.lang-grid .lang:nth-child(4) { transition-delay: .4s; }

@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes flipIn { from { opacity: 0; transform: perspective(600px) rotateX(-90deg) translateY(20px); } to { opacity: 1; transform: perspective(600px) rotateX(0); } }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
@keyframes lbZoom { from { transform: scale(.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .cards, .vita-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .kanji { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .header-inner { padding: 10px 0; }
  .logo-name, .scrolled .logo-name { font-size: 2.4rem; }
  .logo-tag { display: none; }

  .nav-toggle {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border: 0; border-radius: 12px;
    background: var(--blue-soft);
    cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .3s, background .3s; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    flex-direction: column; flex-wrap: nowrap; gap: 2px;
    max-height: 0; overflow: hidden;
    margin: 0;
    transition: max-height .4s ease, margin .4s;
  }
  .nav.open { max-height: 360px; margin: 8px 0 6px; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }

  .hero { padding: 32px 0 88px; }
  .section { padding: 32px 0; }
  .gallery { grid-template-columns: 1fr; }
  .work-tall .work-btn { aspect-ratio: auto; }
  .work-tall .work-btn img { height: auto; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .lang-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mail { padding: 16px 20px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .zoom-in, .reveal .h2-3d { opacity: 1; transform: none; }
}
