* {
    box-sizing: border-box;
}

:root {
    --blue: #acd8f5;
    --black: #050505;
    --panel: #101214;
    --panel-soft: #181b1e;
    --text: #f5f5f5;
    --muted: #a7adb1;
    --line: rgba(255, 255, 255, 0.14);
    --gold: #ffcc00;
    --ink: #2c3235;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background: var(--black);
}

body.site-page {
    position: relative;
    overflow-x: hidden;
}

body.site-page.has-background {
    background: var(--black);
}

body.site-page.has-background.has-rendered-motion {
    background: var(--black);
}

.background-image-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #050505;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 1;
    filter: saturate(1.12) contrast(1.08);
}

.background-image-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.04)),
        linear-gradient(180deg, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.16));
}

body.has-rendered-motion .background-image-layer {
    opacity: 0.94;
    filter: saturate(1.08) contrast(1.02);
}

body.has-rendered-motion .background-image-layer::after {
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.08)),
        linear-gradient(180deg, rgba(5, 5, 5, 0.04), rgba(5, 5, 5, 0.2));
}

.motion-background {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.72;
    mix-blend-mode: screen;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

code {
    color: var(--gold);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.start-stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--black);
    overflow: hidden;
}

.blacktie-intro {
    position: relative;
    width: min(980px, calc(100vw - 48px));
    height: min(340px, calc(100vh - 48px));
    min-height: 320px;
    transform: scale(0.42);
    transform-origin: center;
}

.power-button {
    position: absolute;
    left: 5%;
    top: 50%;
    width: min(21%, 190px);
    height: auto;
    transform: translateY(-50%);
}

.divider {
    position: absolute;
    left: 34%;
    top: 50%;
    width: 2px;
    height: 280px;
    transform: translateY(-50%);
}

.intro-copy {
    position: absolute;
    left: 40%;
    top: 50%;
    width: 54%;
    transform: translateY(-50%);
}

.intro-copy h1 {
    margin: 0;
    color: #ffffff;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: clamp(36px, 2.9vw, 48px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

.blacktie-name {
    margin: 28px 0 0;
    color: #ffffff;
    font-family: "Helvetica 107 Extra Black Condensed Oblique", "Arial Black", Impact, Arial, Helvetica, sans-serif;
    font-size: clamp(108px, 8.4vw, 136px);
    font-style: italic;
    font-weight: 900;
    line-height: 0.62;
    letter-spacing: 0;
}

.blacktie-name span:last-child {
    color: var(--gold);
}

.intro-text {
    max-width: 840px;
    margin: 34px 0 0;
    color: #687983;
    font-family: "Frucade Small", "Lucida Console", Monaco, monospace;
    font-size: clamp(22px, 1.72vw, 28px);
    font-weight: 700;
    line-height: 1.45;
    text-transform: uppercase;
}

.intro-text span {
    color: var(--gold);
}

.enter-actions {
    display: flex;
    gap: 34px;
    margin-top: 36px;
}

.flash-button,
.button {
    display: inline-grid;
    place-items: center;
    min-height: 44px;
    border: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.flash-button {
    width: 280px;
    min-height: 58px;
    color: #c9c9c9;
    background: var(--ink);
    font: 700 22px/1 "Frucade Small", "Lucida Console", Monaco, monospace;
    text-transform: uppercase;
}

.flash-button:hover,
.flash-button:focus {
    color: #ffffff;
    background: #252b2e;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px clamp(18px, 4vw, 54px);
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.62);
    backdrop-filter: blur(10px);
}

body.has-background .site-header {
    background: rgba(5, 5, 5, 0.46);
}

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

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-orb {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    background: url("../assets/logo/logo-frame-2.png") center / contain no-repeat;
}

.site-brand strong,
.site-brand small {
    display: block;
}

.site-brand strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
}

.site-brand strong span:nth-child(2) {
    color: var(--gold);
}

.site-brand small {
    margin-top: 4px;
    color: var(--muted);
    font: 11px/1 "Lucida Console", Monaco, monospace;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.header-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.site-nav a,
.filter-nav a {
    border: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
}

.site-nav a {
    padding: 9px 13px;
    font-size: 13px;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active,
.filter-nav a:hover,
.filter-nav a:focus,
.filter-nav a.is-active {
    color: #ffffff;
    border-color: rgba(255, 204, 0, 0.75);
}

.background-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    background: rgba(16, 18, 20, 0.72);
}

.background-select {
    width: 156px;
    height: 29px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: #050505;
    color: #ffffff;
    font: 12px/1 Arial, Helvetica, sans-serif;
}

.background-swatch {
    width: 27px;
    height: 27px;
    display: block;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background-color: #111111;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}

.background-swatch:hover,
.background-swatch:focus,
.background-swatch.is-active {
    border-color: var(--gold);
    outline: 0;
}

.background-swatch.is-active {
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.26);
}

.home-hero,
.page,
.page-band,
.site-footer {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.home-hero {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 620px);
    align-content: center;
    justify-content: center;
    justify-items: center;
    padding: clamp(42px, 7vh, 72px) 0;
    text-align: center;
}

.logo-swf-stage {
    position: relative;
    width: min(550px, 100%);
    aspect-ratio: 550 / 400;
    overflow: hidden;
    background: #ffffff;
}

.home-logo-mark {
    width: min(210px, 52vw);
    aspect-ratio: 1;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

.home-logo-mark .logo-orb {
    left: 50%;
    top: 0;
    width: 86%;
    opacity: 0.92;
    transform: translateX(-50%);
}

.home-logo-mark .logo-wordmark {
    left: 50%;
    top: 43%;
    width: 92%;
    text-align: center;
    transform: translateX(-50%);
    font-size: clamp(13px, 1.55vw, 18px);
}

.home-logo-mark .logo-tagline {
    left: 0;
    top: 58%;
    width: 100%;
    text-align: center;
    font-size: 10px;
}

.logo-orb {
    position: absolute;
    left: 6.3%;
    top: 3.1%;
    width: 64.36%;
    aspect-ratio: 1;
    background-image: url("../assets/logo/logo-frame-2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    animation: logo-orb-cycle 1.4s steps(1) infinite;
}

.logo-wordmark {
    position: absolute;
    left: 25.1%;
    top: 33.7%;
    margin: 0;
    color: #ffffff;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: clamp(22px, 6.6vw, 38px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
    white-space: nowrap;
}

.logo-wordmark span:nth-child(2) {
    color: var(--gold);
}

.logo-tagline {
    position: absolute;
    left: 32.3%;
    top: 52.3%;
    margin: 0;
    color: #ffffff;
    font: 12px/1 "kroeger 0853", "Lucida Console", Monaco, monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.hero-copy {
    max-width: 620px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(5, 5, 5, 0.82);
    box-shadow: 0 18px 64px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.hero-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3.8vw, 46px);
    line-height: 1.06;
    letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
    max-width: 520px;
    margin: 16px auto 0;
    font-size: 15px;
}

.page-title h1,
.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 3.2vw, 44px);
    line-height: 1.04;
    letter-spacing: 0;
}

.hero-copy p,
.page-title p,
.content-card p,
.service-list p,
.portfolio-card p,
.site-footer p {
    color: var(--muted);
    line-height: 1.65;
}

.eyebrow,
.meta {
    margin: 0 0 12px;
    color: var(--gold);
    font: 700 12px/1 "Lucida Console", Monaco, monospace;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.button {
    padding: 12px 18px;
    background: #252b2e;
    color: #ffffff;
    font-weight: 700;
}

.button.primary {
    background: var(--gold);
    color: #111111;
}

.button:hover,
.button:focus {
    filter: brightness(1.08);
}

.page {
    min-height: calc(100vh - 76px);
    padding: 38px 0 46px;
}

.page-title {
    max-width: 780px;
    margin-bottom: 30px;
    padding: 28px 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(5, 5, 5, 0.58);
    backdrop-filter: blur(5px);
}

.page-title p {
    font-size: 19px;
}

.page-band {
    padding: 50px 0;
    border-top: 1px solid var(--line);
}

.page-band.split {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 42px;
}

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

.card-grid,
.portfolio-grid {
    display: grid;
    gap: 18px;
}

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

.card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card,
.work-card,
.portfolio-card,
.service-list article,
.archive-table article {
    border: 1px solid var(--line);
    background: rgba(16, 18, 20, 0.82);
}

body.has-background .content-card,
body.has-background .work-card,
body.has-background .portfolio-card,
body.has-background .service-list article,
body.has-background .archive-table article,
body.has-background .contact-form input,
body.has-background .contact-form textarea,
body.has-background .form-message {
    background: rgba(16, 18, 20, 0.66);
    backdrop-filter: blur(6px);
}

.content-card,
.service-list article {
    padding: 22px;
}

.content-card h2,
.service-list h2,
.service-list h3,
.portfolio-card h2,
.work-card h3,
.archive-table h2 {
    margin: 0 0 10px;
    color: #ffffff;
    line-height: 1.15;
}

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

.service-list.compact {
    grid-template-columns: 1fr;
}

.work-card {
    overflow: hidden;
}

.work-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #222222;
}

.work-card div {
    padding: 18px;
}

.filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-nav a {
    padding: 10px 12px;
    font-size: 13px;
}

.filter-nav span {
    margin-left: 6px;
    color: var(--gold);
}

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

.portfolio-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-image {
    display: block;
    background: #202020;
}

.portfolio-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.portfolio-card-body {
    padding: 16px;
}

.portfolio-card .topic {
    color: #ffffff;
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.card-links a,
.archive-table a {
    color: var(--gold);
    font-size: 13px;
    text-decoration: none;
}

.archive-table {
    display: grid;
    gap: 10px;
}

.archive-table article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
}

.contact-form {
    max-width: 720px;
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #ffffff;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--panel);
    color: #ffffff;
    padding: 12px;
    font: inherit;
}

.hidden-field {
    position: absolute;
    left: -10000px;
}

.form-message {
    max-width: 720px;
    padding: 12px 14px;
    background: var(--panel-soft);
}

.form-message.ok {
    color: var(--gold);
}

.form-message.error {
    color: #ff9b9b;
}

.legal-copy {
    margin-bottom: 18px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 26px 0 44px;
    border-top: 1px solid var(--line);
}

.site-footer a {
    color: var(--gold);
    text-decoration: none;
}

@keyframes logo-orb-cycle {
    0%, 8.99% { background-image: url("../assets/logo/logo-frame-2.png"); }
    9%, 17.99% { background-image: url("../assets/logo/logo-frame-4.png"); }
    18%, 26.99% { background-image: url("../assets/logo/logo-frame-7.png"); }
    27%, 35.99% { background-image: url("../assets/logo/logo-frame-9.png"); }
    36%, 44.99% { background-image: url("../assets/logo/logo-frame-11.png"); }
    45%, 53.99% { background-image: url("../assets/logo/logo-frame-13.png"); }
    54%, 62.99% { background-image: url("../assets/logo/logo-frame-15.png"); }
    63%, 71.99% { background-image: url("../assets/logo/logo-frame-17.png"); }
    72%, 80.99% { background-image: url("../assets/logo/logo-frame-19.png"); }
    81%, 89.99% { background-image: url("../assets/logo/logo-frame-21.png"); }
    90%, 100% { background-image: url("../assets/logo/logo-frame-23.png"); }
}

@media (max-width: 900px) {
    .site-header,
    .home-hero,
    .page-band.split,
    .card-grid.two,
    .card-grid.three,
    .portfolio-grid,
    .service-list {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .header-tools {
        width: 100%;
        justify-content: flex-start;
    }

    .home-hero {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .start-stage {
        padding: 24px 16px;
    }

    .blacktie-intro {
        width: min(360px, calc(100vw - 32px));
        height: auto;
        min-height: 520px;
    }

    .power-button {
        left: 50%;
        top: 0;
        width: min(170px, 62vw);
        transform: translateX(-50%);
    }

    .divider {
        display: none;
    }

    .intro-copy {
        left: 0;
        top: 210px;
        width: 100%;
        transform: none;
        text-align: center;
    }

    .intro-copy h1 {
        font-size: 30px;
    }

    .blacktie-name {
        margin-top: 18px;
        font-size: 78px;
    }

    .intro-text {
        margin-right: auto;
        margin-left: auto;
        font-size: 18px;
    }

    .enter-actions {
        justify-content: center;
    }

    .flash-button {
        width: 250px;
    }

    .archive-table article {
        grid-template-columns: 1fr;
    }
}
