/* ==========================================================================
   Atlas - a corporate invitation drawn like an old atlas, made modern: an engraved globe turns in the opening while
   routes between cities draw themselves, a navigation chart with a dashed course runs behind the page, and the
   agenda is a set of boarding passes
   Palette: --inv-primary (the ink), --inv-accent (brass), --inv-bg (paper or ocean), --inv-text
   script.js sets --tl-route (0-1, how far down the page) on <html>
   ========================================================================== */

html { --tl-route: 0; }
.atlas {
    --tl-ink-soft: color-mix(in srgb, var(--inv-text) 70%, var(--inv-bg));
    --tl-paper: color-mix(in srgb, var(--inv-surface) 92%, var(--inv-accent));
    --tl-line: color-mix(in srgb, var(--inv-primary) 22%, transparent);
    --tl-fine: color-mix(in srgb, var(--inv-primary) 10%, transparent);
    --tl-brass: var(--inv-accent);
    --tl-shadow: 0 24px 50px -34px color-mix(in srgb, var(--inv-primary) 50%, transparent);
    --tl-plate: color-mix(in srgb, white 95%, var(--inv-accent));
    --kit-radius: 8px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--tl-line);
    --kit-button-bg: var(--inv-primary);
    --kit-button-text: var(--inv-bg);
    font-family: var(--inv-font-body);
    font-size: 1.04rem;
    line-height: 1.7;
    background:
        linear-gradient(var(--tl-fine) 1px, transparent 1px) 0 0 / 120px 120px,
        linear-gradient(90deg, var(--tl-fine) 1px, transparent 1px) 0 0 / 120px 120px,
        var(--inv-bg);
    background-attachment: fixed;
    overflow-x: clip;
}
.atlas h1, .atlas h2, .atlas h3 { font-family: var(--inv-font-heading); font-weight: 500; line-height: 1.12; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.atlas) :is(h1, h2, h3) { margin: 0; }
:where(.atlas) p { margin: 0 0 .9em; }
.atlas a { color: var(--inv-primary); }
.tl-kicker { font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--tl-brass); margin: 0 0 10px; }
.tl-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--tl-line); font-size: .8rem; margin: 6px 0 0; }

/* ---------- The chart behind the page ---------- */
.tl-chart { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.tl-chart svg { width: 100%; height: 100%; }
.tl-course { fill: none; stroke: var(--tl-brass); stroke-width: 1.6; opacity: .4; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--tl-route)); }
.tl-rose circle, .tl-rose path { fill: none; stroke: var(--tl-line); stroke-width: 1.2; }
.tl-rose .tl-rose-fill { fill: var(--tl-line); stroke: none; }
.tl-rose { opacity: .8; }
.tl-hero, .tl-main, .tl-footer { position: relative; z-index: 1; }
.tl-hero { z-index: 2; }

/* ---------- The globe ---------- */
.tl-globe { display: block; width: 100%; height: auto; overflow: visible; }
.tl-globe-sea { fill: color-mix(in srgb, var(--inv-primary) 6%, transparent); }
.tl-globe-lines ellipse { fill: none; stroke: var(--inv-primary); stroke-width: .7; opacity: .55; }
.tl-globe-rim { fill: none; stroke: var(--inv-primary); stroke-width: 1.6; }
/* Each meridian narrows to a line and widens again, a sixth of a turn after the last: the globe seems to rotate */
.tl-meridian { transform-box: view-box; transform-origin: 0 0; animation: tl-spin 24s ease-in-out infinite alternate; animation-delay: calc(var(--m) * -4s); }
@keyframes tl-spin { from { transform: scaleX(1); } to { transform: scaleX(-1); } }
.tl-routes path { fill: none; stroke: var(--tl-brass); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, var(--tl-route) * 8 + .7, 1)); }
.tl-routes path:nth-child(2) { stroke-dashoffset: calc(1 - clamp(0, var(--tl-route) * 8 + .45, 1)); }
.tl-routes path:nth-child(3) { stroke-dashoffset: calc(1 - clamp(0, var(--tl-route) * 8 + .2, 1)); }
.tl-routes path:nth-child(4) { stroke-dashoffset: calc(1 - clamp(0, var(--tl-route) * 8 - .05, 1)); }
.tl-cities circle { fill: var(--tl-brass); stroke: var(--inv-bg); stroke-width: 1.5; }
.tl-globe-ring circle, .tl-globe-ring line { fill: none; stroke: var(--inv-primary); stroke-width: .8; opacity: .6; }
.tl-globe-ring { transform-box: view-box; transform-origin: 0 0; animation: tl-ring 140s linear infinite; }
@keyframes tl-ring { to { transform: rotate(360deg); } }

/* ---------- Paper cards ---------- */
.tl-glass { background: var(--tl-paper); border: 1px solid var(--tl-line); border-radius: 8px; box-shadow: var(--tl-shadow); }
.tl-glass--ring { box-shadow: 0 0 0 6px var(--inv-bg), 0 0 0 7px var(--tl-line), var(--tl-shadow); }
.tl-plate { display: grid; place-items: center; background: var(--tl-plate); border-radius: 8px; border: 1px solid var(--tl-line); }
.tl-plate img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }

/* Buttons */
.tl-button { display: inline-flex; align-items: center; min-height: 50px; padding: 12px 24px; border-radius: 4px; letter-spacing: .06em; text-decoration: none; font-weight: 500; border: 1px solid var(--tl-line); background: var(--tl-paper); transition: transform .2s, box-shadow .2s; }
.tl-button:hover { transform: translateY(-2px); }
.tl-button--solid { background: var(--inv-primary); border-color: var(--inv-primary); box-shadow: 0 14px 30px -16px var(--inv-primary); }
.atlas .tl-button { color: var(--inv-text); }
.atlas .tl-button--solid { color: var(--inv-bg); }
.atlas .kit-button { border-radius: 4px; border: 1px solid var(--tl-line); background: transparent; color: var(--inv-primary); font-size: .84rem; padding: 9px 16px; text-decoration: none; }
.atlas .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); border-color: var(--inv-primary); }

/* ---------- Titles: numbered legs of a journey ---------- */
.tl-main { counter-reset: leg; }
.tl-title { display: flex; align-items: baseline; gap: 16px; margin: 0 0 clamp(24px, 4vw, 40px); padding-bottom: 14px; border-bottom: 1px solid var(--tl-line); counter-increment: leg; }
.tl-title-mark::before { content: counter(leg, decimal-leading-zero); font-family: var(--inv-font-heading); font-style: italic; font-size: 1.1rem; color: var(--tl-brass); }
.tl-title h2 { font-size: clamp(1.7rem, 4.8vw, 2.6rem); }
.tl-contact .tl-title, .tl-rsvp .tl-title { justify-content: center; }

/* ---------- Navigation ---------- */
.tl-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: flex-end; padding: 16px clamp(16px, 4vw, 40px); }
.tl-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 18px; }
.tl-nav a { text-decoration: none; font-size: .84rem; color: var(--inv-text); padding: 6px 0; border-bottom: 1px solid transparent; }
.tl-nav a:hover, .tl-nav a.is-current { color: var(--inv-primary); border-bottom-color: var(--tl-brass); }
.tl-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.15rem; margin-right: auto; padding: 0; border: 0; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-nav.is-stuck { align-items: center; padding: 8px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--inv-bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--tl-line); }
.atlas .kit-to-top { border-radius: 50%; background: var(--tl-paper); border: 1px solid var(--tl-line); color: var(--inv-primary); }
@media (max-width: 899px) {
    .tl-nav { padding: 12px; }
    .tl-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--tl-paper); border: 1px solid var(--tl-line); color: var(--inv-primary); font-size: 1.2rem; }
    .tl-nav .kit-nav-links { display: none; }
    .tl-nav.is-open .kit-nav-links {
        display: flex; flex-direction: column; align-items: stretch; gap: 8px; position: absolute; top: 66px; left: 12px; right: 12px;
        padding: 18px 22px; border-radius: 12px; background: var(--inv-surface); box-shadow: var(--tl-shadow);
    }
    .tl-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero ---------- */
.tl-hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 90px clamp(16px, 4vw, 40px) 50px; }
.tl-hero-grid { display: grid; gap: 36px; width: min(1200px, 100%); margin: 0 auto; }
.tl-hero-logo { width: 220px; height: 66px; padding: 10px 16px; margin-bottom: 26px; }
.atlas .tl-hero-title { font-size: clamp(2.4rem, 6.6vw, 4.6rem); line-height: 1.06; margin-bottom: 18px; overflow-wrap: anywhere; }
.atlas .tl-subtitle { font-size: 1.16rem; max-width: 44ch; color: var(--tl-ink-soft); margin-bottom: 26px; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-hero-side { position: relative; }
.tl-hero-globe { width: min(440px, 100%); margin: 0 auto; }
.tl-wide-photo { margin: 0; aspect-ratio: 21 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--tl-line); box-shadow: var(--tl-shadow); }
.tl-wide-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) { .tl-wide-photo { aspect-ratio: 4 / 3; } }
.tl-facts { display: grid; margin: 18px auto 0; max-width: 440px; padding: 6px 22px; }
.tl-facts div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px 0; align-items: baseline; }
.tl-facts div + div { border-top: 1px dashed var(--tl-line); }
.tl-facts dt { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--tl-brass); }
.tl-facts dd { margin: 0; font-weight: 500; }
@media (min-width: 900px) { .tl-hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; } }
@keyframes tl-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.kit-js .tl-hero-title { animation: tl-rise 1.1s cubic-bezier(.2, .7, .2, 1) .1s both; }

/* ---------- Sections ---------- */
.tl-main { width: min(1200px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.tl-section { padding-top: clamp(70px, 11vw, 120px); }

.tl-welcome-card { padding: clamp(30px, 6vw, 60px); max-width: 900px; }
.atlas .tl-welcome-title { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 16px; }
.tl-welcome-card p:first-of-type { font-size: 1.26rem; line-height: 1.5; }
.tl-quote-author { color: var(--tl-brass); font-weight: 500; }

.tl-organizer-card { display: grid; gap: 26px; padding: clamp(26px, 5vw, 50px); }
.tl-organizer-logo { width: 240px; height: 80px; padding: 14px 20px; margin-bottom: 14px; }
.tl-organizer-name { font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.5rem; margin: 0; }
.tl-columns { color: var(--tl-ink-soft); }
@media (min-width: 860px) { .tl-organizer-card { grid-template-columns: 280px 1fr; gap: 50px; } .tl-columns { columns: 2; column-gap: 36px; } }

/* History: postcards with a stamp-like date */
.tl-milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tl-milestone { overflow: hidden; }
.tl-milestone-photo { margin: 0; aspect-ratio: 16 / 10; }
.tl-milestone-photo img { width: 100%; height: 100%; object-fit: cover; }
.tl-milestone-art { display: grid; place-items: center; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--inv-primary) 6%, var(--tl-paper)); }
.tl-milestone-globe { width: 42%; }
.tl-milestone-text { position: relative; padding: 22px 24px 12px; }
.tl-milestone-date { position: absolute; right: 18px; top: -26px; display: grid; place-items: center; min-width: 74px; height: 52px; padding: 0 10px; background: var(--tl-paper); border: 2px dashed var(--tl-brass); border-radius: 4px; font-family: var(--inv-font-heading); font-size: 1.5rem; color: var(--inv-primary); transform: rotate(-4deg); }
.tl-milestone h3 { font-size: 1.35rem; margin: 8px 0 6px; }
.tl-milestone p:not(.tl-milestone-date) { color: var(--tl-ink-soft); }

/* Agenda: boarding passes - the time on a stub, torn along a perforated line */
.tl-agenda-date { margin-top: -14px; margin-bottom: 22px; }
.tl-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tl-slot { position: relative; display: grid; grid-template-columns: 96px 1fr; align-items: stretch; background: var(--tl-paper); border: 1px solid var(--tl-line); border-radius: 10px; box-shadow: var(--tl-shadow); overflow: hidden; }
.tl-slot-dot { display: none; }
.tl-slot-time { display: grid; place-items: center; margin: 0; padding: 18px 8px; font-family: var(--inv-font-heading); font-size: 1.35rem; color: var(--inv-primary); font-variant-numeric: tabular-nums; border-right: 2px dashed var(--tl-line); background: color-mix(in srgb, var(--inv-accent) 10%, transparent); }
.tl-slot::before, .tl-slot::after { content: ""; position: absolute; left: 89px; width: 16px; height: 16px; border-radius: 50%; background: var(--inv-bg); border: 1px solid var(--tl-line); }
.tl-slot::before { top: -9px; } .tl-slot::after { bottom: -9px; }
.tl-slot-card { padding: 18px 22px 14px; background: none; border: 0; box-shadow: none; border-radius: 0; }
.tl-slot-card h3 { font-size: 1.28rem; margin-bottom: 4px; }
.tl-slot-speaker { font-weight: 500; margin: 0 0 6px; color: var(--tl-brass); }
.tl-slot-text { color: var(--tl-ink-soft); margin: 0; }
@media (min-width: 760px) { .tl-slot { grid-template-columns: 130px 1fr; } .tl-slot::before, .tl-slot::after { left: 122px; } .tl-slot-time { font-size: 1.6rem; } }

/* Speakers: portraits in a fine engraved ring */
.tl-speaker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; text-align: center; }
@media (min-width: 900px) { .tl-speaker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tl-speaker-photo { width: min(190px, 82%); aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px var(--inv-bg), 0 0 0 6px var(--tl-brass), 0 0 0 12px var(--inv-bg), 0 0 0 13px var(--tl-line); display: grid; place-items: center; }
.tl-speaker-photo img, .tl-speaker-photo span { width: 100%; height: 100%; object-fit: cover; }
.tl-speaker-photo span { display: grid; place-items: center; background: var(--tl-paper); font-family: var(--inv-font-heading); font-size: 3.4rem; color: var(--inv-primary); }
.tl-speaker h3 { font-size: 1.28rem; margin-bottom: 2px; }
.tl-speaker-role { font-size: .92rem; color: var(--tl-ink-soft); margin-bottom: 6px; }
.tl-speaker-bio summary { cursor: pointer; list-style: none; color: var(--tl-brass); font-weight: 500; font-size: .9rem; }
.tl-speaker-bio summary::-webkit-details-marker { display: none; }
.tl-speaker-bio summary::after { content: " +"; }
.tl-speaker-bio[open] summary::after { content: " −"; }
.tl-speaker-bio p { font-size: .92rem; color: var(--tl-ink-soft); margin-top: 8px; }

/* Venues: tickets with a perforated edge */
.tl-venues { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tl-venue { position: relative; padding: 28px 26px 22px; border-top: 6px solid var(--inv-primary); }
.tl-venue-time { font-family: var(--inv-font-heading); font-size: 2.6rem; line-height: 1; margin-bottom: 12px; color: var(--inv-primary); }
.tl-venue h3 { font-size: 1.45rem; margin-bottom: 6px; }
.tl-venue-place { font-weight: 500; margin: 10px 0 0; }
.tl-venue-address, .tl-venue-notes { color: var(--tl-ink-soft); margin: 0; }
.tl-venue .kit-event-actions { justify-content: flex-start; }

/* Countdown */
.tl-countdown { text-align: center; }
.tl-countdown-card { display: inline-block; padding: 22px clamp(16px, 4vw, 40px); max-width: 100%; }
.tl-countdown .kit-countdown { gap: clamp(14px, 5vw, 50px); }
.tl-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-size: clamp(2.4rem, 9vw, 4.2rem); color: var(--inv-primary); font-variant-numeric: tabular-nums; }
.tl-countdown .kit-countdown-label { opacity: .85; letter-spacing: .14em; }

/* Gallery: an even grid, every photo the same shape */
.tl-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tl-gallery-grid.kit-gallery a { border-radius: 8px; aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px var(--tl-line); }
@media (min-width: 900px) { .tl-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Partners */
.tl-tier + .tl-tier { margin-top: 30px; }
.tl-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); gap: 12px; }
.tl-logo { height: 90px; padding: 16px 20px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.tl-logo:hover { transform: translateY(-2px); box-shadow: var(--tl-shadow); }
.tl-logo-name { font-family: var(--inv-font-heading); font-weight: 600; color: #141A2A; text-align: center; }

/* RSVP */
.tl-reply { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 50px); }
.atlas .inv-rsvp__intro { font-size: 1.14rem; }
.atlas .inv-rsvp__deadline { font-weight: 500; color: var(--tl-brass); }
.atlas .inv-rsvp__choice label { border-radius: 6px; }

/* Info, contact */
.tl-info-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tl-info-item { padding: 26px 24px 14px; }
.tl-info-item h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--inv-primary); }
.tl-info-item p { color: var(--tl-ink-soft); }
.tl-faq { max-width: 820px; margin-top: 40px; }
.tl-faq details { margin-bottom: 10px; }
.tl-faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative; font-weight: 500; font-size: 1.06rem; border-radius: inherit; }
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--tl-brass); transition: transform .3s; }
.tl-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tl-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; }
.tl-faq details p { padding: 0 22px; color: var(--tl-ink-soft); }
.tl-faq details p:last-child { padding-bottom: 18px; }
.tl-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; text-align: center; }
.tl-contact-person { padding: 20px 26px; min-width: 240px; }
.tl-contact-name { font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.36rem; margin-bottom: 4px; }
.tl-contact-person a { text-decoration: none; }

/* Footer */
.tl-footer { text-align: center; padding: clamp(100px, 14vw, 150px) 16px 70px; }
.tl-footer-message { font-size: 1.22rem; color: var(--tl-ink-soft); }
.tl-footer-title { font-family: var(--inv-font-heading); font-weight: 600; font-size: clamp(2.4rem, 8vw, 4.4rem); line-height: 1.02; margin: 10px 0 12px; }
.tl-footer-thanks { margin-top: 20px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
    .tl-meridian, .tl-globe-ring, .kit-js .tl-hero-title { animation: none; }
    .tl-meridian { transform: scaleX(calc(cos(var(--m) * 30deg))); } /* still meridians, evenly spread */
    .tl-routes path, .tl-course { stroke-dashoffset: 0; }
}
