/* Panton Font Family */
@font-face {
    font-family: 'Panton';
    src: url('fonts/PantonLight/font.woff2') format('woff2'),
         url('fonts/PantonLight/font.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Panton';
    src: url('fonts/PantonPanton/font.woff2') format('woff2'),
         url('fonts/PantonPanton/font.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Panton';
    src: url('fonts/PantonBold/font.woff2') format('woff2'),
         url('fonts/PantonBold/font.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Panton Narrow';
    src: url('fonts/PantonNarrowLight/font.woff2') format('woff2'),
         url('fonts/PantonNarrowLight/font.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Panton Narrow';
    src: url('fonts/PantonNarrowRegular/font.woff2') format('woff2'),
         url('fonts/PantonNarrowRegular/font.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Panton Narrow';
    src: url('fonts/PantonNarrowSemiBold/font.woff2') format('woff2'),
         url('fonts/PantonNarrowSemiBold/font.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Panton Narrow';
    src: url('fonts/PantonNarrowBold/font.woff2') format('woff2'),
         url('fonts/PantonNarrowBold/font.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   Design Tokens (CSS Custom Properties)
   ======================================== */

:root {
    /* Spacing Rhythm */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-xxl: 12rem;

    /* Motion */
    --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);
    --fade-duration: 600ms;
    --fade-duration-fast: 300ms;

    /* Border Radius */
    --radius-soft: 2px;

    /* Typography */
    --font-family: 'Panton', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-narrow: 'Panton Narrow', 'Panton', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Color System (Locked) */
    --color-bg: #f5f5f0;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #666;
    --color-text-muted: #888;
}

/* ========================================
   Reset and Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-transform: lowercase;
    /* Page is visible by default - prevents blank screen on slow JS load */
    opacity: 1;
    transform: translateY(0);
}

html.ticket-root {
    scroll-snap-type: none;
    scroll-behavior: auto;
    scroll-padding-top: 0;
}

body.ticket-page {
    overflow-y: auto;
}

/* ========================================
   Page Load: Entrance Calm
   ======================================== */

/* Only apply entrance animation if JS is enabled and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    html.js-enabled body {
        opacity: 0;
        transform: translateY(6px);
        animation: pageEnter var(--fade-duration) var(--ease-calm) 100ms forwards;
    }
}

/* ========================================
   Ticket Page: Red Envelope
   ======================================== */

.ticket-page {
    background-color: #f5f5f0;
    color: #1a1a1a;
    text-transform: lowercase;
}

.ticket-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    position: relative;
}

.ticket-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    transition: opacity var(--fade-duration) var(--ease-calm);
    position: relative;
    z-index: 2;
}

.ticket-whisper {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.ticket-instruction {
    font-size: 0.8rem;
    color: rgba(26, 26, 26, 0.7);
}

.ticket-status {
    font-size: 0.85rem;
    color: rgba(26, 26, 26, 0.8);
    min-height: 1.4em;
}

/* Envelope — idle pulse on seal */
.envelope {
    --envelope-width: min(320px, 78vw);
    position: relative;
    width: var(--envelope-width);
    height: clamp(160px, 45vw, 210px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.25), transparent 45%),
        linear-gradient(135deg, #6e1010, #9a1f1f 60%, #b52525);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f5f0;
    perspective: 900px;
    transform-style: preserve-3d;
    overflow: visible;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 0 18px rgba(255, 255, 255, 0.05);
    transition: transform 400ms var(--ease-calm);
}

.envelope:hover {
    transform: translateY(-3px);
}

.envelope:active {
    transform: scale(0.97);
}

.envelope:focus-visible {
    outline: 2px solid rgba(245, 245, 240, 0.7);
    outline-offset: 4px;
}

/* Loading: gentle breathing pulse */
.ticket-shell[data-state='loading'] .envelope {
    animation: envelopeBreathe 2s var(--ease-calm) infinite;
}

@keyframes envelopeBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 3;
    background: linear-gradient(135deg, #cc3030, #b02424);
    -webkit-clip-path: polygon(0 0, 100% 0, 50% 85%);
    clip-path: polygon(0 0, 100% 0, 50% 85%);
    transform-origin: top center;
    transform: rotateX(0deg);
    transition: transform 700ms var(--ease-calm);
    box-shadow: inset 0 -12px 20px rgba(0, 0, 0, 0.25);
    backface-visibility: hidden;
}

.envelope-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 58%;
    z-index: 2;
    background: linear-gradient(135deg, #7d1414, #8b1717);
    -webkit-clip-path: polygon(0 100%, 50% 18%, 100% 100%);
    clip-path: polygon(0 100%, 50% 18%, 100% 100%);
    opacity: 0.9;
    transition: transform 600ms var(--ease-calm);
}

.envelope-seal {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f4d27a, #b8860b);
    border: 1px solid rgba(255, 240, 200, 0.5);
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: #3a2604;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.25);
    transition: opacity 500ms var(--ease-calm), transform 500ms var(--ease-calm);
    z-index: 4;
    animation: sealPulse 3s var(--ease-calm) infinite;
}

@keyframes sealPulse {
    0%, 100% { box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(244, 210, 122, 0); }
    50% { box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.25), 0 0 12px 4px rgba(244, 210, 122, 0.3); }
}

/* Open state — staged reveal */
.ticket-shell.is-open .envelope {
    cursor: default;
    transition: transform 600ms var(--ease-calm);
    transform: translateY(-20px) scale(0.92);
}

.ticket-shell.is-open .envelope:hover {
    transform: translateY(-20px) scale(0.92);
}

.ticket-shell.is-open .envelope-flap {
    transform: rotateX(155deg) translateY(-6px);
}

.ticket-shell.is-open .ticket-stage {
    opacity: 0.85;
}

.ticket-shell.is-open .envelope-seal {
    opacity: 0;
    transform: scale(0.7);
    animation: none;
}

.ticket-shell.is-open .envelope-front {
    transform: translateY(6px);
}

/* Ticket card — slides up from behind envelope */
.ticket-card {
    width: min(420px, 92vw);
    background: #f5f5f0;
    color: #1a1a1a;
    border-radius: 12px;
    padding: var(--space-md);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    margin-top: -72px;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition:
        opacity 800ms var(--ease-calm),
        transform 800ms var(--ease-calm);
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.ticket-shell.is-open .ticket-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 250ms;
    pointer-events: auto;
}

/* Personalized greeting */
.ticket-greeting {
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    color: var(--color-text-primary);
    margin-bottom: 0.15rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 500ms var(--ease-calm) 450ms, transform 500ms var(--ease-calm) 450ms;
}

.ticket-shell.is-open .ticket-greeting:not(.is-hidden) {
    opacity: 1;
    transform: translateY(0);
}

.ticket-greeting.is-hidden {
    display: none;
}

.ticket-title {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-xs);
}

.ticket-divider {
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        rgba(26, 26, 26, 0.12) 0,
        rgba(26, 26, 26, 0.12) 4px,
        transparent 4px,
        transparent 8px
    );
    margin: var(--space-sm) 0;
}

.ticket-meta {
    display: grid;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
}

.ticket-key {
    color: var(--color-text-secondary);
}

.ticket-qr {
    margin: var(--space-sm) 0;
    display: grid;
    place-items: center;
}

.ticket-qr canvas {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(26, 26, 26, 0.12);
    padding: var(--space-xs);
    background: #ffffff;
    border-radius: 4px;
}

.ticket-qr img {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(26, 26, 26, 0.12);
    padding: var(--space-xs);
    background: #ffffff;
    border-radius: 4px;
}

.ticket-qr img.is-hidden,
.ticket-qr canvas.is-hidden {
    display: none;
}

/* Action buttons row */
.ticket-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: var(--space-xs) 0 var(--space-sm);
}

.ticket-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-family);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
    background: none;
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: all var(--fade-duration-fast) var(--ease-calm);
    text-transform: lowercase;
}

.ticket-action-btn:hover {
    color: var(--color-text-primary);
    border-color: rgba(26, 26, 26, 0.3);
    background: rgba(26, 26, 26, 0.03);
}

.ticket-action-btn:active {
    transform: scale(0.96);
}

.ticket-action-btn svg {
    flex-shrink: 0;
}

.ticket-action-btn:disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.ticket-wallet-icon {
    width: 16px;
    height: 16px;
}

.ticket-note {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
}

.ticket-update {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin: var(--space-xs) 0 var(--space-sm);
}

/* ========================================
   Ticket Access Overlay (claim form)
   ======================================== */

.ticket-access-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5f0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    animation: accessFadeIn 400ms var(--ease-calm);
}

.ticket-access-overlay.is-hidden {
    display: none !important;
}

@keyframes accessFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ticket-access-content {
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.ticket-access-whisper {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
    color: var(--color-text-primary);
}

.ticket-access-instruction {
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.ticket-access-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-access-input {
    font-family: var(--font-family);
    padding: 0.85rem var(--space-sm);
    font-size: 1rem;
    border: 1px solid rgba(26, 26, 26, 0.18);
    border-radius: var(--radius-soft);
    background: #ffffff;
    color: var(--color-text-primary);
    outline: none;
    transition: border-color var(--fade-duration-fast) var(--ease-calm);
}

.ticket-access-input:focus {
    border-color: var(--color-text-primary);
}

.ticket-access-input::placeholder {
    color: var(--color-text-muted);
}

.ticket-access-submit {
    font-family: var(--font-family);
    padding: 0.85rem var(--space-sm);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-soft);
    background: #1a1a1a;
    color: #f5f5f0;
    cursor: pointer;
    transition: opacity var(--fade-duration-fast) var(--ease-calm), transform 150ms var(--ease-calm);
}

.ticket-access-submit:hover {
    opacity: 0.8;
}

.ticket-access-submit:active {
    transform: scale(0.97);
}

.ticket-access-message {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    min-height: 1.4em;
}

/* ========================================
   Ticket Check-in
   ======================================== */

.checkin-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.checkin-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkin-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 245, 240, 0.55);
}

.checkin-title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    text-transform: lowercase;
}

.checkin-subtitle {
    font-size: 0.9rem;
    color: rgba(245, 245, 240, 0.7);
}

.checkin-card {
    width: min(420px, 92vw);
    padding: var(--space-md);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 15, 15, 0.85);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.checkin-status {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.checkin-name,
.checkin-event,
.checkin-count {
    font-size: 0.9rem;
    color: rgba(245, 245, 240, 0.75);
}

.checkin-actions {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xs);
}

.checkin-btn {
    border-radius: 999px;
    border: 1px solid rgba(245, 245, 240, 0.4);
    background: rgba(245, 245, 240, 0.1);
    color: #f5f5f0;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.checkin-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 245, 240, 0.7);
    background: rgba(245, 245, 240, 0.18);
}

.checkin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.checkin-shell[data-state='error'] .checkin-status {
    color: #ffb4b4;
}

.checkin-shell[data-state='ready'] .checkin-status {
    color: #bfffd2;
}

.checkin-shell[data-state='warning'] .checkin-status {
    color: #ffe3a3;
}

.ticket-assign {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.ticket-assign-title {
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

.ticket-assign-remaining {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.ticket-assign-list {
    display: grid;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.ticket-assign-row {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.ticket-assign-empty {
    color: var(--color-text-muted);
}

.ticket-assign.is-hidden {
    display: none;
}

.ticket-form {
    display: grid;
    gap: var(--space-xs);
}

.ticket-form input {
    font-family: var(--font-family);
    font-size: 1rem;
    padding: var(--space-sm);
    border-radius: var(--radius-soft);
    border: 1px solid rgba(26, 26, 26, 0.2);
    background: #ffffff;
    color: #1a1a1a;
}

.ticket-form input::placeholder {
    color: rgba(26, 26, 26, 0.4);
}

.ticket-form button {
    font-family: var(--font-family);
    padding: var(--space-sm);
    border-radius: var(--radius-soft);
    border: 1px solid rgba(26, 26, 26, 0.2);
    background: #1a1a1a;
    color: #f5f5f0;
    cursor: pointer;
    transition: opacity var(--fade-duration-fast) var(--ease-calm);
}

.ticket-form button:hover {
    opacity: 0.75;
}

.ticket-card .ticket-form input {
    border: 1px solid rgba(26, 26, 26, 0.2);
    background: #ffffff;
    color: #1a1a1a;
}

.ticket-card .ticket-form input::placeholder {
    color: rgba(26, 26, 26, 0.4);
}

.ticket-card .ticket-form button {
    border: 1px solid rgba(26, 26, 26, 0.2);
    background: rgba(26, 26, 26, 0.05);
    color: #1a1a1a;
}

@media (max-width: 560px) {
    .ticket-shell {
        padding: var(--space-md);
    }

    .ticket-card {
        padding: var(--space-sm);
        margin-top: -56px;
    }

    .ticket-access-content {
        padding: 0 var(--space-xs);
    }
}

/* Reduced motion — disable all ticket animations */
@media (prefers-reduced-motion: reduce) {
    .envelope,
    .envelope-seal,
    .ticket-card,
    .ticket-greeting,
    .ticket-shell[data-state='loading'] .envelope {
        animation: none !important;
        transition-duration: 0ms !important;
    }

    .ticket-shell.is-open .ticket-card {
        transition-delay: 0ms;
    }
}

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

/* ========================================
   Main Container
   ======================================== */

main {
    max-width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 85vh;
    padding-block: var(--space-xxl);
    padding-inline: var(--space-md);
    text-align: left;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    position: relative;
}

.site-nav {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: flex;
    gap: var(--space-lg);
}

.site-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: opacity var(--fade-duration-fast) ease-out;
}

.site-nav a:hover {
    opacity: 0.7;
}

.site-nav a:focus {
    outline: 1px solid var(--color-text-secondary);
    outline-offset: 2px;
}

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

.hero h1 {
    font-family: var(--font-family);
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--color-text-primary);
    line-height: 0.95;
}

.hero-tagline {
    font-size: 0.75rem;
    line-height: 1.8;
    color: rgba(26, 26, 26, 0.5);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-top: var(--space-lg);
}

@keyframes typographyBreathing {
    0%, 100% {
        letter-spacing: 0;
    }
    50% {
        letter-spacing: 0.02em;
    }
}

/* Scroll-Linked Header Fade (Progressive Enhancement) */
@supports (animation-timeline: scroll()) {
    .hero h1 {
        animation: fade-header linear both;
        animation-timeline: scroll();
        animation-range: 0 300px;
    }

    @keyframes fade-header {
        from {
            opacity: 1;
        }
        to {
            opacity: 0.85;
        }
    }
}

/* ========================================
   Sections
   ======================================== */

section {
    min-height: 80vh;
    padding-block: var(--space-xl);
    padding-inline: var(--space-md);
    max-width: 600px;
    margin: 0 auto;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    line-height: 1.3;
}

section p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-primary);
}

/* CSS-Driven Motion: Sections Arrive */
@media (prefers-reduced-motion: no-preference) {
    section {
        opacity: 0;
        transform: translateY(6px);
        transition:
            opacity var(--fade-duration) var(--ease-calm),
            transform var(--fade-duration) var(--ease-calm);
    }

    section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Section-Specific Styles
   ======================================== */

#overview p,
#what-we-are-not p,
#experience p {
    color: var(--color-text-secondary);
}

#overview p {
    font-size: 1.1rem;
    line-height: 1.85;
}

/* Philosophy Section Hold: A Pause */
#philosophy {
    padding-block: calc(var(--space-xxl) * 1.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#philosophy h2 {
    margin-bottom: 2.5rem;
}

#philosophy p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
    font-weight: 300;
}

/* No entry animation for philosophy section */
@media (prefers-reduced-motion: no-preference) {
    #philosophy {
        opacity: 1;
        transform: none;
    }
    
    #philosophy.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* Quiet Signature: De-emphasized */
.signature-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    font-style: normal;
    text-align: center;
    font-weight: 300;
}

/* ========================================
   Email Updates Section
   ======================================== */

.email-form {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 400px;
}

.email-input {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    padding: var(--space-sm);
    border: 1px solid var(--color-text-muted);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    border-radius: var(--radius-soft);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--fade-duration-fast) var(--ease-calm);
}

.email-input:focus {
    outline: none;
    border-color: var(--color-text-primary);
}

.email-input::placeholder {
    color: var(--color-text-muted);
}

.email-input {
    text-transform: none;
}

.email-submit {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: none;
    border-radius: 8px;
    color: #f5f5f0;
    box-shadow:
        0 2px 8px rgba(26,26,26,0.15),
        0 1px 3px rgba(26,26,26,0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    align-self: flex-start;
}

.email-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.email-submit:hover::before {
    left: 100%;
}

.email-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(26,26,26,0.25),
        0 2px 8px rgba(26,26,26,0.3);
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

.email-submit:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.email-submit:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(26,26,26,0.2),
        0 1px 3px rgba(26,26,26,0.25);
}

.email-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(26,26,26,0.15);
}


/* Loading state with modern spinner */
.email-submit.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.email-submit.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(245,245,240,0.3);
    border-radius: 50%;
    border-top-color: #f5f5f0;
    animation: modernSpin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes modernSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Success state with celebration */
.email-submit.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Error state */
.email-submit.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: errorShake 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.email-message {
    margin-top: var(--space-sm);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    min-height: 1.5em;
}

.email-message.success {
    color: var(--color-text-primary);
}

.email-message.error {
    color: var(--color-text-primary);
}

.form-buttons {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.message-toggle {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.75rem 1.5rem;
    background: rgba(136,136,136,0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(136,136,136,0.15);
    border-radius: 6px;
    color: #666;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    align-self: flex-start;
}

.message-toggle:hover {
    background: rgba(136,136,136,0.08);
    border-color: rgba(136,136,136,0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #1a1a1a;
}

.message-toggle:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.message-toggle:active {
    transform: translateY(0);
}

.message-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.message-container {
    margin-top: var(--space-sm);
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity var(--fade-duration-fast) var(--ease-calm),
                margin-top var(--fade-duration-fast) var(--ease-calm),
                height var(--fade-duration-fast) var(--ease-calm);
}

.message-container.visible {
    opacity: 1;
    height: auto;
    margin-top: var(--space-sm);
}

.message-input {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    padding: var(--space-sm);
    width: 100%;
    border: 1px solid var(--color-text-muted);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    border-radius: var(--radius-soft);
    resize: vertical;
    min-height: 80px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--fade-duration-fast) var(--ease-calm);
    text-transform: none;
}

.message-input:focus {
    outline: none;
    border-color: var(--color-text-primary);
}

.message-input::placeholder {
    color: var(--color-text-muted);
}

@media (min-width: 600px) {
    .email-form {
        flex-direction: column;
        align-items: stretch;
    }

    .form-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .email-input {
        width: 100%;
    }

    .message-container {
        width: 100%;
    }

    .message-input {
        width: 100%;
    }
}

/* ========================================
   Careers Pages
   ======================================== */

.careers-cta-section {
    text-align: center;
}

.careers-cta {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #f5f5f0;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow:
        0 2px 8px rgba(26,26,26,0.15),
        0 1px 3px rgba(26,26,26,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.careers-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.careers-cta:hover::before {
    left: 100%;
}

.careers-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(26,26,26,0.25),
        0 2px 8px rgba(26,26,26,0.3);
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

.careers-cta:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.careers-cta:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(26,26,26,0.2),
        0 1px 3px rgba(26,26,26,0.25);
}

.role-item {
    margin-bottom: var(--space-lg);
}

.role-item:last-child {
    margin-bottom: 0;
}

.role-item h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
    line-height: 1.4;
}

.role-item p {
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-primary);
}

.role-apply {
    font-family: var(--font-family);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.625rem 1.25rem;
    display: inline-block;
    background: rgba(136,136,136,0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(136,136,136,0.15);
    border-radius: 6px;
    color: #666;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    position: relative;
    cursor: pointer;
}

.role-apply:hover {
    background: rgba(136,136,136,0.08);
    border-color: rgba(136,136,136,0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #1a1a1a;
}

.role-apply:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.role-apply:active {
    transform: translateY(0);
}

/* Careers Form */
.careers-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.form-group .required {
    color: var(--color-text-primary);
}

.form-group .optional {
    font-weight: 300;
    color: var(--color-text-muted);
    font-size: 0.9em;
}

.form-hint {
    margin: 0.25rem 0 0.75rem 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.form-input,
.form-textarea {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    padding: var(--space-sm);
    width: 100%;
    border: 1px solid var(--color-text-muted);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    border-radius: var(--radius-soft);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--fade-duration-fast) var(--ease-calm);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-text-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-input,
.form-textarea {
    text-transform: none;
}

.form-input[type="file"] {
    padding: var(--space-xs);
    cursor: pointer;
}

.form-submit {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: none;
    border-radius: 8px;
    color: #f5f5f0;
    box-shadow:
        0 2px 8px rgba(26,26,26,0.15),
        0 1px 3px rgba(26,26,26,0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-submit:hover:not(:disabled)::before {
    left: 100%;
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(26,26,26,0.25),
        0 2px 8px rgba(26,26,26,0.3);
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

.form-submit:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.form-submit:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(26,26,26,0.2),
        0 1px 3px rgba(26,26,26,0.25);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(26,26,26,0.15);
}

/* Form submit states */
.form-submit.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(245,245,240,0.3);
    border-radius: 50%;
    border-top-color: #f5f5f0;
    animation: modernSpin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.form-submit.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-submit.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: errorShake 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-message {
    margin-top: var(--space-sm);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    min-height: 1.5em;
}

.form-message.success {
    color: var(--color-text-primary);
}

.form-message.error {
    color: var(--color-text-primary);
}

/* Confirmation after form submission */
.confirmation {
    padding: var(--space-lg) 0;
}

.confirmation p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.confirmation p:last-child {
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

/* Human detail line */
.human-detail {
    margin-top: var(--space-md);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Fried Rice Easter Egg */
@media (prefers-reduced-motion: no-preference) {
    .fried-rice {
        opacity: 0;
        transition: opacity var(--fade-duration-fast) ease;
    }

    body.egg-visible .fried-rice {
        opacity: 1;
    }
}

/* Status Section: Meta Text */
#status p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ========================================
   Section Spacers (Intentional Dead Space)
   ======================================== */

.section-spacer {
    height: 15vh;
}

/* ========================================
   Hover States (Text Only)
   ======================================== */

a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: opacity var(--fade-duration-fast) ease-out;
}

a:hover {
    opacity: 0.7;
}

a:focus {
    outline: 1px solid var(--color-text-secondary);
    outline-offset: 2px;
}


/* ========================================
   Reduced Motion Respect
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-snap-type: none;
        scroll-behavior: auto;
    }

    body {
        opacity: 1;
        transform: none;
    }

    section {
        opacity: 1;
        transform: none;
    }

    .fried-rice {
        opacity: 1;
    }
}

/* ========================================
   Page Transitions
   ======================================== */

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    transform: translateY(-100%);
    z-index: 9999;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-overlay.active {
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

/* ========================================
   Ticket CTA (Events)
   ======================================== */

.ticket-cta {
    margin-top: var(--space-md);
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.ticket-cta .email-submit {
    display: inline-block;
    text-decoration: none;
}


/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    html {
        scroll-snap-type: y proximity;
    }

    .hero {
        min-height: 75vh;
        padding-block: var(--space-xl);
        padding-inline: var(--space-sm);
    }

    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: var(--space-md);
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 0.85rem;
        margin-top: var(--space-md);
    }

    section {
        min-height: 60vh;
        padding-block: var(--space-xl);
        padding-inline: var(--space-sm);
        max-width: 100%;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.75rem;
        line-height: 1.3;
    }

    section p {
        font-size: 1rem;
        line-height: 1.75;
    }

    #overview p {
        font-size: 1.05rem;
    }

    #philosophy {
        padding-block: calc(var(--space-xl) * 1.5);
    }

    #philosophy p {
        font-size: 1rem;
    }

    .signature-text {
        font-size: 0.8125rem;
    }

    #status p {
        font-size: 0.9rem;
    }

    .section-spacer {
        height: 12vh;
    }

    .site-nav {
        top: var(--space-sm);
    }

    .form-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .email-submit,
    .message-toggle {
        width: 100%;
        min-height: 44px; /* iOS touch target minimum */
    }

    /* Ticket buttons stay compact */
    .ticket-cta .ticket-btn {
        width: auto;
        min-height: auto;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .mobile-hide {
        display: none !important;
    }
}

/* Desktop: hide custom checkout, show Square link */
@media (min-width: 769px) {
    .desktop-hide {
        display: none !important;
    }
}
