:root {
    --bg-black: #090806;
    --bg-deep: #14100b;
    --bg-brown: #21170f;
    --panel: rgba(39, 28, 19, 0.86);
    --panel-soft: rgba(64, 45, 29, 0.68);

    --paper: #d7c6a3;
    --paper-deep: #a99062;
    --paper-dark: #6f5635;

    --ink: #f0dfbd;
    --ink-muted: #b8a17b;
    --ink-dim: #7d6b51;

    --amber: #d89035;
    --amber-soft: rgba(216, 144, 53, 0.2);
    --green: #6cff9e;
    --green-soft: rgba(108, 255, 158, 0.16);

    --red: #b33a2c;
    --red-dark: #6c1d18;
    --red-soft: rgba(179, 58, 44, 0.18);

    --brass: #b18a4a;
    --hairline: rgba(218, 178, 108, 0.28);
    --shadow: rgba(0, 0, 0, 0.55);

    --mono: "Courier New", Courier, monospace;
    --serif: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--serif);
    background:
        radial-gradient(
            circle at 18% 12%,
            rgba(216, 144, 53, 0.12),
            transparent 26%
        ),
        radial-gradient(
            circle at 78% 18%,
            rgba(108, 255, 158, 0.08),
            transparent 22%
        ),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(180deg, var(--bg-black), var(--bg-brown) 42%, #0c0907);
    background-size:
        auto,
        auto,
        54px 54px,
        auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 4px
        ),
        radial-gradient(
            circle at center,
            transparent 0 52%,
            rgba(0, 0, 0, 0.42) 100%
        );
    mix-blend-mode: soft-light;
    opacity: 0.42;
    z-index: 10;
}

a,
button {
    color: inherit;
}

a {
    text-decoration: none;
}

button {
    font: inherit;
}

.page-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 22px;
}

/* HEADER */

.site-header {
    display: grid;
    gap: 14px;
    padding: 0 0 34px;
}

.header-rule {
    height: 9px;
    border-top: 1px solid var(--brass);
    border-bottom: 1px solid var(--hairline);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(216, 144, 53, 0.26),
            transparent
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.07) 0 1px,
            transparent 1px 11px
        );
}

.site-identity {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    color: var(--ink-muted);
    padding: 0 5px;
}

.institution-mark,
.section-heading p,
.console-kicker,
.bulletin-kicker {
    margin: 0;
    color: var(--amber);
    font-family: var(--mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-status {
    margin: 0;
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--green-soft);
}

.topline {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    padding: 0 20px;
}

.topline a,
.console-open {
    position: relative;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}

.console-open {
    color: var(--green);
}

.topline a:hover,
.console-open:hover {
    border-color: var(--amber);
    color: var(--ink);
}

.console-open::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    opacity: 0.76;
}

/* HERO */

.hero {
    position: relative;
    background-image: url("../img/hero/tennar-hero.png");
    background-size: cover;
    background-position: center top;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 32px;
    align-items: center;
    padding: 42px 22px 48px;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--brass);
    overflow: hidden;
}

.hero h1,
.hero .hero-subtitle,
.hero p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 7, 4, 0.78) 0%,
        rgba(10, 7, 4, 0.66) 38%,
        rgba(10, 7, 4, 0.38) 62%,
        rgba(10, 7, 4, 0.18) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 900px;
    margin: 12px 0 16px;
    color: var(--paper);
    font-size: clamp(4rem, 10vw, 8.2rem);
    line-height: 0.86;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    text-shadow:
        0 0 18px rgba(216, 144, 53, 0.16),
        0 6px 0 rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--red);
    font-family: var(--mono);
    font-size: clamp(1rem, 2.1vw, 1.34rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.department {
    max-width: 780px;
    margin-bottom: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
    color: var(--ink);
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    font-weight: 600;
    line-height: 1.36;
}

.intro {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.secondary-intro {
    margin-top: 14px;
    color: var(--amber);
    font-style: italic;
}

.hero-evidence {
    align-self: stretch;
    display: grid;
    align-items: center;
}

.evidence-board {
    position: relative;
    min-height: 390px;
    padding: 24px;
    border: 1px solid var(--hairline);
    background:
        linear-gradient(
            180deg,
            rgba(215, 198, 163, 0.13),
            rgba(67, 45, 27, 0.18)
        ),
        var(--panel);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.35),
        0 18px 50px var(--shadow);
}

.evidence-board::before {
    content: "WER-IMG / VISUAL EVIDENCE";
    position: absolute;
    top: 14px;
    right: 14px;
    color: rgba(216, 144, 53, 0.44);
    font-family: var(--mono);
    font-size: 0.64rem;
}

.evidence-title {
    margin-bottom: 22px;
    color: var(--paper);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
}

.evidence-board ul,
.object-registry ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-muted);
    line-height: 1.8;
}

.evidence-board li::marker,
.object-registry li::marker {
    color: var(--amber);
}

/* HERO VISUAL BAY */

.hero-visual-bay {
    position: relative;
    min-height: 156px;
    display: grid;
    align-content: end;
    gap: 7px;
    margin: 0 0 22px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(108, 255, 158, 0.22);
    background:
        radial-gradient(
            circle at 28% 30%,
            rgba(108, 255, 158, 0.15),
            transparent 28%
        ),
        radial-gradient(
            circle at 78% 22%,
            rgba(216, 144, 53, 0.12),
            transparent 24%
        ),
        linear-gradient(135deg, rgba(216, 144, 53, 0.08), transparent 46%),
        rgba(0, 0, 0, 0.38);
    box-shadow:
        inset 0 0 34px rgba(0, 0, 0, 0.62),
        0 0 22px rgba(108, 255, 158, 0.06);
}

.hero-visual-bay::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(216, 144, 53, 0.24);
    pointer-events: none;
}

.hero-visual-bay::after {
    content: "NO IMAGE / PROCEED ANYWAY";
    position: absolute;
    right: 12px;
    top: 10px;
    color: rgba(179, 58, 44, 0.72);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    transform: rotate(2deg);
}

.visual-scanline {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(108, 255, 158, 0.055) 0,
        rgba(108, 255, 158, 0.055) 1px,
        transparent 1px,
        transparent 5px
    );
    opacity: 0.52;
}

.visual-code,
.visual-main,
.visual-sub {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: var(--mono);
}

.visual-code {
    color: var(--green);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 0 8px var(--green-soft);
}

.visual-main {
    color: var(--paper);
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.visual-sub {
    color: var(--ink-muted);
    font-size: 0.62rem;
    line-height: 1.45;
}

.hero-visual-bay:hover {
    border-color: rgba(108, 255, 158, 0.42);
    box-shadow:
        inset 0 0 38px rgba(0, 0, 0, 0.66),
        0 0 28px rgba(108, 255, 158, 0.11);
}

/* PROP LAYER / EVIDENCE LABELS */

.prop-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.prop-tag,
.object-tag {
    display: inline-grid;
    place-items: center;
    width: fit-content;
    border: 1px solid rgba(216, 144, 53, 0.45);
    background:
        linear-gradient(180deg, rgba(216, 144, 53, 0.12), rgba(0, 0, 0, 0.18)),
        rgba(9, 8, 6, 0.62);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow:
        0 0 14px rgba(216, 144, 53, 0.08),
        inset 0 0 0 1px rgba(0, 0, 0, 0.32);
}

.prop-tag {
    position: absolute;
    padding: 7px 9px;
    opacity: 0.72;
}

.prop-tag::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 1px;
    background: rgba(216, 144, 53, 0.35);
}

.prop-usb {
    left: 21%;
    bottom: 16px;
    color: var(--green);
    border-color: rgba(108, 255, 158, 0.38);
    transform: rotate(15deg);
    text-shadow: 0 0 8px var(--green-soft);
}

.prop-usb::before {
    left: -28px;
    top: 50%;
    background: rgba(108, 255, 158, 0.32);
}

.prop-rokr {
    left: 16%;
    bottom: 280px;
    transform: rotate(-9deg);
}

.prop-rokr::before {
    left: -30px;
    top: 50%;
}

.prop-ashtray {
    left: 41%;
    bottom: 165px;
    transform: rotate(-10deg);
}

.prop-ashtray::before {
    left: -30px;
    top: 50%;
}

.prop-cup {
    left: 63%;
    bottom: 85px;
    transform: rotate(25deg);
}

.prop-cup::before {
    left: -30px;
    top: 50%;
}

.prop-crt {
    right: 12%;
    top: 92px;
    color: var(--green);
    border-color: rgba(108, 255, 158, 0.38);
    transform: rotate(-2deg);
    text-shadow: 0 0 10px var(--green-soft);
}

.prop-crt::before {
    left: -28px;
    top: 50%;
    background: rgba(108, 255, 158, 0.32);
}

.prop-stiletto {
    left: 54%;
    bottom: 48px;
    color: var(--red);
    border-color: rgba(179, 58, 44, 0.44);
    transform: rotate(-5deg);
}

.prop-stiletto::before {
    left: -28px;
    top: 50%;
    background: rgba(179, 58, 44, 0.32);
}

.object-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
}

.object-tag {
    min-height: 30px;
    padding: 8px 10px;
    opacity: 0.82;
}

.object-tag.denied {
    color: var(--red);
    border-color: rgba(179, 58, 44, 0.46);
}

.object-tag.amber {
    color: var(--amber);
}

.object-tag.green {
    color: var(--green);
    border-color: rgba(108, 255, 158, 0.38);
    text-shadow: 0 0 8px var(--green-soft);
}

/* STAMPS */

.stamp {
    position: absolute;
    display: grid;
    place-items: center;
    width: 178px;
    height: 86px;
    border: 3px double var(--red);
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-8deg);
    opacity: 0.86;
    text-shadow: 0 0 8px var(--red-soft);
}

.stamp::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid var(--red-soft);
}

.hero-stamp {
    right: 18px;
    bottom: 24px;
}

.research-stamp {
    right: 2%;
    top: 30px;
    transform: rotate(7deg);
}

.gidza-stamp {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: fit-content;
    min-width: 86px;
    min-height: 34px;
    padding: 6px 10px;
    border: 2px solid var(--red);
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: rotate(-5deg);
    opacity: 0.78;
    text-shadow: 0 0 8px var(--red-soft);
    box-shadow: inset 0 0 0 1px rgba(179, 58, 44, 0.18);
}

.gidza-stamp::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(179, 58, 44, 0.22);
    pointer-events: none;
}

.inline-stamp {
    position: relative;
    margin-left: 10px;
    vertical-align: middle;
}

.mini-stamp {
    position: relative;
    margin-left: 10px;
    min-width: 74px;
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.56rem;
    transform: rotate(4deg);
}

.gidza-stamp.njet {
    transform: rotate(6deg);
}

.gidza-stamp.pending {
    transform: rotate(-2deg);
}

.boje-strike {
    position: relative;
    color: var(--paper);
}

.boje-strike::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 52%;
    height: 2px;
    background: var(--red);
    transform: rotate(-3deg);
    opacity: 0.82;
}

.boje-wavy {
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.boje-note {
    display: inline-block;
    margin: 0 4px;
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    transform: rotate(-3deg);
    opacity: 0.86;
}

.boje-note::before {
    content: "↳ ";
}

.footer-stamp-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
}

.footer-note {
    margin-left: auto;
    font-size: 0.76rem;
}

/* STATUS STRIP */

.status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 22px 0 0;
    border: 1px solid var(--hairline);
    background: var(--hairline);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.status-strip p {
    margin: 0;
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(108, 255, 158, 0.06), transparent),
        rgba(9, 8, 6, 0.82);
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.45;
    text-transform: uppercase;
}

.status-strip strong,
.status-strip span {
    color: var(--green);
    text-shadow: 0 0 10px var(--green-soft);
}

/* SECTIONS */

.section-block {
    position: relative;
    padding: 72px 0;
    border-bottom: 1px solid var(--hairline);
}

.section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 0;
    color: var(--paper);
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

h3 {
    color: var(--paper);
}

/* ABOUT */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
    gap: 18px;
}

.paper-panel,
.object-registry {
    border: 1px solid var(--hairline);
    background:
        linear-gradient(180deg, rgba(215, 198, 163, 0.1), rgba(0, 0, 0, 0.12)),
        var(--panel);
    box-shadow: 0 18px 50px var(--shadow);
}

.paper-panel {
    padding: 30px;
}

.paper-panel p {
    color: var(--ink-muted);
    font-size: 1.06rem;
    line-height: 1.78;
}

.paper-panel p:last-child {
    margin-bottom: 0;
}

.object-registry {
    padding: 24px;
}

.object-registry h3 {
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* FACULTY */

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.faculty-card {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background:
        linear-gradient(180deg, rgba(215, 198, 163, 0.1), rgba(0, 0, 0, 0.1)),
        var(--panel-soft);
    box-shadow: 0 18px 42px var(--shadow);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.faculty-card::after {
    content: "";
    position: absolute;
    inset: auto -30px 14px auto;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(216, 144, 53, 0.12);
    border-radius: 50%;
    opacity: 0.6;
}

.faculty-card:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 144, 53, 0.48);
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.68),
        inset 0 0 0 1px rgba(216, 144, 53, 0.08);
}

.faculty-card:hover small {
    color: var(--green);
    text-shadow: 0 0 8px var(--green-soft);
}

.wide-card {
    grid-column: auto;
}

.card-number {
    position: relative;
    z-index: 1;
    width: fit-content;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--red);
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 700;
}

.faculty-card h3,
.faculty-card p,
.faculty-card small {
    position: relative;
    z-index: 1;
}

.faculty-card h3 {
    max-width: calc(100% - 92px);
    margin: auto 0 10px;
    font-size: 1.18rem;
    line-height: 1.24;
}

.faculty-card p {
    max-width: calc(100% - 92px);
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.faculty-card small {
    display: block;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--hairline);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.45;
    text-transform: uppercase;
}

/* Faculty personality marks */

.gidza-card {
    box-shadow:
        inset 0 0 0 1px rgba(179, 58, 44, 0.18),
        0 18px 42px var(--shadow);
}

.gidza-card::before {
    content: "НЕТ";
    position: absolute;
    right: 16px;
    top: 16px;
    border: 2px solid var(--red);
    color: var(--red);
    padding: 6px 12px;
    font-family: var(--mono);
    font-weight: 900;
    transform: rotate(8deg);
    opacity: 0.62;
}

.boje-card h3 {
    text-decoration: underline wavy var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.boje-card::before {
    content: "Det ved alle jo!";
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.66rem;
    transform: rotate(-5deg);
    opacity: 0.72;
}

.lyra-card {
    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(179, 58, 44, 0.18),
            transparent 22%
        ),
        linear-gradient(180deg, rgba(215, 198, 163, 0.12), rgba(0, 0, 0, 0.1)),
        var(--panel-soft);
}

.lyra-card::before {
    content: "♥";
    position: absolute;
    right: 18px;
    top: 14px;
    color: var(--red);
    font-size: 1.1rem;
}

.michael-card::before {
    content: "USB PATCH";
    position: absolute;
    right: 14px;
    top: 16px;
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.62rem;
    text-shadow: 0 0 8px var(--green-soft);
}

/* Faculty ID photo placeholders */

.faculty-photo {
    position: absolute;
    right: 16px;
    top: 42px;
    width: 72px;
    height: 92px;
    overflow: hidden;
    border: 1px solid rgba(216, 144, 53, 0.36);
    background:
        linear-gradient(180deg, rgba(215, 198, 163, 0.18), rgba(0, 0, 0, 0.26)),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.035) 0,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px,
            transparent 4px
        ),
        rgba(9, 8, 6, 0.58);
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.32),
        inset 0 0 24px rgba(0, 0, 0, 0.48);
    opacity: 0.72;
    transform: rotate(1deg);
}

.faculty-photo::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 24%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(215, 198, 163, 0.22);
    transform: translateX(-50%);
}

.faculty-photo::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 16px;
    width: 46px;
    height: 34px;
    border-radius: 50% 50% 8px 8px;
    background: rgba(215, 198, 163, 0.16);
    transform: translateX(-50%);
}

.faculty-card:hover .faculty-photo {
    opacity: 0.92;
    border-color: rgba(216, 144, 53, 0.68);
    box-shadow:
        0 0 22px rgba(216, 144, 53, 0.12),
        inset 0 0 26px rgba(0, 0, 0, 0.5);
}

.faculty-photo-tennar {
    border-color: rgba(216, 144, 53, 0.42);
}

.faculty-photo-boje {
    border-color: rgba(179, 58, 44, 0.42);
    transform: rotate(-2deg);
}

.faculty-photo-boje::after {
    box-shadow: inset 0 0 0 2px rgba(179, 58, 44, 0.24);
}

.faculty-photo-gidza {
    border-color: rgba(179, 58, 44, 0.48);
    filter: contrast(1.18);
}

.faculty-photo-gidza::before {
    background: rgba(215, 198, 163, 0.18);
}

.faculty-photo-gidza::after {
    content: "НЕТ";
    display: grid;
    place-items: center;
    width: 54px;
    height: 24px;
    bottom: 12px;
    border: 1px solid rgba(179, 58, 44, 0.54);
    border-radius: 0;
    color: var(--red);
    background: transparent;
    font-family: var(--mono);
    font-size: 0.56rem;
    font-weight: 900;
    transform: translateX(-50%) rotate(-5deg);
}

.faculty-photo-werner {
    border-style: dashed;
}

.faculty-photo-werner::before {
    content: "?";
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--amber);
    font-family: var(--mono);
    font-weight: 900;
}

.faculty-photo-lyra {
    border-color: rgba(216, 144, 53, 0.48);
    background:
        radial-gradient(
            circle at 72% 18%,
            rgba(179, 58, 44, 0.18),
            transparent 22%
        ),
        linear-gradient(180deg, rgba(215, 198, 163, 0.22), rgba(0, 0, 0, 0.26)),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.035) 0,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px,
            transparent 4px
        ),
        rgba(9, 8, 6, 0.58);
}

.faculty-photo-lyra::after {
    content: "♥";
    display: grid;
    place-items: center;
    width: 46px;
    height: 34px;
    color: var(--red);
    background: rgba(215, 198, 163, 0.12);
    font-size: 0.8rem;
}

.faculty-photo-michael {
    border-color: rgba(108, 255, 158, 0.36);
}

.faculty-photo-michael::after {
    content: "USB";
    display: grid;
    place-items: center;
    width: 46px;
    height: 22px;
    bottom: 14px;
    border: 1px solid rgba(108, 255, 158, 0.38);
    border-radius: 0;
    color: var(--green);
    background: rgba(0, 0, 0, 0.24);
    font-family: var(--mono);
    font-size: 0.54rem;
    font-weight: 900;
    text-shadow: 0 0 8px var(--green-soft);
}

.pseudo-degree {
    display: inline-block;
    margin-top: 8px;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    opacity: 0.86;
}

.michael-card .pseudo-degree::before {
    content: "academic anomaly: ";
    color: var(--green);
    font-size: 0.58rem;
    text-transform: uppercase;
}

/* RESEARCH ARCHIVE */

.research-block {
    padding-bottom: 86px;
}

.paper-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    counter-reset: paper;
    list-style: none;
    border-top: 1px solid var(--brass);
    background: rgba(0, 0, 0, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(216, 144, 53, 0.14),
        0 18px 46px rgba(0, 0, 0, 0.22);
}

.paper-list li {
    position: relative;
    counter-increment: paper;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    min-height: 84px;
    border-bottom: 1px solid var(--hairline);
    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

.paper-list li::before {
    content: counter(paper, decimal-leading-zero);
    padding-left: 18px;
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 700;
}

.paper-list li::after {
    content: "";
    position: absolute;
    left: 74px;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(216, 144, 53, 0.18),
        transparent 72%
    );
    opacity: 0.6;
}

.paper-list li:hover {
    background: rgba(216, 144, 53, 0.045);
    border-color: rgba(216, 144, 53, 0.36);
}

.paper-list li:hover::before {
    color: var(--green);
    text-shadow: 0 0 8px var(--green-soft);
}

.paper-list li:hover .paper-note {
    color: var(--green);
    text-shadow: 0 0 8px var(--green-soft);
}

.paper-list span {
    padding: 14px 18px 14px 0;
    color: var(--paper);
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    line-height: 1.34;
}

.paper-note {
    display: block;
    margin-top: 7px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-style: normal;
    letter-spacing: 0.02em;
}

.archive-tag {
    display: inline-grid;
    place-items: center;
    width: fit-content;
    min-height: 24px;
    margin: 0 10px 7px 0;
    padding: 5px 8px;
    border: 1px solid rgba(216, 144, 53, 0.42);
    background:
        linear-gradient(180deg, rgba(216, 144, 53, 0.12), rgba(0, 0, 0, 0.18)),
        rgba(9, 8, 6, 0.48);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.32),
        0 0 14px rgba(216, 144, 53, 0.06);
}

.archive-tag.boje-tag {
    color: var(--red);
    border-color: rgba(179, 58, 44, 0.44);
    transform: rotate(-1deg);
}

.archive-tag.field-tag {
    color: var(--green);
    border-color: rgba(108, 255, 158, 0.34);
    text-shadow: 0 0 8px var(--green-soft);
}

.archive-tag.protocol-tag {
    color: var(--red);
    border-color: rgba(179, 58, 44, 0.52);
}

.archive-tag.failure-tag {
    color: var(--paper);
    border-color: rgba(215, 198, 163, 0.34);
}

.paper-list li:hover .archive-tag {
    border-color: rgba(216, 144, 53, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(216, 144, 53, 0.12),
        0 0 18px rgba(216, 144, 53, 0.12);
}

.paper-list li:hover .archive-tag.field-tag {
    border-color: rgba(108, 255, 158, 0.66);
}

.paper-list li:hover .archive-tag.boje-tag,
.paper-list li:hover .archive-tag.protocol-tag {
    border-color: rgba(179, 58, 44, 0.72);
}

/* TENNAR FM */

.tennar-fm-signal {
    position: relative;
}

.tennar-fm-signal::before {
    content: "BROADCAST LICENSE: ON-AIR-ISH";
    position: absolute;
    right: 4%;
    top: 58px;
    border: 2px solid rgb(19 249 2 / 50%);
    padding: 8px 14px;
    color: #28fb05;
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    transform: rotate(5deg);
    opacity: 0.56;
}

.fm-panel {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background:
        linear-gradient(180deg, rgba(215, 198, 163, 0.1), rgba(0, 0, 0, 0.12)),
        var(--panel);
    box-shadow: 0 18px 50px var(--shadow);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.fm-panel:has(.fm-now-playing) .fm-track-info h2 {
    max-width: 100%;
}

.fm-panel::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(216, 144, 53, 0.16);
    pointer-events: none;
}

.fm-panel::after {
    content: "STUDIO 69 / CONTROL ROOM";
    position: absolute;
    right: 18px;
    top: 14px;
    color: rgba(216, 144, 53, 0.42);
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.fm-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 144, 53, 0.48);
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.68),
        inset 0 0 0 1px rgba(216, 144, 53, 0.08);
}

.fm-lamp-wrap {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
}

.fm-lamp-wrap span {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--green-soft);
}

.fm-lamp {
    width: 52px;
    height: 52px;
    justify-self: center;
    border: 1px solid rgba(108, 255, 158, 0.45);
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 35%,
        #d8ffe2,
        var(--green) 18%,
        rgba(108, 255, 158, 0.22) 42%,
        rgba(0, 0, 0, 0.4) 68%
    );
    box-shadow:
        0 0 18px var(--green-soft),
        0 0 42px rgba(108, 255, 158, 0.11),
        inset 0 0 12px rgba(255, 255, 255, 0.25);
    animation: fmLampPulse 3.8s ease-in-out infinite;
}

.fm-content {
    position: relative;
    z-index: 1;
}

.fm-panel p {
    margin-bottom: 12px;
    color: var(--ink-muted);
    font-size: 1.02rem;
    line-height: 1.62;
}

.fm-panel p:last-child {
    margin-bottom: 0;
}

.fm-display {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid rgba(108, 255, 158, 0.24);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(108, 255, 158, 0.045) 0,
            rgba(108, 255, 158, 0.045) 1px,
            transparent 1px,
            transparent 5px
        ),
        radial-gradient(
            circle at 12% 30%,
            rgba(108, 255, 158, 0.12),
            transparent 30%
        ),
        rgba(0, 0, 0, 0.38);
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.62),
        0 0 22px rgba(108, 255, 158, 0.06);
}

.fm-frequency,
.fm-status {
    margin: 0;
    font-family: var(--mono);
    text-transform: uppercase;
}

.fm-frequency {
    color: var(--green);
    font-size: clamp(1rem, 2vw, 1.36rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-shadow: 0 0 12px var(--green-soft);
}

.fm-status {
    color: var(--amber);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.fm-meter-row {
    height: 42px;
    display: flex;
    align-items: end;
    gap: 5px;
    margin: 0 0 16px;
    padding: 7px 8px;
    border: 1px solid rgba(216, 144, 53, 0.18);
    background: rgba(0, 0, 0, 0.18);
}

.fm-meter-row span {
    width: 10px;
    height: var(--level);
    min-height: 6px;
    background: linear-gradient(
        180deg,
        rgba(108, 255, 158, 0.92),
        rgba(216, 144, 53, 0.82) 72%,
        rgba(179, 58, 44, 0.78)
    );
    box-shadow: 0 0 10px rgba(108, 255, 158, 0.12);
    opacity: 0.34;
    transform-origin: bottom;
    transition:
        height 82ms linear,
        opacity 160ms ease,
        box-shadow 160ms ease;
}

.fm-meter-row.is-playing span {
    opacity: 0.74;
    animation: fmMeterTwitch 2.8s ease-in-out infinite;
}

.fm-meter-row.is-audio-driven span {
    animation: none;
}

.fm-meter-row span:nth-child(2n) {
    animation-delay: 0.3s;
}

.fm-meter-row span:nth-child(3n) {
    animation-delay: 0.7s;
}

.fm-panel:hover .fm-meter-row span {
    opacity: 1;
}

.fm-log {
    display: grid;
    gap: 6px;
    margin: 14px 0;
    padding: 12px 14px;
    border-left: 4px solid rgba(216, 144, 53, 0.42);
    background: rgba(0, 0, 0, 0.18);
}

.fm-log p {
    margin: 0;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.55;
}

.fm-log strong {
    color: var(--amber);
    font-weight: 900;
}

.bulletin-note {
    color: var(--amber) !important;
    font-family: var(--mono);
    font-size: 0.76rem !important;
    text-transform: uppercase;
}

@keyframes fmLampPulse {
    0%,
    100% {
        opacity: 0.72;
        box-shadow:
            0 0 18px var(--green-soft),
            0 0 42px rgba(108, 255, 158, 0.11),
            inset 0 0 12px rgba(255, 255, 255, 0.25);
    }

    50% {
        opacity: 1;
        box-shadow:
            0 0 24px rgba(108, 255, 158, 0.28),
            0 0 64px rgba(108, 255, 158, 0.16),
            inset 0 0 16px rgba(255, 255, 255, 0.32);
    }
}

@keyframes fmMeterTwitch {
    0%,
    100% {
        transform: scaleY(0.92);
        opacity: 0.58;
    }

    45% {
        transform: scaleY(1.06);
        opacity: 0.88;
    }

    62% {
        transform: scaleY(0.78);
        opacity: 0.7;
    }
}

/* FOOTER */

.site-footer {
    padding: 24px 0 0;
}

.site-footer p {
    max-width: 920px;
    margin: 0 0 10px;
    color: var(--ink-dim);
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.55;
}

/* DEBUG CONSOLE */

.debug-console-modal {
    width: min(760px, calc(100% - 28px));
    padding: 0;
    border: 1px solid var(--green-soft);
    background: transparent;
    color: var(--green);
}

.debug-console-modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.console-window {
    margin: 0;
    border: 1px solid rgba(108, 255, 158, 0.32);
    background:
        linear-gradient(180deg, rgba(108, 255, 158, 0.08), transparent), #050705;
    box-shadow:
        0 0 28px rgba(108, 255, 158, 0.12),
        0 28px 80px rgba(0, 0, 0, 0.82);
}

.console-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(108, 255, 158, 0.22);
}

.console-header h2 {
    margin-top: 6px;
    color: var(--green);
    font-family: var(--mono);
    font-size: 1.25rem;
    letter-spacing: 0;
    text-shadow: 0 0 12px var(--green-soft);
}

.console-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(108, 255, 158, 0.32);
    background: rgba(108, 255, 158, 0.06);
    color: var(--green);
    cursor: pointer;
}

.console-screen {
    padding: 20px;
    font-family: var(--mono);
}

.console-screen p {
    margin-bottom: 10px;
}

.console-input {
    width: 100%;
    margin: 6px 0 14px;
    padding: 12px 13px;
    border: 1px solid rgba(108, 255, 158, 0.32);
    outline: 0;
    background: rgba(0, 0, 0, 0.52);
    color: var(--green);
    font-family: var(--mono);
    font-size: 1rem;
    box-shadow: inset 0 0 16px rgba(108, 255, 158, 0.06);
}

.console-input::placeholder {
    color: rgba(108, 255, 158, 0.42);
}

.console-output {
    min-height: 150px;
    margin: 0;
    padding: 14px;
    overflow: auto;
    border: 1px solid rgba(108, 255, 158, 0.18);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(108, 255, 158, 0.04) 0,
            rgba(108, 255, 158, 0.04) 1px,
            transparent 1px,
            transparent 5px
        ),
        rgba(0, 0, 0, 0.46);
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.console-help {
    padding: 0 20px 20px;
    color: rgba(108, 255, 158, 0.72);
    font-family: var(--mono);
    font-size: 0.76rem;
    line-height: 1.6;
}

.console-help code {
    color: var(--amber);
}

.hidden-command-note {
    color: rgba(216, 144, 53, 0.72);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* LIVING ARCHIVE EFFECTS */

.paper-panel,
.object-registry,
.evidence-board,
.status-strip p {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.paper-panel:hover,
.object-registry:hover,
.evidence-board:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 144, 53, 0.48);
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.68),
        inset 0 0 0 1px rgba(216, 144, 53, 0.08);
}

.prop-tag,
.object-tag,
.gidza-stamp {
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.prop-tag:hover,
.object-tag:hover {
    opacity: 1;
    border-color: rgba(216, 144, 53, 0.75);
    box-shadow:
        0 0 18px rgba(216, 144, 53, 0.18),
        inset 0 0 0 1px rgba(216, 144, 53, 0.12);
}

.object-tag.green:hover,
.prop-usb:hover,
.prop-crt:hover {
    border-color: rgba(108, 255, 158, 0.72);
    box-shadow:
        0 0 18px rgba(108, 255, 158, 0.18),
        inset 0 0 0 1px rgba(108, 255, 158, 0.12);
}

.object-tag.denied:hover,
.prop-stiletto:hover,
.gidza-stamp:hover {
    border-color: rgba(179, 58, 44, 0.78);
    box-shadow:
        0 0 18px rgba(179, 58, 44, 0.18),
        inset 0 0 0 1px rgba(179, 58, 44, 0.12);
}

/* ACTIVE FACULTY IMAGE HOOKS */

.faculty-photo-tennar {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36)),
        url("../img/faculty/tennar.png");
}

.faculty-photo-boje {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36)),
        url("../img/faculty/boeje.png");
}

.faculty-photo-gidza {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38)),
        url("../img/faculty/gidza02.png");
}

.faculty-photo-werner {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36)),
        url("../img/faculty/werner.png");
}

.faculty-photo-lyra {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34)),
        url("../img/faculty/lyra.png");
}

.faculty-photo-michael {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34)),
        url("../img/faculty/michael.png");
}

.faculty-photo.has-image {
    background-size: cover;
    background-position: center 18%;
}

.faculty-photo.has-image::before,
.faculty-photo.has-image::after {
    display: none;
}

/* ARTICLE / ARCHIVE PAGES */

.archive-page .paper-panel {
    margin-bottom: 28px;
}

.paper-title-link {
    color: var(--paper);
    text-decoration: none;
}

.paper-title-link:hover {
    color: var(--green);
    text-shadow: 0 0 8px var(--green-soft);
}

.article-page {
    max-width: 920px;
    margin: 0 auto;
}

.article-panel {
    position: relative;
}

.article-panel h2 {
    margin: 34px 0 16px;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.article-meta {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hairline);
    color: var(--amber) !important;
    font-family: var(--mono);
    font-size: 0.78rem !important;
    line-height: 1.7 !important;
}

.article-panel blockquote {
    margin: 28px 0;
    padding: 22px 26px;
    border-left: 4px solid var(--brass);
    background: rgba(0, 0, 0, 0.18);
    color: var(--paper);
    font-size: 1.18rem;
    line-height: 1.55;
    font-style: italic;
}

.article-panel cite {
    display: block;
    margin-top: 12px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.74rem;
    font-style: normal;
}

/* FOOTNOTES */

.article-panel sup {
    font-family: var(--mono);
    font-size: 0.68em;
    line-height: 0;
}

.article-panel sup a,
.footnote a {
    color: var(--green);
    text-decoration: none;
    text-shadow: 0 0 8px var(--green-soft);
}

.article-panel sup a:hover,
.footnote a:hover {
    color: var(--amber);
    text-shadow: 0 0 8px var(--amber-soft);
}

.footnote {
    padding-left: 1.8rem;
    text-indent: -1.8rem;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
}

.footnote:target {
    color: var(--paper);
    background: rgba(108, 255, 158, 0.06);
    outline: 1px solid rgba(108, 255, 158, 0.18);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
    padding: 14px 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.article-action {
    border: 1px solid rgba(216, 144, 53, 0.42);
    background:
        linear-gradient(180deg, rgba(216, 144, 53, 0.12), rgba(0, 0, 0, 0.18)),
        rgba(9, 8, 6, 0.62);
    color: var(--amber);
    padding: 8px 10px;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.article-action:hover {
    color: var(--green);
    border-color: rgba(108, 255, 158, 0.38);
    text-shadow: 0 0 8px var(--green-soft);
}

.article-action-disabled {
    cursor: help;
    opacity: 0.58;
}

/* CODE SCHOOL / LESSON BLOCKS */

.code-block,
.console-block {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0 1.4rem;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    border: 1px solid rgba(216, 144, 53, 0.34);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 5px
        ),
        rgba(0, 0, 0, 0.34);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.86rem;
    line-height: 1.6;
    white-space: pre;
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.42),
        0 12px 30px rgba(0, 0, 0, 0.18);
}

.code-block code,
.console-block code {
    font-family: var(--mono);
}

.code-block::before,
.console-block::before {
    display: block;
    margin-bottom: 0.6rem;
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.code-block::before {
    content: "CODE EXAMPLE";
    color: var(--amber);
}

.console-block {
    border-color: rgba(108, 255, 158, 0.28);
    color: var(--green);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(108, 255, 158, 0.04) 0,
            rgba(108, 255, 158, 0.04) 1px,
            transparent 1px,
            transparent 5px
        ),
        rgba(0, 0, 0, 0.42);
    text-shadow: 0 0 8px var(--green-soft);
}

.console-block::before {
    content: "CONSOLE OUTPUT";
    color: var(--amber);
    text-shadow: none;
}

.console-block--error {
    border-color: rgba(179, 58, 44, 0.48);
    color: #ff9a8f;
    text-shadow: 0 0 8px var(--red-soft);
}

.console-block--error::before {
    content: "CONSOLE ERROR";
    color: var(--red);
}

/* NEWS PAGE */

.news-page {
    max-width: 980px;
    margin: 0 auto;
}

.news-list {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.news-item {
    position: relative;
    padding: 26px;
    border: 1px solid var(--hairline);
    background:
        linear-gradient(180deg, rgba(215, 198, 163, 0.1), rgba(0, 0, 0, 0.12)),
        var(--panel);
    box-shadow: 0 18px 50px var(--shadow);
}

.news-item::before {
    content: "BULLETIN";
    position: absolute;
    right: 18px;
    top: 16px;
    color: rgba(216, 144, 53, 0.38);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.news-item h2 {
    margin: 8px 0 18px;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.news-item p {
    color: var(--ink-muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

.news-item em {
    color: var(--paper);
}

/* NEWS VISUAL EVIDENCE 

.news-item--with-evidence {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 24px;
    align-items: start;
}

.news-evidence {
    position: relative;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--hairline);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(108, 255, 158, 0.035) 0,
            rgba(108, 255, 158, 0.035) 1px,
            transparent 1px,
            transparent 5px
        ),
        linear-gradient(180deg, rgba(215, 198, 163, 0.08), rgba(0, 0, 0, 0.18)),
        rgba(9, 8, 6, 0.48);
    box-shadow:
        inset 0 0 28px rgba(0, 0, 0, 0.42),
        0 14px 36px rgba(0, 0, 0, 0.28);
}

.news-evidence::before {
    content: "VISUAL EVIDENCE";
    position: absolute;
    right: 10px;
    top: 8px;
    z-index: 1;
    color: rgba(216, 144, 53, 0.5);
    font-family: var(--mono);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.news-evidence img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(216, 144, 53, 0.2);
    filter: sepia(0.18) contrast(1.06);
}

.news-evidence figcaption {
    margin-top: 8px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.66rem;
    line-height: 1.45;
    text-transform: uppercase;
}

.news-item--evidence-left .news-evidence {
    order: -1;
}

@media (max-width: 780px) {
    .news-item--with-evidence {
        grid-template-columns: 1fr;
    }

    .news-item--evidence-left .news-evidence {
        order: 0;
    }
}
*/

/* NEWS ATTACHMENTS */

.news-attachment {
    position: relative;
    margin: 22px 0 0;
    max-width: 520px;
    padding: 10px;
    border: 1px solid var(--hairline);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 5px
        ),
        rgba(0, 0, 0, 0.22);
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.42),
        0 12px 30px rgba(0, 0, 0, 0.22);
}

.news-attachment::before {
    content: "ATTACHED EVIDENCE";
    position: absolute;
    right: 10px;
    top: 8px;
    color: rgba(216, 144, 53, 0.48);
    font-family: var(--mono);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.news-attachment img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(216, 144, 53, 0.2);
    filter: sepia(0.2) contrast(1.05);
}

.news-attachment figcaption {
    margin-top: 8px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.66rem;
    line-height: 1.45;
    text-transform: uppercase;
}

/* ERROR PAGES */

.error-page {
    padding-top: 48px;
    max-width: 1040px;
    margin: 0 auto;
}

.error-panel {
    position: relative;
}

.error-console {
    margin: 24px 0 28px;
    padding: 18px 20px;
    border: 1px solid rgba(108, 255, 158, 0.22);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(108, 255, 158, 0.045) 0,
            rgba(108, 255, 158, 0.045) 1px,
            transparent 1px,
            transparent 5px
        ),
        rgba(0, 0, 0, 0.34);
    box-shadow:
        inset 0 0 28px rgba(0, 0, 0, 0.55),
        0 0 18px rgba(108, 255, 158, 0.06);
}

.error-console p {
    margin-bottom: 10px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.65;
}

.error-console p:last-child {
    margin-bottom: 0;
}

.error-console code {
    color: var(--green);
    text-shadow: 0 0 8px var(--green-soft);
    word-break: break-word;
}

.error-list {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-muted);
    line-height: 1.8;
}

.error-list li::marker {
    color: var(--amber);
}

/* TENNAR FM PLAYER */

.fm-player {
    display: grid;
    gap: 16px;
    margin: 16px 0;
}

.fm-now-playing {
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 182px;
    padding: 14px;
    border: 1px solid rgba(216, 144, 53, 0.18);
    background: rgba(0, 0, 0, 0.2);
}

/* FM COVER MODAL */
.fm-cover-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 152px;
    height: 152px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(216, 144, 53, 0.28);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(108, 255, 158, 0.04) 0,
            rgba(108, 255, 158, 0.04) 1px,
            transparent 1px,
            transparent 5px
        ),
        rgba(0, 0, 0, 0.38);
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.48);
}

.fm-cover-frame[role="button"] {
    cursor: zoom-in;
}

.fm-cover-frame[aria-disabled="true"] {
    cursor: default;
}

.fm-cover-frame[role="button"]:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.fm-cover-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fm-cover-frame span {
    padding: 12px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.58rem;
    line-height: 1.45;
    text-align: center;
    text-transform: uppercase;
}

.fm-verdict-panel {
    display: grid;
    gap: 11px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(108, 255, 158, 0.18);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(108, 255, 158, 0.025) 0,
            rgba(108, 255, 158, 0.025) 1px,
            transparent 1px,
            transparent 5px
        ),
        rgba(0, 0, 0, 0.24);
}

.fm-verdict-panel[hidden] {
    display: none;
}

.fm-verdict-kicker,
.fm-gidza-label,
.fm-gidza-status,
.fm-stats-disclosure {
    margin: 0;
    font-family: var(--mono);
}

.fm-verdict-kicker {
    color: var(--amber);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fm-verdict-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.fm-verdict-grid p {
    display: grid;
    gap: 3px;
    margin: 0;
}

.fm-verdict-grid strong {
    color: var(--ink-dim);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fm-verdict-grid span {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 0 8px var(--green-soft);
}

.fm-verdict-grid p:first-child span {
    color: var(--amber);
    text-shadow: 0 0 8px rgba(216, 144, 53, 0.2);
}

.fm-gidza-label {
    margin-top: 2px;
    color: var(--amber);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fm-gidza-status {
    color: var(--ink-muted);
    font-size: 0.72rem;
    line-height: 1.62;
}

.fm-stats-disclosure {
    color: var(--red);
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.86;
}

.fm-cover-modal {
    width: min(720px, calc(100% - 28px));
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    padding: 0;
    border: 1px solid rgba(216, 144, 53, 0.38);
    background: transparent;
    color: var(--ink);
    position: fixed;
    inset: 0;
    z-index: 1000;
    margin: auto;
    overflow: visible;
    border-radius: 0;
}

.fm-cover-modal::backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(5px);
}

.fm-cover-modal[open],
.fm-cover-modal.is-open {
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.76);
}

.fm-cover-modal-frame {
    position: relative;
    display: grid;
    gap: 12px;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    margin: 0;
    padding: 14px;
    overflow: auto;
    border: 1px solid rgba(108, 255, 158, 0.2);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(108, 255, 158, 0.035) 0,
            rgba(108, 255, 158, 0.035) 1px,
            transparent 1px,
            transparent 6px
        ),
        #050705;
    box-shadow:
        0 0 28px rgba(216, 144, 53, 0.14),
        0 30px 90px rgba(0, 0, 0, 0.82);
}

.fm-cover-modal-frame img {
    width: 100%;
    max-height: min(68vh, 720px);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.45);
}

.fm-cover-modal-frame figcaption {
    display: grid;
    gap: 4px;
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.fm-cover-modal-frame figcaption strong {
    color: var(--green);
    font-weight: 700;
}

.fm-cover-modal-frame figcaption span {
    color: var(--ink-muted);
}

.fm-cover-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    padding: 8px 10px;
    border: 1px solid rgba(216, 144, 53, 0.45);
    background: rgba(0, 0, 0, 0.72);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 0.68rem;
    cursor: pointer;
}

/* FM LYRICS */

.fm-lyrics-modal {
    width: min(760px, calc(100% - 28px));
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    padding: 0;
    border: 1px solid rgba(108, 255, 158, 0.32);
    background: transparent;
    color: var(--ink);
    position: fixed;
    inset: 0;
    z-index: 1000;
    margin: auto;
    overflow: visible;
    border-radius: 0;
}

.fm-lyrics-modal::backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(5px);
}

.fm-lyrics-modal[open],
.fm-lyrics-modal.is-open {
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.76);
}

.fm-lyrics-modal-frame {
    position: relative;
    display: grid;
    gap: 10px;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    margin: 0;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(216, 144, 53, 0.24);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(108, 255, 158, 0.035) 0,
            rgba(108, 255, 158, 0.035) 1px,
            transparent 1px,
            transparent 6px
        ),
        #050705;
    box-shadow:
        0 0 28px rgba(108, 255, 158, 0.1),
        0 30px 90px rgba(0, 0, 0, 0.82);
}

.fm-lyrics-modal-frame h2 {
    margin: 0;
    padding-right: 76px;
    color: var(--green);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    overflow-wrap: anywhere;
}

.fm-lyrics-modal-frame p {
    margin: 0;
}

.fm-lyrics-modal-frame #fm-lyrics-modal-artist {
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.fm-lyrics-modal-frame pre {
    max-height: min(58vh, 560px);
    max-height: min(58dvh, 560px);
    margin: 8px 0 0;
    padding: 16px;
    overflow: auto;
    border: 1px solid rgba(108, 255, 158, 0.16);
    background: rgba(0, 0, 0, 0.46);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.84rem;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    scrollbar-color: #1f8f2e #081109;
}

.fm-lyrics-modal-frame pre:hover {
    scrollbar-color: #46b85a #081109;
}

/* Custom scrollbar styles for WebKit browsers */
.fm-lyrics-modal-frame pre::-webkit-scrollbar {
    width: 12px;
}

.fm-lyrics-modal-frame pre::-webkit-scrollbar-track {
    background: #081109;
}

.fm-lyrics-modal-frame pre::-webkit-scrollbar-thumb {
    background: #1f8f2e;
    border: 2px solid #081109;
}

.fm-lyrics-modal-frame pre:hover::-webkit-scrollbar-thumb {
    background: #46b85a;
}

/* TENNAR WEATHER WIDGET */

.tennar-weather-widget {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    align-items: stretch;
    margin: 16px 0 0;
    border: 1px solid rgba(108, 255, 158, 0.2);
    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(108, 255, 158, 0.12),
            transparent 30%
        ),
        repeating-linear-gradient(
            0deg,
            rgba(108, 255, 158, 0.035) 0,
            rgba(108, 255, 158, 0.035) 1px,
            transparent 1px,
            transparent 5px
        ),
        rgba(0, 0, 0, 0.28);
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.46),
        0 0 18px rgba(108, 255, 158, 0.05);
}

.tennar-weather-icon {
    display: block;
    width: 84px;
    height: 84px;
    align-self: start;
    min-height: 0;
    font-size: 0;
    overflow: hidden;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.22);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border: 1px solid rgba(216, 144, 53, 0.26);
    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.55),
        0 0 10px rgba(108, 255, 158, 0.08);
}

.tennar-weather-body {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.tennar-weather-head,
.tennar-weather-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tennar-weather-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(216, 144, 53, 0.18);
}

.tennar-weather-tags,
.tennar-weather-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tennar-weather-kicker {
    margin: 0;
    color: var(--amber);
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tennar-weather-widget h3 {
    margin: 0;
    color: var(--paper);
    margin-bottom: 4px;
    font-size: 1.08rem;
    line-height: 1.2;
}

.tennar-weather-widget [data-weather-text] {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
    line-height: 1.48;
}

.tennar-weather-widget p {
    margin: 0;
    color: var(--ink-muted);
    line-height: 1.55;
}

.tennar-weather-stats span {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-shadow: 0 0 8px var(--green-soft);
}

.tennar-weather-widget[data-weather-mood="incident"],
.tennar-weather-widget[data-weather-mood="severe"] {
    border-color: rgba(179, 58, 44, 0.44);
}

.tennar-weather-widget[data-weather-mood="incident"] .tennar-weather-icon,
.tennar-weather-widget[data-weather-mood="severe"] .tennar-weather-icon {
    color: var(--red);
    text-shadow: 0 0 10px var(--red-soft);
}

.tennar-weather-host {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.88;
}

.tennar-weather-host-img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: cover;
    border: 1px solid rgba(216, 144, 53, 0.28);
    background: rgba(0, 0, 0, 0.26);
    filter: sepia(0.1) contrast(1.06);
    box-shadow:
        inset 0 0 12px rgba(0, 0, 0, 0.55),
        0 0 10px rgba(108, 255, 158, 0.08);
}

/* Weather full page */
.weather-day-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.weather-day-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(108, 255, 158, 0.18);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(108, 255, 158, 0.03) 0,
            rgba(108, 255, 158, 0.03) 1px,
            transparent 1px,
            transparent 5px
        ),
        rgba(0, 0, 0, 0.24);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.42);
}

.weather-host-large {
    display: grid;
    grid-template-columns: minmax(180px, 340px) minmax(0, 1fr);
    gap: 22px;
    align-items: end;
}

.weather-host-large img {
    display: block;
    width: min(100%, 340px);
    height: auto;
    object-fit: contain;
}

.weather-current-icon,
.weather-day-icon {
    display: block;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(216, 144, 53, 0.26);
    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.55),
        0 0 10px rgba(108, 255, 158, 0.08);
}

.weather-current-icon {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
}

.weather-day-icon {
    width: 56px;
    height: 56px;
}

.weather-day-name {
    margin: 0;
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weather-day-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.weather-day-card p:last-child {
    margin: 0;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    line-height: 1.45;
}

/* Tennar Institute — Correspondence Terminal v1 */

.correspondence-shell {
    padding-bottom: 42px;
}

.correspondence-hero,
.ct-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.7fr);
    gap: 28px;
    align-items: start;
}

.correspondence-hero {
    padding: 18px 0 30px;
    border-bottom: 1px solid var(--hairline);
}

.correspondence-hero h1 {
    margin: 10px 0 12px;
    color: var(--paper);
    font-family: var(--serif);
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.94;
}

.correspondence-hero .intro {
    max-width: 730px;
}

.ct-status-card,
.ct-form,
.ct-incident-panel,
.ct-protocol-panel,
.ct-response {
    border: 1px solid var(--hairline);
    background:
        linear-gradient(145deg, rgba(216, 144, 53, 0.08), transparent 42%),
        var(--panel);
    box-shadow: 0 18px 52px var(--shadow);
}

.ct-status-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.6;
}

.ct-status-card::before {
    content: "CT-17";
    position: absolute;
    right: -8px;
    bottom: -26px;
    color: rgba(216, 144, 53, 0.11);
    font-family: var(--mono);
    font-size: 5.2rem;
    font-weight: 700;
    letter-spacing: -0.12em;
}

.ct-status-card > * {
    position: relative;
}

.ct-status-kicker,
.section-kicker {
    margin: 0;
    color: var(--amber);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ct-status-main {
    margin: 10px 0 14px;
    color: var(--green);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-shadow: 0 0 12px var(--green-soft);
}

.ct-status-line {
    margin: 7px 0;
}

.ct-lamp {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.ct-layout {
    padding: 32px 0;
}

.ct-form {
    padding: clamp(20px, 4vw, 34px);
}

.ct-form-heading h2,
.ct-incident-panel h2,
.ct-protocol-panel h2,
.ct-response h2 {
    margin: 8px 0 9px;
    color: var(--paper);
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 400;
}

.ct-form-heading > p:last-child {
    margin: 0 0 24px;
    color: var(--ink-muted);
}

.ct-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.ct-field {
    display: grid;
    gap: 7px;
    margin: 0 0 15px;
    color: var(--paper-deep);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.015em;
}

.ct-field b {
    color: var(--red);
}

.ct-field input,
.ct-field textarea,
.ct-field select {
    width: 100%;
    border: 1px solid rgba(216, 144, 53, 0.32);
    border-radius: 0;
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    color: var(--ink);
    font: 0.92rem/1.45 var(--mono);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ct-field input,
.ct-field select {
    min-height: 44px;
    padding: 10px 12px;
}

.ct-field textarea {
    min-height: 190px;
    padding: 12px;
    resize: vertical;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
    color: rgba(184, 161, 123, 0.6);
}

.ct-field input:focus,
.ct-field textarea:focus,
.ct-field select:focus {
    border-color: var(--amber);
    background: rgba(216, 144, 53, 0.06);
    box-shadow: 0 0 0 3px rgba(216, 144, 53, 0.1);
}

.ct-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 20px;
    margin-top: 22px;
    padding-top: 21px;
    border-top: 1px dashed var(--hairline);
}

.ct-submit {
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid rgba(108, 255, 158, 0.65);
    background: rgba(108, 255, 158, 0.08);
    color: var(--green);
    cursor: pointer;
    font: 700 0.78rem var(--mono);
    letter-spacing: 0.07em;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ct-submit:hover,
.ct-submit:focus-visible {
    border-color: var(--green);
    background: rgba(108, 255, 158, 0.16);
    transform: translateY(-2px);
}

.ct-submit:disabled {
    cursor: progress;
    opacity: 0.58;
    transform: none;
}

.ct-privacy-note {
    max-width: 390px;
    margin: 0;
    color: var(--ink-dim);
    font-family: var(--mono);
    font-size: 0.7rem;
    line-height: 1.55;
}

.ct-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.ct-side-stack {
    display: grid;
    gap: 18px;
}

.ct-incident-panel,
.ct-protocol-panel {
    padding: 22px;
}

.ct-incident-status {
    margin: 18px 0 12px;
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.88rem;
    line-height: 1.55;
    text-shadow: 0 0 12px var(--green-soft);
}

.ct-incident-detail {
    margin: 12px 0 0;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.74rem;
    line-height: 1.6;
}

.ct-meter {
    height: 11px;
    overflow: hidden;
    border: 1px solid rgba(179, 58, 44, 0.42);
    background: rgba(0, 0, 0, 0.45);
}

.ct-meter span {
    display: block;
    width: 8%;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
    box-shadow: 0 0 14px rgba(216, 144, 53, 0.45);
    transition: width 440ms ease;
}

.ct-protocol-panel ul {
    display: grid;
    gap: 11px;
    margin: 18px 0 0;
    padding-left: 19px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.76rem;
    line-height: 1.55;
}

.ct-response {
    margin: 0 0 32px;
    padding: clamp(20px, 4vw, 32px);
}

.ct-response[hidden] {
    display: none;
}

.ct-response.is-error {
    border-color: rgba(179, 58, 44, 0.62);
    background:
        linear-gradient(145deg, rgba(179, 58, 44, 0.14), transparent 48%),
        var(--panel);
}

.ct-response-body {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.9rem;
    line-height: 1.7;
}

.ct-response-body p {
    margin: 0 0 10px;
}

.ct-response-meta {
    margin: 18px 0 0;
    color: var(--amber);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

@media (max-width: 760px) {
    .correspondence-hero,
    .ct-layout {
        grid-template-columns: 1fr;
    }

    .ct-grid {
        grid-template-columns: 1fr;
    }

    .correspondence-hero {
        padding-top: 6px;
    }
}


@media (max-width: 760px) {
    .weather-host-large {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .weather-host-large img {
        width: min(100%, 280px);
    }

    .weather-day-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .weather-hero-panel {
        padding: 22px;
    }

    .fm-cover-modal,
    .fm-lyrics-modal {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
    }

    .fm-cover-modal-frame,
    .fm-lyrics-modal-frame {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        padding: 12px;
    }

    .fm-cover-modal-frame img {
        max-height: 62vh;
        max-height: 62dvh;
    }

    .fm-lyrics-modal-frame h2 {
        padding-right: 70px;
        font-size: 1.3rem;
    }

    .fm-lyrics-modal-frame pre {
        max-height: 54vh;
        max-height: 54dvh;
        padding: 12px;
        font-size: 0.76rem;
    }

    .tennar-weather-widget {
        grid-template-columns: 1fr;
    }

    .tennar-weather-icon {
        min-height: 64px;
    }

    .fm-now-playing {
        min-height: 0;
    }
}

.fm-track-info h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    overflow-wrap: anywhere;
}

.fm-track-info p {
    margin-bottom: 8px;
}

.fm-now-kicker {
    color: var(--green) !important;
    font-family: var(--mono);
    font-size: 0.66rem !important;
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--green-soft);
}

.fm-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fm-controls button {
    cursor: pointer;
}

.fm-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.fm-volume-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 31px;
    padding: 6px 9px;
    border: 1px solid rgba(215, 198, 163, 0.24);
    background: rgba(0, 0, 0, 0.24);
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.fm-volume-control input {
    width: 118px;
    accent-color: var(--green);
}

.fm-rights-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
    color: var(--ink-dim) !important;
    font-family: var(--mono);
    font-size: 0.56rem !important;
    line-height: 1.65 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fm-now-kicker[data-type="music"] {
    color: var(--green) !important;
    text-shadow: 0 0 8px var(--green-soft);
}

.fm-now-kicker[data-type="station_id"] {
    color: var(--amber) !important;
    text-shadow: 0 0 8px var(--amber-soft);
}

.fm-now-kicker[data-type="promo"] {
    color: var(--paper) !important;
    text-shadow: 0 0 8px rgba(215, 198, 163, 0.16);
}

.fm-now-kicker[data-type="commercial"] {
    color: var(--red) !important;
    text-shadow: 0 0 8px var(--red-soft);
}

.fm-now-kicker[data-type="signal"] {
    color: var(--ink-muted) !important;
    text-shadow: none;
}

@media (max-width: 520px) {
    .code-block,
    .console-block {
        font-size: 0.72rem;
        padding: 14px;
    }

    .code-block code,
    .console-block code {
        display: block;
        min-width: max-content;
    }
}

@media (max-width: 640px) {
    .fm-now-playing {
        grid-template-columns: 1fr;
    }

    .fm-cover-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .hero,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .evidence-board {
        min-height: 310px;
    }

    .status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faculty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prop-layer {
        display: none;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 14px;
    }

    .site-identity {
        display: grid;
    }

    .topline {
        justify-content: flex-start;
        gap: 12px;
        font-size: 0.72rem;
    }

    .hero {
        padding: 42px 0 48px;
        background-repeat: no-repeat;
        background-size: auto 620px;
        background-position: 52% top;
    }

    .prop-layer {
        display: block;
    }

    .prop-tag {
        display: none;
    }

    .prop-stiletto {
        display: inline-grid;
        left: 54%;
        top: 520px;
        bottom: auto;
    }

    h1 {
        font-size: clamp(3.1rem, 17vw, 5.1rem);
    }

    .department {
        font-size: 1.05rem;
    }

    .intro {
        font-size: 0.98rem;
    }

    .status-strip,
    .faculty-grid,
    .fm-panel {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-column: auto;
    }

    .faculty-card {
        min-height: 212px;
        padding-right: 122px;
    }

    .faculty-card h3,
    .faculty-card p {
        max-width: none;
    }

    .faculty-photo {
        top: 36px;
        right: 14px;
        width: 92px;
        height: 122px;
    }

    .faculty-photo.has-image {
        background-position: center 14%;
    }

    .paper-list li {
        grid-template-columns: 48px minmax(0, 1fr);
        min-height: 96px;
    }

    .paper-list li::before {
        padding-left: 8px;
    }

    .paper-list li::after {
        left: 48px;
    }

    .archive-tag {
        display: flex;
        width: fit-content;
        margin-bottom: 8px;
    }

    .stamp {
        width: 132px;
        height: 74px;
        font-size: 0.68rem;
    }

    .hero-stamp {
        right: 12px;
        bottom: 18px;
    }

    .research-stamp {
        position: relative;
        inset: auto;
        margin: 28px 0 0 auto;
    }

    .object-tag-row {
        gap: 8px;
    }

    .object-tag {
        font-size: 0.56rem;
    }

    .tennar-fm-signal::before {
        position: relative;
        display: inline-block;
        inset: auto;
        margin: 0 0 18px;
    }

    .fm-lamp {
        justify-self: start;
    }

    .fm-meter-row span {
        width: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
