/* abhilashc.me — Axevia-style theme. Black, monochrome, scanlines.
   Type: Big Shoulders Display (headlines), Space Mono (labels), Inter (body). */

:root {
  --bg: #000;
  --panel: rgba(12, 12, 12, .85);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #fff;
  --muted: #a3a3a3;
  --dim: #8a8a8a;
  --dimmer: #7d7d7d;
  --display: 'Big Shoulders Display', Oswald, Impact, sans-serif;
  --mono: 'Space Mono', ui-monospace, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 2.4vw, 34px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: #fff; text-decoration: none; }
a:hover { color: #cfcfcf; }
img { max-width: 100%; display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.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; }

/* Backgrounds */
.bg-scan { background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px); background-size: 100% 4px; }
.bg-stars {
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,.5), transparent);
  background-size: 100% 4px, 300px 300px, 420px 420px, 520px 520px, 360px 360px;
}
.page { position: relative; min-height: 100vh; }

/* Type helpers */
.mono { font-family: var(--mono); }
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .95; }
.label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.label b { color: #fff; }
.label-xs { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--dimmer); }
.muted { color: #6b6b6b; }
.lead { font-size: 15px; line-height: 1.8; color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 14px; color: #a8a8a8; margin: 0; }
.h-xl { margin: 0; font-size: clamp(48px, 5.2vw, 76px); }
.h-lg { margin: 0; font-size: clamp(44px, 5vw, 72px); }
.pre-line { white-space: pre-line; }

/* Pills, chips, buttons */
.pill { display: inline-block; padding: 4px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #bdbdbd; }
.pill-lg { padding: 10px 16px; border-color: var(--line-2); font-size: 11px; color: #fff; }
.pill-md { padding: 6px 11px; border-color: var(--line-2); font-size: 10px; letter-spacing: .1em; color: #d4d4d4; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; background: #111; color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: #fff; color: #000; }
.btn-ghost { background: transparent; font-weight: 400; }
.btn-white { background: #fff; color: #000; border-color: #fff; }
.btn-white:hover { background: #d9d9d9; color: #000; }

/* Header on inner pages */
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 30px var(--gutter) 0; }
.logo { font-family: var(--mono); font-weight: 700; font-size: 18px; color: #fff; }
.page-title { text-align: right; }
.crumbs { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.crumbs a { color: var(--dim); }
.crumbs span { color: #fff; font-weight: 700; }
.page-title .display { font-size: clamp(64px, 7vw, 104px); line-height: .9; }

.wrap { max-width: 1150px; margin: 0 auto; padding: 40px clamp(20px, 4vw, 40px) 140px; }
.section { margin-top: 110px; }
.section-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 28px var(--gutter) 110px; border-top: 1px solid rgba(255,255,255,.08); font-family: var(--mono); font-size: 13px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; }
.site-footer .k { color: #8f8f8f; }
.site-footer .legal { align-self: flex-end; color: var(--dimmer); font-size: 11px; letter-spacing: .1em; }
.site-footer .legal a { color: var(--dimmer); }

/* Floating nav pill + menu */
.navpill { position: fixed; right: var(--gutter); bottom: 26px; z-index: 30; width: 272px; pointer-events: auto; }
.navpill.is-top { position: relative; right: auto; bottom: auto; align-self: flex-end; z-index: 5; }
.navpill .row { display: flex; align-items: center; gap: 16px; }
.navpill .wave { flex: none; width: 30px; height: 12px; }
.navpill .bar { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 6px 0 20px; background: rgba(16,16,16,.9); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; }
.navpill .current { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.navpill .current small { color: var(--dimmer); font-weight: 400; font-size: 14px; }
.menu-btn { width: 36px; height: 36px; display: grid; place-items: center; background: #fff; border: 0; border-radius: 4px; cursor: pointer; }
.menu-btn .i-close { display: none; }
.navpill.open .menu-btn .i-open { display: none; }
.navpill.open .menu-btn .i-close { display: block; }
.menu { display: none; position: absolute; right: 0; bottom: 58px; width: 272px; padding: 20px 12px 12px; background: rgba(14,14,14,.97); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.navpill.is-top .menu { bottom: auto; top: 56px; }
.navpill.open .menu { display: block; }
.menu .title { padding: 0 6px 2px; font-family: var(--mono); font-size: 15px; font-weight: 700; }
.menu .sub { padding: 0 6px 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--dimmer); text-transform: uppercase; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu-item { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; background: #151515; border: 1px solid rgba(255,255,255,.08); border-radius: 4px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, border-color .2s; }
.menu-item:hover { background: #1c1c1c; border-color: rgba(255,255,255,.28); color: #fff; }
.menu-item small { color: #6f6f6f; font-weight: 400; font-size: 10px; }
.menu-item[aria-current="page"] { border-color: rgba(255,255,255,.4); }
.menu-item .arrow { color: #6f6f6f; }
.menu .socials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.menu .socials a { height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #d4d4d4; }
.menu .socials a:hover { background: #1c1c1c; }

/* ---------- Home ---------- */
.home { position: relative; min-height: 100vh; overflow: hidden; }
.home .grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 100% 4px, 12.5% 100%; }
.home canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(100vh); } }
.home .scanline { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); pointer-events: none; animation: scan 7s linear infinite; }
.home .layout { position: relative; display: flex; flex-wrap: wrap; min-height: 100vh; padding: 10px; gap: 10px; pointer-events: none; }
.hero-panel { flex: 1 1 560px; max-width: 760px; min-height: calc(100vh - 20px); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid transparent; border-radius: 6px; overflow: hidden; pointer-events: auto; transition: background .4s, border-color .4s; }
.hero-panel.has-cover { background: rgba(18,18,18,.55); border-color: rgba(255,255,255,.09); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.hero-panel header { padding: 24px 24px 0; }
.hero-body { padding: 48px clamp(24px, 5vw, 76px); }
.hero-title { margin: 0; font-family: var(--display); text-transform: uppercase; line-height: .88; }
.hero-title span { display: block; font-size: clamp(56px, 7vw, 120px); }
.hero-title .outline { font-weight: 500; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.9); }
.hero-title .solid { font-weight: 800; color: #fff; }
.hero-tag { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.hero-tag .l1 { width: 44px; height: 1px; background: rgba(255,255,255,.35); }
.hero-tag .l2 { flex: 0 1 80px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.35), transparent); }
.hero-tag span.t { font-family: var(--mono); font-size: 11px; letter-spacing: .28em; color: #9a9a9a; text-transform: uppercase; }
.hero-intro { margin: 22px 0 0 58px; max-width: 360px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); font-size: 13px; line-height: 1.75; letter-spacing: .04em; text-transform: uppercase; color: #a3a3a3; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0 58px; }
.hero-ctas .btn { min-height: 44px; padding: 0 18px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker { border-top: 1px solid rgba(255,255,255,.08); background: rgba(10,10,10,.7); overflow: hidden; padding: 14px 0; }
.ticker .track { display: flex; width: max-content; gap: 22px; animation: marquee 38s linear infinite; font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.ticker .item { display: inline-flex; align-items: center; gap: 14px; }
.ticker .k { border: 1px solid rgba(255,255,255,.22); padding: 3px 8px; font-size: 9px; letter-spacing: .18em; color: #8f8f8f; }
.ticker .v { font-weight: 700; }
.ticker .dot { color: #555; }
.hero-side { flex: 1 1 420px; min-height: calc(100vh - 20px); display: flex; flex-direction: column; justify-content: space-between; padding: 14px 14px 22px; }
.stats-panel { position: relative; align-self: flex-end; margin-right: clamp(0px, 6vw, 110px); width: 300px; max-width: 100%; padding: 18px; pointer-events: auto; }
.stats-panel .c1, .stats-panel .c2 { position: absolute; width: 14px; height: 14px; }
.stats-panel .c1 { left: 0; top: 0; border-left: 1px solid rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.4); }
.stats-panel .c2 { right: 0; bottom: 0; border-right: 1px solid rgba(255,255,255,.4); border-bottom: 1px solid rgba(255,255,255,.4); }
.stats-panel .head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.stats-panel .head .rule { flex: 1; border-top: 1px dotted rgba(255,255,255,.2); }
.stats-panel .active { display: inline-flex; align-items: center; gap: 5px; color: #fff; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.blink { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blink 1.6s ease-in-out infinite; }
.stats-panel .big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
.stats-panel .big .v { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1; color: #bdbdbd; }
.stats-panel .big .k { margin-top: 6px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.stats-panel .bar { position: relative; margin-top: 10px; height: 1px; background: rgba(255,255,255,.14); }
.stats-panel .bar span { position: absolute; left: 0; top: 0; height: 1px; background: #fff; }
.stats-panel dl { margin: 22px 0 0; display: flex; flex-direction: column; gap: 9px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.12); }
.stats-panel dl div { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.stats-panel dt { color: var(--dim); }
.stats-panel dd { margin: 0; font-weight: 700; color: #f2f2f2; text-align: right; }
.hello { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 48px; font-family: var(--mono); font-size: 14px; pointer-events: auto; text-align: right; }
.hello .k { color: #8f8f8f; }

/* ---------- About ---------- */
.intro { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.intro > div { flex: 1 1 440px; }
.intro .eyebrow { margin-top: 34px; }
.intro h1 { margin-top: 14px; }
.intro .lead { max-width: 540px; margin: 16px 0 0; }
.intro .lead:first-of-type { margin-top: 28px; }
.portrait { position: relative; flex: 0 1 380px; margin: 0; aspect-ratio: 4 / 5; border: 1px solid var(--line); background: #070707; }
.portrait .frame { position: absolute; inset: 0; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.portrait .fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.75)); }
.portrait .c1, .portrait .c2 { position: absolute; width: 16px; height: 16px; }
.portrait .c1 { left: -8px; top: -8px; border-left: 1px solid rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.5); }
.portrait .c2 { right: -8px; bottom: -8px; border-right: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: -26px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--dimmer); text-transform: uppercase; }
@keyframes glitch { 0%, 92%, 100% { transform: translate(0); } 93% { transform: translate(-3px, 1px); } 95% { transform: translate(3px, -1px); } 97% { transform: translate(-1px, 0); } }
.glitch { animation: glitch 5s steps(1) infinite; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 20px 0 22px 16px; border-right: 1px solid rgba(255,255,255,.08); }
.facts .v { margin-top: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 40px; border-left: 1px solid rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.08); }
.card { display: flex; flex-direction: column; padding: 32px 28px 30px; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); background: #060606; transition: background .25s; }
.card:hover { background: #111; }
.card .top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; font-weight: 700; color: #bdbdbd; }
.card .top span:last-child { font-weight: 400; color: var(--dimmer); letter-spacing: .14em; text-transform: uppercase; }
.card h3 { margin: 24px 0 0; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; }
.card p { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: #9c9c9c; }
.card .foot { margin-top: auto; padding-top: 22px; }
.card .proof { padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.12); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: #d4d4d4; text-transform: uppercase; }
.card .proof span { color: var(--dimmer); }
.card .tags { margin-top: 14px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 30px; }
.statbox { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: rgba(12,12,12,.8); }
.statbox .v { font-family: var(--display); font-weight: 700; font-size: 58px; line-height: 1; }
.statbox .k { margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: #8f8f8f; text-transform: uppercase; }
.rows { list-style: none; margin: 40px 0 0; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.rows .ctx { flex: 0 0 180px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--dimmer); text-transform: uppercase; }
.rows .txt { flex: 1 1 420px; font-size: 16px; line-height: 1.6; color: #e5e5e5; }
.sector { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.sector .name { flex: 0 0 210px; }
.sector .name div:last-child { margin-top: 4px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sector .tags { flex: 1 1 420px; }
.job { display: flex; flex-wrap: wrap; gap: 10px 40px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.08); transition: background .25s; }
.job:hover { background: rgba(255,255,255,.025); }
.job .when { flex: 0 0 210px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #8f8f8f; text-transform: uppercase; }
.job .when div:first-child { color: #fff; font-weight: 700; }
.job .what { flex: 1 1 420px; }
.job h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; }
.job .org { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: #bdbdbd; }
.job p { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: #9c9c9c; }
.footnote { margin: 22px 0 0; font-family: var(--mono); font-size: 11px; line-height: 1.8; letter-spacing: .06em; color: var(--dim); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

/* ---------- Projects ---------- */
.desk { display: none; }
@media (min-width: 1180px) { .desk { display: block; } }
.proj-index { position: fixed; left: 34px; top: 50%; transform: translateY(-50%); width: 200px; z-index: 2; }
.proj-index .inner { display: flex; gap: 22px; margin-top: 18px; }
.proj-index .rail { position: relative; width: 1px; background: rgba(255,255,255,.12); margin-left: 8px; }
.proj-index .rail span { position: absolute; left: -2px; width: 5px; height: 26px; border-radius: 3px; background: #fff; top: 0; transition: top .35s; }
.proj-index ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.proj-index li { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; color: var(--dimmer); transition: color .3s; }
.proj-index li.on { color: #fff; }
.proj-counter { position: fixed; right: 34px; top: 50%; transform: translateY(-50%); width: 210px; text-align: right; z-index: 2; }
.proj-counter .n { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1; }
.proj-counter .n small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--dimmer); }
.proj-counter .t { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.proj-counter .s { margin-top: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.proj-list { max-width: 880px; margin: 0 auto; padding: 40px clamp(20px, 4vw, 40px) 120px; }
.proj-row { display: flex; flex-wrap: wrap; gap: 24px 30px; padding: 30px 0; border-top: 1px solid var(--line); opacity: .5; transition: opacity .3s; color: #fff; }
.proj-row.on, .proj-row:focus-within { opacity: 1; }
.proj-row:hover { color: #fff; }
.thumb { position: relative; flex: 0 0 160px; height: 160px; border: 1px solid rgba(255,255,255,.12); background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px), radial-gradient(circle at 30% 30%, #262626, #080808 75%); overflow: hidden; transition: transform .4s; }
.proj-row:hover .thumb { transform: scale(1.03) rotate(-1deg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.thumb .num { position: absolute; left: 12px; bottom: -8px; font-family: var(--display); font-weight: 800; font-size: 110px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); }
.proj-row .body { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; }
.proj-row h2 { margin: 12px 0 0; font-size: clamp(34px, 4vw, 48px); }
.proj-row p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: #9c9c9c; }
.proj-row .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.proj-row .go { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-meta > div { padding: 18px 0 20px 16px; border-right: 1px solid rgba(255,255,255,.08); }
.case-cover { margin-top: 40px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.case-cover img { width: 100%; filter: grayscale(.2); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 40px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 50px; }
.gallery img { width: 100%; border: 1px solid var(--line); border-radius: 6px; }

/* ---------- Rich text (posts, pages, case studies) ---------- */
.prose { font-size: 17px; line-height: 1.85; color: #c4c4c4; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 16px 0 0; }
.prose h2 { margin: 56px 0 0; font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1; text-transform: uppercase; color: #fff; scroll-margin-top: 30px; }
.prose h2 .n { font-family: var(--mono); font-size: 12px; color: var(--dimmer); vertical-align: middle; margin-right: 10px; }
.prose h3 { margin: 36px 0 0; font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; color: #fff; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose blockquote { margin: 30px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid #fff; font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.15; text-transform: uppercase; color: #fff; }
.prose pre { margin: 22px 0 0; padding: 18px 20px; overflow-x: auto; background: #0a0a0a; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #d4d4d4; }
.prose code { font-family: var(--mono); font-size: .88em; }
.prose img, .prose figure img { margin-top: 26px; border: 1px solid var(--line); border-radius: 6px; }
.prose figure { margin: 26px 0 0; }
.prose figcaption { margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--dimmer); text-transform: uppercase; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------- Blog ---------- */
.blog-wrap { max-width: 1200px; margin: 0 auto; padding: 36px clamp(20px, 4vw, 40px) 120px; }
.blog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: transparent; color: #e5e5e5; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.chip.on, .chip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.chip .count { opacity: .55; }
.chip.square { border-radius: 4px; min-height: 44px; font-size: 12px; letter-spacing: .1em; }
.chip .code { font-size: 9px; opacity: .6; }
.post-tile { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: rgba(10,10,10,.85); color: #fff; }
.post-tile:hover { color: #fff; }
.post-tile:hover .t-title { color: #cfcfcf; }
.post-tile .t-title { transition: color .2s; }
.post-tile .img { position: relative; overflow: hidden; }
.post-tile .img .bg { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px), radial-gradient(circle at 70% 30%, #262626, #050505 70%); transition: transform .5s; }
.post-tile .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .5s; }
.post-tile:hover .img .bg, .post-tile:hover .img img { transform: scale(1.04); }
.featured { flex-direction: row; flex-wrap: wrap; margin-top: 44px; border-color: rgba(255,255,255,.12); background: var(--panel); }
.featured .img { flex: 1 1 520px; min-height: 360px; }
.featured .txt { flex: 1 1 380px; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); }
.featured h2 { margin: 16px 0 0; font-size: clamp(36px, 3.6vw, 52px); line-height: .98; }
.featured p { margin: 16px 0 0; font-size: 15px; line-height: 1.75; color: var(--muted); }
.badge { position: absolute; left: 18px; top: 18px; padding: 5px 10px; background: #fff; color: #000; border-radius: 3px; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; z-index: 2; }
.badge.draft { background: #f0a45c; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.post-grid .img { height: 190px; border-bottom: 1px solid rgba(255,255,255,.08); }
.post-grid .num { position: absolute; left: 18px; bottom: -14px; font-family: var(--display); font-weight: 800; font-size: 120px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28); }
.post-grid .cat { position: absolute; right: 14px; top: 14px; z-index: 2; }
.post-grid .txt { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 20px; }
.post-grid h3 { margin: 12px 0 0; font-size: 28px; line-height: 1.02; }
.post-grid p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: #9c9c9c; }
.read-more { margin-top: auto; padding-top: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #d4d4d4; }
.subscribe { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: 90px; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: var(--panel); }
.subscribe > div { flex: 1 1 360px; }
.subscribe form { flex: 1 1 380px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.subscribe form .field { flex: 1 1 220px; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.pager .disabled { color: #555; }
.empty { margin: 40px 0 0; padding: 40px; border: 1px dashed rgba(255,255,255,.16); border-radius: 6px; font-family: var(--mono); font-size: 13px; color: var(--dim); text-align: center; }

/* Article */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 40; background: rgba(255,255,255,.08); }
.progress span { display: block; height: 2px; width: 0; background: #fff; }
.article-head { max-width: 1100px; margin: 0 auto; padding: 60px clamp(20px, 4vw, 40px) 0; }
.article-head h1 { margin: 22px 0 0; max-width: 960px; font-size: clamp(52px, 7vw, 104px); line-height: .92; }
.article-head .standfirst { margin: 24px 0 0; max-width: 640px; font-size: 18px; line-height: 1.7; color: #a8a8a8; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 1px solid rgba(255,255,255,.2); }
.byline .r { color: var(--dim); }
.article-cover { max-width: 1100px; margin: 40px auto 0; padding: 0 clamp(20px, 4vw, 40px); }
.article-cover img { width: 100%; border: 1px solid var(--line); border-radius: 6px; filter: grayscale(.2); }
.article { display: flex; flex-wrap: wrap; gap: 48px; max-width: 1100px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 40px) 120px; }
.article aside { flex: 0 0 210px; }
@media (max-width: 1099px) { .article aside { display: none; } }
.toc { position: sticky; top: 40px; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0 0 0 14px; border-left: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 12px; }
.toc a { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; line-height: 1.5; color: var(--dim); }
.toc a.on, .toc a:hover { color: #fff; }
.toc a.on { font-weight: 700; }
.article article { flex: 999 1 560px; min-width: 0; max-width: 700px; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 40px; }
.next-grid a { display: block; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; transition: background .2s; }
.next-grid a:hover { background: #111; color: #fff; }
.next-grid .display { margin-top: 10px; font-size: 24px; }
.next-grid a.right { text-align: right; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 64px; max-width: 1100px; margin: 0 auto; padding: 30px clamp(20px, 4vw, 40px) 140px; }
.contact form { flex: 999 1 560px; min-width: 0; }
.contact h1 { margin: 12px 0 0; font-size: clamp(46px, 5vw, 68px); }
.contact .intro-text { margin: 18px 0 0; max-width: 460px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #a8a8a8; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 48px; }
.flabel { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; }
.flabel b { color: #fff; }
.input { display: block; width: 100%; margin-top: 10px; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); border-radius: 0; color: #fff; font-family: var(--mono); font-size: 16px; transition: border-color .2s; }
.input:focus { outline: none; border-bottom-color: #fff; }
.input::placeholder { color: #5e5e5e; }
textarea.input { font-size: 15px; line-height: 1.6; resize: vertical; }
fieldset { margin: 34px 0 0; padding: 0; border: 0; }
fieldset legend { padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips input:checked + .chip { background: #fff; color: #000; border-color: #fff; }
.chips input:focus-visible + .chip { outline: 2px solid #fff; outline-offset: 3px; }
.counter { margin-top: 6px; text-align: right; font-family: var(--mono); font-size: 10px; color: var(--dimmer); }
.send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.send { display: inline-flex; align-items: center; gap: 18px; min-height: 52px; padding: 0 8px 0 22px; background: #111; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: #fff; font-family: var(--mono); font-size: 18px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.send:hover { background: #fff; color: #000; }
.send .ic { display: grid; place-items: center; width: 34px; height: 34px; background: #fff; color: #000; border-radius: 4px; font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: #9a9a9a; text-transform: uppercase; }
.status .blink { width: 6px; height: 6px; background: currentColor; }
.status.ok { color: #fff; }
.status.err { color: #f0a45c; }
.errors { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: #f0a45c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact aside { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.infobox { padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.infobox .v { margin-top: 8px; font-family: var(--mono); font-size: 14px; font-weight: 700; word-break: break-word; }
.infobox.dashed { border-style: dashed; border-color: rgba(255,255,255,.16); background: transparent; }
.infobox .links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Page blocks (Admin › Content › Pages) ---------- */
.blocks { padding: 40px 0 140px; }
.blk { position: relative; max-width: 1150px; margin: 110px auto 0; padding: 0 clamp(20px, 4vw, 40px); }
.blocks > .blk:first-child, .blocks > p.blk:first-child + .blk { margin-top: 0; }
.blk.w-narrow { max-width: 800px; }
.blk.w-880 { max-width: 880px; }
.blk.w-blog { max-width: 1200px; }
.blk.w-contact { max-width: 1100px; }
.blk .contact, .blk .proj-list { max-width: none; margin: 0; padding: 0; }
.blk-eyebrow { margin-top: 34px; }
.blk-title { margin-top: 14px; }
.blk > .blk-eyebrow:first-child, .blk > .blk-title:first-child, .intro > div > .blk-eyebrow:first-child { margin-top: 0; }
.blk-lead { max-width: 720px; margin: 22px 0 0; }
.blk-lead + .blk-lead { margin-top: 16px; }
.blk-minor { margin: 40px 0 0; }
.blk-minor + .rows { margin-top: 10px; }
.blk-body { margin-top: 30px; }
.blk > .blk-body:first-child { margin-top: 0; }
.cta-title { margin: 12px 0 0; font-size: clamp(48px, 5.4vw, 80px); }
.blk-figure { margin: 30px 0 0; }
.blk > .blk-figure:first-child { margin-top: 0; }
.blk-figure img { width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.blk-figure figcaption { margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--dimmer); text-transform: uppercase; }
.blk-quote { margin: 30px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid #fff; }
.blk > .blk-quote:first-child { margin-top: 0; }
.blk-quote p { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; text-transform: uppercase; }
.blk-quote cite { display: block; margin-top: 14px; font-family: var(--mono); font-size: 11px; font-style: normal; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.blk .section-head + .contact, .blk .section-head + .proj-list, .blk .section-head + .blog-head, .blk .section-head + .subscribe { margin-top: 36px; }
.blk .subscribe { margin-top: 0; }

/* ---------- Trainings ---------- */
a.card, a.card:hover { color: #fff; }
.trainings .cards { margin-top: 30px; }
.mtable-wrap { margin-top: 26px; border: 1px solid var(--line); border-radius: 6px; background: rgba(10,10,10,.85); overflow: hidden; }
.mtable, .ptable { width: 100%; border-collapse: collapse; }
.mtable th, .mtable td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; font-size: 14px; line-height: 1.55; color: #d4d4d4; }
.mtable thead th, .mtable thead .m { font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--dimmer); }
.mtable .n { width: 36px; font-family: var(--mono); font-size: 11px; color: var(--dimmer); }
.mtable .m { width: 64px; text-align: right; font-family: var(--mono); font-size: 13px; font-weight: 700; color: #fff; }
.mtable .m.off { color: #555; font-weight: 400; }
.mtable tfoot th, .mtable tfoot td { border-bottom: 0; border-top: 1px solid rgba(255,255,255,.2); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.clinic { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 30px; }
.clinic > div:first-child { flex: 1 1 360px; }
.clinic .lead { margin-top: 18px; }
.clinic .mtable-wrap { flex: 1 1 440px; margin-top: 0; }
.ptable { margin-top: 26px; }
.ptable th, .ptable td { padding: 16px 12px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; font-size: 14px; color: #d4d4d4; }
.ptable thead th { font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--dimmer); }
.ptable tbody th { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.ptable td[data-label] { font-family: var(--mono); white-space: nowrap; }
.ptable .notes { color: #9c9c9c; }
.steps { list-style: none; }
.steps .ctx b { color: #fff; }
.book-grid { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 40px; }
.book-intro { flex: 1 1 300px; }
.book-intro .lead { margin-top: 18px; }
.book form { flex: 999 1 560px; min-width: 0; }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
select.input option { background: #0a0a0a; color: #fff; }
.chips input:disabled + .chip { opacity: .28; cursor: not-allowed; }
@media (max-width: 640px) {
  .ptable thead { display: none; }
  .ptable tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .ptable th, .ptable td { padding: 0; border: 0; }
  .ptable tbody th, .ptable .notes { grid-column: 1 / -1; }
  .ptable td[data-label]::before { content: attr(data-label) " "; color: var(--dimmer); font-size: 10px; letter-spacing: .14em; }
  .mtable th, .mtable td { padding: 12px 8px; font-size: 13px; }
  .mtable .m { width: 40px; }
  .mtable .n { width: 24px; }
}

@media (max-width: 640px) {
  .hero-intro, .hero-ctas { margin-left: 0; }
  .navpill { right: 12px; left: 12px; width: auto; }
  .menu { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
