:root {
    --ink: #0e1719;
    --ink-2: #172426;
    --paper: #eaeeed;
    --paper-2: #dbe3e1;
    --safelight: #2c7a72;
    --safelight-dim: #1e5a53;
    --brass: #8fb6b0;
    --tray: #5e716e;
    --grey: #7c8683;
    --line: rgba(14, 23, 25, 0.14);
    --line-dark: rgba(234, 238, 237, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--safelight);
    color: var(--paper);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

a {
    color: inherit;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

.display {
    font-family: 'Fraunces', serif;
}

/* film grain overlay across whole page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll progress */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--safelight);
    z-index: 300;
    width: 0%;
    transition: width 0.08s linear;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1), transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fact,
.reg-card,
.polaroid,
.about-copy p {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view .about-copy p,
.about-copy.in-view p {
    opacity: 1;
    transform: translateY(0);
}

.about-copy::before {
    content: '"';
    position: absolute;
    top: 14px;
    left: 18px;
    font-family: 'Fraunces', serif;
    font-size: 5.5rem;
    color: var(--safelight);
    opacity: 0.15;
    line-height: 1;
    z-index: 0;
    /* Keeps the quote graphic behind your text */
    pointer-events: none;
}

.about-copy p {
    line-height: 1.85;
    color: #3a3630;
    margin-bottom: 20px;
    font-size: 1.04rem;
    position: relative;
    z-index: 1;
    /* Pushes the text layer in front of the quote background */
}

.reveal.in-view .fact,
.reveal.in-view .reg-card,
.reveal.in-view .polaroid,
.reveal.in-view .about-copy p {
    opacity: 1;
    transform: translateY(0);
}

.facts.in-view .fact:nth-child(1),
.reveal.in-view .facts .fact:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal.in-view .facts .fact:nth-child(2) {
    transition-delay: 0.18s;
}

.reveal.in-view .facts .fact:nth-child(3) {
    transition-delay: 0.31s;
}

.reveal.in-view .about-copy p:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal.in-view .about-copy p:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal.in-view .sheet .polaroid:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal.in-view .sheet .polaroid:nth-child(2) {
    transition-delay: 0.15s;
}

.reveal.in-view .sheet .polaroid:nth-child(3) {
    transition-delay: 0.25s;
}

.reveal.in-view .sheet .polaroid:nth-child(4) {
    transition-delay: 0.35s;
}

.reveal.in-view .sheet .polaroid:nth-child(5) {
    transition-delay: 0.45s;
}

.reveal.in-view .reg-grid .reg-card:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal.in-view .reg-grid .reg-card:nth-child(2) {
    transition-delay: 0.12s;
}

.reveal.in-view .reg-grid .reg-card:nth-child(3) {
    transition-delay: 0.19s;
}

.reveal.in-view .reg-grid .reg-card:nth-child(4) {
    transition-delay: 0.26s;
}

.reveal.in-view .reg-grid .reg-card:nth-child(5) {
    transition-delay: 0.33s;
}

/* ---------- HEADER ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

.logo .aperture-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    position: relative;
    flex: none;
}

.logo .aperture-mark::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--safelight);
}

nav {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 0.82rem;
}

nav a {
    text-decoration: none;
    color: var(--ink);
    position: relative;
    padding-bottom: 4px;
    letter-spacing: 0.02em;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--safelight);
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--ink);
    color: var(--paper) !important;
    padding: 9px 20px;
    border-radius: 1px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.nav-cta::after {
    display: none;
}

/* ---------- HERO — editorial masthead ---------- */
.hero {
    position: relative;
    color: var(--paper);
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line-dark);

    /* Online Banner Image */
    background:
        linear-gradient(rgba(14, 23, 25, 0.72),
            rgba(14, 23, 25, 0.82)),
        url('https://images.unsplash.com/photo-1554048612-b6a482bc67e5?auto=format&fit=crop&w=1920&q=80') center 30% / cover no-repeat;

    min-height: 640px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: 640px;
}

.hero-main {
    padding: 70px 40px 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--line-dark);
}

.issue-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--brass);
    text-transform: uppercase;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.issue-line .rule {
    width: 40px;
    height: 1px;
    background: var(--brass);
}

.masthead {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(3.4rem, 9vw, 7.2rem);
    line-height: 0.86;
    margin: 0 0 30px;
    letter-spacing: -0.01em;
}

.masthead .line2 {
    font-style: italic;
    font-weight: 400;
    color: var(--safelight);
    display: block;
    margin-left: 0.6em;
}

.hero-dek {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(241, 234, 217, 0.72);
    max-width: 460px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--safelight);
    color: var(--paper);
    border: none;
    padding: 16px 30px;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    border-radius: 1px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    background-size: 220% 100%;
    background-position: 200% 0;
    transition: background-position 0.7s ease;
}

.btn-primary:hover::before {
    background-position: -20% 0;
}

.btn-primary:hover {
    background: var(--safelight-dim);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(44, 122, 114, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--paper);
    border-bottom: 1px solid var(--line-dark);
    padding-bottom: 3px;
    position: relative;
    transition: border-color 0.3s ease, letter-spacing 0.3s ease;
}

.btn-ghost:hover {
    border-color: var(--safelight);
    letter-spacing: 0.015em;
}

/* cover-lines rail */
.hero-rail {
    padding: 70px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        repeating-linear-gradient(180deg, transparent 0 63px, rgba(241, 234, 217, 0.045) 63px 64px);
}

.coverline {
    padding: 20px 0;
    border-bottom: 1px solid var(--line-dark);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.coverline:first-child {
    padding-top: 0;
}

.coverline .cl-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--grey);
}

.coverline .cl-text {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    text-align: right;
}

.coverline .cl-text b {
    color: var(--brass);
    font-weight: 600;
}

/* ---------- ANIMATION KEYFRAMES ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shutterIn {
    from {
        opacity: 0;
        transform: scale(1.06);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drawLine {
    from {
        width: 0;
    }

    to {
        width: 40px;
    }
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

@keyframes grainShift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-6%, 4%);
    }
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rot, 0deg));
    }

    50% {
        transform: translateY(-8px) rotate(var(--rot, 0deg));
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* film grain overlay: now animated */
body::before {
    animation: grainShift 0.7s steps(2) infinite alternate;
}

.hero {
    animation: shutterIn 1.1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.issue-line {
    animation: fadeIn 0.8s ease 0.2s both;
}

.issue-line .rule {
    animation: drawLine 0.8s ease 0.5s both;
}

.masthead {
    animation: fadeUp 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.3s both;
}

.hero-dek {
    animation: fadeUp 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.5s both;
}

.hero-actions {
    animation: fadeUp 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.65s both;
}

.hero-rail .coverline {
    animation: fadeUp 0.7s ease both;
}

.hero-rail .coverline:nth-child(1) {
    animation-delay: 0.55s;
}

.hero-rail .coverline:nth-child(2) {
    animation-delay: 0.7s;
}

.hero-rail .coverline:nth-child(3) {
    animation-delay: 0.85s;
}

.hero-rail .coverline:nth-child(4) {
    animation-delay: 1s;
}

.logo .aperture-mark::after {
    animation: pulseDot 2.6s ease-in-out infinite;
}

header {
    animation: fadeIn 0.6s ease both;
}

/* ---------- SECTION SHELL ---------- */
section {
    padding: 110px 48px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--safelight);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-tag .rule {
    width: 26px;
    height: 1px;
    background: var(--safelight);
}

h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 600;
    margin: 0 0 18px;
    line-height: 1.12;
}

.section-head p {
    color: #54504a;
    line-height: 1.7;
    font-size: 1.02rem;
}

/* ---------- ABOUT ---------- */
#about {
    background: var(--paper-2);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(44, 122, 114, 0.06), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(143, 182, 176, 0.08), transparent 40%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0;
    max-width: 1140px;
    margin: 0 auto;
    /* Centers the card layout on the page */
    position: relative;
    background: var(--paper);
    box-shadow: 0 30px 70px rgba(20, 17, 14, 0.1);
    border: 1px solid var(--line);
    align-items: stretch;
    /* Ensures both columns match in height */
}

.about-copy {
    padding: 56px 60px;
    position: relative;
    border-right: 1px solid var(--line);
}

.about-copy::before {
    content: '"';
    position: absolute;
    top: 14px;
    left: 18px;
    font-family: 'Fraunces', serif;
    font-size: 5.5rem;
    color: var(--safelight);
    opacity: 0.15;
    line-height: 1;
}

.about-copy p {
    line-height: 1.85;
    color: #3a3630;
    margin-bottom: 20px;
    font-size: 1.04rem;
    position: relative;
}

.about-copy p:first-child::first-letter {
    font-family: 'Fraunces', serif;
    font-size: 3.8rem;
    font-weight: 600;
    float: left;
    line-height: 0.75;
    margin: 10px 10px 0 0;
    color: var(--safelight);
}

.facts {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Evenly spaces out the 3 facts vertically */
    background: var(--ink);
    padding: 0;
    /* Let the individual facts handle inner padding */
}

.fact {
    flex-grow: 1;
    /* Distributes vertical space equally */
    padding: 26px 40px;
    border-top: 1px solid var(--line-dark);
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    align-items: center;
    position: relative;
    transition: background 0.3s ease, padding-left 0.3s ease;
}

.fact:first-child {
    border-top: none;
}

.fact:hover {
    background: rgba(44, 122, 114, 0.12);
    padding-left: 46px;
}

.fact::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--safelight);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.fact:hover::after {
    transform: scaleY(1);
}

.fact .num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--brass);
}

.fact .val {
    font-family: 'Fraunces', serif;
    font-size: 1.28rem;
    display: block;
    color: var(--paper);
}

.fact .lbl {
    font-size: 0.84rem;
    color: rgba(241, 234, 217, 0.6);
    margin-top: 3px;
}

/* ---------- CATEGORIES — contact sheet ---------- */
#categories {
    background: var(--ink-2);
    color: var(--paper);
}

#categories .section-head p {
    color: rgba(241, 234, 217, 0.65);
}

.sheet {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
    overflow-x: visible;
}

.sheet::-webkit-scrollbar {
    height: 6px;
}

.sheet::-webkit-scrollbar-thumb {
    background: var(--safelight);
}

.sheet::-webkit-scrollbar-track {
    background: rgba(241, 234, 217, 0.1);
}

.polaroid {
    width: 100%;
    max-width: 100%;
    background: var(--paper);
    padding: 10px 10px 36px;
    position: relative;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    cursor: default;
    animation: floaty 5s ease-in-out infinite;
    animation-play-state: paused;
}

.sheet.reveal.in-view .polaroid {
    animation-play-state: running;
}

.polaroid:nth-child(1) {
    transform: rotate(-3deg);
    --rot: -3deg;
    animation-delay: 0s;
}

.polaroid:nth-child(2) {
    transform: rotate(2deg);
    --rot: 2deg;
    animation-delay: 0.3s;
}

.polaroid:nth-child(3) {
    transform: rotate(-1.5deg);
    --rot: -1.5deg;
    animation-delay: 0.6s;
}

.polaroid:nth-child(4) {
    transform: rotate(2.5deg);
    --rot: 2.5deg;
    animation-delay: 0.9s;
}

.polaroid:nth-child(5) {
    transform: rotate(-2deg);
    --rot: -2deg;
    animation-delay: 1.2s;
}

.polaroid:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.03);
    box-shadow: 0 26px 46px rgba(0, 0, 0, 0.5);
    animation-play-state: paused;
    z-index: 2;
}

.frame-photo {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
}

.frame-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .sheet {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .sheet {
        grid-template-columns: repeat(2, 1fr);
    }
}

.frame-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.p1 .frame-photo {
    background: radial-gradient(circle at 35% 30%, #a9c4c0, #4a6f6a 60%, #16262a);
}

.p2 .frame-photo {
    background: linear-gradient(180deg, #8fa8ac 0%, #3f5e63 55%, #142124 100%);
}

.p3 .frame-photo {
    background: linear-gradient(120deg, #a3aeae 0%, #52605f 50%, #1a2224 100%);
}

.p4 .frame-photo {
    background: conic-gradient(from 90deg, #2c7a72, #8fb6b0, #5e716e, #0e1719, #2c7a72);
}

.p5 .frame-photo {
    background: linear-gradient(150deg, #b9c9c6 0%, #2c7a72 55%, #101c1e 100%);
}

.tape {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 56px;
    height: 20px;
    background: rgba(241, 234, 217, 0.55);
    opacity: 0.8;
}

.cap {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cap .cnum {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--ink);
    opacity: 0.5;
    flex-shrink: 0;
    margin-top: 3px;
}

.cap .cname {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--ink);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cap-desc {
    font-size: 0.72rem;
    color: rgba(20, 17, 14, 0.55);
    position: absolute;
    bottom: -4px;
}

/* ---------- GUIDELINES ---------- */
#guidelines {
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}

#guidelines::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(143, 182, 176, 0.05) 0 1px, transparent 1px 90px);
    pointer-events: none;
}

#guidelines .section-head p {
    color: rgba(241, 234, 217, 0.6);
}

#guidelines h2 {
    color: var(--paper);
}

.guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px 40px;
    position: relative;
}

.guide-list li {
    position: relative;
    padding: 0 0 16px 34px;
    font-size: 0.96rem;
    line-height: 1.55;
    color: rgba(241, 234, 217, 0.82);
    border-bottom: 1px solid var(--line-dark);
}

.guide-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    color: var(--ink);
    background: var(--safelight);
    border-radius: 50%;
}

.reg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 56px;
    position: relative;
}

.reg-card {
    background: var(--ink-2);
    padding: 28px 26px 30px;
    border: 1px solid var(--line-dark);
    border-top: 2px solid var(--safelight);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.reg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--safelight);
    border-top-color: var(--brass);
}

.reg-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.08rem;
    margin: 0 0 16px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--paper);
}

.reg-card h3 .rnum {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--brass);
    background: rgba(143, 182, 176, 0.12);
    padding: 3px 7px;
    border-radius: 2px;
}

.reg-card dl {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: rgba(241, 234, 217, 0.65);
}

.reg-card dt {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--safelight);
    margin-top: 14px;
}

.reg-card dt:first-child {
    margin-top: 0;
}

.reg-card dd {
    margin: 3px 0 0;
}

/* ---------- REGISTRATION — ticket ---------- */
#register {
    background: var(--paper-2);
}

.ticket {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    background: var(--paper);
    box-shadow: 0 26px 60px rgba(20, 17, 14, 0.16);
    position: relative;
}

.ticket-main {
    padding: 46px 48px;
}

.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 34px;
}

.ticket-head h2 {
    margin: 0;
    font-size: 1.6rem;
}

.ticket-head .tno {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--grey);
}

.field {
    margin-bottom: 26px;
}

.field label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6b665e;
    margin-bottom: 9px;
}

.field input,
.field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 10px 2px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--safelight);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-note {
    font-size: 0.78rem;
    color: var(--grey);
    margin-top: 8px;
    line-height: 1.5;
}

/* entry upload */
.entry-field label {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.entry-field label span#entryCatLabel {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--safelight);
    text-transform: none;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.entry-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    width: fit-content;
}

.entry-tab {
    background: transparent;
    border: none;
    padding: 9px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    color: #6b665e;
    border-right: 1px solid var(--line);
}

.entry-tab:last-child {
    border-right: none;
}

.entry-tab.active {
    background: var(--ink);
    color: var(--paper);
}

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed var(--line);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone.drag {
    border-color: var(--safelight);
    background: rgba(193, 67, 46, 0.04);
}

.dropzone .dz-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--safelight);
}

.dropzone .dz-text {
    font-size: 0.88rem;
    color: var(--ink);
}

.dropzone .dz-hint {
    font-size: 0.72rem;
    color: var(--grey);
}

#mode-link input {
    margin-top: 2px;
}

/* perforated divider */
.ticket-stub {
    padding: 46px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--paper);
}

.ticket-stub::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed var(--line);
}

.ticket-stub::after {
    content: '';
    position: absolute;
    left: -11px;
    top: -11px;
    width: 22px;
    height: 22px;
    background: var(--paper-2);
    border-radius: 50%;
    box-shadow: 0 calc(100% - 11px) 0 -11px var(--paper-2);
}

.stub-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 16px;
}

.cat-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 34px;
}

.cat-chip {
    border: 1px solid var(--line);
    padding: 12px 14px;
    cursor: pointer;
    background: var(--paper);
    transition: all 0.18s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-chip .cnum {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--grey);
}

.cat-chip .cname {
    font-size: 0.85rem;
    font-weight: 500;
}

.cat-chip:hover {
    border-color: var(--ink);
}

.cat-chip.active {
    background: var(--ink);
    border-color: var(--ink);
}

.cat-chip.active .cnum {
    color: var(--brass);
}

.cat-chip.active .cname {
    color: var(--paper);
}

.payment-block {
    padding-top: 22px;
    border-top: 1px dashed var(--line);
}

.payment-block .p-label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b665e;
    margin-bottom: 6px;
}

.payment-block .p-value {
    font-family: 'Fraunces', serif;
    font-size: 1.9rem;
    margin-bottom: 18px;
}

.submit-btn {
    width: 100%;
    background: var(--safelight);
    color: var(--paper);
    border: none;
    padding: 15px 0;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    border-radius: 1px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: var(--safelight-dim);
}

.confirm {
    display: none;
    margin-top: 22px;
    padding: 14px 16px;
    border-left: 3px solid var(--safelight);
    background: rgba(193, 67, 46, 0.06);
    font-size: 0.85rem;
    color: #3a3630;
    grid-column: 1/-1;
}

.confirm.show {
    display: block;
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--ink);
    color: rgba(241, 234, 217, 0.7);
    padding: 56px 48px 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 38px;
    border-bottom: 1px solid var(--line-dark);
}

.footer-brand .logo {
    color: var(--paper);
}

.footer-brand p {
    font-size: 0.86rem;
    max-width: 280px;
    margin-top: 14px;
    line-height: 1.6;
    color: rgba(241, 234, 217, 0.5);
}

.footer-cols {
    display: flex;
    gap: 66px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0 0 16px;
}

.footer-col a {
    display: block;
    font-size: 0.86rem;
    text-decoration: none;
    margin-bottom: 10px;
    color: rgba(241, 234, 217, 0.75);
}

.footer-col a:hover {
    color: var(--paper);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 0.78rem;
    color: rgba(241, 234, 217, 0.4);
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        border-right: none;
        border-bottom: 1px solid var(--line-dark);
    }

    .sheet {
        gap: 20px;
    }

    .ticket {
        grid-template-columns: 1fr;
    }

    .ticket-stub::before,
    .ticket-stub::after {
        display: none;
    }

    .ticket-stub {
        border-top: 2px dashed var(--line);
    }
}

@media (max-width: 640px) {
    header {
        padding: 16px 20px;
    }

    nav {
        display: none;
    }

    .hero-main,
    .hero-rail,
    section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-copy {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 40px 26px;
    }

    .facts {
        padding: 0;
    }

    .sheet {
        gap: 16px;
    }

    .polaroid {
        flex-basis: 200px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .ticket-main {
        padding: 30px 26px;
    }

    .ticket-stub {
        padding: 30px 26px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.terms-check {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.checkbox-label input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: #2c7a72;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ---------- SPONSORS — logo marquee ---------- */
#sponsors {
    background: var(--paper);
    padding: 44px 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.logo-card {
    flex: none;
    width: 150px;
    height: 84px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.3333%);
    }
}

@media (max-width: 640px) {
    .logo-card {
        width: 120px;
        height: 68px;
        padding: 10px 14px;
    }

    .marquee-track {
        gap: 18px;
    }
}

.hero-logo {
    width: 450px;
    height: auto;
    display: block;
}

.submit-btn:disabled,
.submit-btn.is-loading {
    opacity: .7;
    cursor: not-allowed;
    pointer-events: none;
}

.submit-btn.is-loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnspin .6s linear infinite;
    vertical-align: middle;
}

@keyframes btnspin {
    to {
        transform: rotate(360deg);
    }
}

.payment-help {
    font-weight: 600;
    color: #b3261e;
    background: rgba(179, 38, 30, 0.06);
    border: 1px solid rgba(179, 38, 30, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 10px;
}

.payment-help strong {
    font-weight: 700;
}



/* ===========================================================
   RESPONSIVE IMPROVEMENTS (Appended by ChatGPT)
   Preserves existing design and desktop styles.
   =========================================================== */

@media (max-width:1024px) {
    section {
        padding: 80px 32px;
    }

    header {
        padding: 12px 28px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        border-right: none;
        border-bottom: 1px solid var(--line-dark);
    }

    .hero-rail {
        padding: 40px 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .ticket {
        grid-template-columns: 1fr;
    }

    .ticket-stub::before,
    .ticket-stub::after {
        display: none;
    }

    .ticket-stub {
        border-top: 2px dashed var(--line);
    }
}

@media (max-width:768px) {
    header {
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    nav {
        flex-wrap: wrap;
        gap: 14px;
        justify-content: center;
    }

    section,
    .hero-main,
    .hero-rail {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        min-height: auto;
    }

    .masthead {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
    }

    .footer-cols {
        gap: 28px;
    }

    .hero-logo {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width:480px) {
    header {
        padding: 12px 16px;
    }

    nav {
        display: none;
    }

    section {
        padding: 60px 16px;
    }

    .about-copy,
    .ticket-main,
    .ticket-stub {
        padding: 24px 18px;
    }

    .sheet {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .guide-list,
    .reg-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .entry-tabs {
        width: 100%;
    }

    .entry-tab {
        flex: 1;
    }
}
