/*
Theme Name: Tansel Guney
Theme URI: https://tansel.eu
Author: Tansel Guney
Author URI: https://tansel.eu
Description: Personal site for writing on management, AI, design thinking and building things. Essays, notes, quotes and stories; English and Bulgarian; fast and SEO-friendly. After activating, open Appearance → Theme setup.
Version: 2.2.1
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tansel
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--bg: #0B0912;
	--bg-2: #0D0A15;
	--panel: #120E1B;
	--panel-2: #15111D;
	--ink: #EDEAF5;
	--ink-2: #C9C4D6;
	--ink-3: #B7B0C8;
	--muted: #8F88A3;
	--line: rgba(237, 234, 245, 0.08);
	--line-2: rgba(237, 234, 245, 0.18);
	--line-3: rgba(237, 234, 245, 0.25);
	--accent: #6D3BFF;
	--accent-soft: #B9A4FF;
	--amber: #FFB347;
	--pink: #FF7AAE;
	--blue: #5B9BFF;
	--grad: linear-gradient(90deg, #7B5CFF 0%, #C64DFF 32%, #FF5C9A 62%, #FFB347 100%);
	--font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-script: 'Allura', 'Segoe Script', cursive;
	--font-serif: Georgia, 'Times New Roman', serif;
	--max: 1360px;
	--gutter: 40px;
	--header-h: 81px;
	--radius: 20px;
}
body.is-cyrillic {
	--font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-script: 'Marck Script', 'Segoe Script', cursive;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; margin: 0; padding: 12px 18px; background: var(--accent); color: #fff; z-index: 100; border-radius: 999px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-pad { padding-top: 120px; padding-bottom: 120px; }
.section-pad-b { padding-bottom: 120px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }

/* ==========================================================================
   3. Type & small components
   ========================================================================== */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 500; }
.script { font-family: var(--font-script); font-weight: 400; }
.script .grad { font-weight: 400; }

.kicker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-3); }
.kicker__rule { width: 72px; height: 1px; background: var(--accent); }

.h-hero { font-size: clamp(44px, 5.4vw, 80px); line-height: 1.04; font-weight: 300; letter-spacing: -0.035em; }
.h-hero--md { font-size: clamp(40px, 5vw, 72px); line-height: 1.05; }
.h-section { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; font-weight: 300; letter-spacing: -0.02em; }
.h-card { font-size: 26px; line-height: 1.25; font-weight: 300; letter-spacing: -0.01em; }
.h-card--lg { font-size: 32px; }
.h-article { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.08; font-weight: 300; letter-spacing: -0.03em; }

.lede { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 640px; }
.lede--hero { font-size: 19px; max-width: 560px; }
.lede--article { font-size: 21px; max-width: 760px; }
.muted { color: var(--muted); font-size: 15px; line-height: 1.55; }
.underline { text-decoration: underline; }

.label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.label--dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent-soft)); flex: 0 0 auto; }
.label--glow::before { width: 8px; height: 8px; box-shadow: 0 0 12px var(--c); }
.label__muted { color: var(--muted); font-weight: 400; letter-spacing: 0.1em; }
.label-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.meta { font-size: 14px; color: var(--muted); }
.meta__strong { color: var(--ink); }

.link-line { display: inline-block; font-size: 16px; padding: 10px 0; border-bottom: 2px solid var(--accent); align-self: flex-start; }
.link-line--pink { border-bottom-color: var(--pink); }
.link-line--amber { border-bottom-color: var(--amber); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0; font-size: 17px; font-weight: 400; line-height: 1; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { color: #fff; background: #7A4BFF; transform: translateY(-1px); }
.btn--glow { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 40px rgba(109, 59, 255, 0.45); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

.input { width: 100%; min-height: 54px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(11, 9, 18, 0.6); color: var(--ink); font-size: 16px; transition: border-color .2s ease, background .2s ease; }
textarea.input { padding: 16px 20px; line-height: 1.6; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent-soft); background: rgba(11, 9, 18, 0.9); }
.input::placeholder { color: var(--muted); }
.input--pill { border-radius: 999px; padding: 0 24px; border-color: var(--line-3); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.section-head__copy, .section-intro { display: flex; flex-direction: column; gap: 14px; }
.section-intro { max-width: 720px; }

.panel { position: relative; overflow: hidden; border-radius: 24px; padding: 40px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.panel > * { position: relative; }
.panel--amber { background: linear-gradient(160deg, rgba(255, 179, 71, 0.1) 0%, var(--panel) 70%); border-color: rgba(255, 179, 71, 0.25); }
.panel--nebula { border-radius: 28px; padding: 64px 56px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.panel__nebula { position: absolute !important; inset: 0; background: var(--tansel-nebula) right center / cover no-repeat; opacity: 0.4; pointer-events: none; }
.panel__nebula::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--panel) 0%, rgba(18, 14, 27, 0.85) 45%, rgba(18, 14, 27, 0.3) 100%); }

/* ==========================================================================
   4. Header & navigation
   ========================================================================== */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.has-hero .site-header { position: absolute; top: 0; left: 0; right: 0; }
.admin-bar.has-hero .site-header { top: 32px; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; }

.brand { display: flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { width: 40px; height: auto; }
.brand__name { font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.brand__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.brand--small .brand__logo { width: 32px; }
.brand--small .brand__name { font-size: 18px; }

.site-nav { display: flex; align-items: center; gap: 12px 40px; flex: 1 1 auto; justify-content: space-between; margin-left: 40px; }
.primary-nav .menu { display: flex; flex-wrap: wrap; gap: 4px 44px; font-size: 16px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a { display: inline-block; padding: 12px 0; border-bottom: 2px solid transparent; }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_parent > a { border-bottom-color: var(--accent); }

.has-dropdown > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: -24px; z-index: 30; min-width: 460px;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px;
	padding: 20px 24px; border-radius: 18px; background: rgba(18, 14, 27, 0.97); border: 1px solid var(--line-2);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.primary-nav .has-dropdown:hover > .sub-menu, .primary-nav .has-dropdown:focus-within > .sub-menu, .primary-nav .has-dropdown.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 15px; color: var(--ink-2); }
.primary-nav .sub-menu a:hover { color: var(--ink); }
.primary-nav .sub-menu .is-format a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.primary-nav .sub-menu .is-format { grid-column: 2; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.header-tools__divider { width: 1px; height: 36px; background: var(--line-3); margin: 0 12px; }
.lang-switch { display: flex; gap: 2px; font-size: 13px; letter-spacing: 0.12em; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--muted); }
.lang-switch a.is-current { color: var(--ink); font-weight: 500; }
.social { display: flex; align-items: center; gap: 4px; }
.social__link, .share__link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); background: none; border: 0; padding: 0; }
.social__text { font-weight: 600; line-height: 1; }
.social__text--in { font-size: 21px; letter-spacing: -0.02em; }
.social__text--m { font-family: var(--font-serif); font-size: 22px; font-weight: 700; }

.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(18, 14, 27, 0.6); color: var(--ink); }
.nav-toggle__close { display: none; }

/* ==========================================================================
   5. Hero (home) + page heroes
   ========================================================================== */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; padding-top: var(--header-h); }
.hero--home { min-height: 820px; }
.hero__bg, .hero__bg > div { position: absolute; inset: 0; pointer-events: none; }
.hero__nebula { background: var(--tansel-nebula) right center / cover no-repeat; opacity: 0.9; }
.hero__nebula--soft { opacity: 0.55; }
.hero__haze { isolation: isolate; opacity: 0.85; -webkit-mask-image: linear-gradient(90deg, transparent 62%, #000 82%, #000 100%); mask-image: linear-gradient(90deg, transparent 62%, #000 82%, #000 100%); }
.hero__haze-mono { position: absolute; inset: 0; background: var(--tansel-nebula) left center / cover no-repeat; transform: scaleX(-1); filter: grayscale(1) brightness(1.7) contrast(1.15); }
.hero__haze-tint { position: absolute; inset: 0; background: #7B66C9; mix-blend-mode: multiply; }
.hero__corners { background: radial-gradient(ellipse 28% 55% at 100% 0%, var(--bg) 0%, rgba(11, 9, 18, 0) 100%), radial-gradient(ellipse 30% 50% at 100% 100%, var(--bg) 0%, rgba(11, 9, 18, 0) 100%); }
.hero__fade { background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 9, 18, 0.88) 30%, rgba(11, 9, 18, 0.25) 60%, rgba(11, 9, 18, 0.35) 100%); }
.hero__fade--page { background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 9, 18, 0.9) 42%, rgba(11, 9, 18, 0.5) 100%); }
.hero__depth { opacity: 0.7; background: radial-gradient(ellipse 30% 45% at 68% 38%, rgba(124, 92, 255, 0.28) 0%, rgba(124, 92, 255, 0.1) 45%, rgba(124, 92, 255, 0) 100%), radial-gradient(ellipse 22% 35% at 84% 62%, rgba(170, 120, 255, 0.14) 0%, rgba(170, 120, 255, 0) 100%); }
.hero__bottom { top: auto !important; height: 180px; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 9, 18, 0) 100%); }
.hero__bottom--tall { height: 260px; }
.hero__divider { position: relative; height: 1px; background: rgba(237, 234, 245, 0.1); }

.hero__main { position: relative; z-index: 1; flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 24px; }
.hero__copy { position: relative; z-index: 2; flex: 1 1 560px; min-width: 0; align-self: center; padding: 64px 0 88px; display: flex; flex-direction: column; gap: 28px; }
.hero__figure { position: relative; z-index: 1; flex: 1 1 520px; min-width: 0; margin: 0 0 0 -80px; display: flex; justify-content: center; align-items: flex-end; }
.hero__portrait { width: 100%; max-width: 600px; height: auto; margin-top: 24px; }
.hero__note { position: absolute; z-index: 2; top: 47%; left: 74%; transform: rotate(-8deg); font-family: var(--font-script); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; color: #E6DEFF; opacity: 0.4; white-space: pre-line; pointer-events: none; mix-blend-mode: screen; }
.hero__note-rule { position: absolute; z-index: 2; left: 77%; top: 59%; width: 110px; height: 1px; background: #E6DEFF; transform: rotate(-8deg); opacity: 0.4; pointer-events: none; mix-blend-mode: screen; }

.page-hero { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px 80px; padding-top: 88px; padding-bottom: 72px; }
.page-hero--about { align-items: center; padding-top: 96px; padding-bottom: 120px; }
.page-hero__copy { flex: 1 1 580px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.page-hero__side { flex: 0 1 360px; min-width: 240px; }
.page-hero__photo { flex: 0 1 400px; min-width: 220px; max-width: 400px; }
.photo-bw { width: 100%; height: auto; border-radius: 24px; filter: grayscale(1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.signature { font-size: 52px; line-height: 1; color: #E6DEFF; opacity: 0.75; }

.search { position: relative; }
.search__input { min-height: 54px; padding-right: 56px; background: rgba(11, 9, 18, 0.6); }
.search__btn { position: absolute; right: 6px; top: 5px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: none; color: var(--ink-3); }

/* ==========================================================================
   6. Home: writing bento, note + quote, bio, thought, newsletter
   ========================================================================== */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 400; color: var(--ink); background: transparent; transition: background .2s ease, border-color .2s ease; }
.pill:hover { color: var(--ink); border-color: var(--line-3); }
.pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.8); transition: filter .5s ease, transform .7s ease; }
.card:hover .card-img, .card:focus-visible .card-img { filter: none; transform: scale(1.04); }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 290px; gap: 20px; }
.bento:not(.is-js) > .bento__item:nth-child(n+6) { display: none; }
.bento__item { position: relative; overflow: hidden; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); }
.bento__item:hover { color: var(--ink); }
.bento__item.is-featured, .bento__item.is-wide { grid-column: span 2; grid-row: span 2; }
.bento__item.is-hidden { display: none; }
.bento__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 9, 18, 0.95) 0%, rgba(11, 9, 18, 0.55) 45%, rgba(11, 9, 18, 0.1) 100%); }
.bento__body { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.bento__title { font-size: 20px; line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
.bento__teaser { display: none; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 520px; }
.bento__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.bento__more { color: var(--ink); }
.is-featured .bento__body, .is-wide .bento__body { padding: 36px; }
.is-featured .bento__title, .is-wide .bento__title { font-size: 34px; }
.is-featured .bento__teaser, .is-wide .bento__teaser { display: block; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.duo--wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; margin-top: 0; }
.mini { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.mini:hover { color: var(--ink); }
.mini--note { border-color: rgba(255, 179, 71, 0.22); }
.mini--quote { border-color: rgba(255, 92, 154, 0.22); background: radial-gradient(ellipse 80% 90% at 0% 0%, rgba(255, 92, 154, 0.16) 0%, rgba(18, 14, 27, 0) 70%), var(--panel); }
.mini__head { display: flex; justify-content: space-between; gap: 12px; }
.mini__date, .item__date { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mini__note { font-size: 23px; line-height: 1.45; font-weight: 300; }
.mini__quote { font-size: 46px; line-height: 1.1; }
.mini__more { margin-top: auto; font-size: 14px; color: var(--ink-3); }

.bio { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.bio__media { position: relative; flex: 0 1 340px; min-width: 220px; }
.bio__photo { width: 100%; height: auto; border-radius: 24px; filter: grayscale(1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.bio__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.bio__title-row { display: flex; align-items: center; gap: 20px; }
.bio__avatar { display: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(237, 234, 245, 0.15); }
.bio__copy .lede { font-size: 20px; }
.now { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: 16px; background: rgba(255, 179, 71, 0.06); border: 1px solid rgba(255, 179, 71, 0.22); max-width: 600px; }
.now__label { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); padding-top: 3px; }
.now__text { font-size: 17px; line-height: 1.5; }

.thought { position: relative; overflow: hidden; padding: 140px var(--gutter); text-align: center; background: radial-gradient(ellipse 40% 60% at 50% 50%, rgba(198, 77, 255, 0.12) 0%, rgba(11, 9, 18, 0) 70%); }
.thought__figure { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.thought__quote { font-size: clamp(44px, 5.5vw, 84px); line-height: 1.1; }

.newsletter__copy { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 1 520px; }
.newsletter__form .input { flex: 1 1 240px; min-height: 58px; }
.newsletter__form .btn { min-height: 58px; }
.newsletter__done { font-size: 18px; color: var(--accent-soft); }
.form-error { flex-basis: 100%; color: #FF9AB8; font-size: 15px; }

/* ==========================================================================
   7. Writing: quote of the day, filters, feature, feed, cards
   ========================================================================== */
.qotd { position: relative; overflow: hidden; border-radius: 28px; padding: 56px 56px 48px; display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--line); background: radial-gradient(ellipse 60% 90% at 15% 0%, rgba(198, 77, 255, 0.16) 0%, rgba(18, 14, 27, 0) 70%), radial-gradient(ellipse 50% 80% at 100% 100%, rgba(255, 179, 71, 0.1) 0%, rgba(18, 14, 27, 0) 70%), var(--panel); }
.qotd__quote { font-size: clamp(42px, 5vw, 76px); line-height: 1.1; max-width: 1100px; }
.qotd__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }

.filters { display: flex; flex-direction: column; gap: 18px; }
.filters .pills { margin-bottom: 0; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); align-self: flex-start; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 400; color: var(--ink); }
.tab:hover { color: var(--ink); background: rgba(237, 234, 245, 0.06); }
.tab.is-active { background: var(--accent); color: #fff; }
.tab__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.filters .pill { font-size: 14px; color: var(--ink-2); }
.filters .pill.is-active { background: rgba(237, 234, 245, 0.12); border-color: rgba(237, 234, 245, 0.5); color: #fff; }

.feed-wrap { padding-top: 40px; padding-bottom: 80px; }
.feature { display: flex; overflow: hidden; border-radius: 24px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 20px; color: var(--ink); }
.feature:hover { color: var(--ink); }
.feature__media { position: relative; flex: 0 0 56%; min-height: 420px; overflow: hidden; }
.feature__body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px; }
.feature__title { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; font-weight: 300; letter-spacing: -0.02em; }
.feature__teaser { font-size: 18px; line-height: 1.6; color: var(--ink-2); }

.feed { columns: 3 340px; column-gap: 20px; }
.feed .item { break-inside: avoid; margin: 0 0 20px; }
.item { display: flex; flex-direction: column; gap: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--ink); transition: transform .3s ease, border-color .3s ease; }
.item:hover { color: var(--ink); transform: translateY(-3px); }
.item__head { display: flex; justify-content: space-between; gap: 12px; }
.item__title { font-size: 23px; line-height: 1.25; font-weight: 400; }
.item__teaser { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

.item--essay { gap: 0; overflow: hidden; background: var(--panel-2); }
.item__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.item__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 28px; }

.item--note { padding: 28px; border-color: rgba(255, 179, 71, 0.22); }
.item__note { font-size: 21px; line-height: 1.5; font-weight: 300; }

.item--quote { padding: 36px 30px; gap: 18px; border-color: rgba(255, 92, 154, 0.22); background: radial-gradient(ellipse 80% 90% at 0% 0%, rgba(255, 92, 154, 0.16) 0%, rgba(18, 14, 27, 0) 70%), var(--panel); }
.item__mark { font-family: var(--font-serif); font-size: 64px; line-height: 0.5; height: 24px; color: var(--pink); }
.item__quote { font-size: 40px; line-height: 1.15; }

.item--story { padding: 32px 28px; border-color: rgba(91, 155, 255, 0.25); background: linear-gradient(170deg, rgba(91, 155, 255, 0.1) 0%, var(--panel) 55%); }
.item--story .label .icon { display: inline-block; }
.item__opening, .article__opening { font-family: var(--font-serif); font-style: italic; font-size: 21px; line-height: 1.5; color: #E6DEFF; }

.empty { padding: 64px 32px; border-radius: var(--radius); border: 1px dashed var(--line-2); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-3); font-size: 15px; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ==========================================================================
   8. Article
   ========================================================================== */
.article__head { padding-top: 96px; padding-bottom: 48px; }
.article__head-inner { max-width: 900px; display: flex; flex-direction: column; gap: 24px; }
.article__head .label-row { justify-content: flex-start; gap: 8px 20px; }
.article__image { margin-bottom: 64px; }
.article__img { width: 100%; height: auto; max-height: 640px; object-fit: cover; border-radius: 24px; }

.prose { max-width: 720px; font-size: 19px; line-height: 1.8; color: var(--ink-2); }
.prose > * + * { margin-top: 1.3em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; margin-top: 2em; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 25px; }
.prose a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent-soft); }
.prose blockquote { padding: 4px 0 4px 28px; border-left: 2px solid transparent; border-image: var(--grad) 1; font-size: 24px; line-height: 1.5; color: var(--ink); font-weight: 300; }
.prose img, .prose figure img { border-radius: 16px; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 3em 0; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--panel); color: var(--ink); }
.prose pre { overflow-x: auto; padding: 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
.prose .alignwide, .prose .alignfull { max-width: none; }

.article__foot { max-width: 720px; display: flex; flex-direction: column; gap: 32px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.share .kicker { margin-right: 12px; }
.share__link { border: 1px solid var(--line-2); border-radius: 999px; }
.share__link.is-copied { border-color: var(--accent-soft); color: var(--accent-soft); }
.byline { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.byline__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); flex: 0 0 auto; }
.byline__copy { display: flex; flex-direction: column; gap: 6px; }
.byline__name { font-size: 19px; font-weight: 400; }
.byline .link-line { padding: 4px 0; font-size: 15px; }

.short { padding-top: 120px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; }
.short__card { width: 100%; max-width: 860px; display: flex; flex-direction: column; gap: 28px; padding: 56px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.short__card--note { border-color: rgba(255, 179, 71, 0.25); }
.short__card--quote { border-color: rgba(255, 92, 154, 0.25); background: radial-gradient(ellipse 70% 90% at 0% 0%, rgba(255, 92, 154, 0.16) 0%, rgba(18, 14, 27, 0) 70%), var(--panel); }
.short__quote { font-size: clamp(44px, 5.4vw, 80px); line-height: 1.1; font-weight: 400; }
.short__note { font-size: clamp(26px, 3vw, 36px); line-height: 1.4; font-weight: 300; }
.short__back { margin-top: 28px; }

.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }

/* ==========================================================================
   9. About
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px 96px; }
.split__aside { display: flex; flex-direction: column; gap: 18px; }
.timeline { position: relative; padding-left: 36px; display: flex; flex-direction: column; gap: 36px; background: var(--grad) 6px 8px / 2px calc(100% - 16px) no-repeat; background-image: linear-gradient(180deg, #6D3BFF 0%, #C64DFF 40%, #FF5C9A 70%, #FFB347 100%); }
.timeline__item { position: relative; display: flex; flex-direction: column; gap: 6px; }
.timeline__item::before { content: ''; position: absolute; left: -36px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid color-mix(in srgb, #6D3BFF calc((1 - var(--i, 0)) * 100%), #FF5C9A); }
.timeline__item.is-now::before { left: -38px; top: 3px; width: 18px; height: 18px; border: 0; background: var(--amber); box-shadow: 0 0 20px rgba(255, 179, 71, 0.6); }
.timeline__year { font-size: 15px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-soft); }
.timeline__item.is-now .timeline__year { color: var(--amber); }
.timeline__text { font-size: 20px; line-height: 1.55; color: var(--ink); }

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 45% 70% at 20% 0%, rgba(255, 179, 71, 0.07) 0%, rgba(11, 9, 18, 0) 70%), radial-gradient(ellipse 45% 70% at 85% 100%, rgba(109, 59, 255, 0.1) 0%, rgba(11, 9, 18, 0) 70%), var(--bg-2); }
.spectrum { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #FFB347 0%, #FF5C9A 40%, #8A8496 60%, #EDEAF5 100%); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(237, 234, 245, 0.06) 0%, var(--panel) 60%); border: 1px solid rgba(237, 234, 245, 0.18); }
.step__num { font-size: 44px; font-weight: 300; line-height: 1; color: var(--ink-3); }
.step__title { font-size: 26px; font-weight: 400; }
.step__text { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.step--1 { background: linear-gradient(160deg, rgba(255, 179, 71, 0.12) 0%, var(--panel) 60%); border-color: rgba(255, 179, 71, 0.3); }
.step--1 .step__num { color: var(--amber); }
.step--2 { background: linear-gradient(160deg, rgba(255, 92, 154, 0.12) 0%, var(--panel) 60%); border-color: rgba(255, 92, 154, 0.3); }
.step--2 .step__num { color: var(--pink); }
.step--4 { border-color: rgba(237, 234, 245, 0.3); }
.step--4 .step__num { color: var(--ink); }

.beliefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 80px; }
.belief { display: flex; gap: 24px; padding: 32px 0; border-top: 1px solid rgba(237, 234, 245, 0.12); }
.belief__num { font-size: 15px; color: var(--accent-soft); padding-top: 8px; }
.belief__body { display: flex; flex-direction: column; gap: 10px; }
.belief__title { font-size: 30px; line-height: 1.2; font-weight: 300; letter-spacing: -0.01em; }
.belief__text { font-size: 17px; line-height: 1.55; color: var(--ink-3); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact .icon, .contact__row .icon { color: var(--accent-soft); flex: 0 0 auto; margin-top: 2px; }
.fact__label { display: block; font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.fact__value { display: block; font-size: 17px; }
.now-card { justify-content: center; }
.now-card__text { font-size: 24px; line-height: 1.4; font-weight: 300; }

.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.topic { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; border-radius: 18px; background: var(--panel); border: 1px solid rgba(237, 234, 245, 0.1); transition: transform .3s ease, border-color .3s ease; }
.topic:hover { color: var(--ink); transform: translateY(-3px); border-color: rgba(237, 234, 245, 0.35); }
.topic__name { display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 400; }
.topic__dot { width: 10px; height: 10px; border-radius: 50%; }
.topic__count { font-size: 15px; color: var(--muted); }

.cta-panel { padding: 72px 56px; }
.cta-panel__copy { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.cta-panel .h-section { font-size: clamp(30px, 3.4vw, 46px); }

/* ==========================================================================
   10. Say hello
   ========================================================================== */
.contact { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 80px; padding-top: 88px; padding-bottom: 120px; }
.contact__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact__list { border-top: 1px solid rgba(237, 234, 245, 0.1); margin-top: 8px; }
.contact__row { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(237, 234, 245, 0.1); }
.contact__in { width: 22px; text-align: center; font-size: 19px; color: var(--accent-soft); }
.contact__card { flex: 1 1 520px; min-width: 0; padding: 44px; border-radius: 28px; background: rgba(18, 14, 27, 0.85); border: 1px solid rgba(237, 234, 245, 0.1); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45); scroll-margin-top: 100px; }
.form { display: flex; flex-direction: column; gap: 24px; }
.form__group { border: 0; margin: 0; padding: 0; }
.form__group legend { padding: 0; margin-bottom: 12px; letter-spacing: 0.2em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 400; transition: background .2s ease, border-color .2s ease; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-3); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.consent a { color: var(--accent-soft); }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 0; }
.thanks__icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(109, 59, 255, 0.18); border: 1px solid var(--accent); color: var(--accent-soft); }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mini-card { padding: 28px; gap: 10px; border-radius: var(--radius); }
.mini-card .h-card { font-size: 20px; font-weight: 400; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; padding-top: 48px; padding-bottom: 48px; }
.footer-nav .menu { display: flex; flex-wrap: wrap; gap: 4px 32px; font-size: 15px; }
.footer-nav a { display: inline-block; padding: 12px 0; }
.site-footer__meta { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer__widgets { flex-basis: 100%; color: var(--ink-3); font-size: 15px; }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.hero__note, .hero__note-rule { display: none; }
	.hero--home { min-height: 720px; }
	.hero__copy { flex-basis: 100%; max-width: 640px; padding: 72px 0 96px; }
	.hero__figure { position: absolute; inset: 0; margin: 0; z-index: 0; justify-content: flex-end; align-items: flex-end; pointer-events: none; }
	.hero__portrait { width: auto; max-width: none; height: 100%; margin: 0; opacity: 0.42; filter: saturate(0.65) brightness(0.85); -webkit-mask-image: radial-gradient(ellipse 65% 75% at 55% 40%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 65% 75% at 55% 40%, #000 30%, transparent 78%); }
	.hero--home .hero__fade { background: linear-gradient(90deg, rgba(11, 9, 18, 0.92) 0%, rgba(11, 9, 18, 0.6) 55%, rgba(11, 9, 18, 0.35) 100%); }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-nav { margin-left: 24px; gap: 12px 24px; }
	.primary-nav .menu { gap: 4px 28px; }
}

@media (max-width: 1000px) {
	/* Mobile navigation panel */
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px var(--gutter) 28px; flex-direction: column; align-items: stretch; gap: 20px; background: rgba(11, 9, 18, 0.98); border-bottom: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
	.nav-open .site-nav { display: flex; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline-flex; }
	.primary-nav .menu { flex-direction: column; gap: 0; font-size: 20px; }
	.primary-nav .menu > li { border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { display: block; padding: 16px 0; border-bottom: 0; }
	.has-dropdown > a::after { display: none; }
	.primary-nav .sub-menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; padding: 0 0 12px; background: none; border: 0; box-shadow: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.primary-nav .sub-menu .is-format { grid-column: auto; }
	.header-tools { justify-content: flex-start; }
	.header-tools__divider { display: none; }
}

@media (max-width: 900px) {
	:root { --gutter: 20px; }
	.section-pad { padding-top: 80px; padding-bottom: 80px; }
	.section-pad-b { padding-bottom: 80px; }

	.hero--home { min-height: 0; }
	.hero__copy { padding: 56px 0 64px; }
	.hero__figure { justify-content: center; }
	.hero__portrait { opacity: 0.3; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 25%, transparent 75%); }
	.hero--home .hero__fade { background: linear-gradient(180deg, rgba(11, 9, 18, 0.85) 0%, rgba(11, 9, 18, 0.6) 50%, rgba(11, 9, 18, 0.85) 100%); }

	.bento { grid-template-columns: 1fr; grid-auto-rows: 300px; }
	.bento__item.is-featured, .bento__item.is-wide { grid-column: auto; grid-row: span 1; }
	.is-featured .bento__title, .is-wide .bento__title { font-size: 26px; }
	.is-featured .bento__body, .is-wide .bento__body { padding: 24px; }
	.is-featured .bento__teaser, .is-wide .bento__teaser { display: none; }
	.duo, .duo--wide, .split, .beliefs, .related__grid, .cards-3, .form__row, .facts { grid-template-columns: 1fr; }
	.topic-grid { grid-template-columns: 1fr; }

	.bio__media { display: none; }
	.bio__avatar { display: block; }

	.feature { flex-direction: column; }
	.feature__media { flex-basis: auto; min-height: 240px; }
	.feature__body { padding: 28px; }

	.panel { padding: 28px; }
	.panel--nebula, .cta-panel, .qotd { padding: 40px 24px; }
	.short__card { padding: 32px 24px; }
	.contact__card { padding: 28px 22px; }
	.page-hero__photo { max-width: 280px; }
	.thought { padding: 96px var(--gutter); }
	.article__head { padding-top: 64px; }
	.prose { font-size: 18px; }
	.belief__title { font-size: 25px; }
}

@media (max-width: 600px) {
	.steps { grid-template-columns: 1fr; }
	.brand__name { font-size: 19px; }
	.primary-nav .sub-menu { grid-template-columns: 1fr; }
	.tabs { border-radius: 22px; }
	.tab { padding: 0 14px; }
}

@media (max-width: 782px) {
	.admin-bar.has-hero .site-header { top: 46px; }
}


/* ==========================================================================
   13. Coming soon / Maintenance holding page
   ========================================================================== */
.hero--holding { min-height: 100vh; min-height: 100svh; padding-top: 0; }
.holding { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-top: 28px; padding-bottom: 32px; }
.holding__copy { max-width: 640px; display: flex; flex-direction: column; gap: 28px; }
.holding__form { flex: none; max-width: 560px; }
.holding__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.holding__figure { position: absolute; z-index: 1; right: 4%; bottom: 0; height: 92%; margin: 0; pointer-events: none; }
.holding__portrait { height: 100%; width: auto; max-width: none; }
@media (max-width: 1100px) {
	.holding__figure { right: -10%; height: 85%; }
	.holding__portrait { opacity: 0.35; filter: saturate(0.65) brightness(0.85); -webkit-mask-image: radial-gradient(ellipse 65% 75% at 55% 40%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 65% 75% at 55% 40%, #000 30%, transparent 78%); }
}
@media (max-width: 900px) {
	.holding__figure { left: 0; right: 0; display: flex; justify-content: center; }
	.holding__portrait { opacity: 0.25; }
	.hero--holding .hero__fade { background: linear-gradient(180deg, rgba(11, 9, 18, 0.85) 0%, rgba(11, 9, 18, 0.6) 50%, rgba(11, 9, 18, 0.9) 100%); }
}

@media print {
	.site-header, .site-footer, #newsletter, .share, .related { display: none !important; }
	body { background: #fff; color: #000; }
	.prose { color: #000; }
}
