/* ==========================================================================
   Onix - corporate luxury: a glossy black card with a gilded edge that tilts in the light,
   numbered sections like an annual report, a precise agenda table
   Palette: --inv-primary (gilt edge, accents), --inv-accent (shadow gilt), --inv-bg, --inv-text
   script.js sets --rx / --ry (tilt, degrees) and --gx / --gy (reflection, %) on the card
   ========================================================================== */

.onix {
    --ox-ink-soft: color-mix(in srgb, var(--inv-text) 66%, var(--inv-bg));
    --ox-hair: color-mix(in srgb, var(--inv-text) 14%, transparent);
    --ox-line: color-mix(in srgb, var(--inv-primary) 50%, transparent);
    --ox-raised: color-mix(in srgb, var(--inv-bg) 92%, var(--inv-text));
    --ox-gilt: linear-gradient(135deg, var(--inv-accent), var(--inv-primary) 30%, color-mix(in srgb, var(--inv-primary) 55%, white) 50%, var(--inv-primary) 70%, var(--inv-accent));
    --ox-plate: color-mix(in srgb, white 94%, var(--inv-primary));
    --kit-radius: 2px;
    --kit-field-bg: transparent;
    --kit-field-border: var(--ox-hair);
    --kit-button-bg: var(--inv-primary);
    --kit-button-text: var(--inv-bg);
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    background: var(--inv-bg);
    overflow-x: clip;
}
.onix h1, .onix h2, .onix h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.12; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.onix) :is(h1, h2, h3) { margin: 0; }
:where(.onix) p { margin: 0 0 .9em; }
.onix a { color: var(--inv-primary); }
.ox-kicker { font-size: .7rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }

/* Light plate for logos, so any logo reads on any palette */
.ox-plate { display: grid; place-items: center; background: var(--ox-plate); border-radius: 2px; }
.ox-plate img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }

/* Buttons */
.ox-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; text-decoration: none;
    font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--ox-line); color: var(--inv-primary);
    transition: background .25s, color .25s;
}
.ox-button:hover { background: color-mix(in srgb, var(--inv-primary) 14%, transparent); }
.ox-button--solid { background: var(--inv-primary); color: var(--inv-bg); border-color: var(--inv-primary); }
.ox-button--solid:hover { background: color-mix(in srgb, var(--inv-primary) 82%, white); }
.onix .ox-button { color: var(--inv-primary); }
.onix .ox-button--solid { color: var(--inv-bg); }
.onix .kit-button { border-radius: 0; border: 1px solid var(--ox-line); color: var(--inv-primary); background: transparent; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 10px 16px; text-decoration: none; }
.onix .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* ---------- Numbered titles ---------- */
.ox-title { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 18px; padding-bottom: 18px; margin-bottom: clamp(30px, 5vw, 52px); border-bottom: 1px solid var(--ox-hair); }
.ox-title-no { font-family: var(--inv-font-heading); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--inv-primary); line-height: 1; }
.ox-title h2 { font-family: var(--inv-font-body); font-weight: 500; font-size: clamp(.9rem, 2.6vw, 1.05rem); letter-spacing: .32em; text-transform: uppercase; }

/* ---------- Navigation ---------- */
.ox-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: flex-end; align-items: center; padding: 20px clamp(16px, 4vw, 44px); }
.ox-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 26px; }
.ox-nav a { text-decoration: none; font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ox-ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; }
.ox-nav a:hover, .ox-nav a.is-current { color: var(--inv-primary); border-bottom-color: var(--inv-primary); }
.ox-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-size: 1.15rem; letter-spacing: .06em; text-transform: none; color: var(--inv-text); margin-right: auto; border: 0; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ox-nav.is-stuck { padding: 8px clamp(16px, 4vw, 44px); background: color-mix(in srgb, var(--inv-bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--ox-hair); }
.onix .kit-to-top { border-radius: 0; background: var(--inv-bg); border: 1px solid var(--ox-line); color: var(--inv-primary); }
@media (max-width: 899px) {
    .ox-nav { padding: 12px; }
    .ox-nav .kit-nav-toggle { width: 44px; height: 44px; color: var(--inv-primary); background: color-mix(in srgb, var(--inv-bg) 80%, transparent); border: 1px solid var(--ox-line); font-size: 1.15rem; }
    .ox-nav .kit-nav-links { display: none; }
    .ox-nav.is-open .kit-nav-links {
        display: flex; flex-direction: column; gap: 14px; position: absolute; top: 64px; left: 12px; right: 12px;
        padding: 26px; background: var(--inv-bg); border: 1px solid var(--ox-line);
    }
    .ox-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero: the card ---------- */
.ox-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 100px 16px 70px; overflow: clip; isolation: isolate; }
.ox-hero-photo { position: absolute; inset: 0; margin: 0; z-index: -1; }
.ox-hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.55); }
.ox-hero-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 50%, color-mix(in srgb, var(--inv-bg) 35%, transparent), var(--inv-bg)); }
.ox-stage { perspective: 1400px; width: min(560px, 100%); }
/* The gilt edge is a 2px gradient frame; the face is the glossy card */
.ox-card {
    --rx: 0deg; --ry: 0deg; --gx: 30%; --gy: 20%;
    position: relative; padding: 2px; background: var(--ox-gilt); border-radius: 6px;
    transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1);
    box-shadow: 0 2px 0 color-mix(in srgb, var(--inv-accent) 80%, black), 0 40px 80px -30px rgba(0, 0, 0, .7), 0 18px 30px -18px rgba(0, 0, 0, .6);
}
.ox-card.is-tracking { transition: transform .12s linear; }
.ox-card-face {
    position: relative; overflow: hidden; border-radius: 4px; text-align: center;
    padding: clamp(40px, 8vw, 64px) clamp(24px, 7vw, 56px) clamp(34px, 6vw, 48px);
    background: linear-gradient(160deg, color-mix(in srgb, var(--inv-bg) 88%, var(--inv-text)), var(--inv-bg) 55%, color-mix(in srgb, var(--inv-bg) 94%, var(--inv-text)));
}
.ox-card-face::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--ox-line); border-radius: 2px; pointer-events: none; }
/* The reflection glides with the tilt */
.ox-card-sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at var(--gx) var(--gy), color-mix(in srgb, white 16%, transparent), transparent 70%), linear-gradient(115deg, transparent 35%, color-mix(in srgb, white 7%, transparent) 48%, transparent 60%); mix-blend-mode: screen; }
.ox-card-face > *:not(.ox-card-sheen) { position: relative; }
.ox-card-logo { width: min(220px, 60%); height: 66px; margin: 0 auto 28px; padding: 10px 16px; }
.ox-card-company { font-family: var(--inv-font-heading); font-size: 1.4rem; letter-spacing: .08em; margin-bottom: 22px; }
.ox-card-title { font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.05; margin: 4px 0 14px; overflow-wrap: anywhere; }
.ox-card-subtitle { color: var(--ox-ink-soft); max-width: 38ch; margin: 0 auto 22px; }
.ox-facts { display: grid; gap: 0; margin: 0 0 28px; border-top: 1px solid var(--ox-hair); border-bottom: 1px solid var(--ox-hair); }
.ox-facts div { padding: 14px 10px; }
.ox-facts div + div { border-top: 1px solid var(--ox-hair); }
@media (min-width: 520px) {
    .ox-facts { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
    .ox-facts div + div { border-top: 0; border-left: 1px solid var(--ox-hair); }
}
.ox-facts dt { font-size: .66rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--inv-primary); margin-bottom: 4px; }
.ox-facts dd { margin: 0; font-family: var(--inv-font-heading); font-size: 1.1rem; line-height: 1.35; }
.ox-card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@keyframes ox-arrive { from { opacity: 0; transform: translateY(40px) rotateX(18deg); } to { opacity: 1; transform: none; } }
.kit-js .ox-stage { animation: ox-arrive 1.3s cubic-bezier(.2, .7, .2, 1) .1s both; }

/* ---------- Sections ---------- */
.ox-main { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }
.ox-section { padding-top: clamp(80px, 12vw, 130px); }

.ox-lede { max-width: 760px; }
.ox-lede p { font-family: var(--inv-font-heading); font-size: clamp(1.3rem, 3.6vw, 1.75rem); line-height: 1.45; }
.ox-lede p + p { font-family: var(--inv-font-body); font-size: 1.05rem; line-height: 1.7; color: var(--ox-ink-soft); }
.ox-quote-author { font-style: italic; color: var(--inv-primary); }

/* Organizer */
.ox-organizer-grid { display: grid; gap: 30px; }
.ox-organizer-logo { width: 240px; height: 84px; padding: 14px 20px; margin-bottom: 16px; }
.ox-organizer-name { font-family: var(--inv-font-heading); font-size: 1.6rem; margin: 0; }
.ox-columns { color: var(--ox-ink-soft); }
@media (min-width: 860px) {
    .ox-organizer-grid { grid-template-columns: 300px 1fr; gap: 60px; }
    .ox-columns { columns: 2; column-gap: 40px; }
}

/* History */
.ox-history { list-style: none; margin: 0; padding: 0; }
.ox-milestone { display: grid; gap: 14px 40px; padding: 30px 0; border-bottom: 1px solid var(--ox-hair); }
.ox-milestone:first-child { padding-top: 0; }
.ox-milestone-date { font-family: var(--inv-font-heading); font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: 1; color: var(--inv-primary); margin: 0; font-variant-numeric: lining-nums; }
.ox-milestone-body h3 { font-size: 1.6rem; margin-bottom: 8px; }
.ox-milestone-body p { color: var(--ox-ink-soft); }
.ox-milestone-photo { margin: 0; }
.ox-milestone-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(.2); }
@media (min-width: 900px) { .ox-milestone { grid-template-columns: 220px 1fr 340px; align-items: start; } }

/* Agenda */
.ox-agenda-date { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.3rem; color: var(--ox-ink-soft); margin-top: -20px; }
.ox-agenda-list { list-style: none; margin: 0; padding: 0; }
.ox-slot { display: grid; grid-template-columns: 74px 1fr; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--ox-hair); }
.ox-slot-time { font-family: var(--inv-font-heading); font-size: 1.35rem; color: var(--inv-primary); margin: 0; font-variant-numeric: lining-nums tabular-nums; }
.ox-slot-body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.ox-slot-speaker { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
.ox-slot-text { color: var(--ox-ink-soft); font-size: .96rem; margin: 0; }
.ox-slot-track { grid-column: 2; justify-self: start; font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); border: 1px solid var(--ox-line); padding: 3px 10px; margin: 6px 0 0; }
@media (min-width: 760px) {
    .ox-slot { grid-template-columns: 120px 1fr 160px; align-items: baseline; }
    .ox-slot-time { font-size: 1.6rem; }
    .ox-slot-track { grid-column: 3; justify-self: end; margin: 0; }
}

/* Speakers: black-and-white portraits */
.ox-speaker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; }
@media (min-width: 900px) { .ox-speaker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ox-speaker-photo { position: relative; margin: 0 0 16px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ox-raised); display: grid; place-items: center; }
.ox-speaker-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s, transform .6s; }
.ox-speaker:hover .ox-speaker-photo img { filter: grayscale(.2); transform: scale(1.03); }
.ox-speaker-photo::after { content: ""; position: absolute; inset: 8px; border: 1px solid transparent; transition: border-color .4s; pointer-events: none; }
.ox-speaker:hover .ox-speaker-photo::after { border-color: var(--inv-primary); }
.ox-speaker-photo span { font-family: var(--inv-font-heading); font-size: 4rem; color: var(--inv-primary); }
.ox-speaker h3 { font-size: 1.3rem; margin-bottom: 2px; }
.ox-speaker-role { font-size: .84rem; color: var(--ox-ink-soft); margin-bottom: 8px; }
.ox-speaker-bio summary { cursor: pointer; font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-primary); list-style: none; }
.ox-speaker-bio summary::-webkit-details-marker { display: none; }
.ox-speaker-bio summary::after { content: " +"; }
.ox-speaker-bio[open] summary::after { content: " −"; }
.ox-speaker-bio p { font-size: .92rem; color: var(--ox-ink-soft); margin-top: 8px; }

/* Venues */
.ox-venues { display: grid; gap: 1px; background: var(--ox-hair); border: 1px solid var(--ox-hair); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ox-venue { background: var(--inv-bg); padding: 34px 28px 28px; }
.ox-venue-time { font-family: var(--inv-font-heading); font-size: 2.6rem; line-height: 1; color: var(--inv-primary); margin-bottom: 14px; }
.ox-venue h3 { font-size: 1.45rem; margin-bottom: 8px; }
.ox-venue-place { font-family: var(--inv-font-heading); font-size: 1.15rem; margin: 12px 0 2px; }
.ox-venue-address, .ox-venue-notes { color: var(--ox-ink-soft); font-size: .95rem; }
.ox-venue .kit-event-actions { justify-content: flex-start; }

/* Countdown */
.ox-countdown { text-align: center; }
.ox-countdown .kit-countdown { gap: 0; max-width: 760px; margin: 0 auto; border-top: 1px solid var(--ox-hair); border-bottom: 1px solid var(--ox-hair); }
.ox-countdown .kit-countdown-unit { flex: 1 1 0; min-width: 0; padding: 22px 6px; }
.ox-countdown .kit-countdown-unit + .kit-countdown-unit { border-left: 1px solid var(--ox-hair); }
.ox-countdown .kit-countdown-value { font-size: clamp(2.4rem, 9vw, 4.4rem); color: var(--inv-primary); font-variant-numeric: lining-nums tabular-nums; }
.ox-countdown .kit-countdown-label { letter-spacing: .26em; font-weight: 500; }

/* Gallery: editorial grid, the first photo large */
.ox-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ox-gallery-grid.kit-gallery a { border-radius: 0; aspect-ratio: 1; }
.ox-gallery-grid.kit-gallery a:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.ox-gallery-grid.kit-gallery img { filter: grayscale(.25); }
@media (min-width: 900px) {
    .ox-gallery-grid.kit-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ox-gallery-grid.kit-gallery a:first-child { grid-row: span 2; aspect-ratio: auto; }
}

/* Partners */
.ox-tier + .ox-tier { margin-top: 34px; }
.ox-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 12px; }
.ox-logo { height: 92px; padding: 18px 22px; text-decoration: none; transition: transform .3s, box-shadow .3s; }
a.ox-logo:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6); }
.ox-logo-name { font-family: var(--inv-font-heading); font-size: 1.2rem; color: #1A1A1E; text-align: center; }

/* RSVP: the reply card, same gilt edge as the invitation */
.ox-reply { max-width: 700px; margin: 0 auto; padding: 2px; background: var(--ox-gilt); border-radius: 6px; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7); }
.ox-reply-face { background: var(--inv-bg); border-radius: 4px; padding: clamp(34px, 6vw, 56px) clamp(22px, 6vw, 52px); }
.ox-reply .ox-title { border-bottom-color: var(--ox-line); }
.onix .inv-rsvp__intro, .onix .inv-rsvp__deadline { text-align: left; }
.onix .inv-rsvp__intro { font-family: var(--inv-font-heading); font-size: 1.2rem; }
.onix .inv-rsvp__deadline { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }
.onix .inv-rsvp__field label, .onix .inv-rsvp__field legend { font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ox-ink-soft); }
.onix .inv-rsvp__field input:not([type=checkbox]):not([type=radio]), .onix .inv-rsvp__field select { border-width: 0 0 1px; padding-left: 0; }
.onix .inv-rsvp__choice label { font-family: var(--inv-font-heading); font-size: 1.1rem; }
.onix .inv-rsvp__submit { border-radius: 0; letter-spacing: .26em; text-transform: uppercase; font-size: .78rem; font-weight: 500; }
.onix .inv-rsvp__message { border-radius: 0; }

/* Info, contact */
.ox-info-grid { display: grid; gap: 1px; background: var(--ox-hair); border: 1px solid var(--ox-hair); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ox-info-item { background: var(--inv-bg); padding: 28px 26px 18px; }
.ox-info-item h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--inv-primary); }
.ox-info-item p { color: var(--ox-ink-soft); }
.ox-faq { max-width: 760px; margin-top: 46px; }
.ox-faq details { border-top: 1px solid var(--ox-hair); }
.ox-faq details:last-child { border-bottom: 1px solid var(--ox-hair); }
.ox-faq summary { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative; font-family: var(--inv-font-heading); font-size: 1.2rem; }
.ox-faq summary::-webkit-details-marker { display: none; }
.ox-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--inv-primary); font-family: var(--inv-font-body); font-size: 1.3rem; transition: transform .3s; }
.ox-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ox-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; }
.ox-faq details p { color: var(--ox-ink-soft); }
.ox-contact-list { display: flex; flex-wrap: wrap; gap: 26px 80px; }
.ox-contact-name { font-family: var(--inv-font-heading); font-size: 1.5rem; margin-bottom: 2px; }
.ox-contact-person a { text-decoration: none; letter-spacing: .08em; }

/* Footer */
.ox-footer { text-align: center; margin-top: clamp(90px, 13vw, 140px); padding: clamp(60px, 9vw, 90px) 16px 70px; border-top: 1px solid var(--ox-hair); }
.ox-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.3rem; color: var(--ox-ink-soft); }
.ox-footer-title { font-family: var(--inv-font-heading); font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1.1; margin: 8px 0 12px; }
.ox-hashtag { font-size: .8rem; letter-spacing: .2em; color: var(--inv-primary); }
.ox-footer-thanks { font-size: .76rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
    .kit-js .ox-stage { animation: none; }
    .ox-card { transform: none !important; }
}
