/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #fafafa;
  --text: #04111f;
  --muted: #717880;
  --nav-muted: #5b5f63;
  --surface: #f0f1f4;
  --surface-2: #e9e9f0;
  --line: rgba(4, 17, 31, 0.08);
  --accent: #1d4e89;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --container: 1152px;
  --narrow: 900px;
  --gutter: 48px;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }

.container { width: min(var(--container), 100% - var(--gutter)); margin-inline: auto; }
.narrow { width: min(var(--narrow), 100% - var(--gutter)); margin-inline: auto; }
.muted { color: var(--muted); }

/* Pastel glow, top-right */
.glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 760px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.glow::before {
  content: "";
  position: absolute;
  top: -320px;
  right: -260px;
  width: 1150px;
  height: 720px;
  background:
    radial-gradient(closest-side at 38% 45%, rgba(150, 190, 235, 0.5), transparent),
    radial-gradient(closest-side at 70% 62%, rgba(200, 215, 230, 0.6), transparent),
    radial-gradient(closest-side at 22% 70%, rgba(175, 205, 225, 0.35), transparent);
  filter: blur(40px);
}

/* ==========================================================================
   Navigation pill
   ========================================================================== */
.nav {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 20px;
  background: rgba(233, 233, 240, 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
  animation: navIn 0.7s var(--ease) both;
}
.nav-pill::-webkit-scrollbar { display: none; }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-10px); filter: blur(6px); }
}

.nav-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(4, 17, 31, 0.06), 0 4px 12px rgba(4, 17, 31, 0.04);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.2s;
  z-index: 0;
}

.nav-item {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  color: var(--nav-muted);
  white-space: nowrap;
  transition: color 0.25s;
}
.nav-item:hover,
.nav-item.active { color: var(--text); }

.nav-back {
  padding-left: 16px;
  padding-right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.nav-back svg { transition: transform 0.25s var(--ease); }
.nav-back:hover svg { transform: translateX(-3px); }

.nav-sep {
  flex: none;
  width: 1px;
  height: 20px;
  margin: 0 8px 0 4px;
  background: rgba(4, 17, 31, 0.12);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 40px; }
.hero[hidden] { display: none; }

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, #96beeb, transparent 60%),
    radial-gradient(circle at 80% 85%, #c8d7e6, transparent 60%),
    #1d4e89;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; border-radius: 50%; font-size: 11px; }

.hero h1 {
  margin-top: 16px;
  font-size: 40px;
  line-height: 44px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: 12px;
  max-width: 400px;
  color: var(--muted);
  line-height: 1.45;
}

.hero-actions { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #18273a; box-shadow: 0 6px 18px rgba(4, 17, 31, 0.18); }
.btn-light { background: var(--surface-2); color: var(--text); }
.btn-light:hover { background: #e0e0ea; }

/* ==========================================================================
   View transitions + reveal
   ========================================================================== */
.view { transition: opacity 0.2s ease, transform 0.2s ease; }
.view.leaving { opacity: 0; transform: translateY(6px); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease) var(--d, 0s),
    transform 0.8s var(--ease) var(--d, 0s),
    filter 0.8s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .nav-pill { animation: none; }
  .view, .nav-indicator { transition: none; }
}

/* ==========================================================================
   Media (generated visuals)
   ========================================================================== */
.media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  container-type: inline-size;
  background: #eef0f6;
  isolation: isolate;
}
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
}

.theme-sky {
  background:
    radial-gradient(60% 60% at 10% 10%, rgba(150, 190, 235, 0.85), transparent),
    radial-gradient(60% 60% at 90% 90%, rgba(200, 215, 230, 0.9), transparent),
    #e9eef4;
}
.theme-lilac {
  background:
    radial-gradient(60% 60% at 90% 10%, rgba(170, 200, 235, 0.85), transparent),
    radial-gradient(60% 60% at 0% 100%, rgba(210, 222, 234, 0.9), transparent),
    #eef2f6;
}
.theme-peach {
  background:
    radial-gradient(60% 60% at 0% 0%, rgba(185, 205, 225, 0.9), transparent),
    radial-gradient(55% 60% at 100% 90%, rgba(140, 180, 225, 0.75), transparent),
    #edf1f5;
}
.theme-sun {
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(160, 195, 230, 0.8), transparent),
    radial-gradient(60% 60% at 0% 90%, rgba(215, 225, 235, 0.95), transparent),
    #f0f3f7;
}
.theme-mint {
  background:
    radial-gradient(60% 60% at 0% 100%, rgba(150, 190, 235, 0.8), transparent),
    radial-gradient(60% 60% at 100% 0%, rgba(195, 212, 230, 0.9), transparent),
    #ebf0f5;
}

/* 1em = 1% of the media width */
.mk { position: absolute; font-size: 1cqw; line-height: 1.25; color: var(--text); }
.mk * { box-sizing: border-box; }

.mk-frame {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 0.15em solid rgba(255, 255, 255, 0.7);
  border-radius: 2.6em;
  padding: 1.4em;
  box-shadow: 0 2em 5em rgba(30, 40, 80, 0.15);
}
.mk-card { background: #fff; border-radius: 1.6em; padding: 1.8em; }
.mk-dark { background: linear-gradient(160deg, #414b5b, #2a3240); color: #fff; border-radius: 1.6em; padding: 2.2em; }
.mk-label { font-size: 0.85em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }
.mk-big { font-size: 3.6em; font-weight: 700; letter-spacing: -0.02em; margin: 0.25em 0 0.5em; }
.mk-big small { font-size: 0.32em; font-weight: 600; opacity: 0.55; margin-left: 0.4em; letter-spacing: 0; }
.mk-progress { height: 0.5em; border-radius: 1em; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.mk-progress i { display: block; height: 100%; width: 38%; background: #93b6ff; border-radius: inherit; }
.mk-stats { display: flex; gap: 3.5em; margin-top: 2.2em; }
.mk-stats b { display: block; font-size: 1.25em; margin-top: 0.3em; }
.mk-pill { position: absolute; right: 2.2em; bottom: 2.2em; background: #fff; color: var(--text); font-size: 0.95em; font-weight: 700; padding: 0.7em 1.4em; border-radius: 1em; }

.mk-dash { left: 8%; right: 8%; top: 9%; bottom: 9%; display: grid; grid-template-rows: 1.05fr 1fr; gap: 1.4em; }
.mk-dash .mk-dark { position: relative; }
.mk-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.4em; min-height: 0; }
.mk-split .mk-card { min-height: 0; overflow: hidden; }
.mk-mid { font-size: 2.2em; font-weight: 700; margin: 0.3em 0 0.6em; }
.mk-mid small { font-size: 0.4em; color: #e8622c; font-weight: 700; margin-left: 0.4em; }
.mk-bars { display: flex; align-items: flex-end; gap: 1.1em; height: 8em; }
.mk-bars i { flex: 1; border-radius: 0.4em; background: #dfe2e9; }
.mk-bars i:nth-child(2n) { background: #3e4757; }
.mk-row { display: flex; align-items: center; gap: 1em; padding: 0.75em 0; border-bottom: 0.1em solid #f0f1f4; }
.mk-row:last-child { border-bottom: 0; }
.mk-ico { width: 2.4em; height: 2.4em; border-radius: 0.8em; flex: none; }
.mk-row .t { flex: 1; min-width: 0; }
.mk-row .t b { display: block; font-size: 1em; }
.mk-row .t span { font-size: 0.8em; color: var(--muted); }
.mk-row .a { font-size: 0.95em; font-weight: 700; }

.ln { display: block; height: 0.8em; border-radius: 1em; background: #e6e8ee; }

/* Phones */
.mk-phones { inset: 0; }
.mk-phone {
  position: absolute;
  width: 27em;
  aspect-ratio: 9 / 18.5;
  background: #fff;
  border-radius: 3.6em;
  padding: 1.4em;
  box-shadow: 0 2.5em 5em rgba(30, 30, 80, 0.2);
  transform: rotate(-13deg);
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.mk-phone:nth-child(1) { left: -4%; top: 22%; }
.mk-phone:nth-child(2) { left: 25%; top: 8%; }
.mk-phone:nth-child(3) { left: 54%; top: 4%; }
.mk-phone:nth-child(4) { left: 83%; top: 6%; }
.mk-art { aspect-ratio: 1; border-radius: 2.4em; }
.mk-phone .ttl { font-size: 1.6em; font-weight: 700; text-align: center; }
.mk-phone .sub { font-size: 1.1em; color: var(--muted); text-align: center; margin-top: -0.6em; }
.mk-ctrl { display: flex; justify-content: space-around; align-items: center; margin-top: auto; padding-bottom: 1em; }
.mk-ctrl i { width: 2em; height: 2em; border-radius: 50%; background: #e6e8ee; }
.mk-ctrl i.play { width: 4.4em; height: 4.4em; background: #f0f1f4; position: relative; }
.mk-ctrl i.play::after { content: ""; position: absolute; left: 1.7em; top: 1.3em; border-left: 1.4em solid var(--text); border-top: 0.9em solid transparent; border-bottom: 0.9em solid transparent; }
.mk-lyrics { font-size: 1.5em; font-weight: 700; line-height: 1.3; }
.mk-lyrics span { color: #c4c7cf; }

.art-a { background: radial-gradient(circle at 40% 35%, #f1a35d, transparent 45%), radial-gradient(circle at 70% 75%, #6b2d1f, transparent 60%), linear-gradient(160deg, #c2763f, #3b1a14); }
.art-b { background: radial-gradient(circle at 60% 40%, #fbe7c6, transparent 40%), radial-gradient(circle at 50% 65%, #f08a4b 0 12%, transparent 30%), linear-gradient(180deg, #f6efd9, #e9dfc2); }
.art-c { background: radial-gradient(circle at 30% 30%, #b8e1c8, transparent 50%), linear-gradient(140deg, #3e7a5c, #1f3d36 70%); }
.art-d { background: conic-gradient(from 200deg at 50% 50%, #ffb3c7, #b9a6ff, #8fd3ff, #ffb3c7); }

/* Table / workflow */
.mk-table { left: 7%; right: -4%; top: 11%; bottom: -8%; padding: 2em; }
.mk-tabs { display: flex; gap: 0.8em; margin-bottom: 1.4em; }
.mk-tabs span { font-size: 0.95em; font-weight: 700; padding: 0.7em 1.2em; border-radius: 0.9em; color: var(--muted); background: rgba(255, 255, 255, 0.6); }
.mk-tabs span.on { background: #2a3240; color: #fff; }
.mk-head { position: relative; }
.mk-head .ttl { font-size: 1.5em; font-weight: 700; }
.mk-head .desc { font-size: 0.95em; opacity: 0.6; margin: 0.6em 0 1.6em; max-width: 60%; }
.mk-head .nums { display: flex; gap: 3em; }
.mk-head .nums b { display: block; font-size: 2.2em; }
.mk-head .nums span { font-size: 0.8em; opacity: 0.55; }
.mk-table .mk-card { margin-top: 1.2em; border-radius: 1.6em; padding: 1.4em 1.8em; }
.mk-av { width: 2.8em; height: 2.8em; border-radius: 0.9em; background: #2a3240; color: #fff; font-size: 0.8em; font-weight: 700; display: grid; place-items: center; flex: none; }

/* Roadmap */
.mk-roadmap { font-size: 1.3cqw; left: 7%; right: 7%; top: 11%; bottom: -8%; padding: 1.8em; }
.mk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4em; }
.mk-col { background: rgba(255, 255, 255, 0.55); border-radius: 1.6em; padding: 1.4em; display: flex; flex-direction: column; gap: 1em; }
.mk-col > .mk-label { margin: 0.2em 0 0.2em 0.2em; }
.mk-ticket { background: #fff; border-radius: 1.2em; padding: 1.3em; box-shadow: 0 0.4em 1.2em rgba(30, 40, 80, 0.06); }
.mk-ticket > i { display: block; width: 3em; height: 0.5em; border-radius: 1em; margin-bottom: 0.9em; }
.mk-ticket b { display: block; font-size: 1.25em; }
.mk-meta { display: flex; justify-content: space-between; margin-top: 0.9em; font-size: 0.9em; color: var(--muted); }
.mk-meta .score { color: var(--text); font-weight: 700; }

/* Chat (AI agent) */
.mk-chat { font-size: 1.55cqw; left: 10%; right: 10%; top: 9%; bottom: -10%; padding: 2em; display: flex; flex-direction: column; gap: 1.2em; }
.mk-chat-head { display: flex; align-items: center; gap: 1em; padding-bottom: 1.2em; border-bottom: 0.1em solid rgba(4, 17, 31, 0.08); }
.mk-chat-head > i { width: 3.2em; height: 3.2em; border-radius: 1em; background: linear-gradient(135deg, #8b6cf6, #5b3fd6); }
.mk-chat-head b { display: block; font-size: 1.3em; }
.mk-chat-head span { font-size: 0.9em; color: var(--muted); }
.mk-chat-head em { margin-left: auto; font-style: normal; font-size: 0.85em; font-weight: 700; color: #1f9d55; background: #e3f6ea; padding: 0.4em 0.9em; border-radius: 1em; }
.mk-msg { max-width: 78%; padding: 1em 1.3em; border-radius: 1.3em 1.3em 1.3em 0.4em; background: #fff; font-size: 1.1em; font-weight: 600; box-shadow: 0 0.3em 1em rgba(30, 40, 80, 0.06); }
.mk-msg.me { align-self: flex-end; background: #2a3240; color: #fff; border-radius: 1.3em 1.3em 0.4em 1.3em; }
.mk-msg.card { font-weight: 500; display: flex; flex-direction: column; gap: 0.7em; }
.mk-li { display: flex; align-items: center; gap: 0.8em; }
.mk-li span { width: 1.7em; height: 1.7em; border-radius: 0.5em; background: #efeafe; color: #5b3fd6; font-size: 0.85em; font-weight: 800; display: grid; place-items: center; }
.mk-actions { display: flex; gap: 0.7em; }
.mk-actions span { font-size: 0.95em; font-weight: 700; padding: 0.7em 1.2em; border-radius: 1em; background: rgba(255, 255, 255, 0.8); }
.mk-actions span.on { background: #5b3fd6; color: #fff; }

.mk-li .src { margin-left: auto; font-style: normal; font-size: 0.8em; font-weight: 700; color: #5b3fd6; background: #efeafe; padding: 0.25em 0.7em; border-radius: 0.8em; }
.mk-cands .mk-card { margin-top: 0; }
.mk-cand-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 0.8em; border-bottom: 0.1em solid #f0f1f4; }
.mk-cand-head b { font-size: 1.3em; }
.mk-cand-head span { font-size: 0.9em; color: var(--muted); }
.mk-gli { font-size: 0.8em; font-weight: 700; color: #1d4e89; background: #e6eef7; padding: 0.35em 0.8em; border-radius: 0.8em; }
.mk-status { font-size: 0.85em; font-weight: 700; padding: 0.4em 0.9em; border-radius: 0.8em; min-width: 6.5em; text-align: center; }
.mk-cands { font-size: 1.25cqw; }

/* Automation flow */
.mk-flow { inset: 0; }
.mk-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-flow path { fill: none; stroke: rgba(4, 17, 31, 0.35); stroke-width: 0.4; stroke-dasharray: 1.2 1; vector-effect: none; }
.mk-node { position: absolute; display: flex; align-items: center; gap: 1.2em; padding: 1.4em 2em 1.4em 1.4em; background: #fff; border-radius: 1.6em; box-shadow: 0 1em 3em rgba(30, 40, 80, 0.12); }
.mk-node i { width: 3.6em; height: 3.6em; border-radius: 1em; }
.mk-node b { font-size: 2em; }

/* Simulator form */
.mk-sim { font-size: 1.35cqw; left: 14%; right: 14%; top: 8%; bottom: -6%; padding: 2.2em; display: flex; flex-direction: column; gap: 1.1em; background: rgba(255, 255, 255, 0.85); }
.mk-sim-head b { display: block; font-size: 1.5em; margin-top: 0.3em; }
.mk-sim-step { font-size: 0.85em; font-weight: 700; color: var(--accent); }
.mk-sim-progress { height: 0.5em; border-radius: 1em; background: #e6e9ef; }
.mk-sim-progress i { display: block; width: 33%; height: 100%; border-radius: inherit; background: var(--accent); }
.mk-field span { display: block; font-size: 0.9em; font-weight: 600; color: var(--muted); margin-bottom: 0.4em; }
.mk-field div { display: flex; justify-content: space-between; padding: 0.8em 1em; border-radius: 0.8em; background: #fff; border: 0.1em solid #e3e6ec; font-weight: 600; }
.mk-field em { font-style: normal; color: var(--muted); }
.mk-sim-result { display: flex; justify-content: space-between; align-items: center; padding: 1em 1.2em; border-radius: 1em; background: #e6eef7; color: var(--accent); }
.mk-sim-result span { font-weight: 600; }
.mk-sim-result b { font-size: 1.4em; }
.mk-sim-cta { text-align: center; padding: 0.9em; border-radius: 0.9em; background: var(--text); color: #fff; font-weight: 700; }

/* Website */
.mk-site { left: 9%; right: 9%; top: 10%; bottom: -10%; padding: 0; overflow: hidden; }
.mk-bar { display: flex; gap: 0.6em; padding: 1.2em 1.6em; background: rgba(255, 255, 255, 0.85); }
.mk-bar i { width: 1em; height: 1em; border-radius: 50%; background: #e2e4ea; }
.mk-page { background: #fbfbfb; padding: 2.4em 3em; height: 100%; }
.mk-page .h { font-size: 2.6em; font-weight: 600; letter-spacing: -0.02em; }
.mk-page .h span { color: var(--muted); }
.mk-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; margin-top: 2.2em; }
.mk-grid4 div { background: #f0f1f4; border-radius: 1em; padding: 1.2em; }
.mk-grid4 b { display: block; font-size: 1.1em; margin-bottom: 0.6em; }
.mk-grid4 .ln { height: 0.6em; margin-top: 0.4em; }
.mk-books { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1em; margin-top: 2.2em; }
.mk-books i { aspect-ratio: 0.72; border-radius: 1em; }


/* Real screenshots framed on a gradient */
.shot {
  position: absolute;
  left: 7%;
  top: 10%;
  width: 128%;
  padding: 0.6cqw;
  border-radius: 1.6cqw 0 0 0;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2cqw 5cqw rgba(30, 40, 80, 0.18);
}
.shot img { width: 100%; height: auto; border-radius: 1.1cqw 0 0 0; }
.figure .media:has(.shot), .case-hero .media:has(.shot) { aspect-ratio: auto; }
.figure .media:has(.shot) .media-inner, .case-hero .media:has(.shot) .media-inner { position: relative; padding: 5.5% 6% 0; }
.figure .shot, .case-hero .shot { position: relative; left: auto; top: auto; width: auto; border-bottom: 0; border-radius: 1.4cqw 1.4cqw 0 0; }
.figure .shot img, .case-hero .shot img { border-radius: 0.9cqw 0.9cqw 0 0; }

/* ==========================================================================
   Work grid
   ========================================================================== */
.work { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; }

.card { display: block; }
.card .media { box-shadow: 0 0 0 1px rgba(4, 17, 31, 0.03); transition: box-shadow 0.5s var(--ease); }
.card:hover .media-inner { transform: scale(1.035); }
.card:hover .media { box-shadow: 0 18px 50px rgba(30, 40, 80, 0.12); }
.caption { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.caption .c-meta { display: flex; align-items: center; gap: 8px; }
.caption .c-client { font-size: 13px; font-weight: 700; color: var(--accent); background: #e6eef7; padding: 3px 10px; border-radius: 8px; }
.caption .c-year { font-size: 13px; font-weight: 600; color: var(--muted); }
.caption .c-title { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; color: var(--text); max-width: 95%; }
.caption .c-arrow { display: inline-block; margin-left: 8px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.card:hover .c-arrow { opacity: 1; transform: none; }
.caption.sm { gap: 6px; margin-top: 12px; }
.caption.sm .c-title { font-size: 15px; }
.caption.sm .c-client, .caption.sm .c-year { font-size: 12px; }

/* Generative art (1em = 1% width) */
.art { position: absolute; inset: 0; font-size: 1cqw; overflow: hidden; }
.art-type { background: #f3efe7; display: flex; flex-direction: column; justify-content: center; }
.art-type span { display: block; font-size: 19em; font-weight: 800; line-height: 0.82; letter-spacing: -0.06em; white-space: nowrap; }
.art-type span:nth-child(1) { color: #1c2533; transform: translateX(-4%); }
.art-type span:nth-child(2) { color: #e8622c; transform: translateX(6%); font-style: italic; }
.art-type span:nth-child(3) { color: #8b7cf6; transform: translateX(-14%); }
.art-type span:nth-child(4) { color: #1c2533; transform: translateX(-4%); -webkit-text-stroke: 0.04em #1c2533; color: transparent; }

.art-dusk { background: linear-gradient(180deg, #f5d9b8 0%, #f2b28d 40%, #c97f78 62%, #4b5c4a 62%, #2d3d33 100%); }
.art-dusk::before { content: ""; position: absolute; left: 58%; top: 26%; width: 22em; height: 22em; border-radius: 50%; background: radial-gradient(circle, #fff3d6, #ffd29a 60%, transparent 62%); }
.art-dusk::after { content: ""; position: absolute; left: -20%; right: -20%; top: 55%; height: 30em; border-radius: 50% 50% 0 0; background: #6b7b5a; box-shadow: 30em 6em 0 #3f5141; }
.art-dusk2 { background: radial-gradient(circle at 50% 38%, #f2c2a7 0 14em, transparent 14.2em), radial-gradient(ellipse at 50% 100%, #b5322b 0 34em, transparent 34.3em), linear-gradient(180deg, #1f3a32, #12241f); }
.art-dusk2::before { content: ""; position: absolute; left: 50%; top: 18%; width: 40em; height: 26em; transform: translateX(-50%); border-radius: 50% 50% 40% 40%; background: repeating-linear-gradient(90deg, #2f5a4c 0 1.2em, #27493e 1.2em 2.4em); }
.art-dusk2::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#fff 0.15em, transparent 0.2em); background-size: 9em 11em; opacity: 0.35; }

.art-brush { background: #2d6fd8; }
.art-brush i { position: absolute; border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; filter: blur(0.3em); }
.art-brush i:nth-child(1) { width: 90em; height: 50em; left: -10%; top: 5%; background: repeating-linear-gradient(120deg, #f4f1ea 0 2em, #e6e1d6 2em 3em); transform: rotate(-20deg); }
.art-brush i:nth-child(2) { width: 50em; height: 60em; right: -15%; top: 30%; background: #e88ca0; transform: rotate(25deg); }
.art-brush i:nth-child(3) { width: 30em; height: 50em; right: -12%; bottom: -20%; background: #f2b632; }
.art-brush i:nth-child(4) { width: 55em; height: 30em; left: 10%; bottom: -8%; background: repeating-linear-gradient(60deg, #3c83ef 0 2em, #2a62c4 2em 4em); }

.art-blooms { background: #fbfaf7; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7em; padding: 10em; }
.art-blooms i { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--k) 0 17%, transparent 18%), repeating-conic-gradient(from var(--r, 0deg), var(--c) 0 24deg, transparent 24deg 45deg); }

.art-grain { background: linear-gradient(160deg, #d9e6f2, #b8c9dc 45%, #f2d4c4 100%); }
.art-grain::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 0.3em, transparent 0.3em 1.2em); }
.art-grain::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 45%; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, #3a4a64, #1d2638); }

.art-orbit { background: radial-gradient(circle at 50% 55%, #fff 0 4em, transparent 4.2em), repeating-radial-gradient(circle at 50% 55%, #ff9fbf 0 1em, #ffd27a 1em 2em, #8fd3ff 2em 3em, #b9a6ff 3em 4em, #e9e7ef 4em 8em); }

.art-shapes { background: #f1eee8; }
.art-shapes i { position: absolute; }
.art-shapes i:nth-child(1) { width: 44em; height: 44em; border-radius: 50%; background: #e8622c; left: 8%; top: 10%; }
.art-shapes i:nth-child(2) { width: 40em; height: 40em; background: #1f6fb2; right: 8%; bottom: 10%; mix-blend-mode: multiply; }
.art-shapes i:nth-child(3) { width: 30em; height: 30em; border-radius: 50% 50% 0 0; background: #f2c94c; left: 18%; bottom: 8%; mix-blend-mode: multiply; }
.art-shapes i:nth-child(4) { width: 16em; height: 16em; border-radius: 50%; background: #1c2533; right: 18%; top: 12%; }

.art-swatches { background: #fbfbfb; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.6em; padding: 7em; }
.art-swatches i { border-radius: 1.6em; }

/* ==========================================================================
   Sections (about / resume / case study)
   ========================================================================== */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
.page-top { margin-top: 64px; }
.page-top.ruled { border-top: 1px solid var(--line); padding-top: 56px; }

.h2 { font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.h2 .muted { color: var(--muted); }
.h3 { font-size: 20px; line-height: 1.2; font-weight: 600; }
.lead p, .prose p { color: var(--muted); line-height: 1.6; }
.prose p + p { margin-top: 16px; }

/* About */
.about-intro { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); gap: 40px; align-items: start; }
.about-photo { margin: 0; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; display: block; }
.about-text { padding-top: 16px; max-width: 580px; }
.about-text .prose { margin-top: 28px; }
.about-text .btn { margin-top: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 600; transition: transform 0.3s var(--ease), background 0.3s; }
.chip:hover { transform: translateY(-2px); background: #e8e9ee; }
.chip .thumb { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.chips.plain .chip { padding: 9px 12px; font-weight: 500; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.value { background: var(--surface); border-radius: 16px; padding: 20px; }
.value h3 { font-size: 18px; font-weight: 600; }
.value p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }

.books { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.book { aspect-ratio: 0.73; border-radius: 16px; overflow: hidden; position: relative; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); container-type: inline-size; }
.book:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 40px rgba(30, 40, 80, 0.15); }
.books:has(.has-img) { grid-template-columns: repeat(auto-fill, minmax(150px, 210px)); }
.book.has-img { aspect-ratio: 0.62; padding: 0; }
.book img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book .bt { font-weight: 800; font-size: 13cqw; line-height: 0.95; letter-spacing: -0.02em; position: relative; }
.book .ba { font-size: 6cqw; font-weight: 600; opacity: 0.75; position: relative; }
.book.grid { background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px); background-size: 14px 14px; }
.book.circle::before { content: ""; position: absolute; width: 70cqw; height: 70cqw; border-radius: 50%; border: 6cqw solid #e8622c; right: -20cqw; bottom: -10cqw; }
.book.bold .bt { font-size: 17cqw; text-transform: uppercase; }
.book.serif .bt { font-family: Georgia, serif; font-weight: 400; font-size: 18cqw; text-transform: uppercase; text-align: center; }
.book.serif::before { content: ""; position: absolute; left: 20%; right: 20%; top: 42%; height: 26%; border-radius: 50%; background: #c62828; }
.book.stack::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f2c94c 0 33%, #e85d75 33% 66%, #2ab673 66%) top / 100% 30% no-repeat; opacity: 0.9; }
.book.stack .bt { text-transform: uppercase; font-size: 16cqw; }

/* Resume */
.cv-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 16px 16px 20px; margin-bottom: 40px; border-radius: 16px; background: var(--surface); }
.cv-bar b { display: block; font-size: 15px; font-weight: 600; }
.cv-bar span { font-size: 13px; color: var(--muted); }
.cv-actions { display: flex; gap: 8px; }
.xp { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.xp:first-child { padding-top: 0; }
.xp:last-child { border-bottom: 0; }
.logo { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.logo.has-img { overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(4, 17, 31, 0.06); }
.logo.has-img img { width: 100%; height: 100%; object-fit: cover; }
.bullets { margin: 12px 0 0; padding-left: 18px; max-width: 780px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.xp p.xp-group { margin-top: 18px; color: var(--text); font-weight: 600; font-size: 14.5px; }
.bullets b { color: var(--text); font-weight: 600; }
.bullets li + li { margin-top: 4px; }
.bullets li::marker { color: #b8bcc3; }
.skill-group { margin-top: 24px; }
.skill-group p { font-size: 14px; color: var(--muted); }
.skill-group .chips { margin-top: 10px; }
.list .xp:first-child { padding-top: 20px; }
.xp h3 { font-size: 16px; font-weight: 600; }
.xp h3 .at { color: var(--muted); margin: 0 6px; font-weight: 500; }
.xp .meta { margin-top: 4px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.xp .meta i { width: 1px; height: 12px; background: var(--line); }
.xp p { margin-top: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 780px; }

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.tool { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface); transition: transform 0.3s var(--ease); }
.tool:hover { transform: translateY(-2px); }
.tool-logo { background: #fff; gap: 2px; }
.tool-logo img { width: 54%; height: 54%; object-fit: contain; display: block; }
.tool-logo.duo { display: flex; justify-content: center; align-items: center; gap: 3px; }
.tool-logo.duo img { width: 38%; height: 38%; }
.tool-logo.wide img { width: 74%; }
.tool .logo { width: 44px; height: 44px; border-radius: 11px; font-size: 18px; box-shadow: inset 0 0 0 1px rgba(4, 17, 31, 0.06); }
.tool b { display: block; font-size: 15px; font-weight: 600; }
.tool span { font-size: 13px; color: var(--muted); }

.list-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item h3 { font-size: 16px; font-weight: 600; }
.list-item p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.list { margin-top: 12px; }

/* ==========================================================================
   Case study
   ========================================================================== */
.case-head { padding-top: 170px; }
.case-meta { font-size: 14px; color: var(--muted); }
.case-meta .dot { margin: 0 8px; }
.case-head h1 { margin-top: 12px; font-size: 40px; line-height: 1.1; font-weight: 500; letter-spacing: -0.01em; }
.case-head .lead { margin-top: 16px; max-width: 700px; color: var(--muted); line-height: 1.55; }
.case-hero { margin-top: 40px; }
.case-hero .media { aspect-ratio: 16 / 9; border-radius: 24px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0 56px; }
.facts h4 { font-size: 16px; font-weight: 600; }
.facts p { margin-top: 6px; color: var(--muted); }

.cs { scroll-margin-top: 120px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); }
.cs .h2 { margin-top: 10px; }
.cs .prose { margin-top: 20px; }
.cs .sub { margin-top: 36px; }
.cs .sub .prose { margin-top: 14px; }
.issues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.issues span { padding: 9px 14px; border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 600; }
.quote { margin: 32px 0 0; padding: 28px; border-radius: 18px; background: var(--surface); }
.quote p { font-size: 18px; line-height: 1.55; color: var(--text); }
.quote footer { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.quote footer b { font-weight: 600; }
.quote footer span { color: var(--muted); }
.figure { margin: 32px 0 0; }
.module { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.module:first-of-type { border-top: 0; padding-top: 0; }
.module-rows { margin: 18px 0 0; display: grid; gap: 14px; }
.module-rows > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.module-rows dt { font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.module-rows dd { margin: 0; font-size: 16px; line-height: 1.6; }
.module-rows .res dd { font-weight: 600; color: var(--accent); }
@media (max-width: 760px) { .module-rows > div { grid-template-columns: 1fr; gap: 4px; } }
.figure figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.figure .media { aspect-ratio: 16 / 10; }
.copy-wide { margin-top: 28px; width: 100%; height: 52px; border-radius: 14px; background: var(--surface); font-size: 14px; font-weight: 600; transition: background 0.25s; position: relative; }
.copy-wide:hover { background: #e8e9ee; }

.more { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.more-grid .media { border-radius: 16px; aspect-ratio: 16 / 11; }
.more-grid .caption { margin-top: 10px; }


/* Case study blocks */
.cs-intro { margin-top: 20px; color: var(--muted); line-height: 1.6; }
.cs-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 28px; }
.cs-group { background: var(--surface); border-radius: 16px; padding: 20px 22px; }
.cs-group h3 { font-size: 15px; font-weight: 600; }
.cs-group .bullets { margin-top: 10px; font-size: 14px; }
.points { margin-top: 28px; display: flex; flex-direction: column; }
.point { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.point:first-child { border-top: 0; padding-top: 0; }
.point .num { font-size: 13px; font-weight: 700; color: var(--accent); padding-top: 3px; }
.point h3 { font-size: 17px; font-weight: 600; }
.point p { margin-top: 6px; color: var(--muted); line-height: 1.6; }
.bullets.results { margin-top: 20px; font-size: 16px; }
.bullets.results li + li { margin-top: 8px; }
.cs-link { margin-top: 28px; }

/* Side projects */
.side-projects { margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--line); }
.side-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.side-head p { max-width: 420px; color: var(--muted); font-size: 15px; }
.work-small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 20px; margin-top: 28px; }
.work-small .media { aspect-ratio: 16 / 11; border-radius: 16px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { margin-top: 96px; padding: 48px 0 80px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer.slim { margin-top: 0; }
.f-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.f-tag { margin-top: 14px; max-width: 380px; color: var(--muted); }
.f-credit { margin-top: 12px; font-size: 12px; color: var(--muted); }
.f-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.f-col a, .f-col button { overflow-wrap: anywhere; display: table; font-size: 14px; color: var(--nav-muted); padding: 4px 0; transition: color 0.2s; text-align: left; }
.f-col a:hover, .f-col button:hover { color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 10px; }
.socials a { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; color: var(--nav-muted); }

.copy { position: relative; }
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translate(-50%, 4px);
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.copy.copied .toast { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .work { gap: 48px 20px; }
  .about-intro { gap: 32px; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .work-small { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
}

@media (max-width: 760px) {
  :root { --gutter: 32px; }
  .nav { top: 12px; }
  .nav-item { padding: 8px 10px; font-size: 13px; }

  /* Hero */
  .hero { padding-top: 80px; }
  .avatar { width: 52px; height: 52px; border-radius: 15px; }
  .hero h1 { margin-top: 14px; font-size: 32px; line-height: 1.12; }
  .hero-sub { font-size: 15px; }
  .hero-actions { margin-top: 22px; }

  /* Work grid */
  .work { grid-template-columns: 1fr; gap: 40px; margin-top: 44px; }
  .side-projects { margin-top: 64px; padding-top: 40px; }
  .work-small { grid-template-columns: 1fr; gap: 32px; }
  .caption { margin-top: 14px; }
  .caption .c-title { font-size: 17px; max-width: none; }

  /* Sections */
  .page-top { margin-top: 44px; }
  .page-top.ruled { padding-top: 40px; }
  .section { padding: 40px 0; }
  .h2 { font-size: 23px; }
  .prose p, .lead p { font-size: 15.5px; }

  /* About */
  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { aspect-ratio: 4 / 5; width: 100%; max-width: 480px; }
  .about-text { padding-top: 0; }
  .books { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .books:has(.has-img) { grid-template-columns: repeat(3, minmax(0, 210px)); }
  .values { grid-template-columns: 1fr; }

  /* Resume */
  .cv-bar { padding: 16px; margin-bottom: 32px; }
  .cv-actions { width: 100%; }
  .cv-actions .btn { white-space: nowrap; }
  .cv-actions .btn-dark { flex: 1; }
  .xp { grid-template-columns: 32px 1fr; column-gap: 12px; row-gap: 0; padding: 24px 0; }
  .xp > div { display: contents; }
  .xp > div > * { grid-column: 1 / -1; }
  .xp > div > h3 { grid-column: 2; align-self: center; }
  .xp > div > .meta { grid-column: 2; margin-top: 2px; }
  .xp > div > p:not(.xp-group) { margin-top: 14px; }
  .xp .logo { width: 32px; height: 32px; grid-row: span 2; align-self: center; }
  .xp .bullets { padding-left: 16px; }
  .tools { grid-template-columns: 1fr; }

  /* Case study */
  .case-head { padding-top: 96px; }
  .case-head h1 { font-size: 27px; line-height: 1.18; }
  .case-head .lead { font-size: 15.5px; }
  .case-hero { margin-top: 28px; }
  .case-hero .media, .figure .media { border-radius: 14px; }
  .figure .media:has(.shot) .media-inner, .case-hero .media:has(.shot) .media-inner { padding: 4% 4% 0; }
  .facts { padding: 28px 0 36px; gap: 18px 16px; }
  .facts h4 { font-size: 14px; }
  .facts p { font-size: 14.5px; }
  .cs { scroll-margin-top: 80px; }
  .cs-groups { grid-template-columns: 1fr; }
  .point { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .point .num { padding-top: 0; }
  .point h3 { font-size: 16px; }
  .point p { font-size: 15px; }
  .quote { padding: 20px; }
  .quote p { font-size: 16px; }
  .figure figcaption { font-size: 13px; }
  .more { padding: 40px 0 56px; }
  .more-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }

  /* Footer */
  .footer { margin-top: 64px; padding: 40px 0 56px; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .more-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .books { grid-template-columns: repeat(2, 1fr); }
  .books:has(.has-img) { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* Tap-to-zoom for screenshots */
.figure .shot img, .case-hero .shot img { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 16, 26, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.lightbox.on { opacity: 1; }
.lightbox-scroll { max-width: 100%; max-height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.lightbox img { display: block; max-width: min(1600px, 100%); height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.lightbox-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 22px; line-height: 40px; text-align: center; }
.lightbox-hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.7); font-size: 13px; pointer-events: none; }
@media (max-width: 760px) {
  .lightbox { padding: 56px 0 44px; align-items: center; }
  .lightbox-scroll { width: 100%; border-radius: 0; }
  .lightbox img { max-width: none; width: 200vw; border-radius: 0; }
}

/* Contact dialog */
.contact-dialog {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 16, 26, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.contact-dialog.on { opacity: 1; }
.contact-card {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(10, 20, 40, 0.25);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.contact-dialog.on .contact-card { transform: none; }
.contact-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 34px; color: var(--muted); }
.contact-close:hover { background: var(--surface); color: var(--text); }
.contact-head { display: flex; align-items: center; gap: 12px; }
.contact-head .avatar.sm { width: 44px; height: 44px; border-radius: 12px; }
.contact-title { font-size: 18px; font-weight: 600; }
.contact-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.contact-email { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.contact-actions .btn { width: 100%; white-space: nowrap; }
.contact-li { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--nav-muted); }
.contact-li:hover { color: var(--text); }
.f-col [data-contact] { display: table; font-size: 14px; color: var(--nav-muted); padding: 4px 0; text-align: left; }
.f-col [data-contact]:hover { color: var(--text); }
.copy-wide { cursor: pointer; }
@media (max-width: 420px) {
  .contact-actions { grid-template-columns: 1fr; }
}
