/* afk.ro: HUD over the digital rain. Patterns adapted from bdcdesign.ro, Matrix palette. */

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Space Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/space-mono-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Space Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/space-mono-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Space Mono";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/space-mono-700-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Space Mono";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/space-mono-700-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --g1 is the single accent colour. The rain's colour keys set it (hud.js); every
   other accent shade is derived from it, so the whole HUD follows the rain.
   Registered as <color> so rainbow mode can animate it smoothly. */
@property --g1 {
    syntax: "<color>";
    inherits: true;
    initial-value: #3bf6ff;
}

/* Greek: Space Grotesk / Space Mono have no Greek glyphs. These Greek-only subsets sit
   next in the font stacks and are downloaded only when a page contains Greek text. */
@font-face {
    font-family: "AFK Greek";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/inter-greek.woff2") format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: "AFK Greek Mono";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/jetbrains-mono-greek.woff2") format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
    --bg: #020604;
    --g1: #3bf6ff;
    --g2: color-mix(in srgb, var(--g1) 56%, #000);
    --g3: color-mix(in srgb, var(--g1) 23%, #000);
    --head: color-mix(in srgb, var(--g1) 9%, #fff);
    --text: color-mix(in srgb, var(--g1) 16%, #fff);
    --dim: color-mix(in srgb, var(--g1) 32%, #8c8c8c);
    --line: color-mix(in srgb, var(--g1) 8%, #0b0f0c);
    --line-bright: color-mix(in srgb, var(--g1) 16%, #0c100d);
    --panel: rgba(2, 8, 4, 0.62);
    --grad: linear-gradient(90deg, var(--g1), var(--g2));
    --font: "Space Grotesk", "AFK Greek", system-ui, sans-serif;
    --mono: "Space Mono", "AFK Greek Mono", ui-monospace, monospace;
    --pad: clamp(16px, 4vw, 45px);
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--font);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; }

::selection { background: var(--g1); color: var(--bg); }

:focus-visible {
    outline: 1px solid var(--g1);
    outline-offset: 4px;
}

.skip {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 1100;
    padding: 10px 16px;
    background: var(--g1);
    color: var(--bg);
    font: 700 12px var(--mono);
    text-decoration: none;
    text-transform: uppercase;
    transition: top .2s;
}
.skip:focus { top: 16px; }

/* Background layers: rain canvas, then grid / orbs / vignette / scanlines. */
#rain {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: block;
    background: var(--bg);
}

.fx {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.fx-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--g1) 1px, transparent 1px),
        linear-gradient(90deg, var(--g1) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: .1;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.fx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .12;
    animation: orbFloat 16s ease-in-out infinite;
}
.fx-orb-1 { width: 560px; height: 560px; top: -220px; right: -180px; background: var(--g1); }
.fx-orb-2 { width: 460px; height: 460px; bottom: -180px; left: -160px; background: var(--g2); animation-duration: 20s; animation-direction: reverse; }

.fx-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 30% 45%, rgba(2, 6, 4, .55), transparent 70%),
        radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .75) 100%);
}

.fx-scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
    opacity: .5;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
}

/* Rainbow key (R): the accent cycles through the same colours as the rain. */
@keyframes rainbowAccent {
    0%, 100% { --g1: #00ff41; }
    16.6% { --g1: #3b8bff; }
    33.3% { --g1: #ffe14a; }
    50% { --g1: #3bf6ff; }
    66.6% { --g1: #ff3bd4; }
    83.3% { --g1: #ff3b3b; }
}
:root.is-rainbow { animation: rainbowAccent 9s linear infinite; }

/* Entry (is-intro: tunnel until the visitor is back) and rain-only (H) hide the HUD. */
.hdr, main, .ftr {
    position: relative;
    z-index: 2;
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.is-intro .hdr, .is-intro main, .is-intro .ftr {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}
.is-rain-only .hdr, .is-rain-only main, .is-rain-only .ftr, .is-rain-only .fx, .is-intro .fx {
    opacity: 0;
    pointer-events: none;
}
.fx { transition: opacity .8s var(--ease); }

.rain-hint {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    transform: translate(-50%, 20px);
    /* Size to the content (one line per row on desktop); wrap only when the screen is narrower. */
    width: max-content;
    max-width: calc(100vw - 32px);
    text-align: center;
    padding: 10px 18px;
    border: 1px solid var(--g3);
    background: rgba(2, 6, 4, .8);
    color: var(--g1);
    font: 400 11px var(--mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s, transform .5s var(--ease), bottom .6s var(--ease), width .6s var(--ease), padding .6s var(--ease);
}
.rain-hint.is-shown {
    opacity: 1;
    transform: translate(-50%, 0);
}
/* Compact key legend under the hint text in the AFK view: a single line. */
.hint-keys {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin: 10px 0 0;
    color: var(--dim);
    text-transform: none;
    letter-spacing: 1px;
}
/* After 5 seconds the AFK hint docks as a one-line task bar on the bottom edge of the window.
   It stays centred and only moves down and widens (hud.js animates the width from the box's
   own width to 100vw), so it flattens in place instead of sliding in from the side. */
.rain-hint.is-docked {
    bottom: 0;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 7px 16px;
    border-width: 1px 0 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: 10px;
}
.rain-hint.is-docked .hint-keys {
    flex-wrap: nowrap;
    margin: 0;
}
/* The hint ignores the mouse, but its keys with a tip (A, F, K) show it on hover while shown. */
.rain-hint.is-shown .key-tip { pointer-events: auto; }

/* Header */
.hdr {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    border-bottom: 1px solid transparent;
    transition: background .3s, backdrop-filter .3s, border-color .3s, opacity .8s var(--ease), transform .8s var(--ease);
}
.hdr.is-scrolled {
    background: rgba(2, 6, 4, .78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: color-mix(in srgb, var(--g1) 14%, transparent);
}

.hdr-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px var(--pad) 14px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-decoration: none;
}
/* AFK logo: dark letters with a thin glowing outline (readable on the dark page), and the
   circuit traces lit in the rain colour. */
.logo-afk { display: block; height: 34px; width: auto; aspect-ratio: 1265 / 374; overflow: visible; }
.logo-l {
    fill: color-mix(in srgb, var(--g1) 12%, #020604);
    stroke: var(--g1);
    stroke-opacity: var(--logo-edge, .55);
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
}
.logo-t { fill: var(--g1); filter: drop-shadow(0 0 3px var(--g1)); }
/* The paths live in a <symbol> (drawn with <use>): selectors cannot reach them through the
   header, so the hover passes a custom property down instead. */
.logo:hover { --logo-edge: 1; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

@keyframes headPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.logo-sub {
    font: 400 10px/1 var(--mono);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dim);
}

.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav-link {
    position: relative;
    color: var(--dim);
    font: 600 max(11px, min(1.1vw, 13px)) var(--font);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .3s;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--grad);
    box-shadow: 0 0 8px var(--g1);
    transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.is-current { color: var(--g1); }
.nav-link:hover::after, .nav-link.is-current::after { width: 100%; }

.hdr-right { display: flex; align-items: center; gap: 22px; }

.langs {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.langs a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    border: 1px solid transparent;
    color: var(--dim);
    font: 400 10px/1 var(--mono);
    letter-spacing: 1px;
    text-decoration: none;
    transition: border-color .3s, color .3s, background .3s;
}
.langs img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    filter: grayscale(.85) brightness(.75);
    transition: filter .3s, box-shadow .3s;
}
.langs a:hover { color: var(--g1); border-color: var(--g3); }
.langs a:hover img { filter: none; box-shadow: 0 0 10px color-mix(in srgb, var(--g1) 45%, transparent); }
.langs a.is-active { color: var(--g1); border-color: var(--g2); background: color-mix(in srgb, var(--g1) 6%, transparent); }
.langs a.is-active img { filter: none; }
.lang-name { display: none; }

/* Header language dropdown (after the status badge): current flag + label, list opens below. */
.lang-dd { position: relative; }
/* Box and corners come from the shared HUD badge rule (.status); only the specifics here. */
.lang-dd summary {
    padding: 7px 14px;
    color: var(--g1);
    font: 400 10px/1 var(--mono);
    letter-spacing: 1px;
    list-style: none;
    cursor: pointer;
    transition: border-color .3s, box-shadow .3s;
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary img { width: 20px; height: 14px; object-fit: cover; }
.lang-dd summary:hover,
.lang-dd[open] summary {
    border-color: var(--g1);
    box-shadow: 0 0 12px color-mix(in srgb, var(--g1) 30%, transparent);
}
.lang-dd-caret {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 2px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform .3s, margin .3s;
}
.lang-dd[open] .lang-dd-caret { transform: rotate(-135deg); margin-top: 3px; }
.lang-dd-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    flex-direction: column;
    gap: 2px;
    min-width: 170px;
    padding: 6px;
    border: 1px solid var(--line-bright);
    background: rgba(2, 6, 4, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.lang-dd-list a { padding: 8px 10px; }
.lang-dd-list .lang-name { display: inline; margin-left: auto; color: var(--dim); letter-spacing: 0; }

/* HUD badge: rectangle with two corner brackets. Shared by "SYSTEM ONLINE" and the language button. */
.status,
.lang-dd summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid color-mix(in srgb, var(--g1) 22%, transparent);
    background: color-mix(in srgb, var(--g1) 5%, transparent);
}
.status { padding: 9px 14px; }
/* Hovering the status badge reveals the clock: Bucharest time and its time zone. */
.status-clock {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    padding: 7px 12px;
    border: 1px solid var(--line-bright);
    background: rgba(2, 6, 4, .96);
    color: var(--g1);
    font: 400 10px/1 var(--mono);
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
}
.status:hover .status-clock { opacity: 1; transform: none; }
.status::before, .status::after,
.lang-dd summary::before, .lang-dd summary::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border: 1px solid var(--g1);
}
.status::before, .lang-dd summary::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.status::after, .lang-dd summary::after { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--g1);
    box-shadow: 0 0 14px var(--g1);
    animation: headPulse 1.5s ease-in-out infinite;
}
.status-text {
    color: var(--g1);
    font: 400 10px/1 var(--mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.burger {
    position: relative;
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-bright);
    background: transparent;
    cursor: pointer;
    z-index: 1001;
    transition: border-color .3s;
}
.burger span {
    position: absolute;
    left: 10px;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform .3s var(--ease), opacity .3s, background .3s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger:hover { border-color: var(--g1); }
.burger[aria-expanded="true"] span { background: var(--g1); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mmenu {
    position: fixed;
    inset: 0;
    z-index: 997;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    padding: 110px 24px 40px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 8%, transparent) 0%, rgba(2, 6, 4, .97) 32%, color-mix(in srgb, var(--g2) 10%, transparent) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}
.mmenu.is-open { opacity: 1; visibility: visible; }
.mmenu-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--dim);
    font: 400 11px var(--mono);
    letter-spacing: 2px;
}
.mmenu-sep { color: var(--g1); }
.mmenu-contact a { text-decoration: none; transition: color .3s; }
.mmenu-contact a:hover { color: var(--g1); }
.mmenu-contact .wa { margin-left: 0; }
.mmenu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .4s .1s, transform .4s .1s var(--ease);
}
.mmenu.is-open .mmenu-links { opacity: 1; transform: none; }
.mmenu-link {
    position: relative;
    color: var(--text);
    font: 600 22px var(--font);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .3s;
}
.mmenu-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--grad);
    transition: width .3s var(--ease);
}
.mmenu-link:hover { color: var(--g1); }
.mmenu-link:hover::before { width: 100%; }
.mmenu-deco {
    margin-top: auto;
    color: var(--dim);
    font: 400 10px var(--mono);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}

/* Sections */
main { padding: 0 var(--pad); }

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 130px 0 80px;
}
.hero-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}
.hero-label-line {
    width: 56px;
    height: 1px;
    background: var(--grad);
    box-shadow: 0 0 8px var(--g1);
}
.hero-label-text {
    color: var(--g1);
    font: 400 12px var(--mono);
    letter-spacing: 4px;
    text-transform: uppercase;
}
.hero-title {
    margin: 0 0 30px;
    font: 700 max(44px, min(10vw, 128px))/.92 var(--font);
    letter-spacing: -.035em;
    text-shadow: 0 0 40px color-mix(in srgb, var(--g1) 18%, transparent);
}
.hero-line { display: block; }
.hero-stroke {
    color: transparent;
    -webkit-text-stroke: 1px var(--g1);
    text-shadow: none;
}
.hero-typed { color: var(--g1); min-height: .92em; }
.hero-cursor {
    display: inline-block;
    width: .09em;
    height: .8em;
    margin-left: .06em;
    vertical-align: -.04em;
    background: var(--g1);
    box-shadow: 0 0 14px var(--g1);
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
    max-width: 560px;
    margin: 0 0 44px;
    color: var(--text);
    opacity: .85;
    font-size: clamp(15px, 1.4vw, 18px);
    text-shadow: 0 1px 12px #000;
}
.noscript { color: var(--dim); font: 400 12px var(--mono); }

/* Chamfered HUD buttons */
.btns { display: flex; flex-wrap: wrap; gap: 18px; }
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 38px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: 700 12px var(--mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
    transition: color .3s;
}
.btn::before, .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn::before {
    background: var(--g1);
    z-index: -2;
}
.btn::after {
    inset: 1px;
    background: rgba(2, 6, 4, .88);
    z-index: -1;
    transition: background .3s;
}
.btn:hover { color: var(--bg); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--g1) 35%, transparent)); }
.btn:hover::after { background: linear-gradient(135deg, var(--g1), var(--g2)); }
.btn-c {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--g1);
}
.btn-c-tl { top: 0; left: 0; }
.btn-c-tr { top: 0; right: 0; }
.btn-c-bl { bottom: 0; left: 0; }
.btn-c-br { bottom: 0; right: 0; }
.btn-ghost::before { background: var(--g2); }
.btn-ghost .btn-c { background: var(--g2); }

.sec {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 0;
    scroll-margin-top: 70px;
}
.sec-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}
.sec-num {
    padding: 7px 14px;
    border: 1px solid var(--g2);
    color: var(--g1);
    font: 400 13px var(--mono);
}
.sec-title {
    margin: 0;
    color: var(--text);
    font: 500 14px var(--font);
    letter-spacing: 4px;
    text-transform: uppercase;
}
.sec-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line-bright), transparent);
}

.panel {
    position: relative;
    border: 1px solid var(--line-bright);
    background: var(--panel);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
/* Both text panels span the full section, the same width as the row of three cards. */
.about-text {
    margin: 0 0 34px;
    padding: 28px 32px;
    font-size: clamp(15px, 1.3vw, 17px);
}

/* The accent left border is shared with the cards. */
.services-text {
    white-space: pre-line;
    scroll-margin-top: 110px;
    border-left: 2px solid var(--g1);
}

/* Four cards per row (sections 02 and 03); 2 on tablets, 1 on phones (see media queries). */
.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 170px;
    padding: 26px;
    border: 1px solid var(--line-bright);
    border-left: 2px solid var(--g1);
    background: var(--panel);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
    transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -100%;
    height: 60%;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--g1) 8%, transparent), transparent);
    transition: top .8s var(--ease);
}
.card:hover {
    border-color: var(--g2);
    border-left-color: var(--g1);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px color-mix(in srgb, var(--g1) 8%, transparent);
}
.card:hover::before { top: 120%; }
.card-idx { color: var(--g2); font: 400 11px var(--mono); letter-spacing: 2px; }
.card-kicker { color: var(--g1); text-transform: uppercase; }
.card-title { margin: 0; color: var(--text); font: 600 20px var(--font); }
.card-desc {
    margin: 0;
    color: var(--text);
    opacity: .78;
    font-size: 14px;
    line-height: 1.55;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 0;
    padding: 6px 0 0;
    list-style: none;
}
.card-tag {
    padding: 4px 10px;
    border: 1px solid var(--g3);
    color: var(--dim);
    font: 400 10px var(--mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: border-color .3s, color .3s;
}
.card:hover .card-tag { border-color: var(--g2); color: var(--g1); }
.card-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    border-top: 2px solid var(--g1);
    border-right: 2px solid var(--g1);
    opacity: .4;
    transition: opacity .3s;
}
.card:hover .card-corner { opacity: 1; }

.contact { padding: 10px 32px; }
.contact-list { margin: 0; }
.contact-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row dt {
    color: var(--dim);
    font: 400 11px/1.9 var(--mono);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.contact-row dd {
    margin: 0;
    color: var(--text);
    font: 500 16px var(--font);
    overflow-wrap: anywhere;
}
/* Phone and "Contact" read like the other values; the accent shows only on hover. */
.contact-row a {
    color: inherit;
    text-decoration: none;
    transition: color .3s, text-shadow .3s;
}
.contact-row a:hover {
    color: var(--g1);
    text-shadow: 0 0 12px color-mix(in srgb, var(--g1) 60%, transparent);
}
/* WhatsApp shortcut next to the phone number (same pattern as yremora.com/contact). */
.contact-row a.wa,
.wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 14px;
    vertical-align: middle;
    border: 1px solid var(--g3);
    color: var(--g1);
    transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.wa svg { width: 16px; height: 16px; fill: currentColor; }
.contact-row a.wa:hover,
.wa:hover {
    border-color: var(--g1);
    box-shadow: 0 0 14px color-mix(in srgb, var(--g1) 45%, transparent);
    transform: translateY(-2px);
    text-shadow: none;
}

.panel-c {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--g1);
}
.panel-c-tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.panel-c-br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

/* Footer */
.ftr {
    /* Side padding grows on wide screens so the text lines up with the centred 1200px content. */
    padding: 40px max(var(--pad), calc((100% - 1200px) / 2)) 50px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, transparent, rgba(2, 6, 4, .85));
}
.ftr p { margin: 0; }
.ftr-legal {
    color: var(--dim);
    font: 400 11px var(--mono);
    letter-spacing: 1px;
    text-align: center;
}
.ftr-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 14px !important;
    color: var(--dim);
    font: 400 11px var(--mono);
}
.ftr-neo { position: relative; color: var(--g1); cursor: help; }
/* Hovering (or focusing) the Trinity line shows her whole screen dialog from the film,
   one line after another like on Neo's terminal. */
.neo-dialog {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    border: 1px solid var(--line-bright);
    border-left: 2px solid var(--g1);
    background: rgba(2, 6, 4, .96);
    font: 400 12px/1.4 var(--mono);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.neo-dialog span { opacity: 0; transition: opacity .2s; }
.ftr-neo:hover .neo-dialog, .ftr-neo:focus .neo-dialog { opacity: 1; visibility: visible; }
.ftr-neo:hover .neo-dialog span, .ftr-neo:focus .neo-dialog span { opacity: 1; }
.ftr-neo:hover .neo-dialog span:nth-child(2), .ftr-neo:focus .neo-dialog span:nth-child(2) { transition-delay: .5s; }
.ftr-neo:hover .neo-dialog span:nth-child(3), .ftr-neo:focus .neo-dialog span:nth-child(3) { transition-delay: 1s; }
.ftr-neo:hover .neo-dialog span:nth-child(4), .ftr-neo:focus .neo-dialog span:nth-child(4) { transition-delay: 1.5s; }
kbd {
    padding: 1px 6px;
    border: 1px solid var(--g3);
    color: var(--g1);
    font: inherit;
}
/* Key legend entry with a hover tip (E: "Enter The Matrix"). */
.key-tip { position: relative; cursor: help; }
.key-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    z-index: 10;
    padding: 6px 12px;
    border: 1px solid var(--line-bright);
    border-left: 2px solid var(--g1);
    background: rgba(2, 6, 4, .96);
    color: var(--g1);
    font: 400 11px/1 var(--mono);
    letter-spacing: 1px;
    text-transform: none;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 4px);
    pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
}
.key-tip:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1180px) {
    .status { display: none; }
}
@media (max-width: 1100px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .nav, .hdr-right { display: none; }
    .burger { display: block; }
}
@media (min-width: 981px) {
    .mmenu { display: none; }
}
@media (max-width: 600px) {
    .hdr-in { padding: 14px 16px 10px; }
    .logo-afk { height: 28px; }
    .hero { padding-top: 110px; }
    .btn { width: 100%; }
    .contact { padding: 6px 18px; }
    .contact-row { grid-template-columns: 1fr; gap: 4px; }
    .about-text { padding: 20px; }
    .cards { grid-template-columns: 1fr; }
}

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