/* PSD Academy · APP Photo Library
   Layout: portfolio-style. Sign-in is a split screen (photo collage + code panel), stacked on phones.
   Inside: hero cover of the latest event, a grid of event covers, masonry photo grids, full-screen menu.
   Identity: crest navy with deep gradients, Archivo set wide and heavy for the wordmark and headings
   (kit-lettering feel), Archivo regular for reading. Sharp corners. Sky blue only for state. */
:root {
  --navy: #0c2d69;
  --navy-deep: #071a40;
  --sky: #82d0f5;
  --bg: #03070f;
  --bg-2: #060d1d;
  --surface: #0a1530;
  --line: rgba(130, 160, 220, .16);
  --line-strong: rgba(130, 160, 220, .3);
  --text: #f4f6fa;
  --muted: #93a0bd;
  --faint: #5b6a8c;
  --danger: #ff9a9a;
  --ink: #03070f;
  --font-wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font: "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1280px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
@media (min-width: 900px) { :root { --gutter: 40px; } }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; color: var(--text); background: var(--bg); }
body {
  font-family: var(--font); font-stretch: 100%; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(12, 45, 105, .55), transparent 65%),
    radial-gradient(700px 500px at -10% 30%, rgba(7, 26, 64, .6), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

/* ---------- Type ---------- */
.wide { font-family: var(--font-wide); font-stretch: 125%; text-transform: uppercase; }
.label {
  font-stretch: 112%; font-weight: 600; font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.h-xl { font-family: var(--font-wide); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 10vw, 104px); line-height: .9; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.h-l { font-family: var(--font-wide); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 6.4vw, 64px); line-height: .92; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.h-m { font-family: var(--font-wide); font-stretch: 125%; font-weight: 750; text-transform: uppercase;
  font-size: 20px; line-height: 1.05; margin: 0; letter-spacing: .01em; }
.lead { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px; border-radius: 0;
  font-stretch: 118%; font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  transition: transform .08s ease, opacity .15s, background .2s, color .2s; text-decoration: none;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .4; }
.btn-block { width: 100%; }
.btn-primary { background: var(--text); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }
.text-btn {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  font-stretch: 112%; font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.text-btn:hover, .text-btn.active { color: var(--text); }
.text-btn.active { color: var(--sky); }
.arrow { display: inline-block; transition: transform .2s; }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* ---------- Brand lockup ---------- */
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.lockup img { width: 36px; height: 36px; flex: none; }
.lockup .lt { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.lockup .l1 { font-stretch: 125%; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.lockup .l2 { font-stretch: 112%; font-weight: 500; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); white-space: nowrap; margin-top: 3px; }

/* ======================================================
   SIGN IN
   ====================================================== */
.signin { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
@media (min-width: 900px) { .signin { grid-template-columns: 1.25fr 1fr; grid-template-rows: none; } }

.collage { position: relative; overflow: hidden; height: 46dvh; min-height: 300px; background: var(--navy-deep); }
@media (min-width: 900px) { .collage { height: 100dvh; } }
.collage .cols { position: absolute; inset: -20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 900px) { .collage .cols { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.collage .col { display: flex; flex-direction: column; gap: 6px; animation: drift 70s linear infinite; }
.collage .col:nth-child(2n) { animation-direction: reverse; animation-duration: 85s; }
.collage .col:nth-child(4) { display: none; }
@media (min-width: 900px) { .collage .col:nth-child(4) { display: flex; } .collage .col { gap: 8px; } }
.collage .col img { width: 100%; object-fit: cover; aspect-ratio: 3 / 4; background: var(--surface); }
.collage .col img:nth-child(3n+2) { aspect-ratio: 4 / 5; }
.collage .col img:nth-child(4n+3) { aspect-ratio: 1; }
@keyframes drift { from { transform: translateY(0) } to { transform: translateY(-50%) } }
.collage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,7,15,.15) 0%, rgba(7,26,64,.35) 45%, var(--bg) 100%),
    linear-gradient(135deg, rgba(12,45,105,.55), rgba(3,7,15,.2));
}
@media (min-width: 900px) {
  .collage::after { background:
    linear-gradient(90deg, rgba(3,7,15,.1) 0%, rgba(7,26,64,.3) 60%, var(--bg) 100%),
    linear-gradient(160deg, rgba(12,45,105,.5), rgba(3,7,15,.25)); }
}
.collage .stamp {
  position: absolute; z-index: 2; left: var(--gutter); top: calc(var(--gutter) + var(--safe-t));
}
.collage .tagline {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 24px;
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; line-height: .9;
  font-size: clamp(34px, 9vw, 88px); letter-spacing: -.01em; text-wrap: balance;
}
.collage .tagline span { display: block; color: var(--sky); }
@media (min-width: 900px) { .collage .tagline { bottom: 48px; } }

.signin-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 28px var(--gutter) calc(28px + var(--safe-b));
  width: 100%; max-width: 520px; margin: 0 auto;
}
@media (min-width: 900px) { .signin-panel { padding-block: 64px; } }
.signin-panel .label { margin-bottom: 14px; }
.signin-panel .lead { margin: 0 0 28px; font-size: 16px; }
.code-field { display: grid; gap: 10px; }
.code-input {
  width: 100%; height: 64px; padding: 0 18px; border-radius: 0;
  background: rgba(10, 21, 48, .7); border: 1px solid var(--line-strong); color: var(--text);
  font-stretch: 125%; font-weight: 700; font-size: 26px; letter-spacing: .14em; text-transform: uppercase;
  outline: none; -webkit-appearance: none;
}
.code-input::placeholder { color: var(--faint); font-weight: 500; }
.code-input:focus { border-color: var(--sky); background: rgba(10, 21, 48, .95); }
.code-input.shake { animation: shake .35s; border-color: var(--danger); }
@keyframes shake { 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }
.error { color: var(--danger); font-size: 14px; min-height: 22px; }
.signin-foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.credit { font-stretch: 112%; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.credit b { color: var(--muted); font-weight: 600; }

/* ======================================================
   APP SHELL
   ====================================================== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + var(--safe-t)) var(--gutter) 14px;
  background: linear-gradient(180deg, rgba(3,7,15,.92), rgba(3,7,15,.78));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-stretch: 118%; font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.menu-btn .bars { width: 22px; height: 10px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.menu-btn .bars::before { top: 0; } .menu-btn .bars::after { bottom: 0; }

.page { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page-head { padding: 40px 0 28px; display: grid; gap: 14px; }
@media (min-width: 900px) { .page-head { padding: 72px 0 40px; } }
.page-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.crumb { display: inline-flex; align-items: center; gap: 10px; }

.site-foot {
  max-width: var(--max); margin: 64px auto 0; padding: 28px var(--gutter) calc(32px + var(--safe-b));
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}

/* ---------- Home hero ---------- */
.hero { position: relative; display: block; text-decoration: none; overflow: hidden; background: var(--surface); margin: 0 calc(var(--gutter) * -1); }
@media (min-width: 900px) { .hero { margin: 0; } }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: min(78vh, 720px); min-height: 440px; }
.hero-grid > div { position: relative; overflow: hidden; background: var(--surface); }
.hero-grid > div:first-child { grid-row: span 2; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 2fr 1fr 1fr; } .hero-grid > div:nth-child(4), .hero-grid > div:nth-child(5) { display: block; } }
.hero-grid > div:nth-child(n+4) { display: none; }
@media (min-width: 900px) { .hero-grid > div:nth-child(-n+5) { display: block; } }
.hero-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; opacity: 0; }
.hero-grid img.loaded { opacity: 1; }
.hero:hover .hero-grid img { transform: scale(1.025); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,7,15,0) 35%, rgba(7,26,64,.55) 65%, rgba(3,7,15,.95) 100%); }
.hero-copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 26px; display: grid; gap: 12px; }
@media (min-width: 900px) { .hero-copy { left: 40px; bottom: 40px; } }
.hero-copy .meta { display: flex; gap: 10px 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-copy .go { color: var(--text); margin-top: 6px; }

/* ---------- Event covers ---------- */
.section { padding-top: 56px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 900px) { .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; } }
.cover { display: block; text-decoration: none; min-width: 0; }
.cover .img { aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--surface); position: relative; }
.cover .img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s, transform .6s cubic-bezier(.2,.7,.2,1); }
.cover .img img.loaded { opacity: 1; }
.cover:hover .img img { transform: scale(1.04); }
.cover .img .count { position: absolute; right: 10px; bottom: 10px; background: rgba(3,7,15,.75); padding: 5px 8px; font-size: 11px; letter-spacing: .14em; font-stretch: 112%; font-weight: 600; text-transform: uppercase; }
.cover .t { margin-top: 14px; }
.cover .d { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ---------- Request band ---------- */
.band {
  margin-top: 72px; padding: 40px var(--gutter); display: grid; gap: 18px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 55%, #050c1f 100%);
  border: 1px solid var(--line);
}
@media (min-width: 900px) { .band { padding: 56px; grid-template-columns: 1.4fr auto; align-items: end; } }
.band p { margin: 0; color: #c2cce3; max-width: 52ch; }

/* ---------- Masonry grid ---------- */
.masonry { display: flex; gap: 6px; align-items: flex-start; margin: 0 calc(var(--gutter) * -1 + 6px); }
@media (min-width: 900px) { .masonry { gap: 12px; margin: 0; } }
.masonry .mcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 900px) { .masonry .mcol { gap: 12px; } }
.tile { position: relative; display: block; width: 100%; overflow: hidden; background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s, transform .2s; }
.tile img.loaded { opacity: 1; }
@media (hover: hover) { .tile:hover img { transform: scale(1.02); } }
.tile .check {
  position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px;
  border: 2px solid #fff; background: rgba(3,7,15,.35); display: none;
}
.selecting .tile .check { display: block; }
.tile.selected img { opacity: .45; transform: scale(.93); }
.tile.selected .check { background: var(--sky); border-color: var(--sky); }
.tile.selected .check::after { content: ""; position: absolute; left: 7px; top: 2px; width: 7px; height: 12px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.spacer { height: calc(120px + var(--safe-b)); }
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 14px var(--gutter) calc(14px + var(--safe-b));
  background: linear-gradient(180deg, rgba(3,7,15,.82), var(--bg));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.actionbar .inner { max-width: 560px; margin: 0 auto; }
.actionbar .hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ---------- Forms (request) ---------- */
.form { display: grid; gap: 26px; max-width: 720px; padding-bottom: 24px; }
.fgrid { display: grid; gap: 26px; }
@media (min-width: 700px) { .fgrid { grid-template-columns: 1fr 1fr; } }
.f { display: grid; gap: 10px; min-width: 0; }
.f input, .f select, .f textarea {
  width: 100%; border-radius: 0; -webkit-appearance: none; appearance: none;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 12px; font-size: 18px; color: var(--text); outline: none;
}
.f textarea { min-height: 120px; resize: vertical; line-height: 1.5; border: 1px solid var(--line-strong); padding: 14px; }
.f select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; }
.f select option { background: var(--bg-2); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--sky); }
.f input::placeholder, .f textarea::placeholder { color: var(--faint); }
.f .hint { font-size: 13px; color: var(--faint); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-strong); }
@media (min-width: 700px) { .choices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choices label { position: relative; display: flex; align-items: center; min-height: 64px; padding: 12px 14px; font-size: 14px; line-height: 1.25; cursor: pointer; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label:has(input:checked) { background: var(--text); color: var(--ink); font-weight: 600; }
.choices label:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: -2px; }
.form-note { font-size: 13.5px; color: var(--muted); max-width: 60ch; }
.success { padding: 36px 0 12px; display: grid; gap: 16px; max-width: 560px; }

/* ---------- Help ---------- */
.steps { display: grid; gap: 0; max-width: 760px; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-stretch: 125%; font-weight: 800; font-size: 28px; line-height: 1; color: var(--sky); }
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.steps { padding: 0; margin: 0; }

/* ---------- Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  padding: calc(14px + var(--safe-t)) var(--gutter) calc(28px + var(--safe-b));
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(130, 208, 245, .12), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 45%, var(--bg) 100%);
  animation: fade .2s ease-out; overflow-y: auto;
}
@keyframes fade { from { opacity: 0 } }
.menu .mtop { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.menu nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 32px 0; max-width: var(--max); width: 100%; margin: 0 auto; }
.menu nav a, .menu nav button {
  display: flex; align-items: baseline; gap: 18px; text-align: left; text-decoration: none;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; line-height: .95;
  font-size: clamp(22px, 5.6vw, 44px); letter-spacing: 0;
}
.menu nav .n { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--muted); font-stretch: 112%; min-width: 26px; }
.menu nav a.current { color: var(--sky); }
.menu nav a:hover, .menu nav button:hover { color: var(--sky); }
.menu nav .sub { color: var(--muted); }
.menu .mfoot { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; max-width: var(--max); width: 100%; margin: 0 auto; font-size: 13px; color: var(--muted); }
.menu .mfoot b { color: var(--text); font-weight: 600; letter-spacing: .1em; }

/* ---------- Viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 70; background: #000; display: flex; flex-direction: column; }
.viewer .vtop { display: flex; justify-content: space-between; align-items: center; padding: calc(8px + var(--safe-t)) 8px 8px; }
.viewer .pos { font-stretch: 112%; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: center; }
.viewer .nav { display: flex; }
.icon-btn { width: 46px; height: 46px; display: grid; place-items: center; color: var(--text); }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:disabled { opacity: .25; }
.viewer .stage { flex: 1; position: relative; overflow: hidden; touch-action: pan-y pinch-zoom; }
.viewer .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer .vbottom { padding: 12px var(--gutter) calc(14px + var(--safe-b)); display: grid; gap: 4px; max-width: 560px; width: 100%; margin: 0 auto; }
.viewer .vbottom .text-btn { justify-content: center; }

/* ---------- Save sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.7); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 560px; padding: 28px var(--gutter) calc(22px + var(--safe-b));
  background: linear-gradient(170deg, var(--navy-deep), var(--bg-2) 70%); border-top: 1px solid var(--line-strong);
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: 0 } }
.sheet h3 { margin: 6px 0 10px; font-size: 30px; }
.sheet p { margin: 0 0 20px; color: var(--muted); }
.sheet p strong { color: var(--text); font-weight: 600; }
.progress { height: 2px; background: var(--line); overflow: hidden; margin: 0 0 22px; }
.progress > div { height: 100%; width: 0; background: var(--sky); transition: width .2s; }
.sheet .row { display: grid; gap: 10px; }

/* ---------- Not found ---------- */
.notfound { padding: 56px 0 24px; display: grid; gap: 18px; max-width: 640px; }
.notfound .big { font-stretch: 125%; font-weight: 900; font-size: clamp(110px, 30vw, 240px); line-height: .8; margin: 0;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(12,45,105,.15) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--muted); margin: 0; }
.notfound .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.loading-row { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 40px 0; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--sky); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- Instagram tag band ---------- */
.tagband { margin-top: 20px; padding: 36px var(--gutter); display: grid; gap: 24px; border: 1px solid var(--line);
  background: linear-gradient(200deg, rgba(130,208,245,.08), transparent 45%), var(--bg-2); }
@media (min-width: 900px) { .tagband { padding: 48px 56px; grid-template-columns: 1.3fr 1fr; align-items: center; } }
.tagband .tb-copy { display: grid; gap: 12px; }
.tagband p { margin: 0; color: #c2cce3; max-width: 52ch; }
.tagband .tb-note { color: var(--muted); font-size: 14px; }
.handles { display: grid; gap: 10px; }
.handle { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line-strong); text-decoration: none; transition: border-color .2s, background .2s; }
.handle:hover { border-color: var(--sky); background: rgba(130,208,245,.06); }
.handle .h { font-stretch: 118%; font-weight: 700; font-size: 20px; letter-spacing: .02em; color: var(--text); user-select: all; overflow-wrap: anywhere; }

/* ---------- Media team ---------- */
.team { display: grid; gap: 56px; }
@media (min-width: 900px) { .team { grid-template-columns: 1fr 1fr; gap: 40px; } }
.person { display: grid; gap: 22px; align-content: start; min-width: 0; }
.portrait { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 55%, var(--bg-2) 100%); border: 1px solid var(--line); }
.portrait::before { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center;
  font-stretch: 125%; font-weight: 900; font-size: clamp(90px, 22vw, 180px); color: rgba(130,208,245,.14); letter-spacing: -.02em; }
.portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.pbody { display: grid; gap: 14px; }
.pbody p { margin: 0; color: #c3cbe0; max-width: 52ch; }
.plinks { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 6px; }
.plink { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.plink .h { font-stretch: 112%; font-weight: 600; font-size: 17px; overflow-wrap: anywhere; min-width: 0; }
.plink .arrow { color: var(--muted); }
.plink:hover .h, .plink:hover .arrow { color: var(--sky); }

/* ---------- Smaller type: media team + home ---------- */
#v-team .page-head, #v-home .page-head { gap: 10px; }
#v-team .h-xl, #v-home .h-xl { font-size: clamp(24px, 4.4vw, 40px); line-height: 1; }
#v-team .lead, #v-home .lead { font-size: 14.5px; }
#v-team .team { gap: 40px; }
@media (min-width: 900px) { #v-team .team { grid-template-columns: repeat(2, minmax(0, 420px)); gap: 32px; } }
#v-team .person { gap: 16px; }
#v-team .h-l { font-size: 20px; line-height: 1.05; }
#v-team .pbody { gap: 8px; }
#v-team .pbody p { font-size: 14px; line-height: 1.55; }
#v-team .plink { grid-template-columns: 90px 1fr auto; padding: 11px 0; }
#v-team .plink .h { font-size: 14px; }
#v-team .portrait::before { font-size: clamp(60px, 14vw, 110px); }

#v-home .hero-grid { height: min(62vh, 560px); min-height: 360px; }
#v-home .hero-copy { gap: 8px; bottom: 20px; }
#v-home .hero-copy .h-l { font-size: clamp(20px, 3.6vw, 32px); line-height: 1; }
#v-home .hero-copy .meta { font-size: 13px; }
#v-home .section { padding-top: 40px; }
#v-home .section-title .h-m { font-size: 14px; }
#v-home .cover .t { font-size: 14px; margin-top: 10px; }
#v-home .cover .d { font-size: 12.5px; }
#v-home .band, #v-home .tagband { padding: 28px var(--gutter); gap: 14px; }
@media (min-width: 900px) { #v-home .band, #v-home .tagband { padding: 32px 40px; } }
#v-home .band .h-l, #v-home .tagband .h-l { font-size: 20px !important; line-height: 1.05; }
#v-home .band p, #v-home .tagband p { font-size: 14px; }
#v-home .tagband .tb-note { font-size: 12.5px; }
#v-home .handle { padding: 11px 14px; }
#v-home .handle .h { font-size: 15px; }
#v-home .btn { min-height: 46px; padding: 0 20px; font-size: 12px; }

/* ---------- Legal pages ---------- */
.legal-links { display: inline-flex; gap: 18px; }
.legal-links a { font-stretch: 112%; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--text); }
.prose { padding-bottom: calc(64px + var(--safe-b)); }
.prose .toc { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px 0; margin-bottom: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 760px; }
.prose .toc a { font-size: 13px; color: var(--muted); text-decoration: none; }
.prose .toc a:hover { color: var(--sky); }
.prose section { max-width: 68ch; padding: 32px 0 4px; scroll-margin-top: 90px; }
.prose section h2 { margin-bottom: 14px; }
.prose p, .prose li { color: #c3cbe0; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--sky); }
.prose b { color: var(--text); font-weight: 600; }
.prose a { color: var(--sky); text-underline-offset: 3px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; color: var(--text); overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 4px 0 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 420px; }
.prose th { text-align: left; font-stretch: 112%; font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-strong); }
.prose td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); color: #c3cbe0; vertical-align: top; }
.prose td:first-child { color: var(--text); }
.signin-foot .legal-links { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
