:root {
    --ink: #12161c;
    --ink-soft: #2a3340;
    --muted: #5c6775;
    --paper: #f3efe6;
    --paper-2: #ebe4d6;
    --foam: #f8f5ee;
    --line: rgba(18, 22, 28, 0.12);
    --accent: #b45309;
    --accent-dark: #92400e;
    --sea: #1e3a4c;
    --sea-deep: #0f2430;
    --shadow: 0 24px 60px rgba(15, 36, 48, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    font-family: "Figtree", system-ui, sans-serif;
    background: var(--foam);
    min-height: 100vh;
}

a { color: inherit; }

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem clamp(1rem, 4vw, 2.75rem);
    border-bottom: 1px solid transparent;
    background: rgba(248, 245, 238, 0.82);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.page-home .site-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 36, 48, 0.55);
    color: #f8f5ee;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    flex-wrap: wrap;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

.brand {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.page-home .brand { color: #f8f5ee; }
body:not(.page-home) .brand { color: var(--sea-deep); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    font-weight: 500;
}

.site-nav a {
    text-decoration: none;
    opacity: 0.78;
}

.page-home .site-nav a { color: #f3efe6; }
body:not(.page-home) .site-nav a { color: var(--muted); }

.site-nav a:hover,
.site-nav a.is-active {
    opacity: 1;
}

.who {
    font-size: 0.88rem;
    opacity: 0.8;
}

/* ——— Hero ——— */
.hero-stage {
    position: relative;
    min-height: calc(100vh - 64px);
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #f8f5ee;
    background: var(--sea-deep);
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(180, 83, 9, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 15% 80%, rgba(56, 120, 148, 0.35), transparent 50%),
        linear-gradient(165deg, #163445 0%, #0f2430 42%, #1a1510 100%);
    animation: drift 18s ease-in-out infinite alternate;
}

.hero-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(248, 245, 238, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 245, 238, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 85%);
    opacity: 0.45;
}

@keyframes drift {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.05) translate3d(-1.5%, 1%, 0); }
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    padding: clamp(3rem, 10vh, 6.5rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 8vh, 5rem);
    animation: rise 0.9s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-mark {
    margin: 0 0 1rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2.8rem, 9vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.hero-copy h1 {
    margin: 0 0 1rem;
    max-width: 14ch;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.55rem, 3.6vw, 2.35rem);
    font-weight: 500;
    line-height: 1.2;
    color: rgba(248, 245, 238, 0.92);
}

.hero-support {
    margin: 0;
    max-width: 34rem;
    font-size: 1.08rem;
    line-height: 1.55;
    color: rgba(243, 239, 230, 0.78);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* ——— Bands ——— */
.band {
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
}

.band-alt {
    background: var(--paper);
}

.intro-band {
    background: linear-gradient(180deg, #efe8da 0%, var(--foam) 100%);
}

.band-inner {
    width: min(980px, 100%);
    margin: 0 auto;
}

.section-kicker {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.band h2 {
    margin: 0 0 1.25rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 18ch;
}

.section-lead {
    margin: 0;
    max-width: 42rem;
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.skill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sea);
}

.skill-row li {
    position: relative;
    padding-left: 0.9rem;
}

.skill-row li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--accent);
}

/* Roles — editorial, not cards */
.role {
    display: grid;
    grid-template-columns: minmax(10rem, 0.9fr) 1.4fr;
    gap: 1.25rem 2rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--line);
}

.role:last-of-type { border-bottom: 1px solid var(--line); }

.role-org {
    margin: 0;
    font-weight: 700;
    color: var(--sea-deep);
}

.role-when {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.role-body h3 {
    margin: 0 0 0.5rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.role-body p {
    margin: 0;
    line-height: 1.65;
    color: var(--ink-soft);
}

.lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2rem;
    margin-top: 0.5rem;
}

.lead-item h3 {
    margin: 0 0 0.35rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.2rem;
}

.lead-role {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-dark);
}

.lead-item p:last-child {
    margin: 0;
    line-height: 1.6;
    color: var(--ink-soft);
}

.certs {
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.certs ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    line-height: 1.8;
    color: var(--ink-soft);
}

.edu-list {
    display: grid;
    gap: 1.25rem;
    margin: 1rem 0 1.5rem;
}

.edu-item h3 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.35rem;
}

.edu-item p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.edu-note {
    margin: 0;
    max-width: 40rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.closing-band {
    background:
        radial-gradient(ellipse 60% 80% at 90% 20%, rgba(180, 83, 9, 0.18), transparent 50%),
        linear-gradient(135deg, var(--sea-deep), #1a2f3a 55%, #2a1f14);
    color: #f8f5ee;
}

.closing-inner h2 {
    color: #f8f5ee;
    max-width: 16ch;
}

.closing-inner > p {
    margin: 0 0 0.25rem;
    color: rgba(243, 239, 230, 0.78);
    font-size: 1.08rem;
}

.closing-band .btn-quiet {
    color: #f8f5ee;
    border-color: rgba(248, 245, 238, 0.35);
}

.closing-band .btn-quiet:hover {
    background: rgba(248, 245, 238, 0.1);
    color: #fff;
}

/* Buttons */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-dark);
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    background: var(--accent-dark);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-family: "Figtree", system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

button:hover,
.btn:hover,
button:focus-visible,
.btn:focus-visible {
    background: #78350f;
    border-color: #78350f;
    color: #fff;
}

.btn-small {
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
}

.btn-quiet {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-quiet:hover {
    background: rgba(18, 22, 28, 0.04);
    color: var(--ink);
}

.header-right a.btn {
    color: #fff;
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.header-right a.btn:hover {
    background: #78350f;
    border-color: #78350f;
    color: #fff;
}

.page-home .header-right a.btn {
    background: #f3efe6;
    border-color: #f3efe6;
    color: var(--sea-deep);
}

.page-home .header-right a.btn:hover {
    background: #fff;
    border-color: #fff;
    color: var(--sea-deep);
}

.header-right a.btn-quiet {
    color: inherit;
    background: transparent;
    border: 1px solid rgba(248, 245, 238, 0.35);
}

body:not(.page-home) .header-right a.btn-quiet {
    border-color: var(--line);
    color: var(--ink);
}

/* App pages (login, me, notes) */
.wrap {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
}

.wrap.narrow { width: min(720px, 100%); }

.hero {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 0 1.5rem;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--accent-dark);
    font-weight: 700;
}

.hero h1,
.auth-card h1 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -0.03em;
}

.lede {
    margin: 0;
    color: var(--muted);
    max-width: 36rem;
    line-height: 1.55;
}

.panel,
.auth-card,
.note-card,
.empty,
.dash-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.panel { padding: 1.35rem 1.45rem; margin-bottom: 1.25rem; }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dash-card {
    display: grid;
    gap: 0.5rem;
    padding: 1.35rem;
    text-decoration: none;
}

.dash-card:hover { transform: translateY(-2px); }
.dash-card h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; }
.dash-card p { margin: 0; color: var(--muted); }
.dash-card .tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 2rem;
    min-height: calc(100vh - 140px);
}

.auth-card {
    width: min(420px, 100%);
    padding: 2rem;
}

label {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
    min-height: 280px;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.note-list { display: grid; gap: 1rem; }

.note-card {
    display: grid;
    gap: 0.45rem;
    padding: 1.2rem 1.3rem;
    text-decoration: none;
}

.note-card-tag {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.note-card-tutorial {
    border-color: rgba(180, 83, 9, 0.28);
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.06), #fff);
}
.note-card h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; }
.note-card p, .note-card time { margin: 0; color: var(--muted); }
.note-card time { font-size: 0.8rem; }

.empty {
    padding: 2.5rem;
    text-align: center;
    border-style: dashed;
}

.about-block { display: grid; gap: 0.85rem; }
.about-block p { margin: 0; line-height: 1.7; color: var(--ink-soft); }

.topbar-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem;
}

.error, .ok {
    padding: 0.85rem 1rem;
    border-radius: 12px;
}

.error { background: #fde8e8; color: #9b2c2c; }
.ok { background: #e8f7ee; color: #166534; }

.btn-danger {
    background: transparent;
    color: #9b2c2c;
    border: 1px solid rgba(155, 44, 44, 0.35);
}

.site-footer {
    padding: 2.5rem clamp(1.25rem, 5vw, 3rem) 3rem;
    border-top: 1px solid var(--line);
    background: var(--foam);
}

.page-home .site-footer {
    background: #0c1c24;
    border-top-color: rgba(248, 245, 238, 0.08);
    color: rgba(243, 239, 230, 0.8);
}

.footer-inner {
    width: min(980px, 100%);
    margin: 0 auto;
}

.footer-name {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: inherit;
}

.page-home .footer-name { color: #f8f5ee; }

.footer-meta {
    margin: 0.25rem 0 1rem;
    font-size: 0.92rem;
    opacity: 0.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.35rem;
    margin: 0;
}

.footer-links a {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.1rem;
}

@media (max-width: 800px) {
    .role {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

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

@media (max-width: 720px) {
    .site-header {
        align-items: flex-start;
    }

    .header-right {
        margin-left: 0;
    }

    .brand-mark {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-atmosphere { animation: none; }
    .hero-copy { animation: none; }
}

/* ——— Login + visual tutorials ——— */
.page-login .site-footer { display: none; }

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    min-height: calc(100vh - 64px);
}

.login-tutorial {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background:
        radial-gradient(ellipse 50% 40% at 10% 0%, rgba(180, 83, 9, 0.08), transparent 55%),
        linear-gradient(180deg, #f8f5ee, #efe8da);
    overflow: auto;
}

.login-side {
    display: grid;
    align-items: start;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem);
    background: #fff;
    border-left: 1px solid var(--line);
}

.login-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0.25rem 0;
}

.tut {
    width: min(720px, 100%);
    margin: 0 auto;
    animation: rise 0.7s ease both;
}

.tut-head { margin-bottom: 1.5rem; }

.tut-subject {
    margin: 0 0 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.tut-head h2 {
    margin: 0 0 0.65rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    letter-spacing: -0.03em;
}

.tut-lead {
    margin: 0;
    max-width: 38rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.tut-formula {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.tut-formula-box {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.tut-formula-accent {
    border-color: rgba(180, 83, 9, 0.35);
    background: rgba(180, 83, 9, 0.08);
}

.tut-formula-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.tut-formula-eq {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.tut-example {
    margin-bottom: 1.25rem;
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    background: var(--sea-deep);
    color: #f8f5ee;
}

.tut-example-label {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 245, 238, 0.65);
}

.tut-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.tut-stats li {
    display: grid;
    gap: 0.2rem;
}

.tut-stats strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.35rem;
}

.tut-stats span {
    font-size: 0.78rem;
    color: rgba(248, 245, 238, 0.7);
}

.tut-stats-result strong {
    color: #fbbf24;
}

.tut-calc {
    margin: 1rem 0 0;
    font-size: 0.95rem;
    color: rgba(248, 245, 238, 0.85);
}

.tut-chart {
    margin: 0 0 1.35rem;
    padding: 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}

.tut-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.tut-line-fixed { stroke: #94a3b8; }
.tut-line-cost { stroke: #b45309; }
.tut-line-rev { stroke: #0f766e; }
.tut-be-mark line { stroke: var(--sea-deep); }
.tut-be-mark circle { fill: #fbbf24; stroke: var(--sea-deep); stroke-width: 2; }
.tut-be-mark text {
    fill: var(--sea-deep);
    font-size: 12px;
    font-weight: 700;
    font-family: Figtree, system-ui, sans-serif;
}

.tut-svg-label {
    font-size: 11px;
    font-family: Figtree, system-ui, sans-serif;
    font-weight: 600;
}
.tut-svg-rev { fill: #0f766e; }
.tut-svg-cost { fill: #b45309; }
.tut-svg-fixed { fill: #64748b; }
.tut-svg-axis {
    fill: #64748b;
    font-size: 11px;
    font-family: Figtree, system-ui, sans-serif;
}

.tut-chart figcaption {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

.tut-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
    counter-reset: tutstep;
}

.tut-steps li {
    counter-increment: tutstep;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.tut-steps li::before {
    content: counter(tutstep);
    grid-row: span 2;
    align-self: center;
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--sea-deep);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.tut-steps strong {
    font-size: 0.98rem;
}

.tut-steps span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.tut-footer-note {
    margin: 1.25rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

/* Managerial accounting workflow */
.tut-workflow { max-width: 820px; }

.tut-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.5rem;
}

.tut-flow-step {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.tut-flow-step span {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--sea-deep);
    color: #fff;
    font-size: 0.72rem;
}

.tut-flow-step:hover {
    border-color: rgba(180, 83, 9, 0.45);
    background: rgba(180, 83, 9, 0.06);
}

.tut-example-sticky {
    position: sticky;
    top: 4.5rem;
    z-index: 5;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 36, 48, 0.2);
}

.tut-stage {
    margin: 0 0 1.75rem;
    padding: 1.35rem 1.4rem 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    scroll-margin-top: 7.5rem;
}

.tut-stage-num {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.tut-stage h3 {
    margin: 0 0 0.65rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.tut-stage > p {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.tut-callout {
    margin: 1rem 0 0 !important;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(180, 83, 9, 0.08);
    border-left: 3px solid var(--accent-dark);
    color: var(--ink-soft);
}

.tut-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.tut-compare-card {
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f8f5ee;
}

.tut-compare-focus {
    background: var(--sea-deep);
    color: #f8f5ee;
    border-color: transparent;
}

.tut-compare-card h4 {
    margin: 0 0 0.5rem;
    font-size: 0.98rem;
}

.tut-compare-card ul {
    margin: 0;
    padding-left: 1.1rem;
    line-height: 1.55;
    font-size: 0.92rem;
}

.tut-cost-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tut-cost-card {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.tut-cost-card h4 { margin: 0 0 0.35rem; font-family: "Fraunces", Georgia, serif; }
.tut-cost-card p { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; }
.tut-cost-ex { font-size: 0.8rem !important; color: var(--muted) !important; }

.tut-cost-fixed { border-top: 3px solid #64748b; }
.tut-cost-var { border-top: 3px solid #0f766e; }
.tut-cost-mixed { border-top: 3px solid #b45309; }

.tut-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 3.2rem;
    margin: 0.5rem 0 0.25rem;
}

.tut-bar-chart span {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 0 0;
    background: currentColor;
    opacity: 0.75;
}

.tut-cost-fixed .tut-bar-chart { color: #64748b; }
.tut-cost-var .tut-bar-chart { color: #0f766e; }
.tut-cost-mixed .tut-bar-chart { color: #b45309; }

.tut-bar-caption {
    margin: 0 !important;
    font-size: 0.75rem !important;
    color: var(--muted) !important;
}

.tut-mini-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.tut-mini-flow > span:not(.tut-arrow) {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
}

.tut-arrow { color: var(--accent-dark); font-weight: 700; }

.tut-waterfall {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tut-wf {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    min-width: 6.5rem;
}

.tut-wf strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.25rem;
}

.tut-wf span { font-size: 0.78rem; color: var(--muted); }
.tut-wf-op { font-size: 1.25rem; font-weight: 700; color: var(--muted); }
.tut-wf-sales { border-color: rgba(15, 118, 110, 0.35); }
.tut-wf-vc { border-color: rgba(180, 83, 9, 0.35); }
.tut-wf-cm {
    background: var(--sea-deep);
    color: #f8f5ee;
    border-color: transparent;
}
.tut-wf-cm span { color: rgba(248, 245, 238, 0.7); }

.tut-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 1rem;
}

.tut-progress-seg {
    padding: 0.75rem 0.65rem;
    border-radius: 12px;
    text-align: center;
    display: grid;
    gap: 0.2rem;
}

.tut-progress-seg span { font-weight: 700; font-size: 0.9rem; }
.tut-progress-seg em { font-style: normal; font-size: 0.75rem; opacity: 0.85; }

.tut-progress-seg.is-loss { background: #fee2e2; color: #9b2c2c; }
.tut-progress-seg.is-be { background: #fef3c7; color: #92400e; }
.tut-progress-seg.is-profit { background: #d1fae5; color: #065f46; }
.tut-progress-seg.is-target { background: var(--sea-deep); color: #f8f5ee; }

.tut-decide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.tut-decide-grid article {
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}

.tut-decide-grid h4 {
    margin: 0 0 0.35rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.05rem;
}

.tut-decide-grid p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.tut-stage-recap {
    background: linear-gradient(180deg, rgba(15, 36, 48, 0.04), rgba(180, 83, 9, 0.06));
}

.tut-pipeline {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    counter-reset: pipe;
}

.tut-pipeline li {
    counter-increment: pipe;
    display: grid;
    grid-template-columns: 2.2rem 7.5rem 1fr;
    gap: 0.65rem;
    align-items: baseline;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
}

.tut-pipeline li::before {
    content: counter(pipe);
    width: 1.6rem;
    height: 1.6rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--sea-deep);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.tut-pipeline strong { font-size: 0.95rem; }
.tut-pipeline span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 800px) {
    .tut-compare,
    .tut-cost-grid,
    .tut-decide-grid,
    .tut-progress {
        grid-template-columns: 1fr;
    }

    .tut-pipeline li {
        grid-template-columns: 2rem 1fr;
    }

    .tut-pipeline span {
        grid-column: 2;
    }
}

/* Kathak Visharad visuals */
.kk-banner .kk-banner-line {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.45;
    color: rgba(248, 245, 238, 0.92);
}

.kk-stance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.kk-stance-card {
    padding: 0.9rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
}

.kk-icon {
    display: inline-grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: var(--sea-deep);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.kk-stance-card h4 {
    margin: 0 0 0.3rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1rem;
}

.kk-stance-card p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.kk-bol-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0.75rem 0 0.4rem;
}

.kk-bol-strip span {
    text-align: center;
    padding: 0.65rem 0.25rem;
    border-radius: 10px;
    background: var(--sea-deep);
    color: #f8f5ee;
    font-weight: 700;
    font-size: 0.85rem;
}

.kk-bol-strip span:nth-child(n+5) {
    background: #1e3a4c;
}

.kk-bol-caption {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.kk-hasta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.kk-hasta-grid article {
    padding: 0.85rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
}

.kk-hasta-grid h4 {
    margin: 0 0 0.25rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 0.98rem;
    color: var(--accent-dark);
}

.kk-hasta-grid p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--ink-soft);
}

.kk-taal {
    display: grid;
    gap: 0.4rem;
    margin: 0.85rem 0;
}

.kk-taal-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.35rem;
}

.kk-beat {
    text-align: center;
    padding: 0.55rem 0.2rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
}

.kk-beat small {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.kk-beat.is-sam {
    background: var(--sea-deep);
    color: #f8f5ee;
    border-color: transparent;
}

.kk-beat.is-sam small { color: #fbbf24; }

.kk-beat.is-tali {
    background: rgba(180, 83, 9, 0.12);
    border-color: rgba(180, 83, 9, 0.35);
}

.kk-beat.is-khali {
    background: #e2e8f0;
}

.kk-taal-legend {
    margin: 0.5rem 0 0.75rem;
    padding-left: 1.1rem;
    line-height: 1.55;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.kk-check {
    display: grid;
    gap: 0.45rem;
}

.kk-check label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 500;
    font-size: 0.92rem;
    cursor: pointer;
}

.kk-check input {
    width: auto;
    accent-color: var(--sea-deep);
}

@media (max-width: 900px) {
    .kk-stance,
    .kk-hasta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kk-bol-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .kk-stance,
    .kk-hasta-grid,
    .kk-taal-row {
        grid-template-columns: 1fr 1fr;
    }
}

.tut-topic-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.tut-topic-link {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    text-decoration: none;
    min-width: 180px;
}

.tut-topic-link.is-active,
.tut-topic-link:hover {
    border-color: rgba(180, 83, 9, 0.45);
    background: rgba(180, 83, 9, 0.06);
}

.tut-topic-subject {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.tut-full {
    padding: 0;
    background: transparent;
    margin-bottom: 1.5rem;
}

.tut-full .tut {
    width: 100%;
}

@media (max-width: 960px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-side {
        border-left: 0;
        border-top: 1px solid var(--line);
        order: -1;
    }

    .tut-formula,
    .tut-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .tut-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ——— Modern parallax home ——— */
.page-parallax {
    overflow-x: hidden;
}

.page-parallax .site-header {
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.page-parallax .site-header.is-scrolled {
    background: rgba(248, 245, 238, 0.92);
    color: var(--ink);
    border-bottom-color: var(--line);
}

.page-parallax .site-header.is-scrolled .brand {
    color: var(--sea-deep);
}

.page-parallax .site-header.is-scrolled .site-nav a {
    color: var(--muted);
}

.page-parallax .site-header.is-scrolled .header-right a.btn {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.px-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #f8f5ee;
    isolation: isolate;
}

.px-layer {
    position: absolute;
    inset: -12% 0;
    will-change: transform;
    pointer-events: none;
}

.px-layer-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    filter: saturate(1.05) contrast(1.05);
}

.px-layer-veil {
    background:
        linear-gradient(180deg, rgba(8, 18, 28, 0.35) 0%, rgba(8, 18, 28, 0.55) 40%, rgba(8, 18, 28, 0.92) 100%),
        radial-gradient(ellipse 70% 50% at 80% 20%, rgba(180, 83, 9, 0.35), transparent 60%);
}

.px-layer-glow {
    background:
        radial-gradient(circle at 20% 70%, rgba(56, 160, 180, 0.22), transparent 40%),
        radial-gradient(circle at 70% 40%, rgba(251, 191, 36, 0.12), transparent 35%);
    mix-blend-mode: screen;
}

.px-hero-copy {
    position: relative;
    z-index: 2;
    width: min(920px, 100%);
    padding: clamp(3rem, 10vh, 6.5rem) clamp(1.25rem, 5vw, 3rem) clamp(4rem, 10vh, 6rem);
    will-change: transform;
}

.px-scroll-hint {
    position: absolute;
    right: clamp(1rem, 4vw, 2.5rem);
    bottom: 1.5rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 245, 238, 0.7);
}

.px-scroll-hint span {
    width: 1px;
    height: 2.5rem;
    background: linear-gradient(to bottom, rgba(248, 245, 238, 0.9), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.55); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

.px-marquee {
    overflow: hidden;
    border-block: 1px solid rgba(18, 22, 28, 0.08);
    background: #0f2430;
    color: rgba(248, 245, 238, 0.72);
    padding: 0.85rem 0;
}

.px-marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.05rem;
    animation: marquee 38s linear infinite;
}

.px-marquee-track span {
    white-space: nowrap;
}

.px-marquee-track span::after {
    content: "·";
    margin-left: 2.5rem;
    opacity: 0.45;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.px-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.px-split-reverse {
    grid-template-columns: 0.95fr 1.05fr;
}

.px-visual {
    margin: 0;
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    will-change: transform;
}

.px-visual img {
    display: block;
    width: 100%;
    height: min(520px, 58vh);
    object-fit: cover;
    transition: transform 0.8s ease;
}

.px-visual:hover img {
    transform: scale(1.04);
}

.px-visual figcaption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 36, 48, 0.72);
    color: #f8f5ee;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.px-parallax-panel {
    position: relative;
    height: min(62vh, 520px);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
}

.px-parallax-panel-img {
    position: absolute;
    inset: -20% 0;
    will-change: transform;
}

.px-parallax-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) saturate(1.1);
}

.px-parallax-panel-text {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    will-change: transform;
}

.px-work {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) 1.15fr;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: start;
    margin-top: 1rem;
}

.px-work-sticky {
    position: sticky;
    top: 5.5rem;
}

.px-work-sticky .px-visual img {
    height: min(460px, 55vh);
}

.px-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.px-mosaic .lead-item {
    padding: 1.35rem 1.4rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.px-mosaic .lead-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.px-mosaic-feature {
    grid-column: 1 / -1;
    background:
        linear-gradient(135deg, rgba(30, 58, 76, 0.95), rgba(15, 36, 48, 0.92)),
        url("/assets/images/sf-skyline.jpg") center/cover;
    color: #f8f5ee;
    border: 0;
}

.px-mosaic-feature .lead-role {
    color: #fbbf24;
}

.px-mosaic-feature p:last-child {
    color: rgba(248, 245, 238, 0.82);
}

.closing-band {
    position: relative;
    overflow: hidden;
}

.closing-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.closing-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.28) saturate(1.05);
    transform: scale(1.08);
}

.closing-band .band-inner {
    position: relative;
    z-index: 1;
}

.px-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.px-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .px-split,
    .px-split-reverse,
    .px-work {
        grid-template-columns: 1fr;
    }

    .px-work-sticky {
        position: relative;
        top: auto;
    }

    .px-mosaic {
        grid-template-columns: 1fr;
    }

    .px-mosaic-feature {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .px-marquee-track,
    .px-scroll-hint span {
        animation: none;
    }

    .px-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .px-layer,
    .px-hero-copy,
    .px-visual,
    .px-parallax-panel-img,
    .px-parallax-panel-text {
        transform: none !important;
        will-change: auto;
    }
}
