/* TG EVENTS MIDDLE - WP Coder build - CSS tab */
/* ============================================================
   ENDLESS EVENTS PAGE - middle section
   Sits between the parallax hero (fixed canvas at z-index -1)
   and the ENDLESS instant-quote widget.
   Theme: white, black, film grain, industrial minimalism.
   Accent: Tesla Blue #3E6AE1. Hard 2px corners. Helvetica.
   No blank lines inside this file (wpautop safety convention).
   ============================================================ */
.tgm-events {
    --tgm-bg: #ffffff;
    --tgm-text: #0b0b0b;
    --tgm-muted: #5f5f5f;
    --tgm-dim: #9a9a9a;
    --tgm-line: rgba(0, 0, 0, 0.12);
    --tgm-line-strong: rgba(0, 0, 0, 0.30);
    --tgm-blue: #3E6AE1;
    --tgm-blue-soft: rgba(62, 106, 225, 0.10);
    --tgm-font: "Haas Grot Text Trial", "Helvetica Neue", "Inter", -apple-system, Arial, sans-serif;
    --tgm-disp: "Haas Grot Disp Trial", "Haas Grot Text Trial", "Helvetica Neue", "Inter", -apple-system, Arial, sans-serif;
    --tgm-mono: "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
    --tgm-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 2;
    background: var(--tgm-bg);
    color: var(--tgm-text);
    font-family: var(--tgm-font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: clip;
}
.tgm-events *, .tgm-events *::before, .tgm-events *::after { box-sizing: border-box; }
.tgm-events a { color: inherit; }
/* WordPress hardening: wpautop-style filters can inject stray br/p
   nodes between the markup lines; inside grid/flex rows every stray
   node becomes a layout item and shatters the design. Kill them. */
.tgm-row br, .tgm-index-head br, .tgm-ledger-row br, .tgm-stats br,
.tgm-manifesto-top br, .tgm-marquee br, .tgm-kicker br { display: none; }
.tgm-row > p:empty, .tgm-ledger-row > p:empty { display: none; }
.tgm-events a.tgm-row,
.tgm-events a.tgm-row:hover,
.tgm-events a.tgm-row:visited { text-decoration: none; box-shadow: none; }
.tgm-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(72px, 11vw, 150px) clamp(20px, 4vw, 48px) 0;
}
/* ---------- Mono kicker label ---------- */
.tgm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--tgm-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tgm-muted);
    margin-bottom: clamp(28px, 4vw, 52px);
}
.tgm-kicker-dot {
    width: 8px;
    height: 8px;
    background: var(--tgm-blue);
    flex: none;
    animation: tgm-blink 2.6s steps(1) infinite;
}
@keyframes tgm-blink {
    0%, 78%, 100% { opacity: 1; }
    82%, 88% { opacity: 0.25; }
}
/* ---------- Display typography ---------- */
.tgm-display {
    margin: 0;
    font-family: var(--tgm-disp);
    font-size: clamp(44px, 9.6vw, 124px);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}
.tgm-display-sm { font-size: clamp(38px, 7vw, 92px); }
.tgm-display .tgm-blue { font-style: normal; color: var(--tgm-blue); }
.tgm-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--tgm-text);
    transition: color 0.5s var(--tgm-ease), -webkit-text-stroke-color 0.5s var(--tgm-ease);
}
.tgm-outline:hover {
    color: var(--tgm-blue);
    -webkit-text-stroke-color: var(--tgm-blue);
}
/* Line-mask reveal: each line slides up out of its own crop */
.tgm-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.tgm-line-inner {
    display: inline-block;
    transform: translateY(115%);
    transition: transform 1.1s var(--tgm-ease);
    will-change: transform;
}
.tgm-in .tgm-line:nth-child(1) .tgm-line-inner { transition-delay: 0s; }
.tgm-in .tgm-line:nth-child(2) .tgm-line-inner { transition-delay: 0.09s; }
.tgm-in .tgm-line:nth-child(3) .tgm-line-inner { transition-delay: 0.18s; }
.tgm-in .tgm-line:nth-child(4) .tgm-line-inner { transition-delay: 0.27s; }
.tgm-in .tgm-line-inner { transform: translateY(0); }
/* ---------- Generic scroll reveal ---------- */
.tgm-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--tgm-ease), transform 0.9s var(--tgm-ease);
    will-change: opacity, transform;
}
.tgm-reveal.tgm-in { opacity: 1; transform: translateY(0); }
/* ---------- Manifesto header row: kicker + language toggle ---------- */
.tgm-manifesto-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: clamp(28px, 4vw, 52px);
}
.tgm-manifesto-top .tgm-kicker { margin-bottom: 0; }
.tgm-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--tgm-mono);
}
.tgm-lang-btn {
    appearance: none;
    background: none;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 4px 8px;
    font-family: var(--tgm-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--tgm-dim);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.tgm-lang-btn:hover { color: var(--tgm-text); }
.tgm-lang-btn.tgm-lang-active {
    color: var(--tgm-blue);
    border-color: var(--tgm-blue);
    background: var(--tgm-blue-soft);
}
.tgm-lang-btn:focus-visible { outline: 2px solid var(--tgm-blue); outline-offset: 2px; }
.tgm-lang-sep { color: var(--tgm-line-strong); font-size: 11px; }
/* ---------- Manifesto ---------- */
.tgm-manifesto-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-top: clamp(36px, 5vw, 64px);
    padding-top: 28px;
    border-top: 1px solid var(--tgm-line);
}
.tgm-sub {
    margin: 0;
    max-width: 46ch;
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--tgm-muted);
}
.tgm-stats {
    display: flex;
    gap: clamp(24px, 4vw, 56px);
    list-style: none;
    margin: 0;
    padding: 0;
}
.tgm-stats li { display: flex; flex-direction: column; gap: 2px; }
.tgm-stats strong {
    font-family: var(--tgm-disp);
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.tgm-stats span {
    font-family: var(--tgm-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tgm-dim);
    white-space: nowrap;
}
/* ---------- LIFE / LOVE / MEDIA index ---------- */
.tgm-index { padding-bottom: 0; }
.tgm-index-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.tgm-index-hint {
    font-family: var(--tgm-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tgm-dim);
}
.tgm-row {
    position: relative;
    display: grid;
    grid-template-columns: 3.2em 1fr auto 44px;
    align-items: center;
    gap: clamp(14px, 3vw, 36px);
    padding: clamp(22px, 3.4vw, 40px) clamp(10px, 1.6vw, 20px);
    border-top: 1px solid var(--tgm-line-strong);
    text-decoration: none;
    isolation: isolate;
    cursor: pointer;
}
.tgm-row:last-of-type { border-bottom: 1px solid var(--tgm-line-strong); }
.tgm-row::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #0b0b0b;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.5s var(--tgm-ease);
    z-index: -1;
}
.tgm-row:hover::before, .tgm-row:focus-visible::before { transform: scaleY(1); transform-origin: bottom center; }
.tgm-row-idx {
    font-family: var(--tgm-mono);
    font-size: clamp(11px, 1.2vw, 13px);
    letter-spacing: 0.14em;
    color: var(--tgm-dim);
    transition: color 0.35s ease;
}
.tgm-row-word {
    font-family: var(--tgm-disp);
    font-size: clamp(42px, 7.6vw, 96px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    transition: color 0.35s ease, transform 0.5s var(--tgm-ease);
}
.tgm-row-tags {
    font-family: var(--tgm-mono);
    font-size: clamp(10px, 1.1vw, 12px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tgm-muted);
    text-align: right;
    max-width: 30ch;
    transition: color 0.35s ease;
}
.tgm-row-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid var(--tgm-line-strong);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.35s ease, background 0.35s ease, transform 0.5s var(--tgm-ease);
}
.tgm-row-arrow svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s var(--tgm-ease);
}
.tgm-row:hover .tgm-row-idx { color: var(--tgm-blue); }
.tgm-row:hover .tgm-row-word { color: #ffffff; transform: translateX(clamp(6px, 1.4vw, 18px)); }
.tgm-row:hover .tgm-row-tags { color: rgba(255, 255, 255, 0.72); }
.tgm-row:hover .tgm-row-arrow { border-color: var(--tgm-blue); background: var(--tgm-blue); color: #ffffff; transform: rotate(45deg); }
.tgm-row:focus-visible { outline: 2px solid var(--tgm-blue); outline-offset: -2px; }
.tgm-row:focus-visible .tgm-row-word { color: #ffffff; }
/* Floating image peek that trails the cursor over the index */
.tgm-peek {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 26vw);
    aspect-ratio: 3 / 4;
    z-index: 9990;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9) rotate(-2deg);
    transition: opacity 0.35s ease, transform 0.5s var(--tgm-ease);
    overflow: hidden;
    background: #101010;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.tgm-peek.tgm-peek-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
.tgm-peek img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.06);
    display: block;
}
.tgm-peek-caption {
    position: absolute;
    left: 10px;
    bottom: 8px;
    font-family: var(--tgm-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}
@media (hover: none), (pointer: coarse) {
    .tgm-peek { display: none; }
}
/* ---------- Rates ledger ---------- */
.tgm-ledger { border-top: 1px solid var(--tgm-line-strong); }
.tgm-ledger-row {
    display: flex;
    align-items: baseline;
    gap: clamp(14px, 2.4vw, 28px);
    padding: clamp(18px, 2.6vw, 30px) clamp(4px, 1vw, 12px);
    border-bottom: 1px solid var(--tgm-line);
    transition: background 0.3s ease, padding 0.4s var(--tgm-ease);
}
.tgm-ledger-row:hover { background: var(--tgm-blue-soft); padding-left: clamp(12px, 2vw, 24px); }
.tgm-ledger-name {
    font-family: var(--tgm-disp);
    font-size: clamp(19px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.tgm-ledger-fill {
    flex: 1;
    border-bottom: 1px dotted var(--tgm-line-strong);
    transform: translateY(-0.35em);
}
.tgm-ledger-price { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.tgm-ledger-price strong {
    font-family: var(--tgm-disp);
    font-size: clamp(24px, 3.2vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.tgm-ledger-row:hover .tgm-ledger-price strong { color: var(--tgm-blue); }
.tgm-ledger-price em {
    font-style: normal;
    font-family: var(--tgm-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tgm-dim);
}
.tgm-note {
    margin: 22px 0 0;
    font-family: var(--tgm-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--tgm-muted);
    max-width: 62ch;
}
/* ---------- Staircase process (the Endless nod) ---------- */
.tgm-stairlist {
    --tgm-step: clamp(28px, 4.5vw, 64px);
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2.4vw, 32px);
    align-items: start;
}
.tgm-stair {
    border-top: 3px solid var(--tgm-text);
    padding: 18px 4px 0;
    position: relative;
}
/* Treads step down by margin-top, so the rise between every stair
   is identical no matter how long each stair's text runs. */
.tgm-stair:nth-child(1) { margin-top: calc(var(--tgm-step) * 3); }
.tgm-stair:nth-child(2) { margin-top: calc(var(--tgm-step) * 2); }
.tgm-stair:nth-child(3) { margin-top: var(--tgm-step); }
.tgm-stair:nth-child(4) { margin-top: 0; }
.tgm-stair:nth-child(4) { border-top-color: var(--tgm-blue); }
.tgm-stair::before {
    content: "";
    position: absolute;
    top: -3px;
    right: 100%;
    width: clamp(16px, 2.4vw, 32px);
    height: var(--tgm-step);
    border-right: 3px solid var(--tgm-text);
    display: none;
}
.tgm-stair:nth-child(n+2)::before { display: block; }
.tgm-stair:nth-child(4)::before { border-right-color: var(--tgm-blue); }
.tgm-stair-idx {
    font-family: var(--tgm-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--tgm-dim);
    display: block;
    margin-bottom: 10px;
}
.tgm-stair h3 {
    margin: 0 0 10px;
    font-family: var(--tgm-disp);
    font-size: clamp(17px, 1.9vw, 23px);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.1;
}
.tgm-stair p {
    margin: 0;
    font-size: clamp(13px, 1.3vw, 15px);
    color: var(--tgm-muted);
}
/* ---------- Marquee band ---------- */
.tgm-marquee {
    margin-top: clamp(80px, 12vw, 160px);
    background: #0b0b0b;
    color: #ffffff;
    overflow: hidden;
    padding: clamp(20px, 3vw, 34px) 0;
    transform: rotate(-1.2deg) scale(1.02);
}
/* Top variant: the divider between the parallax hero and the page */
.tgm-marquee-top {
    margin-top: 0;
    margin-bottom: clamp(8px, 1.5vw, 20px);
    background: #0b0b0b;
    color: #ffffff;
    overflow: hidden;
    padding: clamp(20px, 3vw, 34px) 0;
    transform: rotate(-1.2deg) scale(1.02);
}
.tgm-marquee-track {
    display: flex;
    width: max-content;
    animation: tgm-marquee 26s linear infinite;
    will-change: transform;
}
.tgm-marquee-chunk {
    font-family: var(--tgm-disp);
    font-size: clamp(22px, 3.4vw, 42px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 0.6em;
}
.tgm-marquee-chunk i {
    font-style: normal;
    color: var(--tgm-blue);
    font-size: 0.55em;
    vertical-align: 0.25em;
    padding: 0 0.5em;
}
@keyframes tgm-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.tgm-marquee:hover .tgm-marquee-track { animation-play-state: paused; }
/* ---------- Quote lead-in ---------- */
.tgm-quote-head {
    text-align: center;
    padding-bottom: clamp(56px, 8vw, 110px);
    scroll-margin-top: 40px;
}
.tgm-quote-head .tgm-kicker { justify-content: center; }
.tgm-down {
    display: inline-flex;
    margin-top: clamp(28px, 4vw, 48px);
    width: 52px;
    height: 52px;
    border: 1px solid var(--tgm-line-strong);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    animation: tgm-bob 2.4s var(--tgm-ease) infinite;
}
.tgm-down svg {
    width: 15px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@keyframes tgm-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(9px); }
}
/* ---------- Page-level custom cursor ---------- */
.tgm-cursor-dot, .tgm-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483100;
    pointer-events: none;
    border-radius: 50%;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.tgm-cursor-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    transform: translate(-50%, -50%);
}
.tgm-cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid #ffffff;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, width 0.3s var(--tgm-ease), height 0.3s var(--tgm-ease), border-color 0.3s ease, background 0.3s ease;
}
body.tgm-cursor-visible .tgm-cursor-dot, body.tgm-cursor-visible .tgm-cursor-ring { opacity: 1; }
body.tgm-cursor-visible.tgm-cursor-parked .tgm-cursor-dot, body.tgm-cursor-visible.tgm-cursor-parked .tgm-cursor-ring { opacity: 0; }
.tgm-cursor-ring.tgm-cursor-hover {
    width: 56px;
    height: 56px;
    border-color: #3E6AE1;
    mix-blend-mode: normal;
    background: rgba(62, 106, 225, 0.08);
}
.tgm-cursor-ring.tgm-cursor-down { width: 26px; height: 26px; }
@media (hover: none), (pointer: coarse) {
    .tgm-cursor-dot, .tgm-cursor-ring { display: none; }
}
/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .tgm-manifesto-foot { flex-direction: column; align-items: flex-start; gap: 28px; }
    .tgm-stats { flex-wrap: wrap; gap: 20px 32px; max-width: 100%; }
    .tgm-row { grid-template-columns: 2.4em 1fr 34px; }
    .tgm-row-tags { display: none; }
    .tgm-stairlist { grid-template-columns: 1fr 1fr; align-items: start; }
    .tgm-stair { margin-bottom: 0 !important; }
    .tgm-stair::before { display: none !important; }
    .tgm-stair p { max-width: none; }
}
@media (max-width: 520px) {
    .tgm-stairlist { grid-template-columns: 1fr; }
    .tgm-index-hint { display: none; }
}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .tgm-line-inner, .tgm-reveal { transition: none !important; transform: none !important; opacity: 1 !important; }
    .tgm-marquee-track { animation: none; }
    .tgm-down { animation: none; }
    .tgm-kicker-dot { animation: none; }
    .tgm-peek { display: none; }
    .tgm-cursor-dot, .tgm-cursor-ring { display: none; }
}