/* =============================================================
   NeuraGul Redesign — Refresh Layer
   Loaded after style.css. Overrides intentional.
   ============================================================= */

/* -------------------------------------------------------------
   01. FONT IMPORTS
   ------------------------------------------------------------- */

/* -------------------------------------------------------------
   02. TOKENS
   ------------------------------------------------------------- */
:root {
    --ink: #0A0A0B;
    --surface: #141416;
    --paper: #FAFAF7;
    --muted: rgba(250, 250, 247, 0.55);
    --rule: rgba(250, 250, 247, 0.08);
    --accent: #2E6BE6;
    --accent-hover: #4585F0;
    --accent-soft: rgba(46, 107, 230, 0.04);
    --accent-ghost: rgba(46, 107, 230, 0.22);

    --font-display: "Geist", "Inter", "Helvetica Neue", sans-serif;
    --font-body: "Geist", "Inter", "Helvetica Neue", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --section-pad-y: 160px;
}

@media (max-width: 768px) {
    :root { --section-pad-y: 80px; }
}

/* -------------------------------------------------------------
   03. BASE OVERRIDES
   ------------------------------------------------------------- */
/* Ink lives on html only (the canvas). Body is transparent so the
   fixed aurora layer behind body content can be seen through. */
html {
    background-color: var(--ink) !important;
}
body {
    background-color: transparent !important;
}
body {
    font-family: var(--font-body);
    color: var(--paper);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Aurora — soft drifting blue ambient blobs across the viewport.
   Fixed to the viewport so content slides past the atmosphere as
   you scroll. Sits behind everything (z-index -1). */
/* z-index 0 (not -1): a fixed element at negative z-index is unreliable on
   iOS Safari — transformed content (our data-reveal headings) gets its own
   compositing layer that punches through and reveals the negative-z layer,
   while untransformed content occludes it, so the aurora showed only behind
   the section headers. Keep it at 0 and lift content above with z-index 1. */
.nrg-aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: var(--ink);
}
.nrg-aurora__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    -webkit-filter: blur(90px);
    will-change: transform;
}
.nrg-aurora__blob--1 {
    top: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(46, 107, 230, 0.42), transparent 70%);
    animation: nrg-aurora-1 32s ease-in-out infinite alternate;
}
.nrg-aurora__blob--2 {
    top: 25%;
    right: -20%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(90, 170, 250, 0.30), transparent 70%);
    animation: nrg-aurora-2 38s ease-in-out infinite alternate;
}
.nrg-aurora__blob--3 {
    bottom: -20%;
    left: 15%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(20, 60, 180, 0.32), transparent 70%);
    animation: nrg-aurora-3 44s ease-in-out infinite alternate;
}
.nrg-aurora__blob--4 {
    top: 55%;
    left: 35%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(120, 180, 255, 0.20), transparent 70%);
    animation: nrg-aurora-4 50s ease-in-out infinite alternate;
}
@keyframes nrg-aurora-1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(18%, 22%) scale(1.15); }
}
@keyframes nrg-aurora-2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-18%, 18%) scale(1.20); }
}
@keyframes nrg-aurora-3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15%, -18%) scale(1.10); }
}
@keyframes nrg-aurora-4 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20%, -15%) scale(1.25); }
}
@media (max-width: 768px) {
    /* On tall narrow viewports the desktop blob positions leave gaps.
       Re-spread them down the page and keep all four so coverage reads
       as one continuous wash rather than isolated glows. */
    .nrg-aurora__blob {
        filter: blur(70px);
        -webkit-filter: blur(70px);
    }
    .nrg-aurora__blob--1 {
        top: -5%;
        left: -25%;
        width: 90vw;
        height: 90vw;
    }
    .nrg-aurora__blob--2 {
        top: 30%;
        right: -40%;
        width: 95vw;
        height: 95vw;
    }
    .nrg-aurora__blob--3 {
        bottom: -5%;
        left: -20%;
        width: 95vw;
        height: 95vw;
    }
    .nrg-aurora__blob--4 {
        display: block;
        top: 62%;
        left: -10%;
        width: 80vw;
        height: 80vw;
    }
}
@media (prefers-reduced-motion: reduce) {
    .nrg-aurora__blob--1,
    .nrg-aurora__blob--2,
    .nrg-aurora__blob--3,
    .nrg-aurora__blob--4 { animation: none; }
}

/* Skip link — hidden until keyboard focused */
.nrg-skip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10000;
    padding: 12px 16px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 150ms ease;
}
.nrg-skip:focus { transform: translateY(0); }

/* Global keyboard focus rings (visible only for keyboard, not mouse clicks) */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.nrg-btn:focus-visible { outline-offset: 2px; }

/* Branded text selection — default OS highlight reads as an ugly navy
   block on the dark theme (especially mobile). Make it on-brand. */
::selection {
    background: rgba(46, 107, 230, 0.32);
    color: var(--paper);
}
::-moz-selection {
    background: rgba(46, 107, 230, 0.32);
    color: var(--paper);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--paper);
    letter-spacing: -0.04em;
    text-transform: none;
}
/* Neutralize legacy template `header` tag rules that break the new sectional
   <header> elements (e.g. .nrg-work__head). responsive.css sets
   `header { background: #050023 }` at <=991px, which otherwise paints a dark
   navy box behind every section heading on mobile. The real nav keeps its own
   background via the .nrg-nav class (higher specificity than this tag rule). */
header {
    position: static;
    width: auto;
    padding: 0;
    z-index: auto;
    transition: none;
    background: transparent;
    box-shadow: none;
}
p { color: var(--paper); }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* Kill any leftover blob shape backgrounds from style.css */
.bg_shape1::after,
.bg_shape2::after,
.bg_shape3::after,
.bg_shape4::after { display: none !important; }

/* Hide preloader spinner styling we no longer want */
.loader-wrapper { background: var(--ink) !important; }

/* -------------------------------------------------------------
   04. LAYOUT PRIMITIVES
   ------------------------------------------------------------- */
.nrg-section {
    position: relative;
    z-index: 1;
    padding: var(--section-pad-y) 0;
    border-top: 1px solid var(--rule);
}
.nrg-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 768px) {
    .nrg-container { padding: 0 24px; }
}

.nrg-section__label {
    position: absolute;
    top: 32px;
    right: 40px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
@media (max-width: 768px) {
    /* On mobile, drop the label into normal flow above the heading so it
       never overlaps the large headings (absolute positioning collides
       on narrow viewports). */
    .nrg-section__label {
        position: static;
        display: block;
        margin-bottom: 20px;
        text-align: left;
    }
}

/* -------------------------------------------------------------
   05. UTILITIES
   ------------------------------------------------------------- */
.nrg-dotgrid {
    background-image: radial-gradient(circle, rgba(250,250,247,0.18) 1px, transparent 1px);
    background-size: 24px 24px;
}
.nrg-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.nrg-rule {
    height: 1px;
    background: var(--rule);
    border: 0;
    margin: 0;
}

/* -------------------------------------------------------------
   06. BUTTONS
   ------------------------------------------------------------- */
.nrg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border: 0;
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
    text-decoration: none;
}
.nrg-btn--filled {
    background: var(--accent);
    color: var(--ink);
}
.nrg-btn--filled:hover {
    background: var(--accent-hover);
    color: var(--ink);
}
.nrg-btn--ghost {
    background: transparent;
    color: var(--paper);
    padding-left: 0;
    padding-right: 0;
    position: relative;
}
.nrg-btn--ghost::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 6px;
    height: 1px;
    background: var(--paper);
    transition: right 250ms ease;
}
.nrg-btn--ghost:hover {
    color: var(--paper);
}
.nrg-btn--ghost:hover::after {
    right: 0;
}
.nrg-btn__arrow {
    width: 14px;
    height: 14px;
}

/* -------------------------------------------------------------
   07. REVEAL (set in Task 12)
   ------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 400ms ease, transform 400ms ease;
}
/* transform: none (not translateY(0)) so the GPU compositing layer collapses
   once the reveal settles. A lingering transform on these headings makes iOS
   Safari mis-composite the fixed, blurred aurora behind them — it drops the
   blurred blobs and paints solid ink, leaving a dark box around each heading. */
[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}
/* On phones (where the artifact actually shows) skip the slide entirely — a
   pure opacity fade never creates a transform layer, so the aurora reads through
   the headings uniformly. */
@media (max-width: 768px) {
    [data-reveal] { transform: none; }
}

/* -------------------------------------------------------------
   08. NAVIGATION
   ------------------------------------------------------------- */
.nrg-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10, 10, 11, 0.65), rgba(10, 10, 11, 0.18) 70%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color 200ms ease, border-color 200ms ease;
    border-bottom: 1px solid transparent;
}
.nrg-nav.is-scrolled {
    background: rgba(10, 10, 11, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: var(--rule);
}
.nrg-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.nrg-nav__brand {
    display: inline-flex;
    align-items: center;
    color: var(--paper);
    text-decoration: none;
    transition: opacity 150ms ease;
}
.nrg-nav__brand img {
    height: 60px;
    width: auto;
    display: block;
}
.nrg-nav__brand:hover { opacity: 0.75; }
.nrg-nav__links {
    display: flex;
    gap: 32px;
    margin-left: auto;
}
.nrg-nav__links a {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: rgba(250, 250, 247, 0.85);
    text-decoration: none;
    transition: color 150ms ease;
}
.nrg-nav__links a:hover { color: var(--paper); }
.nrg-nav__links a.is-current { color: var(--paper); }
.nrg-nav__links a.is-current::after {
    content: "";
    display: block;
    height: 1px;
    background: var(--accent);
    margin-top: 6px;
}
.nrg-nav__cta { padding: 10px 16px; font-size: 12px; }
.nrg-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nrg-nav__toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--paper);
}
.nrg-nav__toggle:hover { opacity: 0.7; }
.nrg-nav__mobile {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px 40px 24px;
    background: var(--ink);
    border-top: 1px solid var(--rule);
}
.nrg-nav__mobile a {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--paper);
    text-decoration: none;
    padding: 8px 0;
    text-transform: lowercase;
}
.nrg-nav__mobile a:hover { color: var(--accent); }
.nrg-nav__mobile[hidden] { display: none; }

@media (max-width: 900px) {
    .nrg-nav__links, .nrg-nav__cta { display: none; }
    .nrg-nav__toggle { display: flex; }
    .nrg-nav__mobile { display: flex; }
    .nrg-nav__mobile[hidden] { display: none; }
}

/* -------------------------------------------------------------
   09. HERO
   ------------------------------------------------------------- */
.nrg-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    border-top: 0;
    overflow: hidden;
}
.nrg-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    filter: saturate(0.85) contrast(1.05);
}
.nrg-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to right,
            rgba(10, 10, 11, 0.85) 0%,
            rgba(10, 10, 11, 0.55) 50%,
            rgba(10, 10, 11, 0.35) 100%),
        linear-gradient(to top,
            rgba(10, 10, 11, 0.92) 0%,
            rgba(10, 10, 11, 0.3) 35%,
            rgba(10, 10, 11, 0) 60%),
        radial-gradient(ellipse at 15% 90%,
            rgba(46, 107, 230, 0.12),
            rgba(46, 107, 230, 0) 55%);
}
.nrg-hero__inner { position: relative; z-index: 3; }
@media (max-width: 900px) {
    .nrg-hero__shade {
        background:
            linear-gradient(to right,
                rgba(10, 10, 11, 0.75) 0%,
                rgba(10, 10, 11, 0.55) 100%),
            linear-gradient(to top,
                rgba(10, 10, 11, 0.92) 0%,
                rgba(10, 10, 11, 0.3) 40%,
                rgba(10, 10, 11, 0) 70%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .nrg-hero__video { display: none; }
    .nrg-hero__shade {
        background-color: var(--ink);
        background-image:
            linear-gradient(to right,
                rgba(10, 10, 11, 0.85) 0%,
                rgba(10, 10, 11, 0.55) 50%,
                rgba(10, 10, 11, 0.35) 100%),
            linear-gradient(to top,
                rgba(10, 10, 11, 0.92) 0%,
                rgba(10, 10, 11, 0.3) 35%,
                rgba(10, 10, 11, 0) 60%),
            radial-gradient(ellipse at 15% 90%,
                rgba(46, 107, 230, 0.12),
                rgba(46, 107, 230, 0) 55%),
            url("../img/hero-poster.jpg");
        background-size: cover;
        background-position: center;
    }
}
.nrg-hero__inner {
    position: relative;
    width: 100%;
}
.nrg-hero__headline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(56px, 9vw, 132px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--paper);
    margin: 0 0 64px;
    max-width: 14ch;
}
.nrg-hero__headline em {
    font-style: normal;
    color: var(--accent);
}
.nrg-hero__foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    border-top: 1px solid var(--rule);
    padding-top: 32px;
}
.nrg-hero__sub {
    max-width: 46ch;
    color: var(--muted);
    font-size: 17px;
    margin: 0;
}
.nrg-hero__cta {
    display: flex;
    gap: 32px;
    justify-content: flex-end;
    align-items: center;
}
@media (max-width: 768px) {
    .nrg-hero { padding-top: 120px; min-height: auto; }
    .nrg-hero__headline { margin-bottom: 40px; }
    .nrg-hero__foot { grid-template-columns: 1fr; gap: 32px; }
    .nrg-hero__cta { justify-content: flex-start; flex-wrap: wrap; }
}

/* -------------------------------------------------------------
   10. ABOUT
   ------------------------------------------------------------- */
.nrg-about__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
    margin-top: 24px;
}
.nrg-about__statement {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--paper);
    margin: 0;
}
.nrg-about__stats {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}
.nrg-about__stats li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: baseline;
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
}
.nrg-about__value {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--paper);
}
@media (max-width: 768px) {
    .nrg-about__grid { grid-template-columns: 1fr; gap: 48px; }
    .nrg-about__stats li { grid-template-columns: 1fr; gap: 8px; }
}

/* -------------------------------------------------------------
   11. SERVICES
   ------------------------------------------------------------- */
.nrg-services__head { margin-bottom: 56px; }
.nrg-services__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
    max-width: 20em;
}
.nrg-services__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--rule);
}
.nrg-service {
    position: relative;
    border-top: 1px solid var(--rule);
}
.nrg-service::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-soft);
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}
.nrg-service:hover::before { opacity: 1; }
.nrg-service__link {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 80px 1fr 1.2fr 40px;
    gap: 32px;
    align-items: center;
    padding: 36px 24px 36px 0;
    color: inherit;
    text-decoration: none;
    transition: padding-left 200ms ease;
}
.nrg-service:hover .nrg-service__link { padding-left: 16px; }
.nrg-service__num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    position: relative;
    z-index: 1;
}
.nrg-service__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 32px);
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--paper);
    position: relative;
    z-index: 1;
    transition: transform 200ms ease;
}
.nrg-service:hover .nrg-service__title { transform: translateX(8px); }
.nrg-service__desc {
    color: var(--muted);
    margin: 0;
    font-size: 16px;
    position: relative;
    z-index: 1;
}
.nrg-service__arrow {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--muted);
    text-align: right;
    transition: color 200ms ease, transform 200ms ease;
    position: relative;
    z-index: 1;
}
.nrg-service:hover .nrg-service__arrow {
    color: var(--accent);
    transform: translateX(6px);
}

@media (max-width: 900px) {
    .nrg-service__link {
        grid-template-columns: 60px 1fr 32px;
        grid-template-areas: "num title arrow" "num desc arrow";
        row-gap: 8px;
        padding: 28px 16px 28px 0;
    }
    .nrg-service__num { grid-area: num; }
    .nrg-service__title { grid-area: title; }
    .nrg-service__desc { grid-area: desc; }
    .nrg-service__arrow { grid-area: arrow; align-self: center; }
}

/* -------------------------------------------------------------
   12. WORK
   ------------------------------------------------------------- */
.nrg-work__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 48px;
    margin-bottom: 64px;
}
.nrg-work__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
    flex: 1;
}
.nrg-work__sub {
    color: var(--muted);
    max-width: 36ch;
    margin: 0;
    flex: 0 0 auto;
}
.nrg-work__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px 32px;
}
.nrg-work__item {
    /* 3 per row; a short final row centers via the grid's justify-content.
       32px column gap → each basis gives up its share. */
    flex: 0 1 calc(33.333% - 22px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}
.nrg-work__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--surface);
    /* Hairline edge so cards stay contained against the aurora even when
       the image's own background is a similar dark tone. */
    border: 1px solid var(--rule);
}
.nrg-work__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
    filter: brightness(0.8);
}
.nrg-work__item:hover .nrg-work__img img {
    transform: scale(1.03);
    filter: brightness(1);
}
.nrg-work__meta { display: flex; flex-direction: column; gap: 8px; }
.nrg-work__name {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 28px);
    letter-spacing: -0.03em;
    margin: 0;
    transition: transform 250ms ease;
}
.nrg-work__item:hover .nrg-work__name { transform: translateX(4px); }
.nrg-work__desc {
    color: var(--muted);
    margin: 0;
    font-size: 15px;
    max-width: 48ch;
}

@media (max-width: 1080px) {
    .nrg-work__item { flex-basis: calc(50% - 16px); }   /* 2 per row */
}
@media (max-width: 900px) {
    .nrg-work__head { flex-direction: column; align-items: start; }
    .nrg-work__grid { gap: 48px; }
    .nrg-work__item { flex-basis: 100%; }               /* 1 per row */
}

/* -------------------------------------------------------------
   13. PROCESS
   ------------------------------------------------------------- */
.nrg-process__head { margin-bottom: 56px; }
.nrg-process__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
    max-width: 20em;
}
.nrg-process__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nrg-chapter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 2fr;
    gap: 48px;
    align-items: start;
    padding: 64px 0;
    border-top: 1px solid var(--rule);
}
.nrg-chapter:last-child { border-bottom: 1px solid var(--rule); }
.nrg-chapter__num {
    font-family: var(--font-display);
    font-size: clamp(120px, 18vw, 260px);
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: var(--accent-ghost);
    user-select: none;
}
.nrg-chapter__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.nrg-chapter__desc {
    color: var(--muted);
    margin: 0;
    font-size: 17px;
    max-width: 52ch;
}
@media (max-width: 768px) {
    .nrg-chapter { grid-template-columns: 1fr; gap: 16px; padding: 48px 0; }
}

/* -------------------------------------------------------------
   14. TEAM
   ------------------------------------------------------------- */
.nrg-team__head { margin-bottom: 56px; }
.nrg-team__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
    max-width: 20em;
}
.nrg-team__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.nrg-member { display: flex; flex-direction: column; gap: 16px; }
.nrg-member__photo {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--surface);
}
.nrg-member__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.85);
    transition: filter 300ms ease;
}
.nrg-member:hover .nrg-member__photo img { filter: grayscale(0) brightness(1); }
.nrg-member__name {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: -0.02em;
    margin: 0;
    transition: color 200ms ease;
}
.nrg-member:hover .nrg-member__name { color: var(--accent); }
@media (max-width: 768px) {
    .nrg-team__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* -------------------------------------------------------------
   15. CONTACT
   ------------------------------------------------------------- */
.nrg-contact__grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: 0 80px;
    margin-top: 24px;
}
.nrg-contact__title {
    /* Full-width headline above the form/aside row, so the contact details
       (aside) top-align with the form fields, not float below them. */
    grid-column: 1 / -1;
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 88px);
    line-height: 1;
    letter-spacing: -0.04em;
    margin: 0 0 56px;
}
.nrg-form { display: flex; flex-direction: column; gap: 28px; }
.nrg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.nrg-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nrg-field input,
.nrg-field select,
.nrg-field textarea {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(250, 250, 247, 0.28);
    color: var(--paper);
    font: 400 17px/1.4 var(--font-body);
    padding: 12px 0;
    outline: none;
    transition: border-color 200ms ease;
}
.nrg-field input:hover,
.nrg-field select:hover,
.nrg-field textarea:hover { border-bottom-color: rgba(250, 250, 247, 0.45); }
.nrg-field input:focus,
.nrg-field select:focus,
.nrg-field textarea:focus { border-bottom-color: var(--accent); }
.nrg-field textarea { resize: vertical; min-height: 120px; }
.nrg-field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) center, calc(100% - 6px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 28px; }

.nrg-field__error {
    display: none;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #ff4d4d;
    margin-top: 6px;
    letter-spacing: 0.04em;
}
.nrg-field--error .nrg-field__error { display: block; }
.nrg-field--error input,
.nrg-field--error select,
.nrg-field--error textarea {
    border-bottom-color: #ff4d4d;
}
.nrg-form__status {
    display: none;
    padding: 14px 16px;
    border: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 13px;
    margin-top: 16px;
}
.nrg-form__status--success {
    display: block;
    border-color: var(--accent);
    color: var(--paper);
    background: rgba(46, 107, 230, 0.08);
}
.nrg-form__status--error {
    display: block;
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.nrg-contact__aside {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-self: start;
}
.nrg-meta {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}
.nrg-meta__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
}
.nrg-meta__row dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--paper);
}
.nrg-contact__note { color: var(--muted); margin: 0; font-size: 14px; }

@media (max-width: 900px) {
    .nrg-contact__grid { grid-template-columns: 1fr; gap: 48px; }
    .nrg-form__row { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------- */
.nrg-foot {
    padding: 96px 0 48px;
    border-top: 1px solid var(--rule);
}
.nrg-foot__top {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 64px;
    margin-bottom: 64px;
}
.nrg-foot__mark {
    display: inline-flex;
    align-items: center;
    color: var(--paper);
    text-decoration: none;
    transition: opacity 150ms ease;
}
.nrg-foot__mark img {
    height: 64px;
    width: auto;
    display: block;
}
.nrg-foot__mark:hover { opacity: 0.75; }
.nrg-foot__tag { color: var(--muted); margin: 12px 0 0; max-width: 28ch; }
.nrg-foot__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.nrg-foot__cols ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.nrg-foot__cols a { color: var(--paper); text-decoration: none; font-size: 15px; transition: color 150ms ease; }
.nrg-foot__cols a:hover { color: var(--accent); }
.nrg-foot__bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-top: 48px;
    color: var(--muted);
    font-size: 14px;
}
@media (max-width: 768px) {
    .nrg-foot__top { grid-template-columns: 1fr; gap: 48px; }
    .nrg-foot__cols { grid-template-columns: repeat(2, 1fr); }
    .nrg-foot__bottom { flex-direction: column; align-items: start; gap: 8px; }
}
