/* ========================================================================== 
   RESPONSIVE STYLES

   Desktop styling lives in styles.css.
   This file contains one tablet layout and one phone layout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   TABLET — 901 pixels and smaller
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .viewport-controls {
    display: none;
  }

  .site-header {
    padding-inline: 1.5rem;
  }

  .desktop-nav {
    display: none;
  }

  .site-header > .button {
    margin-left: auto;
    margin-right: 1rem;
  }

  .menu-toggle {
    display: flex;
    width: 2.7rem;
    height: 2.7rem;
    padding: .65rem;
    flex-direction: column;
    justify-content: center;
    gap: .3rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    width: 100%;
    height: 1px;
    background: var(--ink);
  }

  .mobile-menu {
    position: fixed;
    z-index: 90;
    inset: calc(var(--toolbar-height) + 119px) 0 0;
    padding: 2rem;
    flex-direction: column;
    overflow-y: auto;
    background: var(--dark);
    color: #fff;
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    transform-origin: top right;
    transition: opacity .24s ease, transform .24s ease;
  }

  .mobile-menu:not([hidden]) {
    display: flex;
  }

  .mobile-menu.is-open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .mobile-menu p {
    color: #8f9189;
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
  }

  .mobile-menu-links > a {
    display: flex;
    justify-content: space-between;
    padding-block: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    font: 600 1.8rem var(--display);
    text-decoration: none;
  }

  .mobile-menu-links > a span {
    color: #8f9189;
    font-size: .7rem;
  }

  .mobile-menu .button {
    margin-top: 2rem;
  }

  .mobile-menu-heading,
  .mobile-style-editor {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding: 6rem 3rem 3rem;
  }

  .hero-content {
    width: 76%;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 13vw, 7rem);
  }

  .hero-art {
    opacity: .8;
  }

  .event-stamp {
    right: 3rem;
  }

  .hero-meta {
    left: 3rem;
    right: auto;
    width: calc(100% - 6rem);
  }

  .section {
    padding: 6rem 4vw;
  }

  .section-intro {
    grid-template-columns: 20% 1fr;
  }

  .about-grid,
  .schedule-list,
  .schedule-note,
  .faq-list {
    margin-left: 20%;
  }

  .about-grid {
    gap: 5%;
  }

  .speaker-grid {
    gap: .8rem;
  }

  .venue {
    min-height: 570px;
  }

  .venue-copy {
    padding: 5rem 5vw;
  }

  .sponsor-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sponsor {
    border-bottom: 1px solid var(--line);
  }

  .sponsor:nth-child(3) {
    border-right: 0;
  }

  .final-cta {
    align-items: center;
  }

  .final-cta h2 {
    font-size: 3.8rem;
  }
}

/* --------------------------------------------------------------------------
   PHONE APP — 620 pixels and smaller
   -------------------------------------------------------------------------- */

@media (max-width: 620px) {
  :root {
    --toolbar-height: 43px;
  }

  body {
    background: #d7d5cf;
  }

  .preview-toolbar {
    padding-inline: .7rem;
  }

  .preview-brand span:last-child {
    display: none;
  }

  .options-trigger {
    font-size: 0;
  }

  .options-trigger::before {
    content: "Options";
    font-size: .72rem;
  }

  .site-preview {
    padding-bottom: 0;
    background: var(--page);
  }
}

@container event-preview (max-width: 620px) {
  .desktop-nav,
  .site-header > .button {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .3rem;
  }

  .menu-toggle span:not(.sr-only) {
    width: 100%;
    height: 1px;
    background: var(--ink);
  }


  html {
    scroll-padding-top: 7rem;
  }

  /* Small utility bar */

  .announcement {
    min-height: 36px;
    padding: .45rem 1rem;
    font-size: .6rem;
    text-align: center;
  }

  .announcement > span,
  .announcement a {
    display: none;
  }

  /* Sticky app header */

  .site-header {
    position: sticky;
    top: var(--toolbar-height);
    z-index: 70;
    height: 62px;
    padding-inline: var(--phone-gutter);
    border-bottom: 1px solid rgba(34, 35, 31, .08);
    background: color-mix(in srgb, var(--page) 94%, transparent);
    backdrop-filter: blur(18px);
  }

  .site-header > .button {
    display: none;
  }

  .wordmark > span {
    width: 1.8rem;
    height: 1.8rem;
    font-size: .9rem;
  }

  .wordmark strong {
    font-size: .92rem;
  }

  .menu-toggle {
    width: 2.4rem;
    height: 2.4rem;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  }

  .menu-toggle span:not(.sr-only) {
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .mobile-menu {
    inset: calc(var(--toolbar-height) + 70px) 10px 16px;
    padding: 1.35rem;
    flex-direction: column;
    overflow-y: auto;
    border-radius: 24px;
    background: var(--dark);
    color: #fff;
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    transform-origin: top right;
    transition: opacity .24s ease, transform .24s ease;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
  }

  .mobile-menu:not([hidden]) {
    display: flex;
  }

  .mobile-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .mobile-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .mobile-menu-heading > div {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-heading strong {
    font: 600 1rem var(--display);
  }

  .mobile-menu-kicker,
  .mobile-menu-status {
    color: #979a92;
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  .mobile-menu-status {
    padding: .35rem .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
  }

  .mobile-menu-links {
    display: block;
  }

  .mobile-menu-links > a {
    display: flex;
    justify-content: space-between;
    padding-block: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.55rem;
    text-decoration: none;
  }

  .mobile-menu-links > a span {
    color: #8f9189;
    font-size: .7rem;
  }

  .mobile-menu .button {
    margin-top: 1.25rem;
    min-height: 48px;
    border-radius: 12px;
  }

  .mobile-style-editor {
    display: block;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
  }

  .mobile-style-editor summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem;
    cursor: pointer;
    list-style: none;
  }

  .mobile-style-editor summary::-webkit-details-marker {
    display: none;
  }

  .mobile-style-editor summary span {
    font-size: .74rem;
    font-weight: 700;
  }

  .mobile-style-editor summary small {
    color: #92958d;
    font-size: .52rem;
  }

  .mobile-style-editor[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .mobile-style-controls {
    padding: .9rem;
  }

  .mobile-theme-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
    margin-bottom: .7rem;
  }

  .mobile-theme-presets button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .25rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: .52rem;
    font-weight: 700;
  }

  .mobile-theme-presets button.is-selected {
    border-color: var(--accent);
    background: rgba(255, 255, 255, .14);
  }

  .mobile-theme-presets button span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
  }

  .mobile-theme-presets button[data-mobile-theme="citrus"] span {
    background: #f15a3a;
  }

  .mobile-theme-presets button[data-mobile-theme="ocean"] span {
    background: #247b9a;
  }

  .mobile-theme-presets button[data-mobile-theme="night"] span {
    background: #d5a84b;
  }

  .mobile-color-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
  }

  .mobile-color-controls label,
  .mobile-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: .55rem .65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    color: #d5d6d1;
    font-size: .58rem;
    font-weight: 600;
  }

  .mobile-color-controls input {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .mobile-select {
    margin-top: .55rem;
  }

  .mobile-select select {
    max-width: 58%;
    padding: .4rem;
    border: 0;
    border-radius: 7px;
    background: #30312d;
    color: #fff;
    font-size: .58rem;
  }

  .mobile-reset {
    width: 100%;
    margin-top: .7rem;
    padding: .7rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    background: transparent;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .mobile-style-controls > p {
    margin: .7rem 0 0;
    color: #858880;
    font-size: .52rem;
    text-align: center;
  }

  /* Hero card */

  .hero {
    display: flex;
    min-height: 0;
    margin: 0 var(--phone-gutter);
    padding: 3.5rem 1.1rem 1.1rem;
    flex-direction: column;
    border-radius: 0 0 var(--phone-card-radius) var(--phone-card-radius);
  }

  .hero-content {
    width: 100%;
  }

  .hero-kicker {
    margin: .8rem 0 1.1rem;
    font-size: .58rem;
  }

  .hero h1 {
    font-size: clamp(3.65rem, 19vw, 4.8rem);
  }

  .hero-tagline {
    margin: 1.6rem 0 1.25rem;
    font-size: 1.22rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
  }

  .hero-actions .text-button {
    display: none;
  }

  .hero-art {
    opacity: .5;
  }

  .orbit-one {
    width: 300px;
    height: 300px;
    top: 28%;
    right: -50%;
  }

  .orbit-two {
    width: 180px;
    height: 180px;
    top: 38%;
    right: -27%;
  }

  .bloom-one {
    width: 90px;
    height: 175px;
    top: 41%;
    right: -4%;
  }

  .bloom-two {
    width: 54px;
    height: 130px;
    top: 50%;
    right: -11%;
  }

  .event-stamp {
    display: none;
  }

  .hero-image-label {
    display: none;
  }

  .hero-meta {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 2.25rem;
    padding: .85rem;
    gap: .75rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(14, 26, 22, .72);
    backdrop-filter: blur(14px);
  }

  .hero-meta > div {
    width: 50%;
    min-width: 0;
  }

  .hero-meta > div + div {
    padding-left: .75rem;
    border-left: 1px solid rgba(255, 255, 255, .18);
  }

  .hero-meta .demo-label {
    display: none;
  }

  .hero-meta small {
    margin-top: 0;
  }

  .hero-meta strong,
  .hero-meta span:not(.demo-label) {
    font-size: .62rem;
  }

  /* Countdown card with clear separation below the hero */

  .countdown-section {
    display: block;
    margin: var(--phone-gap) var(--phone-gutter) 0;
    padding: 1.15rem;
    border: 1px solid rgba(34, 35, 31, .07);
    border-radius: var(--phone-card-radius);
    background: color-mix(in srgb, var(--page) 78%, white);
    box-shadow: 0 10px 28px rgba(31, 31, 27, .07);
  }

  .countdown-section > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .countdown-section .eyebrow {
    color: var(--accent);
  }

  .countdown-section h2 {
    margin: 0;
    font-size: .95rem;
  }

  .countdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eceae5;
  }

  .countdown > div {
    min-width: 0;
    flex: 1;
  }

  .countdown strong {
    font-size: 1.6rem;
  }

  .countdown span {
    font-size: .48rem;
  }

  .circle-link {
    display: none;
  }

  /* Shared phone cards */

  .section {
    margin: var(--phone-gap) var(--phone-gutter) 0;
    padding: 2rem 1.15rem;
    border: 1px solid rgba(34, 35, 31, .07);
    border-radius: var(--phone-card-radius);
    background: color-mix(in srgb, var(--page) 88%, white);
    box-shadow: 0 10px 28px rgba(31, 31, 27, .055);
  }

  .section-intro {
    display: block;
    margin-bottom: 2rem;
  }

  .section-number {
    display: inline-flex;
    margin-bottom: 1.25rem;
    padding: .38rem .6rem;
    border-radius: 999px;
    background: #e9e5dc;
    font-size: .52rem;
  }

  .section h2 {
    margin-top: .6rem;
    font-size: 2.45rem;
  }

  .demo-label {
    font-size: .47rem;
  }

  /* About card */

  .about-grid {
    display: block;
    margin: 0;
  }

  .lead {
    font-size: 1.18rem;
  }

  .about-grid > div {
    margin-top: 1.5rem;
  }

  .highlights {
    margin-top: 2rem;
    gap: .5rem;
    border: 0;
  }

  .highlight {
    padding: 1rem .25rem;
    border: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--page) 82%, var(--ink) 8%);
  }

  .highlight strong {
    font-size: 1.65rem;
  }

  .highlight span {
    font-size: .43rem;
  }

  /* Agenda card */

  .dark-section {
    border-color: transparent;
    background: var(--dark);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  }

  .dark-section .section-number {
    background: rgba(255, 255, 255, .09);
  }

  .schedule-list,
  .schedule-note {
    margin-left: 0;
  }

  .schedule-list {
    border: 0;
  }

  .schedule-row {
    grid-template-columns: 62px 1fr;
    gap: .8rem;
    margin-bottom: .6rem;
    padding: .95rem;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 13px;
    background: rgba(255, 255, 255, .055);
  }

  .schedule-row:last-child {
    margin-bottom: 0;
  }

  .schedule-time {
    font-size: .68rem;
  }

  .schedule-row h3 {
    font-size: .92rem;
  }

  .schedule-type {
    grid-column: 2;
    width: fit-content;
    font-size: .46rem;
  }

  /* Swipeable speaker cards */

  .speaker-grid {
    display: flex;
    gap: .9rem;
    margin-right: -1.15rem;
    padding-bottom: .5rem;
    overflow-x: auto;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .speaker-grid::-webkit-scrollbar {
    display: none;
  }

  .speaker-card {
    min-width: 78%;
    scroll-snap-align: start;
  }

  .speaker-portrait {
    aspect-ratio: 4 / 4.2;
    border-radius: 16px;
  }

  /* Venue card */

  .venue {
    display: flex;
    min-height: 0;
    padding: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .venue-visual {
    height: 270px;
    flex: none;
  }

  .venue-copy {
    padding: 2rem 1.15rem;
  }

  .venue-copy h2 {
    font-size: 2.8rem;
  }

  .venue-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .venue-actions .button {
    width: 100%;
  }

  .venue-actions .underlined {
    text-align: center;
  }

  /* Sponsors and FAQs */

  .sponsor-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 2rem;
  }

  .sponsor {
    min-height: 76px;
    font-size: .72rem;
  }

  .sponsor:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .sponsor:nth-child(even) {
    border-right: 0;
  }

  .faq-list {
    margin-left: 0;
    border: 0;
  }

  .faq-item {
    margin-bottom: .6rem;
    padding-inline: .85rem;
    border: 0;
    border-radius: 13px;
    background: color-mix(in srgb, var(--page) 82%, var(--ink) 8%);
  }

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

  .faq-question {
    padding-block: 1rem;
    font-size: .92rem;
  }

  .faq-question span {
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
  }

  .faq-answer {
    padding-right: 1rem;
    font-size: .82rem;
  }

  /* Final ticket card and footer */

  .final-cta {
    display: block;
    margin: var(--phone-gap) var(--phone-gutter) 0;
    padding: 2.6rem 1.15rem;
    border-radius: var(--phone-card-radius);
    box-shadow: 0 12px 30px rgba(241, 90, 58, .2);
  }

  .final-cta h2 {
    font-size: 2.65rem;
  }

  .cta-actions {
    margin-top: 2rem;
  }

  .cta-actions .button {
    min-height: 50px;
    border-radius: 12px;
  }

  footer {
    margin-top: var(--phone-gap);
    padding: 2.6rem 1.25rem 2rem;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--phone-card-radius) var(--phone-card-radius) 0 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .options-panel {
    padding: 1.3rem;
  }

  .modal-card {
    padding: 2rem 1.3rem;
    border-radius: 20px;
  }
}

/* The toolbar preview is a narrow container inside a wide browser window.
   Keep its open drawer inside that narrow preview instead of the full screen. */

.preview-mobile .mobile-menu {
  position: absolute;
  z-index: 90;
  top: 104px;
  left: 10px;
  right: 10px;
  bottom: auto;
  max-height: min(680px, calc(100vh - 150px));
}
