/* ————— Odikon — cybernorse ————— */

:root {
    --bg: #05070b;
    --bg-alt: #070a10;
    --panel: #0a0f17;
    --edge: #151e2a;
    --text: #d7e2ec;
    /* tuned to pass 4.5:1 after the .dimmer 22% black composite — evaluate text colors post-composite */
    --muted: #98a6ba;
    --cyan: #00e5ff;
    --cyan-soft: #7df2ff;
    --pink: #ff2ec4;
    --pink-soft: #ff9be2;
    --green: #39ffa0;
    --violet: #8b5cf6;
    --blue: #38bdf8;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: "Cinzel", "Times New Roman", serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* faint circuit-rune field behind everything */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='%2300e5ff' stroke-width='1.3' stroke-linecap='round' opacity='0.035'%3E%3Cg transform='translate(18 16)'%3E%3Cpath d='M0 17V0M0 5l8-4.5M0 11l8-4.5'/%3E%3C/g%3E%3Cg transform='translate(96 48)'%3E%3Cpath d='M0 17V0l10 6v11'/%3E%3C/g%3E%3Cg transform='translate(48 96)'%3E%3Cpath d='M6 17V1M6 8L0 1M6 8l6-7'/%3E%3C/g%3E%3Cg transform='translate(132 128)'%3E%3Cpath d='M7 0L0 8l7 8'/%3E%3C/g%3E%3Cg transform='translate(20 144)'%3E%3Cpath d='M0 17V0l7 7'/%3E%3C/g%3E%3Cg transform='translate(140 20)'%3E%3Cpath d='M0 17V0M12 17V0M0 0l12 8M12 0L0 8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

::selection { background: var(--green); color: #04140b; }

img { max-width: 100%; display: block; }
p { text-wrap: pretty; }

a { color: var(--cyan-soft); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}
a:hover { color: #fff; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: #eef6fb; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.25rem; }
h2::after {
    content: "";
    display: block;
    width: 4rem;
    height: 2px;
    margin-top: 0.7rem;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}
h3 { font-size: 1.2rem; }

.kicker {
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}
.kicker::before { content: "// "; opacity: 0.7; }
/* the hero kicker is a terminal prompt — no uppercase, no comment slashes */
.hero .kicker { text-transform: none; }
.hero .kicker::before { content: ""; }
/* on phones the prompt line is noise — and its easter egg is desktop-only anyway */
@media (max-width: 720px) {
    .hero .kicker { display: none; }
}

/* ————— OdikonOS terminal easter egg ————— */

/* matrix-style rune rain behind the console */
#runerain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@media (min-width: 721px) {
    .hero .kicker.promptline { cursor: pointer; }
    .hero .kicker.promptline:hover { color: var(--cyan-soft); }
}
.kicker-cursor {
    display: inline-block;
    width: 0.55em;
    height: 1.05em;
    margin-left: 3px;
    vertical-align: -0.18em;
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
    animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

#terminal {
    position: fixed;
    inset: 0;
    z-index: 58; /* above the dimmer, below the scanlines — CRT applies */
    background: #04060a;
    overflow-y: auto;
    padding: 3rem 1.5rem 4rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.55;
    color: #b6c6d6;
}
.term-inner { max-width: 56rem; margin: 0 auto; position: relative; z-index: 1; }
#term-out div { white-space: pre-wrap; word-break: break-word; min-height: 1.55em; }
.t-dim { color: #74839a; }
.t-ok { color: var(--green); }
.t-err { color: var(--pink); }
.t-accent { color: var(--cyan); }
.term-promptline { display: flex; align-items: baseline; }
.term-ps1 { color: var(--cyan); white-space: pre; }
#term-in {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #e6f1fa;
    font-family: inherit;
    font-size: max(16px, 0.95rem);
    caret-color: var(--green);
}
body.term-active { overflow: hidden; }

/* darkening layer — a black wash over the whole page, image-editor style */
.dimmer {
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.22);
}

/* CRT scanlines over everything */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
        rgba(255, 255, 255, 0.025) 0 1px,
        transparent 1px 3px);
}

/* ————— header ————— */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    padding: 0.9rem 0;
    transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
    background: rgba(5, 7, 11, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 229, 255, 0.25), 0 8px 30px rgba(0, 0, 0, 0.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: flex-start; gap: 0.8rem; }
/* the rune drops below the word's baseline — anchored, not inline.
   (It rested smoked at 45% while the geometry read as an H; the Oφ
   construction killed the "Hodikon" reading, so it stands full now.) */
.brand-word { margin-top: 0.72rem; }
.brand-mark { height: 2.6rem; width: auto; aspect-ratio: 36 / 56; overflow: visible; }

/* split identity: hagalaz staves = Håkon (cyan), odal diamond = Odina (pink) */
.rune-h { color: var(--cyan); stroke: currentColor; filter: url(#glow-c-soft); }
.rune-o { color: var(--pink); stroke: currentColor; filter: url(#glow-p-soft); }
.brand-word { height: 1.2rem; width: auto; aspect-ratio: 194 / 40; overflow: visible; }
/* big monitors have the room — let the lockup breathe */
@media (min-width: 1600px) {
    .brand { gap: 1rem; }
    .brand-mark { height: 3.3rem; }
    .brand-word { height: 1.5rem; margin-top: 0.92rem; }
}
.wm-p { filter: url(#glow-p-soft); }
.wm-c { filter: url(#glow-c-soft); }
.wm-plain-p { stroke: var(--pink-soft); filter: url(#glow-p-soft); }
.wm-plain-c { stroke: var(--cyan-soft); filter: url(#glow-c-soft); }
.brand:hover .brand-word { filter: brightness(1.15); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}
.site-nav a:hover { color: var(--cyan-soft); text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
.site-nav a:not(.lang-switch)::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: -0.35rem;
    height: 1.5px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
    transition: right 0.25s ease;
}
.site-nav a:not(.lang-switch):hover::after { right: 0; }

.lang-switch {
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.78rem !important;
    color: var(--muted) !important;
}
.lang-switch:hover {
    border-color: var(--cyan);
    color: var(--cyan-soft) !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

@media (max-width: 720px) {
    /* with only two nav links, the full lockup and the menu share one row;
       flex-wrap remains as a graceful fallback for very narrow screens */
    .site-header { padding: 0.7rem 0; }
    .header-inner { flex-wrap: wrap; row-gap: 0.15rem; }
    .brand-mark { height: 2.2rem; }
    .brand-word { height: 1rem; margin-top: 0.6rem; }
    .site-nav { gap: 0.7rem; }
    .site-nav a { font-size: 0.85rem; padding: 0.35rem 0; }
    .lang-switch { padding: 0.35rem 0.7rem; }
}

/* ————— hero ————— */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}
#aurora {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}
.hero-fade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(5, 7, 11, 0.85), transparent 60%),
        linear-gradient(to bottom, rgba(5, 7, 11, 0.35), rgba(5, 7, 11, 0) 30%, rgba(5, 7, 11, 0.8) 92%, var(--bg));
}
.hero-inner { padding: 7rem 1.5rem 5rem; }

.hero-title {
    font-size: clamp(2.4rem, 6.5vw, 4.6rem);
    font-weight: 700;
    margin: 0.5rem 0 1.5rem;
    max-width: 18ch;
    text-shadow: 2px 0 rgba(57, 255, 160, 0.22), -2px 0 rgba(0, 229, 255, 0.22);
}
.hero-title span { display: block; }
.hero-title .gold {
    color: var(--cyan-soft);
    text-shadow:
        0 0 12px rgba(0, 229, 255, 0.55),
        0 0 48px rgba(0, 229, 255, 0.3),
        2px 0 rgba(57, 255, 160, 0.25);
}

.lede {
    max-width: 44rem;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--muted);
    margin-bottom: 2.2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
/* uniform button size so the pair doesn't look lopsided, especially stacked on mobile */
.hero-cta .btn { min-width: 13.5rem; text-align: center; }
/* digits in mono — reads like output */
.btn-num { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.03em; }
.btn {
    display: inline-block;
    padding: 0.8rem 1.9rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
    background: linear-gradient(135deg, var(--cyan), #2bb8ff);
    color: #041014;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), 0 4px 24px rgba(0, 0, 0, 0.4);
}
.btn-gold:hover {
    box-shadow: 0 0 34px rgba(0, 229, 255, 0.65), 0 4px 24px rgba(0, 0, 0, 0.4);
    color: #000;
}
.btn-ghost {
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #9bd8ff;
    background: rgba(10, 15, 23, 0.5);
}
.btn-ghost:hover {
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.scroll-hint {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    opacity: 0.8;
}
.scroll-hint svg { width: 1.2rem; height: 1.2rem; animation: bob 2.2s ease-in-out infinite; }
.scroll-hint:hover { color: var(--cyan-soft); }
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ————— neon petroglyph bands ————— */

.petro-band {
    position: relative;
    overflow: hidden;
    padding: 1.4rem 0;
    color: var(--cyan);
    background:
        linear-gradient(to bottom, rgba(0, 229, 255, 0.03), rgba(57, 255, 160, 0.02)),
        rgba(7, 10, 16, 0.6);
    border-top: 1px solid rgba(0, 229, 255, 0.12);
    border-bottom: 1px solid rgba(57, 255, 160, 0.1);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
/* black wash over the glyphs — the neon sits deeper in the dark */
.petro-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.petro-track {
    display: flex;
    width: max-content;
    animation: drift 90s linear infinite;
}
.petro-track-reverse { animation-direction: reverse; }
/* overflow visible so glow halos aren't clipped at the svg viewport edge;
   the band itself still clips at its padded boundary */
.petro-row { width: 1040px; height: 64px; flex: none; overflow: visible; }
@keyframes drift {
    /* shift by exactly one row copy so the loop is seamless at any viewport width */
    from { transform: translateX(0); }
    to { transform: translateX(-1040px); }
}

/* neon tube colors per glyph */
/* SVG filters with oversized regions — CSS drop-shadows clip at the
   per-element filter box, leaving visible rectangle edges. One filter
   per tube color: currentColor doesn't resolve per-use inside filters. */
.g-c { color: var(--cyan); filter: url(#glow-c); }
.g-p { color: var(--pink); filter: url(#glow-p); }
.g-g { color: var(--green); filter: url(#glow-g); }

/* glyphs ignite stroke-by-stroke when the band scrolls into view */
.petro-band use {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
}
.petro-band.carved use { animation: chisel 2s ease-out forwards; }
.petro-band.carved use:nth-child(2) { animation-delay: 0.25s; }
.petro-band.carved use:nth-child(3) { animation-delay: 0.5s; }
.petro-band.carved use:nth-child(4) { animation-delay: 0.75s; }
.petro-band.carved use:nth-child(5) { animation-delay: 1s; }
.petro-band.carved use:nth-child(7) { animation-delay: 1.5s; }
.petro-band.carved use:nth-child(8) { animation-delay: 1.75s; }
.petro-band.carved use:nth-child(9) { animation-delay: 2s; }
.petro-band.carved use:nth-child(10) { animation-delay: 2.25s; }
.petro-band.carved use:nth-child(11) { animation-delay: 2.5s; }
.petro-band.carved use:nth-child(12) { animation-delay: 2.75s; }
@keyframes chisel {
    to { stroke-dashoffset: 0; }
}

/* the carved developer types — arm pecks at the desk, all instances in sync */
#pg-dev path:nth-of-type(2) {
    transform-box: fill-box;
    transform-origin: 0 0;
    animation: typing 0.6s ease-in-out infinite;
}
@keyframes typing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1.6deg); }
    50% { transform: rotate(0.4deg); }
    75% { transform: rotate(2deg); }
}

/* one tired tube per band flickers like a failing neon sign —
   each row copy gets its own phase so they don't blink in unison */
.petro-band.carved use:nth-child(6) {
    animation: chisel 2s ease-out forwards, flicker 11s steps(1) infinite;
    animation-delay: 1.25s, 5s;
}
.petro-band.carved .petro-row:nth-of-type(2) use:nth-child(6) { animation-delay: 1.25s, 8.4s; }
.petro-band.carved .petro-row:nth-of-type(3) use:nth-child(6) { animation-delay: 1.25s, 6.1s; }
.petro-band.carved .petro-row:nth-of-type(4) use:nth-child(6) { animation-delay: 1.25s, 10.7s; }
.petro-band.carved .petro-row:nth-of-type(5) use:nth-child(6) { animation-delay: 1.25s, 7.3s; }
.petro-band.carved .petro-row:nth-of-type(6) use:nth-child(6) { animation-delay: 1.25s, 9.9s; }

/* the server rack's indicator dots blink neon green now and then */
#pg-rack circle { animation: led 4.5s linear infinite; }
#pg-rack circle:nth-of-type(2) { animation-delay: 1.4s; }
#pg-rack circle:nth-of-type(3) { animation-delay: 2.9s; }
@keyframes led {
    0%, 88%, 97%, 100% { stroke: currentColor; fill: none; }
    90%, 95% { stroke: var(--green); fill: var(--green); }
}
@keyframes flicker {
    0%, 100% { opacity: 1; }
    3% { opacity: 0.3; }
    4% { opacity: 1; }
    6% { opacity: 0.5; }
    7% { opacity: 1; }
    54% { opacity: 1; }
    55% { opacity: 0.35; }
    56% { opacity: 1; }
}

/* ————— sections ————— */

.section { padding: 6rem 0; }
.section-alt {
    background:
        linear-gradient(to bottom, rgba(0, 229, 255, 0.03), transparent 30%),
        var(--bg-alt);
}
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-lede { color: var(--muted); font-size: 1.1rem; }

/* services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.4rem;
}
.card {
    position: relative;
    background: linear-gradient(165deg, var(--panel), #080d14);
    border: 1px solid var(--edge);
    border-radius: 8px;
    padding: 1.8rem 1.6rem;
    transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
    overflow: hidden;
}
.card::before {
    /* corner arc accent */
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 4.5rem; height: 4.5rem;
    background:
        radial-gradient(circle at 100% 0%, transparent 55%, rgba(0, 229, 255, 0.3) 56%, transparent 60%),
        radial-gradient(circle at 100% 0%, transparent 68%, rgba(57, 255, 160, 0.16) 69%, transparent 73%);
    pointer-events: none;
}
.card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), rgba(57, 255, 160, 0.35), transparent);
    opacity: 0.6;
    pointer-events: none;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.14), 0 12px 40px rgba(0, 0, 0, 0.5);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* contact */
.contact { padding-bottom: 7rem; }
.contact-card {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(170deg, var(--panel), #080d14);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 10px;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.08);
}
.contact-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto;
    height: 70%;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.1), rgba(57, 255, 160, 0.05) 45%, transparent 70%);
    pointer-events: none;
}
.contact-card h2::after { margin-inline: auto; }
.contact-person { margin-top: 2rem; }
.contact-face {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.7rem;
    border: 2px solid rgba(0, 229, 255, 0.35);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.15);
    filter: saturate(0.85) contrast(1.08);
}
.contact-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #eef6fb; }
.contact-bio { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }

.contact-rows {
    margin-top: 2.2rem;
    display: grid;
    gap: 0.9rem;
    justify-items: center;
}
.contact-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-size: 1.15rem;
}
.contact-row a { font-weight: 600; }
.contact-label {
    color: var(--muted);
    text-transform: uppercase;
    min-width: 6.5rem;
    text-align: right;
}

@media (max-width: 560px) {
    .contact-card { padding: 2.5rem 1.2rem; }
    .contact-row {
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        font-size: 1.05rem;
        text-align: center;
    }
    .contact-label { min-width: 0; text-align: center; }
    .contact-row a, .contact-row span { overflow-wrap: anywhere; }
    .contact-person { margin-top: 2rem; }
.contact-face {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.7rem;
    border: 2px solid rgba(0, 229, 255, 0.35);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.15);
    filter: saturate(0.85) contrast(1.08);
}
.contact-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #eef6fb; }
.contact-bio { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }

.contact-rows { gap: 1.3rem; }
}

/* footer */
.site-footer {
    border-top: 1px solid var(--edge);
    padding: 2.2rem 0;
    background: var(--bg-alt);
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), rgba(57, 255, 160, 0.4), transparent);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}
.footer-inner .brand-mark { height: 1.9rem; }
.footer-inner .brand-word { height: 0.9rem; margin-top: 0.55rem; }

/* the number of the org */
.beast { position: relative; cursor: default; transition: color 0.25s, text-shadow 0.25s; }
.beast:hover {
    color: #ff7a1a;
    text-shadow: 0 0 8px rgba(255, 122, 26, 0.8), 0 -4px 14px rgba(255, 60, 0, 0.5);
}
.beast:hover::after {
    content: "🔥";
    position: absolute;
    left: 50%;
    top: -1.2em;
    transform: translateX(-50%);
    font-size: 0.9em;
    animation: hellfire 0.7s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes hellfire {
    from { transform: translateX(-50%) scale(0.9); opacity: 0.75; }
    to { transform: translateX(-50%) scale(1.15) translateY(-2px); opacity: 1; }
}

/* reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

/* phones get the friezes as pre-baked webp strips — same drift, zero filter compute.
   Regenerate via tools/frieze-*.html (see DESIGN.md). */
@media (max-width: 900px) {
    .petro-track { display: none; }
    .petro-band {
        height: calc(104px + 2.8rem);
        background-image: url(../img/frieze-a.webp);
        background-repeat: repeat-x;
        background-position: 0 center;
        background-size: 1040px 104px;
        animation: bakeddrift 90s linear infinite;
    }
    .petro-band-b {
        background-image: url(../img/frieze-b.webp);
        animation-direction: reverse;
    }
}
@keyframes bakeddrift {
    to { background-position: -1040px center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .petro-track { animation: none; }
    .petro-band { animation: none; }
    .petro-band use { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
    #pg-dev path:nth-of-type(2) { animation: none; }
    #pg-rack circle { animation: none; }
    .scroll-hint svg { animation: none; }
}
