/*
Theme Name: The Petru Hub
Theme URI: https://petruamortoae.com/
Author: Petru Amortoae
Author URI: https://petruamortoae.com/
Description: Bespoke editorial theme — senior-level web design, no fluff.
Version: 2.0.0
License: Proprietary
Text Domain: petru-hub
*/

/* === TOKENS — THEME A (Editorial) === */
:root {
  --bg: #FAFAF7; --bg-elev: #F4F2EB; --ink: #0A0A0A; --ink-2: #4A4A48;
  --muted: #8A8A88; --accent: #1F4E3D; --rule: #E2E0D8; --focus: #1F4E3D;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --display-weight: 500;
  --space-4: 4px; --space-8: 8px; --space-16: 16px; --space-24: 24px;
  --space-32: 32px; --space-48: 48px; --space-64: 64px; --space-96: 96px;
  --container: 1120px; --container-narrow: 720px; --radius: 4px; --nav-height: 64px;
}

/* === THEME B (Dark) === */
[data-theme="dark"] {
  --bg: #0B0D10; --bg-elev: #151820; --ink: #F0F0EC; --ink-2: #A0A0A0;
  --muted: #606060; --accent: #C6FF00; --rule: #252830; --focus: #C6FF00;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); transition: background .3s, color .3s; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* === TYPOGRAPHY === */
.display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.03em; line-height: 1.08; }
.display em, h1 em, .section-title em { font-style: italic; color: var(--accent); }
h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(36px,5vw,60px); letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(28px,3.5vw,44px); letter-spacing: -0.02em; line-height: 1.12; }
h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 18px; line-height: 1.3; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.section-title { margin-bottom: 16px; }
.section-intro { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin-bottom: 48px; }
.dropcap::first-letter { float: left; font-family: var(--font-display); font-size: 3.6em; line-height: 0.8; margin-right: 8px; color: var(--accent); }

/* === LAYOUT === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 48px 0; }
.two-col { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 16px; } }
.divider { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* === SECTION NUMBERS === */
.section-num { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.section-num .num { color: var(--ink); font-weight: 600; }
.section-num .label { color: var(--ink-2); }
.section-num .meta { margin-left: auto; }

/* === NAV === */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-height); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.nav-logo .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 1px; vertical-align: middle; }
.nav-logo em { font-style: italic; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 48px; }
.nav-link { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); background: var(--bg-elev); font-size: 16px; cursor: pointer; transition: border-color .2s; }
.theme-toggle:hover { border-color: var(--accent); }
.nav-hamburger { display: none; width: 36px; height: 36px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-hamburger span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: .3s; }
@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-link { font-size: 16px; }
}

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 14px 28px; border-radius: var(--radius); transition: all .2s; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* === HERO === */
.hero { padding: calc(var(--nav-height) + 80px) 0 96px; }
.hero-tag-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.availability { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); padding: 6px 14px; border: 1px solid var(--accent); border-radius: 20px; }
.hero-codes { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.hero .display { font-size: clamp(36px,5.5vw,64px); max-width: 18ch; margin-bottom: 24px; }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.03em; padding-top: 32px; border-top: 1px solid var(--rule); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 32px; font-weight: var(--display-weight); color: var(--ink); letter-spacing: -0.02em; }
@media (max-width: 768px) { .hero-meta { grid-template-columns: repeat(2,1fr); } .hero-codes { display: none; } }

/* Hero Monogram */
.hero-monogram-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.monogram { aspect-ratio: 1; border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; background: var(--bg-elev); }
.monogram-letters { font-family: var(--font-display); font-size: 160px; line-height: 0.85; letter-spacing: -0.06em; }
.monogram-letters .a { font-style: italic; color: var(--accent); }
.monogram-foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 900px) { .hero-monogram-grid { grid-template-columns: 1fr; } .monogram-letters { font-size: 100px; } }

/* Hero Abstract */
.hero-abstract-wrap { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: center; }
.hero-abstract { aspect-ratio: 4/5; border: 1px solid var(--rule); overflow: hidden; }
@media (max-width: 900px) { .hero-abstract-wrap { grid-template-columns: 1fr; } .hero-abstract { max-width: 300px; } }

/* Page hero */
.page-hero { padding: calc(var(--nav-height) + 64px) 0 64px; border-bottom: 1px solid var(--rule); }
.page-hero .eyebrow { display: block; margin-bottom: 16px; }
.page-hero .lead { margin-top: 16px; }

/* === MARQUEE === */
.marquee { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 0; white-space: nowrap; }
.marquee-track { display: flex; animation: marquee 30s linear infinite; width: max-content; }
.marquee-track span { display: inline-flex; align-items: center; gap: 24px; padding: 0 24px; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; color: var(--ink-2); }
.marquee-track em { font-style: italic; color: var(--accent); }
.marquee-track .star { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === LOGO BAR === */
.logo-bar { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.logo-bar .logo { font-family: var(--font-display); font-size: 18px; color: var(--muted); opacity: 0.6; }
.logo-bar .logo.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* === STATS BAND === */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.stat-cell { background: var(--bg); padding: 32px 24px; display: flex; flex-direction: column; gap: 12px; }
.stat-cell .micro { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stat-cell .big { font-family: var(--font-display); font-size: 56px; font-weight: var(--display-weight); letter-spacing: -0.03em; line-height: 1; }
.stat-cell .big em { font-style: normal; color: var(--accent); }
.stat-cell .desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; max-width: 28ch; }
@media (max-width: 768px) { .stats-band { grid-template-columns: repeat(2,1fr); } }

/* === PRINCIPLES === */
.principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 32px; }
.principle { background: var(--bg); padding: 32px; display: flex; gap: 20px; }
.principle .pn { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.05em; flex-shrink: 0; margin-top: 4px; }
.principle h4 { margin-bottom: 8px; }
.principle h4 em { font-style: italic; color: var(--accent); }
.principle p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 768px) { .principle-grid { grid-template-columns: 1fr; } }

/* === PRICING === */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 32px; }
.card { background: var(--bg); padding: 32px; }
.pricing-card { display: flex; flex-direction: column; }
.pricing-card.featured { background: var(--bg-elev); }
.pricing-card .display { font-size: 42px; line-height: 1; }
.pricing-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pricing-list li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.pricing-list li::before { content: '\2192'; position: absolute; left: 0; color: var(--accent); font-size: 13px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* === COMPARISON TABLE === */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparison-table th, .comparison-table td { padding: 14px 16px; text-align: left; border-top: 1px solid var(--rule); }
.comparison-table thead tr { background: var(--bg-elev); }
.comparison-table .accent-col { color: var(--accent); font-weight: 600; }

/* === WILL / WON'T === */
.do-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 32px; }
.do-col { background: var(--bg); padding: 32px; }
.do-col h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 20px; }
.do-col h3 em { font-style: italic; color: var(--accent); }
.do-col ul { display: flex; flex-direction: column; gap: 12px; }
.do-col li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.do-col.will li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.do-col.wont li::before { content: '\00D7'; position: absolute; left: 0; color: #B04040; font-weight: 600; }
@media (max-width: 768px) { .do-list { grid-template-columns: 1fr; } }

/* === PROCESS === */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 32px; }
.process-step { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.process-step .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.process-step h4 { font-size: 17px; }
.timeline-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); }
@media (max-width: 768px) { .process-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 18px; text-align: left; color: var(--ink); cursor: pointer; }
.faq-q .plus { font-size: 24px; color: var(--accent); transition: transform .3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 0 24px; font-size: 15px; color: var(--ink-2); line-height: 1.65; max-width: 60ch; }

/* === TESTIMONIALS === */
.tt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 32px; }
.tt { background: var(--bg); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.tt blockquote { font-size: 17px; line-height: 1.6; color: var(--ink-2); font-style: italic; }
.tt-byline { display: flex; align-items: center; gap: 12px; }
.tt-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-elev); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); }
.tt-name { font-weight: 600; font-size: 14px; }
.tt-role { font-size: 13px; color: var(--muted); }
@media (max-width: 768px) { .tt-grid { grid-template-columns: 1fr; } }

/* === WORK CARDS === */
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.work-card { cursor: pointer; transition: transform .2s; }
.work-card:hover { transform: translateY(-4px); }
.work-thumb { aspect-ratio: 16/10; border: 1px solid var(--rule); overflow: hidden; margin-bottom: 16px; background: var(--bg-elev); }
.work-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.work-card h3 { font-size: 20px; margin-bottom: 8px; }
.work-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 768px) { .work-grid { grid-template-columns: 1fr; } }

/* Case study */
.cs-hero-img { aspect-ratio: 16/9; border: 1px solid var(--rule); background: var(--bg-elev); margin-top: 32px; overflow: hidden; }
.cs-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 48px 0; }
.cs-stat { background: var(--bg); padding: 24px; text-align: center; }
.cs-stat .num { font-family: var(--font-display); font-size: 36px; font-weight: var(--display-weight); display: block; }
.cs-stat .num em { color: var(--accent); font-style: normal; }
.cs-stat .label { font-size: 13px; color: var(--muted); margin-top: 4px; display: block; }
.cs-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0; }
.cs-shot { aspect-ratio: 16/10; border: 1px solid var(--rule); background: var(--bg-elev); overflow: hidden; }
.cs-shot.full { grid-column: 1 / -1; }
.tech-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tech-tag { font-family: var(--font-mono); font-size: 12px; padding: 6px 14px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink-2); }

/* === PULL QUOTE === */
.pull-quote { padding: 80px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: center; }
.pull-quote blockquote { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(24px,3.5vw,40px); font-style: italic; letter-spacing: -0.02em; line-height: 1.2; max-width: 22ch; margin: 0 auto; }
.pull-quote blockquote em { color: var(--accent); }
.pull-quote .attribution { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 24px; }

/* === RECENT LIST === */
.recent-list { border-top: 1px solid var(--rule); }
.recent-row { display: grid; grid-template-columns: 80px 1fr 24px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); cursor: pointer; transition: background .15s; }
.recent-row:hover { background: var(--bg-elev); }
.recent-row .yr { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.recent-row .nm { font-size: 16px; }
.recent-row .nm em { font-style: normal; color: var(--muted); font-size: 14px; margin-left: 12px; }

/* === COLOPHON === */
.colophon { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.colophon-cell { background: var(--bg); padding: 20px; }
.colophon-cell .label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.colophon-cell .val { font-size: 15px; color: var(--ink-2); }
@media (max-width: 768px) { .colophon { grid-template-columns: repeat(2,1fr); } }

/* === CONTACT FORM === */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { padding: 12px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); color: var(--ink); font-size: 15px; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill { font-family: var(--font-mono); font-size: 12px; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 20px; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.radio-pill:hover { border-color: var(--ink); }
.radio-pill.selected { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* === CTA BAND === */
.final-cta { padding: 96px 0; text-align: center; background: var(--bg-elev); border-top: 1px solid var(--rule); }
.final-cta h2 { font-family: var(--font-display); font-size: clamp(28px,4vw,44px); margin-bottom: 32px; }

/* === COOKIE CONSENT === */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000; background: var(--ink); color: var(--bg); padding: 20px; transform: translateY(100%); transition: transform .4s; }
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-banner__content { flex: 1; min-width: 280px; }
.cookie-banner__text { font-size: 13px; line-height: 1.5; }
.cookie-banner__text a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner__btn { padding: 10px 20px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent; transition: all .2s; }
.cookie-banner__btn--accept { background: var(--bg); color: var(--ink); }
.cookie-banner__btn--accept:hover { background: var(--accent); color: var(--bg); }
.cookie-banner__btn--necessary { background: transparent; color: var(--bg); border-color: rgba(255,255,255,.3); }
.cookie-banner__btn--necessary:hover { border-color: #fff; }
.cookie-banner__btn--manage { background: transparent; color: var(--bg); border-color: rgba(255,255,255,.3); }
.cookie-banner__btn--manage:hover { border-color: #fff; }

/* Cookie preferences panel */
.cookie-prefs { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; }
.cookie-prefs.visible { display: flex; }
.cookie-prefs__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); cursor: pointer; }
.cookie-prefs__panel { position: relative; background: var(--bg); color: var(--ink); border-radius: 8px; max-width: 520px; width: 90vw; max-height: 80vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.2); }
.cookie-prefs__header { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px 16px; border-bottom: 1px solid var(--rule); }
.cookie-prefs__header h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; }
.cookie-prefs__close { font-size: 28px; color: var(--muted); background: none; border: none; cursor: pointer; transition: color .2s; line-height: 1; }
.cookie-prefs__close:hover { color: var(--ink); }
.cookie-prefs__body { padding: 24px 28px; }
.cookie-pref { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cookie-pref__info { flex: 1; }
.cookie-pref__info strong { font-size: 15px; display: block; margin-bottom: 4px; }
.cookie-pref__info p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cookie-prefs__footer { display: flex; gap: 12px; justify-content: flex-end; padding: 16px 28px 24px; border-top: 1px solid var(--rule); }
.cookie-prefs__footer .cookie-banner__btn--accept { background: var(--ink); color: var(--bg); }
.cookie-prefs__footer .cookie-banner__btn--accept:hover { background: var(--accent); }
.cookie-prefs__footer .cookie-banner__btn--necessary { color: var(--ink); border-color: var(--rule); }
.cookie-prefs__footer .cookie-banner__btn--necessary:hover { border-color: var(--ink); }

/* Toggle switch */
.cookie-toggle { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; margin-top: 4px; }
.cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider { width: 44px; height: 24px; background: var(--rule); border-radius: 12px; position: relative; transition: background .2s; flex-shrink: 0; }
.cookie-toggle__slider::after { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.cookie-toggle input:checked + .cookie-toggle__slider { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle__slider::after { transform: translateX(20px); }
.cookie-toggle--disabled { opacity: 0.6; cursor: default; }
.cookie-toggle__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Persistent cookie settings trigger */
.cookie-settings-trigger { position: fixed; bottom: 24px; left: 24px; z-index: 1999; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-elev); border: 1px solid var(--rule); display: none; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.1); transition: transform .2s, box-shadow .2s; }
.cookie-settings-trigger:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* === FOOTER === */
.footer, .site-footer { padding: 80px 0 40px; border-top: 1px solid var(--rule); }
.footer-row { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-row .col { display: flex; flex-direction: column; }
.footer-row a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.footer-row a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.footer-entity { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.footer-entity-item { display: flex; gap: 8px; font-size: 12px; }
.footer-entity-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); min-width: 80px; }
.footer-entity-value { font-size: 12px; color: var(--ink-2); }

/* === REVEAL === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.flourish { text-align: center; margin-bottom: 24px; }
.flourish-glyph { font-family: var(--font-display); font-size: 28px; color: var(--accent); }

/* === LEGAL === */
.legal-content { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.legal-content h2 { font-size: 24px; margin: 48px 0 16px; color: var(--ink); }
.legal-content h3 { font-size: 18px; margin: 32px 0 12px; color: var(--ink); }
.legal-content p { margin-bottom: 16px; }
.legal-content ul { margin: 16px 0; padding-left: 20px; }
.legal-content li { margin-bottom: 8px; list-style: disc; }
.legal-content a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* === ABOUT TIMELINE === */
.about-timeline { border-top: 1px solid var(--rule); }
.about-timeline-row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.about-timeline-row .yr { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.about-timeline-row .desc { font-size: 17px; color: var(--ink-2); max-width: 60ch; }

/* === WP SPECIFICS === */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
.nav-links .menu { display: flex; align-items: center; gap: 48px; list-style: none; margin: 0; padding: 0; }
.nav-links .menu-item a { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav-links .menu-item a:hover, .nav-links .current-menu-item a { color: var(--ink); }
.footer-row .menu { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-legal-menu .menu { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-legal-menu .menu-item a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.footer-legal-menu .menu-item a:hover { color: var(--ink); }

/* === WORK ENHANCEMENTS === */
.work-thumb { background-size: cover; background-position: center top; background-repeat: no-repeat; }
.work-thumb-link { display: block; }
.work-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.work-tags span { font-family: var(--font-mono); font-size: 10px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.work-card a { color: inherit; }
.work-card h3 a:hover { color: var(--accent); }

/* === BLOG === */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--rule); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.06); }
.blog-card-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-elev); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.03); }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.blog-card-body h2 { font-size: 20px; line-height: 1.2; }
.blog-card-body h2 a:hover { color: var(--accent); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* Post content */
.post-content { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.post-content h2 { font-size: 28px; margin: 48px 0 16px; color: var(--ink); }
.post-content h3 { font-size: 22px; margin: 36px 0 12px; color: var(--ink); }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 20px 0; padding-left: 24px; }
.post-content li { margin-bottom: 8px; list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.post-content img { margin: 32px 0; border-radius: var(--radius); }
.post-content blockquote { margin: 32px 0; padding: 24px 32px; border-left: 3px solid var(--accent); background: var(--bg-elev); font-style: italic; }
.post-content pre { margin: 24px 0; padding: 20px; background: var(--bg-elev); border: 1px solid var(--rule); border-radius: var(--radius); overflow-x: auto; font-family: var(--font-mono); font-size: 14px; line-height: 1.5; }
.post-content code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-elev); padding: 2px 6px; border-radius: 3px; }
.post-content pre code { background: none; padding: 0; }
.post-feature-img img { width: 100%; border-radius: var(--radius); }

/* Post Layout: content + sidebar */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; }
.post-main { min-width: 0; }
.post-sidebar { position: sticky; top: calc(var(--nav-height) + 32px); display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { padding: 24px; border: 1px solid var(--rule); background: var(--bg-elev); }
.sidebar-label { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.sidebar-list a:hover { color: var(--accent); }
.sidebar-cta { background: var(--ink); }
.sidebar-cta .sidebar-label { color: var(--bg); opacity: .7; }
.sidebar-cta p { color: var(--bg) !important; opacity: .85; }
.sidebar-cta .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 1024px) { .post-layout { grid-template-columns: 1fr; } .post-sidebar { position: static; } }

/* Pagination */
.pagination .nav-links, .posts-navigation .nav-links { display: flex; gap: 8px; justify-content: center; }
.page-numbers { font-family: var(--font-mono); font-size: 13px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink-2); transition: all .2s; }
.page-numbers:hover, .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* === RESPONSIVE CONTACT === */
@media (max-width: 768px) {
  .template-contact .section > .container > div { grid-template-columns: 1fr !important; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .blog-card, .work-card { transition: none; }
  .blog-card:hover, .work-card:hover { transform: none; }
}

/* === CONTACT FORM === */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field textarea { width: 100%; padding: 12px 16px; background: var(--bg-elev); border: 1px solid var(--rule); border-radius: var(--radius); font-family: var(--font-sans); font-size: 15px; color: var(--ink); transition: border-color .2s; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.radio-pill { padding: 8px 16px; border: 1px solid var(--rule); border-radius: 100px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; cursor: pointer; transition: all .2s; user-select: none; }
.radio-pill:hover { border-color: var(--ink); color: var(--ink); }
.radio-pill.selected { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* === FORM NOTICES === */
.form-notice { padding: 16px 20px; border-radius: var(--radius); font-size: 15px; line-height: 1.5; }
.form-notice--success { background: #e6f4ea; border: 1px solid #34a853; color: #1a6630; }
.form-notice--error   { background: #fce8e6; border: 1px solid #ea4335; color: #b31412; }
.form-notice--error a { color: inherit; font-weight: 600; }
[data-theme="dark"] .form-notice--success { background: #0d2b14; border-color: #34a853; color: #7dd9a2; }
[data-theme="dark"] .form-notice--error   { background: #2c0f0e; border-color: #ea4335; color: #f28b82; }

