:root {
    --ink: #17324d;
    --ink-deep: #10283f;
    --ink-soft: #2d4d68;
    --accent: #d96f4a;
    --accent-dark: #b95535;
    --accent-soft: #f8dfd4;
    --sky: #dcecf1;
    --cream: #f8f5ef;
    --paper: #ffffff;
    --text: #263b4b;
    --muted: #607587;
    --line: #dce4e8;
    --success: #1e7b58;
    --error: #a33e38;
    --shadow-sm: 0 12px 28px rgba(16, 40, 63, 0.08);
    --shadow-md: 0 24px 60px rgba(16, 40, 63, 0.14);
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 38px;
    --container: 1180px;
    --header-height: 82px;
}

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

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

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

body.menu-open {
    overflow: hidden;
}

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

img {
    height: auto;
}

button,
input,
textarea {
    font: inherit;
}

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

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

h1 {
    margin-bottom: 28px;
    font-size: clamp(2.9rem, 6.3vw, 5.55rem);
    max-width: 790px;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2.25rem, 4.6vw, 4.2rem);
}

h3 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    color: var(--ink-deep);
    background: var(--accent-soft);
}

:focus-visible {
    outline: 3px solid rgba(217, 111, 74, 0.48);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.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;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    color: var(--paper);
    background: var(--ink-deep);
    border-radius: 8px;
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(220, 228, 232, 0.82);
    backdrop-filter: blur(18px);
    transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 30px rgba(16, 40, 63, 0.08);
}

.header-inner {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-deep);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    color: var(--paper);
    background: var(--ink);
    border-radius: 50% 50% 44% 56% / 56% 43% 57% 44%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(23, 50, 77, 0.2);
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.28rem;
    letter-spacing: -0.01em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 23px;
}

.primary-nav a {
    position: relative;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 760;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.primary-nav > a:not(.nav-classroom):not(.language-link)::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--accent);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.primary-nav > a:not(.nav-classroom):not(.language-link):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-classroom {
    padding: 11px 17px;
    color: var(--paper) !important;
    background: var(--ink);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(23, 50, 77, 0.18);
    transition: background 160ms ease, transform 160ms ease;
}

.nav-classroom:hover {
    background: var(--ink-deep);
    transform: translateY(-1px);
}

.language-link {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
}

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

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

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

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

.section-shell {
    position: relative;
    overflow: hidden;
}

.hero {
    min-height: 720px;
    padding: calc(var(--header-height) + 68px) 0 88px;
    background:
        radial-gradient(circle at 88% 14%, rgba(220, 236, 241, 0.9), transparent 34%),
        radial-gradient(circle at 7% 92%, rgba(248, 223, 212, 0.52), transparent 27%),
        linear-gradient(180deg, #fbfaf7 0%, #ffffff 100%);
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.hero::before {
    top: 132px;
    right: -118px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(23, 50, 77, 0.08);
    border-radius: 50%;
}

.hero::after {
    bottom: 34px;
    left: -94px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(217, 111, 74, 0.14);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.75fr);
    align-items: center;
    gap: 74px;
}

.hero-copy {
    max-width: 720px;
}

.hero h1 {
    max-width: 720px;
    margin-bottom: 25px;
    font-size: clamp(3.15rem, 5.15vw, 4.8rem);
    line-height: 1.045;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 820;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 29px;
    height: 2px;
    background: currentColor;
    content: "";
}

.eyebrow-light {
    color: #f5bba6;
}

.hero-lead {
    max-width: 665px;
    margin-bottom: 32px;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.8vw, 1.24rem);
    line-height: 1.68;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 780;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
    color: var(--paper);
    background: var(--accent);
    box-shadow: 0 13px 28px rgba(217, 111, 74, 0.25);
}

.button-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 16px 32px rgba(217, 111, 74, 0.32);
}

.button-secondary {
    color: var(--ink-deep);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(23, 50, 77, 0.18);
}

.button-secondary:hover {
    background: var(--paper);
    border-color: rgba(23, 50, 77, 0.32);
}

.button-light {
    color: var(--ink-deep);
    background: var(--paper);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.button-ghost {
    color: var(--ink-deep);
    background: transparent;
    border-color: var(--line);
}

.button-small {
    min-height: 42px;
    padding: 9px 17px;
    font-size: 0.86rem;
}

.button-full {
    width: 100%;
}

.button[disabled] {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.hero-micro {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 650;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 27px;
}

.trust-row span {
    padding: 8px 12px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(23, 50, 77, 0.1);
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 720;
}

.hero-visual {
    position: relative;
    width: min(100%, 438px);
    margin-inline: auto;
    isolation: isolate;
}

.hero-visual::before {
    position: absolute;
    z-index: -1;
    inset: 36px -22px -24px 30px;
    background: linear-gradient(145deg, #dcecf1, #f8dfd4);
    border-radius: 34px;
    content: "";
    opacity: 0.72;
}

.portrait-panel {
    margin: 0;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(23, 50, 77, 0.1);
    border-radius: 32px;
    box-shadow: 0 26px 70px rgba(16, 40, 63, 0.16);
}

.portrait-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 720 / 820;
    background: #eaf2f4;
    border-radius: 31px 31px 18px 18px;
}

.portrait-media picture,
.portrait-media img {
    width: 100%;
    height: 100%;
}

.portrait-media img {
    object-fit: cover;
    object-position: center;
}

.portrait-status {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: var(--ink-deep);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(16, 40, 63, 0.12);
    backdrop-filter: blur(10px);
    font-size: 0.76rem;
    font-weight: 800;
}

.portrait-status > span {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(30, 123, 88, 0.13);
}

.portrait-caption {
    display: grid;
    padding: 20px 24px 23px;
}

.portrait-kicker {
    color: var(--accent-dark);
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.portrait-caption strong {
    margin-top: 4px;
    color: var(--ink-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    line-height: 1.15;
}

.portrait-caption small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
}

.student-access {
    position: relative;
    z-index: 4;
    color: rgba(255, 255, 255, 0.82);
    background: var(--ink);
}

.access-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 60px;
    padding-block: 48px;
}

.access-grid h2 {
    margin-bottom: 12px;
    color: var(--paper);
    font-size: clamp(2rem, 3.8vw, 3.15rem);
}

.access-grid > div > p:last-child {
    max-width: 570px;
}

.access-form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.access-form input {
    width: 100%;
    min-height: 54px;
    padding: 12px 18px;
    color: var(--paper);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.access-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0;
    text-transform: none;
}

.access-form p {
    margin: 11px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
}

.content-section {
    padding: 112px 0;
}

.section-tinted {
    background: var(--cream);
}

.section-dark {
    color: rgba(255, 255, 255, 0.75);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 45%),
        var(--ink-deep);
}

.section-heading {
    max-width: 790px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading > p:last-child {
    max-width: 690px;
    margin-inline: auto;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-heading-left {
    margin-inline: 0;
    text-align: left;
}

.section-heading-left > p:last-child {
    margin-inline: 0;
}

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

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

.outcome-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.outcome-card {
    min-height: 290px;
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(16, 40, 63, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.outcome-card:hover {
    border-color: rgba(217, 111, 74, 0.35);
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
}

.card-index {
    display: inline-grid;
    width: 45px;
    height: 45px;
    margin-bottom: 35px;
    place-items: center;
    color: var(--accent-dark);
    background: var(--accent-soft);
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 850;
}

.outcome-card p,
.format-card p,
.feature-item p {
    color: var(--muted);
    font-size: 0.94rem;
}

.process-list {
    display: grid;
    border-top: 1px solid #d7dedf;
}

.process-step {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 26px;
    padding: 34px 0;
    border-bottom: 1px solid #d7dedf;
}

.process-step > span {
    color: var(--accent-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.25rem;
    line-height: 1;
}

.process-step h3 {
    margin-bottom: 7px;
}

.process-step p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: 82px;
}

.about-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 0.86;
    background: var(--sky);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-photo::after {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    content: "";
    pointer-events: none;
}

.about-photo picture,
.about-photo img {
    width: 100%;
    height: 100%;
}

.about-photo img {
    object-fit: cover;
    object-position: center 18%;
}

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

.check-list {
    display: grid;
    gap: 13px;
    margin: 29px 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink-soft);
    font-weight: 680;
}

.check-list li span {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin-top: 2px;
    place-items: center;
    color: var(--success);
    background: #e5f4ed;
    border-radius: 50%;
    font-size: 0.78rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.text-link span {
    transition: transform 160ms ease;
}

.text-link:hover span {
    transform: translateX(5px);
}

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

.format-card {
    min-height: 275px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-md);
}

.format-card > span {
    display: inline-flex;
    margin-bottom: 35px;
    padding: 7px 10px;
    color: #f6c2af;
    background: rgba(217, 111, 74, 0.15);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.format-card h3 {
    color: var(--paper);
}

.format-card p {
    color: rgba(255, 255, 255, 0.64);
}

.classroom-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 20%, rgba(220, 236, 241, 0.82), transparent 27%),
        var(--paper);
}

.classroom-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(470px, 1.14fr);
    align-items: center;
    gap: 64px;
}

.classroom-copy > p:not(.eyebrow) {
    margin-bottom: 30px;
    color: var(--muted);
}

.classroom-panel {
    overflow: hidden;
    background: #0d1d2d;
    border: 10px solid var(--ink-deep);
    border-radius: 26px;
    box-shadow: var(--shadow-md);
    transform: rotate(1deg);
}

.browser-bar {
    display: flex;
    height: 42px;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.48);
    background: #172c40;
}

.browser-bar span {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.browser-bar strong {
    margin-left: 9px;
    font-size: 0.64rem;
    font-weight: 650;
}

.video-stage {
    display: grid;
    min-height: 320px;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 9px;
    padding: 10px;
}

.video-tile {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    background: #20384d;
    border-radius: 13px;
}

.teacher-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.teacher-tile span {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 8px;
    color: var(--paper);
    background: rgba(0, 0, 0, 0.52);
    border-radius: 6px;
    font-size: 0.68rem;
}

.lesson-tile {
    display: grid;
    place-items: center;
    padding: 25px;
    background: #f7f2e9;
}

.lesson-board {
    width: 100%;
    padding: 25px;
    color: var(--ink-deep);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(16, 40, 63, 0.08);
}

.lesson-board small {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-dark);
    font-weight: 800;
    text-transform: uppercase;
}

.lesson-board strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.lesson-board p {
    color: var(--muted);
}

.board-line {
    width: 86%;
    height: 8px;
    margin-top: 15px;
    background: var(--sky);
    border-radius: 999px;
}

.board-line.short {
    width: 58%;
}

.video-controls {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    background: #10283f;
}

.video-controls i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.video-controls i.hangup {
    width: 44px;
    background: #d44f48;
    border-radius: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin-top: 72px;
}

.feature-item {
    padding-top: 22px;
    border-top: 2px solid var(--ink);
}

.feature-item > span {
    display: block;
    margin-bottom: 23px;
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 850;
}

.feature-item h3 {
    font-size: 1.28rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 80px;
}

.faq-heading {
    position: sticky;
    top: calc(var(--header-height) + 32px);
}

.faq-list {
    display: grid;
    border-top: 1px solid #d7dedf;
}

.faq-list details {
    border-bottom: 1px solid #d7dedf;
}

.faq-list summary {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--ink-deep);
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 600;
    list-style: none;
}

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

.faq-list summary span {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--paper);
    background: var(--ink);
    border-radius: 50%;
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: 1rem;
    transition: transform 180ms ease, background 180ms ease;
}

.faq-list details[open] summary span {
    background: var(--accent);
    transform: rotate(45deg);
}

.faq-list details p {
    max-width: 720px;
    padding: 0 55px 29px 0;
    color: var(--muted);
}

.contact-section {
    color: rgba(255, 255, 255, 0.76);
    background:
        radial-gradient(circle at 10% 85%, rgba(217, 111, 74, 0.2), transparent 28%),
        var(--ink-deep);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.2fr);
    align-items: start;
    gap: 76px;
}

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

.contact-copy > p:not(.eyebrow) {
    max-width: 560px;
}

.contact-direct {
    display: grid;
    gap: 8px;
    margin-top: 38px;
}

.contact-direct span {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-direct a {
    width: fit-content;
    color: var(--paper);
    font-weight: 720;
}

.contact-form {
    padding: 34px;
    color: var(--text);
    background: var(--paper);
    border-radius: var(--radius-md);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field-group {
    display: grid;
    gap: 7px;
}

.field-full {
    grid-column: 1 / -1;
}

.field-group label {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 780;
}

.field-group input,
.field-group textarea {
    width: 100%;
    padding: 13px 15px;
    color: var(--ink-deep);
    background: #fbfcfc;
    border: 1px solid #ccd8df;
    border-radius: 11px;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.field-group textarea {
    min-height: 130px;
    resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus {
    background: var(--paper);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(217, 111, 74, 0.12);
    outline: none;
}

.field-group input[aria-invalid="true"],
.field-group textarea[aria-invalid="true"] {
    border-color: var(--error);
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.privacy-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.privacy-check a {
    color: var(--ink-deep);
    font-weight: 720;
}

.form-status {
    min-height: 25px;
    margin: 13px 0 0;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
}

.form-status.is-success {
    color: var(--success);
}

.form-status.is-error {
    color: var(--error);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.site-footer {
    padding: 70px 0 25px;
    color: rgba(255, 255, 255, 0.62);
    background: #0a1c2c;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.72fr 1fr 0.85fr;
    gap: 46px;
}

.brand-footer {
    color: var(--paper);
}

.brand-footer .brand-mark {
    color: var(--ink-deep);
    background: var(--paper);
}

.brand-footer .brand-copy small {
    color: rgba(255, 255, 255, 0.48);
}

.footer-grid > div:first-child p {
    max-width: 340px;
    margin-top: 23px;
}

.footer-grid h2 {
    margin: 4px 0 18px;
    color: var(--paper);
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: 0.76rem;
    font-weight: 820;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-grid a {
    width: fit-content;
    color: rgba(255, 255, 255, 0.67);
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--paper);
}

.footer-bottom {
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    width: min(480px, calc(100% - 40px));
    padding: 20px;
    color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(16, 40, 63, 0.24);
}

.cookie-banner p {
    margin-bottom: 14px;
    font-size: 0.79rem;
}

.cookie-banner > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.floating-contact {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--paper);
    background: #1f9d62;
    border: 4px solid var(--paper);
    border-radius: 50%;
    box-shadow: 0 16px 35px rgba(17, 94, 59, 0.28);
    font-size: 0.74rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform 160ms ease;
}

.floating-contact:hover {
    transform: translateY(-3px) scale(1.03);
}

/* Privacy and utility pages */
.utility-page {
    min-height: 100vh;
    padding: calc(var(--header-height) + 70px) 0 90px;
    background: var(--cream);
}

.utility-card {
    max-width: 880px;
    margin-inline: auto;
    padding: clamp(28px, 5vw, 58px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.utility-card h1 {
    overflow-wrap: anywhere;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.utility-card h2 {
    margin-top: 38px;
    font-size: 1.8rem;
}

.utility-card p,
.utility-card li {
    color: var(--muted);
}

.utility-card a {
    color: var(--accent-dark);
    font-weight: 700;
}

.simple-header {
    position: relative;
    min-height: var(--header-height);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.simple-header .header-inner {
    min-height: var(--header-height);
}

.simple-back {
    color: var(--ink-soft);
    font-weight: 750;
    text-decoration: none;
}

/* Classroom and teacher portal */
.portal-page {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 86% 12%, rgba(220, 236, 241, 0.9), transparent 26%),
        var(--cream);
}

.portal-header {
    border-bottom: 1px solid rgba(23, 50, 77, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
}

.portal-header .header-inner {
    min-height: 76px;
}

.portal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-main {
    padding: 58px 0 90px;
}

.portal-card {
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(26px, 5vw, 48px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.portal-card-wide {
    max-width: 1100px;
}

.portal-card h1 {
    margin-bottom: 15px;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.portal-card > p {
    color: var(--muted);
}

.portal-alert {
    margin: 22px 0;
    padding: 15px 17px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 680;
}

.portal-alert-info {
    color: #31576f;
    background: #e7f2f6;
    border: 1px solid #c6e0e9;
}

.portal-alert-error {
    color: #7d312d;
    background: #fbe9e7;
    border: 1px solid #f3c8c4;
}

.portal-alert-success {
    color: #1d654a;
    background: #e6f4ed;
    border: 1px solid #c4e4d5;
}

.portal-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.portal-form .field-group input,
.portal-form .field-group select {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    color: var(--ink-deep);
    background: #fbfcfc;
    border: 1px solid #ccd8df;
    border-radius: 11px;
}

.portal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.code-input {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 820;
}

.lesson-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.lesson-summary div {
    padding: 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.lesson-summary span {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-summary strong {
    display: block;
    margin-top: 3px;
    color: var(--ink-deep);
}

.classroom-shell {
    width: min(calc(100% - 24px), 1500px);
    margin-inline: auto;
}

.classroom-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.classroom-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.classroom-meta span {
    padding: 6px 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.private-classroom-shell {
    padding-bottom: 18px;
}

.private-classroom {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: calc(100vh - 142px);
    padding: 14px;
    overflow: hidden;
    color: var(--paper);
    background: #0d1b27;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(8, 24, 37, 0.28);
}

.rtc-stage {
    position: relative;
    min-height: calc(100vh - 258px);
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(87, 130, 156, 0.24), transparent 32%),
        linear-gradient(145deg, #152b3c, #0b1722 72%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.rtc-video-card {
    position: relative;
    overflow: hidden;
    background: #142a3a;
}

.rtc-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #102331;
}

.rtc-remote-card {
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.rtc-local-card {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 3;
    width: clamp(190px, 23vw, 330px);
    aspect-ratio: 16 / 10;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.rtc-video-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 34px;
    text-align: center;
}

.rtc-placeholder-mark {
    display: grid;
    width: 86px;
    height: 86px;
    margin-bottom: 22px;
    place-items: center;
    color: var(--paper);
    background: linear-gradient(145deg, #2d5570, #17324d);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.7rem;
    font-weight: 700;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.rtc-video-placeholder h1 {
    max-width: 620px;
    margin-bottom: 10px;
    color: var(--paper);
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.rtc-video-placeholder p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.95rem;
}

.rtc-video-label {
    position: absolute;
    right: auto;
    bottom: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100% - 36px);
    padding: 8px 12px;
    color: var(--paper);
    background: rgba(5, 16, 24, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 0.78rem;
}

.rtc-video-label strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rtc-video-label-local {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: center;
    max-width: none;
    padding: 6px 9px;
    font-size: 0.7rem;
}

.rtc-presence-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    background: #8fa5b4;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(143, 165, 180, 0.14);
}

.private-classroom.is-connected .rtc-presence-dot {
    background: #55d39c;
    box-shadow: 0 0 0 4px rgba(85, 211, 156, 0.14);
}

.rtc-bottom-bar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 22px;
    padding: 16px 8px 4px;
}

.rtc-status {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    font-weight: 720;
}

.rtc-status::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 9px;
    background: #8fa5b4;
    border-radius: 50%;
    content: "";
}

.rtc-status[data-state="success"] {
    color: #b8f2d8;
}

.rtc-status[data-state="success"]::before {
    background: #55d39c;
}

.rtc-status[data-state="warning"] {
    color: #f7d8a6;
}

.rtc-status[data-state="warning"]::before {
    background: #e8ae5b;
}

.rtc-status[data-state="error"] {
    color: #ffc3bd;
}

.rtc-status[data-state="error"]::before {
    background: #e17268;
}

.rtc-controls {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rtc-control {
    display: grid;
    min-width: 76px;
    min-height: 66px;
    place-items: center;
    gap: 4px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.66rem;
    font-weight: 720;
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.rtc-control:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.rtc-control:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    transform: none;
}

.rtc-control-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
}

.rtc-control-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rtc-control.is-off {
    color: #ffd1cd;
    background: rgba(188, 68, 58, 0.24);
    border-color: rgba(225, 114, 104, 0.32);
}

.rtc-control.is-active {
    color: #dff6ff;
    background: rgba(72, 137, 174, 0.34);
    border-color: rgba(126, 192, 226, 0.4);
}

.rtc-control-leave {
    color: var(--paper);
    background: #b9483f;
    border-color: #cb5a50;
}

.rtc-control-leave:hover {
    background: #a73c34;
    border-color: #be5047;
}

.rtc-error-panel {
    position: absolute;
    z-index: 8;
    right: 28px;
    bottom: 100px;
    left: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    color: var(--paper);
    background: rgba(121, 42, 37, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.rtc-error-panel strong {
    display: block;
    margin-bottom: 4px;
}

.rtc-error-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
}

.teacher-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: 28px;
}

.teacher-panel {
    padding: 27px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.teacher-panel h2 {
    font-size: 1.85rem;
}

.invite-result {
    margin-top: 22px;
    padding: 17px;
    background: #eef6f8;
    border: 1px solid #cde2e8;
    border-radius: 14px;
}

.invite-code {
    display: block;
    margin: 7px 0;
    color: var(--ink-deep);
    font-size: 1.7rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.copy-row input {
    min-width: 0;
    padding: 10px 12px;
    color: var(--ink-soft);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.invite-list {
    display: grid;
    gap: 12px;
}

.invite-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.invite-item.is-expired {
    opacity: 0.62;
}

.invite-item h3 {
    margin-bottom: 6px;
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: 1.05rem;
}

.invite-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.invite-item-code {
    color: var(--accent-dark);
    font-weight: 850;
    letter-spacing: 0.1em;
}

.invite-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-form {
    display: inline;
}

.text-button {
    padding: 0;
    color: var(--error);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 760;
    text-decoration: underline;
}

.empty-state {
    padding: 34px;
    color: var(--muted);
    background: var(--cream);
    border: 1px dashed #c8d4da;
    border-radius: 16px;
    text-align: center;
}

@media (max-width: 1100px) {
    .primary-nav {
        gap: 16px;
    }

    .primary-nav a {
        font-size: 0.79rem;
    }

    .hero-grid {
        gap: 42px;
    }

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

    .classroom-grid {
        grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
        gap: 38px;
    }
}

@media (max-width: 920px) {
    :root {
        --header-height: 72px;
    }

    body {
        font-size: 16px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: grid;
        max-height: calc(100vh - var(--header-height));
        align-content: start;
        gap: 0;
        padding: 18px 20px 28px;
        overflow-y: auto;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 50px rgba(16, 40, 63, 0.15);
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform 220ms ease, visibility 220ms ease;
    }

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

    .primary-nav a {
        padding: 15px 4px;
        border-bottom: 1px solid var(--line);
        font-size: 0.95rem;
    }

    .nav-classroom {
        margin-top: 12px;
        padding: 14px 18px !important;
        text-align: center;
    }

    .language-link {
        width: auto;
        height: auto;
        border: 0;
        border-radius: 0;
    }

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

    .hero-grid,
    .access-grid,
    .about-grid,
    .classroom-grid,
    .faq-grid,
    .contact-grid,
    .teacher-layout {
        grid-template-columns: 1fr;
    }

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

    .hero-copy .eyebrow,
    .button-row,
    .trust-row {
        justify-content: center;
    }

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

    .hero-visual {
        width: min(100%, 520px);
        margin-top: 20px;
    }

    .access-grid {
        gap: 28px;
    }

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

    .format-card {
        min-height: 0;
    }

    .classroom-grid {
        gap: 52px;
    }

    .faq-grid {
        gap: 30px;
    }

    .faq-heading {
        position: static;
    }

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

    .teacher-panel:first-child {
        order: 0;
    }
}

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

    h1 {
        font-size: clamp(2.55rem, 12vw, 4rem);
    }

    h2 {
        font-size: clamp(2.1rem, 9.5vw, 3.2rem);
    }

    .brand-copy small {
        display: none;
    }

    .hero {
        padding-bottom: 74px;
    }

    .hero-grid {
        gap: 45px;
    }

    .button-row .button {
        width: 100%;
    }

    .hero-micro {
        font-size: 0.75rem;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 10.8vw, 3.55rem);
    }

    .hero-visual {
        width: min(100%, 410px);
    }

    .hero-visual::before {
        inset: 24px -10px -14px 18px;
        border-radius: 26px;
    }

    .portrait-panel {
        border-radius: 25px;
    }

    .portrait-media {
        border-radius: 24px 24px 15px 15px;
    }

    .portrait-caption {
        padding: 18px 20px 21px;
    }

    .access-grid {
        padding-block: 38px;
    }

    .access-form-row {
        grid-template-columns: 1fr;
    }

    .access-form .button {
        width: 100%;
    }

    .content-section {
        padding: 82px 0;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .outcome-grid,
    .feature-grid,
    .footer-grid,
    .form-grid,
    .portal-form-grid,
    .lesson-summary {
        grid-template-columns: 1fr;
    }

    .outcome-card {
        min-height: 0;
    }

    .card-index {
        margin-bottom: 24px;
    }

    .process-step {
        grid-template-columns: 55px minmax(0, 1fr);
        gap: 15px;
    }

    .process-step > span {
        font-size: 1.65rem;
    }

    .about-grid {
        gap: 48px;
    }

    .classroom-panel {
        border-width: 6px;
        border-radius: 19px;
        transform: none;
    }

    .video-stage {
        grid-template-columns: 1fr;
    }

    .teacher-tile {
        display: none;
    }

    .video-tile {
        min-height: 260px;
    }

    .feature-grid {
        margin-top: 50px;
    }

    .faq-list summary {
        min-height: 72px;
        font-size: 1.08rem;
    }

    .faq-list details p {
        padding-right: 0;
    }

    .contact-form {
        padding: 24px;
    }

    .footer-grid {
        gap: 34px;
    }

    .cookie-banner {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
    }

    .floating-contact {
        right: 15px;
        bottom: 15px;
        width: 54px;
        height: 54px;
    }

    .cookie-banner:not([hidden]) ~ .floating-contact {
        display: none;
    }

    .portal-main {
        padding-top: 32px;
    }

    .portal-card,
    .teacher-panel {
        padding: 23px;
    }

    .classroom-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .private-classroom {
        min-height: calc(100vh - 168px);
        padding: 8px;
        border-radius: 16px;
    }

    .rtc-stage {
        min-height: calc(100vh - 310px);
        border-radius: 12px;
    }

    .rtc-local-card {
        right: 11px;
        bottom: 11px;
        width: min(42%, 190px);
        border-radius: 12px;
    }

    .rtc-bottom-bar {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 13px 2px 2px;
    }

    .rtc-status {
        text-align: center;
    }

    .rtc-controls {
        grid-column: 1;
        width: 100%;
        gap: 6px;
    }

    .rtc-control {
        min-width: 0;
        flex: 1 1 0;
        min-height: 62px;
        padding-inline: 5px;
        font-size: 0.6rem;
    }

    .rtc-error-panel {
        right: 16px;
        bottom: 92px;
        left: 16px;
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 18px;
    }

    .invite-item {
        grid-template-columns: 1fr;
    }

    .invite-actions {
        flex-wrap: wrap;
    }

    .copy-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Private lesson entry and embedded video */
.portal-main-classroom {
    padding: 0;
}

.portal-note {
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.8rem;
}

.classroom-entry-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 28px 44px;
    align-items: start;
}

.classroom-entry-card .lesson-summary {
    grid-column: 1 / -1;
    margin: 0;
}

.classroom-entry-card > .portal-alert,
.classroom-entry-card > .portal-form {
    grid-column: 2;
}

.classroom-entry-copy {
    grid-row: 1 / span 3;
}

.classroom-entry-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(2.35rem, 5vw, 4rem);
}

.classroom-entry-copy > p:not(.eyebrow) {
    color: var(--muted);
}

.portal-card code,
.portal-card pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.portal-card pre {
    overflow-x: auto;
    margin: 18px 0;
    padding: 15px;
    color: #eaf2f5;
    background: var(--ink-deep);
    border-radius: 12px;
    font-size: 0.78rem;
}

@media (max-width: 920px) {
    .classroom-entry-card {
        grid-template-columns: 1fr;
    }

    .classroom-entry-copy,
    .classroom-entry-card .lesson-summary,
    .classroom-entry-card > .portal-alert,
    .classroom-entry-card > .portal-form {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Final privacy, consent, and private-classroom refinements */
.breadcrumbs {
    margin: 0 0 26px;
    font-size: 0.78rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.breadcrumbs li + li::before {
    color: rgba(23, 50, 77, 0.38);
    content: "/";
}

.breadcrumbs a {
    color: var(--ink-soft);
    font-weight: 720;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent-dark);
}

.policy-updated {
    margin: 14px 0 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    font-size: 0.86rem;
}

.policy-section + .policy-section {
    padding-top: 4px;
}

.policy-section h2 {
    margin-top: 34px;
    margin-bottom: 12px;
}

.policy-section p {
    margin: 0;
}

.policy-contact,
.policy-language {
    margin-top: 30px;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: min(650px, calc(100% - 40px));
    padding: 14px 16px;
    border-radius: 15px;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.45;
}

.cookie-banner > div {
    flex-wrap: nowrap;
}

.cookie-banner .button {
    min-height: 38px;
    padding: 8px 14px;
    white-space: nowrap;
}

.rtc-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
    gap: 12px;
    min-height: 0;
}

.rtc-chat-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    color: var(--text);
    background: #f7f9fa;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
}

.rtc-chat-header {
    padding: 18px 18px 14px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.rtc-chat-header h2 {
    margin: 0 0 5px;
    color: var(--ink-deep);
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: 1rem;
    font-weight: 820;
}

.rtc-chat-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.45;
}

.rtc-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.rtc-chat-empty,
.rtc-chat-waiting {
    margin: auto;
    padding: 18px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
    text-align: center;
}

.rtc-chat-waiting {
    margin: 0;
    padding: 9px 16px 0;
    font-size: 0.7rem;
}

.rtc-chat-waiting[hidden] {
    display: none;
}

.rtc-chat-message {
    width: fit-content;
    max-width: 92%;
    padding: 10px 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px 14px 14px 4px;
    box-shadow: 0 5px 14px rgba(16, 40, 63, 0.06);
}

.rtc-chat-message.is-outgoing {
    align-self: flex-end;
    background: #e5f0f4;
    border-color: #cbdde5;
    border-radius: 14px 14px 4px 14px;
}

.rtc-chat-message-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.62rem;
}

.rtc-chat-message-meta strong {
    overflow: hidden;
    color: var(--ink-deep);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rtc-chat-message p {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.rtc-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding: 12px;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.rtc-chat-form textarea {
    width: 100%;
    min-height: 48px;
    max-height: 130px;
    padding: 11px 12px;
    resize: vertical;
    color: var(--text);
    background: #fbfcfc;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    font-size: 0.78rem;
    line-height: 1.35;
}

.rtc-chat-form textarea:focus {
    border-color: rgba(217, 111, 74, 0.7);
    outline: 3px solid rgba(217, 111, 74, 0.16);
}

.rtc-chat-form textarea:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.rtc-chat-form .button {
    min-height: 48px;
    padding-inline: 13px;
}

.rtc-chat-form .button:disabled {
    cursor: not-allowed;
}

@media (max-width: 1080px) {
    .rtc-workspace {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    }
}

@media (max-width: 860px) {
    .utility-page {
        padding: 44px 0 78px;
    }

    .private-classroom {
        min-height: 0;
        overflow: visible;
    }

    .rtc-workspace {
        grid-template-columns: 1fr;
    }

    .rtc-stage {
        min-height: clamp(390px, 62vh, 650px);
    }

    .rtc-chat-panel {
        min-height: 320px;
        max-height: 430px;
    }
}

@media (max-width: 680px) {
    .utility-page {
        padding: 30px 0 64px;
    }

    .utility-card h1 {
        font-size: clamp(2.1rem, 10vw, 3.1rem);
    }

    .utility-card h2 {
        font-size: 1.48rem;
    }

    .cookie-banner {
        right: 12px;
        bottom: 12px;
        grid-template-columns: 1fr;
        gap: 10px;
        width: calc(100% - 24px);
        padding: 12px;
        border-radius: 14px;
    }

    .cookie-banner p {
        font-size: 0.72rem;
    }

    .cookie-banner > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .cookie-banner .button {
        width: 100%;
        min-height: 38px;
        padding-inline: 8px;
        font-size: 0.73rem;
    }

    .rtc-stage {
        min-height: clamp(330px, 53vh, 490px);
    }

    .rtc-chat-panel {
        min-height: 300px;
        max-height: 390px;
        border-radius: 14px;
    }

    .rtc-chat-form {
        grid-template-columns: 1fr;
    }

    .rtc-chat-form .button {
        width: 100%;
    }
}

/* =========================================================
   Tatiana Lumina v4
   Premium visual system, responsive classroom and motion layer
   ========================================================= */

:root {
    --ink: #102f43;
    --ink-deep: #081f31;
    --ink-soft: #2f5568;
    --accent: #ee7257;
    --accent-dark: #cf553b;
    --accent-soft: #ffe4dc;
    --teal: #16777b;
    --teal-dark: #0d555b;
    --teal-soft: #dff2f1;
    --sky: #e5f1f3;
    --cream: #f8f5ee;
    --cream-deep: #efe9de;
    --paper: #ffffff;
    --text: #294756;
    --muted: #657e8b;
    --line: rgba(16, 47, 67, 0.13);
    --line-strong: rgba(16, 47, 67, 0.22);
    --success: #17775d;
    --error: #a43f38;
    --shadow-xs: 0 8px 24px rgba(8, 31, 49, 0.06);
    --shadow-sm: 0 18px 45px rgba(8, 31, 49, 0.09);
    --shadow-md: 0 28px 80px rgba(8, 31, 49, 0.15);
    --shadow-xl: 0 50px 120px rgba(8, 31, 49, 0.2);
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 38px;
    --radius-xl: 54px;
    --container: 1220px;
    --header-height: 84px;
    --ease-spring: cubic-bezier(.2, .78, .25, 1);
}

html {
    scroll-padding-top: calc(var(--header-height) + 28px);
    background: var(--cream);
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at 4% 4%, rgba(238, 114, 87, 0.08), transparent 28rem),
        radial-gradient(circle at 92% 2%, rgba(22, 119, 123, 0.08), transparent 34rem),
        var(--paper);
    font-size: 16px;
    line-height: 1.68;
}

.site-page {
    overflow-x: clip;
}

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

h1,
h2,
h3 {
    color: var(--ink-deep);
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
    font-weight: 650;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(3.2rem, 6.7vw, 6.4rem);
    line-height: 0.98;
}

h2 {
    font-size: clamp(2.35rem, 4.8vw, 4.55rem);
    line-height: 1.02;
}

h3 {
    line-height: 1.12;
}

::selection {
    color: var(--ink-deep);
    background: rgba(238, 114, 87, 0.26);
}

.scroll-progress {
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #4bbeb7, var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
}

.site-header,
.portal-header,
.simple-header {
    z-index: 1000;
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(16, 47, 67, 0.08);
    box-shadow: none;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 44px rgba(8, 31, 49, 0.08);
}

.header-inner {
    min-height: var(--header-height);
}

.brand {
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    width: 48px;
    height: 48px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(145deg, var(--ink-deep), #164d63);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 17px;
    box-shadow: 0 12px 28px rgba(8, 31, 49, 0.18);
    font-size: 1.5rem;
    transform: rotate(-3deg);
    transition: transform 350ms var(--ease-spring), box-shadow 350ms var(--ease-spring);
}

.brand:hover .brand-mark {
    box-shadow: 0 16px 34px rgba(8, 31, 49, 0.24);
    transform: rotate(2deg) translateY(-2px);
}

.brand-copy strong {
    color: var(--ink-deep);
    font-family: ui-serif, Georgia, serif;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.primary-nav {
    gap: 4px;
}

.primary-nav > a,
.simple-back {
    position: relative;
    padding: 11px 13px;
    color: var(--ink-soft);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 750;
    text-decoration: none;
    transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.primary-nav > a:not(.nav-classroom):hover,
.simple-back:hover {
    color: var(--ink-deep);
    background: rgba(22, 119, 123, 0.08);
    transform: translateY(-1px);
}

.primary-nav .nav-classroom {
    margin-left: 7px;
    padding-inline: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--ink-deep), #164e62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(8, 31, 49, 0.15);
}

.primary-nav .nav-classroom:hover {
    color: #fff;
    background: linear-gradient(135deg, #164e62, var(--teal));
    box-shadow: 0 14px 30px rgba(8, 31, 49, 0.22);
    transform: translateY(-2px);
}

.primary-nav .language-link {
    min-width: 45px;
    color: var(--teal-dark);
    border: 1px solid var(--line);
    text-align: center;
}

.menu-toggle {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-xs);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--teal-dark);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.17em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    border-radius: 999px;
    content: "";
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.78);
}

.eyebrow-light::before {
    background: linear-gradient(90deg, #ffb09d, #78e3da);
}

.button {
    position: relative;
    min-height: 54px;
    padding: 14px 24px;
    overflow: hidden;
    border-radius: 17px;
    font-size: 0.86rem;
    font-weight: 850;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: transform 260ms var(--ease-spring), box-shadow 260ms ease, border-color 260ms ease, background-color 260ms ease;
}

.button::after {
    position: absolute;
    top: -60%;
    left: -35%;
    width: 35%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: rotate(18deg);
    transition: left 650ms ease;
    content: "";
}

.button:hover::after {
    left: 120%;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #f28a63);
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(218, 83, 55, 0.24);
}

.button-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    box-shadow: 0 20px 42px rgba(218, 83, 55, 0.32);
}

.button-secondary,
.button-ghost {
    color: var(--ink-deep);
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--line-strong);
    box-shadow: 0 10px 24px rgba(8, 31, 49, 0.05);
    backdrop-filter: blur(10px);
}

.button-secondary:hover,
.button-ghost:hover {
    color: var(--teal-dark);
    background: #fff;
    border-color: rgba(22, 119, 123, 0.35);
    box-shadow: var(--shadow-sm);
}

.button-light {
    color: var(--ink-deep);
    background: #fff;
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 34px rgba(8, 31, 49, 0.15);
}

.button-outline-light {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.button-outline-light:hover {
    color: var(--ink-deep);
    background: #fff;
}

/* Homepage hero */
.hero {
    position: relative;
    min-height: min(850px, calc(100vh - var(--header-height)));
    padding: clamp(76px, 9vw, 126px) 0 clamp(70px, 8vw, 112px);
    overflow: hidden;
    background:
        radial-gradient(circle at 79% 34%, rgba(22, 119, 123, 0.16), transparent 23rem),
        radial-gradient(circle at 7% 75%, rgba(238, 114, 87, 0.13), transparent 28rem),
        linear-gradient(120deg, #fbf8f2 0%, #f7f7f2 48%, #edf7f7 100%);
}

.hero::before {
    top: 8%;
    right: -7%;
    width: 42vw;
    min-width: 520px;
    height: 42vw;
    min-height: 520px;
    background:
        radial-gradient(circle, transparent 49%, rgba(22, 119, 123, 0.18) 49.5%, rgba(22, 119, 123, 0.18) 50%, transparent 50.5%),
        radial-gradient(circle, transparent 65%, rgba(238, 114, 87, 0.12) 65.5%, rgba(238, 114, 87, 0.12) 66%, transparent 66.5%);
    border: 0;
    border-radius: 50%;
    animation: aurora-spin 34s linear infinite;
}

.hero::after {
    inset: auto auto 7% 4%;
    width: 250px;
    height: 140px;
    opacity: 0.38;
    background-image: radial-gradient(circle, var(--ink-deep) 1.2px, transparent 1.4px);
    background-size: 22px 22px;
    border-radius: 0;
    filter: none;
    animation: dot-drift 12s ease-in-out infinite alternate;
}

.hero-grid {
    position: relative;
    z-index: 2;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.82fr);
    align-items: center;
    gap: clamp(48px, 7vw, 104px);
}

.hero-copy {
    max-width: 770px;
}

.hero h1 {
    max-width: 820px;
    margin-bottom: 28px;
}

.hero-title-accent {
    display: block;
    margin-top: 14px;
    color: transparent;
    background: linear-gradient(95deg, var(--accent-dark), var(--accent) 48%, var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 0.55em;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.hero-lead {
    max-width: 690px;
    margin-bottom: 30px;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.68;
}

.hero .button-row {
    gap: 12px;
}

.hero-micro {
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 720;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 34px;
}

.trust-row span {
    padding: 9px 13px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(16, 47, 67, 0.1);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(8, 31, 49, 0.04);
    font-size: 0.72rem;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 610px;
    perspective: 1200px;
}

.hero-visual::before {
    position: absolute;
    inset: 9% 2% 4% 8%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(214, 238, 238, 0.66));
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 48% 52% 46% 54% / 38% 44% 56% 62%;
    box-shadow: inset 0 1px 0 #fff, var(--shadow-md);
    transform: rotate(-4deg);
    content: "";
}

.hero-orbit {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(22, 119, 123, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.hero-orbit::after {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border: 4px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(238, 114, 87, 0.35);
    content: "";
}

.hero-orbit-one {
    inset: 2% -3% 3% 0;
    animation: aurora-spin 27s linear infinite;
}

.hero-orbit-one::after {
    top: 12%;
    right: 12%;
}

.hero-orbit-two {
    inset: 16% 6% 12% 12%;
    border-style: dashed;
    animation: aurora-spin 22s linear infinite reverse;
}

.hero-orbit-two::after {
    right: 4%;
    bottom: 20%;
    background: var(--teal);
}

.portrait-panel {
    position: relative;
    z-index: 3;
    width: min(430px, 84%);
    margin: 0;
    overflow: visible;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 34px;
    box-shadow: var(--shadow-xl);
    transform: rotate(1.5deg);
    transform-style: preserve-3d;
    transition: transform 260ms var(--ease-spring);
    backdrop-filter: blur(18px);
}

.portrait-panel::before {
    position: absolute;
    z-index: -1;
    inset: -12px;
    background: linear-gradient(145deg, rgba(238, 114, 87, 0.22), rgba(22, 119, 123, 0.22));
    border-radius: 42px;
    filter: blur(18px);
    opacity: 0.7;
    content: "";
}

.portrait-media {
    aspect-ratio: 0.88;
    overflow: hidden;
    border-radius: 30px 30px 20px 20px;
}

.portrait-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.015);
    transition: transform 800ms var(--ease-spring);
}

.portrait-panel:hover .portrait-media img {
    transform: scale(1.045);
}

.portrait-status {
    right: 18px;
    bottom: 18px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(8, 31, 49, 0.87);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(8, 31, 49, 0.22);
    font-size: 0.7rem;
    font-weight: 820;
    backdrop-filter: blur(12px);
}

.portrait-status > span {
    width: 9px;
    height: 9px;
    background: #5ce0ae;
    box-shadow: 0 0 0 5px rgba(92, 224, 174, 0.14);
    animation: live-pulse 2.2s ease-in-out infinite;
}

.portrait-caption {
    padding: 19px 24px 22px;
    background: transparent;
}

.portrait-kicker {
    color: var(--accent-dark);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.portrait-caption strong {
    color: var(--ink-deep);
    font-family: ui-serif, Georgia, serif;
    font-size: 1.68rem;
}

.portrait-caption small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 720;
}

.hero-note {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--ink-deep);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    font-size: 0.72rem;
    backdrop-filter: blur(14px);
    animation: float-note 5.6s ease-in-out infinite;
}

.hero-note span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), #42aaa5);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 900;
}

.hero-note strong {
    white-space: nowrap;
}

.hero-note-top {
    top: 8%;
    left: -4%;
}

.hero-note-side {
    right: -6%;
    bottom: 18%;
    animation-delay: -2.1s;
}

.hero-note-side span {
    background: linear-gradient(135deg, var(--accent), #f8a17c);
}

.availability-band {
    position: relative;
    z-index: 4;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(100deg, var(--ink-deep), #103f51 55%, var(--teal-dark));
    border-block: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(8, 31, 49, 0.16);
}

.availability-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 3vw, 38px);
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.availability-track i {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(238, 114, 87, 0.13);
}

.student-access {
    padding: 46px 0;
    background:
        radial-gradient(circle at 86% 50%, rgba(105, 226, 214, 0.14), transparent 24rem),
        linear-gradient(120deg, #0a283b, #0d4855 65%, #126a6b);
    border: 0;
}

.access-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
    align-items: center;
    gap: clamp(34px, 7vw, 90px);
}

.student-access h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.student-access p {
    color: rgba(255, 255, 255, 0.7);
}

.access-form {
    padding: 17px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.access-form input {
    min-height: 58px;
    color: var(--ink-deep);
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-radius: 15px;
    box-shadow: inset 0 0 0 1px rgba(8, 31, 49, 0.07);
    font-weight: 800;
    letter-spacing: 0.1em;
}

.access-form .button {
    min-height: 58px;
}

.content-section {
    position: relative;
    padding: clamp(88px, 10vw, 150px) 0;
}

.section-heading {
    max-width: 820px;
    margin-bottom: clamp(42px, 6vw, 72px);
}

.section-heading > p:last-child {
    max-width: 690px;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-tinted {
    background:
        radial-gradient(circle at 8% 10%, rgba(238, 114, 87, 0.08), transparent 26rem),
        linear-gradient(180deg, #f8f5ee, #f4f3ed);
}

.section-dark {
    color: rgba(255, 255, 255, 0.76);
    background:
        radial-gradient(circle at 90% 10%, rgba(74, 213, 201, 0.16), transparent 30rem),
        radial-gradient(circle at 5% 100%, rgba(238, 114, 87, 0.17), transparent 28rem),
        linear-gradient(135deg, #071f31, #0c394a 58%, #0b4e53);
}

.section-dark::before {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
    background-size: 29px 29px;
    mask-image: linear-gradient(90deg, #000, transparent 55%);
    content: "";
}

.section-heading-dark h2,
.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.outcome-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.outcome-card {
    position: relative;
    min-height: 310px;
    padding: 29px 27px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(16, 47, 67, 0.1);
    border-radius: 25px;
    box-shadow: var(--shadow-xs);
    transition: transform 330ms var(--ease-spring), box-shadow 330ms ease, border-color 330ms ease;
}

.outcome-card::before {
    position: absolute;
    right: -55px;
    bottom: -75px;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(22, 119, 123, 0.16), transparent 68%);
    border-radius: 50%;
    transition: transform 450ms var(--ease-spring);
    content: "";
}

.outcome-card:nth-child(even)::before {
    background: radial-gradient(circle, rgba(238, 114, 87, 0.16), transparent 68%);
}

.outcome-card:hover {
    border-color: rgba(22, 119, 123, 0.26);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
}

.outcome-card:hover::before {
    transform: scale(1.35) translate(-12px, -8px);
}

.card-index {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 52px;
    color: var(--teal-dark);
    background: var(--teal-soft);
    border-radius: 15px;
    font-size: 0.72rem;
    font-weight: 900;
}

.outcome-card:nth-child(even) .card-index {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.outcome-card h3 {
    font-size: 1.5rem;
}

.outcome-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

.process-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.process-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    min-height: 190px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 47, 67, 0.1);
    border-radius: 25px;
    box-shadow: var(--shadow-xs);
    transition: transform 300ms var(--ease-spring), box-shadow 300ms ease;
}

.process-step:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-6px);
}

.process-step > span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #fff;
    background: linear-gradient(145deg, var(--ink-deep), var(--teal));
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(8, 31, 49, 0.18);
    font-size: 0.73rem;
    font-weight: 900;
}

.process-step h3 {
    font-size: 1.48rem;
}

.process-step p {
    color: var(--muted);
    font-size: 0.9rem;
}

.about-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 56%, rgba(22, 119, 123, 0.1), transparent 30rem),
        #fff;
}

.about-grid {
    grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.1fr);
    gap: clamp(52px, 9vw, 120px);
}

.about-photo {
    position: relative;
    max-width: 520px;
    padding: 14px;
    background: linear-gradient(145deg, #fff, #e9f4f3);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 38px;
    box-shadow: var(--shadow-xl);
    transform: rotate(-2deg);
}

.about-photo::before,
.about-photo::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
}

.about-photo::before {
    top: -55px;
    right: -70px;
    width: 190px;
    height: 190px;
    background: rgba(238, 114, 87, 0.14);
}

.about-photo::after {
    bottom: -45px;
    left: -55px;
    width: 140px;
    height: 140px;
    border: 1px dashed rgba(22, 119, 123, 0.35);
}

.about-photo img {
    border-radius: 28px;
}

.about-copy > p:not(.eyebrow) {
    color: var(--ink-soft);
    font-size: 1.03rem;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 30px 0;
}

.check-list li {
    padding: 13px 16px;
    background: linear-gradient(90deg, var(--teal-soft), rgba(255, 255, 255, 0));
    border-radius: 14px;
    font-size: 0.87rem;
    font-weight: 720;
}

.check-list li span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    color: #fff;
    background: var(--teal);
    border-radius: 9px;
}

.text-link {
    gap: 12px;
    color: var(--ink-deep);
    font-weight: 850;
    text-decoration: none;
}

.text-link span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    transition: transform 260ms var(--ease-spring);
}

.text-link:hover span {
    transform: translateX(5px) rotate(-8deg);
}

.format-grid {
    gap: 16px;
}

.format-card {
    position: relative;
    min-height: 330px;
    padding: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: transform 330ms var(--ease-spring), background-color 330ms ease, border-color 330ms ease;
}

.format-card::after {
    position: absolute;
    right: -24px;
    bottom: -32px;
    width: 130px;
    height: 130px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), transparent);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 42% 58% 56% 44%;
    transform: rotate(25deg);
    content: "";
}

.format-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-9px);
}

.format-card > span {
    color: #8fe5de;
    background: rgba(89, 216, 206, 0.11);
    border: 1px solid rgba(120, 227, 218, 0.18);
    border-radius: 999px;
    font-size: 0.67rem;
}

.format-card h3 {
    margin-top: 58px;
    color: #fff;
    font-size: 1.65rem;
}

.format-card p {
    color: rgba(255, 255, 255, 0.66);
}

/* SEO service cards */
.services-section {
    background:
        radial-gradient(circle at 94% 8%, rgba(22, 119, 123, 0.12), transparent 26rem),
        #fff;
}

.services-heading {
    max-width: 900px;
}

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

.service-link-card {
    position: relative;
    display: grid;
    min-height: 300px;
    padding: 30px;
    overflow: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 100% 0%, rgba(22, 119, 123, 0.12), transparent 18rem),
        linear-gradient(145deg, #fff, #f7f8f5);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    transition: transform 340ms var(--ease-spring), box-shadow 340ms ease, border-color 340ms ease;
}

.service-link-card:nth-child(2n) {
    background:
        radial-gradient(circle at 100% 0%, rgba(238, 114, 87, 0.13), transparent 18rem),
        linear-gradient(145deg, #fff, #fbf7f3);
}

.service-link-card:hover {
    color: var(--text);
    border-color: rgba(22, 119, 123, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-9px);
}

.service-card-number {
    position: absolute;
    top: 24px;
    right: 25px;
    color: rgba(8, 31, 49, 0.16);
    font-family: ui-serif, Georgia, serif;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1;
}

.service-link-card small {
    align-self: start;
    width: fit-content;
    padding: 7px 10px;
    color: var(--teal-dark);
    background: var(--teal-soft);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-link-card:nth-child(2n) small {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.service-link-card h3 {
    max-width: 75%;
    margin-top: 42px;
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
}

.service-link-card p {
    max-width: 620px;
    color: var(--muted);
}

.service-link-card > strong {
    align-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-deep);
    font-size: 0.78rem;
}

.service-link-card > strong span {
    font-size: 1rem;
    transition: transform 250ms var(--ease-spring);
}

.service-link-card:hover > strong span {
    transform: translate(4px, -4px);
}

/* Classroom marketing block */
.classroom-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(238, 114, 87, 0.09), transparent 28rem),
        linear-gradient(180deg, #f8f5ee, #fff);
}

.classroom-grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(530px, 1.28fr);
    gap: clamp(44px, 7vw, 90px);
}

.classroom-copy {
    position: sticky;
    top: calc(var(--header-height) + 40px);
    align-self: start;
}

.classroom-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.02rem;
}

.classroom-panel {
    padding: 10px;
    background: linear-gradient(145deg, #0b2638, #0d4351);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
    transition: transform 650ms var(--ease-spring);
}

.classroom-panel:hover {
    transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-5px);
}

.browser-bar {
    min-height: 52px;
    padding: 0 16px;
    border: 0;
}

.browser-bar span {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.3);
}

.browser-bar span:first-child { background: #f48269; }
.browser-bar span:nth-child(2) { background: #f7c267; }
.browser-bar span:nth-child(3) { background: #56d2a4; }

.browser-bar strong {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.video-stage {
    min-height: 430px;
    gap: 10px;
    padding: 10px;
    background:
        radial-gradient(circle at 30% 20%, rgba(60, 193, 186, 0.13), transparent 20rem),
        #071c2b;
    border-radius: 22px;
}

.video-tile {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 19px;
}

.teacher-tile span {
    background: rgba(8, 31, 49, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.lesson-board {
    color: rgba(255, 255, 255, 0.74);
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(145deg, #123c4d, #0d2939);
    background-size: 28px 28px, 28px 28px, auto;
    border-radius: 16px;
}

.lesson-board strong {
    color: #fff;
}

.video-controls i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-controls .hangup {
    background: var(--accent);
}

.feature-grid {
    margin-top: 62px;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature-item {
    padding: 29px 26px;
    border-right: 1px solid var(--line);
}

.feature-item:last-child {
    border-right: 0;
}

.feature-item > span {
    color: var(--accent-dark);
    font-size: 0.7rem;
    font-weight: 900;
}

.feature-item h3 {
    font-size: 1.3rem;
}

.feature-item p {
    color: var(--muted);
    font-size: 0.84rem;
}

.faq-grid {
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
    gap: clamp(48px, 9vw, 120px);
}

.faq-heading {
    position: sticky;
    top: calc(var(--header-height) + 40px);
    align-self: start;
}

.faq-list {
    gap: 12px;
}

.faq-list details {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 19px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 260ms ease, border-color 260ms ease, transform 260ms var(--ease-spring);
}

.faq-list details:hover {
    border-color: rgba(22, 119, 123, 0.25);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.faq-list summary {
    min-height: 72px;
    padding: 19px 22px;
    color: var(--ink-deep);
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 820;
}

.faq-list summary span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--teal-dark);
    background: var(--teal-soft);
    border-radius: 11px;
    transition: transform 300ms var(--ease-spring), background-color 300ms ease;
}

.faq-list details[open] summary span {
    color: #fff;
    background: var(--accent);
    transform: rotate(45deg);
}

.faq-list details p {
    padding: 0 22px 22px;
    color: var(--muted);
    font-size: 0.91rem;
}

.contact-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 90%, rgba(238, 114, 87, 0.22), transparent 29rem),
        radial-gradient(circle at 90% 10%, rgba(83, 217, 206, 0.18), transparent 31rem),
        linear-gradient(135deg, #071f31, #0e4150 62%, #0d5a5d);
}

.contact-section::before {
    position: absolute;
    top: 0;
    right: -10%;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 160px rgba(255, 255, 255, 0.018);
    content: "";
}

.contact-grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1fr);
    gap: clamp(50px, 8vw, 110px);
}

.contact-copy h2 {
    color: #fff;
}

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

.contact-direct {
    gap: 9px;
}

.contact-direct > span {
    color: rgba(255, 255, 255, 0.45);
}

.contact-direct a {
    width: fit-content;
    color: #fff;
    font-weight: 750;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.contact-form {
    padding: clamp(24px, 4vw, 42px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
}

.field-group label {
    color: var(--ink-deep);
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.035em;
}

.field-group input,
.field-group select,
.field-group textarea,
.portal-form input,
.portal-form select,
.portal-form textarea {
    min-height: 54px;
    color: var(--ink-deep);
    background: #f9fbfa;
    border: 1px solid rgba(16, 47, 67, 0.14);
    border-radius: 14px;
    box-shadow: inset 0 1px 2px rgba(8, 31, 49, 0.02);
    transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.field-group textarea {
    min-height: 130px;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus,
.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
    background: #fff;
    border-color: rgba(22, 119, 123, 0.55);
    box-shadow: 0 0 0 4px rgba(22, 119, 123, 0.1);
    outline: none;
}

.privacy-check {
    color: var(--muted);
    font-size: 0.76rem;
}

.floating-contact {
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    color: #fff;
    background: linear-gradient(145deg, #1fa66d, #168452);
    border: 4px solid rgba(255, 255, 255, 0.88);
    border-radius: 21px;
    box-shadow: 0 18px 44px rgba(12, 98, 61, 0.28);
    font-size: 0.68rem;
    font-weight: 900;
    text-decoration: none;
    transform: rotate(-3deg);
    transition: transform 280ms var(--ease-spring), box-shadow 280ms ease;
}

.floating-contact:hover {
    box-shadow: 0 22px 54px rgba(12, 98, 61, 0.36);
    transform: rotate(2deg) translateY(-5px);
}

.site-footer {
    padding-top: 76px;
    color: rgba(255, 255, 255, 0.67);
    background: #061a29;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-grid {
    gap: 50px;
}

.site-footer h2 {
    color: #fff;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer a:not(.brand) {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 200ms ease, transform 200ms ease;
}

.site-footer a:not(.brand):hover {
    color: #fff;
    transform: translateX(3px);
}

.site-footer .brand-copy strong {
    color: #fff;
}

.site-footer .brand-copy small {
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom {
    margin-top: 54px;
    border-color: rgba(255, 255, 255, 0.08);
}

.cookie-banner {
    right: 22px;
    bottom: 22px;
    max-width: 590px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(16, 47, 67, 0.14);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(18px);
}

/* Dedicated service landing pages */
.service-hero {
    position: relative;
    padding: 40px 0 84px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 24%, rgba(22, 119, 123, 0.15), transparent 27rem),
        radial-gradient(circle at 5% 82%, rgba(238, 114, 87, 0.12), transparent 30rem),
        linear-gradient(125deg, #fbf8f2, #edf6f5);
}

.service-hero::after {
    position: absolute;
    right: 4%;
    bottom: 6%;
    width: 220px;
    height: 150px;
    opacity: 0.24;
    background-image: radial-gradient(circle, var(--ink-deep) 1px, transparent 1.2px);
    background-size: 20px 20px;
    content: "";
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 4px 0 54px;
    color: var(--muted);
    font-size: 0.72rem;
}

.breadcrumbs a {
    color: var(--teal-dark);
    font-weight: 800;
    text-decoration: none;
}

.service-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.56fr);
    align-items: center;
    gap: clamp(48px, 8vw, 108px);
}

.service-hero-copy h1 {
    max-width: 900px;
    margin-bottom: 28px;
    font-size: clamp(3rem, 6vw, 5.8rem);
}

.service-lead {
    max-width: 760px;
    margin-bottom: 31px;
    color: var(--ink-soft);
    font-size: clamp(1.06rem, 1.5vw, 1.25rem);
}

.service-portrait {
    position: relative;
    max-width: 390px;
    margin-inline: auto;
    padding: 11px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 31px;
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
    transition: transform 280ms var(--ease-spring);
}

.service-portrait img {
    aspect-ratio: 0.88;
    object-fit: cover;
    object-position: center top;
    border-radius: 23px;
}

.service-portrait-caption {
    display: grid;
    padding: 16px 13px 10px;
}

.service-portrait-caption span {
    color: var(--accent-dark);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-portrait-caption strong {
    color: var(--ink-deep);
    font-family: ui-serif, Georgia, serif;
    font-size: 1.55rem;
}

.service-portrait-caption small {
    color: var(--muted);
    font-size: 0.73rem;
}

.service-highlight-list {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 65px 0 0;
    padding: 0;
    list-style: none;
}

.service-highlight-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(16, 47, 67, 0.1);
    border-radius: 17px;
    box-shadow: var(--shadow-xs);
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 760;
    backdrop-filter: blur(12px);
}

.service-highlight-list li span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #fff;
    background: var(--teal);
    border-radius: 9px;
}

.service-reading-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
    gap: clamp(48px, 8vw, 110px);
    align-items: start;
}

.service-reading-grid .section-heading {
    position: sticky;
    top: calc(var(--header-height) + 42px);
    margin: 0;
}

.service-prose {
    max-width: 780px;
}

.service-prose p {
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.86;
}

.service-prose p + p {
    margin-top: 24px;
}

.service-prose-light p {
    color: rgba(255, 255, 255, 0.74);
}

.service-detail-section .service-reading-grid,
.service-detail-section .section-heading {
    position: relative;
    z-index: 2;
}

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

.related-service-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    padding: 22px;
    color: var(--ink-deep);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 19px;
    box-shadow: var(--shadow-xs);
    font-weight: 820;
    text-decoration: none;
    transition: transform 280ms var(--ease-spring), box-shadow 280ms ease, border-color 280ms ease;
}

.related-service-grid a:hover {
    border-color: rgba(22, 119, 123, 0.3);
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
}

.related-service-grid strong {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: var(--ink-deep);
    border-radius: 13px;
}

.service-cta-section {
    padding: 0 0 clamp(88px, 10vw, 140px);
    background: #fff;
}

.service-cta-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
    padding: clamp(34px, 6vw, 72px);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at 95% 0%, rgba(84, 222, 211, 0.2), transparent 24rem),
        linear-gradient(130deg, #071f31, #0d4a57);
    border-radius: 34px;
    box-shadow: var(--shadow-xl);
}

.service-cta-card::after {
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.025), 0 0 0 90px rgba(255, 255, 255, 0.018);
    content: "";
}

.service-cta-card > * {
    position: relative;
    z-index: 2;
}

.service-cta-card h2 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.service-cta-card p:not(.eyebrow) {
    max-width: 760px;
}

/* Portal, teacher and private classroom */
.portal-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 5% 5%, rgba(238, 114, 87, 0.08), transparent 28rem),
        radial-gradient(circle at 92% 4%, rgba(22, 119, 123, 0.1), transparent 34rem),
        #f4f2ec;
}

.portal-header {
    position: sticky;
    top: 0;
}

.portal-actions {
    gap: 3px;
}

.portal-actions form {
    margin: 0;
}

.portal-main {
    min-height: calc(100vh - var(--header-height));
    padding: clamp(36px, 6vw, 78px) 0 clamp(72px, 8vw, 120px);
}

.portal-main-classroom {
    padding: 18px 0 26px;
}

.portal-card,
.teacher-panel {
    background: rgba(255, 255, 255, 0.89);
    border: 1px solid rgba(16, 47, 67, 0.11);
    border-radius: 27px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.portal-card {
    max-width: 780px;
    padding: clamp(28px, 5vw, 54px);
}

.portal-card-wide {
    max-width: none;
}

.portal-card h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.portal-card h2,
.teacher-panel h2 {
    font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.portal-note,
.portal-card > p,
.teacher-panel > p:not(.eyebrow) {
    color: var(--muted);
}

.portal-alert {
    padding: 15px 17px;
    border: 0;
    border-radius: 15px;
    font-size: 0.8rem;
}

.portal-alert-info {
    color: #164b5d;
    background: #e4f1f3;
    box-shadow: inset 4px 0 0 var(--teal);
}

.portal-alert-error {
    color: #81342f;
    background: #fae5e1;
    box-shadow: inset 4px 0 0 var(--error);
}

.portal-alert-success {
    color: #155841;
    background: #e0f2e9;
    box-shadow: inset 4px 0 0 var(--success);
}

.lesson-summary {
    gap: 11px;
}

.lesson-summary > div {
    min-height: 88px;
    padding: 16px;
    background: linear-gradient(145deg, #f8faf9, #f2f5f3);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.lesson-summary span {
    color: var(--muted);
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-summary strong {
    color: var(--ink-deep);
}

.teacher-layout {
    grid-template-columns: minmax(330px, 0.74fr) minmax(0, 1.26fr);
    align-items: start;
    gap: 20px;
}

.teacher-panel {
    padding: clamp(25px, 4vw, 38px);
}

.teacher-panel:first-child {
    position: sticky;
    top: calc(var(--header-height) + 22px);
}

.invite-result {
    padding: 18px;
    background: linear-gradient(145deg, #e8f4f2, #f9fbf9);
    border: 1px solid rgba(22, 119, 123, 0.18);
    border-radius: 18px;
}

.invite-code,
.invite-item-code {
    color: var(--accent-dark);
    font-weight: 900;
    letter-spacing: 0.11em;
}

.invite-list {
    gap: 11px;
}

.invite-item {
    gap: 18px;
    padding: 18px;
    background: #fafbf9;
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms var(--ease-spring);
}

.invite-item:hover {
    border-color: rgba(22, 119, 123, 0.27);
    box-shadow: var(--shadow-xs);
    transform: translateY(-2px);
}

.invite-item h3 {
    margin: 0 0 5px;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.invite-item p {
    color: var(--muted);
    font-size: 0.72rem;
}

.text-button {
    color: var(--accent-dark);
    font-weight: 800;
}

/* Live classroom fixes and redesign */
.private-classroom-shell {
    width: min(calc(100% - 28px), 1660px);
    margin: 0 auto;
}

.classroom-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    margin-bottom: 10px;
    padding: 8px 12px 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 47, 67, 0.1);
    border-radius: 17px;
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(16px);
}

.classroom-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.classroom-meta > span {
    padding: 7px 10px;
    color: var(--ink-soft);
    background: #f3f7f6;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
}

.classroom-topbar-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.rtc-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: #156a55;
    background: #e2f4eb;
    border: 1px solid rgba(23, 119, 93, 0.16);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 850;
    white-space: nowrap;
}

.rtc-security-badge svg {
    display: block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.private-classroom {
    position: relative;
    min-height: calc(100vh - var(--header-height) - 108px);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.74);
    background:
        radial-gradient(circle at 15% 10%, rgba(59, 195, 188, 0.12), transparent 30rem),
        linear-gradient(145deg, #061b2a, #0a2c3d 65%, #0b3d48);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(5, 25, 39, 0.24);
}

.rtc-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 10px;
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 10px;
}

.rtc-stage {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(32, 101, 117, 0.24), transparent 32rem),
        #071c2a;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
}

.rtc-video-card {
    overflow: hidden;
    background: #071c2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
}

.rtc-remote-card {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: 0;
}

.rtc-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
}

.rtc-local-card {
    position: absolute;
    z-index: 5;
    right: 18px;
    bottom: 18px;
    width: clamp(180px, 24%, 320px);
    aspect-ratio: 16 / 10;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 17px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.rtc-video-placeholder {
    display: grid;
    place-content: center;
    justify-items: center;
    height: 100%;
    padding: 28px;
    text-align: center;
}

.rtc-placeholder-mark {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin-bottom: 23px;
    color: #fff;
    background: linear-gradient(145deg, var(--teal), #45b6af);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 29px;
    box-shadow: 0 20px 55px rgba(22, 119, 123, 0.28);
    font-family: ui-serif, Georgia, serif;
    font-size: 2.4rem;
}

.rtc-video-placeholder h1 {
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(1.85rem, 3vw, 3.1rem);
}

.rtc-video-placeholder p {
    max-width: 430px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.86rem;
}

.rtc-video-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: #fff;
    background: rgba(4, 19, 29, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.68rem;
    backdrop-filter: blur(12px);
}

.rtc-video-label-local {
    bottom: 8px;
    left: 8px;
    padding: 6px 8px;
    font-size: 0.61rem;
}

.rtc-presence-dot {
    width: 7px;
    height: 7px;
    background: #6c8793;
    border-radius: 50%;
}

.private-classroom.is-connected .rtc-presence-dot {
    background: #56dda7;
    box-shadow: 0 0 0 4px rgba(86, 221, 167, 0.13);
}

.rtc-chat-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    min-height: 0;
    overflow: hidden;
    color: var(--text);
    background: rgba(250, 252, 251, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.rtc-chat-header {
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.rtc-chat-header h2 {
    color: var(--ink-deep);
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 0.93rem;
    font-weight: 900;
}

.rtc-chat-header p {
    color: var(--muted);
    font-size: 0.66rem;
}

.rtc-chat-messages {
    padding: 15px;
}

.rtc-chat-form {
    padding: 10px;
}

.rtc-bottom-bar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 82px;
    padding: 10px 18px;
    background: rgba(5, 23, 35, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.rtc-status {
    position: relative;
    grid-column: 1;
    margin: 0;
    padding-left: 15px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.68rem;
    font-weight: 750;
}

.rtc-status::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    background: #7b929b;
    border-radius: 50%;
    transform: translateY(-50%);
    content: "";
}

.rtc-status[data-state="connected"]::before,
.rtc-status[data-state="success"]::before {
    background: #56dda7;
}

.rtc-status[data-state="error"]::before {
    background: #ff7966;
}

.rtc-controls {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rtc-control {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 3px;
    min-width: 70px;
    min-height: 60px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 0.59rem;
    font-weight: 760;
    transition: transform 220ms var(--ease-spring), background-color 220ms ease, border-color 220ms ease;
}

.rtc-control:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.rtc-control[aria-pressed="false"] {
    color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.045);
}

.rtc-control-icon,
.rtc-control-icon svg {
    width: 20px;
    height: 20px;
}

.rtc-control-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.rtc-control-leave {
    color: #fff;
    background: linear-gradient(145deg, #d85243, #ee7257);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(218, 76, 61, 0.24);
}

.rtc-control-leave:hover {
    background: linear-gradient(145deg, #c84538, #df654f);
}

.rtc-error-panel {
    position: absolute;
    z-index: 20;
    right: 18px;
    bottom: 96px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    color: #fff;
    background: rgba(132, 45, 39, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 17px;
    box-shadow: 0 20px 55px rgba(65, 15, 12, 0.3);
    backdrop-filter: blur(12px);
}

.rtc-error-panel[hidden] {
    display: none;
}

/* Privacy and utility pages */
.utility-page,
.policy-section {
    background: #fff;
}

.utility-card,
.policy-section {
    border-color: var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}

.policy-section h1,
.utility-card h1 {
    font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.policy-section h2,
.utility-card h2 {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
}

/* Smart reveal animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 760ms var(--ease-spring), transform 760ms var(--ease-spring);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="left"] {
    transform: translateX(-30px);
}

[data-reveal="right"] {
    transform: translateX(30px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes aurora-spin {
    to { transform: rotate(360deg); }
}

@keyframes dot-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(18px, -12px, 0); }
}

@keyframes float-note {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
    50% { transform: translate3d(0, -12px, 0) rotate(1deg); }
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(92, 224, 174, 0.12); }
    50% { box-shadow: 0 0 0 9px rgba(92, 224, 174, 0); }
}

@media (max-width: 1120px) {
    .primary-nav > a {
        padding-inline: 9px;
        font-size: 0.78rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
        gap: 42px;
    }

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

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

    .outcome-card {
        min-height: 260px;
    }

    .card-index {
        margin-bottom: 35px;
    }

    .classroom-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 0.75fr) minmax(450px, 1fr);
    }

    .rtc-workspace {
        grid-template-columns: minmax(0, 1fr) 290px;
    }
}

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

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

    .primary-nav {
        top: calc(var(--header-height) - 1px);
        right: 15px;
        left: 15px;
        gap: 3px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(20px);
    }

    .primary-nav > a {
        width: 100%;
        padding: 12px 14px;
    }

    .primary-nav .nav-classroom {
        margin: 5px 0 0;
        text-align: center;
    }

    .hero {
        min-height: 0;
        padding-top: 72px;
    }

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

    .hero-copy {
        max-width: 760px;
    }

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

    .portrait-panel {
        width: min(430px, 72vw);
    }

    .availability-track {
        flex-wrap: wrap;
    }

    .availability-track i:nth-of-type(2) {
        display: none;
    }

    .access-grid,
    .about-grid,
    .classroom-grid,
    .contact-grid,
    .faq-grid,
    .service-reading-grid,
    .service-hero-grid {
        grid-template-columns: 1fr;
    }

    .access-form {
        max-width: 720px;
    }

    .about-photo {
        width: min(480px, 82vw);
        margin-inline: auto;
    }

    .service-link-grid {
        grid-template-columns: 1fr;
    }

    .classroom-copy,
    .faq-heading,
    .service-reading-grid .section-heading,
    .teacher-panel:first-child {
        position: static;
    }

    .classroom-panel {
        transform: none;
    }

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

    .feature-item:nth-child(2) {
        border-right: 0;
    }

    .feature-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .service-portrait {
        width: min(380px, 78vw);
    }

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

    .related-service-grid {
        grid-template-columns: 1fr;
    }

    .service-cta-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .teacher-layout {
        grid-template-columns: 1fr;
    }

    .rtc-workspace {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .rtc-stage {
        min-height: min(64vh, 650px);
    }

    .rtc-chat-panel {
        min-height: 320px;
        max-height: 430px;
    }

    .rtc-bottom-bar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .rtc-status {
        grid-column: 1;
        justify-self: center;
        order: 2;
    }

    .rtc-controls {
        grid-column: 1;
        order: 1;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .brand-mark {
        width: 43px;
        height: 43px;
        border-radius: 15px;
    }

    .brand-copy strong {
        font-size: 1.03rem;
    }

    .brand-copy small {
        font-size: 0.57rem;
    }

    h1 {
        font-size: clamp(2.75rem, 13.7vw, 4.5rem);
    }

    h2 {
        font-size: clamp(2.05rem, 10.5vw, 3.4rem);
    }

    .hero {
        padding: 57px 0 72px;
    }

    .hero h1 {
        margin-bottom: 22px;
    }

    .hero-title-accent {
        margin-top: 11px;
        font-size: 0.5em;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero .button-row,
    .service-hero .button-row,
    .service-cta-card .button-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero .button,
    .service-hero .button,
    .service-cta-card .button {
        width: 100%;
    }

    .trust-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .trust-row span {
        width: fit-content;
    }

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

    .hero-visual::before {
        inset: 8% 2% 3%;
    }

    .portrait-panel {
        width: min(360px, 82vw);
        border-radius: 27px;
    }

    .portrait-media {
        border-radius: 24px 24px 17px 17px;
    }

    .hero-note {
        padding: 9px 11px;
        font-size: 0.62rem;
    }

    .hero-note span {
        width: 26px;
        height: 26px;
    }

    .hero-note-top {
        top: 6%;
        left: 0;
    }

    .hero-note-side {
        right: 0;
        bottom: 11%;
    }

    .availability-band {
        padding: 13px 0;
    }

    .availability-track {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px 14px;
        justify-items: center;
        font-size: 0.55rem;
        text-align: center;
    }

    .availability-track i {
        display: none;
    }

    .student-access {
        padding: 38px 0;
    }

    .access-form-row {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 78px 0;
    }

    .section-heading {
        margin-bottom: 37px;
    }

    .outcome-grid,
    .process-list,
    .feature-grid,
    .service-highlight-list {
        grid-template-columns: 1fr;
    }

    .outcome-card {
        min-height: 0;
    }

    .process-step {
        min-height: 0;
        padding: 22px;
    }

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

    .service-link-card {
        min-height: 280px;
        padding: 24px;
    }

    .service-link-card h3 {
        max-width: 82%;
        margin-top: 36px;
    }

    .classroom-panel {
        padding: 7px;
        border-radius: 22px;
    }

    .video-stage {
        min-height: 320px;
        grid-template-columns: 0.82fr 1.18fr;
    }

    .feature-item,
    .feature-item:nth-child(2),
    .feature-item:nth-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature-item:last-child {
        border-bottom: 0;
    }

    .contact-form {
        padding: 20px;
        border-radius: 24px;
    }

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

    .service-hero {
        padding: 25px 0 68px;
    }

    .breadcrumbs {
        margin-bottom: 38px;
    }

    .service-hero-copy h1 {
        font-size: clamp(2.75rem, 12vw, 4.2rem);
    }

    .service-portrait {
        width: min(330px, 84vw);
    }

    .service-highlight-list {
        margin-top: 40px;
    }

    .service-highlight-list li {
        min-height: 58px;
    }

    .service-cta-card {
        width: calc(100% - 24px);
        padding: 28px 22px;
        border-radius: 25px;
    }

    .portal-actions .simple-back:not(:first-child) {
        display: none;
    }

    .portal-main-classroom {
        padding: 8px 0 14px;
    }

    .private-classroom-shell {
        width: calc(100% - 12px);
    }

    .classroom-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        border-radius: 14px;
    }

    .classroom-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .rtc-security-badge {
        font-size: 0.58rem;
    }

    .private-classroom {
        min-height: 0;
        border-radius: 20px;
    }

    .rtc-workspace {
        padding: 7px;
    }

    .rtc-stage {
        min-height: 54vh;
        border-radius: 15px;
    }

    .rtc-local-card {
        right: 10px;
        bottom: 10px;
        width: 34%;
        min-width: 120px;
        border-radius: 13px;
    }

    .rtc-video-placeholder h1 {
        font-size: 1.65rem;
    }

    .rtc-video-placeholder p {
        font-size: 0.75rem;
    }

    .rtc-placeholder-mark {
        width: 62px;
        height: 62px;
        border-radius: 21px;
        font-size: 1.9rem;
    }

    .rtc-controls {
        width: 100%;
        gap: 5px;
    }

    .rtc-control {
        flex: 1 1 0;
        min-width: 0;
        min-height: 56px;
        padding-inline: 5px;
        border-radius: 14px;
        font-size: 0.5rem;
    }

    .rtc-control-icon,
    .rtc-control-icon svg {
        width: 18px;
        height: 18px;
    }

    .rtc-error-panel {
        right: 10px;
        bottom: 84px;
        left: 10px;
        align-items: stretch;
        flex-direction: column;
    }

    .rtc-error-panel .button {
        width: 100%;
    }

    .teacher-panel,
    .portal-card {
        padding: 22px;
        border-radius: 21px;
    }

    .invite-item {
        align-items: stretch;
        flex-direction: column;
    }

    .invite-actions {
        justify-content: flex-start;
    }

    .cookie-banner {
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        border-radius: 17px;
    }

    .floating-contact {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
        border-radius: 18px;
    }
}

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

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

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Premium front-page visual refinement: keep only one Tatiana photo on homepage */
.about-grid {
    align-items: center;
}

.about-visual {
    position: relative;
    min-height: 480px;
    display: grid;
    place-items: center;
}

.about-visual-panel {
    position: relative;
    width: min(100%, 520px);
    min-height: 420px;
    border-radius: 36px;
    padding: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(241,247,250,0.86));
    border: 1px solid rgba(15, 31, 53, 0.09);
    box-shadow: 0 32px 80px rgba(9, 26, 45, 0.14);
    overflow: hidden;
    display: grid;
    gap: 18px;
    backdrop-filter: blur(12px);
}

.about-visual-panel::before,
.about-visual-panel::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(0);
    pointer-events: none;
}

.about-visual-panel::before {
    width: 180px;
    height: 180px;
    top: -70px;
    right: -60px;
    background: radial-gradient(circle, rgba(111, 208, 197, 0.30), rgba(111, 208, 197, 0));
}

.about-visual-panel::after {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(216, 108, 62, 0.18), rgba(216, 108, 62, 0));
}

.mini-window {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 31, 53, 0.08);
    box-shadow: 0 16px 40px rgba(10, 26, 44, 0.08);
}

.mini-window strong {
    display: block;
    color: #102844;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.mini-window p,
.mini-window li {
    color: #4f6478;
    font-size: 0.98rem;
    line-height: 1.6;
}

.mini-window-label,
.mini-window-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
}

.mini-window-label {
    color: #0f3557;
    background: rgba(15, 53, 87, 0.08);
}

.mini-window-badge {
    color: #ffffff;
    background: linear-gradient(135deg, #0f3557, #2a6f88);
}

.mini-window-primary {
    max-width: 360px;
}

.mini-window-secondary {
    margin-left: auto;
    max-width: 390px;
}

.mini-window-secondary ul {
    margin: 0;
    padding-left: 18px;
}

.mini-window-secondary li + li {
    margin-top: 6px;
}

.mini-window-accent {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 420px;
}

.mini-window-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, #d96e46, #f09772);
    box-shadow: 0 14px 34px rgba(217, 110, 70, 0.24);
}

.about-visual-orbit {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0.55;
}

.orbit-one {
    width: 140px;
    height: 140px;
    top: 18px;
    right: 10px;
    border: 1px solid rgba(23, 68, 106, 0.14);
    animation: gentleFloat 8s ease-in-out infinite;
}

.orbit-two {
    width: 100px;
    height: 100px;
    bottom: 28px;
    left: 18px;
    border: 1px solid rgba(217, 110, 70, 0.18);
    animation: gentleFloat 10s ease-in-out infinite reverse;
}

@keyframes gentleFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-one,
    .orbit-two {
        animation: none !important;
    }
}

@media (max-width: 900px) {
    .about-visual {
        min-height: auto;
    }

    .about-visual-panel {
        width: 100%;
        min-height: auto;
        padding: 22px;
    }

    .mini-window-primary,
    .mini-window-secondary,
    .mini-window-accent {
        max-width: none;
        margin-left: 0;
    }
}
