/* ==========================================================================
   Dave Koppe — site styles
   Palette is taken from the logo: indigo #35439b and charcoal #4a4a4a,
   with a warm amber accent for calls to action.
   ========================================================================== */

:root {
    --indigo: #35439b;
    --indigo-600: #2b3783;
    --indigo-800: #1c2460;
    --ink: #12152e;
    --ink-2: #1a1f45;
    --charcoal: #4a4a4a;
    --text: #23263a;
    --muted: #5a5f78;
    --paper: #f7f6f2;
    --tint: #eef0fa;
    --white: #fff;
    --line: #e2e4ee;
    --accent: #ffb238;
    --accent-600: #f59e0b;
    --success: #14713d;
    --danger: #b3261e;

    --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(18, 21, 46, .06), 0 2px 8px rgba(18, 21, 46, .05);
    --shadow: 0 1px 2px rgba(18, 21, 46, .06), 0 18px 40px -18px rgba(18, 21, 46, .28);
    --wrap: 1180px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --header-h: 76px;
}

/* ---------- Base ---------- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.35rem, 5.2vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

h3 {
    font-size: 1.3rem;
    letter-spacing: -.01em;
}

h1:focus {
    outline: none;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--indigo);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--indigo-800);
}

:focus-visible {
    outline: 3px solid var(--accent-600);
    outline-offset: 3px;
    border-radius: 4px;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

code {
    font-size: .9em;
}

.icon {
    flex: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: .6rem 1rem;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.skip-link:focus {
    top: 1rem;
    color: var(--white);
}

/* ---------- Layout helpers ---------- */

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap--narrow {
    max-width: calc(820px + var(--gutter) * 2);
}

.section {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--tint {
    background: var(--paper);
}

.section--ink {
    background: var(--ink);
    color: #c9cde6;
}

.section--ink h2,
.section--ink h3 {
    color: var(--white);
}

.section__head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    max-width: none;
}

.section__head--row h2 {
    max-width: 22ch;
    margin-bottom: 0;
}

.section__head--spaced {
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

.lead {
    font-size: clamp(1.15rem, 1.6vw, 1.3rem);
    color: var(--muted);
    max-width: 62ch;
}

.section--ink .lead {
    color: #b9bedd;
}

/* Eyebrow label with the three "speed lines" from the logo. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 .9rem;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--indigo);
}

.eyebrow::before {
    content: "";
    width: 30px;
    height: 12px;
    background:
        linear-gradient(currentColor, currentColor) right top / 12px 2px no-repeat,
        linear-gradient(currentColor, currentColor) right center / 20px 2px no-repeat,
        linear-gradient(currentColor, currentColor) right bottom / 30px 2px no-repeat;
}

.eyebrow--light {
    color: var(--accent);
}

/* ---------- Buttons and links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--sm {
    padding: .5rem 1.05rem;
    font-size: 1rem;
}

.btn--lg {
    padding: .9rem 1.6rem;
    font-size: 1.125rem;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn--primary {
    background: var(--accent);
    color: var(--ink);
}

.btn--primary:hover {
    background: var(--accent-600);
    color: var(--ink);
}

.btn--dark {
    background: var(--indigo);
    color: var(--white);
}

.btn--dark:hover {
    background: var(--indigo-800);
    color: var(--white);
}

.btn--outline {
    border-color: var(--indigo);
    color: var(--indigo);
    background: transparent;
}

.btn--outline:hover {
    background: var(--indigo);
    color: var(--white);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, .55);
    color: var(--white);
    background: transparent;
}

.btn--ghost:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    text-decoration: none;
}

.link-arrow:hover {
    text-decoration: underline;
}

.link-arrow .icon {
    transition: transform .15s ease;
}

.link-arrow:hover .icon {
    transform: translateX(3px);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.site-logo {
    flex: none;
    display: block;
}

.site-logo img {
    width: auto;
    height: 52px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(.25rem, 1.5vw, 1rem);
}

.site-nav__link {
    position: relative;
    padding: .5rem .75rem;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: .2rem;
    height: 2px;
    background: var(--indigo);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .2s ease;
}

.site-nav__link:hover,
.site-nav__link.active {
    color: var(--indigo);
}

.site-nav__link:hover::after,
.site-nav__link.active::after {
    transform: scaleX(1);
}

.site-nav .btn {
    margin-left: .5rem;
}

.nav-toggle {
    display: none;
    padding: .55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

@media (max-width: 820px) {
    :root {
        --header-h: 66px;
    }

    .site-logo img {
        height: 44px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem var(--gutter) 1.25rem;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .nav-open .site-nav {
        display: flex;
    }

    .site-nav__link {
        padding: .9rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.15rem;
    }

    .site-nav__link::after {
        display: none;
    }

    .site-nav .btn {
        margin: 1rem 0 0;
    }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ink);
    color: #d5d8ee;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(18, 21, 46, .97) 0%, rgba(18, 21, 46, .9) 42%, rgba(28, 36, 96, .55) 100%),
        linear-gradient(0deg, rgba(18, 21, 46, .85) 0%, rgba(18, 21, 46, 0) 45%);
}

.hero__inner {
    padding-block: clamp(4rem, 10vw, 7.5rem) clamp(6.5rem, 13vw, 10rem);
}

.hero h1 {
    max-width: 17ch;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.hero__accent {
    color: var(--accent);
}

.hero__lead {
    max-width: 56ch;
    font-size: clamp(1.15rem, 1.7vw, 1.35rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem;
}

.hero__note {
    margin: 1.5rem 0 0;
    font-size: 1rem;
    color: #aab0d6;
}

/* ---------- Stats ---------- */

.stats {
    position: relative;
    z-index: 1;
    margin-top: clamp(-4.5rem, -6vw, -3rem);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: .2rem;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border-left: 1px solid var(--line);
}

.stat:first-child {
    border-left: 0;
}

.stat dd {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--indigo);
}

.stat dt {
    font-size: 1rem;
    line-height: 1.35;
    color: var(--muted);
}

@media (max-width: 760px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(odd) {
        border-left: 0;
    }

    .stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1.25rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card:hover {
    border-color: var(--indigo);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.card__icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.1rem;
    border-radius: 12px;
    background: var(--tint);
    color: var(--indigo);
}

.card h3 {
    margin-bottom: .5rem;
}

.card p {
    color: var(--muted);
}

/* Stretch the heading link over the whole card. */
.card__link {
    color: inherit;
    text-decoration: none;
}

.card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.card__more {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: auto;
    font-size: 1rem;
    font-weight: 700;
    color: var(--indigo);
}

/* ---------- Split section and reasons ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.split__aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.split__aside .btn {
    margin-top: .5rem;
}

.reasons li {
    padding-block: 1.5rem;
    border-top: 1px solid #dcdbd3;
}

.reasons li:first-child {
    padding-top: 0;
    border-top: 0;
}

.reasons li:last-child {
    padding-bottom: 0;
}

.reasons h3 {
    margin-bottom: .35rem;
}

.reasons p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
    }

    .split__aside {
        position: static;
    }
}

/* ---------- Work grid (portfolio) ---------- */

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 2rem 1.5rem;
}

.work {
    display: block;
    color: inherit;
    text-decoration: none;
}

.work__frame {
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: .9rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--tint);
    box-shadow: var(--shadow-sm);
}

.work__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .45s ease;
}

.work:hover .work__frame img {
    transform: scale(1.04);
}

.work:hover .work__frame {
    border-color: var(--indigo);
}

.work__title {
    display: block;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
    color: var(--ink);
}

.work__blurb {
    display: block;
    font-size: 1rem;
    color: var(--muted);
}

.store-badges {
    display: flex;
    gap: .6rem;
    margin: .8rem 0 0;
}

.store-badges img {
    width: 132px;
}

/* ---------- Process steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    padding-top: 1.25rem;
    border-top: 2px solid rgba(255, 255, 255, .18);
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: .6rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--accent);
}

.steps p {
    margin: 0;
}

/* ---------- Price chips (home) ---------- */

.price-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
}

.price-chip {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.price-chip:hover {
    border-color: var(--indigo);
    box-shadow: var(--shadow);
    color: inherit;
}

.price-chip__label {
    font-weight: 600;
    color: var(--muted);
}

.price-chip__value {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: var(--ink);
}

.price-chip__value small {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--muted);
}

/* ---------- Call to action band ---------- */

.cta {
    position: relative;
    overflow: hidden;
    background: var(--indigo);
    color: #dfe2f6;
}

.cta::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -40px;
    width: 420px;
    height: 150px;
    transform: translateY(-50%);
    opacity: .16;
    background:
        linear-gradient(#fff, #fff) right top / 160px 10px no-repeat,
        linear-gradient(#fff, #fff) right center / 280px 10px no-repeat,
        linear-gradient(#fff, #fff) right bottom / 420px 10px no-repeat;
}

.cta__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem 3rem;
    padding-block: clamp(3rem, 6vw, 4.5rem);
}

.cta h2 {
    margin-bottom: .4rem;
    color: var(--white);
}

.cta p {
    margin: 0;
    font-size: 1.2rem;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: #b3b8d6;
    font-size: 1rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: .6rem .9rem;
    border-radius: 12px;
    background: var(--white);
}

.site-footer__logo img {
    width: auto;
    height: 46px;
}

.site-footer__brand p {
    max-width: 34ch;
    margin: 0;
}

.site-footer__title {
    margin: 0 0 .9rem;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
}

.site-footer li {
    margin-bottom: .55rem;
}

.site-footer a {
    color: #d3d7ef;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.site-footer__legal {
    padding-block: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__legal p {
    margin: 0;
    font-size: .95rem;
}

@media (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.contact-list .icon {
    margin-top: .28em;
}

.contact-list a {
    overflow-wrap: anywhere;
}

.contact-list--lg li {
    gap: .9rem;
    padding-block: 1rem;
    border-top: 1px solid var(--line);
}

.contact-list--lg li:first-child {
    border-top: 0;
    padding-top: 0;
}

.contact-list--lg .icon {
    color: var(--indigo);
}

.contact-list--lg strong {
    display: block;
    color: var(--ink);
}

/* ---------- Inner page header ---------- */

.page-header {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    background:
        radial-gradient(900px 300px at 85% -20%, rgba(53, 67, 155, .14), transparent 70%),
        var(--paper);
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    max-width: 20ch;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.page-header .lead {
    margin-bottom: 0;
}

.breadcrumb {
    margin-bottom: 1.1rem;
    font-size: .95rem;
    color: var(--muted);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: .5rem;
    color: #a3a7bd;
}

.breadcrumb a {
    color: inherit;
}

/* In-page jump navigation */
.jump-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.jump-nav ul {
    display: flex;
    gap: .4rem;
    padding-block: .65rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.jump-nav ul::-webkit-scrollbar {
    display: none;
}

.jump-nav a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text);
    text-decoration: none;
}

.jump-nav a:hover {
    border-color: var(--indigo);
    color: var(--indigo);
}

/* ---------- Services ---------- */

.service:nth-of-type(even) {
    background: var(--paper);
}

.service__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.service:nth-of-type(even) .service__media {
    order: -1;
}

.service__media {
    margin: 0;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--tint);
}

.service__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.service__price strong {
    font-size: 1.35rem;
    color: var(--ink);
}

@media (max-width: 860px) {
    .service__grid {
        grid-template-columns: 1fr;
    }

    .service:nth-of-type(even) .service__media {
        order: 0;
    }

    .service__media {
        aspect-ratio: 16 / 9;
    }
}

.check-list {
    display: grid;
    gap: .6rem;
    margin-block: 1.25rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}

.check-list .icon {
    margin-top: .22em;
    color: var(--indigo);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0 0 1rem;
}

.chip {
    padding: .2rem .7rem;
    border-radius: 999px;
    background: var(--tint);
    font-size: .95rem;
    font-weight: 600;
    color: var(--indigo-800);
}

.service:nth-of-type(even) .chip {
    background: var(--white);
    border: 1px solid var(--line);
}

.chips--quiet .chip {
    background: transparent;
    border: 1px solid var(--line);
    font-weight: 500;
    color: var(--muted);
}

/* ---------- Pricing ---------- */

.rate {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: var(--radius);
    background: var(--ink);
    color: #c9cde6;
}

.rate__price {
    display: flex;
    flex-direction: column;
    padding-right: clamp(1.5rem, 5vw, 4rem);
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.rate__amount {
    font-size: clamp(4rem, 10vw, 6.5rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.04em;
    color: var(--accent);
}

.rate__unit {
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .95rem;
}

.rate h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: var(--white);
}

.rate p:last-child {
    margin-bottom: 0;
}

.rate a {
    color: var(--accent);
}

.rate strong {
    color: var(--white);
}

@media (max-width: 700px) {
    .rate {
        grid-template-columns: 1fr;
    }

    .rate__price {
        padding: 0 0 1.25rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .18);
    }
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 1.25rem;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.plan h3 {
    margin-bottom: .75rem;
}

.plan__price {
    margin: 0;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: var(--indigo);
}

.plan__price small {
    display: block;
    margin-bottom: .2rem;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.plan__tech {
    margin: .5rem 0 0;
    color: var(--muted);
}

.plan .check-list {
    margin-bottom: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.plan .btn {
    margin-top: auto;
}

/* ---------- FAQ ---------- */

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq details:first-child {
    border-top: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--indigo);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1;
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq summary:hover {
    color: var(--indigo);
}

.faq details p {
    max-width: 65ch;
    margin: 0 0 1.25rem;
    color: var(--muted);
}

/* ---------- Panels and forms ---------- */

.panel {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.panel h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.panel--flush {
    display: grid;
    gap: .75rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.panel--flush .contact-list {
    margin-top: .5rem;
    font-size: 1rem;
}

.panel--flush .contact-list li {
    margin-bottom: .4rem;
}

.form {
    display: grid;
    gap: 1.1rem;
    margin-top: 1.25rem;
}

.form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.1rem;
}

.field {
    display: grid;
    gap: .35rem;
}

.field label {
    font-weight: 700;
    color: var(--ink);
}

.field__optional {
    margin-left: .35rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
}

.input {
    width: 100%;
    padding: .75rem .9rem;
    border: 1.5px solid #c9ccdb;
    border-radius: var(--radius-sm);
    background: var(--white);
    font: inherit;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(53, 67, 155, .16);
}

.input--area {
    min-height: 9rem;
    resize: vertical;
}

.input.invalid {
    border-color: var(--danger);
}

.validation-message {
    font-size: .95rem;
    font-weight: 600;
    color: var(--danger);
}

/* Honeypot field: kept out of sight and out of the tab order. */
.field--hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form .btn {
    justify-self: start;
}

.form__note {
    margin: 0;
    font-size: .95rem;
    color: var(--muted);
}

.alert {
    padding: .9rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-weight: 600;
}

.alert--error {
    background: #fdecea;
    border-color: #f3b7b2;
    color: #8a1c15;
}

.alert--success {
    background: #e8f6ee;
    border-color: #a9dcbf;
    color: var(--success);
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-aside h2 {
    font-size: 1.5rem;
}

.contact-aside h2:not(:first-child) {
    margin-top: 2.5rem;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Résumé ---------- */

.resume {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.resume__label {
    margin: 2.25rem 0 .9rem;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--indigo);
}

.resume__sublabel {
    margin: 1rem 0 .5rem;
    font-size: 1rem;
    letter-spacing: 0;
}

.resume__edu {
    font-size: 1rem;
    color: var(--muted);
}

.resume__edu strong {
    color: var(--ink);
}

.resume__main h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.resume__main h2:not(:first-child) {
    margin-top: 2.5rem;
}

.timeline {
    margin-top: 1.5rem;
    border-left: 2px solid var(--line);
}

.timeline__item {
    position: relative;
    padding: 0 0 2.25rem 1.75rem;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -8px;
    top: .35rem;
    width: 14px;
    height: 14px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--indigo);
    box-shadow: 0 0 0 2px var(--indigo);
}

.timeline__dates {
    margin: 0 0 .2rem;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--indigo);
}

.timeline__item h3 {
    margin-bottom: .15rem;
    font-size: 1.4rem;
}

.timeline__role {
    margin-bottom: .6rem;
    font-weight: 600;
    color: var(--charcoal);
}

@media (max-width: 900px) {
    .resume {
        grid-template-columns: 1fr;
    }
}

/* ---------- Affiliates ---------- */

.affiliates {
    display: grid;
    gap: 1.5rem;
}

.affiliate {
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.affiliate h2 {
    margin-bottom: .2rem;
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.affiliate h2 a {
    color: inherit;
    text-decoration: none;
}

.affiliate h2 a:hover {
    color: var(--indigo);
}

.affiliate__tag {
    font-weight: 700;
    color: var(--indigo);
}

.affiliate__banner {
    display: block;
    margin-top: 1rem;
}

/* ---------- Video grid ---------- */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 1.75rem 1.5rem;
}

.video {
    margin: 0;
}

.video__player,
.video iframe {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: #000;
}

.video__player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
    transition: opacity .2s ease, transform .4s ease;
}

.video__player:hover img {
    opacity: 1;
    transform: scale(1.03);
}

.video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

.video__play::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 21px;
    border-style: solid;
    border-width: 13px 0 13px 21px;
    border-color: transparent transparent transparent var(--ink);
}

.video figcaption {
    margin-top: .7rem;
    font-weight: 700;
    color: var(--white);
}

/* ---------- Lightbox ---------- */

.lightbox {
    width: min(96vw, 1200px);
    max-width: none;
    max-height: 94vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
}

.lightbox::backdrop {
    background: rgba(10, 12, 28, .86);
}

.lightbox__body {
    display: flex;
    flex-direction: column;
    max-height: 94vh;
}

.lightbox__scroll {
    overflow: auto;
    background: #0b0d1f;
}

.lightbox img {
    margin-inline: auto;
}

.lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1.1rem;
}

.lightbox__caption {
    margin: 0;
    font-size: 1rem;
}

.lightbox__close {
    flex: none;
    padding: .45rem 1rem;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.lightbox__close:hover {
    background: var(--white);
    color: var(--ink);
}

/* ---------- Notices (404, error, thank you) ---------- */

.notice__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-block: clamp(1rem, 5vw, 4rem);
}

.notice__code {
    margin: 0 0 .25rem;
    font-size: clamp(4rem, 14vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--tint);
    -webkit-text-stroke: 2px var(--indigo);
}

.notice__icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: #e8f6ee;
    color: var(--success);
}

.notice h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.notice__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 1rem;
}

.notice__meta {
    color: var(--muted);
}

/* ---------- Standalone legal documents (BlankLayout) ---------- */

.legal {
    max-width: 52rem;
    margin-inline: auto;
    padding: clamp(1.5rem, 5vw, 4rem) var(--gutter);
    font-size: 1.05rem;
}

.legal h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.legal h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.legal h3 {
    margin-top: 1.5rem;
}

.legal ul {
    margin: 0 0 1em;
    padding-left: 1.25rem;
    list-style: disc;
}

.legal ol {
    margin: 0 0 1em;
    padding-left: 1.25rem;
    list-style: decimal;
}

/* ---------- Blazor ---------- */

.blazor-error-boundary {
    padding: 1rem;
    background: var(--danger);
    color: var(--white);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

@media print {
    .site-header, .site-footer, .cta, .jump-nav, .skip-link {
        display: none;
    }
}
