/* ============================================================================
   ALPARSLAN KESKİN — "Day / Night"
   Cinematic, scroll-told single page. Light base, radical typography.
   Type: Archivo (expanded, 100..900) + JetBrains Mono
   ========================================================================== */

:root {
  --bg: #F6F4EE;
  --ink: #161512;
  --ink-soft: #6B675D;
  --line: rgba(22, 21, 18, 0.16);
  --card: #FFFFFF;
  --accent: #D9482B;
  --disp-stretch: 125%;
  --pad: clamp(20px, 4vw, 64px);
}
html[data-theme="dark"] {
  --bg: #131109;
  --ink: #F1EEE6;
  --ink-soft: #98948A;
  --line: rgba(241, 238, 230, 0.18);
  --card: #1C1913;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  transition: background-color 0.9s ease, color 0.9s ease;
  overflow-x: hidden;
}
body.intro-lock { overflow: hidden; }
::selection { background: var(--accent); color: #F6F4EE; }
a { color: inherit; }
img { display: block; }

.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.display {
  font-family: "Archivo", sans-serif;
  font-stretch: var(--disp-stretch);
  font-weight: 860;
  line-height: 0.88;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
/* Fit-to-width headings (app.js fitDisplay): measure on a single line. */
[data-fit] { white-space: nowrap; }
span[data-fit]:not(.hn-line) { display: inline-block; max-width: 100%; }

/* — Scroll progress ——————————————————————————————————————————————————— */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 130;
  pointer-events: none;
}
.progress span {
  display: block; height: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}

/* — Opening (intro) ——————————————————————————————————————————————————— */
#intro2 {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
#intro2.out { transform: translateY(-101%); }
#intro2 .i-cross::before, #intro2 .i-cross::after {
  content: ""; position: absolute; background: var(--line);
  transition: opacity 0.6s;
}
#intro2 .i-cross::before { left: 0; right: 0; top: 50%; height: 1px; }
#intro2 .i-cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.i-meta {
  position: absolute; left: 0; right: 0; text-align: center;
  color: var(--ink-soft);
  opacity: 0; transition: opacity 0.7s ease 0.1s;
}
.i-meta-top { top: clamp(20px, 4vh, 44px); }
.i-meta-bot { bottom: clamp(20px, 4vh, 44px); }
.i-meta em { font-style: normal; color: var(--accent); }
#intro2.s1 .i-meta { opacity: 1; }

.i-stage { position: relative; text-align: center; padding: 0 var(--pad); }
.i-wolf {
  width: clamp(44px, 6vw, 72px); margin: 0 auto 28px;
  opacity: 0; transform: scale(1.6) rotate(-6deg);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
#intro2.s2 .i-wolf { opacity: 1; transform: scale(1) rotate(0deg); }

.i-name { font-size: clamp(44px, 9.5vw, 150px); }
.i-line { display: block; overflow: hidden; }
.i-line b {
  display: inline-block; font-weight: inherit;
  transform: translateY(115%);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 45ms);
}
#intro2.s3 .i-line b { transform: translateY(0); }
.i-line.outline b { -webkit-text-stroke: inherit; }

.i-rule {
  height: 2px; background: var(--ink); margin: 26px auto 16px;
  width: min(540px, 70%);
  transform: scaleX(0); transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
#intro2.s4 .i-rule { transform: scaleX(1); }
.i-tag {
  color: var(--ink-soft); opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}
#intro2.s4 .i-tag { opacity: 1; transform: none; }
.i-skip {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vh, 36px);
  background: none; border: 1px solid var(--line); color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em;
  padding: 10px 16px; cursor: pointer; border-radius: 999px;
}
.i-skip:hover { color: var(--ink); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  #intro2 { display: none; }
}

/* — Navigation ———————————————————————————————————————————————————————— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.9s ease, border-color 0.9s ease;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
}
.wolf { transition: filter 0.9s ease; }
html[data-theme="dark"] .wolf { filter: invert(1); }
.brand .wolf { width: 22px; height: auto; }
.nav nav { display: flex; align-items: center; gap: 6px; }
.nav nav a {
  text-decoration: none; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s, background-color 0.2s;
}
.nav nav a:hover { color: var(--ink); background: var(--line); }
.lang-switch {
  display: inline-flex; margin-left: 10px;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  background: none; border: 0; cursor: pointer;
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em;
  padding: 8px 12px;
  transition: color 0.2s, background-color 0.2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* — Chapter HUD (left edge) ——————————————————————————————————————————— */
.hud {
  position: fixed; left: 18px; bottom: 50%; z-index: 70;
  transform: rotate(180deg) translateY(-50%);
  writing-mode: vertical-rl;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 12px;
}
.hud::after {
  content: ""; width: 1px; height: 56px; background: var(--accent);
}
@media (max-width: 1100px) { .hud { display: none; } }

/* — Shared section layout ————————————————————————————————————————————— */
section { padding: 0 var(--pad); scroll-margin-top: 64px; }
[data-reveal] {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  [data-reveal].in { opacity: 1; transform: none; }
}

/* — Curtain (hero) ———————————————————————————————————————————————————— */
#perde {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 110px; padding-bottom: clamp(24px, 4vh, 48px);
  position: relative;
}
.kicker { color: var(--ink-soft); margin-bottom: clamp(16px, 3vh, 36px); }
.kicker .dot { color: var(--accent); }
.hero-name { font-size: clamp(48px, 11.2vw, 210px); }
.hn-row { display: flex; align-items: baseline; gap: clamp(14px, 2.5vw, 40px); flex-wrap: wrap; }
.hn-line { display: inline-block; will-change: transform; }
.hn-meta {
  font-family: "JetBrains Mono", monospace; font-size: clamp(10px, 0.9vw, 14px);
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.7;
  color: var(--ink-soft); -webkit-text-stroke: 0; font-weight: 400;
  max-width: 230px;
}
.hn-meta em { font-style: normal; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  body.ready .hero-rise { animation: heroRise 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
  body.ready .hero-rise.d1 { animation-delay: 0.12s; }
  body.ready .hero-rise.d2 { animation-delay: 0.24s; }
  @keyframes heroRise {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-top: clamp(24px, 4vh, 52px);
  border-top: 1px solid var(--line); padding-top: 22px;
}
.hero-tag { font-size: clamp(17px, 1.6vw, 24px); max-width: 34em; color: var(--ink-soft); text-wrap: pretty; }
.hero-tag em { font-style: normal; color: var(--ink); font-weight: 600; }
.scroll-cue { color: var(--ink-soft); display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.cue-line { display: inline-block; width: 1px; height: 44px; background: var(--ink-soft); position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .cue-line::after {
    content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
    background: var(--accent); animation: cueDrop 1.8s ease-in-out infinite;
  }
  @keyframes cueDrop { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }
}

/* — Chapters —————————————————————————————————————————————————————————— */
.chapter { padding-top: clamp(90px, 16vh, 180px); }
.ch-no { color: var(--accent); margin-bottom: 18px; }
.ch-title { font-size: clamp(72px, 19vw, 360px); margin-left: -0.04em; }
.ch-lead {
  max-width: 860px; margin: clamp(40px, 7vh, 90px) 0 0 auto;
}
.lead { font-size: clamp(24px, 2.6vw, 40px); font-weight: 640; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.lead em { font-style: normal; color: var(--accent); }
.ch-lead .body { margin-top: 26px; color: var(--ink-soft); font-size: clamp(16px, 1.3vw, 19px); max-width: 38em; text-wrap: pretty; }
.status-line { margin-top: 30px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.status-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* — Work index (day) —————————————————————————————————————————————————— */
.index { margin-top: clamp(56px, 9vh, 120px); border-top: 1px solid var(--line); }
.ix-row {
  display: grid;
  grid-template-columns: 64px 1.4fr 1fr auto;
  gap: clamp(16px, 3vw, 48px); align-items: baseline;
  padding: clamp(22px, 3.5vh, 40px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ix-row:hover { padding-left: 14px; }
.ix-no { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--accent); }
.ix-title { font-size: clamp(24px, 3vw, 46px); font-weight: 800; font-stretch: var(--disp-stretch); text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; }
.ix-desc { color: var(--ink-soft); font-size: 15px; text-wrap: pretty; }
.ix-meta { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); text-align: right; line-height: 2; white-space: nowrap; }
@media (max-width: 760px) {
  .ix-row { grid-template-columns: 40px 1fr; }
  .ix-meta { text-align: left; grid-column: 2; }
  .ix-desc { grid-column: 2; }
}

/* — Scrolling skill band —————————————————————————————————————————————— */
/* Static counterpart rendered alongside the band; phones swap them. */
.skill-cloud { display: none; }
.marquee {
  margin-top: clamp(56px, 9vh, 110px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 18px 0;
  display: flex;
}
.marquee .mq {
  display: inline-flex; align-items: center; gap: 0; flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee .mq { animation: mq var(--mq-dur, 36s) linear infinite; }
  .marquee.rev .mq { animation-direction: reverse; }
  @keyframes mq { to { transform: translateX(-100%); } }
}
.mq span {
  font-size: clamp(18px, 1.9vw, 28px); font-weight: 700; font-stretch: var(--disp-stretch);
  text-transform: uppercase; letter-spacing: 0.02em; padding: 0 18px;
}
.mq i { font-style: normal; color: var(--accent); padding: 0 4px; }

/* — Transition (sunset) ——————————————————————————————————————————————— */
#gecis {
  min-height: 88svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 26px;
}
/* width: 100% — centered flex parent must not grow past the viewport,
   or fitDisplay would measure against an already-overflowing box. */
.gecis-line { font-size: clamp(44px, 9.5vw, 170px); width: 100%; }
.gecis-line i { font-style: normal; color: var(--accent); }
#gecis .mono { color: var(--ink-soft); }

/* — Night: game cards ————————————————————————————————————————————————— */
.stack { margin-top: clamp(56px, 9vh, 120px); display: grid; gap: clamp(20px, 4vh, 44px); padding-bottom: 8vh; }
.game {
  position: sticky; top: calc(76px + var(--i) * 30px);
  background: var(--card); border: 1px solid var(--line);
  padding: clamp(22px, 3.5vw, 52px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px);
  min-height: min(72vh, 640px);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.35);
  transition: background-color 0.9s ease, border-color 0.9s ease;
}
.g-head { display: flex; flex-direction: column; }
.g-top { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-soft); }
.g-status { color: var(--accent); }
.g-title { font-size: clamp(40px, 5.6vw, 96px); margin-top: 22px; }
.g-desc { color: var(--ink-soft); margin-top: auto; padding-top: 28px; max-width: 30em; font-size: clamp(15px, 1.25vw, 18px); text-wrap: pretty; }
.g-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.g-links { display: flex; gap: 18px; margin-top: 18px; }
.g-links a { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.ph {
  border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, transparent 0 12px, var(--line) 12px 13px);
  display: flex; align-items: center; justify-content: center;
  min-height: 260px;
}
.ph span {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-soft); background: var(--card); padding: 8px 14px; border: 1px solid var(--line);
}
.shot {
  position: relative; border: 1px solid var(--line);
  overflow: hidden; min-height: 260px;
}
.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; min-height: 0; position: static; }
  .ph { min-height: 200px; }
  .shot { min-height: 240px; }
}

/* — Epilogue —————————————————————————————————————————————————————————— */
#epilog { padding-top: clamp(90px, 16vh, 180px); }
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.metric { padding: clamp(24px, 3.5vh, 44px) 0; border-bottom: 1px solid var(--line); }
.metric + .metric { padding-left: clamp(16px, 2.5vw, 40px); border-left: 1px solid var(--line); }
.m-val { font-size: clamp(44px, 5.5vw, 96px); }
.m-label { color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 860px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(odd) { border-left: none; padding-left: 0; }
}
.contact { padding: clamp(70px, 12vh, 150px) 0 0; }
.contact .mono { color: var(--ink-soft); }
.contact-title { font-size: clamp(64px, 14vw, 270px); margin: 18px 0 clamp(36px, 6vh, 70px) -0.04em; width: 100%; }
.contact-title i { font-style: normal; color: var(--accent); }
.email {
  display: inline-block; text-decoration: none;
  font-size: clamp(20px, 3.4vw, 54px); font-weight: 700; font-stretch: var(--disp-stretch);
  letter-spacing: -0.01em;
  border-bottom: 3px solid var(--accent); padding-bottom: 6px;
  transition: color 0.2s;
}
.email:hover { color: var(--accent); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 5vh, 56px); }
.social a {
  text-decoration: none; color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  transition: color 0.2s, border-color 0.2s;
}
.social a:hover { color: var(--ink); border-color: var(--ink); }

footer {
  margin-top: clamp(70px, 12vh, 140px);
  padding: 26px var(--pad);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--ink-soft);
}
footer .f-brand { display: flex; align-items: center; gap: 10px; }
footer .wolf { width: 18px; height: auto; opacity: 0.8; }

/* ============================================================================
   Mobile (≤640px) — phone-first rework of the same Day/Night language:
   stacked hero, compact 44px-target nav, single-column index, full-bleed
   marquees, image-on-top game cards, tight vertical rhythm, safe areas.
   ========================================================================== */
@media (max-width: 640px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .mono { font-size: 11px; letter-spacing: 0.1em; }
  .display { line-height: 0.9; }
  .outline { -webkit-text-stroke: 1.6px var(--ink); }

  /* — opening (intro) — */
  .i-meta { left: 16px; right: 16px; }
  .i-meta-top { top: max(20px, env(safe-area-inset-top)); }
  .i-meta-bot { bottom: max(72px, calc(env(safe-area-inset-bottom) + 64px)); }
  .i-stage { width: 100%; }
  .i-wolf { width: 48px; margin-bottom: 22px; }
  .i-name { font-size: clamp(40px, 14.5vw, 72px); }
  .i-rule { margin: 20px auto 14px; width: min(280px, 72%); }
  .i-tag { padding: 0 12px; }
  .i-skip {
    left: 50%; right: auto; transform: translateX(-50%);
    bottom: max(18px, env(safe-area-inset-bottom));
    font-size: 12px; padding: 12px 22px; min-height: 44px;
  }

  /* — navigation — */
  .nav {
    gap: 8px; padding: 10px var(--pad);
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .brand { font-size: 12px; gap: 8px; letter-spacing: 0.06em; min-height: 44px; white-space: nowrap; }
  .brand .wolf { width: 20px; }
  .nav nav { gap: 2px; }
  .nav nav a {
    display: inline-flex; align-items: center;
    padding: 0 10px; min-height: 44px;
    font-size: 10px; letter-spacing: 0.08em;
  }
  .lang-switch { margin-left: 4px; }
  .lang-switch button { padding: 0 10px; min-height: 44px; font-size: 10px; }
  section { scroll-margin-top: 72px; }

  /* — curtain (hero) — */
  #perde { min-height: 88svh; padding-top: 84px; padding-bottom: 12px; }
  .kicker { margin-bottom: 18px; line-height: 1.8; }
  .hero-name { font-size: clamp(56px, 19.5vw, 110px); }
  .hn-row { display: block; }
  .hn-line { display: block; }
  .hn-meta {
    display: block; margin-top: 16px; max-width: none;
    font-size: 11px; letter-spacing: 0.12em; line-height: 1.8;
  }
  .hero-foot { display: grid; gap: 16px; margin-top: 24px; padding-top: 18px; }
  .hero-tag { font-size: 17px; max-width: none; }
  .scroll-cue { gap: 10px; }
  .cue-line { width: 28px; height: 1px; }
  .cue-line::after { top: 0; left: -100%; animation-name: cueSlide; }
  @keyframes cueSlide { 0% { left: -100%; } 60% { left: 100%; } 100% { left: 100%; } }

  /* — chapters — */
  .chapter { padding-top: 52px; }
  .ch-no { margin-bottom: 12px; }
  .ch-title { font-size: clamp(72px, 24vw, 140px); }
  .ch-lead { margin-top: 20px; max-width: none; }
  .lead { font-size: 23px; line-height: 1.25; }
  .ch-lead .body { margin-top: 16px; font-size: 15px; max-width: none; }
  .status-line { margin-top: 14px; gap: 8px; }
  .status-line::before { width: 7px; height: 7px; flex-shrink: 0; }

  /* — work index — */
  .index { margin-top: 24px; }
  .ix-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .ix-row:hover { padding-left: 0; }
  .ix-row .ix-desc, .ix-row .ix-meta { grid-column: auto; }
  .ix-no { font-size: 12px; }
  .ix-title { font-size: 24px; line-height: 1.05; }
  .ix-desc { font-size: 14px; }
  .ix-meta { font-size: 10px; line-height: 1.9; white-space: normal; }

  /* — skill bands → static tag cloud — */
  .marquee { display: none; }
  .skill-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }

  /* — sunset transition — */
  #gecis { min-height: 38svh; gap: 14px; padding-top: 40px; padding-bottom: 8px; }
  .gecis-line { font-size: clamp(40px, 13vw, 76px); }
  #gecis .mono { max-width: 22em; line-height: 1.9; }

  /* — night: game cards — */
  .stack { margin-top: 24px; gap: 14px; padding-bottom: 8px; }
  .game { padding: 16px; gap: 14px; box-shadow: none; }
  .g-top { flex-direction: column; gap: 4px; line-height: 1.7; }
  .g-title { font-size: clamp(34px, 9.5vw, 52px); margin-top: 10px; }
  .g-desc { margin-top: 10px; padding-top: 0; font-size: 15px; max-width: none; }
  .g-foot { gap: 6px; margin-top: 12px; }
  .tag { font-size: 10px; padding: 6px 11px; }
  .g-links { flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .g-links a {
    text-decoration: none;
    display: inline-flex; align-items: center;
    border: 1px solid var(--ink); border-radius: 999px;
    padding: 0 16px; min-height: 44px; font-size: 11px;
  }
  .g-links a:active { background: var(--ink); color: var(--bg); }
  .ph, .shot { order: -1; aspect-ratio: 16 / 9; min-height: 0; }
  .ph span { font-size: 10px; padding: 7px 12px; margin: 0 14px; text-align: center; }

  /* — epilogue — */
  #epilog { padding-top: 52px; }
  .metric { padding: 16px 0; }
  .metric:nth-child(even) { padding-left: 18px; }
  .m-val { font-size: clamp(40px, 11vw, 64px); }
  .m-label { margin-top: 8px; font-size: 10px; }
  .contact { padding: 40px 0 0; }
  .contact-title { font-size: clamp(52px, 17vw, 100px); margin: 12px 0 20px -0.04em; }
  .email {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(14px, 4.1vw, 18px); font-weight: 500; font-stretch: normal;
    letter-spacing: 0.01em;
    border-bottom-width: 2px; padding: 8px 0;
    word-break: break-all;
  }
  .social { gap: 8px; margin-top: 20px; }
  .social a {
    display: inline-flex; align-items: center;
    padding: 0 16px; min-height: 44px;
    font-size: 11px; letter-spacing: 0.08em;
  }
  .social a:active { color: var(--ink); border-color: var(--ink); }

  /* — footer — */
  footer {
    margin-top: 40px;
    padding: 20px var(--pad);
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    display: grid; gap: 10px;
  }
  footer .wolf { width: 16px; }
}

/* Very narrow phones: wolf mark alone leaves room for links + language. */
@media (max-width: 480px) {
  .brand span { display: none; }
}
