/* ============================================================
   ThinkGenius.com — Global Styles
   "The Blueprint" — the world as an engineering drawing | v2.0
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Blueprint ink */
    --bg: #08111f;
    --bg-elevated: #0b1728;
    --bg-card: #0d1b30;
    --bg-deep: #060d18;

    /* Line work */
    --line: rgba(148, 187, 233, 0.16);
    --line-strong: rgba(148, 187, 233, 0.32);
    --line-faint: rgba(148, 187, 233, 0.07);
    --ink: #9db9dd;

    /* Text */
    --text: #eaf2fc;
    --text-dim: rgba(234, 242, 252, 0.72);
    --text-mute: rgba(234, 242, 252, 0.46);

    /* Brand accents */
    --amber: #edc34f;
    --amber-soft: #f6d77a;
    --amber-glow: rgba(237, 195, 79, 0.22);
    --orange: #d68736;
    --cyan: #6cc6ff;
    --cyan-dim: rgba(108, 198, 255, 0.55);

    --gradient-brand: linear-gradient(135deg, #f6d77a 0%, #edc34f 48%, #d68736 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(237, 195, 79, 0.12), rgba(214, 135, 54, 0.06));

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-ui: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    /* Layout */
    --container-max: 1240px;
    --radius: 2px;
    --radius-lg: 4px;

    /* Timing */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Soft vignette so the sheet feels lit from the center */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(108, 198, 255, 0.05), transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(6, 13, 24, 0.9), transparent 70%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--amber); color: #1a1200; }

/* ---------- Blueprint grid backdrop ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line-faint) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-faint) 1px, transparent 1px),
        linear-gradient(rgba(148, 187, 233, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 187, 233, 0.12) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
    mask-image: radial-gradient(ellipse 120% 90% at 50% 20%, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 20%, black 30%, transparent 85%);
}

.bg-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(108, 198, 255, 0.06), transparent 65%);
    filter: blur(40px);
}

#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ---------- Utility ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

main { position: relative; z-index: 1; }

.accent { color: var(--amber); }
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Section scaffolding — every section reads like a figure on a drawing */
.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan-dim);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.section-label::before {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--cyan-dim);
    flex: none;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.12;
    letter-spacing: 0.005em;
    max-width: 21ch;
}
.section-title em, .section-title i {
    font-style: italic;
    color: var(--amber-soft);
}
.section-title--center { margin: 0 auto; text-align: center; }

.section-sub {
    color: var(--text-dim);
    font-size: 17px;
    max-width: 58ch;
    margin-top: 18px;
}
.section-sub--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-header { margin-bottom: 56px; }
.section-header--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}
.section-header--split .section-sub { max-width: 40ch; }

.section-action { margin-top: 48px; display: flex; justify-content: center; }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.02em;
    padding: 12px 22px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all 0.3s var(--ease);
    position: relative;
    white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
    background: var(--amber);
    color: #1a1200;
    border-color: var(--amber);
    box-shadow: 0 0 0 0 var(--amber-glow);
}
.btn--primary:hover {
    background: var(--amber-soft);
    box-shadow: 0 6px 28px var(--amber-glow);
    transform: translateY(-1px);
}

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(148, 187, 233, 0.04);
}
.btn--ghost:hover {
    border-color: var(--cyan-dim);
    color: var(--cyan);
    background: rgba(108, 198, 255, 0.06);
}

.btn--lg { padding: 15px 28px; font-size: 15.5px; }

/* ---------- Corner ticks (drawing-sheet registration marks) ---------- */
.sheet {
    position: relative;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(148, 187, 233, 0.035), rgba(148, 187, 233, 0.012));
}
.sheet::before, .sheet::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    transition: border-color 0.3s var(--ease);
}
.sheet::before {
    top: -1px; left: -1px;
    border-top: 2px solid var(--line-strong);
    border-left: 2px solid var(--line-strong);
}
.sheet::after {
    bottom: -1px; right: -1px;
    border-bottom: 2px solid var(--line-strong);
    border-right: 2px solid var(--line-strong);
}
.sheet:hover::before, .sheet:hover::after { border-color: var(--amber); }

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.scrolled {
    background: rgba(8, 17, 31, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.nav__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo-mark img { width: 44px; height: auto; }
.nav__logo-text {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.nav__links {
    display: flex;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.nav__links a {
    color: var(--text-dim);
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: var(--radius);
}
.nav__links a:hover { color: var(--text); border-color: var(--line); }
.nav__links a.is-active { color: var(--amber); border-color: var(--line); background: rgba(148, 187, 233, 0.05); }

.nav__cta { display: flex; gap: 10px; }
.nav__cta .btn { padding: 9px 17px; font-size: 13.5px; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav__toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
}

.nav__mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 32px 24px;
    background: rgba(8, 17, 31, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav__mobile a {
    padding: 12px 0;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line-faint);
}
.nav__mobile a:hover { color: var(--amber); }
.nav__mobile .btn { margin-top: 14px; justify-content: center; border-bottom: none; }
.nav__mobile.open { display: flex; }

@media (max-width: 960px) {
    .nav__links, .nav__cta { display: none; }
    .nav__toggle { display: flex; }
}

/* ============================================================
   HOMEPAGE — "The Blueprint"
   ============================================================ */

/* ---------- Cinematic letterbox intro ---------- */
.cine { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.cine__bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 50.5vh;
    background: var(--bg-deep);
    animation: cine-open 1.15s var(--ease) 0.35s forwards;
}
.cine__bar--top { top: 0; transform-origin: top; border-bottom: 1px solid rgba(237, 195, 79, 0.35); }
.cine__bar--bottom { bottom: 0; transform-origin: bottom; border-top: 1px solid rgba(237, 195, 79, 0.35); }
@keyframes cine-open { to { transform: scaleY(0); } }
.cine--off { display: none; }

@media (prefers-reduced-motion: reduce) {
    .cine { display: none; }
}

/* ---------- Drafting-lamp cursor glow ---------- */
.lamp {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s var(--ease);
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%),
        rgba(108, 198, 255, 0.075), rgba(237, 195, 79, 0.02) 45%, transparent 70%);
}
.lamp.is-on { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) {
    .lamp { display: none; }
}

/* ---------- Cinematic hero staging ---------- */
.hero-bp__title .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.55em);
    filter: blur(3px);
    animation: word-in 0.7s var(--ease-out) forwards;
    animation-delay: calc(0.55s + var(--wi, 0) * 0.13s);
}
@keyframes word-in {
    to { opacity: 1; transform: none; filter: blur(0); }
}

.hero-bp__fig {
    opacity: 0;
    animation: stage-in 0.8s var(--ease) 0.4s forwards;
}
.hero-bp__sub {
    opacity: 0;
    transform: translateY(14px);
    animation: stage-in 0.8s var(--ease) 1.75s forwards;
}
.hero-bp__draft {
    opacity: 0;
    animation: stage-in 0.8s var(--ease) 2.05s forwards;
}
.hero-bp__cta {
    opacity: 0;
    transform: translateY(14px);
    animation: stage-in 0.8s var(--ease) 2.3s forwards;
}
.hero-bp__titleblock {
    opacity: 0;
    animation: stage-in 0.9s var(--ease) 2.6s forwards;
}
@keyframes stage-in {
    to { opacity: 1; transform: none; }
}

/* hero parallax layers (JS drives --py) */
.hero-bp__copy { will-change: transform; }
.hero-bp__visual { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    .hero-bp__title .w,
    .hero-bp__fig, .hero-bp__sub, .hero-bp__draft,
    .hero-bp__cta, .hero-bp__titleblock {
        opacity: 1; transform: none; filter: none; animation: none;
    }
}

/* ---------- Hero ---------- */
.hero-bp {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    z-index: 1;
}
.hero-bp__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero-bp__fig {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan-dim);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}
.hero-bp__fig::before { content: ''; width: 40px; height: 1px; background: var(--cyan-dim); }

.hero-bp__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(44px, 6.2vw, 84px);
    line-height: 1.04;
    letter-spacing: 0.005em;
    margin-bottom: 28px;
}
.hero-bp__title em {
    font-style: italic;
    color: var(--amber-soft);
    position: relative;
    white-space: nowrap;
}
/* hand-drawn underline on the italic phrase */
.hero-bp__title em::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.02em;
    height: 2px;
    background: var(--amber);
    opacity: 0.55;
    transform: scaleX(0);
    transform-origin: left;
    animation: draw-underline 1s var(--ease) 2.15s forwards;
}
@keyframes draw-underline { to { transform: scaleX(1); } }

.hero-bp__sub {
    color: var(--text-dim);
    font-size: 18.5px;
    max-width: 52ch;
    margin-bottom: 20px;
}
.hero-bp__sub strong { color: var(--text); font-weight: 600; }

/* the live "drafting" ticker line */
.hero-bp__draft {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--cyan);
    margin-bottom: 36px;
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-bp__draft::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 1px solid var(--cyan);
    transform: rotate(45deg);
    flex: none;
    animation: pulse-diamond 2s ease-in-out infinite;
}
@keyframes pulse-diamond {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hero-bp__draft .caret {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--cyan);
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-bp__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero drawing (SVG canvas) */
.hero-bp__visual { position: relative; }
.hero-bp__visual svg { width: 100%; height: auto; overflow: visible; }

.bp-line {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}
.bp-line--faint { stroke: rgba(148, 187, 233, 0.35); stroke-width: 1; }
.bp-line--amber { stroke: var(--amber); stroke-width: 1.4; }
.bp-line--cyan { stroke: var(--cyan); }
.bp-dash { stroke-dasharray: 4 6; animation: bp-flow 1.4s linear infinite; }
@keyframes bp-flow { to { stroke-dashoffset: -10; } }

/* self-drawing strokes */
.bp-draw {
    stroke-dasharray: var(--len, 600);
    stroke-dashoffset: var(--len, 600);
    animation: bp-draw 1.6s var(--ease-out) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes bp-draw { to { stroke-dashoffset: 0; } }

.bp-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    fill: var(--cyan-dim);
    text-transform: uppercase;
    opacity: 0;
    animation: bp-fade 0.6s ease forwards;
    animation-delay: var(--d, 1s);
}
.bp-label--amber { fill: var(--amber); }
@keyframes bp-fade { to { opacity: 1; } }

.bp-node {
    fill: var(--bg);
    stroke: var(--cyan);
    stroke-width: 1.2;
    opacity: 0;
    animation: bp-fade 0.5s ease forwards;
    animation-delay: var(--d, 1s);
}

@media (prefers-reduced-motion: reduce) {
    .bp-draw { stroke-dashoffset: 0; animation: none; }
    .bp-label, .bp-node { opacity: 1; animation: none; }
    .bp-dash { animation: none; }
    .hero-bp__title em::after { transform: scaleX(1); animation: none; }
}

/* Title block — the drawing's signature corner */
.titleblock {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--line-strong);
    background: rgba(8, 17, 31, 0.72);
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-columns: repeat(3, auto);
    width: max-content;
    max-width: 100%;
}
.titleblock div {
    padding: 8px 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.titleblock div:nth-child(3n) { border-right: none; }
.titleblock div:nth-last-child(-n+3) { border-bottom: none; }
.titleblock span {
    display: block;
    color: var(--text-mute);
    font-size: 9px;
    letter-spacing: 0.16em;
    margin-bottom: 2px;
}
.titleblock b { color: var(--text); font-weight: 500; }
.titleblock .tb-accent b { color: var(--amber); }

.hero-bp__titleblock {
    position: absolute;
    right: 0;
    bottom: -30px;
}

@media (max-width: 1040px) {
    .hero-bp__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-bp { padding-top: 120px; }
    .hero-bp__titleblock { position: relative; bottom: 0; margin-top: 24px; }
}

/* ---------- Manifesto ---------- */
.manifesto { padding: 130px 0; }
.manifesto__rows { display: flex; flex-direction: column; gap: 0; margin-top: 20px; }

.manifesto__row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    padding: 44px 0;
    border-bottom: 1px solid var(--line-faint);
    align-items: baseline;
}
.manifesto__row:first-child { border-top: 1px solid var(--line-faint); }

.manifesto__tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan-dim);
}
.manifesto__tag--amber { color: var(--amber); }

.manifesto__row h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.25;
    max-width: 30ch;
}
.manifesto__row h3 em { font-style: italic; color: var(--amber-soft); }
.manifesto__row p {
    color: var(--text-dim);
    margin-top: 14px;
    max-width: 62ch;
}

@media (max-width: 720px) {
    .manifesto__row { grid-template-columns: 1fr; gap: 10px; padding: 34px 0; }
}

/* ---------- Services (drawings index) ---------- */
.drawings { padding: 130px 0; }
.drawings__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.drawing {
    grid-column: span 2;
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.drawing:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: linear-gradient(180deg, rgba(148, 187, 233, 0.06), rgba(148, 187, 233, 0.02));
}
.drawing--featured { grid-column: span 3; background: linear-gradient(180deg, rgba(237, 195, 79, 0.06), rgba(148, 187, 233, 0.02)); }
.drawing--wide { grid-column: span 3; }

.drawing__no {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--cyan-dim);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawing--featured .drawing__no { color: var(--amber); }

.drawing h3 {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.drawing p { color: var(--text-dim); font-size: 15px; flex: 1; }

.drawing__link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.drawing__link::after { content: '→'; transition: transform 0.3s var(--ease); }
.drawing:hover .drawing__link::after { transform: translateX(4px); }

@media (max-width: 980px) {
    .drawings__grid { grid-template-columns: 1fr 1fr; }
    .drawing, .drawing--featured, .drawing--wide { grid-column: span 1; }
}
@media (max-width: 640px) {
    .drawings__grid { grid-template-columns: 1fr; }
}

/* ---------- As-built (case studies) ---------- */
.asbuilt { padding: 130px 0; }
.asbuilt__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.asbuilt__card {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.asbuilt__card:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.asbuilt__stamp {
    position: absolute;
    top: 22px;
    right: -34px;
    transform: rotate(32deg);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--amber);
    border-top: 1px solid var(--amber);
    border-bottom: 1px solid var(--amber);
    padding: 3px 40px;
    opacity: 0.85;
}

.asbuilt__card h3 {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.35;
    max-width: 24ch;
    letter-spacing: -0.01em;
}
.asbuilt__card > p { color: var(--text-dim); font-size: 15px; flex: 1; }

.asbuilt__stat {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.asbuilt__stat b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 34px;
    color: var(--amber-soft);
    line-height: 1;
}
.asbuilt__stat span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mute);
    line-height: 1.5;
}

@media (max-width: 920px) {
    .asbuilt__grid { grid-template-columns: 1fr; }
}

/* ---------- Rebuilt in practice (before/after tabs) ---------- */
.rebuilt { padding: 130px 0; }

.rebuilt__tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.rebuilt__tab {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--line);
    padding: 10px 20px;
    background: rgba(148, 187, 233, 0.03);
    transition: all 0.3s var(--ease);
}
.rebuilt__tab:hover { border-color: var(--cyan-dim); color: var(--cyan); }
.rebuilt__tab.is-active {
    border-color: var(--amber);
    color: var(--amber);
    background: rgba(237, 195, 79, 0.07);
}

.rebuilt__panel {
    display: none;
    grid-template-columns: 1fr 44px 1fr;
    gap: 0;
    align-items: stretch;
}
.rebuilt__panel.is-active { display: grid; animation: panel-in 0.45s var(--ease); }
@keyframes panel-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.rebuilt__col { padding: 26px 28px 24px; display: flex; flex-direction: column; }
.rebuilt__col--before { border-right: none; }
.rebuilt__col--before::before, .rebuilt__col--before::after { border-color: rgba(148, 187, 233, 0.25); }
.rebuilt__col--after {
    background: linear-gradient(180deg, rgba(237, 195, 79, 0.055), rgba(148, 187, 233, 0.015));
}
.rebuilt__col--after::before, .rebuilt__col--after::after { border-color: var(--amber); }

.rebuilt__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--amber);
}

.rebuilt__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mute);
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.rebuilt__cost { color: var(--text-dim); font-size: 12px; }
.rebuilt__cost--good { color: var(--amber); }

.rebuilt__steps {
    list-style: none;
    counter-reset: step;
    flex: 1;
    margin: 0 0 16px;
}
.rebuilt__steps li {
    counter-increment: step;
    position: relative;
    padding: 7px 0 7px 40px;
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.5;
}
.rebuilt__steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cyan-dim);
}
.rebuilt__col--after .rebuilt__steps li::before { color: var(--amber); }
.rebuilt__steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 30px;
    bottom: -6px;
    width: 1px;
    background: var(--line-faint);
}

.rebuilt__verdict {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    color: var(--text-mute);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 16.5px;
    letter-spacing: 0.01em;
}
.rebuilt__col--after .rebuilt__verdict { color: var(--text-dim); }

@media (max-width: 880px) {
    .rebuilt__panel { grid-template-columns: 1fr; }
    .rebuilt__arrow { transform: rotate(90deg); padding: 10px 0; }
}

/* ---------- Why one engineer ---------- */
.whyone { padding: 130px 0 0; }
.whyone__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.whyone__card { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.whyone__card--featured {
    background: linear-gradient(180deg, rgba(237, 195, 79, 0.07), rgba(148, 187, 233, 0.02));
}
.whyone__card--featured::before, .whyone__card--featured::after { border-color: var(--amber); }
.whyone__kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan-dim);
}
.whyone__card--featured .whyone__kicker { color: var(--amber); }
.whyone__card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 23px;
    line-height: 1.25;
}
.whyone__card ul { margin-top: 4px; }
.whyone__card ul li {
    color: var(--text-dim);
    font-size: 14.5px;
    padding: 7px 0 7px 24px;
    position: relative;
}
.whyone__card ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.85em;
    width: 6px;
    height: 6px;
    border: 1px solid var(--cyan-dim);
    transform: rotate(45deg);
}
.whyone__card--featured ul li::before { border-color: var(--amber); background: rgba(237, 195, 79, 0.4); }

@media (max-width: 920px) {
    .whyone__grid { grid-template-columns: 1fr; }
}

/* ---------- Method (dimension-line process) ---------- */
.method { padding: 130px 0; }
.method__line {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
    margin-top: 30px;
}
/* the running dimension line */
.method__line::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 4%;
    right: 4%;
    height: 1px;
    background: var(--line-strong);
}

.method__step { padding: 0 22px; position: relative; text-align: left; }
.method__dot {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.method__dot span {
    transform: rotate(-45deg);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cyan);
}
.method__step:hover .method__dot { border-color: var(--amber); }

.method__step h3 {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 17.5px;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.method__step p { color: var(--text-dim); font-size: 14.5px; }

@media (max-width: 980px) {
    .method__line { grid-template-columns: 1fr; gap: 34px; }
    .method__line::before {
        left: 22px; right: auto; top: 4%; bottom: 4%;
        width: 1px; height: auto;
    }
    .method__step { padding-left: 84px; }
    .method__dot { position: absolute; left: 0; top: -4px; margin: 0; }
}

/* ---------- Latest articles (field notes) ---------- */
.latest-articles { padding: 130px 0 110px; }

/* ---------- CTA ---------- */
.cta { padding: 110px 0 130px; }
.cta__card {
    padding: 72px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta__glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 400px;
    background: radial-gradient(circle, var(--amber-glow), transparent 65%);
    filter: blur(30px);
    pointer-events: none;
    opacity: 0.7;
}
.cta__card .section-label { justify-content: center; }
.cta__card .section-label::before { display: none; }
.cta__card h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.1;
    margin-bottom: 18px;
    position: relative;
}
.cta__card h2 em { font-style: italic; color: var(--amber-soft); }
.cta__card > p {
    color: var(--text-dim);
    max-width: 56ch;
    margin: 0 auto 34px;
    position: relative;
}
.cta__buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.cta__note {
    margin-top: 26px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-mute);
    position: relative;
}
.cta__titleblock { margin: 40px auto 0; position: relative; }

@media (max-width: 640px) {
    .cta__card { padding: 52px 26px; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 108px 0 0; position: relative; z-index: 1; }
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.breadcrumbs li { display: flex; gap: 8px; align-items: center; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs__sep { color: var(--line-strong); }
.breadcrumbs span[aria-current] { color: var(--text-dim); }

/* ---------- Page header ---------- */
.page-header { padding: 160px 0 60px; position: relative; z-index: 1; }
.breadcrumbs + .page-header { padding-top: 36px; }

.page-header__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    max-width: 24ch;
    margin-bottom: 20px;
}
.page-header__intro {
    color: var(--text-dim);
    font-size: 18px;
    max-width: 62ch;
}
.page-header__meta {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.05em;
    color: var(--text-mute);
}
.page-header__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Prose ---------- */
.prose { padding: 30px 0 90px; position: relative; z-index: 1; }
.prose .container { max-width: 860px; }

.prose h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(27px, 3.2vw, 38px);
    line-height: 1.2;
    margin: 56px 0 18px;
    padding-top: 26px;
    border-top: 1px solid var(--line-faint);
}
.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.prose h3 {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 20px;
    margin: 36px 0 12px;
    letter-spacing: -0.01em;
}
.prose p { color: var(--text-dim); margin-bottom: 18px; }
.prose p strong, .prose li strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(108, 198, 255, 0.3); }
.prose a:hover { border-bottom-color: var(--cyan); }

.prose ul, .prose ol { margin: 0 0 20px; padding-left: 4px; }
.prose ol { list-style: decimal inside; color: var(--text-dim); }
.prose ol li { margin-bottom: 10px; }
.prose ul li {
    color: var(--text-dim);
    padding-left: 26px;
    position: relative;
    margin-bottom: 10px;
}
.prose ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border: 1px solid var(--cyan-dim);
    transform: rotate(45deg);
}

.prose blockquote {
    border-left: 2px solid var(--amber);
    padding: 6px 0 6px 24px;
    margin: 30px 0;
    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1.5;
    color: var(--text);
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: rgba(148, 187, 233, 0.08);
    border: 1px solid var(--line);
    padding: 2px 7px;
    border-radius: var(--radius);
    color: var(--cyan);
}
.prose pre {
    background: var(--bg-deep);
    border: 1px solid var(--line);
    padding: 22px 24px;
    overflow-x: auto;
    margin: 26px 0;
    border-radius: var(--radius-lg);
}
.prose pre code { background: none; border: none; padding: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.7; }

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-size: 14.5px;
}
.prose th, .prose td {
    text-align: left;
    padding: 11px 16px;
    border: 1px solid var(--line);
    color: var(--text-dim);
}
.prose th {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan-dim);
    background: rgba(148, 187, 233, 0.04);
}

.prose img {
    border: 1px solid var(--line);
    margin: 26px 0;
}
.prose hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 44px 0;
}

/* ---------- Stack chips ---------- */
.stack-chips {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 !important;
    margin: 22px 0 26px !important;
}
.stack-chips li {
    padding: 7px 15px !important;
    margin: 0 !important;
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    background: rgba(148, 187, 233, 0.04);
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.stack-chips li::before { display: none !important; }
.stack-chips li:hover { border-color: var(--cyan-dim); color: var(--cyan); }
.stack-chips--compact li { padding: 5px 12px !important; font-size: 11.5px; }

/* ---------- Feature grid & cards ---------- */
.feature-grid { padding: 40px 0 90px; position: relative; z-index: 1; }
.feature-grid__head { margin-bottom: 44px; }
.feature-grid__intro { color: var(--text-dim); max-width: 60ch; margin-top: 14px; }
.feature-grid__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.feature-grid__inner--3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(148, 187, 233, 0.035), rgba(148, 187, 233, 0.012));
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.feature-card::before, .feature-card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
    transition: border-color 0.3s var(--ease);
}
.feature-card::before { top: -1px; left: -1px; border-top: 2px solid var(--line-strong); border-left: 2px solid var(--line-strong); }
.feature-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); }
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}
.feature-card:hover::before, .feature-card:hover::after { border-color: var(--amber); }

.feature-card--featured { background: linear-gradient(180deg, rgba(237, 195, 79, 0.06), rgba(148, 187, 233, 0.02)); }

.feature-card h3 {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.feature-card h3 a:hover { color: var(--amber-soft); }
.feature-card p { color: var(--text-dim); font-size: 15px; }
.feature-card p:last-of-type { flex: 1; }

.feature-card__meta {
    font-family: var(--font-mono);
    font-size: 12px !important;
    color: var(--text-mute) !important;
    letter-spacing: 0.03em;
    flex: none !important;
}
.feature-card__list { padding: 0; margin: 4px 0; }
.feature-card__list li {
    color: var(--text-dim);
    font-size: 14.5px;
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
}
.feature-card__list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.58em;
    width: 6px;
    height: 6px;
    border: 1px solid var(--cyan-dim);
    transform: rotate(45deg);
}
.feature-card__action {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.feature-card__action::after { content: '→'; transition: transform 0.3s var(--ease); }
.feature-card:hover .feature-card__action::after { transform: translateX(4px); }

.tag {
    display: inline-flex;
    width: max-content;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan-dim);
    border: 1px solid var(--line);
    padding: 4px 11px;
    background: rgba(108, 198, 255, 0.05);
}

.service__link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.service__link:hover { color: var(--amber-soft); }

@media (max-width: 900px) {
    .feature-grid__inner, .feature-grid__inner--3 { grid-template-columns: 1fr; }
}

/* ---------- Case study components ---------- */
.case-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 30px 0;
    padding: 0 !important;
}
.case-fact {
    border: 1px solid var(--line);
    padding: 18px 20px !important;
    margin: 0 !important;
    background: rgba(148, 187, 233, 0.03);
    font-size: 14.5px;
}
.case-fact::before { display: none !important; }
.case-fact strong { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-dim); margin-bottom: 6px; }

.case-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin: 30px 0;
}
.case-metric {
    border: 1px solid var(--line);
    border-top: 2px solid var(--amber);
    padding: 20px;
    background: rgba(148, 187, 233, 0.03);
}
.case-metric__value {
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1;
    color: var(--amber-soft);
    margin-bottom: 8px;
}
.case-metric__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.case-metric p, .case-metric small { font-size: 13px; color: var(--text-mute); line-height: 1.55; }

.case-callout {
    border: 1px solid var(--line);
    border-left: 2px solid var(--cyan);
    padding: 24px 28px;
    margin: 30px 0;
    background: rgba(108, 198, 255, 0.04);
}
.case-callout p:last-child { margin-bottom: 0; }

.case-media { margin: 30px 0; }
.case-media--spaced { margin: 44px 0; }
.case-media img { border: 1px solid var(--line); width: 100%; }
.case-media figcaption {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 10px;
    letter-spacing: 0.04em;
}

.case-study-brief {
    border: 1px solid var(--line);
    padding: 26px 30px;
    margin: 30px 0;
    background: rgba(148, 187, 233, 0.03);
}
.case-study-brief__note {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 12px;
}

.schema-sample {
    background: var(--bg-deep);
    border: 1px solid var(--line);
    padding: 22px 24px;
    overflow-x: auto;
    margin: 26px 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dim);
}

/* ---------- FAQ (details/summary) ---------- */
.faq-list { padding: 30px 0 90px; position: relative; z-index: 1; }
.faq-list .container { max-width: 860px; }
.faq-list .section-title { margin-bottom: 34px; }
.faq-list details {
    border: 1px solid var(--line);
    background: rgba(148, 187, 233, 0.03);
    margin-bottom: 14px;
    transition: border-color 0.3s var(--ease);
}
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 26px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 16.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+';
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 18px;
    flex: none;
    transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--amber); }
.faq-answer {
    color: var(--text-dim);
    font-size: 15.5px;
    padding: 0 26px 22px;
}
.faq-answer p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { padding: 10px 0 60px; position: relative; z-index: 1; }
.contact-grid .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}
.contact-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(148, 187, 233, 0.04), rgba(148, 187, 233, 0.015));
    padding: 40px 38px;
    position: relative;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 14px; height: 14px;
    border-top: 2px solid var(--line-strong);
    border-left: 2px solid var(--line-strong);
}
.contact-card h2, .contact-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 28px;
    margin-bottom: 14px;
}
.contact-card__intro { color: var(--text-dim); margin-bottom: 22px; }
.contact-card__note {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-mute);
    margin-top: 20px;
}

.contact-list { margin: 18px 0; }
.contact-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-faint);
    color: var(--text-dim);
    font-size: 15px;
}
.contact-list--compact li { padding: 8px 0; }
.contact-list strong { color: var(--text); }

.mail-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 13px 24px;
    background: var(--amber);
    color: #1a1200;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}
.mail-btn:hover {
    background: var(--amber-soft);
    box-shadow: 0 6px 28px var(--amber-glow);
    transform: translateY(-1px);
}

@media (max-width: 860px) {
    .contact-grid .container { grid-template-columns: 1fr; }
}

/* ---------- Author bio ---------- */
.author-bio { padding: 20px 0 60px; position: relative; z-index: 1; }
.author-bio .container { max-width: 860px; }
.author-bio__card {
    border: 1px solid var(--line);
    border-left: 2px solid var(--amber);
    padding: 26px 30px;
    background: rgba(148, 187, 233, 0.03);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.author-bio__text { flex: 1; }
.author-bio__name { font-family: var(--font-ui); font-weight: 600; font-size: 17px; }
.author-bio__title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan-dim);
    margin: 4px 0 10px;
}
.author-bio__body { color: var(--text-dim); font-size: 14.5px; }
.author-bio__links { margin-top: 10px; display: flex; gap: 16px; }
.author-bio__links a {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; padding: 140px 0 80px; position: relative; z-index: 1; }
.notfound__panel { text-align: center; max-width: 620px; margin: 0 auto; }
.notfound__code {
    font-family: var(--font-display);
    font-size: clamp(90px, 16vw, 180px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--ink);
    margin-bottom: 10px;
}
.notfound h1 { font-family: var(--font-display); font-weight: 400; font-size: 32px; margin-bottom: 14px; }
.notfound p { color: var(--text-dim); margin-bottom: 28px; }
.btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 70px 0 36px;
    position: relative;
    z-index: 1;
    background:
        linear-gradient(var(--line-faint) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-faint) 1px, transparent 1px),
        var(--bg-deep);
    background-size: 24px 24px, 24px 24px, auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 44px;
    margin-bottom: 54px;
}
.footer__brand p {
    color: var(--text-mute);
    font-size: 14px;
    margin-top: 16px;
    max-width: 34ch;
}
.footer h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan-dim);
    margin-bottom: 18px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-dim); font-size: 14.5px; }
.footer ul a:hover { color: var(--amber-soft); }

.footer__bottom {
    border-top: 1px solid var(--line-faint);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--text-mute);
}
.footer__legal a { color: var(--text-dim); }
.footer__legal a:hover { color: var(--amber-soft); }

@media (max-width: 860px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
    .container { padding: 0 22px; }
    .hero-bp__inner { padding: 0 22px; }
    .nav__container { padding: 12px 22px; }
    body { font-size: 16px; }
    .titleblock { grid-template-columns: repeat(2, auto); }
    .titleblock div:nth-child(3n) { border-right: 1px solid var(--line); }
    .titleblock div:nth-child(2n) { border-right: none; }
    .titleblock div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
    .titleblock div:nth-last-child(-n+2) { border-bottom: none; }
}
