/* Druk Text Wide (from the client's PSD) — Medium for buttons, Heavy for display labels.
   NOTE: files are the Trial versions; replace with licensed webfonts before going live. */
@font-face {
    font-family: "Druk Text Wide";
    src: url("../fonts/druk-text-wide/DrukTextWide-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Druk Text Wide";
    src: url("../fonts/druk-text-wide/DrukTextWide-Heavy.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   S2 Con 2027 — homepage (route: /preview2027)
   Built 1:1 from CSC_S2_2027_Web_Mockup_v2.psd · Artboard 3 (1105px wide).
   Desktop sizes use --u (1 mockup pixel), so proportions match the mockup
   and scale with the viewport up to a 1440px canvas.
   ========================================================================== */

body.s2-2027-page {
    --s2-27-red: #E61519;
    --s2-27-black: #000;
    --s2-27-gray: #AFAFAF;
    --s2-27-white: #fff;

    /* Typography from the Figma (S2CON27): Bebas Neue / Archivo Black / Albert Sans */
    --s2-27-font-bebas: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
    /* PSD fonts first (if licensed webfonts are added), then free Google Fonts look-alikes:
       Druk Text Wide -> Archivo Expanded, Gotham -> Montserrat */
    --s2-27-font-wide: "Druk Text Wide", "Archivo", "Arial Black", sans-serif;
    --s2-27-font-body: "Gotham", "Montserrat", Arial, sans-serif;
    --s2-27-btn-radius: 0; /* straight edges, as in the PSD */

    /* --u = 1px of the PSD (1105 canvas), --f = 1px of the Figma (1440 canvas) */
    --u: calc(min(100vw, 1440px) / 1105);
    --f: calc(min(100vw, 1440px) / 1440);
    --s2-27-shell: calc(var(--u) * 1105);

    margin: 0;
    background: var(--s2-27-white);
    color: var(--s2-27-black);
    font-family: var(--s2-27-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Low-specificity resets: neutralise the theme (style.css / custom.css) globals
   without fighting the component classes below. */
:where(body.s2-2027-page) :is(h1, h2, h3, h4, p, span, a, li, button, small, i, strong) {
    font-family: inherit;
}

:where(body.s2-2027-page) :is(h1, h2, h3, p, ul, figure) {
    margin: 0;
    padding: 0;
    letter-spacing: normal;
}

:where(body.s2-2027-page) :is(section, header, footer, nav) {
    padding: 0;
    overflow: visible;
}

body.s2-2027-page ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.s2-2027-page a:hover,
body.s2-2027-page a:focus {
    text-decoration: none;
}

body.s2-2027-page img {
    max-width: none;
}

body.s2-2027-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.s2-27-shell {
    position: relative;
    width: var(--s2-27-shell);
    margin: 0 auto;
}

/* Shared type ------------------------------------------------------------- */
.s2-27-wide {
    font-family: var(--s2-27-font-wide);
    font-stretch: 125%;
    font-weight: 900;
}

/* Straight-edge button (mockup) */
.s2-27-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--u) * 259);
    height: calc(var(--u) * 76);
    border: 0;
    border-radius: var(--s2-27-btn-radius);
    background: var(--s2-27-red);
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-wide);
    font-stretch: 125%;
    font-weight: 500;
    font-size: calc(var(--u) * 20);
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    gap: calc(var(--f) * 10);
}

.s2-27-btn:hover,
.s2-27-btn:focus {
    background: #080808;
    color: var(--s2-27-white);
    transform: translateY(-2px);
}

.s2-27-btn--sm {
    width: calc(var(--u) * 165);
    height: calc(var(--u) * 50);
    font-size: calc(var(--u) * 12.5);
}

/* "$149" — $ sits tight against the numbers */
.s2-27-price {
    display: flex;
    align-items: flex-start;
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: calc(var(--f) * 104);
    line-height: 0.82;
    letter-spacing: -0.01em;
    color: var(--s2-27-black);
    white-space: nowrap;
}

.s2-27-price span {
    margin-right: -0.02em;
}

.s2-27-price--light {
    color: var(--s2-27-white);
}

/* ==========================================================================
   Header — same menu as the live home (s2con.com): translucent black bar,
   Experience / Sponsor / Info, white pill CTA, red hover, collapsible mobile
   menu. Sizes from the Figma navigation (1440 × 75.6).
   ========================================================================== */
.s2-27-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.s2-27-header.is-scrolled {
    border-color: var(--s2-27-red);
    background: rgba(0, 0, 0, 0.86);
}

.s2-27-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: var(--s2-27-shell);
    min-height: max(64px, calc(var(--f) * 75.6));
    margin: 0 auto;
    padding: 0 calc(var(--f) * 77) 0 calc(var(--f) * 79.5);
}

.s2-27-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.s2-27-brand img {
    display: block;
    width: auto;
    height: max(42px, calc(var(--f) * 56.2));
}

.s2-27-nav {
    width: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: calc(var(--f) * 36);
}

.s2-27-nav a {
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: max(16px, calc(var(--f) * 19.38));
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.s2-27-nav a:hover,
.s2-27-nav a:focus {
    color: var(--s2-27-red);
}

.s2-27-nav .s2-27-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: calc(var(--f) * 184);
    min-height: max(46px, calc(var(--f) * 52.3));
    padding: 0 calc(var(--f) * 26);
    border-radius: 999px;
    background: var(--s2-27-white);
    color: #080808;
    font-family: var(--s2-27-font-wide);
    font-stretch: 125%;
    font-weight: 500;
    font-size: max(12px, calc(var(--f) * 13));
    letter-spacing: 0.02em;
    transition: background 0.22s ease, color 0.22s ease;
}

.s2-27-nav .s2-27-nav-cta span {
    font-family: Arial, sans-serif;
    font-size: 1.3em;
    line-height: 1;
}

.s2-27-nav .s2-27-nav-cta:hover,
.s2-27-nav .s2-27-nav-cta:focus {
    background: var(--s2-27-red);
    color: var(--s2-27-white);
}

.s2-27-menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: transparent;
}

.s2-27-menu-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

/* ==========================================================================
   Hero (mockup 59–354): photo on the left half, black on the right,
   no black gradient — only a soft local shade behind the headline.
   ========================================================================== */
.s2-27-hero {
    position: relative;
    height: calc(var(--u) * 328);
    overflow: hidden;
    background: var(--s2-27-black);
}

/* Background supplied by design (photo left half, black right half) */
.s2-27-hero-photo {
    position: absolute;
    inset: 0;
}

.s2-27-hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    animation: s2-27-hero-zoom 1.6s cubic-bezier(0.19, 1, 0.22, 1) both;
}

/* Darkens only the area under the headline so the copy stands out */
.s2-27-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.s2-27-hero-inner {
    position: relative;
    width: var(--s2-27-shell);
    height: 100%;
    margin: 0 auto;
}

/* "2027" outline (Druk Text Wide, exported by design) — cut by the hero bottom */
.s2-27-hero-year {
    position: absolute;
    left: calc(var(--f) * 28);
    bottom: 0; /* sits on the next section */
    display: block;
    width: calc(var(--f) * 600);
    height: auto;
    pointer-events: none;
}

.s2-27-hero-title {
    font-size: inherit;
    line-height: 1;
    position: absolute;
    top: calc(var(--u) * 96);
    left: calc(var(--u) * 439);
    margin: 0;
}

.s2-27-hero-line {
    display: block;
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: calc(var(--f) * 58.14);
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Snug red box (mockup Rectangle 5: 501 × 54) */
.s2-27-hero-tag {
    display: inline-flex;
    align-items: center;
    height: calc(var(--f) * 67.83);
    margin: calc(var(--f) * -4) 0 0 calc(var(--u) * 76);
    padding: 0 calc(var(--f) * 22);
    background: var(--s2-27-red);
}

.s2-27-hero-tag span {
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-wide);
    font-stretch: 125%;
    font-weight: 900;
    font-size: calc(var(--u) * 21.4);
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.s2-27-hero-scroll {
    position: absolute;
    right: calc(var(--u) * 30);
    bottom: calc(var(--u) * 18);
    display: inline-flex;
    align-items: center;
    gap: calc(var(--u) * 14);
    color: var(--s2-27-white);
    text-decoration: none;
}

.s2-27-hero-scroll:hover,
.s2-27-hero-scroll:focus {
    color: var(--s2-27-white);
}

/* Not bold, same family as the mockup label */
.s2-27-hero-scroll span {
    font-family: var(--s2-27-font-body);
    font-weight: 500;
    font-size: calc(var(--f) * 23.26);
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
}

.s2-27-hero-scroll img {
    display: block;
    width: calc(var(--f) * 48);
    height: auto;
    animation: s2-27-bounce 2.2s ease-in-out infinite;
}

/* ==========================================================================
   Event introduction (mockup 354–1190)
   ========================================================================== */
.s2-27-intro {
    position: relative;
    height: calc(var(--u) * 836);
    background: var(--s2-27-white);
}

.s2-27-early {
    position: absolute;
    top: calc(var(--u) * 63);
    left: calc(var(--u) * 231);
    display: flex;
    align-items: center;
}

.s2-27-early .s2-27-price {
    margin-left: calc(var(--u) * 36);
}

.s2-27-early-copy {
    display: flex;
    flex-direction: column;
    margin-left: calc(var(--u) * 19);
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--s2-27-black);
}

.s2-27-early-title {
    font-size: calc(var(--f) * 44);
    letter-spacing: 0;
}

.s2-27-early-note {
    margin-top: calc(var(--f) * 6);
    font-size: calc(var(--f) * 25);
    letter-spacing: 0;
}

.s2-27-early-note i {
    display: inline-block;
    margin: 0 0.1em;
    font-style: normal;
}

.s2-27-intro-grid {
    position: absolute;
    inset: 0;
}

.s2-27-when {
    position: absolute;
    top: calc(var(--u) * 170);
    left: calc(var(--u) * 112);
    display: flex;
    flex-direction: column;
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--s2-27-black);
}

.s2-27-when-meta {
    font-size: calc(var(--f) * 32.95);
    line-height: 0.9;
}

.s2-27-when-date {
    margin-top: calc(var(--u) * 6);
    font-size: calc(var(--f) * 58.14);
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.s2-27-intro-line {
    position: absolute;
    top: calc(var(--u) * 280);
    left: calc(var(--u) * 139);
    z-index: 2;
    width: 2px;
    height: calc(var(--u) * 135);
    background: var(--s2-27-red);
    transform-origin: top;
}

.s2-27-intro-photo {
    position: absolute;
    overflow: hidden;
    background: #ddd;
}

.s2-27-intro-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.s2-27-intro-photo:hover img {
    transform: scale(1.04);
}

.s2-27-intro-photo--community img {
    object-position: 58% center;
}

.s2-27-intro-photo--community {
    top: calc(var(--u) * 340);
    left: calc(var(--u) * 98);
    width: calc(var(--u) * 376);
    height: calc(var(--u) * 348);
}

.s2-27-intro-square {
    position: absolute;
    top: calc(var(--u) * 655);
    left: calc(var(--u) * 70);
    z-index: 3;
    width: calc(var(--u) * 65);
    height: calc(var(--u) * 67);
    background: var(--s2-27-gray);
    opacity: 0.91;
}

.s2-27-intro-photo--audience {
    top: calc(var(--u) * 186);
    left: calc(var(--u) * 627);
    width: calc(var(--u) * 360);
    height: calc(var(--u) * 413);
}

.s2-27-intro-copy {
    position: absolute;
    top: calc(var(--u) * 659);
    left: calc(var(--u) * 537);
    width: calc(var(--f) * 613);
    font-family: var(--s2-27-font-body);
    font-weight: 400;
    font-size: calc(var(--f) * 18);
    letter-spacing: 0;
    line-height: 1.25;
    color: var(--s2-27-black);
}

/* ==========================================================================
   Start & Strengthen ribbon (mockup 1190–1214)
   ========================================================================== */
.s2-27-ribbon {
    overflow: hidden;
    height: calc(var(--f) * 38.76);
    background: var(--s2-27-white);
    display: flex;
    align-items: center;
}

.s2-27-ribbon-track {
    display: flex;
    width: max-content;
    animation: s2-27-marquee 40s linear infinite;
}

.s2-27-ribbon-group {
    display: flex;
    flex: 0 0 auto;
}

.s2-27-ribbon-group > span {
    padding-right: 0.55em;
    color: var(--s2-27-red);
    font-family: var(--s2-27-font-wide);
    font-stretch: 125%;
    font-weight: 900;
    font-size: calc(var(--u) * 13);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.s2-27-ribbon-group small {
    font-size: 1em;
    font-weight: 400;
    vertical-align: baseline;
}

/* ==========================================================================
   Register your spot (mockup 1214–1556) — content vertically centered
   ========================================================================== */
.s2-27-spot {
    display: flex;
    align-items: center;
    min-height: calc(var(--u) * 342);
    padding: calc(var(--u) * 60) 0;
    background: var(--s2-27-black);
    color: var(--s2-27-white);
}

.s2-27-spot-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 calc(var(--u) * 82) 0 calc(var(--u) * 99);
}

.s2-27-spot-copy {
    width: calc(var(--f) * 470);
}

.s2-27-spot-title {
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: calc(var(--f) * 63.96);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.s2-27-spot-rule {
    display: block;
    width: calc(var(--f) * 67.83);
    height: calc(var(--f) * 2.9);
    margin: calc(var(--f) * 24) 0 calc(var(--f) * 26);
    background: var(--s2-27-red);
}

.s2-27-spot-text {
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-body);
    font-weight: 400;
    font-size: calc(var(--f) * 22);
    letter-spacing: 0;
    line-height: 1.25;
}

.s2-27-spot-detail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: calc(var(--u) * 522);
}

.s2-27-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.s2-27-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.s2-27-stat-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--f) * 73.65);
    height: calc(var(--f) * 73.65);
    border: max(2px, calc(var(--f) * 2.4)) solid var(--s2-27-red);
    border-radius: 50%;
    color: var(--s2-27-red);
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.s2-27-stat:hover .s2-27-stat-ring {
    transform: translateY(-3px);
    background: var(--s2-27-red);
    color: var(--s2-27-white);
}

.s2-27-stat-ring svg {
    width: calc(var(--f) * 30);
    height: auto;
    overflow: visible;
}

.s2-27-stat-ring svg[viewBox="0 0 32 24"] {
    width: calc(var(--f) * 38.76);
}

.s2-27-stat-ring--number {
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: calc(var(--f) * 54.27);
    line-height: 1;
    padding-top: calc(var(--f) * 4);
}

.s2-27-stat h3 {
    margin-top: calc(var(--f) * 18);
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: calc(var(--f) * 32.95);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Larger, readable subtext under the icons */
.s2-27-stat p {
    margin-top: calc(var(--f) * 4);
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: calc(var(--f) * 21);
    letter-spacing: 0.01em;
    line-height: 1.05;
    white-space: nowrap;
    text-transform: uppercase;
}

.s2-27-spot-pricing {
    display: flex;
    align-items: center;
    margin-top: calc(var(--u) * 42);
    padding: 0 calc(var(--u) * 12) 0 calc(var(--u) * 49);
}

.s2-27-spot-pricing .s2-27-price {
    font-size: calc(var(--f) * 73.65);
}

.s2-27-spot-note {
    display: flex;
    flex-direction: column;
    margin-left: calc(var(--u) * 11);
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: calc(var(--f) * 29.07);
    line-height: 0.96;
    text-transform: uppercase;
    white-space: nowrap;
}

.s2-27-spot-pricing .s2-27-btn {
    margin-left: auto;
}

.s2-27-spot-pricing .s2-27-spot-note {
    margin-right: calc(var(--u) * 14);
}

/* ==========================================================================
   More than a main stage (mockup 1556–2105)
   ========================================================================== */
.s2-27-stage {
    padding-top: calc(var(--u) * 52);
    background: var(--s2-27-white);
}

.s2-27-stage-heading {
    position: relative;
    text-align: center;
}

/* Full-width red band behind the base of the title (Rectangle 8) */
.s2-27-stage-heading::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--f) * 23.26);
    background: var(--s2-27-red);
}

.s2-27-stage-title {
    position: relative;
    display: inline-block;
    color: var(--s2-27-black);
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: calc(var(--f) * 83.34);
    line-height: 0.72;
    text-transform: uppercase;
    white-space: nowrap;
}

.s2-27-stage-copy {
    width: calc(var(--f) * 880);
    margin: calc(var(--u) * 33) auto 0;
    letter-spacing: 0;
    font-family: var(--s2-27-font-body);
    font-weight: 400;
    font-size: calc(var(--f) * 22);
    line-height: 1.25;
    text-align: center;
}

.s2-27-cards {
    display: grid;
    grid-template-columns: repeat(3, calc(var(--u) * 270));
    justify-content: space-between;
    width: calc(var(--u) * 905);
    margin: calc(var(--u) * 34) auto 0;
}

.s2-27-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: calc(var(--u) * 269);
    overflow: hidden;
    isolation: isolate;
}

.s2-27-card::before,
.s2-27-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Photos in grayscale (Figma), dark overlay for the copy */
.s2-27-card::before {
    background: var(--s2-27-card-bg) center / cover no-repeat;
    filter: grayscale(100%);
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.s2-27-card::after {
    background: rgba(8, 8, 8, 0.6);
    transition: background 0.4s ease;
}

.s2-27-card:hover::before {
    transform: scale(1.06);
}

.s2-27-card:hover::after {
    background: rgba(8, 8, 8, 0.7);
}

.s2-27-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--f) * 118) calc(var(--f) * 33) 0;
    text-align: center;
}

.s2-27-card-title {
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: calc(var(--f) * 44.58);
    line-height: 1.02;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Equal space above and below the red line */
.s2-27-card-rule {
    display: block;
    width: calc(var(--f) * 64);
    height: 2px;
    margin: calc(var(--f) * 9) 0;
    background: var(--s2-27-red);
}

.s2-27-card-copy {
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-body);
    font-weight: 400;
    font-size: calc(var(--f) * 17);
    letter-spacing: 0;
    line-height: 1.25;
}

/* ==========================================================================
   Video (mockup 2105–2492)
   ========================================================================== */
.s2-27-video {
    padding-top: calc(var(--u) * 69);
    background: var(--s2-27-white);
}

.s2-27-video-frame {
    position: relative;
    width: calc(var(--u) * 802);
    height: calc(var(--u) * 387);
    margin-left: calc(var(--u) * 151);
    overflow: hidden;
    background: #11132a var(--s2-27-poster) center / cover no-repeat;
}

.s2-27-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s2-27-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.s2-27-video-play img {
    display: block;
    width: calc(var(--u) * 100);
    height: auto;
    transition: transform 0.35s ease;
}

.s2-27-video-play:hover img,
.s2-27-video-play:focus img {
    transform: scale(1.1);
}

/* Video modal */
body.s2-27-modal-open {
    overflow: hidden;
}

.s2-27-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.s2-27-modal[hidden] {
    display: none;
}

.s2-27-modal.is-open {
    opacity: 1;
}

.s2-27-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.9);
    cursor: pointer;
}

.s2-27-modal-dialog {
    position: relative;
    width: min(100%, 1100px);
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 96px);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.s2-27-modal.is-open .s2-27-modal-dialog {
    transform: scale(1);
}

.s2-27-modal-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.s2-27-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--s2-27-white);
    font-family: Arial, sans-serif;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.s2-27-modal-close:hover,
.s2-27-modal-close:focus-visible {
    color: var(--s2-27-red);
}

/* ==========================================================================
   Register today + Let's connect (mockup 2492–2984)
   ========================================================================== */
.s2-27-final {
    position: relative;
    height: calc(var(--u) * 492);
    background: var(--s2-27-white);
}

.s2-27-final-inner {
    height: 100%;
}

.s2-27-final-register {
    position: absolute;
    top: calc(var(--u) * 62);
    left: calc(var(--u) * 99);
}

.s2-27-final-title {
    color: var(--s2-27-red);
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: calc(var(--f) * 135.67);
    line-height: 0.94;
    text-transform: uppercase;
}

.s2-27-final-offer {
    position: relative;
    display: flex;
    align-items: center;
    height: calc(var(--f) * 89.15);
    margin-top: calc(var(--u) * 20);
}

/* Gray panel bleeds to the left edge of the viewport */
.s2-27-final-offer::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(100% - var(--u) * 155);
    width: 100vw;
    background: var(--s2-27-gray);
}

.s2-27-final-tag {
    position: relative;
    width: calc(var(--u) * 155);
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-wide);
    font-stretch: 125%;
    font-weight: 900;
    font-size: calc(var(--u) * 19.3);
    line-height: 0.95;
    text-transform: uppercase;
}

.s2-27-final-offer .s2-27-price {
    margin-left: calc(var(--u) * 18);
    font-size: calc(var(--f) * 106.6);
}

.s2-27-final-register .s2-27-btn {
    margin-top: calc(var(--u) * 16);
    margin-left: calc(var(--u) * 2);
}

.s2-27-connect-links a span {
    padding-top: 0.08em;
}

.s2-27-connect {
    position: absolute;
    top: calc(var(--u) * 45);
    left: calc(var(--u) * 571);
    right: calc(50% - 50vw);
    height: calc(var(--u) * 310);
}

.s2-27-connect-phone {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: calc(var(--u) * 154);
    height: auto;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.25));
}

.s2-27-connect-panel {
    position: absolute;
    top: calc(var(--u) * 28);
    left: calc(var(--u) * 19);
    right: 0;
    height: calc(var(--u) * 201);
    padding: 0 calc(var(--f) * 40) 0 calc(var(--u) * 165);
    background: var(--s2-27-red);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.s2-27-connect-title {
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-wide);
    font-stretch: 125%;
    font-weight: 900;
    font-size: calc(var(--u) * 25);
    line-height: 0.93;
    text-transform: uppercase;
}

.s2-27-connect-copy {
    width: calc(var(--f) * 430);
    margin-top: calc(var(--f) * 18);
    letter-spacing: 0;
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-body);
    font-weight: 400;
    font-size: calc(var(--f) * 21);
    line-height: 1.25;
}

/* Same space above the first handle as between the two handles */
.s2-27-connect-links {
    position: absolute;
    top: calc(var(--u) * 229 + var(--f) * 22);
    left: calc(var(--u) * 177);
    display: flex;
    flex-direction: column;
    gap: 0; /* icon boxes are taller than the glyphs: ~15px visible space */
}

.s2-27-connect-links li {
    display: flex;
    line-height: 1;
}

.s2-27-connect-links li + li {
    margin-top: 0;
}

.s2-27-connect-links a {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--f) * 12);
    color: var(--s2-27-black);
    font-family: var(--s2-27-font-bebas);
    font-weight: 400;
    font-size: calc(var(--f) * 25.2);
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.s2-27-connect-links a:hover,
.s2-27-connect-links a:focus {
    color: var(--s2-27-red);
}

.s2-27-connect-links img {
    display: block;
    width: calc(var(--f) * 38.76);
    height: calc(var(--f) * 38.76);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.s2-27-connect-links a:hover img {
    transform: scale(1.12);
}

/* ==========================================================================
   Footer (mockup 2984–3046) — S2 Con date info, no "Designed by" credit
   ========================================================================== */
.s2-27-footer {
    background: var(--s2-27-black);
    color: var(--s2-27-white);
}

.s2-27-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--s2-27-shell);
    min-height: calc(var(--u) * 62);
    margin: 0 auto;
    padding: calc(var(--u) * 14) calc(var(--u) * 35) calc(var(--u) * 14) calc(var(--u) * 25);
}

.s2-27-footer-logo img {
    display: block;
    width: calc(var(--u) * 36);
    height: auto;
}

.s2-27-footer-event {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0 0.5em;
    color: var(--s2-27-white);
    font-family: var(--s2-27-font-wide);
    font-weight: 900;
    font-size: max(14px, calc(var(--u) * 14));
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
}

.s2-27-footer-sep {
    font-family: var(--s2-27-font-body);
    font-weight: 400;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes s2-27-hero-zoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

@keyframes s2-27-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@keyframes s2-27-marquee {
    from {
        transform: translateX(0);
    }

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

@media (prefers-reduced-motion: reduce) {

    .s2-27-hero-photo img,
    .s2-27-hero-scroll img,
    .s2-27-ribbon-track {
        animation: none;
    }
}

/* ==========================================================================
   Tablet & mobile — stacked layout keeping the mockup's look
   ========================================================================== */
@media (max-width: 991.98px) {
    body.s2-2027-page {
        --u: 1px;
        --f: 1px;
        --s2-27-shell: 100%;
    }

    .s2-27-shell {
        padding: 0 24px;
    }

    /* Header (same mobile menu as the live home) */
    .s2-27-header-inner {
        min-height: 72px;
        padding: 0 20px;
    }

    .s2-27-brand img {
        height: 44px;
    }

    .s2-27-menu-toggle {
        display: block;
    }

    .s2-27-nav {
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px 22px 28px;
        border-bottom: 1px solid var(--s2-27-red);
        background: rgba(0, 0, 0, 0.96);
    }

    .s2-27-nav.is-open {
        display: flex;
    }

    .s2-27-nav a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 20px;
    }

    .s2-27-nav .s2-27-nav-cta {
        justify-content: center;
        margin-top: 14px;
        border-bottom: 0;
        font-size: 14px;
    }

    /* Hero */
    .s2-27-hero {
        height: auto;
        min-height: 520px;
    }

    .s2-27-hero-photo img {
        object-position: 30% center;
    }

    .s2-27-hero-photo::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.7) 100%);
    }

    .s2-27-hero-inner {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 520px;
        padding: 0 20px calc((100vw - 24px) * 0.196 + 70px);
    }

    .s2-27-hero-year {
        left: 12px;
        top: auto;
        bottom: 0;
        width: calc(100% - 24px);
        max-width: 560px;
    }

    .s2-27-hero-title {
        position: relative;
        top: auto;
        left: auto;
    }

    .s2-27-hero-line {
        font-size: clamp(34px, 8.6vw, 60px);
        white-space: normal;
    }

    .s2-27-hero-tag {
        height: auto;
        margin: 10px 0 0;
        padding: 11px 16px 10px;
    }

    .s2-27-hero-tag span {
        font-size: clamp(14px, 3.7vw, 24px);
        white-space: normal;
    }

    .s2-27-hero-scroll {
        right: 20px;
        bottom: calc((100vw - 24px) * 0.196 + 18px); /* above the 2027 outline */
    }

    .s2-27-hero-scroll span {
        font-size: 15px;
    }

    .s2-27-hero-scroll img {
        width: 30px;
    }

    /* Intro */
    .s2-27-intro {
        height: auto;
        padding: 48px 0 56px;
    }

    .s2-27-early {
        position: static;
        flex-wrap: wrap;
        gap: 18px 0;
        top: auto;
        left: auto;
    }

    .s2-27-early .s2-27-btn {
        order: 3;
        width: 100%;
        height: 64px;
        font-size: 20px;
    }

    .s2-27-early .s2-27-price {
        margin-left: 0;
        font-size: clamp(64px, 18vw, 96px);
    }

    .s2-27-early-copy {
        margin-left: 14px;
    }

    .s2-27-early-title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .s2-27-early-note {
        font-size: 19px;
        line-height: 1;
        white-space: normal;
    }

    .s2-27-intro-grid {
        position: static;
        display: grid;
        gap: 36px;
        margin-top: 44px;
    }

    .s2-27-intro-left,
    .s2-27-intro-right {
        position: relative;
    }

    .s2-27-when,
    .s2-27-intro-line,
    .s2-27-intro-photo,
    .s2-27-intro-square,
    .s2-27-intro-copy {
        position: relative;
        top: auto;
        left: auto;
    }

    .s2-27-when-meta {
        font-size: 26px;
    }

    .s2-27-when-date {
        font-size: clamp(48px, 13vw, 64px);
        white-space: normal;
    }

    .s2-27-intro-line {
        display: block;
        height: 56px;
        margin: 12px 0 -20px 27px;
    }

    .s2-27-intro-photo--community,
    .s2-27-intro-photo--audience {
        width: 100%;
        height: auto;
        aspect-ratio: 376 / 348;
    }

    .s2-27-intro-photo--audience {
        aspect-ratio: 360 / 413;
    }

    .s2-27-intro-square {
        display: block;
        width: 56px;
        height: 58px;
        margin: -40px 0 0 0;
    }

    .s2-27-intro-copy {
        width: auto;
        margin-top: 28px;
        font-size: 18px;
    }

    .s2-27-ribbon {
        height: 30px;
    }

    .s2-27-ribbon-group > span {
        font-size: 14px;
    }

    /* Register your spot */
    .s2-27-spot {
        padding: 56px 0;
    }

    .s2-27-spot-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 44px;
        padding: 0 24px;
    }

    .s2-27-spot-copy,
    .s2-27-spot-detail {
        width: auto;
    }

    .s2-27-spot-title {
        font-size: 52px;
        white-space: normal;
    }

    .s2-27-spot-text {
        font-size: 19px;
    }

    .s2-27-stats {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    /* Mobile: icons stacked, ring on the left, title + subtitle on the right */
    .s2-27-stat {
        display: grid;
        grid-template-columns: 64px 1fr;
        grid-template-areas: "ring title" "ring sub";
        column-gap: 18px;
        align-items: center;
        text-align: left;
    }

    .s2-27-stat .s2-27-stat-ring {
        grid-area: ring;
    }

    .s2-27-stat h3 {
        grid-area: title;
        align-self: end;
        margin-top: 0;
        white-space: nowrap;
    }

    .s2-27-stat p {
        grid-area: sub;
        align-self: start;
    }

    /* "Limited time | Price increases" on two lines under Early Access */
    .s2-27-early-note i {
        display: block;
        height: 0;
        overflow: hidden;
    }

    .s2-27-stat-ring {
        width: 64px;
        height: 64px;
        border-width: 2px;
    }

    .s2-27-stat-ring svg {
        width: 24px;
    }

    .s2-27-stat-ring svg[viewBox="0 0 32 24"] {
        width: 32px;
    }

    .s2-27-stat-ring--number {
        font-size: 44px;
    }

    .s2-27-stat h3 {
        font-size: 26px;
        white-space: nowrap;
    }

    .s2-27-stat p {
        font-size: 18px;
        letter-spacing: 0;
        white-space: normal;
    }

    .s2-27-spot-pricing {
        flex-wrap: wrap;
        gap: 20px 0;
        margin-top: 36px;
        padding-left: 0;
    }

    .s2-27-spot-pricing .s2-27-price {
        font-size: 76px;
    }

    .s2-27-spot-note {
        font-size: 26px;
    }

    .s2-27-spot-pricing .s2-27-btn {
        width: 100%;
        height: 60px;
        margin-left: 0;
        font-size: 18px;
    }

    /* Stage */
    .s2-27-stage {
        padding-top: 56px;
    }

    .s2-27-stage-heading::before {
        height: 16px;
    }

    .s2-27-stage-title {
        font-size: clamp(34px, 9vw, 72px);
        line-height: 0.74;
        white-space: normal;
        padding: 0 16px;
    }

    .s2-27-stage-copy {
        width: auto;
        margin-top: 28px;
        font-size: 19px;
    }

    .s2-27-cards {
        grid-template-columns: 1fr;
        gap: 18px;
        width: auto;
        margin-top: 32px;
    }

    .s2-27-card {
        height: auto;
        aspect-ratio: 1 / 1;
        max-height: 380px;
    }

    .s2-27-card-title {
        font-size: 44px;
    }

    .s2-27-card-rule {
        width: 44px;
        margin: 14px 0;
    }

    .s2-27-card-copy {
        max-width: 320px;
        font-size: 16px;
    }

    /* Video */
    .s2-27-video {
        padding-top: 48px;
    }

    .s2-27-video-frame {
        width: 100%;
        height: auto;
        margin-left: 0;
        aspect-ratio: 802 / 387;
    }

    .s2-27-video-play img {
        width: 76px;
    }

    /* Final */
    .s2-27-final {
        height: auto;
        padding: 56px 0 64px;
        overflow: hidden;
    }

    .s2-27-final-register,
    .s2-27-connect {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }

    .s2-27-final-title {
        font-size: clamp(92px, 26vw, 130px);
    }

    .s2-27-final-offer {
        height: 72px;
        margin-top: 18px;
    }

    .s2-27-final-offer::before {
        right: calc(100% - 150px);
    }

    .s2-27-final-tag {
        width: 150px;
        font-size: 19px;
    }

    .s2-27-final-offer .s2-27-price {
        font-size: 96px;
    }

    .s2-27-final-register .s2-27-btn {
        width: 100%;
        max-width: 320px;
        height: 64px;
        margin-top: 22px;
        font-size: 20px;
        margin-left: 0;
    }

    .s2-27-connect {
        height: auto;
        margin: 64px -24px 0 0;
        padding-left: 0;
    }

    .s2-27-connect-phone {
        position: absolute;
        top: -24px;
        left: 0;
        width: 120px;
    }

    .s2-27-connect-panel {
        position: relative;
        top: auto;
        left: auto;
        height: auto;
        margin-left: 14px;
        margin-bottom: 22px;
        padding: 26px 24px 28px 128px;
    }

    .s2-27-connect-title {
        font-size: 24px;
    }

    .s2-27-connect-copy {
        width: auto;
        font-size: 18px;
    }

    .s2-27-connect-links {
        position: relative;
        top: auto;
        left: auto;
        margin: 0;
        gap: 0;
    }

    .s2-27-connect-links a {
        font-size: 26px;
    }

    .s2-27-connect-links img {
        width: 32px;
    }

    /* Footer */
    .s2-27-footer-inner {
        flex-direction: column;
        gap: 14px;
        padding: 22px 20px;
        text-align: center;
    }

    .s2-27-footer-logo img {
        width: 40px;
    }

    .s2-27-footer-event {
        justify-content: center;
        font-size: clamp(15px, 4.4vw, 18px);
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .s2-27-connect-phone {
        width: 96px;
    }

    .s2-27-connect-panel {
        padding-left: 104px;
    }
}

/* The theme forces "p { font-size: 16px !important }" on iPad portrait
   (responsive-ipad.css); restore the sizes of the paragraph-based prices/labels. */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
    body.s2-2027-page .s2-27-early .s2-27-price {
        font-size: clamp(64px, 18vw, 96px) !important;
        line-height: 0.82;
    }

    body.s2-2027-page .s2-27-spot-pricing .s2-27-price {
        font-size: 76px !important;
        line-height: 0.82;
    }

    body.s2-2027-page .s2-27-final-offer .s2-27-price {
        font-size: 96px !important;
        line-height: 0.82;
    }

    body.s2-2027-page .s2-27-spot-note {
        font-size: 26px !important;
        line-height: 0.96;
    }

    body.s2-2027-page .s2-27-final-tag {
        font-size: 19px !important;
        line-height: 0.95;
    }
}
