@font-face {
    font-family: Univers;
    src: url("fonts/univers-condensed.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Univers;
    src: url("fonts/univers-bold-condensed.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #101010;
    --black: #080808;
    --gold: #f5ae08;
    --gold-light: #ffce54;
    --surface: #f4f4f2;
    --white: #fff;
    --green: #075f4e;
    --header-height: clamp(46px, 3.95vw, 69px);
    --stripe-height: clamp(13px, 2.48vw, 40px);
    --gutter: clamp(18px, 4.75vw, 88px);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; color: var(--ink); font-family: Univers, "Arial Narrow", Arial, sans-serif; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #886000; outline-offset: 5px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    z-index: 30;
    top: 8px;
    left: 8px;
    color: var(--ink);
    background: var(--gold-light);
    padding: .75rem 1rem;
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.event-shell {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    background: var(--surface);
}

.site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    background: url("art/background.webp") center / cover no-repeat, var(--surface);
}

.site-stripe {
    flex: none;
    height: var(--stripe-height);
    background: linear-gradient(90deg, #f5ad07 0 64%, #f7bd37 64% 87.6%, #f8cf6b 87.6%);
}

.site-header {
    position: sticky;
    z-index: 5;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: var(--header-height);
    padding: 0 clamp(13px, 2vw, 40px);
    color: var(--white);
    background: var(--black);
}

.site-header a { text-decoration: none; }
.site-header :focus-visible { outline-color: var(--gold-light); }

.site-home {
    justify-self: start;
    font-size: clamp(1rem, 1.55vw, 1.55rem);
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.site-event {
    display: grid;
    justify-items: center;
    gap: 2px;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
}

.site-event span {
    padding: 1px 4px;
    color: var(--black);
    background: var(--white);
    font-size: clamp(.51rem, .7vw, .79rem);
    font-weight: 700;
    letter-spacing: .13em;
}

.site-event strong {
    color: var(--gold-light);
    font-size: clamp(.7rem, .92vw, 1.06rem);
}

.site-menu { justify-self: end; }
.site-menu summary {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    list-style: none;
    cursor: pointer;
}
.site-menu summary::-webkit-details-marker { display: none; }

.hamburger {
    width: clamp(23px, 2.5vw, 43px);
    height: clamp(17px, 1.95vw, 31px);
    border-block: solid 3px;
    display: grid;
    align-items: center;
}
.hamburger::before { content: ""; height: 3px; background: currentColor; }

.site-menu nav {
    position: absolute;
    top: 100%;
    right: 0;
    display: grid;
    width: min(100vw, 294px);
    padding: .5rem 0;
    background: var(--black);
    box-shadow: 0 12px 25px #0003;
}

.site-menu nav a {
    padding: .8rem 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.site-menu nav a:hover, .site-menu nav [aria-current] { color: var(--gold-light); background: #232323; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: .4rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--ink);
    background: var(--gold);
    font-weight: 700;
    letter-spacing: .065em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 160ms var(--ease);
}
.button:hover { background-color: var(--gold-light); }
.button:disabled { opacity: .65; cursor: wait; }
.button-pill { border-radius: 999px; }
.button-secondary { border-color: var(--ink); background: var(--white); }
.notice, .field-error { margin-top: .4rem; font-size: 1rem; }
.field-error { color: #9a2517; }
.notice { color: var(--green); }

.event-tag {
    display: inline-block;
    padding: .23em .48em;
    color: var(--white);
    background: var(--black);
    font-weight: 700;
    font-size: clamp(.8rem, 1.6vw, 2rem);
    line-height: 1;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.brand-title {
    color: var(--gold);
    font-size: clamp(2.4rem, 6.15vw, 8rem);
    font-weight: 700;
    line-height: .93;
    text-transform: uppercase;
    text-shadow: -1px 0 #433817, 1px 0 #433817, 0 -1px #433817, 1px 2px #433817;
}

.trakindo-logo { width: clamp(112px, 14.5vw, 264px); height: auto; }
.advancing { width: clamp(128px, 19vw, 325px); height: auto; }

.registration {
    isolation: isolate;
    position: relative;
    flex: auto;
    display: grid;
    min-height: min(56vw, calc(100svh - var(--stripe-height)));
}

.registration-art {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: 46%;
    background: url("art/register-dna.webp") center right / cover no-repeat;
    mask-image: linear-gradient(90deg, transparent, #000 18%);
}

.registration-content {
    display: grid;
    justify-items: start;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    padding: clamp(22px, 3.4vw, 76px) var(--gutter) clamp(16px, 2.3vw, 50px);
}

.registration-form { padding-block: clamp(20px, 3.7vw, 60px); }
.registration-form .brand-title { margin: .15em 0 .4em; }

.registration form {
    display: grid;
    justify-items: stretch;
    gap: clamp(10px, 1.2vw, 20px);
    width: min(100%, clamp(185px, 25.8vw, 432px));
}
.registration input {
    width: 100%;
    min-height: 42px;
    padding: .38rem .9rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--white);
    background: #666;
    text-align: center;
}
.registration input::placeholder {
    color: var(--white);
    opacity: 1;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.registration .button { justify-self: end; min-width: 36%; }

.constellation {
    flex: auto;
    display: grid;
    place-items: center;
    min-height: 0;
}

.constellation-stage {
    position: relative;
    container-type: inline-size;
    width: min(100%, 1850px, calc((100svh - var(--header-height) - var(--stripe-height)) * 2.05));
    aspect-ratio: 2.05;
}

.constellation-node, .constellation-center, .constellation-satellite {
    position: absolute;
    top: var(--y);
    left: var(--x);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.constellation-node, .constellation-center {
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    text-wrap: balance;
    line-height: .98;
}

.constellation-node {
    z-index: 2;
    width: 13.65%;
    padding: 2.7%;
    gap: .22em;
    background: url("art/node-gold.webp") center / contain no-repeat;
    font-size: clamp(1rem, 2.16cqw, 2.9rem);
    text-decoration: none;
    transition: transform 200ms var(--ease), filter 200ms var(--ease);
}
.constellation-node:hover, .constellation-node:focus-visible {
    transform: translate(-50%, -50%) scale(1.06);
    filter: drop-shadow(0 8px 16px #7950134d);
}

.constellation-center {
    z-index: 1;
    width: 19%;
    padding: 2.5%;
    color: var(--white);
    background: url("art/node-silver.webp") center / contain no-repeat;
    font-size: clamp(1.12rem, 2.72cqw, 3.5rem);
    text-shadow: 0 1px 2px #20202090;
}

.constellation-center span { white-space: nowrap; }

.constellation-sub .constellation-center { width: 15.3%; font-size: clamp(1.2rem, 2.35cqw, 3rem); }
.constellation-sub .constellation-node { width: 15.4%; padding: 3.6%; }
.constellation-sub .constellation-satellite { width: 3.5%; }

.constellation-satellite { z-index: 1; width: 3.55%; overflow: hidden; }
.constellation-satellite img { width: 100%; height: 100%; object-fit: cover; }

.constellation-line {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--length);
    height: clamp(1px, .12cqw, 2px);
    background: #dfa00b;
    transform-origin: left center;
    transform: rotate(var(--angle));
}

.node-badge {
    display: inline-flex;
    align-items: center;
    gap: .32em;
    padding: .16em .55em;
    border-radius: 999px;
    color: #fff;
    background: #151515;
    font-size: .4em;
    letter-spacing: .08em;
}
.node-badge::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: #ff4f4f; }

dialog {
    border: 0;
    border-radius: 15px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 12px 55px #0005;
}
dialog::backdrop { background: #181818a0; }

.welcome-dialog {
    padding: 0;
    position: fixed;
    width: min(91vw, 780px);
    max-height: 88svh;
    text-align: center;
    background: var(--surface) url("art/background.webp") center / cover;
    overflow: auto;
}
.welcome-dialog[open] { animation: dialog-in 220ms var(--ease); }
@keyframes dialog-in {
    from { opacity: 0; transform: translateY(9px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-close {
    position: absolute;
    z-index: 2;
    top: 7px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    padding: 0 0 3px;
    border: 1px solid #ffffff91;
    border-radius: 50%;
    color: var(--white);
    background: var(--black);
    font: 1.6rem/1 Arial, sans-serif;
}

.welcome-brands, .awarding-brands {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
}
.welcome-brands { padding: 24px 58px 30px 24px; }
.welcome-brands img { width: auto; max-width: 43%; height: clamp(20px, 3.8vw, 47px); object-fit: contain; }
.welcome-dialog .event-tag { font-size: clamp(.8rem, 2vw, 1.55rem); }
.welcome-dialog .brand-title { margin-top: .24em; font-size: clamp(2rem, 6vw, 4.4rem); }
.welcome-art { width: 100%; height: auto; margin: 10px auto 15px; }

.gallery-shell .site-main {
    background: url("art/gallery-background.webp") center top / 100% auto repeat-y, var(--surface);
}

.gallery {
    width: min(100%, 1740px);
    margin-inline: auto;
    padding: clamp(28px, 4.1vw, 72px) var(--gutter) clamp(42px, 7vw, 125px);
}
.gallery h1 {
    width: fit-content;
    min-width: min(100%, 31vw);
    margin: 0 auto clamp(28px, 5.5vw, 98px);
    padding: .24em clamp(.8rem, 2vw, 2rem);
    background: var(--gold);
    font-size: clamp(1.5rem, 3vw, 3.5rem);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}
.gallery-belt { width: clamp(140px, 24vw, 380px); height: auto; margin: .8rem auto clamp(14px, 3vw, 46px); }
.gallery-green h1 { color: #fff; background: var(--green); }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(12px, 3.2vw, 63px);
    row-gap: clamp(20px, 4.4vw, 84px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.gallery-tsap .profile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 4.5%; }
.gallery-green .profile-grid { width: min(100%, 89%); --profile-shadow: #075f4e30; }
.profile-card { display: block; width: 100%; padding: 0; border: 0; background: transparent; }
.profile-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.profile-card:focus-visible img {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px var(--profile-shadow, #10101038);
}

@media (hover: hover) and (pointer: fine) {
    .profile-card:hover img {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 12px 24px var(--profile-shadow, #10101038);
    }
}

.gallery-tsap .profile-card img { aspect-ratio: 189 / 344; }
.gallery-green .profile-card img { aspect-ratio: 246 / 325; }
.gallery-innovation .profile-card img { aspect-ratio: 267 / 341; }
.profile-dialog { max-width: min(90vw, 560px); padding: 2.5rem 2rem 2rem; }
.profile-dialog p { margin-top: .7rem; white-space: pre-line; }
.gallery-empty { text-align: center; font-size: 1.25rem; }
.gallery-empty .button { margin-top: 1rem; }

.gallery-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.gallery-pagination a, .gallery-pagination button {
    display: grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    padding: .25rem .65rem;
    border: 1px solid #d6d5d2;
    border-radius: 3px;
    color: var(--ink);
    background: var(--white);
    font-weight: 700;
    text-decoration: none;
}
.gallery-pagination [aria-current], .gallery-pagination button:hover { background-color: var(--gold-light); }

.awarding {
    display: grid;
    grid-template-rows: auto 1fr;
    flex: auto;
    padding: clamp(24px, 4vw, 76px) var(--gutter);
}
.awarding-content { align-self: center; padding: clamp(38px, 7vw, 118px) 0; text-align: center; }
.awarding-content .brand-title { margin: .2em 0; font-size: clamp(2rem, 4.45vw, 6rem); }
.event-date {
    margin: clamp(.6rem, 1vw, 1.3rem) 0;
    font-size: clamp(1.2rem, 2.55vw, 3rem);
    line-height: .98;
    font-weight: 700;
    text-transform: uppercase;
}
.awarding-countdown { font-size: clamp(1.2rem, 2.6vw, 3.5rem); font-weight: 700; }
.awarding-countdown strong {
    display: block;
    font-size: clamp(2.8rem, 7.2vw, 8rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.wall {
    display: grid;
    flex: auto;
    grid-template-columns: minmax(0, 1.87fr) minmax(0, 1fr);
    align-items: start;
}
.wall-composer { min-width: 0; padding-top: clamp(14px, 3.5svh, 36px); }
.wall-composer h1 {
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(2rem, min(4.7vw, 7.5svh), 6rem);
    line-height: 1;
}
.wall-art {
    width: 100%;
    height: auto;
    max-height: min(36svh, 440px);
    margin-top: .7rem;
    object-fit: contain;
}
.wall-composer label {
    display: block;
    margin: clamp(8px, 1.7svh, 20px) 3% .55rem;
    font-size: clamp(.95rem, 1.6vw, 1.85rem);
    line-height: 1.1;
    text-transform: uppercase;
}
.wall-composer label strong { font-size: 1.4em; }
.idea-input { display: grid; justify-items: end; gap: .5rem; padding: clamp(12px, 2.1svh, 22px) 3%; background: #4f4f4f; }
.idea-input textarea {
    width: 100%;
    min-height: clamp(76px, 12svh, 138px);
    resize: vertical;
    border: 0;
    color: var(--white);
    background: transparent;
    padding: .25rem;
}
.idea-input .button { min-width: 116px; min-height: 44px; }
.idea-input .button:focus-visible { outline-color: var(--gold-light); }
.idea-input textarea::placeholder { color: var(--white); opacity: 1; text-transform: uppercase; }
.idea-input textarea:focus-visible { outline-color: var(--gold-light); }
.wall-composer .notice, .wall-composer .field-error { padding: .5rem 3%; }
.wall-feed {
    min-width: 0;
    min-height: 100%;
    padding: clamp(14px, 2vw, 34px);
    border-left: 1px solid #ddd;
    background: #f8f8f6cb;
}
.wall-feed article { padding: .75rem 0; border-bottom: 1px solid #deded9; overflow-wrap: anywhere; }
.wall-feed article:first-child { padding-top: 0; }
.wall-feed article p { white-space: pre-line; }
.idea-author { margin-bottom: .3rem; font-size: 1.05rem; font-weight: 700; }

.photo {
    display: grid;
    grid-template-columns: minmax(0, 550px) minmax(220px, 350px);
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 4vw, 70px);
    padding: clamp(22px, 4vw, 62px) var(--gutter);
}
.photo-art {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    color: #333;
    background: #e9e8e3;
    box-shadow: 0 10px 26px #0002;
}
.twibbon-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.photo-canvas { position: absolute; inset: 25% 10% 11%; }
.photo-canvas img, .photo-canvas video { width: 100%; height: 100%; object-fit: cover; }
.photo-canvas video { transform: scaleX(-1); }
.photo-tools h1 { font-size: clamp(2.25rem, 4vw, 4.8rem); text-transform: uppercase; }
.photo-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem; }
.photo-upload { position: relative; overflow: hidden; cursor: pointer; }
.photo-upload:focus-within { outline: 3px solid #886000; outline-offset: 3px; }
.photo-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-status { min-height: 1.4em; margin-top: .85rem; }

@media (max-width: 760px) {
    .registration-content { justify-items: start; }
    .registration .brand-title { font-size: clamp(2.15rem, 7.5vw, 4rem); }

    .constellation-stage {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: center;
        justify-items: center;
        gap: clamp(12px, 2vw, 20px);
        width: min(100%, 495px);
        min-height: 100%;
        padding: clamp(16px, 4vw, 30px) clamp(20px, 9vw, 46px);
        aspect-ratio: auto;
    }
    .constellation-line, .constellation-satellite { display: none; }
    .constellation-node, .constellation-center {
        position: static;
        width: min(34vw, 147px);
        padding: 14%;
        transform: none;
        font-size: clamp(1rem, 5.4vw, 1.65rem);
    }
    .constellation-center, .constellation-sub .constellation-center {
        grid-column: 1 / -1;
        width: min(41vw, 171px);
        padding: min(6vw, 26px);
        font-size: clamp(1.25rem, 6vw, 1.9rem);
    }
    .constellation-sub .constellation-node { width: min(34vw, 147px); padding: 13%; }
    .constellation-sub .constellation-node:last-child { grid-column: 1 / -1; }
    .constellation-node:hover, .constellation-node:focus-visible { transform: scale(1.035); }

    .gallery .profile-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-shell .site-main { background-size: auto 100svh; }

    .wall { grid-template-columns: 1fr; }
    .wall-feed { min-height: 150px; border-left: 0; }
    .photo { display: flex; flex-direction: column; }
    .photo-art, .photo-tools { width: min(100%, 390px); }
}

@media (max-width: 520px) {
    .registration { min-height: calc(100svh - var(--stripe-height)); }
    .registration-art {
        inset: 0 0 0 auto;
        width: 52%;
        opacity: .38;
        mask-image: linear-gradient(90deg, transparent, #000 60%);
    }
    .registration-content { align-content: space-between; }
    .registration .brand-title { font-size: clamp(2.35rem, 9.2vw, 3.2rem); }
    .registration form { width: min(70vw, 260px); }
    .welcome-brands { padding: 21px 52px 26px 18px; }
    .awarding-content .event-tag { font-size: clamp(.65rem, 3.4vw, .95rem); }
    .photo-tools { order: -1; }
}

@media (max-height: 500px) {
    .wall-art { max-height: 26svh; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .profile-card:is(:hover, :focus-visible) img { transform: none; }
}
