:root {
    --bg: #f6f7f9;
    --panel: #fff;
    --text: #17191d;
    --muted: #667085;
    --line: #d9dde5;
    --accent: #4f46e5;
    --accent2: #0f172a;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(15,23,42,.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    padding-top: 74px;
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    width: min(1160px,calc(100% - 40px));
    margin: auto;
}

.narrow {
    width: min(860px,100%);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 20;
    background: rgba(246,247,249,.92);
    border-bottom: 1px solid rgba(217,221,229,.8);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--accent2);
    color: #fff;
}

.nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
}

.nav a {
    color: #414651;
    text-decoration: none;
    font-weight: 650;
    font-size: .95rem;
}

.nav a:hover {
    color: var(--accent);
}

.login-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 10px 15px;
    font-weight: 700;
    cursor: pointer;
}

.hero {
    padding: 92px 0 72px;
    background: radial-gradient(circle at 75% 20%,rgba(79,70,229,.14),transparent 30%),linear-gradient(180deg,#fff,var(--bg));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.45fr .75fr;
    gap: 64px;
    align-items: center;
}

.eyebrow,
.section-kicker {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .76rem;
    font-weight: 850;
    color: var(--accent);
}

h1 {
    font-size: clamp(3rem,7vw,6.5rem);
    line-height: .96;
    letter-spacing: -.065em;
    margin: .16em 0 .25em;
}

h1 span {
    color: var(--accent);
}

h2 {
    font-size: clamp(2rem,4vw,3.4rem);
    line-height: 1.06;
    letter-spacing: -.045em;
    margin: .2em 0 .5em;
}

h3 {
    margin: .2em 0 .35em;
    line-height: 1.2;
}

.lead {
    font-size: 1.28rem;
    color: #4a5160;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 34px 0 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
}

.btn.primary {
    background: var(--accent2);
    color: #fff;
}

.btn.primary:hover {
    background: #26334a;
}

.btn.secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
}

.btn.full {
    width: 100%;
    margin-top: 8px;
}

.disclaimer,
.source-note,
.form-note {
    font-size: .88rem;
    color: var(--muted);
}

.hero-card,
.info-card,
.callout,
.form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 28px;
}

.hero-card .status {
    display: inline-block;
    background: #eef2ff;
    color: #3730a3;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
}

.hero-card ul {
    padding-left: 20px;
}

.section {
    padding: 88px 0;
}

.section.dark {
    background: var(--accent2);
    color: #fff;
}

.section.dark .section-kicker {
    color: #a5b4fc;
}

.section.muted {
    background: #eef1f5;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-top: 36px;
}

.info-card {
    padding: 24px;
}

.timeline {
    margin-top: 44px;
    border-left: 1px solid #40506a;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 0 0 34px 30px;
    position: relative;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -7px;
    top: 7px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #a5b4fc;
}

.timeline-item .year {
    font-weight: 900;
    color: #c7d2fe;
}

.timeline-item p {
    color: #c3cad6;
}

.split {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 48px;
    align-items: start;
}

.callout {
    padding: 28px;
}

.callout strong {
    font-size: 1.4rem;
}

.callout a {
    font-weight: 800;
    color: var(--accent);
}

details {
    border-top: 1px solid #ccd2dc;
    padding: 20px 0;
}

details:last-child {
    border-bottom: 1px solid #ccd2dc;
}

summary {
    font-weight: 850;
    cursor: pointer;
}

.contact {
    background: #fff;
}

.form-card {
    padding: 26px;
}

.form-card label,
#loginForm label {
    display: block;
    font-weight: 750;
    margin-bottom: 14px;
}

.form-card input,
.form-card textarea,
#loginForm input {
    width: 100%;
    margin-top: 6px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

.form-card input:focus,
.form-card textarea:focus,
#loginForm input:focus {
    outline: 2px solid rgba(79,70,229,.18);
    border-color: var(--accent);
}

code {
    background: #eef1f5;
    padding: .15em .35em;
    border-radius: 6px;
}

.footer {
    padding: 42px 0;
    background: #0b1220;
    color: #d7deea;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer p {
    color: #9da9ba;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
}

.modal.open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8,12,20,.62);
}

.modal-panel {
    position: relative;
    width: min(430px,calc(100% - 32px));
    margin: 10vh auto;
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.modal-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    background: none;
    font-size: 2rem;
    cursor: pointer;
    color: #667085;
}

@media(max-width:850px) {
    .nav {
        display: none;
    }
    .hero-grid,
    .split,
    .info-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding-top: 64px;
    }
    .hero-grid {
        gap: 30px;
    }
    .section {
        padding: 64px 0;
    }
    .timeline-item {
        grid-template-columns: 80px 1fr;
    }
}

@media(max-width:520px) {
    body {
        padding-top: 64px;
    }

    html {
        scroll-padding-top: 62px;
    }
    .container {
        width: min(100% - 26px,1160px);
    }
    .brand span:last-child {
        display: none;
    }
    .header-inner {
        min-height: 64px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    h1 {
        font-size: 3.3rem;
    }
}

/* Dynamic background slider: every image in /slider is added automatically by index.php. */
.background-slideshow {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #111;
}

.background-slide {
    position: absolute;
    inset: -3%;
    width: 106%;
    height: 106%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
    transform: translate3d(0,0,0) scale(1.015);
    transition: clip-path 1.35s cubic-bezier(.7,0,.2,1),transform 1.35s cubic-bezier(.7,0,.2,1),opacity .18s ease;
    will-change: clip-path,transform,opacity;
    backface-visibility: hidden;
    z-index: 0;
}

.background-slide.active {
    opacity: 1;
    clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
    transform: translate3d(0,0,0) scale(1);
    z-index: 1;
}

.background-slide.leaving {
    opacity: 1;
    clip-path: polygon(99.2% 0,100.8% 0,100.2% 100%,98.6% 100%);
    transform: translate3d(.4%,0,0) scale(1.005);
    z-index: 2;
}

main,
.footer {
    position: relative;
    z-index: 1;
}

body {
    background: transparent!important;
}

.hero {
    background: radial-gradient(circle at 75% 20%,rgba(79,70,229,.08),transparent 30%),linear-gradient(180deg,rgba(255,255,255,.20),rgba(246,247,249,.28))!important;
}

.section:not(.dark):not(.muted):not(.contact) {
    background: rgba(246,247,249,.68)!important;
}

.section.muted {
    background: rgba(238,241,245,.78)!important;
}

.contact {
    background: rgba(255,255,255,.82)!important;
}

.powered-by {
    grid-column: 1/-1;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #9da9ba;
}

.pajagrowth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 850;
    letter-spacing: .02em;
}

.pajagrowth-brand:hover {
    color: #9da9ba;
    text-decoration: none;
}

.pajagrowth-brand img {
    width: 110px;
    height: 58px;
    object-fit: contain;
    display: block;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease;
}

.contact-link:hover {
    color: #8a8f98;
    text-decoration: none;
}

.contact-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--text);
    text-decoration: none;
    transition: opacity .18s ease;
    justify-content: center;
}

.contact-brand:hover {
    transform: none;
    box-shadow: none;
    opacity: .82;
}

.contact-brand img {
    width: 300px;
    height: 156px;
    object-fit: contain;
    display: block;
}

.contact-brand strong {
    display: block;
    font-size: 1.2rem;
}

.contact-brand span {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

@media(max-width:850px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-brand {
        justify-content: center;
    }
}

@media(max-width:520px) {
    .contact-brand {
        flex-direction: column;
        text-align: center;
    }
    .contact-brand img {
        width: 260px;
        height: 136px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .background-slide {
        transition: opacity .35s ease;
        clip-path: none!important;
        transform: none!important;
    }
    .background-slide.leaving {
        opacity: 0;
    }
}

/* Hero foreground text on the transparent/light background. */
.hero .eyebrow,
.hero h1,
.hero h1 span,
.hero .lead,
.hero .disclosure-intro {
    color: #000;
}

/* Expanded homepage disclosure below the hero actions. */
.disclosure {
    margin-top: 32px;
    max-width: 760px;
    border-left: 4px solid #fff;
    padding-left: 18px;
}

.disclosure .disclaimer {
    margin: 0;
    font-size: 1.056rem;
    font-weight: 500;
    line-height: 1.55;
}

.disclosure-details {
    margin-top: 8px;
    padding: 0;
    border: 0;
}

.disclosure-details:last-child {
    border-bottom: 0;
}

.disclosure-details summary {
    display: inline-block;
    color: var(--accent2);
    font-size: .9rem;
    font-weight: 850;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.disclosure-body {
    margin-top: 14px;
    padding: 16px 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(23,25,29,.14);
    border-radius: 12px;
    font-size: .86rem;
    color: var(--text);
    text-shadow: 0 1px 2px rgba(255,255,255,.85);
}

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

.disclosure-body p:last-child {
    margin-bottom: 0;
}

.disclosure-body a {
    color: var(--accent2);
    font-weight: 800;
}

.disclosure-brand {
    display: flex;
    justify-content: center;
    margin: 2px 0 14px;
}

.disclosure-brand img {
    display: block;
    width: 177px;
    height: auto;
    max-height: 99px;
    object-fit: contain;
}

.disclosure-contact-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Hero fills the visible page below the sticky header.
   It stays in normal block flow; no flex centring is used. */
main > .hero {
    min-height: 0;
    display: block;
    padding-top: 64px;
    padding-bottom: 72px;
}

/* Content sections below the hero retain the full-screen rhythm. */
main > .section {
    min-height: calc(100svh - 74px);
    display: flex;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

/* Contact is intentionally half-height. */
main > .section.contact {
    min-height: 50svh;
    padding-top: 36px;
    padding-bottom: 36px;
}

main > .hero > .container,
main > .section > .container {
    width: min(1160px, calc(100% - 40px));
}

/* Alternate the existing neutral palette more strongly without changing
   typography, cards, buttons or the overall visual language. */
main > section:nth-of-type(2) {
    background: rgba(246,247,249,.88) !important;
}

main > section:nth-of-type(3) {
    background: rgba(226,230,236,.90) !important;
}

main > section:nth-of-type(4) {
    background: rgba(15,23,42,.96) !important;
}

main > section:nth-of-type(5) {
    background: rgba(255,255,255,.88) !important;
}

main > section:nth-of-type(6) {
    background: rgba(232,235,240,.90) !important;
}

main > section:nth-of-type(7) {
    background: rgba(218,223,230,.90) !important;
}

main > section:nth-of-type(8) {
    background: rgba(255,255,255,.90) !important;
}

/* The expanded timeline needs room to breathe while retaining the
   vertically centred section treatment. */
#timeline .timeline {
    width: min(960px, 100%);
}

#timeline .timeline-item:last-child {
    padding-bottom: 0;
}

.source-links a {
    color: var(--accent2);
    font-weight: 800;
    text-underline-offset: 3px;
}

@media (max-width: 850px) {
    main > .hero {
        min-height: 0;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    main > .section {
        min-height: calc(100svh - 64px);
        padding-top: 56px;
        padding-bottom: 56px;
    }

    main > .section.contact {
        min-height: 50svh;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    main > .hero > .container,
    main > .section > .container {
        width: min(100% - 26px, 1160px);
    }
}


/* Performance + hero readability fixes, 2026-09-14. */
.hero-grid > div:first-child {
    color: #000;
}

.hero .eyebrow,
.hero h1,
.hero h1 span,
.hero .lead,
.hero .disclosure,
.hero .disclosure-intro,
.hero .disclosure-details summary,
.hero .disclosure-body {
    color: #000;
}

/* Avoid rasterising every oversized slider layer during first paint. */
.background-slide {
    inset: 0;
    width: 100%;
    height: 100%;
    will-change: auto;
}

.background-slide.active,
.background-slide.leaving {
    will-change: clip-path, transform, opacity;
}

/* Skip layout/paint work for below-the-fold sections until they approach the viewport. */
main > .section {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

@media (max-width: 850px) {
    main > .hero {
        padding-top: 42px;
        padding-bottom: 48px;
    }
}

/* HERO final visual overrides — 2026-09-14 */
:root {
    --hero-blue: #4f46e5;
}

/* One identical blue for the eyebrow, transition arrow and disclosure border. */
.hero .eyebrow,
.hero h1 > span {
    color: var(--hero-blue) !important;
    -webkit-text-fill-color: var(--hero-blue) !important;
}

.hero .disclosure {
    border-left: 4px solid #fff;
}

/* Keep only the disclosure copy dark, as requested. */
.hero .disclosure-intro,
.hero .disclosure-details summary,
.hero .disclosure-body {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Full viewport hero below the 74px sticky header. No image/JS changes. */
main > .hero {
    min-height: calc(100svh - 74px) !important;
    position: relative;
    display: flex !important;
    align-items: center;
    isolation: isolate;
}

/* Darker curtain using the existing Energy Technology dark colour. */
main > .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    pointer-events: none;
    z-index: 0;
}

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

@media (max-width: 850px) {
    main > .hero {
        min-height: calc(100svh - 74px) !important;
    }
}
