/*
    Consolidated styles for Wondervault Games
    Based on Solid State by HTML5 UP (html5up.net | @ajlkn)
    Combined with UX improvements
*/

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    -webkit-text-size-adjust: none;
}

mark {
    background-color: transparent;
    color: inherit;
}

input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input, select, textarea {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

@-ms-viewport {
    width: device-width;
}

body {
    -ms-overflow-style: scrollbar;
}

@media screen and (max-width: 480px) {
    html, body {
        min-width: 320px;
    }
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* ==========================================================================
   1.5. FONT FALLBACKS (FOUT optimization)
   Matches Arial metrics to Montserrat to minimize layout shift during font swap.
   Values calculated using @capsizecss methodology.
   ========================================================================== */

@font-face {
    font-family: 'Montserrat Fallback';
    src: local('Arial');
    size-adjust: 112.2%;
    ascent-override: 85%;
    descent-override: 22%;
    line-gap-override: 0%;
}

body {
    background-color: #2e3141;
    background-image: linear-gradient(to top, rgba(46, 49, 65, 0.8), rgba(46, 49, 65, 0.8)), url("../../images/bg.jpg");
    background-size: auto, cover;
    background-attachment: fixed, fixed;
    background-position: center, center;
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after {
    -moz-animation: none !important;
    -webkit-animation: none !important;
    -ms-animation: none !important;
    animation: none !important;
    -moz-transition: none !important;
    -webkit-transition: none !important;
    -ms-transition: none !important;
    transition: none !important;
}

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

body, input, select, textarea {
    color: #ffffff;
    font-family: "Montserrat", "Montserrat Fallback", Arial, Helvetica, sans-serif;
    font-size: 16.5pt;
    font-weight: 200;
    line-height: 1.65;
}

@media screen and (max-width: 1680px) {
    body, input, select, textarea {
        font-size: 13pt;
    }
}

@media screen and (max-width: 1280px) {
    body, input, select, textarea {
        font-size: 12pt;
    }
}

@media screen and (max-width: 980px) {
    body, input, select, textarea {
        font-size: 12pt;
    }
}

@media screen and (max-width: 736px) {
    body, input, select, textarea {
        font-size: 12pt;
    }
}

@media screen and (max-width: 480px) {
    body, input, select, textarea {
        font-size: 12pt;
    }
}

a {
    -moz-transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
    -webkit-transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
    -ms-transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
    transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
    border-bottom: dotted 1px rgba(255, 255, 255, 0.35);
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    border-bottom-color: transparent;
    color: #ffffff !important;
}

a.special:not(.button) {
    text-decoration: none;
    border-bottom: 0;
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 0 2em 0;
    text-transform: uppercase;
}

a.special:not(.button):before {
    -moz-transition: background-color 0.2s ease-in-out;
    -webkit-transition: background-color 0.2s ease-in-out;
    -ms-transition: background-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
    border-radius: 100%;
    border: solid 2px rgba(255, 255, 255, 0.125);
    content: '\2192';
    display: inline-block;
    font-size: 1.25em;
    height: 2em;
    line-height: 1.75em;
    margin-right: 0.85em;
    text-align: center;
    text-indent: 0.15em;
    vertical-align: middle;
    width: 2em;
}

a.special:not(.button):hover:before {
    background-color: rgba(255, 255, 255, 0.025);
}

a.special:not(.button):active:before {
    background-color: rgba(255, 255, 255, 0.075);
}

a.special:not(.button) img {
    vertical-align: middle;
    height: 2.4em;
    margin-left: 0.3em;
}

strong, b {
    color: #ffffff;
    font-weight: 400;
}

em, i {
    font-style: italic;
}

p {
    margin: 0 0 2em 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin: 0 0 1em 0;
    text-transform: uppercase;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 0;
}

h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
    font-weight: 200;
}

h1.major, h2.major, h3.major, h4.major, h5.major, h6.major {
    padding-bottom: 1em;
    border-bottom: solid 2px rgba(255, 255, 255, 0.125);
}

h2 {
    font-size: 1.2em;
}

h3 {
    font-size: 0.9em;
}

h4, h5, h6 {
    font-size: 0.7em;
}

@media screen and (max-width: 736px) {
    h2 {
        font-size: 1em;
    }
    h3 {
        font-size: 0.8em;
    }
}

sub {
    font-size: 0.8em;
    position: relative;
    top: 0.5em;
}

sup {
    font-size: 0.8em;
    position: relative;
    top: -0.5em;
}

hr {
    border: 0;
    border-bottom: solid 2px rgba(255, 255, 255, 0.125);
    margin: 2.5em 0;
}

hr.major {
    margin: 4em 0;
}

.align-left {
    text-align: left;
}

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

.align-right {
    text-align: right;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    -moz-transition: background-color 0.2s ease-in-out;
    -webkit-transition: background-color 0.2s ease-in-out;
    -ms-transition: background-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
    background-color: transparent;
    border-radius: 5px;
    border: 0;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.125);
    color: #ffffff !important;
    cursor: pointer;
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    height: 3.75em;
    letter-spacing: 0.1em;
    line-height: 3.75em;
    padding: 0 2.25em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
    background-color: rgba(255, 255, 255, 0.025);
}

input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
button:active,
.button:active {
    background-color: rgba(255, 255, 255, 0.075);
}

input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary,
.button.primary {
    background-color: #4c5c96;
    box-shadow: none;
}

input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover,
.button.primary:hover {
    background-color: #53639e;
}

input[type="submit"].primary:active,
input[type="reset"].primary:active,
input[type="button"].primary:active,
button.primary:active,
.button.primary:active {
    background-color: #45558d;
}

input[type="submit"].disabled, input[type="submit"]:disabled,
input[type="reset"].disabled, input[type="reset"]:disabled,
input[type="button"].disabled, input[type="button"]:disabled,
button.disabled, button:disabled,
.button.disabled, .button:disabled {
    opacity: 0.25;
}

@media screen and (max-width: 480px) {
    input[type="submit"],
    input[type="reset"],
    input[type="button"],
    button,
    .button {
        padding: 0;
    }
}

@media screen and (max-width: 736px) {
    .button {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   4. CONTACT LIST
   ========================================================================== */

ul.contact {
    list-style: none;
    padding: 0;
}

ul.contact li {
    text-decoration: none;
    margin: 2.5em 0 0 0;
    padding: 0 0 0 3.25em;
    position: relative;
}

ul.contact li:first-child {
    margin-top: 0;
}

@media screen and (max-width: 736px) {
    ul.contact li {
        margin: 1.5em 0 0 0;
    }
}

/* Contact item with inline SVG icons */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2em 0 0 0;
    padding: 0;
}

.contact-item:first-child {
    margin-top: 0;
}

.contact-item .icon {
    width: 2em;
    height: 2em;
    fill: currentColor;
    flex-shrink: 0;
    opacity: 0.7;
    margin-top: 0.2em;
}

.contact-item .icon-content {
    flex: 1;
}

/* ==========================================================================
   5. COPYRIGHT
   ========================================================================== */

ul.copyright {
    border-top: solid 2px rgba(255, 255, 255, 0.125);
    list-style: none;
    margin: 4em 0 2em 0;
    padding: 2em 0 0 0;
    width: 100%;
}

ul.copyright li {
    border-left: solid 2px rgba(255, 255, 255, 0.125);
    color: rgba(255, 255, 255, 0.35);
    display: inline-block;
    font-size: 0.9em;
    line-height: 1;
    margin-left: 1em;
    padding: 0;
    padding-left: 1em;
}

ul.copyright li:first-child {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
}

ul.copyright li a {
    color: inherit;
}

@media screen and (max-width: 480px) {
    ul.copyright li {
        border-left: 0;
        display: block;
        margin: 1em 0 0 0;
        padding-left: 0;
    }
    ul.copyright li:first-child {
        margin-top: 0;
    }
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */

#header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 55em;
    margin: 0 auto;
    padding: 16px 24px;
}

/* Header logo */
.header-logo {
    display: flex;
    align-items: center;
    border-bottom: none;
    flex-shrink: 0;
}

.header-logo:hover {
    border-bottom: none;
}

.header-logo img {
    height: 90px;
    width: auto;
    /* Fix alpha blending - ensure transparent PNG renders correctly */
    background: transparent !important;
    mix-blend-mode: normal;
    image-rendering: -webkit-optimize-contrast;
}

.header-logo {
    margin-right: 0.5em;
}

/* Header title */
.header-title {
    font-size: 1.5em;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
    padding-left: 0.25em;
}

/* Navigation bar - always positioned at right */
.nav-bar {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-left: auto;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: none;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #ff69b4;
    border-bottom: none;
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.6);
}

.nav-item.active {
    color: #ff69b4;
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

.nav-item svg {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
}

/* Header variant for nav-only (homepage) */
.header--nav-only {
    justify-content: flex-end;
}

/* Focus states for navigation */
.nav-item:focus {
    outline: 3px solid #db5399;
    outline-offset: 3px;
}

.nav-item:focus-visible {
    outline: 3px solid #db5399;
    outline-offset: 3px;
}

.header-logo:focus {
    outline: 3px solid #db5399;
    outline-offset: 3px;
}

.header-logo:focus-visible {
    outline: 3px solid #db5399;
    outline-offset: 3px;
}

/* Responsive header */
@media screen and (max-width: 980px) {
    #header {
        padding: 16px 24px;
    }
}

@media screen and (max-width: 736px) {
    #header {
        padding: 12px 16px;
    }

    .header-logo img {
        height: 72px;
    }

    .header-title {
        font-size: 1.1em;
        padding-left: 0.25em;
    }

    .nav-bar {
        gap: 1em;
    }

    .nav-item {
        font-size: 0.75em;
    }

    .nav-item svg {
        width: 1em;
        height: 1em;
    }
}

@media screen and (max-width: 620px) {
    #header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75em;
    }

    .header-logo {
        margin-right: 0;
    }

    .header-title {
        flex: 0 0 auto;
        text-align: center;
    }

    .nav-bar {
        flex: 1 0 100%;
        justify-content: center;
        order: 3;
    }
}

@media screen and (max-width: 480px) {
    .header-title {
        font-size: 0.9em;
        letter-spacing: 0.05em;
    }

    .nav-bar {
        gap: 0.75em;
    }

    .nav-item {
        font-size: 0.7em;
        gap: 0.3em;
    }
}

/* ==========================================================================
   7. BANNER
   ========================================================================== */

#banner {
    padding: 5em 0 4.75em 0;
}

#banner .content h1 {
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#banner .content p {
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
}

#banner .inner {
    margin: 0 auto;
    width: 55em;
    display: flex;
    align-items: center;
    justify-content: center;
}

#banner .logo {
    -moz-transition: opacity 2s ease, -moz-transform 1s ease;
    -webkit-transition: opacity 2s ease, -webkit-transform 1s ease;
    -ms-transition: opacity 2s ease, -ms-transform 1s ease;
    transition: opacity 2s ease, transform 1s ease;
    -moz-transform: translateY(0);
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
    margin: 0;
    min-height: 193px;  /* ADD: Reserve space (200px * 386/400 = 193px) */
}

#banner .logo > img {
    width: 200px;
    height: auto;  /* ADD: Preserve aspect ratio from HTML attributes */
}

#banner .content {
    padding-left: 1em;
}

#banner h2 {
    -moz-transition: opacity 0.5s ease, -moz-transform 0.5s ease, -moz-filter 0.25s ease;
    -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease, -webkit-filter 0.25s ease;
    -ms-transition: opacity 0.5s ease, -ms-transform 0.5s ease, -ms-filter 0.25s ease;
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.25s ease;
    -moz-transform: translateX(0);
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    -moz-transition-delay: 0.65s;
    -webkit-transition-delay: 0.65s;
    -ms-transition-delay: 0.65s;
    transition-delay: 0.65s;
    -moz-filter: blur(0);
    -webkit-filter: blur(0);
    -ms-filter: blur(0);
    filter: blur(0);
    opacity: 1;
    border-bottom: solid 2px rgba(255, 255, 255, 0.125);
    font-size: 2.25em;
    margin-bottom: 0.4em;
}

#banner p {
    -moz-transition: opacity 0.5s ease, -moz-transform 0.5s ease, -moz-filter 0.25s ease;
    -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease, -webkit-filter 0.25s ease;
    -ms-transition: opacity 0.5s ease, -ms-transform 0.5s ease, -ms-filter 0.25s ease;
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.25s ease;
    -moz-transform: translateX(0);
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    -moz-transition-delay: 0.8s;
    -webkit-transition-delay: 0.8s;
    -ms-transition-delay: 0.8s;
    transition-delay: 0.8s;
    -moz-filter: blur(0);
    -webkit-filter: blur(0);
    -ms-filter: blur(0);
    filter: blur(0);
    opacity: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 200;
    letter-spacing: 0.1em;
    line-height: 2;
    text-transform: uppercase;
}

@media screen and (max-width: 1280px) {
    #banner {
        padding: 7em 0 8.25em 0;
        background-color: #2e3141;
        background-image: linear-gradient(to top, rgba(46, 49, 65, 0.8), rgba(46, 49, 65, 0.8)), url("../../images/bg.jpg");
        background-size: auto, cover;
        background-position: center, center;
        margin-bottom: -6.5em;
    }
    /* Increase min-height to accommodate 7em + 8.25em padding + content */
    #banner .inner {
        min-height: 650px !important;  /* !important to override general rule at line 1481 */
    }
}

@media screen and (max-width: 980px) {
    #banner {
        padding: 12em 3em 12.375em 3em;
        margin-bottom: -4.75em;
    }
    #banner .inner {
        width: 100%;
        min-height: 400px !important;  /* Override general rule */
    }
}

@media screen and (max-width: 736px) {
    #banner {
        padding: 5em 2em 4.25em 2em;
        margin-bottom: -2.5em;
    }
    #banner .inner {
        min-height: 500px !important;  /* Override general rule */
    }
    #banner .logo {
        margin: 0 0 1em 0;
        min-height: 145px;  /* 150px * 386/400 = 144.75px, rounded up */
    }
    #banner h2 {
        font-size: 1.5em;
    }
    #banner p {
        font-size: 0.8em;
    }
}

@media screen and (max-width: 480px) {
    #banner .logo img {
        margin: auto;
        display: block;
    }
    #banner h2 {
        text-align: center;
    }
    #banner p {
        text-align: center;
    }
    #banner .inner {
        display: inline-block;
    }
}

/* Banner preload animations removed to prevent dual LCP */

/* ==========================================================================
   7. WRAPPER
   ========================================================================== */

.wrapper {
    background-color: #2e3141;
    margin: 6.5em 0;
    position: relative;
}

.wrapper:before, .wrapper:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%232e3141%3B' /%3E%3C/svg%3E");
}

.wrapper:before {
    box-shadow: inset 0 -1px 0 0 #2e3141, 0 1px 0 0 #2e3141;
}

.wrapper:after {
    box-shadow: inset 0 -1px 0 0 #2e3141, 0 1px 0 0 #2e3141;
}

.wrapper:before, .wrapper:after {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    content: '';
    display: block;
    height: 6.5em;
    position: absolute;
    width: 100%;
    contain: layout;
}

.wrapper:before {
    left: 0;
    top: -6.5em;
}

.wrapper:after {
    -moz-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    -ms-transform: scaleY(-1);
    transform: scaleY(-1);
    bottom: -6.5em;
    left: 0;
}

.wrapper.alt:before {
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    transform: scaleX(-1);
}

.wrapper.alt:after {
    -moz-transform: scaleY(-1) scaleX(-1);
    -webkit-transform: scaleY(-1) scaleX(-1);
    -ms-transform: scaleY(-1) scaleX(-1);
    transform: scaleY(-1) scaleX(-1);
}

.wrapper .inner {
    padding: 3em 0 1em 0;
    margin: 0 auto;
    width: 55em;
}

/* Wrapper Style 1 (default dark) */
.wrapper.style1 {
    background-color: #2e3141;
}

.wrapper.style1:before, .wrapper.style1:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%232e3141%3B' /%3E%3C/svg%3E");
}

/* Wrapper Style 3 (medium dark) */
.wrapper.style3 {
    background-color: #3d4051;
}

.wrapper.style3:before, .wrapper.style3:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%233d4051%3B' /%3E%3C/svg%3E");
}

.wrapper.style3:before {
    box-shadow: inset 0 -1px 0 0 #3d4051, 0 1px 0 0 #3d4051;
}

.wrapper.style3:after {
    box-shadow: inset 0 -1px 0 0 #3d4051, 0 1px 0 0 #3d4051;
}

/* Spotlight wrapper */
.wrapper.spotlight {
    background-color: #9F2B68;
}

.wrapper.spotlight:before, .wrapper.spotlight:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%239F2B68%3B' /%3E%3C/svg%3E");
}

.wrapper.spotlight:before {
    box-shadow: inset 0 -1px 0 0 #9F2B68, 0 1px 0 0 #9F2B68;
}

.wrapper.spotlight:after {
    box-shadow: inset 0 -1px 0 0 #9F2B68, 0 1px 0 0 #9F2B68;
}

.wrapper.spotlight .inner {
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -moz-align-items: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -moz-flex-direction: row;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
}

.wrapper.spotlight .image {
    border-radius: 5%;
    margin: 0 3em 2em 0;
    width: 22em;
    overflow: hidden;
    -ms-flex: 1;
}

.wrapper.spotlight .image img {
    border-radius: 5%;
    width: 100%;
}

.wrapper.spotlight .content {
    width: 100%;
    -ms-flex: 2;
}

.wrapper.spotlight:nth-child(2n - 1) .inner {
    -moz-flex-direction: row-reverse;
    -webkit-flex-direction: row-reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    text-align: right;
}

.wrapper.spotlight:nth-child(2n - 1) .image {
    margin: 0 0 2em 3em;
}

/* Spotlight left-align modifier - overrides alternation pattern */
.wrapper.spotlight.spotlight--left-align .inner {
    flex-direction: row;
    text-align: left;
}

.wrapper.spotlight.spotlight--left-align:nth-child(2n - 1) .inner {
    flex-direction: row;
    text-align: left;
}

.wrapper.spotlight.spotlight--left-align .content {
    text-align: left;
}

.wrapper.spotlight.spotlight--left-align .content h2,
.wrapper.spotlight.spotlight--left-align .content h3,
.wrapper.spotlight.spotlight--left-align .content p {
    text-align: left;
}

/* Spotlight style3 - orange accent */
.wrapper.spotlight.style3 {
    background-color: #c86501;
}

.wrapper.spotlight.style3:before, .wrapper.spotlight.style3:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%23c86501%3B' /%3E%3C/svg%3E");
}

.wrapper.spotlight.style3:before {
    box-shadow: inset 0 -1px 0 0 #c86501, 0 1px 0 0 #c86501;
}

.wrapper.spotlight.style3:after {
    box-shadow: inset 0 -1px 0 0 #c86501, 0 1px 0 0 #c86501;
}

@media screen and (max-width: 980px) {
    .wrapper {
        margin: 4.75em 0;
    }
    .wrapper:before, .wrapper:after {
        height: 4.75em;
    }
    .wrapper:before {
        top: -4.75em;
    }
    .wrapper:after {
        bottom: -4.75em;
        left: 0;
    }
    .wrapper .inner {
        padding: 3em 3em 1em 3em;
        width: 100%;
    }
}

@media screen and (max-width: 736px) {
    .wrapper {
        margin: 2.5em 0;
    }
    .wrapper:before, .wrapper:after {
        height: 2.5em;
    }
    .wrapper:before {
        top: -2.5em;
    }
    .wrapper:after {
        bottom: -2.5em;
        left: 0;
    }
    .wrapper .inner {
        padding: 2em 2em 0.1em 2em;
    }
    .wrapper.spotlight .image {
        margin: 0 1.5em 2em 0;
        width: 15em;
    }
    .wrapper.spotlight:nth-child(2n - 1) .image {
        margin: 0 0 2em 1.5em;
    }
}

/* First wrapper after header (dreamwright page) - reduced top spacing */
main#wrapper > .wrapper:first-child {
    margin-top: 3.25em;
}

main#wrapper > .wrapper:first-child:before {
    height: 3.25em;
    top: -3.25em;
}

@media screen and (max-width: 980px) {
    main#wrapper > .wrapper:first-child {
        margin-top: 2.375em;
    }
    main#wrapper > .wrapper:first-child:before {
        height: 2.375em;
        top: -2.375em;
    }
}

@media screen and (max-width: 736px) {
    main#wrapper > .wrapper:first-child {
        margin-top: 1.25em;
    }
    main#wrapper > .wrapper:first-child:before {
        height: 1.25em;
        top: -1.25em;
    }
}

/* ==========================================================================
   8. FEATURES
   ========================================================================== */

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3em;
    margin-top: 2em;
    width: 100%;
}

@media screen and (min-width: 480px) {
    .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.features article {
    padding: 1.75em 1.75em 0.1em 1.75em;
    background-color: #353849;
    border-radius: 5px;
}

.features > article {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.features article .image {
    border-radius: 5px 5px 0 0;
    display: block;
    margin-bottom: 1.75em;
    position: relative;
}

.features article .image img {
    border-radius: 5px 5px 0 0;
    width: 100%;
}

@media screen and (max-width: 736px) {
    .features article {
        padding: 1.5em 1.5em 0.1em 1.5em;
    }
}

@media screen and (max-width: 480px) {
    .features {
        display: block;
    }
    .features article {
        width: 100%;
        margin: 0 0 2em 0 !important;
    }
    .features li {
        margin-bottom: 2em;
        padding-bottom: 1.5em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .features li:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
}

/* Feature image in list */
.features .feature-image {
    width: 70%;
    max-width: 220px;
    margin: -3em auto -2em;
}

.features .feature-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

#footer .inner {
    padding: 2.5em 0 3em 0;
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -moz-flex-direction: row;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -moz-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 55em;
}

#footer .inner > * {
    width: 100%;
}

#footer .inner .contact {
    width: calc(50% - 1.5em);
}

#footer .inner .copyright {
    border-top: solid 2px rgba(255, 255, 255, 0.125);
    list-style: none;
    margin: 4em 0 2em 0;
    padding: 2em 0 0 0;
    width: 100%;
}

#footer .inner .copyright li {
    border-left: solid 2px rgba(255, 255, 255, 0.125);
    color: rgba(255, 255, 255, 0.35);
    display: inline-block;
    font-size: 0.9em;
    line-height: 1;
    margin-left: 1em;
    padding: 0;
    padding-left: 1em;
}

#footer .inner .copyright li:first-child {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
}

#footer .inner .copyright li a {
    color: inherit;
}

@media screen and (max-width: 1280px) {
    #footer {
        background-color: #2e3141;
        background-image: linear-gradient(to top, rgba(46, 49, 65, 0.8), rgba(46, 49, 65, 0.8)), url("../../images/bg.jpg");
        background-size: auto, cover;
        background-position: center, center;
        margin-top: -6.5em;
        padding-top: 6.5em;
    }
}

@media screen and (max-width: 980px) {
    #footer {
        margin-top: -4.75em;
        padding-top: 4.75em;
    }
    #footer .inner {
        padding: 3em 3em 1em 3em;
        display: block;
        width: 100%;
    }
    #footer .inner .contact {
        width: 100%;
        margin: 0 0 4em 0;
    }
    #footer .inner .copyright {
        margin: 4em 0 2em 0;
    }
}

@media screen and (max-width: 736px) {
    #footer {
        margin-top: -2.5em;
        padding-top: 2.5em;
    }
    #footer .inner {
        padding: 2em 2em 0.1em 2em;
    }
    #footer .inner .contact {
        margin: 0 0 3em 0;
    }
}

@media screen and (max-width: 480px) {
    #footer .inner .copyright li {
        border-left: 0;
        display: block;
        margin: 1em 0 0 0;
        padding-left: 0;
    }
    #footer .inner .copyright li:first-child {
        margin-top: 0;
    }
}

@media screen and (max-width: 360px) {
    #footer .inner {
        padding: 2em 1.5em 0.1em 1.5em;
    }
}

/* ==========================================================================
   10. UTILITY CLASSES
   ========================================================================== */

.inline {
    display: inline-block;
}

.color-highlight-dark {
    color: #db5399;
    font-weight: 600;
}

.color-highlight {
    color: #9F2B68;
    font-weight: 400;
}

.thin {
    font-weight: 100;
}

/* ==========================================================================
   11. HERO SECTION (from improvements.css)
   ========================================================================== */

.hero-title {
    font-size: 2.5em !important;
    line-height: 1.3;
    margin-bottom: 0.8em !important;
    border-bottom: none !important;
}

.hero-company {
    display: block;
    font-size: 1.2em;
    margin-bottom: 0.2em;
}

.hero-tagline {
    display: block;
    font-size: 0.5em;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.3em;
}

.hero-description {
    font-size: 1.1em !important;
    line-height: 1.6 !important;
    margin-bottom: 2em !important;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2em;
    align-self: center;
}

.cta-buttons .button {
    min-width: 180px;
    padding: 0.9em 2.5em;
    font-size: 0.9em;
    text-align: center;
    border: solid 2px rgba(255, 255, 255, 0.125);
    background-color: transparent;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-buttons .button:hover {
    background-color: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-buttons .button.primary {
    background-color: #db5399;
    border-color: #db5399;
    color: #ffffff;
}

.cta-buttons .button.primary:hover {
    background-color: #e76bad;
    border-color: #e76bad;
    box-shadow: 0 4px 16px rgba(219, 83, 153, 0.4);
}

/* Banner layout improvements */
#banner .inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5em;
    max-width: 55em;
    /* Reserve total vertical space for all banner content to prevent CLS */
    min-height: 450px;
}

#banner .logo {
    flex-shrink: 0;
    margin: 0 !important;
    /* Explicit height for logo container (200px logo + any container padding) */
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#banner .logo img {
    width: 200px;
    height: auto;
    background-color: transparent !important;
    image-rendering: -webkit-crisp-edges;
    image-rendering: crisp-edges;
    mix-blend-mode: normal;
    /* Explicit max-height to prevent logo from expanding container */
    max-height: 200px;
}

#banner .content {
    flex: 1;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    /* Reserve minimum height for content to prevent shift during font load */
    min-height: 220px;
}

@media screen and (max-width: 980px) {
    #banner .inner {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5em;
        /* Adjust reserved height for tablet */
        min-height: 400px;
    }
    #banner .content {
        align-items: center;
        text-align: center;
        min-height: 200px;
    }
    .cta-buttons {
        align-self: center;
    }
}

/* ==========================================================================
   12. ACCESSIBILITY
   ========================================================================== */

/* Better contrast for secondary text */
.status-text,
.definition-label {
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
}

/* Status updates with better visibility */
.status-update {
    background-color: rgba(46, 49, 65, 0.6);
    border-left: 4px solid #db5399;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    border-radius: 4px;
    font-size: 0.9em;
    box-shadow: 0 0 20px rgba(219, 83, 153, 0.15);
}

.status-update strong {
    color: #f082c1;
    font-weight: 600;
}

.status-update .status-headline {
    font-size: 1.15em;
}

/* Orange accent variant */
.status-update--orange {
    border-left-color: #c86501;
    box-shadow: 0 0 20px rgba(200, 101, 1, 0.15);
}

.status-update--orange strong {
    color: #e8a54b;
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
.button:focus {
    outline: 3px solid #db5399;
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
    outline: 3px solid #db5399;
    outline-offset: 3px;
}

/* Skip to content link - accessible navigation */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: white;
    padding: 12px 24px;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: bold;
    transition: top 0.2s ease;
    border-bottom: none;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .hero-tagline,
    .status-text {
        color: #ffffff;
    }
    .button {
        border-width: 3px;
    }
}

/* Print styles */
@media print {
    .scroller,
    .cta-buttons {
        display: none;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ==========================================================================
   13. MOBILE RESPONSIVENESS
   ========================================================================== */

@media screen and (max-width: 736px) {
    .hero-title {
        font-size: 1.8em !important;
    }
    .hero-company {
        font-size: 1em;
    }
    .hero-tagline {
        font-size: 0.55em;
    }
    .hero-description {
        font-size: 0.95em !important;
        margin-bottom: 1.5em !important;
    }
    #banner .inner {
        /* Adjust reserved height for mobile */
        min-height: 500px;
    }
    #banner .logo {
        /* Logo container height for 150px logo */
        height: 150px;
    }
    #banner .logo img {
        width: 150px !important;
        max-height: 150px;
    }
    #banner .content {
        min-height: 280px;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    .cta-buttons .button {
        width: 100%;
        min-height: 44px;
        padding: 1em 2em;
        font-size: 0.85em;
    }
    .team-card {
        margin-bottom: 3em;
    }
    .team-card .image {
        display: block;
        margin-bottom: 1.5em;
    }
    .team-card h3 {
        font-size: 1em !important;
        line-height: 1.4;
    }
    .team-bio {
        font-size: 0.9em;
        line-height: 1.6;
    }
    .team-card .special {
        min-height: 44px;
        padding: 0.8em 0;
        display: inline-block;
        font-size: 0.85em;
    }
    .team-card .special img {
        vertical-align: middle;
        padding-bottom: 8px;
    }
    .status-update {
        font-size: 0.85em;
        padding: 0.7em 1em;
    }
    .contact li {
        padding: 1.2em 0;
        min-height: 44px;
    }
    .status-update {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .status-update .status-text {
        text-align: center;
    }
    .status-update .button {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.5em !important;
    }
    .hero-tagline {
        font-size: 0.5em;
    }
    .cta-buttons .button {
        font-size: 0.8em;
    }
    #banner .inner {
        /* Adjust reserved height for smallest screens */
        min-height: 450px;
    }
    #banner .logo {
        /* Logo container height for 120px logo */
        height: 120px;
    }
    #banner .logo img {
        width: 120px !important;
        max-height: 120px;
    }
    #banner .content {
        min-height: 260px;
    }
}

@media screen and (min-width: 737px) and (max-width: 980px) {
    .cta-buttons {
        justify-content: center;
    }
    .cta-buttons .button {
        min-width: 200px;
    }
}

/* ==========================================================================
   14. PERFORMANCE
   ========================================================================== */

img {
    transition: opacity 0.3s ease;
}

/* Placeholder background for lazy-loaded images only */
img[loading="lazy"]:not(.loaded) {
    background-color: rgba(255, 255, 255, 0.05);
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

#banner.loading .inner {
    opacity: 0.5;
}

#logo {
    max-width: 100%;
    height: auto;
    will-change: transform, opacity;
}

.animate-flicker,
.hero-title,
.hero-description,
.cta-buttons {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* ==========================================================================
   15. WRAPPER CONTENT SPACING
   ========================================================================== */

.wrapper.spotlight .content {
    padding: 3em 0 1em 0;
}

@media screen and (max-width: 980px) {
    .wrapper.spotlight .content {
        padding: 3em 0 1em 0;
    }
}

/* ==========================================================================
   16. DEFINITION SECTION
   ========================================================================== */

.definition {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #fb8d00;
    padding: 1em;
    margin: 1em 0 2em 0;
    border-radius: 4px;
    font-size: 0.8em;
    display: block;
}

.definition .large {
    color: #ffc04c;
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.definition p {
    margin-bottom: 0.5em;
}

/* ==========================================================================
   17. TEAM CARDS
   ========================================================================== */

.team-card {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card .image {
    display: inline-block !important;
    width: auto !important;
    max-width: 100%;
    margin-bottom: 1.5em;
    float: none !important;
}

.team-card .image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
}

@media screen and (max-width: 480px) {
    .team-card img {
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   18. COPYRIGHT (from improvements.css)
   ========================================================================== */

.copyright {
    margin-top: 3em;
    padding-top: 2em;
    border-top: solid 1px rgba(255, 255, 255, 0.125);
    opacity: 0.7;
    font-size: 0.85em;
}

/* ==========================================================================
   19. NO-MASKING OVERRIDES
   ========================================================================== */

.wrapper.spotlight .image.no-masking {
    border-radius: 0;
    width: 100%;
}

.wrapper.spotlight .image.no-masking img {
    border-radius: 0;
    width: 100%;
}

.wrapper.spotlight .inner.no-masking {
    text-align: left;
}

.wrapper.spotlight .image.no-masking {
    margin: 0;
}

/* ==========================================================================
   20. IMAGE CAROUSEL
   ========================================================================== */

.carousel-container {
    position: relative;
    width: 100%;
    margin: 2em 0;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.carousel-link:hover {
    cursor: pointer;
}

.carousel-link:focus {
    outline: 3px solid #db5399;
    outline-offset: -3px;
}

/* Dots Indicator */
.carousel-dots {
    position: absolute;
    bottom: 1.5em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8em;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: #db5399;
    border-color: #db5399;
    transform: scale(1.3);
}

.carousel-dot:focus {
    outline: 2px solid #db5399;
    outline-offset: 2px;
}

@media screen and (max-width: 736px) {
    .carousel-dots {
        bottom: 1em;
    }
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* Status update with inline button */
.status-update {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.status-update .status-text {
    flex: 1 1 auto;
    text-align: left;
}

.status-update .button {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media screen and (max-width: 980px) {
    .status-update {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   21. SECTION THREE - "OUR WAYS" LAYOUT
   ========================================================================== */

#three .inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#three .inner > .content {
    width: 100%;
    padding: 1em 0 1em 0;
}

#three .content picture {
    display: block;
    width: 100%;
    max-width: 617px;
}

#three .content .main-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5%;
    object-fit: contain;
}

#one .content .main-image {
    border-radius: 5%;
    max-width: 100%;
}

#one .content .main-image img {
    border-radius: 5%;
    max-width: 100%;
}

@media screen and (min-width: 737px) {
    #three .inner {
        display: flex;
        flex-direction: row;
        gap: 3em;
        align-items: flex-start;
    }
    #three .inner > .content:first-child {
        flex: 1;
        max-width: none;
        display: flex;
        flex-direction: column;
        gap: 0.5em;
    }
    #three .inner > .content:last-child {
        flex: 1;
        max-width: none;
    }
    #three .content picture {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    #three .content .main-image {
        display: block;
        width: 100%;
        height: auto;
        margin: 0;
        border-radius: 5%;
        object-fit: contain;
    }
    #three .content .definition {
        width: 100%;
        margin: 0;
    }
}

/* ==========================================================================
   22. DEVLOG ENTRIES
   ========================================================================== */

/* Devlog section - orange accent wrapper */
#devlog {
    background-color: #c86501;
}

#devlog:before, #devlog:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%23c86501%3B' /%3E%3C/svg%3E");
}

#devlog:before {
    box-shadow: inset 0 -1px 0 0 #c86501, 0 1px 0 0 #c86501;
}

#devlog:after {
    box-shadow: inset 0 -1px 0 0 #c86501, 0 1px 0 0 #c86501;
}

/* Entry structure - 8pt grid spacing */
.devlog-entry {
    padding: 32px;
    margin-top: 64px;
    margin-bottom: 64px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* Entry color theming - alternating pattern: orange, gray, amaranth, gray */
.devlog-entry:nth-child(4n+1) {
    background-color: #9a5000;
}

.devlog-entry:nth-child(4n+2) {
    background-color: rgba(255, 255, 255, 0.05);
}

.devlog-entry:nth-child(4n+3) {
    background-color: rgba(255, 255, 255, 0.05);
}

.devlog-entry:nth-child(4n+4) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Color modifier classes for manual override */
.devlog-entry--orange {
    background-color: #c86501;
}

.devlog-entry--gray {
    background-color: rgba(255, 255, 255, 0.02);
}

.devlog-entry--amaranth {
    background-color: #9F2B68;
}

.devlog-entry:first-child {
    margin-top: 64px;
}

.devlog-entry:last-child {
    margin-bottom: 0;
}

/* Entry header - 8pt grid spacing with separator */
.entry-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.devlog-entry h3 {
    text-transform: none;
    margin-bottom: 8px;
}

.devlog-entry .entry-date {
    display: block;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0;
    margin-bottom: 0;
    cursor: help;
}

/* Enhanced focus indicators for colored backgrounds */
.devlog-entry a:focus,
.devlog-entry button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.devlog-entry a:focus-visible,
.devlog-entry button:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Entry body - 8pt grid spacing */
.devlog-entry .entry-body {
    margin-bottom: 32px;
}

/* Media placeholders container - 8pt grid spacing */
.entry-media {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
}

.entry-media picture {
    width: 60%;
}

@media screen and (max-width: 980px) {
    .entry-media picture {
        width: 100%;
    }
}

.entry-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-image:hover,
.entry-image:focus {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 736px) {
    .entry-media {
        flex-direction: column;
        gap: 16px;
    }

    .devlog-entry {
        padding: 24px;
        margin-top: 48px;
        margin-bottom: 48px;
    }

    .devlog-entry:first-child {
        margin-top: 48px;
    }
}

/* Individual placeholder */
.media-placeholder {
    flex: 1;
    aspect-ratio: 16 / 9;
    background-color: #252736;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.media-placeholder::before {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
}

.media-placeholder.screenshot::before {
    content: "Screenshot coming soon";
}

.media-placeholder.video::before {
    content: "Video coming soon";
}

/* Share section - 8pt grid spacing, centered buttons */
.share-section {
    margin-top: 40px;
    text-align: center;
}

.share-section h4 {
    margin-bottom: 16px;
}

/* Share buttons container - centered */
.share-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Individual share button */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 0.4em 0.8em;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    width: 8em;
    box-sizing: border-box;
    overflow: visible;
}

/* Ensure SVG icons display in buttons */
button.share-btn svg {
    display: inline-block;
    flex-shrink: 0;
}

.share-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    border-bottom: none;
}

/* Platform-specific colors */
.share-btn.share-x {
    background-color: #000000;
}

.share-btn.share-reddit {
    background-color: #FF4500;
}

.share-btn.share-copy {
    background-color: #6c757d;
}

.share-btn.share-facebook {
    background-color: #1877F2;
}

/* Share button SVG icon */
.share-btn svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
    }
}

/* =================================================================
   IMAGE PAIRS - Side by side images
   ================================================================= */

.image-pair {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    margin: 1.5em 0;
}

.image-pair picture {
    width: calc(50% - 0.5em);
    flex-shrink: 0;
}

.image-pair img {
    width: 100%;
    height: auto;
    border-radius: 5%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-pair img:hover,
.image-pair img:focus {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Zoomable images indicator */
.zoomable {
    cursor: zoom-in;
}

/* Loading spinner for zoomable images in picture elements */
picture:has(.zoomable) {
    position: relative;
    display: grid;
    place-items: center;
    background-color: #1a1a1a;
    border-radius: 8px;
    min-height: 200px;
}

picture:has(.zoomable)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -16px;
    margin-left: -16px;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 10;
    animation: gallery-spin 0.8s linear infinite !important;
    animation-duration: 0.8s !important;
    animation-iteration-count: infinite !important;
}

@keyframes gallery-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide spinner when image is loaded */
picture:has(.zoomable.loaded)::before {
    display: none;
}

picture:has(.zoomable.loaded) {
    background-color: transparent;
}

/* Ensure image displays properly within grid */
picture:has(.zoomable) .zoomable {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
}

@media screen and (max-width: 736px) {
    .image-pair {
        flex-direction: column;
        gap: 1em;
    }

    .image-pair picture {
        width: 100%;
    }

    .image-pair img {
        width: 100%;
    }
}

/* ==========================================================================
   LIGHTBOX - GPU-accelerated fullscreen viewer
   ========================================================================== */

#image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    cursor: pointer;

    /* Grid for stacking images in same cell */
    display: grid;
    place-items: center;

    /* GPU acceleration - compositor-only properties */
    opacity: 0;
    visibility: hidden;
    will-change: opacity;
    transform: translateZ(0);

    /* Smooth fade transition */
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

#image-lightbox.visible {
    opacity: 1;
    visibility: visible;
}

/* Loading spinner - shows until image is ready */
#image-lightbox::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: lightbox-spin 0.8s linear infinite;
    z-index: 1;
}

/* Hide spinner when image is ready */
#image-lightbox.loaded::before {
    display: none;
}

@keyframes lightbox-spin {
    to { transform: rotate(360deg); }
}

/* Both images stack in same grid cell */
#lightbox-image,
#lightbox-image-hires {
    grid-area: 1 / 1;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;

    /* GPU acceleration */
    will-change: opacity;
    transform: translateZ(0);
}

/* Low-res layer - fades in when loaded */
#lightbox-image {
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

#lightbox-image.ready {
    opacity: 1;
}

/* High-res layer - sits on top, fades in when loaded */
#lightbox-image-hires {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

#lightbox-image-hires.loaded {
    opacity: 1;
}

/* Reduced motion: instant transitions */
@media (prefers-reduced-motion: reduce) {
    #image-lightbox,
    #lightbox-image,
    #lightbox-image-hires {
        transition: none;
    }
}

/* =================================================================
   MILESTONES - Side by side layout with icons
   ================================================================= */

.milestones-row {
    display: flex;
    gap: 2em;
}

.milestone-column {
    flex: 1;
    min-width: 0;
}

.milestone-list {
    list-style: none;
    padding-left: 0;
}

.milestone-list li {
    position: relative;
    padding-left: 2em;
    margin-bottom: 0.75em;
}

.milestone-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    line-height: inherit;
}

/* Completed milestones - check icon */
.milestone-list--completed li::before {
    content: "✓";
    color: #4ade80;
    font-weight: bold;
    font-size: 1.1em;
}

/* Upcoming milestones - clock/upcoming icon */
.milestone-list--upcoming li::before {
    content: "◷";
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4em;
    top: -0.3em;
}

/* Highlight the next/first upcoming milestone */
.milestone-next {
    background: linear-gradient(90deg, rgba(200, 101, 1, 0.3) 0%, transparent 100%);
    padding: 0.5em 0.75em 0.5em 2em !important;
    margin-left: -0.75em;
    border-left: 3px solid #c86501;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
}

.milestone-next::before {
    content: "▶" !important;
    color: #c86501 !important;
    left: 0.75em !important;
    font-size: 1em !important;
    top: 0.6em !important;
}

@media screen and (max-width: 736px) {
    .milestones-row {
        flex-direction: column;
        gap: 1em;
    }
}

/* =================================================================
   STORY - Optimized reading panel for narrative text
   Based on best practices from Smashing Magazine, Toptal, and IxDF
   ================================================================= */

/* Story header - centered and prominent */
.story-header {
    text-align: center !important;
    margin-top: 3em;
    margin-bottom: 0.75em;
}

/* Story CTA button */
.story-cta {
    text-align: center;
    margin: 2em 0 3em 0;
    padding-bottom: 3em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.story-cta .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #db5399;
    border-color: #db5399;
    color: #ffffff;
    font-weight: 600;
    padding: 1em 2.5em;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.story-cta .button:hover {
    background-color: #e76bad;
    border-color: #e76bad;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(219, 83, 153, 0.4);
}

.story {
    /* Container: constrain width on large screens only */
    max-width: 65ch;
    padding: 2.5em 2.5em 1.5em 2.5em;
    margin: 1.5em auto;

    /* Subtle background for reading focus */
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 199, 227, 0.4);

    /* Typography: humanist sans-serif for screen reading */
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-weight: 300;

    /* Fluid typography: scales from 0.9em at 320px to 1.05em at 1200px */
    font-size: clamp(0.9em, 0.85em + 0.25vw, 1.05em);

    /* Line height 1.8 reduces reading fatigue */
    line-height: 1.8;

    /* Softened white for reduced eye strain */
    color: rgba(255, 255, 255, 0.92);

    /* Subtle text rendering improvements */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.story p {
    /* Generous paragraph spacing for visual breathing room */
    margin-bottom: 1.5em;
    text-indent: 0;
}

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

/* Emphasis: italics for internal thoughts and emphasis */
.story em,
.story i {
    font-style: italic;
    color: rgba(255, 220, 240, 0.95);
}

/* Bold: key moments and dramatic emphasis */
.story strong,
.story b {
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.01em;
}

/* Final line styling - memorable closing */
.story p:last-child strong {
    font-size: 1.02em;
}

/* Medium screens: tablet portrait */
@media screen and (max-width: 980px) {
    .story {
        max-width: none;
        padding: 2em 2em 1.25em 2em;
        margin: 1.25em 0;
    }
}

/* Small screens: large phones */
@media screen and (max-width: 736px) {
    .story {
        padding: 1.5em 1.25em 1em 1.25em;
        line-height: 1.7;
        margin: 1em 0;
        border-radius: 6px;
    }

    .story p {
        margin-bottom: 1.2em;
    }
}

/* Very small screens: ensure 40+ chars per line */
@media screen and (max-width: 480px) {
    .story {
        padding: 1.25em 1em 0.85em 1em;
        line-height: 1.65;
        border-left-width: 2px;
    }

    .story p {
        margin-bottom: 1em;
    }

    /* Allow CTA buttons to wrap text on very small screens */
    .status-update .button {
        white-space: normal;
        height: auto;
        line-height: 1.4;
        padding: 0.8em 1.5em;
    }
}

/* Minimum width: prevent extreme squishing */
@media screen and (max-width: 360px) {
    .story {
        padding: 1em 0.85em 0.75em 0.85em;
        font-size: 0.88em;
        line-height: 1.6;
    }
}
