/* Mithrall France V4 — portail communautaire */
:root {
  --v4-bg: #070b0f;
  --v4-panel: #0d141a;
  --v4-panel-2: #121b22;
  --v4-ink: #f5f3ee;
  --v4-muted: #a5adb3;
  --v4-amber: #f1a83a;
  --v4-amber-soft: #ffd48b;
  --v4-blue: #5bc9ff;
  --v4-green: #6cd6a4;
  --v4-red: #ff8078;
  --v4-line: rgba(255,255,255,.11);
  --v4-line-strong: rgba(255,255,255,.22);
  --v4-shadow: 0 30px 80px rgba(0,0,0,.38);
}

body.portal-v4 {
  background:
    radial-gradient(circle at 14% 0%, rgba(48,120,160,.12), transparent 34rem),
    radial-gradient(circle at 88% 7%, rgba(241,168,58,.08), transparent 28rem),
    var(--v4-bg);
  color: var(--v4-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
body.portal-v4::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .022;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.portal-v4 a { text-underline-offset: 3px; }
.portal-v4 .shell { width: min(1440px, calc(100% - 48px)); }
.portal-v4 .shell-wide { width: min(1500px, calc(100% - 40px)); }
.portal-v4 .shell-narrow { width: min(860px, calc(100% - 40px)); }
.portal-v4 .site-status {
  background: #05080b;
  border-bottom-color: rgba(255,255,255,.08);
}
.portal-v4 .site-status .live-dot { box-shadow: 0 0 0 5px rgba(108,214,164,.08), 0 0 18px rgba(108,214,164,.45); background: var(--v4-green); }
.portal-v4 .site-header {
  background: rgba(7,11,15,.78);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(1.25);
}
.portal-v4 .site-header.scrolled { background: rgba(7,11,15,.95); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.portal-v4 .brand-copy strong { letter-spacing: .03em; }
.portal-v4 .brand-copy em { color: var(--v4-amber); }
.portal-v4 .main-nav a { font-size: .72rem; letter-spacing: .07em; }
.portal-v4 .main-nav a::after { background: var(--v4-amber); }
.portal-v4 .account-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--v4-line);
  background: rgba(255,255,255,.035);
  color: #e8edf0;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: .2s ease;
}
.portal-v4 .account-chip:hover { border-color: rgba(241,168,58,.7); color: #fff; background: rgba(241,168,58,.08); }
.portal-v4 .button { border-radius: 2px; }
.portal-v4 .button-accent { background: var(--v4-amber); color: #15100a; box-shadow: 0 10px 28px rgba(241,168,58,.17); }
.portal-v4 .button-accent:hover { background: #ffbd58; transform: translateY(-2px); }
.portal-v4 .button-secondary { background: rgba(255,255,255,.05); border-color: var(--v4-line-strong); }
.portal-v4 .eyebrow { color: var(--v4-amber); letter-spacing: .15em; }

/* V4 home */
.portal-home { overflow: clip; }
.portal-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--v4-line);
  isolation: isolate;
}
.portal-hero-media,
.portal-hero-media img,
.portal-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.portal-hero-media img { object-fit: cover; object-position: 50% 46%; filter: saturate(.95) contrast(1.06); transform: scale(1.015); }
.portal-hero-shade {
  background:
    linear-gradient(90deg, rgba(5,8,11,.96) 0%, rgba(5,8,11,.72) 42%, rgba(5,8,11,.22) 72%, rgba(5,8,11,.58) 100%),
    linear-gradient(0deg, #070b0f 0%, rgba(7,11,15,.12) 42%, rgba(7,11,15,.15) 100%);
  z-index: 1;
}
.portal-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .58fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
  padding: 100px 0 74px;
}
.portal-hero-copy { max-width: 830px; }
.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #d5dce1;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.portal-kicker::before { content: ""; width: 34px; height: 2px; background: var(--v4-amber); }
.portal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Arial Black", "Trebuchet MS", ui-sans-serif, sans-serif;
  font-size: clamp(3.7rem, 7.4vw, 7.6rem);
  line-height: .88;
  letter-spacing: -.065em;
  text-wrap: balance;
  text-shadow: 0 16px 50px rgba(0,0,0,.38);
}
.portal-hero h1 span { color: var(--v4-amber); }
.portal-hero-lead {
  max-width: 690px;
  margin: 26px 0 0;
  color: #d0d7dc;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.62;
}
.portal-hero .button-row { margin-top: 32px; }
.portal-hero-note { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 24px; color: #a9b2b8; font-size: .75rem; }
.portal-hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.portal-hero-note span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--v4-amber); }
.hero-dispatch {
  position: relative;
  overflow: hidden;
  align-self: end;
  border: 1px solid rgba(255,255,255,.19);
  background: rgba(9,14,18,.88);
  box-shadow: var(--v4-shadow);
  backdrop-filter: blur(14px);
}
.hero-dispatch-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.hero-dispatch-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-dispatch:hover img { transform: scale(1.035); }
.hero-dispatch-copy { padding: 24px; }
.hero-dispatch-copy .meta-line { margin-bottom: 14px; }
.hero-dispatch h2 { margin: 0; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.05; letter-spacing: -.035em; }
.hero-dispatch h2 a { color: inherit; }
.hero-dispatch p { margin: 14px 0 0; color: var(--v4-muted); font-size: .91rem; line-height: 1.6; }
.hero-dispatch-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--v4-line); }
.hero-dispatch-footer small { color: #8e989f; }
.hero-visual-credit { position: absolute; z-index: 2; right: 18px; bottom: 16px; color: rgba(255,255,255,.5); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; writing-mode: vertical-rl; }
.portal-facts {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  border-top: 1px solid var(--v4-line);
  border-bottom: 1px solid var(--v4-line);
  background: #090e12;
}
.portal-facts-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.portal-fact { min-height: 95px; padding: 20px 24px; border-right: 1px solid var(--v4-line); display: flex; flex-direction: column; justify-content: center; }
.portal-fact:last-child { border-right: 0; }
.portal-fact small { color: #7f8a91; font-size: .64rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.portal-fact strong { margin-top: 5px; font-size: .95rem; }
.portal-fact em { color: var(--v4-amber-soft); font-style: normal; }

.portal-section { padding: clamp(74px, 8vw, 126px) 0; }
.portal-section + .portal-section { border-top: 1px solid rgba(255,255,255,.06); }
.portal-section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.portal-section-head h2 { max-width: 860px; margin: 7px 0 0; font-size: clamp(2.25rem, 4.3vw, 4.8rem); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.portal-section-head p { max-width: 580px; margin: 14px 0 0; color: var(--v4-muted); line-height: 1.65; }
.portal-section-index { color: rgba(255,255,255,.15); font-family: "Arial Black", sans-serif; font-size: clamp(3rem, 7vw, 7rem); line-height: .8; }
.dispatch-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 22px; }
.dispatch-lead {
  min-height: 650px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  border: 1px solid var(--v4-line);
  background: var(--v4-panel);
}
.dispatch-lead > a:first-child,
.dispatch-lead > a:first-child img,
.dispatch-lead::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.dispatch-lead > a:first-child img { object-fit: cover; }
.dispatch-lead::after { content: ""; background: linear-gradient(0deg, rgba(4,7,9,.98), rgba(4,7,9,.08) 70%); }
.dispatch-lead-copy { position: relative; z-index: 2; max-width: 800px; padding: clamp(28px, 5vw, 62px); }
.dispatch-lead h3 { margin: 14px 0; font-size: clamp(2.2rem, 4.6vw, 5.3rem); line-height: .94; letter-spacing: -.055em; }
.dispatch-lead h3 a { color: inherit; }
.dispatch-lead p { max-width: 690px; color: #c4ccd1; font-size: 1rem; line-height: 1.68; }
.dispatch-stack { display: grid; gap: 22px; }
.dispatch-card { display: grid; grid-template-columns: 160px 1fr; min-height: 198px; border: 1px solid var(--v4-line); background: var(--v4-panel); transition: .22s ease; }
.dispatch-card:hover { transform: translateY(-3px); border-color: rgba(241,168,58,.5); background: var(--v4-panel-2); }
.dispatch-card-media { overflow: hidden; }
.dispatch-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.dispatch-card:hover img { transform: scale(1.05); }
.dispatch-card-copy { padding: 20px; }
.dispatch-card h3 { margin: 10px 0 8px; font-size: 1.25rem; line-height: 1.08; letter-spacing: -.025em; }
.dispatch-card h3 a { color: inherit; }
.dispatch-card p { margin: 0; color: var(--v4-muted); font-size: .82rem; line-height: 1.5; }
.remote-feed { margin-top: 22px; }
.remote-feed:empty { display: none; }

.world-panel { background: #0a1015; }
.world-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(38px, 7vw, 100px); align-items: center; }
.world-copy h2 { margin: 10px 0 20px; font-size: clamp(2.7rem, 5vw, 5.5rem); line-height: .93; letter-spacing: -.06em; }
.world-copy > p { max-width: 640px; color: var(--v4-muted); font-size: 1.04rem; line-height: 1.75; }
.world-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 34px; border: 1px solid var(--v4-line); background: var(--v4-line); }
.world-point { min-height: 132px; padding: 22px; background: #0a1015; }
.world-point span { color: var(--v4-amber); font-size: .64rem; font-weight: 900; letter-spacing: .12em; }
.world-point strong { display: block; margin: 9px 0 5px; font-size: 1rem; }
.world-point p { margin: 0; color: #939da4; font-size: .8rem; line-height: 1.5; }
.world-mosaic { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 330px 250px; gap: 10px; }
.world-shot { position: relative; overflow: hidden; border: 1px solid var(--v4-line); background: #111; }
.world-shot:first-child { grid-row: 1 / 3; }
.world-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.world-shot:hover img { transform: scale(1.04); }
.world-shot span { position: absolute; left: 12px; bottom: 12px; padding: 7px 9px; background: rgba(4,7,9,.76); border: 1px solid rgba(255,255,255,.14); font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.portal-tools { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.portal-tool {
  position: relative;
  overflow: hidden;
  min-height: 265px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--v4-line);
  background: var(--v4-panel);
  transition: .24s ease;
}
.portal-tool:nth-child(1), .portal-tool:nth-child(2) { grid-column: span 6; }
.portal-tool:nth-child(n+3) { grid-column: span 4; min-height: 220px; }
.portal-tool:hover { transform: translateY(-4px); border-color: rgba(241,168,58,.55); box-shadow: 0 24px 55px rgba(0,0,0,.22); }
.portal-tool::before { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(91,201,255,.1), transparent 68%); }
.portal-tool:nth-child(2)::before, .portal-tool:nth-child(4)::before { background: radial-gradient(circle, rgba(241,168,58,.12), transparent 68%); }
.portal-tool-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.portal-tool-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--v4-line-strong); color: var(--v4-amber); font-size: 1.25rem; }
.portal-tool small { color: #79858d; font-size: .62rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.portal-tool h3 { position: relative; z-index: 1; margin: 22px 0 8px; font-size: clamp(1.55rem, 2.3vw, 2.5rem); line-height: .98; letter-spacing: -.04em; }
.portal-tool p { position: relative; z-index: 1; max-width: 500px; margin: 0; color: var(--v4-muted); font-size: .88rem; line-height: 1.58; }
.portal-tool .text-link { position: relative; z-index: 1; margin-top: 22px; }

.people-stage { position: relative; }
.people-rail-v4 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 12px; }
.people-tile { position: relative; min-height: 490px; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--v4-line); background: #0d141a; }
.people-tile img { position: absolute; inset: 0; width: 100%; height: 74%; object-fit: cover; object-position: top center; filter: saturate(.9); transition: transform .55s ease, filter .3s ease; }
.people-tile:hover img { transform: scale(1.035); filter: saturate(1.08); }
.people-tile::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(0deg, #0b1116 48%, transparent); }
.people-tile-copy { position: absolute; z-index: 2; inset: auto 0 0; padding: 22px; }
.people-tile-number { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 6px 8px; background: rgba(5,8,11,.78); border: 1px solid rgba(255,255,255,.14); font-size: .62rem; letter-spacing: .08em; }
.people-tile h3 { margin: 7px 0 5px; font-size: 1.45rem; }
.people-tile p { margin: 0; color: #9ea8af; font-size: .78rem; line-height: 1.48; }
.rail-controls { display: flex; gap: 8px; }
.rail-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--v4-line); background: rgba(255,255,255,.035); color: #fff; cursor: pointer; }
.rail-button:hover { border-color: var(--v4-amber); color: var(--v4-amber); }

.community-panel-v4 { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; border: 1px solid var(--v4-line); background: #0b1116; box-shadow: var(--v4-shadow); }
.community-panel-copy { padding: clamp(34px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.community-panel-copy h2 { margin: 10px 0 20px; font-size: clamp(2.6rem, 5vw, 5.6rem); line-height: .92; letter-spacing: -.06em; }
.community-panel-copy p { max-width: 660px; color: var(--v4-muted); line-height: 1.72; }
.community-panel-media { position: relative; min-height: 460px; overflow: hidden; }
.community-panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.community-panel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b1116 0%, transparent 34%); }
.community-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 32px; border: 1px solid var(--v4-line); background: var(--v4-line); }
.community-metric { padding: 16px; background: #0b1116; }
.community-metric strong { display: block; font-size: 1.55rem; color: var(--v4-amber-soft); }
.community-metric span { color: #869199; font-size: .72rem; }

/* Account / studio */
.member-page { min-height: 70vh; }
.member-hero { position: relative; padding: 96px 0 64px; border-bottom: 1px solid var(--v4-line); background: linear-gradient(120deg, #0b151d, #080c10 58%); overflow: hidden; }
.member-hero::after { content: ""; position: absolute; right: -6vw; top: -70%; width: 55vw; height: 55vw; border-radius: 50%; background: radial-gradient(circle, rgba(91,201,255,.13), transparent 67%); }
.member-hero .shell { position: relative; z-index: 1; }
.member-hero h1 { margin: 12px 0 16px; max-width: 900px; font-size: clamp(3rem, 6vw, 6.4rem); line-height: .92; letter-spacing: -.06em; }
.member-hero p { max-width: 720px; color: var(--v4-muted); font-size: 1.05rem; line-height: 1.65; }
.member-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr); gap: 24px; align-items: start; }
.member-card { border: 1px solid var(--v4-line); background: var(--v4-panel); padding: clamp(26px, 4vw, 48px); }
.member-card h2 { margin: 8px 0 12px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.member-card > p { color: var(--v4-muted); line-height: 1.65; }
.auth-tabs { display: flex; gap: 6px; margin: 26px 0 22px; }
.auth-tab { flex: 1; padding: 12px; border: 1px solid var(--v4-line); background: transparent; color: #aab3b9; font-weight: 850; cursor: pointer; }
.auth-tab.active { color: #17100a; background: var(--v4-amber); border-color: var(--v4-amber); }
.auth-panel[hidden] { display: none; }
.auth-status { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--v4-line); color: #b8c0c5; font-size: .82rem; line-height: 1.5; }
.auth-status.success { border-color: rgba(108,214,164,.45); color: #baf0d7; background: rgba(108,214,164,.06); }
.auth-status.error { border-color: rgba(255,128,120,.5); color: #ffc2be; background: rgba(255,128,120,.06); }
.setup-notice { padding: 18px; border: 1px solid rgba(241,168,58,.35); background: rgba(241,168,58,.055); color: #dbc9aa; line-height: 1.6; }
.member-benefits { display: grid; gap: 1px; margin-top: 22px; border: 1px solid var(--v4-line); background: var(--v4-line); }
.member-benefit { padding: 18px; background: #0d141a; }
.member-benefit strong { display: block; margin-bottom: 5px; }
.member-benefit span { color: #929da4; font-size: .82rem; line-height: 1.5; }
.profile-box { display: none; }
.profile-box.active { display: block; }
.profile-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--v4-line); }
.profile-row span { color: #89949b; }
.profile-row strong { text-align: right; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.studio-panel { border: 1px solid var(--v4-line); background: var(--v4-panel); padding: 28px; }
.studio-panel h2 { margin: 8px 0 18px; }
.studio-list { display: grid; gap: 10px; margin-top: 16px; }
.studio-item { padding: 14px; border: 1px solid var(--v4-line); background: rgba(255,255,255,.025); }
.studio-item strong { display: block; }
.studio-item small { color: #8d979e; }
.studio-actions { display: flex; gap: 8px; margin-top: 10px; }
.studio-actions button { padding: 8px 10px; border: 1px solid var(--v4-line); background: #111920; color: #fff; cursor: pointer; }
.studio-actions button[data-action="approve"] { border-color: rgba(108,214,164,.4); color: #9be7c3; }
.publication-loading { min-height: 55vh; display: grid; place-items: center; color: #9da7ad; }
.dynamic-article { display: none; }
.dynamic-article.active { display: block; }

/* Forms and remote cards */
.portal-v4 .site-form input,
.portal-v4 .site-form textarea,
.portal-v4 .site-form select,
.portal-v4 .newsletter-form input {
  border-radius: 0;
  border-color: rgba(255,255,255,.15);
  background: #080d11;
}
.portal-v4 .site-form input:focus,
.portal-v4 .site-form textarea:focus,
.portal-v4 .site-form select:focus { border-color: var(--v4-amber); box-shadow: 0 0 0 3px rgba(241,168,58,.08); }
.remote-card { border: 1px solid var(--v4-line); background: var(--v4-panel); padding: 20px; }
.remote-card h3 { margin: 8px 0; }
.remote-card p { margin: 0; color: var(--v4-muted); }
.config-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--v4-line); color: #9ea8ae; font-size: .65rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.config-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #727d84; }
.config-badge.live::before { background: var(--v4-green); box-shadow: 0 0 12px rgba(108,214,164,.6); }

/* Existing content refinement */
.portal-v4 .page-hero { min-height: 560px; }
.portal-v4 .page-hero-copy h1 { max-width: 1000px; font-size: clamp(3rem, 6vw, 6.6rem); line-height: .9; letter-spacing: -.06em; }
.portal-v4 .page-hero-overlay { background: linear-gradient(90deg, rgba(4,7,9,.95), rgba(4,7,9,.36) 70%), linear-gradient(0deg, #070b0f, transparent 60%); }
.portal-v4 .story-card,
.portal-v4 .guide-card,
.portal-v4 .sidebar-card,
.portal-v4 .news-row { border-radius: 0; }
.portal-v4 .story-card:hover,
.portal-v4 .guide-card:hover { transform: translateY(-4px); border-color: rgba(241,168,58,.45); }
.portal-v4 .article-header h1 { font-size: clamp(3rem, 6.5vw, 6.8rem); line-height: .92; letter-spacing: -.065em; }
.portal-v4 .article-content { font-size: 1.02rem; }
.portal-v4 .article-section h2 { letter-spacing: -.04em; }
.portal-v4 .site-footer { background: #05080b; }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal-ready [data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .portal-v4 * { scroll-behavior: auto !important; }
}

@media (max-width: 1120px) {
  .portal-hero-grid { grid-template-columns: 1fr; }
  .hero-dispatch { max-width: 680px; }
  .portal-facts-grid { grid-template-columns: repeat(3, 1fr); }
  .portal-fact:nth-child(3) { border-right: 0; }
  .portal-fact:nth-child(n+4) { border-top: 1px solid var(--v4-line); }
  .dispatch-grid, .world-grid { grid-template-columns: 1fr; }
  .dispatch-lead { min-height: 570px; }
  .world-mosaic { max-width: 900px; }
  .community-panel-v4 { grid-template-columns: 1fr; }
  .community-panel-media::after { background: linear-gradient(0deg, #0b1116 0%, transparent 35%); }
  .portal-tool:nth-child(n) { grid-column: span 6; }
  .studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .portal-v4 .shell { width: min(100% - 28px, 1440px); }
  .portal-v4 .header-actions .account-chip { display: none; }
  .portal-hero { min-height: auto; }
  .portal-hero-grid { padding: 78px 0 52px; }
  .portal-hero h1 { font-size: clamp(3.35rem, 15vw, 5.8rem); }
  .hero-dispatch { max-width: none; }
  .portal-facts-grid { grid-template-columns: 1fr 1fr; }
  .portal-fact:nth-child(n) { border-right: 1px solid var(--v4-line); border-top: 1px solid var(--v4-line); }
  .portal-fact:nth-child(-n+2) { border-top: 0; }
  .portal-fact:nth-child(2n) { border-right: 0; }
  .portal-fact:last-child { grid-column: 1 / 3; border-right: 0; }
  .portal-section-head { align-items: start; }
  .portal-section-index { display: none; }
  .dispatch-lead { min-height: 520px; }
  .dispatch-card { grid-template-columns: 130px 1fr; }
  .world-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 360px 220px; }
  .world-shot:first-child { grid-column: 1 / 3; grid-row: auto; }
  .portal-tool:nth-child(n) { grid-column: span 12; }
  .member-grid { grid-template-columns: 1fr; }
  .community-metrics { grid-template-columns: 1fr; }
  .community-panel-copy { padding: 38px 26px; }
}
@media (max-width: 560px) {
  .portal-v4 .shell, .portal-v4 .shell-wide, .portal-v4 .shell-narrow { width: calc(100% - 24px); }
  .portal-hero-grid { padding-top: 60px; }
  .portal-hero h1 { font-size: clamp(3.05rem, 16vw, 4.5rem); }
  .portal-hero-lead { font-size: .96rem; }
  .hero-visual-credit { display: none; }
  .portal-fact { min-height: 82px; padding: 16px; }
  .portal-fact strong { font-size: .84rem; }
  .portal-section { padding: 66px 0; }
  .portal-section-head { margin-bottom: 24px; }
  .portal-section-head h2 { font-size: 2.55rem; }
  .dispatch-lead { min-height: 500px; }
  .dispatch-lead-copy { padding: 24px; }
  .dispatch-lead h3 { font-size: 2.35rem; }
  .dispatch-card { grid-template-columns: 1fr; }
  .dispatch-card-media { aspect-ratio: 16 / 7; }
  .world-points { grid-template-columns: 1fr; }
  .world-mosaic { display: block; }
  .world-shot { min-height: 260px; margin-top: 10px; }
  .world-shot:first-child { min-height: 360px; }
  .people-rail-v4 { grid-auto-columns: 78vw; }
  .community-panel-v4 { border-left: 0; border-right: 0; }
  .community-panel-media { min-height: 340px; }
  .member-hero { padding: 68px 0 46px; }
  .member-card { padding: 24px 18px; }
}

.video-modal[hidden] { display: none; }
.video-modal { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 24px; }
.video-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.86); cursor: pointer; }
.video-modal-dialog { position: relative; z-index: 1; width: min(1100px, 96vw); box-shadow: 0 30px 100px rgba(0,0,0,.68); }
.video-modal-frame { aspect-ratio: 16 / 9; background: #000; border: 1px solid rgba(255,255,255,.22); }
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal-close { position: absolute; z-index: 2; right: 0; top: -48px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); background: #0b1116; color: #fff; font-size: 1.6rem; cursor: pointer; }
.video-modal-close:hover { color: var(--v4-amber); border-color: var(--v4-amber); }
