/* ===================== Tokens ===================== */
:root {
  --bg: oklch(0.992 0.004 240);
  --bg-soft: oklch(0.97 0.006 240);
  --text: oklch(0.24 0.014 262);
  --muted: oklch(0.52 0.012 262);
  --faint: oklch(0.66 0.01 262);
  --line: oklch(0.9 0.008 262);
  --card: oklch(1 0 0 / 0.55);
  --card-bd: oklch(0.86 0.01 262 / 0.7);
  --pill: oklch(0.95 0.006 262);
  --initials: oklch(0.5 0.02 262 / 0.06);

  --aqua: oklch(0.9 0.06 198);
  --blue: oklch(0.89 0.06 256);
  --violet: oklch(0.88 0.07 304);
  --blob-a: 0.42;

  --accent: oklch(0.62 0.13 280);
  --glow: oklch(0.8 0.12 270 / 0.5);
  --eq-a: 0.3;
  --aura-a: 0.55;
  --g1: oklch(0.7 0.2 200 / 0.78);
  --g2: oklch(0.62 0.24 350 / 0.72);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-mono: "Space Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: oklch(0.17 0.013 258);
  --bg-soft: oklch(0.2 0.014 258);
  --text: oklch(0.94 0.006 258);
  --muted: oklch(0.66 0.012 258);
  --faint: oklch(0.5 0.012 258);
  --line: oklch(0.32 0.012 258);
  --card: oklch(0.23 0.014 258 / 0.5);
  --card-bd: oklch(0.4 0.015 258 / 0.55);
  --pill: oklch(0.27 0.014 258);
  --initials: oklch(0.85 0.02 258 / 0.05);

  --aqua: oklch(0.62 0.12 198);
  --blue: oklch(0.55 0.14 256);
  --violet: oklch(0.55 0.15 304);
  --blob-a: 0.4;

  --accent: oklch(0.78 0.12 280);
  --glow: oklch(0.7 0.16 270 / 0.42);
  --eq-a: 0.5;
  --aura-a: 0.6;
  --g1: oklch(0.78 0.21 200 / 0.8);
  --g2: oklch(0.7 0.24 350 / 0.72);
}

/* ===================== Base ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ===================== Background ===================== */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: clamp(70px, 9vw, 130px) clamp(70px, 9vw, 130px);
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 130% 120% at 50% 35%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 130% 120% at 50% 35%, #000 30%, transparent 85%);
}
.blobs { position: absolute; inset: 0; will-change: transform; transition: transform 0.5s var(--ease); }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(95px); opacity: var(--blob-a);
}
.b1 { width: 40vw; height: 40vw; top: -8vw; right: -4vw; background: var(--violet); }
.b2 { width: 38vw; height: 38vw; bottom: -12vw; left: -6vw; background: var(--aqua); }
.b3 { width: 34vw; height: 34vw; top: 28vw; left: 38vw; background: var(--blue); opacity: calc(var(--blob-a) * 0.6); }
.blob { animation: drift 22s var(--ease) infinite alternate; }
.b2 { animation-duration: 28s; animation-delay: -6s; }
.b3 { animation-duration: 34s; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, -3vw) scale(1.12); }
}

.initials {
  position: absolute; left: -2vw; bottom: -6vw;
  font-family: var(--font-serif);
  font-size: 30vw; line-height: 0.78;
  color: var(--initials); letter-spacing: -0.02em;
  user-select: none; will-change: transform;
  transition: transform 0.6s var(--ease);
}
.initials .dot { color: var(--accent); opacity: 0.5; }

.float-ring {
  position: absolute; top: 8vh; left: 7vw;
  width: clamp(80px, 8vw, 150px); aspect-ratio: 1;
  border: 1px solid var(--line); border-radius: 50%;
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float { from { transform: translateY(0); } to { transform: translateY(40px) translateX(20px); } }

.cursor-glow {
  position: absolute; top: 0; left: 0;
  width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  transform: translate(-50%, -50%);
  left: var(--mx, 50%); top: var(--my, 40%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ===================== Nav ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(20px, 3vw, 38px) clamp(22px, 5vw, 70px);
}
.logo { color: var(--text); display: inline-flex; transition: transform 0.5s var(--ease); }
.logo:hover { transform: rotate(90deg); }
.nav-links { display: flex; gap: clamp(20px, 2.6vw, 42px); }
.nav-links a {
  font-family: var(--font-display); font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  color: var(--muted); position: relative; padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--text); transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.controls { display: flex; align-items: center; gap: 18px; }
.lang-btn {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  display: inline-flex; gap: 5px; color: var(--muted); transition: color 0.3s;
}
.lang-btn .sep { opacity: 0.4; }
.lang-btn .lang-on { color: var(--text); font-weight: 700; }
.lang-btn:hover { color: var(--text); }
[lang="en"] .lang-btn .lang-on { color: var(--muted); font-weight: 400; }
[lang="en"] .lang-btn .lang-off { color: var(--text); font-weight: 700; }
.theme-btn { color: var(--text); display: inline-flex; transition: transform 0.5s var(--ease); }
.theme-btn:hover { transform: rotate(180deg); }
.menu-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 30px; }
.menu-btn span { display: block; height: 2px; width: 22px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.25s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Views ===================== */
main { position: relative; z-index: 10; height: 100%; }
.view {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
}
.view.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }

.view-home, .view-contact { display: flex; align-items: center; justify-content: center; padding: 9vh clamp(24px, 6vw, 90px); }
.view-scroll { overflow-y: auto; overflow-x: hidden; padding: 15vh clamp(24px, 6vw, 90px) 12vh; }
.view-scroll::-webkit-scrollbar { width: 8px; }
.view-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.scroll-inner { max-width: 1120px; margin: 0 auto; }

/* ===================== Home ===================== */
.home-inner { max-width: 640px; width: 100%; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.hero-photo {
  width: clamp(96px, 11vw, 132px); aspect-ratio: 1;
  border-radius: 50%; object-fit: cover;
  margin-bottom: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--card-bd);
  box-shadow: 0 14px 34px -16px var(--glow);
  background: var(--pill);
}
.hero-name {
  position: relative; z-index: 2; color: var(--text);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.05;
  letter-spacing: clamp(0.02em, 0.35vw, 0.07em); text-transform: uppercase;
  margin-bottom: 0; max-width: 100%;
}
/* Corrupted / glitch ghost letters behind the name (real elements) */
.name-stage { position: relative; display: inline-block; max-width: 100%; align-self: flex-start; margin-bottom: clamp(26px, 2.6vw, 36px); }
.ghost {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 1;
  pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.05;
  letter-spacing: clamp(0.02em, 0.35vw, 0.07em); text-transform: uppercase;
  will-change: transform, clip-path;
}
.g-a { color: var(--g1); opacity: 0; animation: glitchA 2.5s steps(1, end) infinite; }
.g-b { color: var(--g2); opacity: 0; animation: glitchB 3.1s steps(1, end) infinite; }
@keyframes glitchA {
  0%, 6%, 12%, 45%, 51%, 73%, 78%, 100% { opacity: 0; }
  7%  { opacity: 0.9; transform: translate(-5px, -2px); clip-path: inset(14% 0 56% 0); }
  9%  { opacity: 0.9; transform: translate(4px, 1px);   clip-path: inset(55% 0 12% 0); }
  46% { opacity: 0.9; transform: translate(-6px, 1px);  clip-path: inset(34% 0 41% 0); }
  48% { opacity: 0.9; transform: translate(3px, -2px);  clip-path: inset(4% 0 72% 0); }
  74% { opacity: 0.9; transform: translate(5px, 0);     clip-path: inset(60% 0 18% 0); }
  76% { opacity: 0.9; transform: translate(-4px, 1px);  clip-path: inset(22% 0 52% 0); }
}
@keyframes glitchB {
  0%, 20%, 26%, 58%, 64%, 88%, 93%, 100% { opacity: 0; }
  21% { opacity: 0.85; transform: translate(5px, 1px);   clip-path: inset(46% 0 26% 0); }
  23% { opacity: 0.85; transform: translate(-4px, -1px); clip-path: inset(8% 0 66% 0); }
  59% { opacity: 0.85; transform: translate(6px, -1px);  clip-path: inset(28% 0 48% 0); }
  61% { opacity: 0.85; transform: translate(-3px, 2px);  clip-path: inset(64% 0 8% 0); }
  89% { opacity: 0.85; transform: translate(-5px, 0);    clip-path: inset(40% 0 38% 0); }
  91% { opacity: 0.85; transform: translate(4px, 1px);   clip-path: inset(12% 0 60% 0); }
}
@media (prefers-reduced-motion: reduce) {
  .g-a, .g-b { animation: none; opacity: 0; }
}
@keyframes auraMove {
  0%   { transform: translate(-4%, 2%) scale(1); }
  50%  { transform: translate(4%, -5%) scale(1.14); }
  100% { transform: translate(7%, 3%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .name-aura { animation: none; } }
.hero-name .ch { display: inline-block; }
.hero-name .ch.sp { width: 0.4em; }

.hero-body { max-width: 640px; display: flex; flex-direction: column; gap: clamp(13px, 1.4vw, 20px); }
.hero-body p {
  font-size: clamp(0.92rem, 1vw, 1.08rem); line-height: 1.62;
  color: var(--muted); text-wrap: pretty;
}
.hero-body b { color: var(--text); font-weight: 600; }
.hero-body a.kw {
  color: var(--text); font-weight: 600; cursor: pointer;
  border-bottom: 1.5px solid var(--accent); padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}
.hero-body a.kw:hover { color: var(--accent); }

.see-more {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--font-display); font-size: 0.98rem; color: var(--text);
}
.see-more svg { transition: transform 0.4s var(--ease); }
.see-more:hover svg { transform: translateX(8px); }

.socials { display: flex; gap: 20px; margin-top: clamp(24px, 3vw, 40px); }
.socials a {
  color: var(--faint); display: inline-flex;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.socials a:hover { color: var(--text); transform: translateY(-3px); }

/* ===================== Big titles ===================== */
.big-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.02em;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ===================== About ===================== */
.about-rows { display: flex; flex-direction: column; }
.about-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 18px 30px; padding: clamp(26px, 3vw, 40px) 0;
  border-top: 1px solid var(--line); align-items: start;
}
.about-row:last-child { border-bottom: 1px solid var(--line); }
.about-row .row-head { display: flex; align-items: center; gap: 12px; }
.about-row .marker {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.6px solid var(--faint); flex: none; transition: all 0.4s var(--ease);
}
.about-row:hover .marker { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.about-row h3 { font-family: var(--font-display); font-size: clamp(1.05rem, 1.2vw, 1.28rem); font-weight: 600; }
.about-row .row-text {
  grid-column: 1 / 2; max-width: 760px; margin-top: 4px;
  color: var(--muted); font-size: clamp(0.9rem, 0.95vw, 1rem); line-height: 1.65; text-wrap: pretty;
}
.about-row .row-link {
  grid-column: 2; grid-row: 1; align-self: start;
  font-family: var(--font-display); font-size: 0.98rem; color: var(--text);
  border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; white-space: nowrap;
  transition: color 0.3s;
}
.about-row .row-link:hover { color: var(--accent); }

.about-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  margin-top: clamp(44px, 5vw, 72px);
}
.foot-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.foot-main { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin: 12px 0 4px; }
.foot-sub { color: var(--muted); font-size: 0.92rem; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stack-tags span {
  font-family: var(--font-mono); font-size: 0.76rem; padding: 5px 11px;
  background: var(--pill); border-radius: 100px; color: var(--muted);
}

/* ===================== Projects ===================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(30px, 4vw, 48px); }
.filters button {
  font-family: var(--font-display); font-size: 0.95rem; color: var(--muted);
  padding: 9px 20px; border-radius: 100px; transition: all 0.3s var(--ease);
}
.filters button:hover { color: var(--text); }
.filters button.active { background: var(--text); color: var(--bg); }

.grid-projects { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; gap: clamp(18px, 2vw, 28px); padding-bottom: 4vh; }
.pcard {
  border: 1px solid var(--card-bd); background: var(--card);
  border-radius: 18px; overflow: hidden; cursor: pointer;
  backdrop-filter: blur(8px); transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.pcard:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 50px -28px var(--glow); }
.pcard-cover {
  position: relative; overflow: hidden; background: var(--pill); border-bottom: 1px solid var(--card-bd);
}
.pcard-cover img { width: 100%; height: auto; display: block; transition: transform 0.6s var(--ease); }
.pcard:hover .pcard-cover img { transform: scale(1.03); }
.pcard-kicker { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.pcard-body { padding: 22px 24px 26px; }
.pcard-body h3 { font-family: var(--font-display); font-size: 1.14rem; font-weight: 600; margin-bottom: 7px; }
.pcard-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin-bottom: 14px; text-wrap: pretty; }
.ptags { display: flex; flex-wrap: wrap; gap: 7px; }
.ptags span {
  font-family: var(--font-mono); font-size: 0.72rem; padding: 4px 10px;
  background: var(--pill); border-radius: 100px; color: var(--muted);
}

/* ===================== Contact ===================== */
.contact-inner { max-width: 760px; text-align: center; }
.contact-lead {
  font-size: clamp(1rem, 1.2vw, 1.18rem); line-height: 1.6; color: var(--muted);
  margin-bottom: clamp(26px, 3vw, 40px); text-wrap: balance;
}
.email-pill {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: clamp(1rem, 1.5vw, 1.3rem);
  padding: 12px 22px; border: 1px solid var(--card-bd); border-radius: 100px;
  background: var(--card); backdrop-filter: blur(8px); transition: all 0.35s var(--ease);
}
.email-pill:hover { border-color: var(--accent); transform: translateY(-3px); }
.email-pill .email-copy {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bg); background: var(--accent); padding: 5px 12px; border-radius: 100px;
}
.email-pill.copied .email-copy { background: oklch(0.7 0.16 150); }
.contact-inner .socials { justify-content: center; }
.contact-loc { margin-top: clamp(30px, 4vw, 46px); font-family: var(--font-mono); font-size: 0.82rem; color: var(--faint); letter-spacing: 0.04em; }

/* ===================== Drawer ===================== */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 40; background: oklch(0.1 0.01 260 / 0.5);
  opacity: 0; visibility: hidden; transition: all 0.45s var(--ease); backdrop-filter: blur(2px);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(540px, 100vw); background: var(--bg-soft);
  border-left: 1px solid var(--card-bd);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.5s var(--ease);
}
.drawer.open { transform: none; }
.drawer-close { flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--font-display); padding: 20px 24px 14px; transition: color 0.3s; }
.drawer-close:hover { color: var(--text); }
.drawer-body { flex: 1 1 auto; overflow-y: auto; }
.drawer-body::-webkit-scrollbar { width: 8px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.d-hero { width: 100%; background: var(--pill); border-top: 1px solid var(--card-bd); border-bottom: 1px solid var(--card-bd); }
.d-hero img { width: 100%; display: block; }

.d-pad { padding: 26px clamp(22px, 4vw, 38px) 32px; }
.drawer-body h2 { font-family: var(--font-display); font-size: clamp(1.65rem, 4vw, 2.1rem); font-weight: 700; margin-bottom: 8px; }
.drawer-body .d-kicker { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.drawer-body .d-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 6px; }
.d-shots { position: relative; margin: 8px calc(-1 * clamp(22px, 4vw, 38px)) 4px; }
.d-gallery.mobile {
  display: flex; gap: 18px; overflow-x: auto; padding: 26px clamp(22px, 4vw, 38px);
  scroll-snap-type: x proximity; scroll-padding-left: clamp(22px, 4vw, 38px);
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  background: radial-gradient(120% 85% at 50% 0%, color-mix(in oklab, var(--pa) 26%, var(--bg-soft)), var(--bg-soft));
}
.d-gallery.mobile::-webkit-scrollbar { display: none; }
.d-gallery.mobile img {
  height: 340px; width: auto; flex: none; scroll-snap-align: center;
  filter: drop-shadow(0 16px 28px oklch(0.2 0.04 280 / 0.28));
}
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: color-mix(in oklab, var(--bg-soft) 86%, transparent); backdrop-filter: blur(6px);
  border: 1px solid var(--card-bd); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px oklch(0.2 0.03 280 / 0.22); cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.g-nav.prev { left: 12px; }
.g-nav.next { right: 12px; }
.g-nav:hover { background: var(--text); color: var(--bg); }
.g-nav:active { transform: translateY(-50%) scale(0.92); }
.drawer-body h4 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 26px 0 12px; }
.drawer-body .d-about { color: var(--muted); line-height: 1.7; font-size: 1rem; }
.drawer-body .d-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.drawer-body .d-bullets li { color: var(--muted); line-height: 1.6; padding-left: 20px; position: relative; }
.drawer-body .d-bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.drawer-body .ptags { margin-top: 4px; }

.drawer-foot {
  flex: none; padding: 14px clamp(18px, 3vw, 24px) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--card-bd); background: var(--bg-soft);
}
.drawer-link {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; margin: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--bg); white-space: nowrap;
  background: var(--text); padding: 16px; border-radius: 14px; transition: background 0.35s var(--ease), transform 0.2s var(--ease);
}
.drawer-link:hover { background: var(--accent); }
.drawer-link:active { transform: scale(0.985); }

/* ===================== Responsive ===================== */
body.no-scroll .view-scroll { overflow: hidden; }

@media (max-width: 860px) {
  .grid-projects { grid-template-columns: 1fr; }
  .about-row { grid-template-columns: 1fr; }
  .about-row .row-link { grid-column: 1; grid-row: auto; }
  .about-foot { grid-template-columns: 1fr; gap: 26px; }
  .initials { font-size: 64vw; }
}

@media (max-width: 680px) {
  .nav { padding: 16px 20px; }
  .menu-btn { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 6px 20px 14px; box-shadow: 0 24px 40px -24px oklch(0.2 0.03 280 / 0.4);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 2px; font-size: 1.05rem; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }

  .view-home, .view-contact { align-items: flex-start; overflow-y: auto; padding: 96px 22px 60px; }
  .view-scroll { padding: 100px 22px 70px; }
  .home-inner, .hero-body, .name-stage { max-width: 100%; }
  .hero-name { font-size: clamp(1.65rem, 8.5vw, 2.5rem); }
  .ghost { font-size: clamp(1.65rem, 8.5vw, 2.5rem); }
  .hero-body p { font-size: 1rem; }
  .big-title { font-size: clamp(2.1rem, 10vw, 3rem); }
  .initials { font-size: 86vw; bottom: -3vw; }
  .float-ring { display: none; }

  .pcard-cover { height: auto; }

  .contact-inner { text-align: left; }
  .contact-inner .socials { justify-content: flex-start; }
  .email-pill { font-size: 1.02rem; padding: 12px 18px; max-width: 100%; }
  .email-pill .email-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .drawer { width: 100vw; padding: 22px 20px 40px; }
  .d-gallery.mobile img { height: 320px; }
}

@media (max-width: 380px) {
  .controls { gap: 12px; }
  .lang-btn { font-size: 0.78rem; }
}
