/* ───────────────────────── Design tokens ───────────────────────── */
:root {
  --bg: #f7f6f2;
  --bg-2: #efede7;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(15, 23, 42, 0.14);
  --indigo: #4f46e5;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --grad: linear-gradient(120deg, #4f46e5 0%, #6366f1 45%, #14b8a6 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14), 0 6px 16px rgba(15, 23, 42, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --nav-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
::selection { background: rgba(79, 70, 229, 0.18); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; scroll-margin-top: 64px; }
.section-alt { background: var(--bg-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 14px; }
.section-head p { color: var(--muted); max-width: 560px; font-size: 16px; line-height: 1.7; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.18); }
.btn-primary:hover { background: #1e293b; box-shadow: 0 10px 26px rgba(15,23,42,.24); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-accent:hover { box-shadow: 0 12px 28px rgba(79,70,229,.36); }
.btn-danger { background: #fff; border-color: #fecaca; color: #b91c1c; }
.btn-danger:hover { background: #fef2f2; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, height .35s;
}
.nav.scrolled {
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15, 23, 42, 0.06);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand img { display: block; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; filter: drop-shadow(0 6px 12px rgba(79,70,229,.28)); transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-word { height: 30px; width: auto; margin-left: 4px; }
.brand small { font-weight: 500; color: var(--muted); font-size: 15px; margin-left: 0; letter-spacing: 0; align-self: flex-end; padding-bottom: 1px; }
.brand.brand-admin { gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 16px; border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--ink-2);
  transition: background .25s, color .25s;
}
.nav-links a:hover { background: rgba(15,23,42,.06); color: var(--ink); }
.nav-links .nav-admin { margin-left: 8px; border: 1px solid var(--line-2); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff;
  place-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, top .3s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ───────────────────────── Home (한 화면) ───────────────────────── */
.home {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 16px) 0 72px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg .art {
  position: absolute; right: -4%; top: 50%; width: min(66vw, 1040px); height: auto; transform: translateY(-50%);
  opacity: .6;
  mask-image: radial-gradient(ellipse at 60% 50%, #000 35%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 35%, transparent 72%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  animation: float 14s ease-in-out infinite;
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(99,102,241,.55), transparent 65%); top: -160px; left: -140px; }
.orb-2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(20,184,166,.5), transparent 65%); bottom: -180px; right: 10%; animation-delay: -5s; animation-duration: 18s; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(245,158,11,.35), transparent 65%); top: 30%; right: -80px; animation-delay: -9s; animation-duration: 22s; }
@keyframes float { 0%,100% { transform: translate3d(0,0,0) scale(1);} 50% { transform: translate3d(30px,-40px,0) scale(1.06);} }
.grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.home .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 14px; }
.home h1 {
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.12; letter-spacing: -0.035em; font-weight: 800;
}
.home h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 16px; font-size: clamp(15px, 1.5vw, 18px); color: var(--ink-2); max-width: 560px; line-height: 1.75; }
.hero-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.home-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px 0; font-size: 12px; color: var(--muted); }
.home-foot .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-foot a { color: var(--muted); }
.home-foot a:hover { color: var(--ink); }
.admin-link { font-size: 12px; opacity: .75; }
.admin-link:hover { opacity: 1; }

/* 메뉴 타일 */
.menu { display: grid; gap: 14px; }
.tile {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 18px;
  padding: 20px 22px; border-radius: 22px; text-align: left;
  background: rgba(255,255,255,.82); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, background .3s;
  isolation: isolate; overflow: hidden;
}
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(79,70,229,.10), transparent 45%);
  transition: opacity .4s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); background: #fff; }
.tile:hover::before { opacity: 1; }
.tile-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 8px 18px rgba(79,70,229,.28);
}
.tile-icon svg { width: 26px; height: 26px; }
.tile-icon.teal { background: linear-gradient(135deg, #14b8a6, #0ea5e9); box-shadow: 0 8px 18px rgba(20,184,166,.28); }
.tile-icon.amber { background: linear-gradient(135deg, #f59e0b, #f43f5e); box-shadow: 0 8px 18px rgba(245,158,11,.28); }
.tile-text b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.tile-text span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.tile-count { font-size: 12px; font-weight: 700; color: var(--indigo); padding: 5px 10px; border-radius: 999px; background: rgba(79,70,229,.08); white-space: nowrap; }
.tile-arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: #fff; transition: background .3s, color .3s, transform .4s var(--ease); }
.tile-arrow svg { width: 16px; height: 16px; }
.tile:hover .tile-arrow { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateX(3px); }
.tile-meta { display: flex; align-items: center; gap: 10px; }

/* ───────────────────────── Views (실습실 · 서비스 화면) ───────────────────────── */
.view { display: none; }
.view.active { display: block; animation: viewIn .5s var(--ease); }
.home.active { display: flex; animation-name: fadeIn; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
.subpage { padding: calc(var(--nav-h) + 28px) 0 clamp(64px, 8vw, 110px); min-height: 100vh; min-height: 100dvh; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; margin-bottom: 26px; transition: .3s; }
.back:hover { color: var(--ink); border-color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.nav-links a.current { background: rgba(15,23,42,.06); color: var(--ink); }

/* ───────────────────────── Cards ───────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  isolation: isolate;
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79,70,229,.10), transparent 45%);
  transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .card-type {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.card-media .preview-hint {
  position: absolute; inset: auto 14px 14px auto; z-index: 2; opacity: 0; transform: translateY(6px);
  padding: 7px 12px; border-radius: 999px; background: rgba(15,23,42,.82); color: #fff; font-size: 12px; font-weight: 600;
  transition: opacity .3s, transform .3s; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; word-break: keep-all;
}
.card-media .preview-hint svg { width: 14px; height: 14px; flex: none; }
.card:hover .preview-hint { opacity: 1; transform: translateY(0); }
.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 19px; letter-spacing: -0.02em; }
.card-sub { color: var(--indigo); font-size: 13.5px; font-weight: 600; margin-top: -4px; }
.card-desc {
  color: var(--muted); font-size: 14.5px; line-height: 1.6; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.card-tags span { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-weight: 500; }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-url { font-size: 12.5px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card-actions { display: flex; gap: 6px; flex: none; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff;
  display: grid; place-items: center; transition: background .25s, border-color .25s, transform .25s;
}
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px); }
.icon-btn svg { width: 16px; height: 16px; }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ───────────────────────── Hero author pill ───────────────────────── */
.author {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.author:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--bg-2); }
.author > span { display: block; text-align: left; white-space: nowrap; }
.author b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.author > span > span { display: block; font-size: 12px; color: var(--muted); }
.author svg { width: 16px; height: 16px; color: var(--muted); margin-left: 4px; }
.nav-links .nav-me { display: inline-flex; align-items: center; gap: 8px; }
.nav-links .nav-me img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }

/* ───────────────────────── Profile modal ───────────────────────── */
.profile-box { width: min(760px, 100%); }
.profile-hero { position: relative; background: linear-gradient(180deg, #f3f2ee, #fff); padding: 36px 32px 0; display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: end; border-bottom: 1px solid var(--line); }
.profile-hero img { width: 200px; height: 200px; object-fit: cover; object-position: center 20%; border-radius: 24px 24px 0 0; display: block; }
.profile-hero .who { padding-bottom: 28px; }
.profile-hero .who .eyebrow { margin-bottom: 8px; }
.profile-hero h3 { font-size: 30px; letter-spacing: -0.03em; }
.profile-hero h3 small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.profile-hero .role { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.profile-body { padding: 26px 32px 32px; }
.profile-body .intro { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; white-space: pre-line; }
.profile-body h4 { margin-top: 24px; margin-bottom: 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); }
.career { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.career li { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; line-height: 1.5; padding: 10px 14px; background: var(--bg); border-radius: 12px; }
.career .yr { flex: none; min-width: 44px; font-size: 12px; font-weight: 700; color: var(--indigo); letter-spacing: .04em; }
.profile-foot { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.profile-foot a.mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.profile-foot a.mail svg { width: 18px; height: 18px; color: var(--indigo); }
.profile-foot .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ───────────────────────── Footer ───────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 32px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { display: block; padding: 5px 0; font-size: 14px; transition: color .25s; }
.footer .admin-link { display: inline; padding: 0; font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; display: inline-flex; padding: 0; }
.footer p { font-size: 14px; margin-top: 12px; max-width: 360px; line-height: 1.7; }
.footer-bottom { grid-column: 1 / -1; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ───────────────────────── Modal ───────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.show { opacity: 1; pointer-events: auto; }
.modal-bg { position: absolute; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-box {
  position: relative; width: min(960px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.98); transition: transform .4s var(--ease);
}
.modal.show .modal-box { transform: none; }
.modal-shot { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.modal-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.modal-body { padding: 26px 28px 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.modal-body h3 { font-size: 24px; }
.modal-body .card-sub { margin-top: 4px; }
.modal-body p { color: var(--ink-2); margin-top: 10px; font-size: 15px; white-space: pre-line; }
.modal-body .card-url { margin-top: 12px; white-space: normal; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.modal-close svg { width: 16px; height: 16px; }

/* ───────────────────────── Reveal ───────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: .35s var(--ease); z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1024px) {
  .home .container { grid-template-columns: 1fr; gap: 32px; }
  .home { min-height: 0; padding-bottom: 64px; }
  .hero-bg .art { width: 100vw; right: -20%; top: 32%; opacity: .35; }
  .footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .profile-hero { grid-template-columns: 1fr; gap: 0; padding: 28px 22px 0; text-align: center; justify-items: center; }
  .profile-hero img { width: 170px; height: 170px; }
  .profile-hero .who { padding: 18px 0 22px; }
  .profile-body { padding: 22px 22px 26px; }
  :root { --nav-h: 68px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand-word { height: 24px; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 82vw);
    flex-direction: column; align-items: stretch; gap: 6px; padding: 88px 20px 20px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .45s var(--ease);
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a { font-size: 17px; padding: 12px 16px; }
  .nav-links .nav-admin { margin-left: 0; margin-top: 8px; text-align: center; }
  .nav-toggle { display: grid; position: relative; z-index: 2; }
  .tile { grid-template-columns: 48px 1fr auto; padding: 16px 18px; gap: 14px; }
  .tile-icon { width: 48px; height: 48px; border-radius: 14px; }
  .tile-text b { font-size: 16.5px; }
  .tile-count { display: none; }
  .modal-body { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 420px) {
  .container { width: min(100% - 32px, var(--container)); }
  .grid { grid-template-columns: 1fr; }
  .card-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ───────────────────────── Policy documents ───────────────────────── */
.doc-page { background: var(--bg); }
.doc { padding: calc(var(--nav-h) + 28px) 0 clamp(64px, 8vw, 110px); }
.doc .container { max-width: 820px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 12px; }
.doc-meta { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.doc-lead { margin-top: 28px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink-2); line-height: 1.75; }
.doc section { margin-top: 36px; }
.doc h2 { font-size: 19px; margin-bottom: 12px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 0; padding-left: 20px; }
.doc li + li { margin-top: 4px; }
.doc a:not(.back):not(.brand) { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc-table th, .doc-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.6; }
.doc-table th { background: var(--bg-2); font-size: 13px; color: var(--ink-2); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-links { margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.doc-links a { font-weight: 600; color: var(--ink) !important; text-decoration: none !important; }
.doc-nav { position: static; transform: none; flex-direction: row; padding: 0; background: none; box-shadow: none; width: auto; }
.home-foot .links { display: flex; gap: 14px; align-items: center; }
.footer .policy { display: flex; gap: 12px; }
@media (max-width: 640px) {
  .doc-table { display: block; overflow-x: auto; }
  .doc-nav { display: none; }
}

.doc .eyebrow { display: flex; }
