:root {
    --navy-950: #06162c;
    --navy-900: #0a2347;
    --navy-800: #12345f;
    --lime-500: #b7ce24;
    --lime-400: #c9df3b;
    --lime-100: #f2f7d6;
    --ink: #102038;
    --muted: #5a6675;
    --paper: #ffffff;
    --cloud: #f5f7f3;
    --line: #dfe5dc;
    --error: #a72626;
    --success: #2d6e45;
    --shadow-sm: 0 10px 30px rgba(6, 22, 44, 0.08);
    --shadow-lg: 0 28px 70px rgba(6, 22, 44, 0.18);
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 38px;
    --container: 1180px;
    --header-height: 86px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--lime-500);
    outline-offset: 4px;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--paper);
    background: var(--navy-950);
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid transparent;
    transition: height 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
    height: 74px;
    border-color: var(--line);
    box-shadow: 0 8px 30px rgba(6, 22, 44, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img {
    width: 154px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
}

.brand-tagline {
    max-width: 95px;
    color: var(--navy-900);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    color: var(--navy-900);
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-nav a:not(.nav-cta) {
    position: relative;
}

.site-nav a:not(.nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--lime-500);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 12px 20px;
    color: var(--navy-950) !important;
    background: var(--lime-500);
    border-radius: 999px;
    transition: background 180ms ease, transform 180ms ease;
}

.nav-cta:hover {
    background: var(--lime-400);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    background: transparent;
    border: 0;
    border-radius: 8px;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--navy-900);
    transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
    position: relative;
    min-height: 790px;
    padding: calc(var(--header-height) + 64px) 0 74px;
    overflow: hidden;
    color: var(--paper);
    background:
        radial-gradient(circle at 8% 18%, rgba(183, 206, 36, 0.2), transparent 22%),
        linear-gradient(120deg, var(--navy-950), var(--navy-900) 65%, #123d63);
}

.hero::before {
    position: absolute;
    top: 22%;
    right: -110px;
    width: 470px;
    height: 470px;
    content: "";
    border: 80px solid rgba(183, 206, 36, 0.1);
    border-radius: 50%;
}

.hero-court-lines {
    position: absolute;
    inset: auto 0 0 44%;
    width: 56%;
    height: 46%;
    opacity: 0.16;
    border-top: 2px solid var(--paper);
    border-left: 2px solid var(--paper);
    transform: skewX(-17deg);
}

.hero-court-lines::before,
.hero-court-lines::after {
    position: absolute;
    content: "";
    background: var(--paper);
}

.hero-court-lines::before {
    top: 0;
    bottom: 0;
    left: 48%;
    width: 2px;
}

.hero-court-lines::after {
    top: 52%;
    right: 0;
    left: 0;
    height: 2px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
    align-items: center;
    gap: 70px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--lime-500);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero h1,
.section-heading h2,
.flyer-copy h2,
.contact-copy h2 {
    margin: 0;
    color: inherit;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-weight: 900;
    line-height: 0.94;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.hero h1 {
    max-width: 690px;
    font-size: clamp(4.6rem, 8.3vw, 8.2rem);
}

.script-accent {
    display: inline-block;
    margin: 13px 0 18px;
    color: var(--lime-500);
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-size: clamp(1.65rem, 3vw, 2.85rem);
    font-weight: 700;
    line-height: 1;
    transform: rotate(-3deg);
}

.hero-lede {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    color: var(--navy-950);
    background: var(--lime-500);
    box-shadow: 0 12px 24px rgba(183, 206, 36, 0.18);
}

.button-primary:hover {
    background: var(--lime-400);
    box-shadow: 0 16px 30px rgba(183, 206, 36, 0.24);
}

.button-ghost {
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.35);
}

.button-ghost:hover {
    color: var(--navy-950);
    background: var(--paper);
}

.hero-proof {
    display: flex;
    gap: 34px;
    padding: 0;
    margin: 38px 0 0;
    list-style: none;
}

.hero-proof li {
    display: grid;
}

.hero-proof strong {
    color: var(--lime-500);
    font-size: 1.2rem;
}

.hero-proof span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-visual {
    position: relative;
    min-height: 620px;
}

.hero-photo {
    position: absolute;
    inset: 0 18px 0 42px;
    overflow: hidden;
    background: #d8d8ce;
    border: 8px solid rgba(255, 255, 255, 0.11);
    border-radius: 52% 48% 28% 30% / 38% 40% 22% 24%;
    box-shadow: var(--shadow-lg);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% center;
}

.hero-visual::before {
    position: absolute;
    z-index: -1;
    top: 32px;
    right: -22px;
    width: 180px;
    height: 180px;
    content: "";
    background: var(--lime-500);
    border-radius: 50%;
}

.hero-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding: 13px 17px;
    color: var(--navy-950);
    background: var(--paper);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.hero-badge-top {
    top: 94px;
    right: -38px;
}

.hero-badge-bottom {
    bottom: 58px;
    left: -18px;
}

.hero-badge > span:last-child {
    display: grid;
}

.hero-badge strong {
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-badge span span,
.hero-badge > span:last-child:not(.pickleball-icon) {
    font-size: 0.7rem;
    line-height: 1.35;
}

.badge-icon {
    color: var(--lime-500);
    font-size: 1.8rem;
}

.pickleball-icon {
    position: relative;
    display: block;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    background: var(--lime-500);
    border-radius: 50%;
}

.pickleball-icon::before {
    position: absolute;
    inset: 8px;
    content: "";
    background:
        radial-gradient(circle at 2px 2px, var(--paper) 0 2px, transparent 2.5px),
        radial-gradient(circle at 13px 3px, var(--paper) 0 2px, transparent 2.5px),
        radial-gradient(circle at 7px 13px, var(--paper) 0 2px, transparent 2.5px);
}

.benefit-strip {
    color: var(--paper);
    background: var(--navy-950);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.benefit-grid > div {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    padding: 26px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-grid > div:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-grid span {
    grid-row: span 2;
    color: var(--lime-500);
    font-weight: 900;
}

.benefit-grid strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.benefit-grid small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

.section {
    padding: 112px 0;
}

.section-heading h2,
.flyer-copy h2,
.contact-copy h2 {
    color: var(--navy-900);
    font-size: clamp(2.8rem, 5vw, 5.25rem);
}

.section-heading > p:last-child {
    max-width: 640px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.section-heading.centered {
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 30px 80px;
}

.about-copy .lead {
    margin-top: 0;
    color: var(--navy-900);
    font-size: 1.26rem;
    font-weight: 650;
    line-height: 1.55;
}

.about-copy p:not(.lead) {
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 8px;
    color: var(--navy-900);
    font-weight: 800;
    text-decoration-color: var(--lime-500);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.bio-details {
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.bio-details summary {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 16px 0 4px;
    color: var(--navy-900);
    font-size: 0.83rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    list-style: none;
}

.bio-details summary::-webkit-details-marker {
    display: none;
}

.bio-details summary span {
    display: inline-grid;
    width: 25px;
    height: 25px;
    color: var(--navy-950);
    background: var(--lime-500);
    border-radius: 50%;
    place-items: center;
    transition: transform 180ms ease;
}

.bio-details[open] summary span {
    transform: rotate(180deg);
}

.bio-expanded {
    padding-top: 6px;
}

.bio-expanded p {
    color: var(--muted);
}

.credential-grid {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.credential-grid article {
    padding: 28px;
    background: var(--cloud);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.credential-mark {
    display: inline-grid;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    color: var(--navy-950);
    background: var(--lime-500);
    border-radius: 50%;
    place-items: center;
    font-weight: 900;
}

.credential-grid h3 {
    margin: 0 0 7px;
    color: var(--navy-900);
    font-size: 1.1rem;
}

.credential-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.philosophy {
    background:
        linear-gradient(rgba(6, 22, 44, 0.97), rgba(6, 22, 44, 0.97)),
        url("../images/ksenia-flyer.png") center 25% / cover;
}

.philosophy .section-heading h2 {
    color: var(--paper);
}

.philosophy .section-heading > p:last-child {
    color: rgba(255, 255, 255, 0.68);
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.pillar-card {
    position: relative;
    min-height: 330px;
    padding: 34px;
    overflow: hidden;
    color: var(--paper);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-md);
}

.pillar-card.featured {
    color: var(--navy-950);
    background: var(--lime-500);
    border-color: var(--lime-500);
    transform: translateY(-14px);
}

.pillar-arrow {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 64px;
    color: var(--lime-500);
    border: 2px solid currentColor;
    border-radius: 50%;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 900;
}

.pillar-card.featured .pillar-arrow {
    color: var(--navy-800);
}

.pillar-card h3 {
    margin: 0;
    font-family: "Arial Narrow", Impact, sans-serif;
    font-size: 2.4rem;
    text-transform: uppercase;
}

.pillar-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.67);
}

.pillar-card.featured p {
    color: rgba(6, 22, 44, 0.75);
}

.pillar-card::after {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    content: "";
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.12;
}

.coaching {
    background: var(--cloud);
}

.section-heading.split {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
    gap: 70px;
    margin-bottom: 50px;
}

.section-heading.split > p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 1.04rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    padding: 35px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 0 rgba(6, 22, 44, 0.03);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
    border-color: rgba(183, 206, 36, 0.75);
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
}

.service-label {
    display: inline-block;
    padding: 5px 10px;
    color: var(--navy-900);
    background: var(--lime-100);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.service-card h3 {
    margin: 22px 0 8px;
    color: var(--navy-900);
    font-size: 1.6rem;
}

.service-card p {
    margin-top: 0;
    color: var(--muted);
}

.service-card a {
    color: var(--navy-900);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-card a span {
    color: var(--lime-500);
}

.guides {
    background: var(--paper);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.guide-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(6, 22, 44, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.guide-card:hover {
    border-color: rgba(183, 206, 36, 0.7);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.guide-poster {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--navy-950);
    border: 0;
    cursor: zoom-in;
}

.guide-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 260ms ease, opacity 260ms ease;
}

.guide-poster > span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 11px 14px;
    color: var(--navy-950);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-size: 0.72rem;
    font-weight: 850;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.guide-poster:hover img,
.guide-poster:focus-visible img {
    opacity: 0.78;
    transform: scale(1.025);
}

.guide-poster:hover > span,
.guide-poster:focus-visible > span {
    opacity: 1;
    transform: translateY(0);
}

.guide-body {
    display: flex;
    flex: 1;
    padding: 25px;
    flex-direction: column;
}

.guide-category {
    margin: 0 0 8px;
    color: var(--lime-500) !important;
    font-size: 0.68rem !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.guide-body h3 {
    margin: 0 0 10px;
    color: var(--navy-900);
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: 1.7rem;
    line-height: 1.04;
    text-transform: uppercase;
}

.guide-body > p:not(.guide-category) {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.9rem;
}

.guide-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: auto;
}

.guide-actions button,
.guide-actions a {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 12px;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

.guide-actions a {
    color: var(--navy-950);
    background: var(--lime-500);
    border-color: var(--lime-500);
}

.guide-actions button:hover {
    background: var(--cloud);
    border-color: var(--navy-900);
}

.guide-actions a:hover {
    background: var(--lime-400);
    border-color: var(--lime-400);
}

.placeholder-poster {
    position: relative;
    display: flex;
    padding: 32px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    flex-direction: column;
    justify-content: space-between;
    color: var(--paper);
    background: var(--navy-950);
}

.placeholder-poster::before,
.placeholder-poster::after {
    position: absolute;
    content: "";
    border-radius: 50%;
}

.placeholder-poster::before {
    top: -50px;
    right: -55px;
    width: 190px;
    height: 190px;
    border: 38px solid var(--placeholder-accent, var(--lime-500));
    opacity: 0.34;
}

.placeholder-poster::after {
    right: -80px;
    bottom: -65px;
    width: 240px;
    height: 240px;
    background: var(--placeholder-accent, var(--lime-500));
    opacity: 0.2;
}

.placeholder-poster > span {
    position: relative;
    z-index: 1;
    color: var(--placeholder-accent, var(--lime-500));
    font-family: "Arial Narrow", Impact, sans-serif;
    font-size: 4.6rem;
    font-weight: 900;
    line-height: 1;
}

.placeholder-poster > strong {
    position: relative;
    z-index: 1;
    font-family: "Arial Narrow", Impact, sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.98;
    text-transform: uppercase;
}

.placeholder-poster > i {
    position: absolute;
    right: 34px;
    bottom: 34px;
    width: 62px;
    height: 62px;
    border: 3px solid var(--placeholder-accent, var(--lime-500));
    border-radius: 50%;
}

.placeholder-coral { --placeholder-accent: #ff6b57; }
.placeholder-blue { --placeholder-accent: #4aa8e8; }
.placeholder-gold { --placeholder-accent: #f3be3f; }
.placeholder-violet { --placeholder-accent: #aa83e8; }

.coming-soon {
    display: inline-flex;
    width: fit-content;
    padding: 7px 11px;
    margin-top: auto;
    color: var(--muted);
    background: var(--cloud);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.flyer-section {
    padding: 90px 0;
    overflow: hidden;
    background: var(--lime-500);
}

.flyer-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 90px;
}

.flyer-preview {
    overflow: hidden;
    background: var(--paper);
    border: 10px solid var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(-3deg);
}

.flyer-preview img {
    width: 100%;
}

.flyer-copy .eyebrow {
    color: var(--navy-800);
}

.flyer-copy h2 {
    color: var(--navy-950);
}

.flyer-copy h2 span {
    display: inline-block;
    margin-top: 8px;
    color: var(--paper);
}

.flyer-copy p:not(.eyebrow) {
    max-width: 580px;
    margin: 24px 0 28px;
    color: rgba(6, 22, 44, 0.78);
    font-size: 1.08rem;
}

.flyer-copy .button-primary {
    color: var(--paper);
    background: var(--navy-950);
    box-shadow: none;
}

.flyer-copy .button-primary:hover {
    background: var(--navy-800);
}

.contact {
    color: var(--paper);
    background: var(--navy-900);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 80px;
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 120px;
}

.contact-copy h2 {
    color: var(--paper);
}

.contact-copy > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.07rem;
}

.contact-card {
    position: relative;
    padding: clamp(30px, 5vw, 54px);
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.contact-card::after {
    position: absolute;
    top: -72px;
    right: -72px;
    width: 190px;
    height: 190px;
    content: "";
    background: var(--lime-500);
    border-radius: 50%;
    opacity: 0.18;
}

.contact-card .eyebrow {
    position: relative;
    z-index: 1;
}

.contact-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    color: var(--navy-900);
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 0.98;
    text-transform: uppercase;
}

.contact-card > p:not(.eyebrow) {
    max-width: 580px;
    margin: 0 0 28px;
    color: var(--muted);
}

.training-location {
    position: relative;
    z-index: 1;
    display: grid;
    padding: 20px 22px;
    margin-bottom: 18px;
    background: var(--lime-100);
    border-left: 4px solid var(--lime-500);
    border-radius: var(--radius-sm);
}

.training-location span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.training-location strong {
    color: var(--navy-900);
    font-size: 1.1rem;
}

.training-location address {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.88rem;
    font-style: normal;
    line-height: 1.5;
}

.contact-link {
    display: grid;
    gap: 2px;
    padding: 20px 22px;
    margin-top: 12px;
    color: var(--navy-900);
    background: var(--cloud);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-link:hover {
    background: var(--lime-100);
    border-color: var(--lime-500);
    transform: translateY(-3px);
}

.contact-link span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.contact-link strong {
    overflow-wrap: anywhere;
    font-size: clamp(1rem, 2.8vw, 1.42rem);
}

.contact-card > small {
    display: block;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.78rem;
}

.contact-card noscript p {
    color: var(--error);
    font-size: 0.85rem;
}

.guide-dialog {
    width: min(920px, calc(100% - 30px));
    max-height: 94vh;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.guide-dialog::backdrop {
    background: rgba(6, 22, 44, 0.82);
    backdrop-filter: blur(6px);
}

.guide-dialog-inner {
    overflow: hidden;
    background: var(--paper);
    border-radius: var(--radius-md);
}

.guide-dialog-header {
    display: flex;
    min-height: 66px;
    padding: 13px 16px 13px 24px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.guide-dialog-header h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: 1rem;
    line-height: 1.25;
}

.guide-dialog-header button {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--paper);
    background: var(--navy-900);
    border: 0;
    border-radius: 50%;
    place-items: center;
    font-size: 1.65rem;
    cursor: pointer;
}

.guide-dialog-scroll {
    max-height: calc(94vh - 66px);
    padding: 22px;
    overflow: auto;
    background: var(--navy-950);
}

.guide-dialog-scroll img {
    width: min(100%, 680px);
    height: auto;
    margin: 0 auto;
}

body.dialog-open {
    overflow: hidden;
}

.site-footer {
    padding: 35px 0;
    color: rgba(255, 255, 255, 0.68);
    background: var(--navy-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: grid;
}

.footer-brand strong {
    color: var(--paper);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-brand span,
.site-footer p,
.footer-links {
    font-size: 0.74rem;
}

.site-footer p {
    color: var(--lime-500);
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
}

.footer-links a {
    text-underline-offset: 3px;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms ease, transform 620ms ease;
}

.js-enabled .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    :root {
        --header-height: 74px;
    }

    .brand img {
        width: 130px;
        height: 58px;
    }

    .brand-tagline {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

    .site-nav {
        position: fixed;
        z-index: -1;
        inset: var(--header-height) 0 auto;
        display: grid;
        gap: 0;
        padding: 16px 20px 28px;
        visibility: hidden;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(6, 22, 44, 0.12);
        opacity: 0;
        transform: translateY(-16px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 13px 10px;
        border-bottom: 1px solid var(--line);
    }

    .site-nav .nav-cta {
        margin-top: 14px;
        text-align: center;
        border-bottom: 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr 0.85fr;
        gap: 28px;
    }

    .hero h1 {
        font-size: clamp(4rem, 10vw, 6rem);
    }

    .hero-visual {
        min-height: 510px;
    }

    .hero-badge {
        display: none;
    }

    .hero-photo {
        inset: 15px 0 15px 10px;
    }

    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .about-copy {
        max-width: 780px;
    }

    .contact-copy {
        position: static;
        max-width: 680px;
    }

    .pillar-card {
        padding: 28px;
    }

    .pillar-arrow {
        margin-bottom: 40px;
    }

    .guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading.split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .flyer-grid {
        gap: 55px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer p {
        display: none;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    .section {
        padding: 82px 0;
    }

    .hero {
        padding-top: calc(var(--header-height) + 42px);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(3.9rem, 20vw, 6.2rem);
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lede {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-proof {
        justify-content: center;
    }

    .hero-proof {
        gap: 20px;
    }

    .hero-visual {
        min-height: 510px;
        margin-top: 12px;
    }

    .hero-photo {
        inset: 0 8% 0;
    }

    .benefit-grid {
        grid-template-columns: 1fr 1fr;
    }

    .benefit-grid > div {
        padding: 20px 13px;
    }

    .benefit-grid > div:nth-child(odd) {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .section-heading h2,
    .flyer-copy h2,
    .contact-copy h2 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .credential-grid,
    .pillar-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .pillar-card {
        min-height: 280px;
    }

    .pillar-card.featured {
        transform: none;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-inline: auto;
    }

    .guide-poster > span {
        opacity: 1;
        transform: none;
    }

    .guide-dialog-scroll {
        padding: 10px;
    }

    .flyer-grid {
        grid-template-columns: 1fr;
    }

    .flyer-preview {
        width: min(82%, 390px);
        margin: 0 auto;
    }

    .flyer-copy {
        text-align: center;
    }

    .flyer-copy p:not(.eyebrow) {
        margin-inline: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

}

@media (max-width: 420px) {
    .hero-proof span {
        font-size: 0.62rem;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .benefit-grid > div {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-visual {
        min-height: 455px;
    }

    .hero-photo {
        inset-inline: 2%;
    }
}

.contact-copy h2 {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
}

.equipment-callout {
    margin-top: 32px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 4px solid var(--lime-500);
    border-radius: var(--radius-sm);
}

.equipment-callout h3 {
    margin: 0 0 10px;
    color: var(--paper);
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: 1.4rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.equipment-callout p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.94rem;
    line-height: 1.65;
}

@media (max-width: 720px) {
    .contact-copy h2 {
        font-size: clamp(2.45rem, 11vw, 3.5rem);
    }

    .equipment-callout {
        margin-top: 26px;
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .js-enabled .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Ksenia Pickleball rebrand and final component refinements */
.brand img {
    width: 132px;
    height: auto;
    aspect-ratio: 1280 / 777;
    object-fit: contain;
}

.site-header.is-scrolled {
    height: var(--header-height);
}

.brand-tagline {
    display: flex;
    flex-direction: column;
    max-width: none;
    white-space: nowrap;
}

.brand-location small {
    color: var(--lime-600);
    font-size: 0.72em;
    font-weight: 900;
}

.hero-photo {
    border-radius: var(--radius-lg);
}

.benefit-icon {
    position: relative;
    display: grid;
    grid-row: span 2;
    width: 36px;
    height: 36px;
    color: var(--lime-500);
    place-items: center;
}

.benefit-people::before {
    width: 34px;
    height: 30px;
    content: "";
    background:
        radial-gradient(circle at 50% 7px, currentColor 0 5px, transparent 5.5px),
        radial-gradient(circle at 17% 11px, currentColor 0 4px, transparent 4.5px),
        radial-gradient(circle at 83% 11px, currentColor 0 4px, transparent 4.5px),
        radial-gradient(ellipse at 50% 100%, currentColor 0 11px, transparent 11.5px),
        radial-gradient(ellipse at 5% 100%, currentColor 0 8px, transparent 8.5px),
        radial-gradient(ellipse at 95% 100%, currentColor 0 8px, transparent 8.5px);
}

.benefit-target {
    border: 3px solid currentColor;
    border-radius: 50%;
    box-shadow: inset 0 0 0 6px var(--navy-950), inset 0 0 0 9px currentColor;
}

.benefit-target::before,
.benefit-target::after {
    position: absolute;
    content: "";
    background: currentColor;
}

.benefit-target::before {
    width: 4px;
    height: 17px;
    transform: translate(10px, -10px) rotate(45deg);
}

.benefit-target::after {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.benefit-shield::before {
    width: 30px;
    height: 34px;
    content: "";
    background: currentColor;
    clip-path: polygon(50% 0, 94% 16%, 86% 67%, 50% 100%, 14% 67%, 6% 16%);
}

.benefit-shield::after {
    position: absolute;
    width: 12px;
    height: 6px;
    content: "";
    border-bottom: 3px solid var(--navy-950);
    border-left: 3px solid var(--navy-950);
    transform: translateY(-2px) rotate(-45deg);
}

.benefit-heart::before {
    content: "♥";
    font-size: 2.25rem;
    line-height: 1;
}

.about .section-heading h2 {
    font-size: clamp(2.35rem, 4vw, 3.85rem);
}

.bio-details summary .bio-label {
    display: inline;
    width: auto;
    height: auto;
    color: inherit;
    background: none;
    border-radius: 0;
    transform: none;
}

.bio-details summary .bio-label-open {
    display: none;
}

.bio-details[open] summary .bio-label-closed {
    display: none;
}

.bio-details[open] summary .bio-label-open {
    display: inline;
}

.bio-details summary i {
    display: inline-grid;
    width: 27px;
    height: 27px;
    color: var(--navy-950);
    background: var(--lime-500);
    border-radius: 50%;
    place-items: center;
    font-size: 1rem;
    font-style: normal;
    transition: transform 180ms ease;
}

.bio-details[open] summary i {
    transform: rotate(180deg);
}

.pillar-arrow {
    width: 56px;
    height: 56px;
    border-width: 3px;
    font-size: 1.9rem;
    font-weight: 950;
}

.guide-tile {
    height: 445px;
    perspective: 1200px;
    -webkit-perspective: 1200px;
}

.guide-tile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 600ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

.guide-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 26px;
    overflow: hidden;
    color: var(--paper);
    background: var(--navy-900);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-top: 6px solid var(--guide-accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.guide-front::after,
.guide-back::after {
    position: absolute;
    right: -55px;
    bottom: -55px;
    width: 150px;
    height: 150px;
    content: "";
    border: 2px solid var(--guide-accent);
    border-radius: 50%;
    opacity: 0.18;
}

.guide-thumbnail {
    display: grid;
    height: 218px;
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--paper);
    border-radius: var(--radius-sm);
    place-items: center;
}

.guide-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.guide-face h3 {
    position: relative;
    z-index: 1;
    margin: 4px 0 16px;
    color: var(--paper);
    font-family: "Arial Narrow", Impact, sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    line-height: 1;
    text-transform: uppercase;
}

.guide-category {
    margin: 0;
    color: var(--guide-accent);
    font-size: 0.69rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.guide-flip-toggle,
.guide-flip-back,
.guide-back a {
    position: relative;
    z-index: 2;
    width: fit-content;
    border: 0;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.guide-flip-toggle {
    padding: 0;
    margin-top: auto;
    color: var(--paper);
    background: transparent;
    text-decoration: underline;
    text-decoration-color: var(--guide-accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.guide-back {
    justify-content: center;
    background: var(--navy-950);
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.guide-back p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.72);
}

.guide-number {
    color: var(--guide-accent);
    font-family: "Arial Narrow", Impact, sans-serif;
    font-size: 4.4rem;
    font-weight: 900;
    line-height: 0.85;
}

.guide-back a {
    padding: 13px 18px;
    margin-top: 12px;
    color: var(--navy-950);
    background: var(--guide-accent);
    border-radius: 999px;
    text-decoration: none;
}

.guide-flip-back {
    padding: 8px 0;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
}

.guide-tile.is-flipped .guide-tile-inner,
.guide-tile:focus-within.is-flipped .guide-tile-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.flyer-preview {
    display: grid;
    height: 660px;
    padding: 10px;
    overflow: hidden;
    transform: none;
    place-items: center;
}

.flyer-preview img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.contact-location {
    cursor: default;
}

.contact-location:hover {
    background: var(--cloud);
    border-color: transparent;
    transform: none;
}

.contact-location address {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
    font-style: normal;
    line-height: 1.45;
}

@media (max-width: 980px) {
    :root {
        --header-height: 82px;
    }

    .site-header.is-scrolled {
        height: var(--header-height);
    }

    .brand {
        gap: 8px;
    }

    .brand img {
        width: 96px;
        height: auto;
    }

    .brand-tagline {
        display: flex;
        font-size: 0.54rem;
        letter-spacing: 0.055em;
    }

    .guide-tile {
        height: 440px;
    }

    .flyer-preview {
        height: 620px;
    }
}

/* Preserve the flyer's natural proportions in the two-column tablet layout. */
@media (min-width: 721px) and (max-width: 980px) {
    .flyer-preview {
        height: auto;
    }

    .flyer-preview img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}

@media (max-width: 720px) {
    .brand img {
        width: 86px;
    }

    .brand-tagline {
        font-size: 0.49rem;
    }

    .flyer-preview {
        width: min(92%, 410px);
        height: 590px;
    }
}

@media (max-width: 420px) {
    .brand img {
        width: 78px;
    }

    .brand-tagline {
        font-size: 0.44rem;
    }

    .guide-tile {
        height: 425px;
    }

    .guide-thumbnail {
        height: 205px;
    }

    .flyer-preview {
        height: 520px;
    }
}

/* Interactive coaching-method cards */
.pillar-card.pillar-flip {
    height: 400px;
    min-height: 400px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    perspective: 1200px;
    -webkit-perspective: 1200px;
}

.pillar-card.pillar-flip.featured {
    background: transparent;
    border: 0;
}

.pillar-flip::after {
    display: none;
}

.pillar-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 600ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

.pillar-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 34px;
    overflow: hidden;
    color: var(--paper);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-md);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.pillar-face::after {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    content: "";
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.12;
}

.pillar-flip.featured .pillar-front {
    color: var(--navy-950);
    background: var(--lime-500);
    border-color: var(--lime-500);
}

.pillar-flip.featured .pillar-front p {
    color: rgba(6, 22, 44, 0.75);
}

.pillar-back {
    justify-content: flex-start;
    background: var(--navy-950);
    border-color: rgba(184, 214, 32, 0.55);
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.pillar-back h3 {
    position: relative;
    z-index: 1;
    color: var(--paper);
    font-size: clamp(1.75rem, 2.4vw, 2.2rem);
    line-height: 1.02;
}

.pillar-back p,
.pillar-flip.featured .pillar-back p {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
    line-height: 1.62;
}

.pillar-flip-toggle,
.pillar-flip-back {
    position: relative;
    z-index: 2;
    width: fit-content;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
}

.pillar-flip-toggle {
    margin-top: auto;
    color: var(--paper);
    background: transparent;
    text-decoration: underline;
    text-decoration-color: var(--lime-500);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.pillar-flip.featured .pillar-flip-toggle {
    color: var(--navy-950);
    text-decoration-color: var(--navy-800);
}

.pillar-flip-back {
    padding: 10px 0;
    margin-top: auto;
    color: var(--lime-500);
    background: transparent;
}

.pillar-flip.is-flipped .pillar-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

/* Keep hidden faces from intercepting links and buttons. */
.guide-front,
.pillar-front {
    pointer-events: auto;
}

.guide-back,
.pillar-back {
    pointer-events: none;
}

.guide-tile.is-flipped .guide-front,
.pillar-flip.is-flipped .pillar-front {
    pointer-events: none;
}

.guide-tile.is-flipped .guide-back,
.pillar-flip.is-flipped .pillar-back {
    pointer-events: auto;
}

.guide-back a:focus-visible,
.guide-flip-toggle:focus-visible,
.guide-flip-back:focus-visible,
.pillar-flip-toggle:focus-visible,
.pillar-flip-back:focus-visible {
    outline: 3px solid var(--paper);
    outline-offset: 4px;
}

@media (max-width: 980px) {
    .pillar-face {
        padding: 28px;
    }
}

@media (max-width: 720px) {
    .pillar-card.pillar-flip {
        height: 420px;
        min-height: 420px;
    }
}

/* iOS/iPadOS Safari: use a simple face swap instead of 3D compositing. */
@media (hover: none), (pointer: coarse) {
    .guide-tile,
    .pillar-card.pillar-flip {
        perspective: none;
        -webkit-perspective: none;
    }

    .guide-tile-inner,
    .pillar-card-inner,
    .guide-tile.is-flipped .guide-tile-inner,
    .guide-tile:focus-within.is-flipped .guide-tile-inner,
    .pillar-flip.is-flipped .pillar-card-inner {
        transform: none;
        -webkit-transform: none;
        transform-style: flat;
        -webkit-transform-style: flat;
    }

    .guide-face,
    .pillar-face {
        transform: none;
        -webkit-transform: none;
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .guide-back,
    .pillar-back {
        visibility: hidden;
        opacity: 0;
    }

    .guide-tile.is-flipped .guide-front,
    .pillar-flip.is-flipped .pillar-front {
        visibility: hidden;
        opacity: 0;
    }

    .guide-tile.is-flipped .guide-back,
    .pillar-flip.is-flipped .pillar-back {
        visibility: visible;
        opacity: 1;
    }

    .guide-thumbnail {
        position: relative;
    }

    .guide-thumbnail img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center top;
    }
}
