:root {
    --primary: #E05A85;
    --primary-dark: #8B1C31;
    --primary-light: #FDF2F6;
    --primary-rgb: 224, 90, 133;
    --secondary: #8B1C31;
    --secondary-light: #FAF0F2;
    --burgundy: #8B1C31;
    --burgundy-rgb: 139, 28, 49;
    --ribbon: #F4A8BE;
    --teal: #0D9488;
    --teal-light: #ECFDF5;
    --purple: #9B4D6A;
    --purple-light: #FDF2F5;
    --green: #16A34A;
    --rose: #E05A85;
    --indigo: #9B4D6A;
    --indigo-light: #FDF2F5;

    --bg: #FFFFFF;
    --bg-white: #FFFFFF;
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #F0E4E8;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);

    --radius: 16px;
    --radius-sm: 10px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: var(--nav-height);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

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

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--primary-light);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 4px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.btn-ghost span {
    transition: transform 0.2s;
}

.btn-ghost:hover span {
    transform: translateX(4px);
}

/* ── Navigation ── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
    padding-top: env(safe-area-inset-top, 0px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border);
}

.nav-container {
    position: relative;
    z-index: 1003;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.4);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
    min-width: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    border: 1px solid var(--primary-dark);
    box-shadow: 3px 3px 0 rgba(var(--primary-rgb), 0.25);
}

.logo-icon sup {
    font-size: 0.65em;
    line-height: 0;
    vertical-align: super;
}

.logo-text {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.logo-text em {
    display: block;
    font-style: normal;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 0;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    margin-right: -6px;
    flex-shrink: 0;
    z-index: 1002;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 72px;
    background: #FFFFFF;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 20%, transparent 75%);
}

.hero-accent-block {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(280px, 38vw, 520px);
    height: 100%;
    background: var(--primary);
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
    opacity: 0.04;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero-container > *,
.about-layout > *,
.services-all-grid > *,
.services-header-row > * {
    min-width: 0;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-eyebrow-line {
    width: 32px;
    height: 2px;
    background: var(--secondary);
    flex-shrink: 0;
}

.hero-title {
    margin: 0 0 24px;
    line-height: 0.95;
}

.hero-title-brand {
    display: block;
    font-family: 'Literata', Georgia, serif;
    font-size: clamp(3.2rem, 9vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero-title-sub {
    display: block;
    margin-top: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.55rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
}

.hero-lead {
    max-width: 480px;
    margin: 0 0 36px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.hero-highlights {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.metric-strip,
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metric-strip {
    margin: 0;
}

.metric-strip li,
.hero-highlights li {
    flex: 1;
    min-width: 120px;
    padding: 20px 16px 20px 0;
    border-right: 1px solid var(--border);
}

.metric-strip li:last-child,
.hero-highlights li:last-child {
    border-right: none;
    padding-right: 0;
    padding-left: 16px;
}

.metric-strip li:not(:first-child):not(:last-child),
.hero-highlights li:not(:first-child):not(:last-child) {
    padding-left: 16px;
}

.metric-strip strong,
.hero-highlights strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.metric-strip span,
.hero-highlights span {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.hero-aside {
    position: relative;
}

.hero-visual {
    position: relative;
    padding: 24px 0 24px 24px;
}

.hero-kare-grid {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 36px);
    grid-template-rows: repeat(4, 36px);
    gap: 6px;
    z-index: 0;
}

.hero-kare-grid span {
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.hero-kare-grid span.filled {
    background: rgba(var(--primary-rgb), 0.18);
}

.hero-kare-grid span.filled.accent {
    background: rgba(var(--burgundy-rgb), 0.35);
    border-color: rgba(var(--burgundy-rgb), 0.4);
}

.hero-photo {
    position: relative;
    z-index: 1;
    margin: 48px 0 0 48px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: 12px 12px 0 var(--primary);
}

.hero-photo img {
    width: 100%;
    height: clamp(320px, 42vw, 440px);
    object-fit: cover;
    display: block;
}

.hero-photo figcaption {
    padding: 12px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-white);
}

.hero-tag-stack {
    position: absolute;
    bottom: 48px;
    left: -8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-tag {
    display: inline-block;
    padding: 10px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    box-shadow: 4px 4px 0 rgba(var(--primary-rgb), 0.15);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hero-tag:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-tag:nth-child(2) {
    margin-left: 20px;
}

.hero-tag:nth-child(3) {
    margin-left: 8px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.hero-scroll-hint:hover {
    color: var(--primary);
}

.hero-scroll-hint svg {
    animation: heroScrollPulse 2s ease-in-out infinite;
}

@keyframes heroScrollPulse {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(5px); opacity: 1; }
}

/* ── Stats Bar ── */

.stats-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.stats-bar .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* ── Sections ── */

.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
    width: 100%;
}

/* ── About ── */

.about-section {
    position: relative;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.about-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%);
    pointer-events: none;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about-lead {
    margin: 0 0 32px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 520px;
}

.about-principles {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    background: #FFFFFF;
    box-shadow: 6px 6px 0 rgba(var(--primary-rgb), 0.1);
}

.about-principles li {
    padding: 14px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.02em;
}

.about-principles li:last-child {
    border-bottom: none;
}

.about-visual {
    position: relative;
    padding: 20px 0 20px 20px;
}

.about-kare-grid {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 28px);
    grid-template-rows: repeat(2, 28px);
    gap: 5px;
    z-index: 0;
}

.about-kare-grid span {
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.about-kare-grid span.filled {
    background: rgba(var(--primary-rgb), 0.18);
}

.about-kare-grid span.filled.accent {
    background: rgba(var(--burgundy-rgb), 0.35);
    border-color: rgba(var(--burgundy-rgb), 0.4);
}

.about-photo {
    position: relative;
    z-index: 1;
    margin: 40px 40px 0 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: 10px 10px 0 var(--secondary);
}

.about-photo img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.about-photo figcaption {
    padding: 12px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.about-note {
    position: absolute;
    bottom: 0;
    left: -16px;
    z-index: 2;
    background: var(--secondary);
    color: #fff;
    padding: 20px 24px;
    max-width: 260px;
    border: 1px solid var(--primary-dark);
    box-shadow: 6px 6px 0 rgba(var(--burgundy-rgb), 0.25);
}

.about-note-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 6px;
}

.about-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #fff;
}

/* ── Services ── */

.services-section {
    position: relative;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.services-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    pointer-events: none;
}

.services-header {
    margin-bottom: 56px;
}

.services-header-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: end;
}

.services-heading {
    font-family: 'Literata', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text);
}

.services-heading em {
    font-style: italic;
    color: var(--primary);
}

.services-intro {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
}

.services-all-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    background: var(--bg-white);
    box-shadow: 10px 10px 0 rgba(var(--primary-rgb), 0.12);
}

.service-card {
    padding: 32px 28px 36px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s;
}

.service-card:nth-child(4n) {
    border-right: none;
}

.service-card:nth-last-child(-n+4) {
    border-bottom: none;
}

.service-card:hover {
    background: #FFFBFC;
}

.service-card-num {
    display: block;
    font-family: 'Literata', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--border);
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    transition: color 0.25s;
}

.service-card:hover .service-card-num {
    color: var(--primary);
}

.service-card-title {
    font-family: 'Literata', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
    line-height: 1.25;
}

.service-card-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
    overflow-wrap: break-word;
}

.services-core {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    background: var(--bg-white);
    box-shadow: 10px 10px 0 rgba(var(--primary-rgb), 0.12);
    margin-bottom: 64px;
}

.service-block {
    padding: 32px 28px 36px;
    border-right: 1px solid var(--border);
    transition: background 0.25s;
}

.service-block:last-child {
    border-right: none;
}

.service-block:hover {
    background: #FFFBFC;
}

.service-block-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.service-index {
    font-family: 'Literata', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--border);
    letter-spacing: -0.04em;
    transition: color 0.25s;
}

.service-block:hover .service-index {
    color: var(--primary);
}

.service-kare-mini {
    display: grid;
    grid-template-columns: repeat(2, 14px);
    grid-template-rows: repeat(2, 14px);
    gap: 3px;
    flex-shrink: 0;
}

.service-kare-mini span {
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.service-kare-mini span.filled {
    background: rgba(var(--primary-rgb), 0.2);
}

.service-kare-mini span.filled.accent {
    background: rgba(var(--burgundy-rgb), 0.4);
    border-color: rgba(var(--burgundy-rgb), 0.5);
}

.service-block-title {
    font-family: 'Literata', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
}

.service-block-desc {
    margin: 0 0 24px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.service-block-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.service-block-list li {
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--border);
}

.service-block-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.services-more-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.services-more-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.service-tile {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 24px 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-tile:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 rgba(var(--primary-rgb), 0.15);
}

.service-tile-num {
    display: block;
    font-family: 'Literata', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--burgundy);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.service-tile h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text);
    line-height: 1.3;
}

.service-tile p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* ── Courses ── */

.courses-section {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.courses-header {
    margin-bottom: 48px;
}

.courses-table {
    border: 1px solid var(--border);
    background: #FFFFFF;
    box-shadow: 10px 10px 0 rgba(var(--primary-rgb), 0.1);
}

.course-row {
    display: grid;
    grid-template-columns: 64px 20px 1fr;
    gap: 20px;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
    transition: background 0.2s;
}

.course-row:last-child {
    border-bottom: none;
}

.course-row:hover {
    background: #FFFBFC;
}

.course-index {
    font-family: 'Literata', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--border);
    letter-spacing: -0.03em;
    transition: color 0.2s;
}

.course-row:hover .course-index {
    color: var(--primary);
}

.course-kare {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.course-kare--blue { background: var(--primary); border-color: var(--primary-dark); }
.course-kare--orange { background: var(--burgundy); border-color: var(--primary-dark); }
.course-kare--teal { background: var(--teal); border-color: #0F766E; }
.course-kare--purple { background: var(--purple); border-color: #6D28D9; }
.course-kare--green { background: var(--green); border-color: #15803D; }
.course-kare--rose { background: var(--rose); border-color: #BE123C; }

.course-info h3 {
    font-family: 'Literata', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}

.course-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Footer ── */

.footer {
    background: #FFFFFF;
    color: var(--text);
}

.footer-top {
    padding: 80px 0 64px;
    border-top: 1px solid var(--border);
}

.footer-head {
    margin-bottom: 48px;
}

.footer-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-blocks {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    border: 1px solid var(--border);
    background: var(--bg-white);
    box-shadow: 10px 10px 0 rgba(var(--primary-rgb), 0.12);
}

.contact-block {
    padding: 32px 28px;
    border-right: 1px solid var(--border);
}

.contact-block--wide {
    border-right: none;
}

.contact-index {
    display: block;
    font-family: 'Literata', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--burgundy);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.contact-block h3 {
    font-family: 'Literata', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
}

.contact-block p {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.contact-block p:last-child {
    margin-bottom: 0;
}

.contact-meta {
    margin-top: 16px !important;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem !important;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text) !important;
}

.footer-bottom {
    background: var(--text);
    padding: 20px 24px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: 'Literata', Georgia, serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: #94A3B8;
}

/* ── Animations ── */

.fade-in {
    opacity: 1;
    transform: none;
}

.js-ready .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 992px) {
    .services-header-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-all-grid {
        grid-template-columns: repeat(2, 1fr);
        box-shadow: 8px 8px 0 rgba(var(--primary-rgb), 0.12);
    }

    .service-card:nth-child(4n) {
        border-right: 1px solid var(--border);
    }

    .service-card:nth-child(2n) {
        border-right: none;
    }

    .service-card:nth-last-child(-n+4) {
        border-bottom: 1px solid var(--border);
    }

    .service-card:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .services-core {
        grid-template-columns: 1fr;
        box-shadow: 8px 8px 0 rgba(var(--primary-rgb), 0.12);
    }

    .service-block {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .service-block:last-child {
        border-bottom: none;
    }

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

    .hero-container,
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 32px) max(20px, env(safe-area-inset-right)) 72px max(20px, env(safe-area-inset-left));
        justify-content: flex-start;
    }

    .hero-aside {
        order: 2;
    }

    .hero-main {
        order: 1;
    }

    .hero-visual {
        padding: 12px 0 0;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .hero-photo {
        margin: 28px 0 0;
        box-shadow: 8px 8px 0 var(--primary);
    }

    .hero-photo img {
        height: clamp(240px, 50vw, 320px);
    }

    .hero-tag-stack {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        margin: 16px 0 0;
        gap: 8px;
    }

    .hero-tag:nth-child(2),
    .hero-tag:nth-child(3) {
        margin-left: 0;
    }

    .hero-kare-grid {
        grid-template-columns: repeat(4, 26px);
        grid-template-rows: repeat(4, 26px);
        gap: 5px;
    }

    .hero-accent-block {
        width: 55%;
        clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
    }

    .metric-strip,
    .hero-highlights {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-strip li,
    .hero-highlights li {
        min-width: 0;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 16px 14px !important;
    }

    .metric-strip li:nth-child(2n),
    .hero-highlights li:nth-child(2n) {
        border-right: none;
    }

    .metric-strip li:nth-last-child(-n+2),
    .hero-highlights li:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .about-photo {
        margin: 28px 0 0;
        box-shadow: 8px 8px 0 var(--secondary);
    }

    .about-photo img {
        height: clamp(260px, 45vw, 320px);
    }

    .about-note {
        position: relative;
        left: 0;
        bottom: auto;
        margin-top: 16px;
        max-width: none;
    }

    .about-visual {
        padding: 0;
    }

    .contact-blocks {
        grid-template-columns: 1fr;
        box-shadow: 8px 8px 0 rgba(var(--primary-rgb), 0.12);
    }

    .contact-block {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .contact-block--wide {
        border-bottom: none;
    }

    .footer-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .courses-table {
        box-shadow: 8px 8px 0 rgba(var(--primary-rgb), 0.1);
    }
}

@media (max-width: 992px) {
    .navbar {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        padding-top: env(safe-area-inset-top, 0px);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-container {
        padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
        min-height: 64px;
    }

    .logo-text em {
        display: none;
    }

    .nav-backdrop {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-backdrop.visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        z-index: 1002;
        margin: 0;
        list-style: none;
        background: var(--bg-white);
        flex-direction: column;
        align-items: stretch;
        padding: 12px max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        gap: 4px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border);
        max-height: calc(100dvh - var(--nav-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 768px) {

    .container {
        padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    }

    .section {
        padding: 48px 0;
    }

    .hero {
        padding: calc(var(--nav-height) + 28px) max(16px, env(safe-area-inset-right)) 56px max(16px, env(safe-area-inset-left));
        min-height: auto;
        justify-content: flex-start;
    }

    .hero-container {
        gap: 32px;
    }

    .hero-main {
        padding-top: 4px;
        width: 100%;
        min-width: 0;
    }

    .hero-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        margin-bottom: 20px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero-eyebrow-line {
        width: 24px;
    }

    .hero-title-brand {
        font-size: clamp(2.25rem, 10.5vw, 3rem);
        letter-spacing: -0.02em;
    }

    .hero-title-sub {
        font-size: clamp(0.75rem, 2.8vw, 0.95rem);
        letter-spacing: 0.12em;
        margin-top: 6px;
    }

    .hero-lead {
        font-size: 0.98rem;
        margin-bottom: 24px;
        max-width: none;
    }

    .hero-highlights {
        margin-bottom: 28px;
    }

    .hero-highlights strong,
    .metric-strip strong {
        font-size: 1.15rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-actions .btn-primary {
        width: 100%;
        text-align: center;
    }

    .hero-actions .btn-ghost {
        justify-content: center;
        padding: 12px 4px;
    }

    .hero-visual {
        padding: 0;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .hero-photo {
        margin: 24px 0 0;
        box-shadow: 6px 6px 0 var(--primary);
    }

    .hero-photo img {
        height: clamp(200px, 52vw, 280px);
    }

    .hero-photo figcaption {
        font-size: 0.65rem;
        letter-spacing: 0.14em;
        padding: 10px 12px;
    }

    .hero-tag-stack {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        margin: 16px 0 0;
        gap: 8px;
    }

    .hero-tag:nth-child(2),
    .hero-tag:nth-child(3) {
        margin-left: 0;
    }

    .hero-tag {
        font-size: 0.78rem;
        padding: 8px 14px;
        box-shadow: 3px 3px 0 rgba(var(--primary-rgb), 0.15);
    }

    .hero-kare-grid {
        display: none;
    }

    .hero-scroll-hint {
        display: none;
    }

    .services-header {
        margin-bottom: 40px;
    }

    .services-heading {
        font-size: clamp(1.65rem, 6.5vw, 2.2rem);
    }

    .services-intro {
        font-size: 0.98rem;
    }

    .services-all-grid {
        grid-template-columns: 1fr;
        box-shadow: 6px 6px 0 rgba(var(--primary-rgb), 0.1);
    }

    .service-card {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
        padding: 24px 20px 28px;
    }

    .service-card:last-child {
        border-bottom: none;
    }

    .service-card-num {
        font-size: 2.4rem;
    }

    .services-all-grid,
    .services-core,
    .courses-table,
    .contact-blocks,
    .about-principles {
        box-shadow: 6px 6px 0 rgba(var(--primary-rgb), 0.1);
        max-width: 100%;
    }

    .about-lead {
        max-width: none;
    }

    .about-principles li {
        padding: 12px 16px;
        font-size: 0.84rem;
    }

    .about-photo {
        margin: 0;
        box-shadow: 6px 6px 0 var(--secondary);
    }

    .about-photo img {
        height: clamp(220px, 50vw, 300px);
    }

    .about-kare-grid {
        display: none;
    }

    .about-note {
        position: relative;
        left: 0;
        bottom: auto;
        margin-top: 16px;
        max-width: none;
    }

    .about-visual {
        padding: 0;
        width: 100%;
    }

    .service-block {
        padding: 24px 20px 28px;
    }

    .course-row {
        grid-template-columns: 40px 14px 1fr;
        gap: 12px;
        padding: 18px 16px;
    }

    .course-index {
        font-size: 1.25rem;
    }

    .course-info h3 {
        font-size: 1.05rem;
    }

    .course-info p {
        font-size: 0.82rem;
    }

    .contact-block {
        padding: 24px 20px;
    }

    .footer-top {
        padding: 48px 0 40px;
    }

    .footer-head-row .btn-primary {
        width: 100%;
    }

    .footer-bottom {
        padding: 20px max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    }

    .footer-bottom p {
        text-align: center;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero-container {
        gap: 28px;
    }

    .hero-title-brand {
        font-size: clamp(2rem, 11vw, 2.6rem);
    }

    .hero-title-sub {
        letter-spacing: 0.08em;
        line-height: 1.4;
    }

    .metric-strip,
    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .metric-strip li,
    .hero-highlights li {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
        padding: 14px 0 !important;
    }

    .metric-strip li:last-child,
    .hero-highlights li:last-child {
        border-bottom: none;
    }

    .service-card-num {
        font-size: 2.2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .btn {
        min-height: 48px;
    }
}

@media (max-width: 360px) {
    .hero-eyebrow {
        font-size: 0.62rem;
    }

    .hero-title-brand {
        font-size: 1.85rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
