/* GotPentesting — keeps the original palette (white / near-black / purple) and type pairing
   (League Spartan headings, DM Sans body), with a modern layout. */

@font-face {
  font-family: "League Spartan";
  src: url("/assets/fonts/league-spartan-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  --accent: #8511c3;
  --accent-strong: #6c0aa3;
  --accent-soft: #f3e8fb;
  --accent-glow: rgb(133 17 195 / 0.35);
  --ink: #0b0b0c;
  --text: #1f1f22;
  --muted: #5b5b66;
  --bg: #ffffff;
  --bg-muted: #f7f6f9;
  --dark: #1c1c1c;
  --dark-2: #242426;
  --line: #e7e5ec;
  --line-dark: rgb(255 255 255 / 0.1);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(16 16 24 / 0.04), 0 8px 24px rgb(16 16 24 / 0.06);
  --shadow-lg: 0 20px 50px rgb(16 16 24 / 0.12);
  --font-head: "League Spartan", "Futura", "Avenir Next", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { padding: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* Type scale */
.display-xl { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.005em; }
.display-lg { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; text-transform: uppercase; }
.display-md { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; text-transform: uppercase; }
.display-sm { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.eyebrow {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow-light { color: #d9a8f5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 0.95rem/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 1em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; box-shadow: 0 12px 28px -8px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 0.75em 1.2em; font-size: 0.82rem; }
.btn-block { width: 100%; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-flip { transform: scaleX(-1); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .15s ease; width: 1.1em; height: 1.1em; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow:hover .icon-flip { transform: scaleX(-1) translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(255 255 255 / 0.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgb(16 16 24 / 0.05); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.97rem; font-weight: 500;
}
.site-nav ul a:hover { background: var(--bg-muted); color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--accent); }
.site-nav ul a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: currentColor; border-radius: 2px; margin-top: 2px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; padding: 16px var(--gutter) 28px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 12px 8px; font-size: 1.1rem; }
  .site-nav ul a[aria-current="page"]::after { display: none; }
  .brand img { height: 40px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-muted { background: var(--bg-muted); }
.section-dark { background: var(--dark); color: #e8e8ec; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #b9b9c3; }
.section-accent { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.section-accent h2 { color: #fff; }
.section-accent .lead { color: rgb(255 255 255 / 0.85); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 13vw, 170px) 0 clamp(72px, 11vw, 140px); text-align: center; }
.hero-compact { padding: clamp(64px, 10vw, 120px) 0; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 50% 0%, rgb(133 17 195 / 0.14), transparent 70%),
    linear-gradient(rgb(16 16 24 / 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgb(16 16 24 / 0.045) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title span { display: block; }
.hero-title { margin-bottom: 0.45em; }
.page-home .hero-title span:first-child { color: var(--accent); }
.page-home .hero-title span:last-child { color: var(--ink); }
.hero-lead { margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-muted), #fff); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.prose-sm p { color: var(--muted); }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.service-card { background: var(--dark); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; transition: background-color .2s ease; }
.service-card:hover { background: var(--dark-2); }
.service-card h3 { font-size: 1.4rem; text-transform: uppercase; margin-top: 18px; }
.service-card p { color: #b9b9c3; flex: 1; font-size: 0.98rem; }
.service-card .link-arrow { color: #fff; }
.service-card .link-arrow:hover { color: #d9a8f5; }
.service-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgb(133 17 195 / 0.18); color: #d9a8f5; border: 1px solid rgb(217 168 245 / 0.25); }
.service-icon .icon { width: 24px; height: 24px; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(32px, 5vw, 56px); }
.trust-card { transition: transform .2s ease, box-shadow .2s ease; }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trust-card h3 { font-size: 1.25rem; text-transform: uppercase; }
.trust-card p { color: var(--muted); margin: 0; }
.trust-num { display: block; font: 700 2.2rem/1 var(--font-head); color: var(--accent); margin-bottom: 18px; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

/* Split media sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media img { width: 100%; max-width: 520px; margin: 0 auto; }
.split-copy p { color: var(--muted); }
.split-copy .btn { margin-top: 8px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media img { max-width: 360px; }
  .split-reverse .split-media { order: -1; }
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.two-col p { color: var(--muted); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.core-grid { margin-top: clamp(32px, 5vw, 56px); }
.core-card { background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.core-card h3 { text-transform: uppercase; font-size: 1.35rem; color: #d9a8f5 !important; }
.core-card p { color: #c4c4cc; }

/* Services page */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.catalog-col { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.catalog-title { font-size: 1.45rem; text-transform: uppercase; }
.check-list { list-style: none; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--accent); margin-top: 0.2em; }
@media (max-width: 860px) { .catalog-grid { grid-template-columns: 1fr; } }

.service-tabs { position: sticky; top: var(--header-h); z-index: 20; background: rgb(255 255 255 / 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-tabs .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.service-tabs a { flex: none; padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.92rem; border: 1px solid var(--line); background: #fff; }
.service-tabs a:hover, .service-tabs a.is-active { border-color: var(--accent); color: var(--accent); }

.service-group .display-md { margin-bottom: clamp(28px, 4vw, 48px); }
.detail-list { max-width: 900px; margin: 0 auto 40px; display: grid; gap: 14px; }
.detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease; }
.detail[open] { border-color: rgb(133 17 195 / 0.4); box-shadow: var(--shadow); }
.detail summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.detail summary::-webkit-details-marker { display: none; }
.detail summary h3 { margin: 0; font-size: 1.2rem; text-transform: uppercase; color: var(--accent); }
.detail-toggle { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent-soft); }
.detail-toggle::before, .detail-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: transform .2s ease; }
.detail-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.detail[open] .detail-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.detail-body { padding: 0 24px 22px; color: var(--muted); }
.detail-body p { margin: 0; }

/* Contact */
.contact-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 400px at 0% 100%, rgb(255 255 255 / 0.12), transparent 70%), radial-gradient(600px 400px at 100% 0%, rgb(0 0 0 / 0.18), transparent 70%);
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-direct { list-style: none; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-direct a { color: #fff; display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; color: #fff; }
.contact-form { color: var(--text); border: 0; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.35); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1px solid #d6d3de; border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(133 17 195 / 0.15); }
.field [aria-invalid="true"] { border-color: #c0262d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.is-success { color: #13794a; }
.form-status.is-error { color: #c0262d; }
.page-contact .contact-section { padding-top: clamp(72px, 10vw, 130px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Footer */
.site-footer { background: var(--ink); color: #b9b9c3; padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; font-size: 0.95rem; }
.footer-heading { font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #d8d8de; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-line { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.footer-line a { display: inline-flex; gap: 8px; align-items: center; }
.footer-line .icon { color: #d9a8f5; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.08); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Blog */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 32px; padding: 0; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 6px; }
.post-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }

.post-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.post-featured-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.post-featured h2 a { color: var(--ink); text-decoration: none; }
.post-featured h2 a:hover { color: var(--accent); }
.post-featured p { color: var(--muted); }
@media (max-width: 860px) { .post-featured { grid-template-columns: 1fr; } }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--bg-muted); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card-title { font-size: 1.25rem; line-height: 1.2; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { color: var(--muted); font-size: 0.95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* Article */
.post-header { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(180deg, var(--bg-muted), #fff); }
.post-title { font-size: clamp(2rem, 4.4vw, 3.2rem); text-transform: none; letter-spacing: -0.015em; }
.post-hero-media { margin: 0 auto clamp(32px, 5vw, 56px); max-width: 1000px; }
.post-hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.prose { font-size: 1.12rem; line-height: 1.8; color: #2a2a30; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 1.4rem; margin: 1.6em 0 0.5em; }
.prose h4 { font-size: 1.22rem; margin: 1.6em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius); margin: 1.6em auto; box-shadow: var(--shadow); }
.prose em:only-child { display: block; text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: -1em; }
.prose code { overflow-wrap: anywhere; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.88em; background: var(--accent-soft); color: var(--accent-strong); padding: 0.15em 0.4em; border-radius: 6px; }
.prose blockquote { margin: 1.6em 0; padding: 0.4em 0 0.4em 1.2em; border-left: 4px solid var(--accent); color: var(--ink); font-style: italic; }
.prose a { word-break: break-word; }
.post-footer { padding-top: 16px; padding-bottom: clamp(56px, 8vw, 96px); }
.post-footer .chip-row { margin-bottom: 28px; }
.author-card { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.author-label { margin: 0; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.author-name { margin: 0; font-weight: 700; color: var(--ink); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav-link { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.35; }
.post-nav-link span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 6px; }
.post-nav-link:hover { border-color: var(--accent); color: var(--ink); }
.post-nav-next { text-align: right; grid-column: 2; }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } .post-nav-next { grid-column: auto; text-align: left; } }

/* Events */
.events-hero { position: relative; color: #fff; padding: clamp(80px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); overflow: hidden; background: var(--ink); }
.events-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.events-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(11 11 12 / 0.9), rgb(133 17 195 / 0.35)); }
.events-hero-inner { position: relative; z-index: 1; }
.events-hero h1 { color: #fff; }
.events-hero .lead { color: rgb(255 255 255 / 0.85); }
.event-list { display: grid; gap: 20px; margin-top: 24px; }
.event-card { position: relative; display: grid; grid-template-columns: auto 200px 1fr; gap: clamp(16px, 3vw, 32px); align-items: start; padding: clamp(18px, 3vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .2s ease, transform .2s ease; }
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.event-date { display: grid; place-items: center; width: 76px; padding: 12px 0; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); text-align: center; }
.event-month { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
.event-day { font: 700 2rem/1 var(--font-head); }
.event-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.event-title { font-size: 1.4rem; }
.event-title a { color: var(--ink); text-decoration: none; }
.event-title a:hover { color: var(--accent); }
.event-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 0.95rem; }
.event-when .icon { color: var(--accent); width: 1.1em; height: 1.1em; }
.event-when .dot { margin: 0 4px; }
.event-excerpt { color: var(--muted); font-size: 0.97rem; }
.empty-state { margin-top: 24px; }
.empty-state p { margin: 0; color: var(--muted); }
.past-title { margin-top: clamp(40px, 6vw, 64px); }
.event-card:not(:has(.event-media)) { grid-template-columns: auto 1fr; }
@media (max-width: 760px) {
  .event-card { grid-template-columns: auto 1fr; }
  .event-media { grid-column: 1 / -1; grid-row: 1; }
  .event-media img { aspect-ratio: 16 / 9; }
}
.event-layout { display: grid; gap: 32px; }
.event-detail-img { width: 100%; max-width: 520px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Careers */
.job-list { display: grid; gap: 20px; }
.job-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.job-title { font-size: 1.5rem; text-transform: uppercase; }
.job-card p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .job-card { grid-template-columns: 1fr; } .job-card .btn { justify-self: start; } }
.section-dark .btn { margin-top: 12px; }
.narrow.text-center .lead { margin-left: auto; margin-right: auto; }

/* Reveal on scroll (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Article opening paragraph reads as a standfirst */
.page-post .prose > p:first-child { font-size: 1.28rem; line-height: 1.6; color: var(--ink); font-weight: 500; }
.page-event .prose > p:first-child { font-weight: inherit; }

/* Category chips scroll sideways on small screens */
@media (max-width: 620px) {
  nav.chip-row { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  nav.chip-row .chip { flex: none; }
}
.hero-compact + .section { padding-top: clamp(40px, 6vw, 80px); }
