@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Franklin:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --ink: #17202a;
  --ink-2: #29333b;
  --ivory: #f5f1ea;
  --paper: #fffdf9;
  --terracotta: #d66b55;
  --terracotta-dark: #b9513f;
  --sage: #a9b8aa;
  --sand: #d8b98a;
  --cloud: #e6e2dc;
  --muted: #6d7477;
  --line: rgba(23, 32, 42, .11);
  --shadow: 0 20px 60px rgba(31, 32, 30, .08);
  --radius: 22px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Libre Franklin", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 5vw, 5.2rem); line-height: .98; margin-bottom: 20px; }
h2 { font-size: clamp(1.65rem, 2.6vw, 2.75rem); line-height: 1.08; margin-bottom: 14px; }
h3 { line-height: 1.25; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 30; padding: 32px 22px 24px; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-lockup img { width: 40px; height: 40px; object-fit: contain; }
.brand-lockup span { display: grid; line-height: 1; }
.brand-lockup b { font-family: var(--serif); font-size: 20px; }
.brand-lockup small { margin-top: 5px; color: var(--sand); letter-spacing: .12em; text-transform: uppercase; font-size: 8px; }
.main-nav { display: grid; gap: 5px; margin-top: 27px; }
.main-nav a { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 13px; border-radius: 11px; color: rgba(255,255,255,.63); font-weight: 500; transition: .2s ease; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); transform: translateX(2px); }
.main-nav a.active { color: #fff; background: var(--terracotta); box-shadow: 0 8px 24px rgba(214,107,85,.2); }
.main-nav svg { width: 18px; height: 18px; }
.sidebar-note { margin-top: auto; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; padding: 15px; display: grid; background: rgba(255,255,255,.035); }
.sidebar-note span, .sidebar-note small { color: rgba(255,255,255,.55); font-size: 11px; }
.sidebar-note b { margin: 3px 0; }

.workspace { margin-left: 250px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 clamp(24px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(245,241,234,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.breadcrumbs { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; }
.breadcrumbs i { opacity: .4; }
.breadcrumbs b { color: var(--ink); }
.search-button { width: 280px; height: 38px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.56); padding: 0 11px 0 14px; color: var(--muted); cursor: pointer; }
kbd { padding: 2px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 10px; }
.mobile-menu { display: none; }
.icon-button { border: 0; background: transparent; color: var(--ink); padding: 8px; }

.page { max-width: 1530px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 64px) 80px; }
.page-hero { min-height: 310px; display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; padding: 60px 0 50px; border-bottom: 1px solid var(--line); }
.page-hero > div:first-child { max-width: 850px; }
.page-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 17px; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--terracotta-dark); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: var(--sand); }
.hero-actions, .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { min-height: 44px; padding: 0 19px; border: 1px solid var(--terracotta); border-radius: 11px; background: var(--terracotta); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; cursor: pointer; transition: .2s; }
.button:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); transform: translateY(-1px); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover { background: #fff; }
.button.light { color: var(--ink); background: #fff; border-color: #fff; }
.button.small { min-height: 36px; padding: 0 14px; }

.summary-grid { display: grid; grid-template-columns: minmax(340px, 1.8fr) repeat(3, minmax(150px, .7fr)); gap: 14px; padding: 34px 0; }
.summary-card, .metric-card { border-radius: 18px; padding: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.summary-card.primary { color: #fff; background: var(--ink); border: 0; padding: 28px; }
.summary-card span, .metric-card small { display: block; color: var(--terracotta); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.summary-card strong { display: block; margin: 7px 0; font-family: var(--serif); font-size: 24px; }
.summary-card p { color: rgba(255,255,255,.65); margin-bottom: 12px; font-size: 13px; }
.summary-card a { color: var(--sand); font-weight: 700; font-size: 12px; }
.metric-card { display: flex; flex-direction: column; justify-content: center; }
.metric-card strong { display: block; margin: 8px 0 1px; font-family: var(--serif); font-size: 37px; line-height: 1; }
.metric-card span { color: var(--muted); font-size: 11px; }
.section-block { padding: 70px 0; }
.section-heading { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-heading > p { max-width: 430px; color: var(--muted); margin-bottom: 3px; }
.section-heading.compact { margin-bottom: 18px; }
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.portal-card { min-height: 305px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.55); display: flex; flex-direction: column; transition: .25s; }
.portal-card:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow); border-color: transparent; }
.portal-card > span { margin: 22px 0 10px; color: var(--terracotta); font-size: 10px; font-weight: 700; }
.portal-card h3 { font-family: var(--serif); font-size: 23px; margin: 0 0 11px; }
.portal-card p { color: var(--muted); font-size: 13px; }
.portal-card b { margin-top: auto; font-size: 12px; }
.portal-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: rgba(214,107,85,.12); color: var(--terracotta-dark); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.dark-panel, .status-panel { min-height: 400px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); }
.dark-panel { color: #fff; background: var(--ink); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; position: relative; overflow: hidden; }
.dark-panel::after { content:""; position:absolute; width:260px; height:260px; border:1px solid rgba(216,185,138,.22); border-radius:50%; top:-80px; right:-70px; box-shadow: 0 0 0 40px rgba(216,185,138,.035), 0 0 0 80px rgba(216,185,138,.025); }
.dark-panel p { color: rgba(255,255,255,.66); max-width: 650px; }
.status-panel { background: var(--paper); border: 1px solid var(--line); }
.status-row { padding: 13px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-row div { display: grid; }
.status-row small { color: var(--muted); font-size: 11px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 4px rgba(216,185,138,.17); }
.status-dot.ready { background: #718d72; box-shadow: 0 0 0 4px rgba(113,141,114,.14); }
.status-dot.blocked { background: var(--terracotta); box-shadow: 0 0 0 4px rgba(214,107,85,.14); }

.document-shell { margin-top: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 35px rgba(23,32,42,.035); }
.doc-tabs { padding: 11px; display: flex; gap: 7px; border-bottom: 1px solid var(--line); background: rgba(230,226,220,.25); overflow-x: auto; }
.doc-tab, .ops-tabs button, .filter-row button { white-space: nowrap; border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 9px 14px; cursor: pointer; font-weight: 600; font-size: 12px; }
.doc-tab.active, .ops-tabs button.active, .filter-row button.active { color: #fff; background: var(--ink); }
.doc-panel { display: none; }
.doc-panel.active { display: block; }
.prose { max-width: 980px; padding: clamp(30px, 5vw, 72px); }
.prose h1, .prose h2, .prose h3 { scroll-margin-top: 100px; }
.prose h2 { margin: 55px 0 15px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose h3 { margin: 30px 0 10px; font-size: 18px; }
.prose p, .prose li { color: #3f474c; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 25px 0; padding: 18px 22px; border-left: 4px solid var(--terracotta); background: rgba(214,107,85,.06); color: var(--ink); }
.prose code { background: var(--cloud); padding: 2px 6px; border-radius: 4px; }
.prose table { width: 100%; margin: 25px 0; border-collapse: collapse; font-size: 13px; }
.prose th, .prose td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--ink); color: #fff; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.anchor-nav { position: sticky; top: 82px; z-index: 12; margin: 20px 0 30px; padding: 9px; display: flex; gap: 7px; border: 1px solid var(--line); border-radius: 13px; background: rgba(245,241,234,.9); backdrop-filter: blur(12px); }
.anchor-nav a { padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.anchor-nav a:hover { background: #fff; }
.video-stack { display: grid; gap: 25px; }
.video-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(25px, 4vw, 50px); scroll-margin-top: 145px; }
.video-card-head { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.video-card-head > div:first-child { max-width: 760px; }
.video-card-head p { color: var(--muted); }
.video-meta { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.video-meta span, .ops-video div small { padding: 6px 10px; border-radius: 99px; background: var(--cloud); font-size: 10px; font-weight: 700; }
.hook-callout { margin: 25px 0 35px; padding: 22px 26px; border-radius: 15px; background: var(--ink); color: #fff; }
.hook-callout small { color: var(--sand); text-transform: uppercase; letter-spacing: .15em; }
.hook-callout blockquote { margin: 7px 0 0; font-family: var(--serif); font-size: clamp(20px, 2.5vw, 30px); line-height: 1.25; }
.video-layout { display: grid; grid-template-columns: 1.3fr .8fr; gap: 38px; }
.video-layout h3, .production-details h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.script-copy p { font-size: 16px; }
.production-box { margin-bottom: 14px; padding: 20px; border-radius: 14px; background: var(--ivory); }
.production-box ul, .detail-grid ul { padding-left: 19px; }
.production-box li, .detail-grid li { margin-bottom: 8px; color: #495055; font-size: 13px; }
.production-details { margin-top: 25px; border-top: 1px solid var(--line); }
.production-details summary { padding: 20px 0 0; cursor: pointer; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 20px; }

.ops-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 32px 0 20px; }
.operations-shell { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.ops-tabs { display: flex; gap: 5px; padding: 12px; border-bottom: 1px solid var(--line); background: rgba(230,226,220,.28); overflow-x: auto; }
.ops-panel { display: none; padding: clamp(22px, 3.5vw, 48px); }
.ops-panel.active { display: block; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.dashboard-card { padding: 26px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.dashboard-card.span-2 { grid-column: span 2; }
.dashboard-card.span-3 { grid-column: span 3; }
.progress-item { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.progress-item:last-child { border-bottom: 0; }
.progress-item div { display: grid; }
.progress-item small { color: var(--muted); }
.status-pill { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 99px; color: #795d2d; background: #f4ead6; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.status-pill.ready { color: #49624d; background: #e3ece4; }
.status-pill.blocked { color: #8b3c30; background: #f5dfda; }
.key-values { margin: 0; }
.key-values div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.key-values dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.key-values dd { margin: 2px 0 0; font-weight: 700; }
.pending-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pending-grid > div { padding: 20px; border-radius: 14px; background: var(--ivory); }
.pending-grid span { color: var(--terracotta); font-weight: 800; }
.pending-grid b { display: block; margin: 8px 0; }
.pending-grid p, .pending-grid small { color: var(--muted); font-size: 12px; }
.panel-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.panel-heading p { max-width: 480px; margin-bottom: 3px; color: var(--muted); }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 800px; font-size: 12px; }
.data-table th { padding: 11px 13px; color: rgba(255,255,255,.65); background: var(--ink); text-align: left; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.data-table td { padding: 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(245,241,234,.5); }
.data-table td small { display: block; color: var(--muted); margin-top: 3px; max-width: 300px; }
.table-tag { font-size: 10px; font-weight: 700; color: var(--terracotta-dark); }
.ops-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.ops-video { padding: 27px; min-height: 235px; border-radius: 17px; border: 1px solid var(--line); background: var(--ivory); display: flex; flex-direction: column; }
.ops-video > span { color: var(--terracotta); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.ops-video h3 { margin: 15px 0 9px; font-family: var(--serif); font-size: 22px; }
.ops-video p { color: var(--muted); font-size: 13px; }
.ops-video div { display: flex; gap: 6px; }
.ops-video a { margin-top: auto; padding-top: 15px; font-weight: 700; font-size: 12px; }
.filter-input { width: min(330px, 100%); height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; }
.filter-input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(214,107,85,.1); }
.filter-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; }
.filter-row button { background: var(--ivory); }
.idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.idea-card { min-height: 215px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; display: flex; flex-direction: column; }
.idea-card.hidden { display: none; }
.idea-card > span { color: var(--terracotta); font-size: 10px; font-weight: 800; }
.idea-card h3 { margin: 13px 0 8px; font-size: 16px; }
.idea-card > p { color: var(--muted); font-size: 11px; }
.idea-card div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.idea-card small { padding: 4px 7px; background: var(--ivory); border-radius: 6px; font-size: 9px; }
.hook-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.hook-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.hook-card > div { display: flex; justify-content: space-between; gap: 15px; color: var(--terracotta-dark); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hook-card h3 { margin: 18px 0 12px; font-family: var(--serif); font-size: 19px; }
.hook-card p, .hook-card > small { color: var(--muted); font-size: 12px; }
.metric-summary { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.metric-summary div { padding: 18px; border-right: 1px solid var(--line); background: var(--ivory); }
.metric-summary div:last-child { border: 0; }
.metric-summary span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.metric-summary strong { font-family: var(--serif); font-size: 25px; }
.local-note { color: var(--muted); font-size: 11px; }
.metrics-table { min-width: 1250px; }
.metric-input { width: 72px; height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 0 7px; background: #fff; }
.metric-input:focus { outline: 2px solid rgba(214,107,85,.2); border-color: var(--terracotta); }
.retention { font-weight: 800; color: var(--terracotta-dark); }
.chart-card { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; }
.bar-chart { min-height: 170px; display: flex; align-items: flex-end; gap: 18px; padding-top: 15px; }
.bar-item { flex: 1; min-width: 80px; display: grid; grid-template-rows: 1fr auto; gap: 8px; height: 145px; text-align: center; }
.bar-track { height: 100%; display: flex; align-items: flex-end; border-radius: 8px; background: var(--ivory); overflow: hidden; }
.bar-fill { width: 100%; min-height: 3px; background: linear-gradient(180deg, var(--terracotta), var(--terracotta-dark)); transition: height .25s; }
.bar-item small { font-size: 9px; font-weight: 700; }
.task-status { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 10px; font-weight: 700; }

.resource-feature { margin: 35px 0 70px; padding: clamp(26px, 5vw, 60px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; border-radius: var(--radius); background: var(--ink); color: #fff; overflow: hidden; }
.resource-feature p { color: rgba(255,255,255,.65); }
.resource-feature img { border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.asset-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.asset-grid figure > img { width: 100%; aspect-ratio: 1.2; object-fit: cover; background: var(--cloud); }
.asset-grid figcaption { padding: 13px 15px; display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.asset-grid figcaption a { color: var(--terracotta-dark); font-weight: 700; }
.download-panel { margin-top: 10px; padding: 38px; display: flex; justify-content: space-between; align-items: center; gap: 40px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.download-panel p { color: rgba(255,255,255,.6); margin-bottom: 0; }
.download-panel > div:last-child { display: grid; gap: 8px; min-width: 220px; }
.download-panel a { padding: 11px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; font-size: 12px; }
.download-panel a:hover { background: rgba(255,255,255,.08); }
.presentation-frame { margin-top: 35px; min-height: 75vh; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.presentation-frame iframe { width: 100%; height: 75vh; border: 0; }
.presentation-fallback { padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.presentation-fallback p { margin: 0; color: var(--muted); }

.site-footer { margin: 0 clamp(24px, 4vw, 64px); padding: 26px 0 35px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.search-dialog { width: min(680px, calc(100% - 30px)); max-height: 70vh; padding: 0; border: 0; border-radius: 17px; background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.25); overflow: hidden; }
.search-dialog::backdrop { background: rgba(23,32,42,.58); backdrop-filter: blur(5px); }
.search-head { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.search-head input { flex: 1; height: 60px; padding: 0 20px; border: 0; outline: 0; background: transparent; }
.search-head button { width: 48px; height: 48px; border: 0; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.search-results { max-height: 55vh; overflow-y: auto; padding: 10px; }
.search-results > p { padding: 20px; color: var(--muted); text-align: center; }
.search-result { display: block; padding: 14px 16px; border-radius: 10px; }
.search-result:hover, .search-result.active { background: var(--ivory); }
.search-result b { display: block; }
.search-result small { color: var(--muted); }
.scrim { display: none; }
.reveal { animation: reveal .55s both; }
@keyframes reveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .portal-grid { grid-template-columns: repeat(3, 1fr); }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .summary-card.primary { grid-column: span 3; }
  .idea-grid { grid-template-columns: repeat(2, 1fr); }
  .ops-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; }
  body.menu-open .sidebar { transform: none; }
  .workspace { margin-left: 0; }
  .mobile-menu { display: inline-grid; place-items: center; }
  .scrim { position: fixed; inset: 0; z-index: 25; background: rgba(23,32,42,.45); }
  body.menu-open .scrim { display: block; }
  .breadcrumbs span, .breadcrumbs i { display: none; }
  .page-hero { min-height: 275px; }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .resource-feature, .video-layout { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card.span-2, .dashboard-card.span-3 { grid-column: span 1; }
  .pending-grid { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .topbar { height: 62px; padding: 0 15px; }
  .search-button { width: auto; border: 0; background: transparent; }
  .search-button span { display: none; }
  .page { padding: 0 16px 55px; }
  .page-hero { min-height: auto; padding: 44px 0 34px; display: block; }
  .page-hero p { font-size: 15px; }
  .hero-actions { margin-top: 24px; }
  h1 { font-size: 2.55rem; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card.primary { grid-column: span 2; }
  .section-heading, .panel-heading, .video-card-head, .download-panel, .presentation-fallback { align-items: flex-start; flex-direction: column; }
  .portal-grid, .ops-video-grid, .idea-grid, .hook-grid, .asset-grid, .detail-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 260px; }
  .two-col { grid-template-columns: 1fr; }
  .dark-panel, .status-panel { min-height: 340px; }
  .prose { padding: 25px 20px; overflow-x: auto; }
  .anchor-nav { top: 70px; overflow-x: auto; }
  .video-card { padding: 24px 19px; }
  .video-meta { justify-content: flex-start; }
  .ops-summary { grid-template-columns: 1fr 1fr; }
  .ops-panel { padding: 22px 14px; }
  .metric-summary { grid-template-columns: 1fr 1fr; }
  .metric-summary div { border-bottom: 1px solid var(--line); }
  .metric-summary div:nth-child(even) { border-right: 0; }
  .resource-feature { padding: 30px 22px; }
  .download-panel { padding: 28px 22px; }
  .download-panel > div:last-child { width: 100%; }
  .site-footer { margin: 0 16px; }
}

@media print {
  .sidebar, .topbar, .hero-actions, .ops-tabs, .site-footer, .search-dialog, .scrim { display: none !important; }
  .workspace { margin: 0; }
  .page { max-width: none; padding: 0; }
  .page-hero { min-height: 0; padding: 20px 0; }
  .ops-panel { display: block !important; break-before: page; padding: 20px 0; }
  .operations-shell { border: 0; }
  .table-wrap { overflow: visible; }
  .data-table { min-width: 0; font-size: 8px; }
}
