/* Radflow — design system (light editorial) */
:root {
  --bg: #fcfcfc;
  --white: #ffffff;
  --ink: #041626;
  --slate: #374557;
  --muted: #748296;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --accent: #851ce8;
  --accent-2: #9b4dff;
  --accent-soft: #f3e8fe;
  --display: "Inter", "Inter Display", system-ui, sans-serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1280px;
  --gutter: 24px;
  --r: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.4 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.04em; font-optical-sizing: auto; }
.dim { color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(252, 252, 252, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header .wrap { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -.05em; color: var(--ink); }
.logo::after { content: ""; width: 2px; height: 24px; margin-left: 3px; background: var(--accent); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav { display: flex; gap: 34px; }
.nav a { font-size: 16px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.header-search { justify-self: end; display: flex; align-items: center; width: 240px; height: 46px; padding: 4px 4px 4px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(4, 22, 38, .04); }
.header-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 15px; color: var(--ink); }
.header-search input::placeholder { color: var(--muted); }
.header-search button { width: 36px; height: 36px; border: 0; border-radius: 7px; background: var(--soft); color: var(--slate); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.header-search button:hover { background: var(--line); }
.menu-btn { display: none; justify-self: end; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 23px; }
.header.is-open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.header.is-open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 28px; border-radius: 10px; border: 1px solid transparent; font-size: 17px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: #fcfcfc; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -8px rgba(133, 28, 232, .7); }
.btn-accent:hover { background: #7316cc; }
.btn-white { background: var(--white); color: var(--accent); }
.btn-white:hover { background: #f6f0ff; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); height: 46px; padding: 0 20px; font-size: 16px; }
.btn-ghost:hover { border-color: #cbd5e1; }
.input { height: 54px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; background: var(--soft); font-size: 17px; color: var(--ink); outline: none; transition: border-color .2s, background .2s; min-width: 0; }
.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--accent); background: var(--white); }
.subscribe-row { display: flex; gap: 8px; position: relative; }
.subscribe-row .input { flex: 1; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 10px; min-height: 15px; }

/* ---------- Page heads ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: center; padding: 120px 0 72px; }
.home-hero h1, .page-title { font-size: 76px; line-height: 1.1; }
.home-hero h1 .dim, .page-title .dim { color: var(--muted); }
.hero-aside p { font-size: 18px; line-height: 1.45; color: var(--slate); max-width: 300px; margin: 14px 0 22px; }
.dept-stack { display: flex; }
.dept-stack span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -8px; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 35%, #fff), var(--c) 70%); box-shadow: 0 2px 6px rgba(4,22,38,.12); }
.dept-stack span:first-child { margin-left: 0; }
.page-head { padding: 120px 0 64px; }
.page-head p.lead { font-size: 21px; line-height: 1.5; color: var(--slate); max-width: 640px; margin-top: 20px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-size: 52px; line-height: 1.15; letter-spacing: -.03em; max-width: 680px; }
.arrows { display: flex; gap: 8px; }
.arrow { width: 54px; height: 54px; border-radius: 10px; border: 0; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s; }
.arrow:hover { background: var(--line); }
.arrow:disabled { opacity: .4; cursor: default; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; height: 46px; min-width: 230px; padding: 0 40px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 16px; color: var(--slate); cursor: pointer; outline: none; box-shadow: 0 1px 2px rgba(4, 22, 38, .04); }
.select select:focus { border-color: var(--accent); }
.select svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--slate); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
.card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-img { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 1 / .98; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.tags { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { height: 32px; padding: 0 12px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 15px; color: #fcfcfc; background: rgba(4, 22, 38, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(252, 252, 252, .12); }
.card-body { padding: 0 10px; display: flex; flex-direction: column; gap: 16px; }
.card-meta, .meta-row { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--slate); }
.card-meta > span, .meta-row > span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta > span + span { padding-left: 12px; border-left: 1px solid var(--line); }
.card-meta svg, .meta-row svg { color: var(--slate); flex-shrink: 0; }
.card h3 { font-family: var(--sans); font-size: 23px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; transition: color .2s; }
.card:hover h3 { color: var(--accent); }
.card p { font-size: 17px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: -6px; }

/* ---------- Carousel ---------- */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .card { scroll-snap-align: start; }
.progress { margin-top: 40px; width: 160px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-left: 10px; }
.progress span { display: block; height: 100%; width: 33%; background: var(--accent); border-radius: 3px; transition: transform .3s var(--ease); }

/* ---------- Folder (department) cards ---------- */
.split { display: grid; grid-template-columns: 300px 1fr; gap: 80px; align-items: start; }
.split-intro h2 { font-size: 52px; line-height: 1.15; letter-spacing: -.03em; }
.split-intro p { color: var(--slate); font-size: 20px; line-height: 1.45; margin-top: 18px; max-width: 320px; }
.split-intro .btn { margin-top: 28px; }
.folders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.folder { display: flex; flex-direction: column; gap: 14px; }
.folder-box { position: relative; aspect-ratio: 1.42 / 1; margin-top: 28px; border-radius: 10px; background: linear-gradient(180deg, #e2e8f0, #cbd5e1); }
.folder-box::before { content: ""; position: absolute; left: 0; top: -12px; width: 38%; height: 14px; border-radius: 8px 8px 0 0; background: #e2e8f0; }
.folder-papers { position: absolute; left: 8%; right: 8%; top: -22px; height: 78%; }
.folder-papers img { position: absolute; width: 64%; aspect-ratio: 1.3 / 1; object-fit: cover; border-radius: 6px; border: 3px solid #fff; box-shadow: 0 6px 14px -6px rgba(4,22,38,.35); transition: transform .5s var(--ease); }
.folder-papers img:nth-child(1) { left: 2%; top: 14%; transform: rotate(-9deg); }
.folder-papers img:nth-child(2) { left: 20%; top: 0; transform: rotate(-3deg); z-index: 1; }
.folder-papers img:nth-child(3) { right: 0; top: 10%; transform: rotate(7deg); z-index: 2; }
.folder:hover .folder-papers img:nth-child(1) { transform: rotate(-14deg) translate(-6px, -8px); }
.folder:hover .folder-papers img:nth-child(2) { transform: rotate(-2deg) translateY(-14px); }
.folder:hover .folder-papers img:nth-child(3) { transform: rotate(12deg) translate(6px, -8px); }
.folder-front { position: absolute; inset: 46% 0 0; z-index: 3; border-radius: 10px; background: linear-gradient(180deg, rgba(248,250,252,.55), rgba(226,232,240,.92)); backdrop-filter: blur(6px) saturate(1.2); -webkit-backdrop-filter: blur(6px) saturate(1.2); border: 1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 0 #fff, 0 10px 24px -14px rgba(4,22,38,.25); display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px 14px; }
.folder-front span { font-size: 14px; color: var(--slate); }
.folder-name { font-size: 19px; font-weight: 500; color: var(--slate); padding-left: 4px; transition: color .2s; }
.folder:hover .folder-name { color: var(--accent); }

/* ---------- Trust / newsletter panel ---------- */
.panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.panel-left { padding: 48px 48px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-width: 0; }
.panel-left h3 { font-family: var(--sans); font-size: 28px; line-height: 1.3; font-weight: 500; color: var(--slate); max-width: 400px; letter-spacing: -.01em; }
.ticker { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(calc(-50% - 20px)); } }
.point { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; width: 290px; }
.point i { grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-style: normal; }
.point strong { font-weight: 500; font-size: 16px; color: var(--ink); }
.point span { font-size: 15px; line-height: 1.35; color: var(--slate); }
.panel-right { background: var(--accent); color: #fcfcfc; padding: 48px; position: relative; overflow: hidden; }
.panel-right::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.panel-right h3 { font-family: var(--display); font-size: 42px; line-height: 1.15; letter-spacing: -.03em; max-width: 420px; }
.panel-right p { font-size: 18px; line-height: 1.4; color: rgba(252,252,252,.75); margin: 16px 0 32px; max-width: 420px; }
.panel-right .input { background: rgba(252,252,252,.12); color: #fff; }
.panel-right .input::placeholder { color: rgba(252,252,252,.65); }
.panel-right .input:focus { background: rgba(252,252,252,.18); border-color: rgba(255,255,255,.5); }
.panel-right .form-note { color: rgba(252,252,252,.7); }

/* ---------- Footer ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr auto auto auto; gap: 0; padding: 64px 0; }
.footer-brand p { font-size: 18px; line-height: 1.35; color: var(--slate); max-width: 340px; margin: 14px 0 40px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--ink); transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-col { padding: 0 48px; border-left: 1px solid var(--line); }
.footer-col:first-of-type { border-left: 0; }
.footer-col h4 { font-family: var(--sans); font-size: 18px; font-weight: 500; color: var(--accent); margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-col.two ul { grid-template-columns: auto auto; gap: 14px 40px; }
.footer-col a { font-size: 16px; color: var(--slate); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-col .footer-col-pad { padding-right: 0; }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0 32px; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--slate); flex-wrap: wrap; }
.footer-bottom nav, .footer-bottom div { display: flex; gap: 10px; align-items: center; }
.footer-bottom i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }
.footer-bottom a:hover { color: var(--accent); }
.footer-note { width: 100%; color: var(--muted); }

/* ---------- Article ---------- */
.gridbg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: center top; position: relative; }
.gridbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(252,252,252,.55), var(--bg) 92%); pointer-events: none; }
.gridbg > * { position: relative; z-index: 1; }
.post-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 80px 0 96px; }
.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 15px; }
.post-head h1 { font-size: 56px; line-height: 1.2; letter-spacing: -.035em; margin: 22px 0 22px; }
.post-head .lede { font-size: 21px; line-height: 1.5; color: var(--slate); }
.post-facts { display: flex; margin: 32px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-facts > div { padding: 0 32px; border-left: 1px solid var(--line); display: grid; gap: 6px; }
.post-facts > div:first-child { padding-left: 0; border-left: 0; }
.post-facts small { font-size: 15px; color: var(--muted); }
.post-facts span { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--slate); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 16px; }
.byline .avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 3px var(--bg), 0 4px 10px rgba(4,22,38,.2); }
.byline small { display: block; color: var(--muted); font-size: 15px; margin-bottom: 2px; }
.byline strong { font-weight: 400; color: var(--slate); }
.post-cover { border-radius: 16px; overflow: hidden; aspect-ratio: 1.12 / 1; box-shadow: 0 30px 60px -40px rgba(4,22,38,.5); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-body { display: grid; grid-template-columns: 280px minmax(0, 720px); gap: 0 54px; justify-content: start; padding-top: 40px; border-top: 1px solid var(--line); }
.post-aside { position: relative; border-right: 1px solid var(--line); padding-right: 54px; margin-right: -54px; }
.aside-sticky { position: sticky; top: 88px; }
.read-progress { height: 3px; border-radius: 3px; background: var(--line); margin-bottom: 28px; overflow: hidden; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.toc { border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; }
.toc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 17px; color: var(--slate); cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { transition: transform .3s var(--ease); }
.toc[open] summary svg { transform: rotate(180deg); }
.toc nav { display: grid; gap: 14px; padding: 6px 16px 18px; }
.toc nav a { font-size: 15px; line-height: 1.4; color: var(--muted); transition: color .2s; }
.toc nav a:hover, .toc nav a.is-active { color: var(--accent); }
.prose { font-size: 20px; line-height: 1.65; color: var(--slate); min-width: 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-family: var(--display); font-size: 32px; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); margin-top: 44px; }
.prose h3, .prose h4 { font-family: var(--display); font-size: 23px; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); margin-top: 32px; }
.prose h2 + p, .prose h4 + ul { margin-top: 14px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { padding-left: 4px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 36px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: var(--display); font-size: 27px; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); font-weight: 500; }
.prose em { color: var(--muted); }
.prose img { border-radius: var(--r); }
.post-end { margin-top: 64px; }
.share { display: flex; justify-content: space-between; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.share > p { font-size: 22px; font-weight: 500; color: var(--slate); }
.share div { display: flex; gap: 8px; }
.share a, .share button { width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--slate); cursor: pointer; transition: border-color .2s, color .2s; position: relative; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.share button.copied::after { content: "Copied"; position: absolute; bottom: calc(100% + 6px); font-size: 13px; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; }
.pager { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; }
.pager a { display: grid; gap: 12px; max-width: 340px; }
.pager a.next { margin-left: auto; text-align: right; justify-items: end; }
.pager small { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 7px; background: var(--soft); font-size: 15px; color: var(--slate); width: max-content; }
.pager span { font-size: 20px; line-height: 1.3; color: var(--slate); transition: color .2s; }
.pager a:hover span { color: var(--accent); }
.disclaimer { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* ---------- Articles listing ---------- */
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 42px; padding: 0 18px; border-radius: 9px; border: 1px solid var(--line); background: var(--white); font-size: 16px; color: var(--slate); display: inline-flex; align-items: center; gap: 6px; transition: all .2s; }
.chip:hover { border-color: #cbd5e1; color: var(--ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.empty { text-align: center; padding: 80px 0; display: grid; gap: 12px; justify-items: center; }
.empty h3 { font-family: var(--display); font-size: 32px; letter-spacing: -.02em; }
.empty p { color: var(--muted); }

/* ---------- Department page ---------- */
.dept-head { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 96px 0 64px; }
.dept-icon { width: 104px; height: 104px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 10px 30px -18px rgba(4,22,38,.4); }
.dept-icon span { width: 56px; height: 56px; border-radius: 14px; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 30%, #fff), var(--c) 65%, color-mix(in srgb, var(--c) 70%, #000)); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 8px 18px -8px var(--c); }
.dept-head h1 { font-size: 76px; line-height: 1.05; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.count-pill { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 7px; margin-top: 4px; }
.dept-head p { margin-top: 12px; font-size: 19px; line-height: 1.4; color: var(--slate); max-width: 600px; }

/* ---------- About ---------- */
.about-image { border-radius: 16px; overflow: hidden; aspect-ratio: 2.4 / 1; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: grid; grid-template-columns: 300px 1fr; gap: 80px; padding: 96px 0; }
.about-text h2 { font-size: 22px; font-family: var(--sans); font-weight: 500; color: var(--slate); letter-spacing: -.01em; line-height: 1.35; }
.about-text div p { font-size: 27px; line-height: 1.4; color: var(--ink); letter-spacing: -.01em; }
.about-text div p + p { margin-top: 24px; color: var(--slate); font-size: 21px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 32px; border-left: 1px solid var(--line); display: grid; gap: 10px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-family: var(--display); font-size: 64px; letter-spacing: -.04em; font-weight: 600; line-height: 1; }
.stat p { color: var(--slate); font-size: 18px; line-height: 1.35; max-width: 280px; }
.stat small { color: var(--accent); font-size: 16px; margin-top: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px 0 0; align-items: start; }
.contact-info { display: grid; grid-template-columns: 110px 1fr; gap: 20px 16px; font-size: 17px; }
.contact-info dt { color: var(--ink); }
.contact-info dd { margin: 0; color: var(--slate); line-height: 1.45; }
.contact-info a:hover { color: var(--accent); }
.form-frame { padding: 8px; border-radius: 18px; background: linear-gradient(160deg, var(--line), #ede4fb 55%, #c9a5f5); }
.form-card { background: var(--white); border-radius: 12px; padding: 32px; }
.talk { display: block; margin-bottom: 28px; }
.talk > span { display: block; font-size: 18px; color: var(--slate); margin-bottom: 8px; }
.talk input, .talk textarea, .talk select { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 8px 0; font-size: 22px; color: var(--ink); outline: none; transition: border-color .2s; border-radius: 0; resize: vertical; }
.talk input::placeholder, .talk textarea::placeholder { color: #b9c2cf; }
.talk input:focus, .talk textarea:focus, .talk select:focus { border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: center; font-size: 16px; color: var(--slate); margin: 0 0 24px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-errors { background: #fdecef; color: #a3122f; border-radius: 8px; padding: 10px 12px; font-size: 16px; margin-bottom: 20px; display: grid; gap: 2px; }
.form-done { display: grid; gap: 12px; justify-items: start; }
.form-done h3 { font-family: var(--display); font-size: 36px; letter-spacing: -.03em; }
.form-done p { color: var(--slate); }

/* ---------- Toast & motion ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 16px; opacity: 0; transition: all .4s var(--ease); z-index: 100; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(20px); filter: blur(4px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .ticker-track, .logo::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .home-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 88px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .post-body { grid-template-columns: 1fr; }
  .post-aside { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 48px 0; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { padding: 0 32px 0 0; border-left: 0; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .header .wrap { grid-template-columns: 1fr auto; }
  .menu-btn { display: block; }
  .nav, .header-search { display: none; }
  .header.is-open .nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 72px; box-shadow: 0 16px 32px -20px rgba(4,22,38,.25); }
  .header.is-open .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .header.is-open .header-search { display: flex; position: absolute; z-index: 2; top: 356px; justify-self: stretch; left: 16px; right: 16px; width: auto; }
  .header.is-open { padding-bottom: 0; }
  .home-hero h1, .page-title, .dept-head h1 { font-size: 44px; letter-spacing: -.035em; }
  .home-hero { padding: 64px 0 48px; }
  .page-head { padding: 64px 0 40px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2, .split-intro h2 { font-size: 36px; }
  .grid { grid-template-columns: 1fr; }
  .carousel { grid-auto-columns: 82%; }
  .folders { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .panel { grid-template-columns: 1fr; }
  .panel-left, .panel-right { padding: 32px 24px; }
  .subscribe-row { flex-direction: column; }
  .post-head { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 56px; }
  .post-head h1 { font-size: 38px; }
  .post-facts { flex-wrap: wrap; gap: 16px 0; }
  .post-facts > div { padding: 0 16px; }
  .prose { font-size: 19px; }
  .prose h2 { font-size: 27px; }
  .dept-head { grid-template-columns: 1fr; gap: 20px; padding: 56px 0 40px; }
  .about-text, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-text { padding: 56px 0; }
  .about-image { aspect-ratio: 1.4 / 1; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; }
  .stat:first-child { border-top: 0; }
  .form-card { padding: 24px 20px; }
  .footer { margin-top: 64px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-col { padding: 0; }
  .footer-col.two ul { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .pager { flex-direction: column; }
}
@media (max-width: 420px) {
  .folders { grid-template-columns: 1fr; }
}
