:root {
    --epc-bg: #040a14;
    --epc-bg-2: #07111f;
    --epc-panel: rgba(10, 22, 34, 0.9);
    --epc-panel-2: rgba(15, 28, 44, 0.86);
    --epc-line: rgba(201, 164, 76, 0.24);
    --epc-line-strong: rgba(201, 164, 76, 0.52);
    --epc-gold: #c9a44c;
    --epc-gold-2: #e6c778;
    --epc-ivory: #f5f0e6;
    --epc-muted: #aeb6c2;
    --epc-soft: #d5d9df;
    --epc-green: #22c55e;
    --epc-blue: #3b82f6;
    --epc-red: #ef4444;
    --epc-max: 1200px;
    --epc-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 70% 8%, rgba(201, 164, 76, 0.08), transparent 34%),
        linear-gradient(180deg, #020711 0%, var(--epc-bg) 45%, #02060e 100%);
    color: var(--epc-ivory);
    font-family: Inter, "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1280px, calc(100% - 64px));
    min-height: 76px;
    margin: 0 auto;
    padding: 14px 0;
    border-bottom: 1px solid var(--epc-line);
    background: rgba(3, 8, 16, 0.86);
    box-shadow: 0 0 0 100vmax rgba(3, 8, 16, 0.86);
    clip-path: inset(0 -100vmax);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    width: clamp(220px, 24vw, 330px);
    height: auto;
}

.brand-mark {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid var(--epc-line-strong);
    background: linear-gradient(145deg, rgba(201, 164, 76, 0.2), rgba(7, 17, 31, 0.84));
    color: var(--epc-gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: inset 0 0 24px rgba(201, 164, 76, 0.08);
}

.brand-copy {
    display: grid;
    gap: 2px;
    text-transform: uppercase;
}

.brand-copy strong {
    color: var(--epc-ivory);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.brand-copy small {
    color: var(--epc-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid transparent;
    color: var(--epc-soft);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.menu a:hover,
.menu a:focus-visible {
    border-color: var(--epc-line-strong);
    color: var(--epc-gold-2);
    outline: none;
}

.home-page {
    background:
        radial-gradient(circle at 74% 18%, rgba(201, 164, 76, 0.08), transparent 28%),
        linear-gradient(180deg, #030914 0%, #06101d 50%, #020711 100%);
}

.home-page + .site-footer {
    display: none;
}

.home-hero {
    position: relative;
    width: min(1360px, calc(100% - 48px));
    margin: 0 auto;
    min-height: auto;
    overflow: hidden;
    background: linear-gradient(180deg, #030914 0%, #06101d 68%, #020711 100%);
}

.home-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: min(760px, calc(100vh - 76px));
    background:
        linear-gradient(90deg, rgba(3, 9, 18, 0.96) 0%, rgba(3, 9, 18, 0.78) 36%, rgba(3, 9, 18, 0.22) 100%),
        linear-gradient(180deg, rgba(3, 9, 18, 0.04) 0%, rgba(3, 9, 18, 0.1) 58%, rgba(3, 9, 18, 1) 100%),
        url("../images/home-page-hero-bg.png") center top / cover no-repeat;
}

.home-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 68% 16%, rgba(201, 164, 76, 0.42) 0 2px, transparent 3px),
        radial-gradient(circle at 74% 32%, rgba(201, 164, 76, 0.42) 0 2px, transparent 3px),
        radial-gradient(circle at 61% 46%, rgba(201, 164, 76, 0.34) 0 2px, transparent 3px),
        linear-gradient(115deg, transparent 0 52%, rgba(201, 164, 76, 0.16) 52.2%, transparent 52.6%),
        linear-gradient(65deg, transparent 0 62%, rgba(201, 164, 76, 0.14) 62.2%, transparent 62.6%);
    opacity: 0.72;
}

.home-hero-inner {
    position: relative;
    width: min(1280px, calc(100% - 72px));
    margin: 0 auto;
    padding: clamp(86px, 11vh, 138px) 0 64px;
}

.home-copy {
    max-width: 690px;
}

.home-copy h1 {
    max-width: 760px;
    font-size: clamp(3rem, 5.9vw, 5.7rem);
    line-height: 1.12;
    letter-spacing: 0.025em;
}

.home-copy h1 span {
    display: block;
}

.home-copy h1 span:last-child {
    color: var(--epc-gold);
}

.home-lede {
    max-width: 540px;
    margin: 32px 0 0;
    color: var(--epc-soft);
    font-size: clamp(1.08rem, 1.55vw, 1.45rem);
    line-height: 1.7;
}

.home-page .hero-actions {
    margin-top: 48px;
}

.home-page .epc-button {
    min-height: 68px;
    min-width: 214px;
    padding: 0 28px;
    border-radius: 6px;
    font-size: 0.98rem;
    letter-spacing: 0.07em;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-top: clamp(56px, 8vh, 84px);
}

.home-feature-card {
    min-height: 448px;
    display: grid;
    grid-template-rows: 104px auto 22px 1fr;
    justify-items: center;
    align-content: start;
    padding: 42px 20px 34px;
    border: 1px solid rgba(230, 199, 120, 0.42);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 16%, rgba(201, 164, 76, 0.11), transparent 34%),
        linear-gradient(180deg, rgba(11, 29, 45, 0.9), rgba(5, 15, 28, 0.92));
    box-shadow: inset 0 0 38px rgba(120, 188, 255, 0.04), 0 26px 70px rgba(0, 0, 0, 0.34);
    text-align: center;
}

.home-feature-card img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(230, 199, 120, 0.22));
}

.home-feature-card h2 {
    max-width: 190px;
    margin: 0;
    color: var(--epc-ivory);
    font-size: clamp(1.22rem, 1.5vw, 1.52rem);
    line-height: 1.35;
    letter-spacing: 0.035em;
    text-align: center;
    text-transform: uppercase;
}

.gold-rule {
    display: block;
    width: 36px;
    height: 1px;
    margin-top: 18px;
    background: var(--epc-gold);
}

.home-feature-card p {
    max-width: 190px;
    margin: 18px 0 0;
    color: var(--epc-soft);
    font-size: 0.98rem;
    line-height: 1.62;
}

.home-motto {
    position: relative;
    width: min(1360px, calc(100% - 48px));
    min-height: 250px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    padding: 48px 24px 80px;
    border-top: 1px solid rgba(201, 164, 76, 0.18);
    background:
        linear-gradient(180deg, rgba(4, 10, 20, 0.9), rgba(3, 8, 16, 0.98)),
        url("../images/home-page-hero-bg.png") center bottom / cover no-repeat;
    overflow: hidden;
}

.home-motto::before,
.home-motto::after {
    content: "";
    position: absolute;
    top: 64px;
    width: min(38vw, 440px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 76, 0.86));
}

.home-motto::before {
    right: calc(50% + 74px);
}

.home-motto::after {
    left: calc(50% + 74px);
    transform: scaleX(-1);
}

.motto-shield {
    position: absolute;
    top: 28px;
    left: 50%;
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    transform: translateX(-50%);
}

.motto-shield img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.home-motto p {
    margin: 78px 0 0;
    color: var(--epc-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2.2vw, 2.1rem);
    letter-spacing: 0.24em;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
}

.hero {
    position: relative;
    min-height: 78vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--epc-line);
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 10, 20, 0.98) 0%, rgba(4, 10, 20, 0.72) 48%, rgba(4, 10, 20, 0.28) 100%),
        url("../images/epc-command-bg.png") center / cover no-repeat;
    transform: scale(1.02);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 35%, rgba(201, 164, 76, 0.18) 0 1px, transparent 2px),
        linear-gradient(120deg, transparent 0 42%, rgba(201, 164, 76, 0.2) 42.2%, transparent 42.5%),
        linear-gradient(75deg, transparent 0 57%, rgba(201, 164, 76, 0.18) 57.2%, transparent 57.5%);
    background-size: 160px 160px, 100% 100%, 100% 100%;
    opacity: 0.72;
}

.hero-content,
.content-band,
.page-shell {
    width: min(var(--epc-max), calc(100% - 36px));
    margin-right: auto;
    margin-left: auto;
}

.hero-content {
    position: relative;
    padding: 86px 0 110px;
}

.eyebrow,
.asset-category {
    margin: 0 0 12px;
    color: var(--epc-gold-2);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0.04em;
}

h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(3.3rem, 7vw, 6.7rem);
    line-height: 0.98;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3.7vw, 3rem);
    line-height: 1.08;
}

h3 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
}

.hero-tagline {
    max-width: 820px;
    margin: 18px 0 0;
    color: var(--epc-gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.lede {
    max-width: 700px;
    margin: 18px 0 0;
    color: var(--epc-soft);
    font-size: 1.06rem;
}

.hero-actions,
.tool-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-actions {
    margin-top: 28px;
}

.epc-button,
.tool-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--epc-line-strong);
    background: rgba(201, 164, 76, 0.08);
    color: var(--epc-ivory);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.epc-button:hover,
.tool-link:hover {
    border-color: var(--epc-gold-2);
    background: rgba(201, 164, 76, 0.18);
}

.epc-button.is-primary {
    background: linear-gradient(180deg, #d5ad55, #93691f);
    border-color: #dfbd6a;
    color: #07111f;
}

.page-shell {
    padding: 52px 0 80px;
}

.content-band {
    padding: clamp(42px, 6vw, 76px) 0;
    border-bottom: 1px solid var(--epc-line);
}

.two-column,
.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: center;
}

.prose-block {
    color: var(--epc-soft);
    font-size: 1.02rem;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.feature-strip article,
.property-card,
.dashboard-panel,
.systems-principles article,
.about-values article {
    border: 1px solid var(--epc-line);
    background: linear-gradient(180deg, rgba(14, 28, 43, 0.92), rgba(5, 13, 24, 0.9));
    box-shadow: var(--epc-shadow);
}

.feature-strip article {
    min-height: 184px;
    padding: 20px;
}

.feature-icon,
.property-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 16px;
    border: 1px solid var(--epc-line-strong);
    color: var(--epc-gold-2);
    font-size: 1.35rem;
}

.feature-strip p,
.property-card p,
.systems-principles p,
.about-values p {
    color: var(--epc-soft);
}

.section-heading {
    margin-bottom: 24px;
}

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

.property-grid.is-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.property-card {
    min-height: 260px;
    padding: 22px;
}

.asset-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.asset-card h2,
.asset-card h3 {
    font-size: 1.1rem;
    text-transform: none;
}

.asset-card p {
    flex: 1;
    margin: 0;
}

.property-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 4px;
    color: var(--epc-gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.page-intro {
    text-align: center;
}

.page-intro h1,
.page-intro .lede {
    margin-right: auto;
    margin-left: auto;
}

.portfolio-callout,
.principles-strip {
    display: grid;
    border: 1px solid var(--epc-line-strong);
    background: linear-gradient(90deg, rgba(201, 164, 76, 0.12), rgba(7, 17, 31, 0.9));
}

.portfolio-callout {
    gap: 6px;
    padding: 24px;
}

.portfolio-callout strong {
    color: var(--epc-gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-callout p {
    margin: 0;
    color: var(--epc-soft);
}

.principles-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
}

.principles-strip div {
    padding: 22px;
    background: rgba(7, 17, 31, 0.94);
}

.principles-strip span {
    color: var(--epc-gold-2);
    font-size: 0.78rem;
    font-weight: 900;
}

.principles-strip strong {
    display: block;
    margin-top: 6px;
}

.systems-hero h1 {
    max-width: 980px;
}

.systems-principles {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.systems-principles article,
.about-values article {
    padding: 22px;
}

.systems-principles span {
    color: var(--epc-gold-2);
    font-weight: 900;
}

.systems-principles h2,
.about-values h2 {
    margin-top: 18px;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.about-media {
    min-height: 390px;
    display: grid;
    place-items: center;
    border: 1px solid var(--epc-line);
    background:
        linear-gradient(90deg, rgba(4, 10, 20, 0.2), rgba(4, 10, 20, 0.58)),
        url("../images/epc-command-bg.png") center / cover no-repeat;
    box-shadow: var(--epc-shadow);
}

.about-mark {
    color: var(--epc-gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 11vw, 8rem);
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.8);
}

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

.command-console {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    width: min(1460px, calc(100% - 24px));
    margin: 0 auto;
    padding: 20px 0 72px;
    gap: 14px;
}

.command-sidebar,
.command-header,
.quick-actions article,
.dashboard-panel {
    border: 1px solid var(--epc-line);
    background: rgba(7, 17, 31, 0.9);
}

.command-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    min-height: calc(100vh - 112px);
    padding: 18px;
}

.sidebar-brand {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: 24px;
    text-align: center;
}

.command-sidebar nav {
    display: grid;
    gap: 7px;
}

.command-sidebar a {
    padding: 11px 12px;
    border: 1px solid transparent;
    color: var(--epc-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.command-sidebar a:hover {
    border-color: var(--epc-line-strong);
    background: rgba(201, 164, 76, 0.1);
    color: var(--epc-gold-2);
}

.command-main {
    display: grid;
    gap: 14px;
}

.command-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
}

.command-header h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.command-header p:not(.eyebrow),
.command-date span {
    color: var(--epc-soft);
}

.command-date {
    min-width: 160px;
    padding: 15px;
    border: 1px solid var(--epc-line);
    background: rgba(4, 10, 20, 0.7);
}

.command-date span,
.command-date strong {
    display: block;
}

.command-date strong {
    color: var(--epc-gold-2);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.quick-actions article {
    min-height: 112px;
    padding: 18px;
}

.quick-actions span,
.quick-actions strong {
    display: block;
}

.quick-actions span {
    color: var(--epc-gold-2);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.quick-actions strong {
    margin-top: 10px;
}

.command-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 14px;
}

.dashboard-panel {
    padding: 20px;
}

.panel-large {
    grid-row: span 2;
}

.panel-heading {
    margin-bottom: 16px;
}

.property-space-grid,
.health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.property-space-grid div,
.health-grid div,
.workflow-row {
    padding: 12px;
    border: 1px solid rgba(201, 164, 76, 0.14);
    background: rgba(4, 10, 20, 0.48);
}

.property-space-grid strong,
.property-space-grid span,
.health-grid strong,
.health-grid span {
    display: block;
}

.property-space-grid span,
.health-grid span,
.workflow-row small {
    color: var(--epc-muted);
    font-size: 0.82rem;
}

.workflow-stack {
    display: grid;
    gap: 8px;
}

.workflow-row span {
    display: inline-flex;
    margin-top: 8px;
    padding: 2px 8px;
    color: var(--epc-gold-2);
    border: 1px solid rgba(201, 164, 76, 0.22);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.workflow-row small {
    display: block;
    margin-top: 8px;
}

.check-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.check-list li {
    padding-left: 18px;
    position: relative;
    color: var(--epc-soft);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    background: var(--epc-gold);
}

.quick-links-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
    gap: 20px;
    align-items: center;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(18px, 4vw, 56px);
    border-top: 1px solid var(--epc-line);
    color: var(--epc-muted);
    background: #030710;
}

.site-footer div {
    display: grid;
}

.site-footer strong {
    color: var(--epc-ivory);
}

@media (max-width: 1100px) {
    .feature-strip,
    .systems-principles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .command-console,
    .command-layout,
    .quick-links-row,
    .about-hero {
        grid-template-columns: 1fr;
    }

    .command-sidebar {
        position: static;
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .site-header,
    .site-footer,
    .command-header,
    .two-column {
        display: grid;
        grid-template-columns: 1fr;
    }

    .menu {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .hero {
        min-height: 70vh;
    }

    h1 {
        font-size: 3rem;
    }

    .feature-strip,
    .property-grid,
    .property-grid.is-wide,
    .principles-strip,
    .about-values,
    .quick-actions,
    .property-space-grid,
    .health-grid,
    .systems-principles {
        grid-template-columns: 1fr;
    }
}

/* Theme 2 design-intent pages */
.home-page + .site-footer {
    display: block;
}

.design-page {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 34px;
}

.design-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.title-rule {
    display: block;
    width: 150px;
    height: 1px;
    margin: 20px auto;
    background: linear-gradient(90deg, transparent, var(--epc-gold), transparent);
}

.title-rule.left {
    width: 64px;
    margin: 18px 0 22px;
    background: var(--epc-gold);
}

.portfolio-hero {
    position: relative;
    min-height: 360px;
    display: grid;
    align-items: end;
    padding: 78px 0 48px;
    overflow: hidden;
}

.portfolio-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 10, 20, 0.18), rgba(4, 10, 20, 0.98)),
        url("../images/home-page-hero-bg.png") center 36% / cover no-repeat;
    opacity: 0.92;
}

.portfolio-hero h1 {
    max-width: 940px;
    margin: 0 auto;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    line-height: 1.12;
}

.portfolio-hero h1 span,
.contact-copy h1,
.systems-copy h1 {
    color: var(--epc-ivory);
}

.portfolio-hero h1 strong,
.contact-copy h1 strong,
.systems-copy h1 strong,
.systems-cta h2 strong {
    color: var(--epc-gold);
    font-weight: 500;
}

.portfolio-hero p {
    margin: 0;
    color: var(--epc-soft);
    font-size: 1.2rem;
}

.portfolio-grid-section {
    margin-top: -8px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 20px;
    width: min(1080px, 100%);
    margin: 0 auto;
}

.portfolio-card {
    min-height: 230px;
    display: grid;
    justify-items: center;
    align-content: center;
    padding: 24px;
    border: 1px solid rgba(201, 164, 76, 0.38);
    border-radius: 9px;
    background:
        radial-gradient(circle at 50% 0%, rgba(201, 164, 76, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(11, 29, 45, 0.93), rgba(5, 15, 28, 0.94));
    text-align: center;
    box-shadow: var(--epc-shadow);
}

.portfolio-card img {
    width: 112px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 8px;
}

.portfolio-card h2 {
    font-family: Inter, "Open Sans", sans-serif;
    font-size: 1.22rem;
    letter-spacing: 0;
    text-transform: none;
}

.portfolio-card p {
    margin: 6px 0 14px;
    color: var(--epc-muted);
}

.portfolio-card .epc-button,
.portfolio-card .tool-link {
    min-height: 34px;
    min-width: 132px;
    font-size: 0.76rem;
}

.design-callout {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin: 28px auto;
    padding: 24px 34px;
    border: 1px solid rgba(201, 164, 76, 0.45);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(201, 164, 76, 0.08), transparent 22%, transparent 78%, rgba(201, 164, 76, 0.08)),
        rgba(7, 17, 31, 0.82);
}

.design-callout.centered {
    grid-template-columns: 140px minmax(0, 1fr);
    text-align: center;
}

.design-callout img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    justify-self: center;
}

.design-callout h2 {
    color: var(--epc-gold);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    text-transform: uppercase;
}

.design-callout p {
    margin: 8px 0 0;
    color: var(--epc-soft);
    font-size: 1.15rem;
}

.about-design-hero,
.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    min-height: 800px;
    align-items: center;
}

.about-design-copy,
.contact-copy {
    padding: 54px 34px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.about-design-copy h1,
.contact-copy h1 {
    max-width: 760px;
    color: var(--epc-gold);
    font-size: clamp(2.8rem, 4.4vw, 5.4rem);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.about-design-copy p,
.contact-copy p {
    max-width: 520px;
    color: var(--epc-soft);
    font-size: 1.34rem;
    line-height: 1.72;
}

.about-design-media,
.contact-media {
    min-height: 740px;
    border-left: 1px solid rgba(201, 164, 76, 0.16);
    background:
        linear-gradient(90deg, rgba(4, 10, 20, 0.1), rgba(4, 10, 20, 0.34)),
        url("../images/about-page-hero-bg.png") center / cover no-repeat;
}

.about-design-media {
    display: grid;
    place-items: center;
}

.about-media-logo {
    color: var(--epc-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 10vw, 8rem);
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.8);
}

.about-card-grid,
.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 0 0 38px;
}

.design-info-card {
    min-height: 300px;
    display: grid;
    justify-items: center;
    align-content: start;
    padding: 34px 26px;
    border: 1px solid rgba(201, 164, 76, 0.4);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(11, 29, 45, 0.94), rgba(5, 15, 28, 0.95));
    text-align: center;
}

.design-info-card.compact {
    min-height: 230px;
}

.design-info-card img {
    width: 86px;
    height: 76px;
    object-fit: contain;
}

.design-info-card h2 {
    margin-top: 16px;
    color: var(--epc-gold);
    font-size: 1.35rem;
    text-transform: uppercase;
}

.design-info-card p {
    color: var(--epc-soft);
    font-size: 1.02rem;
}

.design-info-card a {
    margin-top: 10px;
    color: var(--epc-gold);
    font-weight: 900;
    text-transform: uppercase;
}

.systems-design-hero {
    min-height: 610px;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(4, 10, 20, 0.98) 0%, rgba(4, 10, 20, 0.74) 37%, rgba(4, 10, 20, 0.08) 100%),
        url("../images/system-page-hero-bg.png") center / cover no-repeat;
}

.systems-copy {
    max-width: 620px;
    padding: 72px 16px;
}

.systems-copy h1 {
    font-size: clamp(2.8rem, 5vw, 5.2rem);
}

.systems-copy p:not(.eyebrow) {
    color: var(--epc-soft);
    font-size: 1.14rem;
    line-height: 1.7;
}

.systems-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0 18px;
}

.system-card {
    min-height: 350px;
    display: grid;
    justify-items: center;
    align-content: start;
    padding: 24px 18px;
    border: 1px solid rgba(201, 164, 76, 0.38);
    border-radius: 8px;
    background: rgba(7, 17, 31, 0.86);
    text-align: center;
}

.system-card span {
    color: var(--epc-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
}

.system-card img {
    width: 80px;
    height: 70px;
    object-fit: contain;
    margin: 20px 0;
}

.system-card h2 {
    font-size: 1.25rem;
    text-transform: uppercase;
}

.system-card i {
    width: 34px;
    height: 1px;
    margin: 16px 0;
    background: var(--epc-gold);
}

.system-card p,
.systems-principle-row p,
.systems-cta p {
    color: var(--epc-soft);
}

.systems-principle-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(201, 164, 76, 0.38);
    border-radius: 8px;
    background: rgba(7, 17, 31, 0.78);
}

.systems-principle-row article {
    padding: 30px 24px;
    text-align: center;
}

.systems-principle-row article + article {
    border-left: 1px solid rgba(201, 164, 76, 0.25);
}

.systems-principle-row img {
    width: 70px;
    height: 62px;
    object-fit: contain;
}

.systems-principle-row h2 {
    margin-top: 16px;
    font-size: 1.28rem;
}

.systems-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
    align-items: center;
    margin: 22px 0 0;
    padding: 28px 34px;
    border: 1px solid rgba(201, 164, 76, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(4, 10, 20, 0.42), rgba(7, 17, 31, 0.92)),
        url("../images/home-page-hero-bg.png") left bottom / 420px auto no-repeat;
}

.systems-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.systems-cta > div:last-child {
    display: grid;
    gap: 12px;
}

.contact-hero {
    min-height: 660px;
}

.contact-copy h1 {
    max-width: 720px;
    color: var(--epc-ivory);
}

.contact-copy h1 strong {
    display: inline;
}

.contact-media {
    min-height: 560px;
}

.contact-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 18px;
}

.contact-form-panel,
.contact-info-panel {
    padding: 28px;
    border: 1px solid rgba(201, 164, 76, 0.38);
    border-radius: 8px;
    background: rgba(7, 17, 31, 0.86);
}

.contact-form-panel h2,
.contact-info-panel h2 {
    color: var(--epc-gold);
    font-size: 1.55rem;
    text-transform: uppercase;
}

.contact-form-panel form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.contact-form-panel label {
    display: grid;
    gap: 8px;
    color: var(--epc-ivory);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-form-panel .full {
    grid-column: 1 / -1;
}

.contact-form-panel input,
.contact-form-panel select,
.contact-form-panel textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(2, 7, 17, 0.58);
    color: var(--epc-ivory);
    font: inherit;
}

.contact-form-panel textarea {
    min-height: 130px;
}

.contact-info-panel {
    display: grid;
    align-content: start;
}

.contact-info-panel div {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(201, 164, 76, 0.2);
}

.contact-info-panel img {
    width: 42px;
    height: 36px;
    object-fit: contain;
}

.contact-info-panel p {
    margin: 0;
    color: var(--epc-soft);
}

.contact-info-panel strong {
    display: block;
    color: var(--epc-ivory);
    text-transform: uppercase;
}

.contact-card-grid {
    margin-top: 18px;
}

.command-page {
    width: min(1360px, calc(100% - 48px));
    margin: 0 auto;
}

.command-hero-band {
    min-height: 250px;
    display: grid;
    align-items: end;
    padding: 50px 260px 36px 260px;
    background:
        linear-gradient(90deg, rgba(4, 10, 20, 0.96), rgba(4, 10, 20, 0.3)),
        url("../images/home-page-hero-bg.png") center 46% / cover no-repeat;
}

.command-hero-band h1 {
    max-width: 900px;
    font-size: clamp(2.6rem, 4.6vw, 4.8rem);
}

.command-hero-band h1 strong,
.command-subhead {
    color: var(--epc-gold);
}

.command-hero-band p {
    max-width: 680px;
    color: var(--epc-soft);
    font-size: 1.15rem;
}

.command-page .command-console {
    width: 100%;
    grid-template-columns: 230px minmax(0, 1fr);
    margin-top: -150px;
}

.command-page .command-sidebar img {
    width: 130px;
    display: block;
    margin: 0 auto 22px;
}

.command-page .command-header h2,
.command-page .dashboard-panel h2 {
    color: var(--epc-ivory);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    text-transform: uppercase;
}

.command-page .quick-actions img {
    width: 54px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
}

.command-page .quick-actions article {
    text-align: center;
}

.command-list {
    display: grid;
    gap: 8px;
}

.command-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(201, 164, 76, 0.12);
    background: rgba(4, 10, 20, 0.38);
}

.command-list strong {
    color: var(--epc-green);
    font-weight: 500;
}

.command-list em {
    color: var(--epc-muted);
    font-style: normal;
}

.dashboard-panel > a {
    display: block;
    margin-top: 12px;
    color: var(--epc-gold);
    text-align: center;
}

.command-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.command-stat-row article {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(201, 164, 76, 0.28);
    background: rgba(7, 17, 31, 0.88);
}

.command-stat-row img {
    width: 58px;
    height: 52px;
    object-fit: contain;
    grid-row: span 3;
}

.command-stat-row span,
.command-stat-row small {
    color: var(--epc-muted);
    text-transform: uppercase;
}

.command-stat-row strong {
    font-size: 2rem;
}

.command-quick-links {
    margin-top: 14px;
}

.site-footer {
    display: block;
    padding: 0;
}

.site-footer .footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
    gap: 36px;
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
    padding: 34px 0 24px;
}

.site-footer .footer-brand {
    display: block;
}

.footer-brand img {
    width: 210px;
    height: auto;
}

.footer-brand p {
    max-width: 350px;
    color: var(--epc-soft);
}

.site-footer .footer-socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    color: var(--epc-gold);
    font-weight: 900;
}

.site-footer .footer-socials span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
}

.site-footer .footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding-top: 78px;
}

.footer-links h2 {
    color: var(--epc-ivory);
    font-family: Inter, "Open Sans", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.site-footer .footer-links div {
    display: block;
}

.footer-links a {
    display: block;
    margin-top: 5px;
    color: var(--epc-soft);
    line-height: 1.25;
}

.footer-links a:hover {
    color: var(--epc-gold);
}

.footer-motto {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
    padding: 24px 0 30px;
    border-top: 1px solid rgba(201, 164, 76, 0.28);
    color: var(--epc-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.6vw, 1.45rem);
    letter-spacing: 0.22em;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .portfolio-grid,
    .about-card-grid,
    .contact-card-grid,
    .systems-card-grid,
    .systems-principle-row,
    .command-stat-row,
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
        width: min(520px, 100%);
        margin-right: auto;
        margin-left: auto;
    }

    .home-feature-card {
        min-height: auto;
        grid-template-rows: auto;
        padding: 30px 24px;
    }

    .about-design-hero,
    .contact-hero,
    .contact-panels,
    .systems-cta,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .about-design-copy,
    .contact-copy {
        padding-right: 0;
        padding-left: 0;
    }

    .about-design-copy h1,
    .contact-copy h1 {
        max-width: 100%;
        font-size: clamp(2.7rem, 7vw, 4.8rem);
    }

    .site-footer .footer-links {
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .command-hero-band {
        padding-right: 24px;
        padding-left: 24px;
    }

    .command-page .command-console {
        margin-top: 0;
    }
}

@media (max-width: 720px) {
    .design-page,
    .command-page {
        width: min(100% - 24px, 1320px);
    }

    .portfolio-grid,
    .about-card-grid,
    .contact-card-grid,
    .systems-card-grid,
    .systems-principle-row,
    .contact-form-panel form,
    .command-stat-row,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .about-design-hero,
    .contact-hero {
        min-height: auto;
    }

    .about-design-media,
    .contact-media {
        min-height: 320px;
    }

    .design-callout,
    .design-callout.centered {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-hero {
        width: min(100% - 24px, 1360px);
    }

    .site-header,
    .home-motto {
        width: min(100% - 24px, 1360px);
    }
}
