/* =============================================================================
   Allen Bookkeeping & Tax
   Every size below is derived from a measurement taken on the live Wix Studio
   site at a 1440px viewport and expressed as a vw ratio (measured / 1440 * 100)
   inside a clamp(), because Wix Studio scales fluidly rather than snapping to a
   fixed max-width container.
   ========================================================================== */

/* ---------- fonts -------------------------------------------------------- */

/* Archivo Expanded stands in for Wix's murs-gothic, which is licensed for Wix-hosted sites only. */
@font-face {
    font-family: "Archivo";
    src: url("/assets/fonts/archivo-var.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-var.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

/* ---------- tokens ------------------------------------------------------- */

:root {
    --green-primary: #328036;   /* hero CTA, Our Promise */
    --green-ui:      #388E3C;   /* Book Now, Submit, marquee, Log In text */
    --green-deep:    #2b6e2f;

    --text:          #1A1A1A;
    --text-soft:     #1A1A1A;
    --text-muted:    #5f6368;

    --white:         #FFFFFF;
    --band:          #F2F4F7;   /* alternating section tint */
    --rule:          #DCDFE4;
    --rule-soft:     #E7E9ED;

    --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* 67.3 / 1440 — Wix Studio's percentage gutter, not a fixed container. */
    --gutter: clamp(18px, 4.674vw, 96px);

    --radius-soft: 4.5px;       /* hero / LLC / promise buttons */
    --shadow-card: 0 2px 14px rgba(16, 24, 40, .10);

    --focus-ring:  var(--green-deep);
    --ease-out:    cubic-bezier(.2, .7, .2, 1);
    --ease-settle: cubic-bezier(.61, 1, .88, 1);
    --hover-time:  .22s;
}

/* ---------- reset -------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-padding-top: clamp(16px, 2.2vw, 40px);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(15px, 1.25vw, 22px);
    font-weight: 400;
    line-height: 1.3;
    font-kerning: normal;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 110%;
    letter-spacing: normal;
    line-height: 1.12;
    text-wrap: balance;
}

p  { margin: 0; }
p, li, dd, blockquote { text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
}

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

::selection { background: rgba(56, 142, 60, .2); }

.u-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 12px 18px;
    background: var(--green-deep);
    color: #fff;
    border-radius: var(--radius-soft);
    font-size: 15px;
    text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

/* ---------- shared layout helpers ---------------------------------------- */

/* Effective content width ≈ 1303px at 1440 = 90.5% of the viewport. */
.shell {
    padding-inline: var(--gutter);
}

.site-main { display: block; }

/* ---------- buttons ------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    touch-action: manipulation;
    transition:
        background-color var(--hover-time) var(--ease-out),
        color var(--hover-time) var(--ease-out),
        border-color var(--hover-time) var(--ease-out),
        box-shadow .35s var(--ease-out),
        transform .35s var(--ease-out);
}

/* Book Now / Submit: square corners, 16px label. */
.btn--ui {
    background: var(--green-ui);
    color: #fff;
    border-radius: 0;
    font-size: clamp(14px, 1.111vw, 17px);
    font-weight: 400;
    line-height: 1.15;
    padding: 11px 16px;
    min-height: 40.5px;
}
.btn--ui:hover { background: var(--green-deep); }

/* Hero / LLC / Our Promise: 4.5px radius, 18px label at 1440. */
.btn--soft {
    background: var(--green-primary);
    color: #fff;
    border-radius: var(--radius-soft);
    font-size: clamp(14px, 1.25vw, 22px);
    font-weight: 400;
    line-height: 1.3;
    padding: .97vw 1.875vw;
}
.btn--soft:hover { background: var(--green-deep); }

.btn--soft-ghost {
    background: var(--white);
    color: var(--green-primary);
    border-color: var(--green-ui);
    border-radius: var(--radius-soft);
    font-size: clamp(14px, 1.25vw, 22px);
    font-weight: 400;
    line-height: 1.3;
    padding: .97vw 1.875vw;
}
.btn--soft-ghost:hover { background: #f3f8f3; border-color: var(--green-deep); color: var(--green-deep); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .btn--soft:hover,
    .btn--ui:hover { box-shadow: 0 10px 22px -14px rgba(43, 110, 47, .75); transform: translateY(-1px); }
    .btn--soft-ghost:hover { box-shadow: 0 10px 22px -16px rgba(43, 110, 47, .5); transform: translateY(-1px); }
}

@media (prefers-reduced-motion: no-preference) {
    .btn:active { transform: translateY(0); box-shadow: none; transition-duration: .08s; }
}

/* =============================================================================
   HEADER  —  151.3px tall, logo 184x107, nav 17.76px/400, Log In as green text
   ========================================================================== */

.site-header {
    position: relative;
    z-index: 20;
    background: var(--white);
    border-bottom: 1px solid var(--rule-soft);
}

.site-header__inner {
    display: flex;
    align-items: center;
    min-height: clamp(84px, 10.506vw, 168px);          /* 151.3 */
    padding-top: clamp(0px, .556vw, 10px);             /* content centre sits 4px low on live */
    padding-inline: clamp(16px, 4.757vw, 98px) clamp(16px, 2.64vw, 48px);
}

.site-header__brand {
    flex: none;
    display: block;
    line-height: 0;
}

/* 184 x 107 at 1440 = 12.78vw, natural 988x574. */
.site-header__logo {
    width: clamp(140px, 12.92vw, 232px);
    height: auto;
    aspect-ratio: 988 / 574;
    object-fit: contain;
}

.site-nav { margin-left: clamp(16px, 4.292vw, 88px); }

.site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(14px, 4.74vw, 96px);                    /* 68 */
}

.site-nav__link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(14px, 1.25vw, 22px);
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;                              /* sentence case */
    line-height: 1.3;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    padding-block: 2px;
    border-bottom: 1px solid transparent;
    /* The underline is drawn in the transparent border so the measured box does not move. */
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    background-origin: border-box;
}
.site-nav__link:hover,
.site-nav__link--current { background-size: 100% 1px; }

@media (prefers-reduced-motion: no-preference) {
    .site-nav__link { transition: background-size .45s var(--ease-out); }
}

.site-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(8px, .76vw, 14px);
}

/* Green text link, no border, no background. */
.site-header__login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6.74px 7.86px;
    background: none;
    border: 0;
    color: var(--green-ui);
    font-size: clamp(14px, 1.25vw, 22px);
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--hover-time) var(--ease-out);
}
.site-header__login:hover { color: var(--green-deep); text-decoration: underline; }
.site-header__login-icon { flex: none; color: var(--text-soft); }

.site-header__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    transition: color var(--hover-time) var(--ease-out);
}
.site-header__cart:hover { color: var(--green-deep); }

.site-header__cart-count {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1;
    color: #fff;
}

/* mobile nav toggle — out of the tab order on desktop, focusable but invisible on phones */
.site-nav__toggle {
    display: none;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.site-nav__toggle-label { display: none; }

/* =============================================================================
   HOME — HERO  (copy left; 648x915 image flush right, overlapping the band)
   All sizes measured on the live page at a 1440px viewport, expressed in vw.
   ========================================================================== */

/* The 915px-tall photo is clipped at the 801px section edge. */
.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(420px, 55.625vw, 1000px);        /* 801 */
    background: var(--white);
}

.hero__copy {
    position: relative;
    z-index: 1;
    width: 55%;
    padding-left: clamp(18px, 3.472vw, 72px);          /* x = 50 */
    padding-right: clamp(18px, 2vw, 40px);
    padding-top: clamp(40px, 9.514vw, 170px);          /* H1 y = 290 */
    padding-bottom: clamp(40px, 5vw, 80px);
}

/* 72px, wraps to "Financial / Mastery" in a 707px box. */
.hero__title {
    width: 49.1vw;
    max-width: 6.5em;
    font-size: clamp(34px, 5vw, 90px);
    line-height: .9;
    text-align: left;
}

.hero__subtitle {
    margin-top: clamp(20px, 4.375vw, 80px);
    margin-left: clamp(0px, 6.04vw, 110px);            /* x = 137 */
    max-width: 36.04vw;                                /* w = 519 */
    font-size: clamp(15px, 1.41vw, 25px);              /* 20.3 */
    line-height: 1.3;
    color: #333;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 1.25vw, 22px);
    margin-top: clamp(24px, 5.07vw, 92px);
    margin-left: clamp(0px, 6.04vw, 110px);
}

/* 238x76 and 262x76 — the labels wrap to two lines. */
.hero__cta {
    width: clamp(170px, 16.53vw, 298px);
    min-height: clamp(54px, 5.28vw, 95px);
}
.hero__cta--secondary { width: clamp(180px, 18.19vw, 328px); }

.hero__media {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 45%;                                        /* 648 */
    margin: 0;
}

.hero__image {
    width: 100%;
    aspect-ratio: 648 / 915;
    object-fit: cover;
    object-position: center;
}

/* =============================================================================
   HOME — SERVICES  (grey band; H2 then a white panel holding lede + cards)
   ========================================================================== */

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

.services-intro {
    padding-top: clamp(28px, 4.72vw, 85px);            /* H2 y = 1022 */
}

.services-intro__title {
    text-align: center;
    font-size: clamp(28px, 3.75vw, 68px);              /* 54 */
    line-height: .9;
}

.services-intro__panel {
    margin-top: clamp(20px, 3.125vw, 56px);
    background: var(--white);
    padding: clamp(28px, 5.97vw, 108px) clamp(10px, 1.39vw, 25px) clamp(10px, 1.32vw, 24px);
}

/* Fixed 32px with 175px side margins inside the panel at every width. */
.services-intro__lede {
    margin: 0 clamp(0px, 12.15vw, 175px) clamp(24px, 4.58vw, 82px);
    text-align: center;
    font-family: var(--font-display);
    font-stretch: 110%;
    font-weight: 800;
    font-size: clamp(20px, 2.222vw, 32px);
    line-height: 1.15;
}

/* =============================================================================
   SERVICE CARDS
   Home:     694x486 photo left, 634x388 detail card overlapping it by 60px
   Services: same shape inside a narrow 634px column
   Book:     3-up grid, photo on top
   ========================================================================== */

.service-cards { display: grid; }

/* --- home variant --- */

.service-cards--home { row-gap: clamp(28px, 4.17vw, 75px); }

.service-cards--home .service-card {
    display: flex;
    align-items: center;
}

.service-cards--home .service-card__media {
    flex: none;
    width: 48.19vw;                                    /* 694 */
    border-radius: 12px;
    overflow: hidden;
}

.service-cards--home .service-card__photo { aspect-ratio: 694 / 486; }

.service-cards--home .service-card__body {
    flex: none;
    width: 44.03vw;                                    /* 634 */
    min-height: 26.94vw;                               /* 388 */
    margin-left: -4.17vw;                              /* overlaps the photo by 60 */
    padding: clamp(16px, 4.24vw, 76px);                /* 61 */
    border: 1px solid rgba(26, 26, 26, .2);
    border-radius: 12px;
    box-shadow: none;
}

.service-cards--home .service-card__title {
    font-size: clamp(17px, 1.667vw, 30px);             /* 24 */
    line-height: 1.33;
}

.service-cards--home .service-card__blurb { margin-top: clamp(6px, .76vw, 14px); }
.service-cards--home .service-card__rule { margin: clamp(12px, 1.67vw, 30px) 0; background: rgba(26, 26, 26, .2); }
.service-cards--home .service-card__meta { line-height: 2; }
.service-cards--home .service-card__cta { margin-top: clamp(12px, 1.39vw, 25px); }

/* --- services page variant: 382x484 photo, 322x387 card overlapping by 60 --- */

.service-cards--services { row-gap: clamp(24px, 4.17vw, 75px); }

.service-cards--services .service-card {
    display: flex;
    align-items: center;
}

.service-cards--services .service-card__media {
    flex: none;
    width: 26.53vw;                                    /* 382 */
    border-radius: 12px;
    overflow: hidden;
}

.service-cards--services .service-card__photo { aspect-ratio: 382 / 484; }

.service-cards--services .service-card__body {
    flex: none;
    width: 22.36vw;                                    /* 322 */
    min-height: 26.88vw;                               /* 387 */
    margin-left: -4.17vw;
    padding: clamp(16px, 4.24vw, 76px);
    border: 1px solid rgba(26, 26, 26, .2);
    border-radius: 12px;
    box-shadow: none;
}

.service-cards--services .service-card__title {
    font-size: clamp(17px, 1.667vw, 30px);
    line-height: 1.33;
}

.service-cards--services .service-card__rule { display: none; }
.service-cards--services .service-card__meta { margin-top: clamp(8px, .83vw, 15px); line-height: 1.5; }
.service-cards--services .service-card__cta { margin-top: clamp(12px, 1.39vw, 25px); }

/* --- book-online variant: 3 x 445px columns, 443x297 photo on top --- */

.service-cards--book {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.22vw, 40px);                    /* 32 */
    padding-inline: clamp(12px, 1.39vw, 25px);         /* x = 20 */
}

.service-cards--book .service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, .2);
}

.service-cards--book .service-card__media { width: 100%; }
.service-cards--book .service-card__photo { aspect-ratio: 443 / 297; }

.service-cards--book .service-card__body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: clamp(220px, 20.76vw, 374px);          /* 299 */
    margin: 0;
    flex: 1 1 auto;
    box-shadow: none;
    border: 0;
    padding: clamp(16px, 2.15vw, 39px);                /* 31 */
}

.service-cards--book .service-card__title {
    font-size: clamp(17px, 1.667vw, 30px);
    line-height: 1.33;
}

.service-cards--book .service-card__rule { margin: clamp(12px, 1.67vw, 30px) 0; background: rgba(26, 26, 26, .2); }
.service-cards--book .service-card__meta { gap: 0; line-height: 2; margin-bottom: clamp(12px, 1.39vw, 25px); }
.service-cards--book .service-card__cta { margin-top: auto; }

/* --- shared card internals --- */

.service-card__media {
    display: block;
    margin: 0;
    line-height: 0;
    overflow: hidden;
    background: var(--band);                           /* holds the shape while the lazy photo loads */
}

.service-card__title-link { color: inherit; text-decoration: none; }
.service-card__title-link:hover { text-decoration: underline; }

.service-card__photo {
    width: 100%;
    object-fit: cover;
}

.service-card__body {
    position: relative;
    z-index: 2;
    background: var(--white);
    border: 1px solid var(--rule-soft);
    box-shadow: var(--shadow-card);
    padding: clamp(16px, 2.5vw, 44px);
    transition: box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
}

@media (hover: hover) {
    .service-cards--home .service-card:hover .service-card__body,
    .service-cards--services .service-card:hover .service-card__body {
        border-color: rgba(26, 26, 26, .28);
        box-shadow: 0 22px 44px -32px rgba(16, 24, 40, .45);
    }
    .service-cards--book .service-card { transition: box-shadow .5s var(--ease-out); }
    .service-cards--book .service-card:hover { box-shadow: 0 22px 44px -32px rgba(16, 24, 40, .45); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .service-card__photo { transition: transform 1.4s var(--ease-settle); }
    .service-card:hover .service-card__photo { transform: scale(1.035); }
}

.service-card__title {
    font-size: clamp(17px, 1.667vw, 27px);
    line-height: 1.2;
}

.service-card__blurb {
    margin-top: clamp(8px, .84vw, 16px);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-soft);
}

.service-card__rule {
    height: 1px;
    margin: clamp(12px, 1.2vw, 22px) 0;
    background: var(--rule);
    border: 0;
}

.service-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-soft);
}

/* 115x40, 16px label. */
.service-card__cta {
    margin-top: clamp(14px, 1.4vw, 26px);
    min-height: 0;
    padding: clamp(8px, .764vw, 14px) clamp(12px, 1.18vw, 21px);
    line-height: 1;
    align-self: flex-start;
}

/* =============================================================================
   HOME — LLC FORMATION  (white panel on the grey band)
   ========================================================================== */

.llc {
    padding-top: clamp(24px, 3.19vw, 57px);
    padding-bottom: clamp(36px, 4.86vw, 88px);
}

.llc__card {
    background: var(--white);
    border-radius: var(--radius-soft);
    padding: clamp(20px, 2.36vw, 42px) clamp(20px, 2.08vw, 37px) clamp(20px, 2.36vw, 42px) clamp(20px, 2.36vw, 42px);
}

.llc__title {
    font-size: clamp(24px, 2.8125vw, 51px);            /* 40.5 */
    line-height: 1;
}

.llc__copy {
    margin-top: clamp(8px, .76vw, 14px);
    font-size: clamp(14px, 1.25vw, 22px);
    line-height: 1.3;
}

.llc__rule {
    height: 1px;
    margin: clamp(14px, 1.94vw, 35px) 0 clamp(14px, 2.01vw, 36px);
    background: rgba(26, 26, 26, .45);
    border: 0;
}

.llc__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 2vw, 36px);
    flex-wrap: wrap;
}

.llc__price {
    font-family: var(--font-display);
    font-stretch: 110%;
    font-weight: 800;
    font-size: clamp(19px, 2.1875vw, 40px);            /* 31.5 */
    line-height: 1;
}

.llc__cta {
    min-width: clamp(190px, 17.85vw, 321px);           /* 257 */
    min-height: clamp(40px, 3.47vw, 62px);             /* 50 */
    padding-block: 0;
}

/* =============================================================================
   HOME — VALUES & HISTORY  (720x634 image bleeds to x = 0)
   ========================================================================== */

.values {
    display: grid;
    grid-template-columns: 50% minmax(0, 1fr);
    align-items: start;
    background: var(--white);
}

.values__media { margin: 0; }

.values__image {
    width: 100%;
    aspect-ratio: 720 / 634;
    object-fit: cover;
}

.values__copy {
    padding-left: clamp(18px, 6.32vw, 114px);          /* x = 811 */
    padding-right: var(--gutter);
    padding-top: clamp(32px, 10.69vw, 192px);
    padding-bottom: clamp(32px, 4vw, 64px);
}

.values__title {
    font-size: clamp(28px, 3.75vw, 68px);
    line-height: .9;
}

.values__text {
    margin-top: clamp(16px, 3.125vw, 56px);
    max-width: 37.36vw;                                /* 538 */
    font-size: clamp(15px, 1.41vw, 25px);
    line-height: 1.3;
}

.values__actions { margin-top: clamp(20px, 4.44vw, 80px); }

.values__cta {
    min-width: clamp(150px, 13.82vw, 249px);           /* 199 */
    min-height: clamp(40px, 3.47vw, 62px);
    padding-block: 0;
}

/* =============================================================================
   HOME — STORIES OF SUCCESS  (3 columns of white cards on the grey band)
   ========================================================================== */

.testimonials {
    padding-block: clamp(36px, 4.72vw, 85px) 6px;
}

.testimonials__title {
    text-align: center;
    font-size: clamp(28px, 3.75vw, 68px);
    line-height: .9;
}

/* Columns at x 91 / 526 / 960, 389 wide. */
.testimonials__list {
    margin-top: clamp(28px, 6.32vw, 114px);
    margin-inline: calc(6.32vw - var(--gutter));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(14px, 3.16vw, 57px);
    align-items: start;
}

.testimonials__column {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.39vw, 25px);
}

/* The live masonry leaves a 95px gap above the second card in column one. */
.testimonials__column:first-child .testimonial + .testimonial { margin-top: 5.21vw; }

.testimonial {
    background: var(--white);
    border-radius: var(--radius-soft);
    padding: clamp(16px, 2.5vw, 45px) clamp(16px, 2.5vw, 45px) clamp(16px, 2.57vw, 46px);
}

.testimonial__quote { margin: 0; }

.testimonial__text {
    font-size: clamp(14px, 1.25vw, 22px);
    line-height: 1.3;
    text-indent: -.44em;                               /* hangs the opening quote (0.444em in Inter) in the margin */
}

.testimonial__meta {
    margin-top: clamp(12px, 1.875vw, 34px);
    font-size: clamp(12px, 1.094vw, 20px);             /* 15.75 */
    line-height: 1.3;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.testimonial__author { font-style: normal; }

/* =============================================================================
   HOME — CONSULT BLOCK  (copy left, grey form panel right)
   ========================================================================== */

.consult {
    background: var(--white);
    padding-block: clamp(44px, 9.44vw, 170px) clamp(44px, 11.8vw, 212px);
}

/* Copy at x 171 (w 416), 39px gap, 644px form panel. */
.consult__inner {
    margin-left: 11.875vw;
    display: grid;
    grid-template-columns: 28.89vw 44.72vw;
    column-gap: 2.71vw;
    align-items: start;
}

.consult__title {
    font-size: clamp(24px, 2.8125vw, 51px);
    line-height: 1;
}

.consult__text {
    margin-top: clamp(16px, 1.875vw, 34px);
    font-size: clamp(15px, 1.41vw, 25px);
    line-height: 1.3;
}

.consult__details { margin-top: clamp(24px, 3.125vw, 56px); }
.consult__detail + .consult__detail { margin-top: clamp(16px, 1.875vw, 34px); }

.consult__detail-term {
    font-family: var(--font-display);
    font-stretch: 110%;
    font-weight: 800;
    font-size: clamp(15px, 1.41vw, 25px);
    line-height: 1.1;
}

.consult__detail-term + .consult__detail-value { margin-top: clamp(6px, .69vw, 12px); }

.consult__detail-value {
    font-size: clamp(14px, 1.25vw, 22px);
    line-height: 1.3;
}

.consult__link { color: inherit; text-decoration: none; transition: color var(--hover-time) var(--ease-out); }
.consult__link:hover { color: var(--green-deep); text-decoration: underline; }

.consult__form-wrap {
    background: var(--band);
    padding: clamp(18px, 3.19vw, 57px) clamp(16px, 2.78vw, 50px);
}

/* =============================================================================
   FORMS
   ========================================================================== */

.field { display: block; }

.field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.field__input,
.field__textarea {
    display: block;
    width: 100%;
    background: var(--white);
    border: 1px solid rgba(208, 213, 221, .6);
    border-radius: 0;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    transition:
        border-color var(--hover-time) var(--ease-out),
        box-shadow var(--hover-time) var(--ease-out);
}

.field__input { height: 42px; }

/* Country-code globe + chevron, as on the live phone field. */
.field__input--phone {
    padding-left: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14' viewBox='0 0 30 14'%3E%3Cg fill='none' stroke='%231A1A1A' stroke-width='1'%3E%3Ccircle cx='7' cy='7' r='6'/%3E%3Cellipse cx='7' cy='7' rx='2.6' ry='6'/%3E%3Cpath d='M1 7h12M2 4h10M2 10h10'/%3E%3Cpath d='M20 5.5l2.5 2.5 2.5-2.5'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}
.field__textarea { height: 92px; min-height: 60px; resize: vertical; }

@media (hover: hover) {
    .field__input:hover,
    .field__textarea:hover { border-color: rgba(26, 26, 26, .32); }
}

/* Transparent outline stays visible in forced-colors mode, where box-shadow is dropped. */
.field__input:focus,
.field__textarea:focus {
    border-color: var(--green-deep);
    outline: 2px solid transparent;
    box-shadow: 0 0 0 1px var(--green-deep), 0 0 0 4px rgba(56, 142, 60, .18);
}

.field__input--error,
.field__textarea--error { border-color: #c0392b; }

.field__input--error:focus,
.field__textarea--error:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 1px #c0392b, 0 0 0 4px rgba(192, 57, 43, .16);
}

.field__error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #c0392b;
}

.contact-form__row { margin-top: 24px; }
.contact-form__row:first-of-type { margin-top: 0; }

.contact-form__row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__actions { margin-top: 24px; }

.contact-form__submit {
    width: 100%;
    min-height: 41px;
    background: var(--green-ui);
    color: #fff;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color var(--hover-time) var(--ease-out), box-shadow .35s var(--ease-out);
}
.contact-form__submit:hover { background: var(--green-deep); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .contact-form__submit:hover { box-shadow: 0 10px 22px -14px rgba(43, 110, 47, .75); }
}

.form-flash {
    margin-bottom: 14px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid var(--green-ui);
    background: #eef6ee;
}
.form-flash--error { border-left-color: #c0392b; background: #fdeeec; }

.form-errors {
    margin-bottom: 14px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid #c0392b;
    background: #fdeeec;
}
.form-errors__title { font-weight: 600; }
.form-errors__item { list-style: disc; margin-left: 18px; }

/* =============================================================================
   MARQUEE  (91px full-bleed green band, animated, normal case)
   ========================================================================== */

.marquee {
    position: relative;
    overflow: hidden;
    background: var(--green-ui);
    color: #fff;
    min-height: clamp(56px, 6.32vw, 114px);
    display: flex;
    align-items: center;
}

.marquee__track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: marquee-scroll 34s linear infinite;
}

.marquee__run { display: flex; flex: none; }

.marquee__item {
    flex: none;
    font-size: clamp(14px, 1.41vw, 25px);
    line-height: 1.2;
    padding-right: .3em;
}
.marquee__item::after { content: "\00a0\2022"; }

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

.marquee__toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 5px 8px;
    cursor: pointer;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

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

/* =============================================================================
   FOOTER  (brand column left; 326px "Get in touch" column flush right)
   ========================================================================== */

.site-footer {
    background: var(--white);
    padding-block: clamp(32px, 6.32vw, 114px) clamp(28px, 3.54vw, 64px);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22.64vw;
    gap: clamp(24px, 4vw, 70px);
    padding-right: 1.18vw;
}

.site-footer__badges {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 1.74vw, 31px);
}

/* 173 x 100 at 1440 */
.site-footer__logo {
    width: clamp(132px, 12.01vw, 216px);
    height: auto;
    aspect-ratio: 988 / 574;
    object-fit: contain;
}

/* 101 x 101 at 1440, sits 6px lower than the logo */
.site-footer__proadvisor {
    width: clamp(72px, 7.01vw, 126px);
    margin-top: .42vw;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.site-footer__tagline {
    margin-top: clamp(20px, 6.875vw, 124px);
    max-width: 35.42vw;                                /* 510 */
    font-size: clamp(14px, 1.25vw, 22px);
    line-height: 1.3;
}

.promo-banner {
    background: #143024;
    color: #F6F1E7;
    text-align: center;
    padding: 10px 16px;
    font-size: 15px;
}
.promo-banner a { color: #E3CB8F; }

.site-footer__newsletter { margin-top: 18px; max-width: 360px; }
.site-footer__newsletter-label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}
.site-footer__newsletter-row { display: flex; gap: 8px; }
.site-footer__newsletter input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cfc8bb;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
}
.site-footer__newsletter button {
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #143024;
    font-weight: 600;
    cursor: pointer;
}
.site-footer__newsletter-note { display: block; margin-top: 8px; font-size: 14px; }

.site-footer__copyright {
    margin-top: clamp(16px, 3.47vw, 62px);
    font-size: clamp(12px, 1.094vw, 20px);
    line-height: 1.3;
}

/* Two lines ("Get in / touch") centred in a 138px box at x 1234. */
.site-footer__heading {
    width: 9.58vw;
    margin-left: 9.51vw;
    padding-left: 2.4vw;
    text-align: right;
    font-size: clamp(15px, 1.41vw, 25px);
    line-height: 1.1;
    font-weight: 800;
}

.site-footer__inquiries {
    margin-top: clamp(24px, 6.6vw, 119px);
    font-size: clamp(14px, 1.25vw, 22px);
    line-height: 1.3;
}

.site-footer__email { display: block; color: inherit; text-decoration: none; transition: color var(--hover-time) var(--ease-out); }
.site-footer__email:hover { color: var(--green-deep); text-decoration: underline; }

.site-footer__social {
    display: flex;
    gap: clamp(12px, 1.6vw, 29px);
    margin-top: clamp(16px, 6.11vw, 110px);
    margin-left: 6.74vw;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(24px, 1.875vw, 34px);
    height: clamp(24px, 1.875vw, 34px);
    border-radius: 50%;
    background: #1877F2;
    color: #fff;
    text-decoration: none;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.site-footer__social-link--linkedin { background: #0A66C2; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .site-footer__social-link:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -10px rgba(16, 24, 40, .6); }
}
/* =============================================================================
   FLOATING GOOGLE REVIEWS BADGE  (pinned bottom-left on every page)
   ========================================================================== */

/* 318 x 70 at 1440: G logo cell, divider, score + stars, divider, chevron cell. */
.reviews-badge {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 60;
    display: flex;
    align-items: stretch;
    height: 70px;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(16, 24, 40, .16);
    border-radius: 4px;
    font-family: var(--font-body);
}

.reviews-badge__panel {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    max-width: 280px;
}

@media (prefers-reduced-motion: no-preference) {
    .reviews-badge__panel { transition: max-width .4s var(--ease-out), opacity .3s var(--ease-out); }
    .reviews-badge__toggle span { transition: transform .4s var(--ease-out); }
}

.reviews-badge__logo {
    flex: none;
    box-sizing: content-box;
    width: 36px;
    height: 36px;
    padding: 17px 15px;
    border-right: 1px solid var(--rule-soft);
}

.reviews-badge__body {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    align-content: center;
    width: 170px;
    padding: 0 26px 0 14px;
    line-height: 1.1;
    white-space: nowrap;
}

.reviews-badge__score {
    font-size: 17px;
    font-weight: 400;
    color: #f5a623;
    margin-right: 6px;
}

.reviews-badge__stars { font-size: 22px; color: #f5a623; letter-spacing: 1px; }

.reviews-badge__count {
    flex-basis: 100%;
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text);
}

.reviews-badge__toggle {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    border-left: 1px solid var(--rule-soft);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color var(--hover-time) var(--ease-out), color var(--hover-time) var(--ease-out);
}
.reviews-badge__toggle:hover { background: var(--band); color: var(--text); }
.reviews-badge__toggle span { display: inline-block; }

.reviews-badge__check { position: absolute; opacity: 0; pointer-events: none; }

.reviews-badge__check:focus-visible ~ .reviews-badge__toggle {
    outline: 2px solid var(--focus-ring);
    outline-offset: -4px;
}

.reviews-badge__check:checked ~ .reviews-badge__panel {
    max-width: 0;
    opacity: 0;
}
.reviews-badge__check:checked ~ .reviews-badge__toggle { border-left: 0; border-radius: 4px; }
.reviews-badge__check:checked ~ .reviews-badge__toggle span { transform: rotate(180deg); }

/* =============================================================================
   ABOUT ALLEN  —  copy left (x 89.9, w 575.9), headshot right (x 828, w 503.4)
   ========================================================================== */

.about { padding-block: clamp(40px, 9.03vw, 163px) clamp(48px, 19.8vw, 356px); }

.about__title {
    font-size: clamp(34px, 5vw, 90px);                 /* 72 */
    line-height: .9;
    padding-left: clamp(18px, 6.32vw, 114px);          /* x = 91 */
}

/* Copy x 91 (w 583), headshot x 839 (510x680). */
.about__inner {
    margin-top: clamp(32px, 11.32vw, 204px);
    display: grid;
    grid-template-columns: 40.49vw 35.42vw;
    justify-content: space-between;
    align-items: start;
    padding-inline: clamp(18px, 6.32vw, 114px);
}

.about__copy { max-width: none; }

.about__text {
    font-size: clamp(14px, 1.25vw, 22px);
    line-height: 1.8;
    color: var(--text);
}
.about__text + .about__text { margin-top: clamp(14px, 1.875vw, 34px); }

.about__media { margin: 0; }

.about__image {
    width: 100%;
    aspect-ratio: 510 / 680;
    object-fit: cover;
}

/* =============================================================================
   SERVICES PAGE
   ========================================================================== */

.page-head { padding-block: clamp(36px, 6.32vw, 114px) clamp(24px, 4.72vw, 85px); }

.page-head__title {
    font-size: clamp(30px, 4.424vw, 80px);             /* 63.7 */
    line-height: .9;
}

.page-head__bullets {
    margin-top: clamp(14px, 1.94vw, 35px);
    max-width: 81.53vw;                                /* w = 1174 */
    font-size: clamp(14px, 1.41vw, 25px);
    line-height: 1.3;
    color: var(--text);
}

/* 683px white column at x 68 holding the four cards. */
.services-panel {
    width: 47.43vw;
    min-width: 300px;
    margin-left: var(--gutter);
    background: var(--white);
    padding: clamp(28px, 5.97vw, 108px) clamp(10px, 1.39vw, 25px) clamp(10px, 1.39vw, 25px);
}

.services-panel__title {
    margin-bottom: clamp(20px, 3.75vw, 68px);
    text-align: center;
    font-size: clamp(20px, 2.222vw, 40px);             /* 32 */
    line-height: 1.25;
}

.services-page { padding-bottom: clamp(40px, 6.32vw, 114px); }

/* =============================================================================
   BOOK ONLINE PAGE
   ========================================================================== */

.book { padding-block: clamp(32px, 7.08vw, 128px) clamp(12px, 1.39vw, 25px); }

.book__title {
    margin-bottom: clamp(24px, 3.75vw, 68px);
    text-align: center;
    font-size: clamp(20px, 2.222vw, 40px);             /* 32 */
    line-height: 1.25;
}

/* booking-calendar stub */
.booking-stub { padding-block: clamp(44px, 6vw, 100px); }
.book__crumbs {
    margin-bottom: clamp(14px, 1.67vw, 30px);
    font-size: clamp(13px, .97vw, 15px);
    line-height: 1.4;
    color: var(--text-muted);
}
.book__crumb-link { color: inherit; text-decoration: none; transition: color var(--hover-time) var(--ease-out); }
.book__crumb-link:hover { color: var(--text); text-decoration: underline; }
.book__crumbs [aria-current] { color: var(--text); }
.booking-stub__title {
    font-size: clamp(28px, 3.7005vw, 60px);
    line-height: 1.1;
}
.booking-stub__text {
    margin-top: clamp(14px, 1.8vw, 30px);
    max-width: 62ch;
    font-size: clamp(14px, 1.111vw, 17px);
    line-height: 1.6;
    color: var(--text-soft);
}
.booking-stub__meta {
    margin-top: clamp(12px, 1.2vw, 20px);
    font-size: clamp(13px, 1.06vw, 16px);
    color: var(--text-soft);
}
.booking-stub__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: clamp(20px, 2.4vw, 40px);
}

/* Booking calendar: two cards, month left, booking right. Selections use green-deep (6.2:1 under white). */
.schedule { padding-block: clamp(36px, 5vw, 80px) clamp(48px, 7vw, 110px); }
.schedule__title { font-size: clamp(32px, 3.8vw, 60px); line-height: 1.05; }
.schedule__lede {
    margin-top: 14px;
    max-width: 46ch;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.5;
    color: var(--text-muted);
}
.schedule .form-flash,
.schedule .form-errors { max-width: 760px; margin: 22px 0 0; border-radius: 0 10px 10px 0; }

.schedule__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
    gap: clamp(20px, 2.4vw, 36px);
    margin-top: clamp(24px, 3vw, 40px);
    align-items: start;
}

.schedule__card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: clamp(20px, 2.2vw, 32px);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -28px rgba(16, 24, 40, .22);
}
.schedule__picker { position: sticky; top: 24px; }

.schedule__card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule-soft);
}

.schedule__heading {
    font-family: var(--font-body);
    font-stretch: normal;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--text);
}

.schedule__zone {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--band);
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.schedule__month {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    margin-top: 18px;
}
.schedule__month-name {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
    font-family: var(--font-display);
    font-stretch: 105%;
    font-size: 18px;
    font-weight: 700;
}
.schedule__month-link {
    grid-row: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    color: var(--text);
    transition:
        background-color var(--hover-time) var(--ease-out),
        border-color var(--hover-time) var(--ease-out),
        color var(--hover-time) var(--ease-out);
}
.schedule__month-link--prev { grid-column: 1; }
.schedule__month-link--next { grid-column: 3; }
.schedule__month-link:hover { border-color: var(--green-deep); background: #F1F7F1; color: var(--green-deep); }

.schedule__weekdays, .schedule__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.schedule__weekdays {
    margin-top: 16px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.schedule__days { margin-top: 8px; gap: 6px; }
.schedule__day {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(40px, 3.4vw, 48px);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: background-color var(--hover-time) var(--ease-out), color var(--hover-time) var(--ease-out);
}
a.schedule__day:hover { background: #EEF5EE; color: var(--green-deep); }
.schedule__day--today::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--green-deep);
}
.schedule__day--selected,
a.schedule__day--selected:hover {
    background: var(--green-deep);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 14px -8px rgba(43, 110, 47, .8);
}
.schedule__day--selected.schedule__day--today::after { background: #fff; }
.schedule__day--closed { color: #A3A8AE; font-weight: 400; }

.schedule__summary { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.schedule__availability { font-family: var(--font-body); font-stretch: normal; font-size: 15px; font-weight: 600; }
.schedule__empty { margin-top: 4px; font-size: 14px; color: var(--text-muted); }
.schedule__empty--open { display: flex; align-items: center; gap: 8px; }
.schedule__empty--open::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-deep);
    box-shadow: 0 0 0 3px rgba(43, 110, 47, .15);
}

.schedule__details { padding: 18px 20px; border-radius: 12px; background: var(--band); }
.schedule__details .schedule__heading { font-size: 11.5px; color: var(--text-muted); }
.schedule__service {
    margin-top: 6px;
    font-family: var(--font-display);
    font-stretch: 110%;
    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 800;
    line-height: 1.15;
}
.schedule__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.schedule__chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
}
.schedule__blurb { margin-top: 10px; font-size: 14px; color: var(--text-muted); }

.schedule__times,
.schedule__fields {
    min-inline-size: 0;
    margin: 24px 0 0;
    padding: 22px 0 0;
    border: 0;
    border-top: 1px solid var(--rule-soft);
}
/* Floated so the legend leaves the fieldset border and the rule above stays whole. */
.schedule__times > legend,
.schedule__fields > legend { float: left; width: 100%; margin-bottom: 14px; padding: 0; }
.schedule__times > legend + *,
.schedule__fields > legend + * { clear: both; }

.schedule__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.schedule__slot { position: relative; display: block; }
.schedule__slot input { position: absolute; inset: 0; margin: 0; opacity: 0; }
.schedule__slot span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition:
        background-color var(--hover-time) var(--ease-out),
        border-color var(--hover-time) var(--ease-out),
        color var(--hover-time) var(--ease-out);
}
.schedule__slot:hover span { border-color: var(--green-deep); background: #F6FAF6; color: var(--green-deep); }
.schedule__slot input:checked + span {
    border-color: var(--green-deep);
    background: var(--green-deep);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 14px -8px rgba(43, 110, 47, .8);
}
.schedule__slot input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.schedule__slots-empty {
    padding: 16px;
    border: 1px dashed var(--rule);
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    color: var(--text-muted);
}

.schedule__fields > .contact-form__row { margin-top: 16px; gap: 16px; }
.schedule__fields > .field + .field,
.schedule__fields > .contact-form__row + .field { margin-top: 16px; }
.schedule .field__input,
.schedule .field__textarea { border-color: var(--rule); border-radius: 8px; }
.schedule .field__input { height: 44px; }
.schedule .field__textarea { height: 96px; }
.schedule select.field__input {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%231A1A1A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    cursor: pointer;
}

.schedule__form .btn {
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    border-radius: 8px;
    background: var(--green-primary);
    font-weight: 600;
}
.schedule__form .btn:hover { background: var(--green-deep); }
.schedule__form .btn:disabled,
.schedule__form .btn:disabled:hover {
    background: var(--green-primary);
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 900px) {
    .schedule__layout { grid-template-columns: minmax(0, 1fr); }
    .schedule__picker { position: static; }
}

/* =============================================================================
   CONTACT PAGE  —  copy left (x 89.9, w 478.7), panel right (x 666, w 614)
   ========================================================================== */

/* Copy x 91 (w 485); 727px bordered form panel at x 628. */
.contact {
    display: grid;
    grid-template-columns: 33.68vw 50.49vw;
    column-gap: 3.68vw;
    align-items: start;
    padding-left: clamp(18px, 6.32vw, 114px);
    padding-right: clamp(18px, 5.9vw, 106px);
    padding-block: clamp(40px, 7.99vw, 144px) clamp(48px, 17.99vw, 324px);
}

.contact__title {
    font-size: clamp(28px, 3.75vw, 68px);              /* 54 */
    line-height: .9;
}

.contact__lede {
    margin-top: clamp(16px, 1.875vw, 34px);
    font-size: clamp(15px, 1.41vw, 25px);
    line-height: 1.3;
}

.contact__group { margin-top: clamp(24px, 3.125vw, 56px); }
.contact__group + .contact__group { margin-top: clamp(20px, 2.5vw, 45px); }

.contact__group-title {
    font-size: clamp(15px, 1.41vw, 25px);
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
}

/* The live text box starts 32px left of the column. */
.contact__lines {
    margin-top: clamp(6px, .63vw, 11px);
    margin-left: -2.22vw;
    width: 38.89vw;
    font-size: clamp(14px, 1.25vw, 22px);
    line-height: 1.3;
}

.contact__line-link { color: inherit; text-decoration: none; transition: color var(--hover-time) var(--ease-out); }
.contact__line-link:hover { color: var(--green-deep); text-decoration: underline; }

.contact__panel {
    background: var(--white);
    border: 1px solid rgb(208, 213, 221);
    border-radius: var(--radius-soft);
    padding: clamp(18px, 3.19vw, 57px) clamp(16px, 3.13vw, 56px);
}

.contact__panel-title {
    margin-bottom: 22px;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

.contact__panel .field__input,
.contact__panel .field__textarea { background-color: var(--band); }

/* =============================================================================
   PORTAL  (separate Wix members site — dark green, cream card, gold accent)
   ========================================================================== */

.portal-page {
    --p-ink:          #0E1F18;
    --p-bar:          #0a1711;
    --p-cream:        #F6F1E7;
    --p-cream-deep:   #EFE8DA;
    --p-paper:        #FBF8F2;
    --p-line:         #E4DAC6;
    --p-field-line:   #D6CCB6;
    --p-gold:         #C4A45C;
    --p-gold-hover:   #b3934e;
    /* #C4A45C is 2.1:1 on cream; gold text on cream uses this deeper cut of the same gold (4.8:1). */
    --p-gold-ink:     #84652A;
    --p-gold-light:   #E3CB8F;
    --p-muted:        #4F5B54;
    --p-on-dark:      #F6F1E7;
    --p-on-dark-soft: rgba(246, 241, 231, .72);
    --p-serif:        Fraunces, Georgia, "Times New Roman", serif;
    --p-radius:       18px;
    --p-radius-field: 12px;
    --p-panel-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .65),
        0 0 0 1px rgba(196, 164, 92, .26),
        0 28px 56px -36px rgba(0, 0, 0, .75);
    --focus-ring: #0E1F18;

    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--p-ink);
    color: var(--p-ink);
    font-family: "Madefor Text", var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    padding: 24px;
}

.portal-page ::selection { background: rgba(196, 164, 92, .38); }
.portal-page .skip-link { background: var(--p-gold); color: var(--p-ink); }

.portal-page:not(.portal-page--desk) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    justify-content: stretch;
    align-items: center;
    justify-items: center;
    padding: 24px 24px 0;
    background:
        radial-gradient(60% 50% at 50% 38%, rgba(196, 164, 92, .06), transparent 70%),
        radial-gradient(90% 70% at 50% 42%, #142a20 0%, #0E1F18 62%, #0b1913 100%);
}
.portal-page:not(.portal-page--desk) .portal-foot {
    align-self: end;
    width: 100%;
    margin-top: 0;
    padding-bottom: 20px;
}

.portal-icon { display: block; flex: none; }

/* --- Sign-in cards: Log In, sign-up, password change, staff code --- */

.portal-card {
    width: 100%;
    max-width: 420px;
    background: var(--p-cream);
    border: 1px solid rgba(196, 164, 92, .32);
    border-radius: 24px;
    padding: 39px 35px 29px;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .7),
        0 0 120px 8px rgba(196, 164, 92, .07),
        0 40px 80px -36px rgba(0, 0, 0, .7);
}
.portal-card--wide { max-width: 500px; }

.portal-card__logo { width: 152px; height: auto; margin: 0 auto 24px; }

.portal-card__eyebrow,
.portal-desk__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
}
.portal-card__eyebrow { justify-content: center; margin-bottom: 10px; color: var(--p-gold-ink); }
.portal-card__eyebrow::before,
.portal-card__eyebrow::after,
.portal-desk__eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: .55;
}

.portal-card__title {
    font-family: var(--p-serif);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.015em;
    color: var(--p-ink);
}

.portal-card__signup {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--p-muted);
}
.portal-card__nowrap { white-space: nowrap; font-weight: 500; color: var(--p-ink); }
.portal-card__link { color: var(--p-gold-ink); font-weight: 600; text-decoration: none; }
.portal-card__link:hover { text-decoration: underline; }

.portal-card__form { margin-top: 26px; text-align: left; }
.portal-card__row { margin: 0; }
.portal-card__row + .portal-card__row,
.portal-card__row + .portal-card__pair,
.portal-card__pair + .portal-card__row { margin-top: 16px; }

.portal-card__pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.portal-card__pair > .portal-card__row { margin-top: 0; }

.portal-card__group { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.portal-card__group + .portal-card__group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--p-line); }

/* Floated so the legend leaves the fieldset border and takes a normal margin. */
.portal-card__legend {
    float: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--p-muted);
}
.portal-card__legend + * { clear: both; }

.portal-card__optional {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--p-cream-deep);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: none;
}

.portal-card__label,
.portal-form__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--p-ink);
}

textarea.portal-form__input,
textarea.portal-card__input {
    height: auto;
    min-height: 160px;
    padding: 12px 14px;
    resize: vertical;
}

.portal-card__input,
.portal-form__input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--p-field-line);
    border-radius: var(--p-radius-field);
    box-shadow: inset 0 1px 2px rgba(14, 31, 24, .05);
    color: var(--p-ink);
    font-family: inherit;
    font-size: 15px;
    transition:
        border-color var(--hover-time) var(--ease-out),
        box-shadow var(--hover-time) var(--ease-out),
        background-color var(--hover-time) var(--ease-out);
}
.portal-card__input::placeholder,
.portal-form__input::placeholder { color: #66706B; opacity: 1; }

.portal-card__input--code {
    height: 58px;
    padding: 0 0 0 .42em;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: .42em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
    .portal-card__input:hover,
    .portal-form__input:hover { border-color: #bfb293; }
}

.portal-card__input:focus,
.portal-form__input:focus {
    border-color: var(--p-ink);
    outline: 2px solid transparent;
    box-shadow: 0 0 0 1px var(--p-ink), 0 0 0 4px rgba(196, 164, 92, .42);
}

.portal-card__input[aria-invalid="true"],
.portal-form__input[aria-invalid="true"] { border-color: #B4483A; background-color: #FFFBFA; }
.portal-card__input[aria-invalid="true"]:focus,
.portal-form__input[aria-invalid="true"]:focus {
    border-color: #B4483A;
    box-shadow: 0 0 0 1px #B4483A, 0 0 0 4px rgba(180, 72, 58, .2);
}

.portal-card__forgot {
    display: table;
    margin: 10px 0 0 auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--p-gold-ink);
    text-decoration: none;
}
.portal-card__forgot:hover { text-decoration: underline; }

.portal-card__submit,
.portal-form__submit {
    height: 46px;
    padding: 0 24px;
    background: var(--p-gold);
    color: var(--p-ink);
    border: 1px solid transparent;
    border-radius: var(--p-radius-field);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(14, 31, 24, .12);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    transition:
        background-color var(--hover-time) var(--ease-out),
        border-color var(--hover-time) var(--ease-out),
        box-shadow .35s var(--ease-out),
        transform .35s var(--ease-out);
}
.portal-card__submit { width: 100%; margin-top: 24px; }
.portal-card__submit:hover,
.portal-form__submit:hover { background: var(--p-gold-hover); }

.portal-card__submit--ghost,
.portal-form__submit--ghost { background: transparent; border-color: var(--p-gold); box-shadow: none; }
.portal-card__submit--ghost:hover,
.portal-form__submit--ghost:hover { background: var(--p-cream-deep); }

a.portal-form__submit { display: inline-flex; align-items: center; text-decoration: none; }
.portal-form__submit--danger { background: #8C2C20; color: var(--p-paper); }
.portal-form__submit--danger:hover { background: #74241A; }

.portal-card__hint,
.portal-form__hint {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--p-muted);
}
.portal-card__hint--error,
.portal-form__hint--error { font-weight: 500; color: #9B2C1F; }

.portal-card__trust {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--p-line);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--p-muted);
    text-wrap: balance;
}
.portal-card__trust-icon { display: inline-block; margin-right: 6px; vertical-align: -2px; color: var(--p-gold-ink); }

.portal-card__back {
    display: inline-block;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--p-muted);
    text-decoration-color: rgba(79, 91, 84, .4);
    transition: color var(--hover-time) var(--ease-out);
}
.portal-card__back:hover { color: var(--p-ink); }

.portal-card__note {
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px dashed var(--p-field-line);
    border-radius: var(--p-radius-field);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--p-muted);
    text-align: left;
}
.portal-card__note code { padding: 1px 5px; border-radius: 4px; background: var(--p-cream-deep); color: var(--p-ink); font-size: 12px; }

.portal-card__foot { margin-top: 20px; }

.portal-card__linkbutton {
    background: none;
    border: 0;
    padding: 0;
    font-size: 12.5px;
    color: var(--p-muted);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(79, 91, 84, .4);
    text-underline-offset: .22em;
    transition: color var(--hover-time) var(--ease-out);
}
.portal-card__linkbutton:hover { color: var(--p-ink); }

/* Staff code: step one sends, step two verifies. */
.portal-steps { margin-top: 24px; counter-reset: portal-step; text-align: left; }
.portal-steps__item { position: relative; padding-left: 44px; counter-increment: portal-step; }
.portal-steps__item + .portal-steps__item { margin-top: 24px; }
.portal-steps__item::before {
    content: counter(portal-step);
    position: absolute;
    left: 0;
    top: -4px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--p-cream-deep);
    box-shadow: inset 0 0 0 1px var(--p-field-line);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--p-ink);
}
.portal-steps__item:first-child::before { top: 9px; }
.portal-steps__item:first-child::after {
    content: "";
    position: absolute;
    left: 13.5px;
    top: 43px;
    bottom: -14px;
    width: 1px;
    background: var(--p-field-line);
}
.portal-steps .portal-card__form { margin-top: 0; }
.portal-steps .portal-card__submit--ghost { margin-top: 0; }
.portal-steps .portal-card__row + .portal-card__submit { margin-top: 16px; }

.portal-page .form-flash,
.portal-page .form-errors {
    position: relative;
    margin: 18px 0 0;
    padding: 12px 14px 12px 40px;
    border: 1px solid;
    border-radius: var(--p-radius-field);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}
.portal-page .form-flash::before,
.portal-page .form-errors::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 14px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%232E6B36'/%3E%3Cpath d='M4.8 8.3l2.1 2.1 4.3-4.6' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.portal-page .form-flash { background-color: #E4EEDF; border-color: #C3D8BD; color: #1F4D26; }
.portal-page .form-flash--error,
.portal-page .form-errors { background-color: #F8E3DE; border-color: #EBC2B9; color: #8A2A1F; }
.portal-page .form-flash--error::before,
.portal-page .form-errors::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23A33A2C'/%3E%3Cpath d='M8 4.4v4.4' stroke='white' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.4' r='1' fill='white'/%3E%3C/svg%3E");
}
.portal-page .form-errors__item { margin-left: 16px; }

/* --- Signed-in desk pages --- */

.portal-page--desk {
    --focus-ring: #C4A45C;

    display: flex;
    flex-direction: column;
    padding: 0;
    color: var(--p-on-dark);
    background:
        radial-gradient(1100px 420px at 50% -140px, rgba(196, 164, 92, .07), transparent 70%),
        var(--p-ink);
}

.portal-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 68px;
    padding: 10px clamp(16px, 3vw, 32px);
    background: rgba(10, 23, 17, .96);
    border-bottom: 1px solid rgba(246, 241, 231, .08);
    view-transition-name: portal-bar;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .portal-bar {
        background: rgba(10, 23, 17, .84);
        -webkit-backdrop-filter: saturate(1.2) blur(14px);
        backdrop-filter: saturate(1.2) blur(14px);
    }
}

.portal-bar__brand {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}
.portal-bar__logo { width: 72px; height: auto; display: block; }
.portal-bar__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.portal-bar__brand-kicker {
    color: var(--p-gold-light);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.portal-bar__brand-name { color: var(--p-on-dark); font-size: 14px; font-weight: 600; }
.portal-bar__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.portal-bar__hello { color: var(--p-on-dark); font-size: 13px; font-weight: 600; }
.portal-bar__email { color: rgba(246, 241, 231, .62); font-size: 11px; }

.portal-page--desk > .portal-desk { flex: 1 0 auto; }

.portal-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 8px 16px 28px;
    color: rgba(246, 241, 231, .5);
    font-size: 12px;
}
.portal-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-bottom: 18px;
}
.portal-search .portal-form__input { max-width: 320px; }
.portal-search .portal-form__submit { width: auto; margin-top: 0; }
.portal-pages {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
    color: var(--p-on-dark-soft);
    font-size: 14px;
}
.portal-pages a { color: var(--p-gold-light); }

.portal-desk.portal-desk--file {
    max-width: none;
    width: 100%;
    padding-left: clamp(20px, 2.5vw, 40px);
    padding-right: clamp(20px, 2.5vw, 40px);
}

.client-find {
    display: flex;
    gap: 10px;
    align-items: center;
}
.client-find__input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: var(--p-cream);
    color: var(--p-ink);
    font: inherit;
    font-size: 16px;
}
.client-find__input:focus { outline: 2px solid var(--p-gold); outline-offset: 2px; }
.client-find .portal-form__submit { width: auto; margin: 0; height: 52px; padding: 0 22px; }
.client-find__count { margin: 0; color: var(--p-on-dark-soft); font-size: 13px; }

.client-roster { display: flex; flex-direction: column; gap: 10px; }
.client-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: var(--p-cream);
    border-radius: 16px;
    color: var(--p-ink);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(196, 164, 92, .28);
}
.client-card:hover { background: #fff; }
.client-card__name {
    display: block;
    font-family: var(--p-serif);
    font-size: 22px;
    font-weight: 560;
    line-height: 1.2;
}
.client-card__line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 4px;
    color: var(--p-muted);
    font-size: 13px;
}
.client-card__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}
.client-card__kind {
    padding: 4px 10px;
    border-radius: 999px;
    background: #F0E2C0;
    color: #6B4E14;
    font-size: 12px;
    font-weight: 600;
}
.client-card__docs { color: var(--p-muted); font-size: 12px; }

.client-mast { display: flex; flex-direction: column; gap: 6px; }
.client-mast__name {
    margin: 0;
    color: var(--p-on-dark);
    font-family: var(--p-serif);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 560;
    line-height: 1.05;
}
.client-mast__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    color: var(--p-on-dark-soft);
    font-size: 14px;
}
.client-mast__back { margin: 0; }
.client-mast__back a { color: var(--p-gold-light); }

.client-file {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 22px;
    align-items: start;
}
.client-sheet__label {
    margin: 22px 0 10px;
    color: var(--p-gold-ink);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.client-deps { display: flex; flex-direction: column; gap: 8px; }
.client-deps__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 8px; }

.client-cabinet { display: flex; flex-direction: column; gap: 12px; }
.client-cabinet__head h2 {
    margin: 0;
    color: var(--p-on-dark);
    font-family: var(--p-serif);
    font-size: 28px;
    font-weight: 560;
}
.client-cabinet__head p, .client-cabinet__empty { margin: 4px 0 0; color: var(--p-on-dark-soft); font-size: 14px; }
.client-year {
    padding: 14px 16px;
    background: var(--p-cream);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(196, 164, 92, .28);
}
.client-year__label { margin: 0 0 8px; font-size: 13px; font-weight: 650; color: var(--p-gold-ink); }
.client-year__fields { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.client-year--add { display: flex; flex-direction: column; gap: 8px; }
.client-year--add .portal-form__submit { width: auto; align-self: flex-start; margin-top: 0; }
.client-year__top h3 {
    margin: 0;
    font-family: var(--p-serif);
    font-size: 26px;
    font-weight: 560;
}
.client-year__top p { margin: 2px 0 0; color: var(--p-muted); font-size: 14px; }
.client-year__note { color: var(--p-ink); }
.client-year__docs { margin: 12px 0 0; padding: 0; list-style: none; }
.client-year__docs li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--p-line);
    font-size: 14px;
}
.client-year__docs a { color: var(--p-ink); font-weight: 600; text-decoration: none; }
.client-year__docs a:hover { text-decoration: underline; }
.client-year__docs span { color: var(--p-muted); white-space: nowrap; }

@media (max-width: 900px) {
    .client-file, .client-year__fields, .client-deps__row { grid-template-columns: minmax(0, 1fr); }
    .client-card { flex-direction: column; }
    .client-card__side { align-items: flex-start; text-align: left; }
    .client-find { flex-direction: column; align-items: stretch; }
}

.portal-foot a { color: var(--p-gold-light); text-decoration: none; }
.portal-foot a:hover { text-decoration: underline; }

.portal-bar__nav { display: flex; gap: 4px; min-width: 0; margin-right: auto; }

.portal-bar__link {
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(246, 241, 231, .74);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--hover-time) var(--ease-out), color var(--hover-time) var(--ease-out);
}
.portal-bar__link:hover { background: rgba(246, 241, 231, .07); color: var(--p-on-dark); }
.portal-bar__link--current,
.portal-bar__link--current:hover {
    background: rgba(196, 164, 92, .14);
    box-shadow: inset 0 0 0 1px rgba(196, 164, 92, .24);
    color: var(--p-gold-light);
}

.portal-bar__menu { position: relative; flex: none; }
.portal-bar__menu > summary { list-style: none; cursor: pointer; }
.portal-bar__menu > summary::-webkit-details-marker { display: none; }
.portal-bar__chevron {
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-right: 1.5px solid var(--p-gold-light);
    border-bottom: 1.5px solid var(--p-gold-light);
    transform: translateY(-2px) rotate(45deg);
}
.portal-bar__menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 220px;
    padding: 8px;
    background: #10241c;
    border: 1px solid rgba(196, 164, 92, .32);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.portal-bar__menu-email {
    margin: 0;
    padding: 6px 12px 8px;
    color: rgba(246, 241, 231, .55);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-bar__menu-link {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--p-on-dark);
    font-size: 14px;
    text-decoration: none;
}
.portal-bar__menu-link:hover { background: rgba(246, 241, 231, .07); }
.portal-bar__menu-link--current { color: var(--p-gold-light); background: rgba(196, 164, 92, .12); }
.portal-bar__menu-panel .portal-bar__logout-button { width: 100%; margin-top: 6px; }

.portal-bar__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
}
.portal-bar__profile:hover { background: rgba(246, 241, 231, .07); }
.portal-bar__profile--current { box-shadow: inset 0 0 0 1px rgba(196, 164, 92, .4); }

.portal-bar__avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(196, 164, 92, .16);
    box-shadow: inset 0 0 0 1px rgba(196, 164, 92, .32);
    color: var(--p-gold-light);
    font-size: 13px;
    font-weight: 600;
}

.portal-bar__email {
    max-width: 28ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: rgba(246, 241, 231, .62);
}

.portal-bar__logout-button {
    height: 34px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid rgba(196, 164, 92, .6);
    border-radius: 999px;
    color: var(--p-gold-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition:
        background-color var(--hover-time) var(--ease-out),
        border-color var(--hover-time) var(--ease-out),
        color var(--hover-time) var(--ease-out);
}
.portal-bar__logout-button:hover { background: var(--p-gold); border-color: var(--p-gold); color: var(--p-ink); }

.portal-desk {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 60px) clamp(16px, 3vw, 24px) 96px;
}
.portal-desk--wide { max-width: 1080px; }

.portal-desk--settings {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 20px;
    align-items: start;
    max-width: 1080px;
}
.portal-desk--settings > .portal-desk__head,
.portal-desk--settings > .form-flash,
.portal-desk--settings > .form-errors { grid-column: 1 / -1; }

.portal-settings-nav { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.portal-settings-nav__link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--p-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.portal-settings-nav__link:hover { background: #EFE8D8; }
.portal-settings-nav__link--current { background: #F0E2C0; color: #6B4E14; }

.portal-desk--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 28px;
    row-gap: 20px;
    align-items: start;
    max-width: 1180px;
}
.portal-desk--split > .portal-desk__head,
.portal-desk--split > .form-flash,
.portal-desk--split > .form-errors { grid-column: 1 / -1; }

.portal-desk__work { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.portal-aside { position: sticky; top: 18px; }
.portal-aside .portal-form { margin-top: 16px; }
.portal-aside .portal-form__row { margin-bottom: 12px; }
.portal-aside .portal-form__file {
    min-height: 48px;
    padding: 10px 12px;
    white-space: normal;
}
.portal-aside .portal-form__file::file-selector-button { margin-bottom: 8px; }

.portal-tabs { display: flex; gap: 8px; }
.portal-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(246, 241, 231, .22);
    border-radius: 999px;
    color: var(--p-on-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.portal-tab--current { background: var(--p-cream); color: var(--p-ink); border-color: transparent; }
.portal-tab__count { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .72; }
.portal-tab--current .portal-tab__count { opacity: .6; }

.portal-bar__count {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--p-gold);
    color: var(--p-ink);
    font-size: 11px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.portal-lane { display: flex; flex-direction: column; gap: 16px; }
.portal-lane__title {
    font-family: var(--p-serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--p-on-dark);
}
.portal-lane__note { margin-top: -8px; font-size: 14px; line-height: 1.5; color: var(--p-on-dark-soft); }

@media (max-width: 900px) {
    .portal-desk--split,
    .portal-desk--settings { grid-template-columns: minmax(0, 1fr); }
    .portal-aside { position: static; }
    .portal-settings-nav { flex-direction: row; flex-wrap: wrap; }
}

.portal-desk__head { margin-bottom: 4px; }
.portal-desk__eyebrow { margin-bottom: 12px; color: var(--p-gold); }

.portal-desk__title {
    font-family: var(--p-serif);
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--p-on-dark);
}

.portal-desk__lede {
    max-width: 74ch;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--p-on-dark-soft);
}
.portal-desk__lede strong { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--p-on-dark); }

.portal-desk > .form-flash,
.portal-desk > .form-errors { margin: 0; }

.portal-panel,
.portal-group {
    --focus-ring: #0E1F18;

    background: var(--p-cream);
    color: var(--p-ink);
    border-radius: var(--p-radius);
    box-shadow: var(--p-panel-shadow);
}

.portal-panel { padding: clamp(20px, 3vw, 30px); }

.portal-panel__title {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--p-line);
    font-family: var(--p-serif);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.portal-form { margin-top: 22px; }
.portal-panel__foot { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--p-line); }

.portal-form__row { margin: 0 0 18px; }
.portal-form__row--narrow { max-width: 200px; }

.portal-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; column-gap: 16px; }
.portal-form__grid--server { grid-template-columns: minmax(0, 2fr) minmax(96px, .7fr) minmax(0, 1.4fr); }
.portal-form__grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-form__grid > .portal-form__row--narrow { max-width: none; }

select.portal-form__input {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%230E1F18' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    cursor: pointer;
}

.portal-form__file {
    height: auto;
    max-width: 100%;
    min-height: 76px;
    padding: 18px;
    white-space: normal;
    background: var(--p-paper);
    border: 1.5px dashed #CDBF9F;
    box-shadow: none;
    color: var(--p-muted);
    font-size: 14px;
    cursor: pointer;
}
@media (hover: hover) {
    .portal-form__file:hover { border-color: var(--p-gold); background: #fff; }
}
.portal-form__file::file-selector-button {
    height: 38px;
    margin: 0 14px 8px 0;
    padding: 0 16px;
    background: #fff;
    border: 1px solid var(--p-gold);
    border-radius: 10px;
    color: var(--p-ink);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--hover-time) var(--ease-out);
}
.portal-form__file::file-selector-button:hover { background: var(--p-cream-deep); }

.portal-form__check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--p-field-line);
    border-radius: var(--p-radius-field);
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
}
.portal-form__check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--p-ink); }

.portal-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--p-line);
}

.portal-group__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 18px clamp(18px, 2.6vw, 26px);
    border-bottom: 1px solid var(--p-line);
    font-family: var(--p-serif);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--p-ink);
    overflow-wrap: anywhere;
}

.portal-group__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--p-cream-deep);
    box-shadow: inset 0 0 0 1px var(--p-line);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    color: var(--p-muted);
}

.portal-list { margin: 0; padding: 0; list-style: none; }

.portal-list__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px clamp(18px, 2.6vw, 26px);
    border-top: 1px solid var(--p-line);
    transition: background-color var(--hover-time) var(--ease-out);
}
.portal-list__item--scan { flex-direction: column; align-items: stretch; gap: 12px; }
.portal-scan-launch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.portal-scan-launch .portal-form__hint { flex-basis: 100%; margin: 0; color: var(--p-gold-light); }
.portal-scan-launch__button {
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--p-gold);
    color: var(--p-ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.portal-scan-launch__button--quiet { background: transparent; color: var(--p-on-dark); box-shadow: inset 0 0 0 1px rgba(246, 241, 231, .28); }
.portal-phone__stage {
    overflow: hidden;
    border-radius: 16px;
    background: #0E1F18;
    max-width: 420px;
}
.portal-phone__video { display: block; width: 100%; max-height: 240px; object-fit: cover; }

.portal-scan-read {
    margin: 0;
    max-height: 9em;
    overflow: auto;
    white-space: pre-wrap;
    font: 13px/1.45 var(--font-body, system-ui);
    color: var(--p-muted);
    background: var(--p-cream-deep);
    border-radius: 12px;
    padding: 10px 12px;
}
.portal-scan-file {
    display: grid;
    grid-template-columns: minmax(220px, 360px) auto;
    gap: 8px;
    align-items: center;
    justify-content: start;
}
.portal-scan-file .portal-form__submit { white-space: nowrap; }
@media (max-width: 900px) {
    .portal-scan-file { grid-template-columns: 1fr; }
}

.portal-list__item:first-child { border-top: 0; }
.portal-list__item:last-child { border-radius: 0 0 var(--p-radius) var(--p-radius); }
.portal-list__item:has(.portal-list__note) { align-items: flex-start; }
@media (hover: hover) {
    .portal-list__item:hover { background: #F1EBDF; }
}

.portal-list__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--p-cream-deep);
    box-shadow: inset 0 0 0 1px var(--p-line);
    color: var(--p-muted);
}
.portal-list__icon--in { background: #F0E2C0; box-shadow: inset 0 0 0 1px #E3CFA0; color: #6B4E14; }
.portal-list__icon--out { background: #DCE9D6; box-shadow: inset 0 0 0 1px #C5DABD; color: #22552A; }

.portal-date {
    flex: none;
    width: 48px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--p-line), 0 1px 2px rgba(14, 31, 24, .06);
    text-align: center;
}
.portal-date__month {
    display: block;
    padding: 3px 0;
    background: var(--p-ink);
    color: var(--p-gold-light);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.portal-date__day {
    display: block;
    padding: 4px 0 6px;
    font-family: var(--p-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: lining-nums;
    color: var(--p-ink);
}

.portal-list__main { flex: 1 1 auto; min-width: 0; }

.portal-list__name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--p-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}
a.portal-list__name:hover {
    text-decoration: underline;
    text-decoration-color: var(--p-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: .2em;
}

.portal-list__meta {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    color: var(--p-muted);
    overflow-wrap: anywhere;
}
.portal-list__strong { font-weight: 500; color: var(--p-ink); }
.portal-list__flag { font-weight: 500; color: #6B4E14; }

.portal-list__contact-link {
    color: inherit;
    text-decoration-color: rgba(79, 91, 84, .35);
    transition: color var(--hover-time) var(--ease-out);
}
.portal-list__contact-link:hover { color: var(--p-ink); text-decoration-color: currentColor; }

.portal-list__note {
    max-width: 72ch;
    margin-top: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--p-line);
    border-left: 3px solid var(--p-gold);
    border-radius: 4px 10px 10px 4px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--p-ink);
    white-space: pre-wrap;
}

.portal-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px 0 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #E8E3D7;
    color: #4A544E;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .01em;
    text-transform: capitalize;
    white-space: nowrap;
}
.portal-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.portal-badge--new { background: #F0E2C0; color: #6B4E14; }
.portal-badge--reviewed,
.portal-badge--confirmed { background: #DCE9D6; color: #22552A; }
.portal-badge--cancelled { background: #F4DCD6; color: #8C2C20; }

.portal-list__actions {
    flex: none;
    display: inline-flex;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--p-field-line), 0 1px 2px rgba(14, 31, 24, .05);
}
.portal-list__action {
    position: relative;
    height: 34px;
    padding: 0 13px;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--p-ink);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--hover-time) var(--ease-out), color var(--hover-time) var(--ease-out);
}
.portal-list__action + .portal-list__action { box-shadow: inset 1px 0 0 var(--p-line); }
.portal-list__action:first-of-type { border-radius: 10px 0 0 10px; }
.portal-list__action:last-of-type { border-radius: 0 10px 10px 0; }
.portal-list__action:only-of-type { border-radius: 10px; }
.portal-list__action:hover { background: var(--p-cream-deep); }
.portal-list__action[value="cancelled"] { color: #8C2C20; }
.portal-list__action:focus-visible { z-index: 1; outline-offset: 2px; }
a.portal-list__action { display: inline-flex; align-items: center; text-decoration: none; }
.portal-list__action--delete { color: #8C2C20; }
.portal-list__action--delete:hover { background: #F4DCD6; }
.portal-list__actions > .portal-list__action:has(+ .portal-list__action--delete) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.portal-list__actions > .portal-list__action--delete { border-radius: 0 10px 10px 0; }

.portal-confirm { display: flex; align-items: flex-start; gap: 16px; }

.portal-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 40px 24px 44px;
    text-align: center;
}
.portal-empty__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: var(--p-cream-deep);
    box-shadow: inset 0 0 0 1px var(--p-line);
    color: var(--p-gold-ink);
}
.portal-empty__icon .portal-icon { width: 22px; height: 22px; }
.portal-empty__title { font-family: var(--p-serif); font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--p-ink); }
.portal-empty__text { max-width: 46ch; font-size: 14px; line-height: 1.55; color: var(--p-muted); }

/* On the bare page an empty list stays quiet next to the cream panels. */
.portal-desk > .portal-empty {
    border: 1px dashed rgba(246, 241, 231, .2);
    border-radius: var(--p-radius);
    background: rgba(246, 241, 231, .025);
}
.portal-desk > .portal-empty .portal-empty__icon {
    background: rgba(196, 164, 92, .12);
    box-shadow: inset 0 0 0 1px rgba(196, 164, 92, .28);
    color: var(--p-gold);
}
.portal-desk > .portal-empty .portal-empty__title { color: var(--p-on-dark); }
.portal-desk > .portal-empty .portal-empty__text { color: var(--p-on-dark-soft); }

.portal-group--flush { overflow: hidden; }

.portal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.portal-table thead th {
    padding: 13px 18px;
    border-bottom: 1px solid var(--p-line);
    background: var(--p-cream-deep);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
    color: var(--p-muted);
}
.portal-table tbody th,
.portal-table td {
    padding: 16px 18px;
    border-top: 1px solid var(--p-line);
    font-weight: 400;
    text-align: left;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
    color: var(--p-ink);
}
.portal-table tbody tr:first-child > * { border-top: 0; }
.portal-table tr > :first-child { padding-left: clamp(18px, 2.6vw, 26px); }
.portal-table tr > :last-child { padding-right: clamp(18px, 2.6vw, 26px); }
.portal-table .portal-list__name { display: inline; }
.portal-table__none { color: var(--p-muted); }
@media (hover: hover) {
    .portal-table tbody tr:hover { background: #F1EBDF; }
}

@media (forced-colors: active) {
    .portal-list__action { border: 1px solid ButtonText; }
}

@media (prefers-reduced-motion: no-preference) {
    .portal-card { animation: portal-card-in .7s var(--ease-settle) both; }
    .portal-desk > * { animation: portal-rise .55s var(--ease-settle) both; }
    .portal-desk > :nth-child(2) { animation-delay: .05s; }
    .portal-desk > :nth-child(3) { animation-delay: .1s; }
    .portal-desk > :nth-child(4) { animation-delay: .15s; }
    .portal-desk > :nth-child(n + 5) { animation-delay: .2s; }
}

@keyframes portal-card-in {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: none; }
}

@keyframes portal-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .portal-card__submit:hover,
    .portal-form__submit:hover { box-shadow: 0 10px 22px -14px rgba(14, 31, 24, .65); transform: translateY(-1px); }
    .portal-card__submit--ghost:hover,
    .portal-form__submit--ghost:hover { box-shadow: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .portal-card__submit:active,
    .portal-form__submit:active { transform: none; box-shadow: none; transition-duration: .08s; }
}

@media (max-width: 760px) {
    .portal-bar { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px 0; }
    .portal-bar__logo { width: 88px; }
    .portal-bar__account { margin-left: auto; }
    .portal-bar__nav {
        order: 3;
        flex: 0 0 calc(100% + 32px);
        margin: 0 -16px;
        padding: 2px 16px 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .portal-bar__nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 640px) {
    .portal-form__grid,
    .portal-form__grid--server,
    .portal-form__grid--even { grid-template-columns: minmax(0, 1fr); }

    .portal-list__item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: start;
        gap: 12px;
    }
    .portal-list__main { grid-column: 2; grid-row: 1; }
    .portal-list__item > .portal-badge { grid-column: 3; grid-row: 1; }
    .portal-list__actions { grid-column: 2 / -1; justify-self: start; }

    /* Rows with actions give the text the full width; status and actions share the line below. */
    .portal-list__item:has(.portal-list__actions) { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; }
    .portal-list__item:has(.portal-list__actions) > :first-child { align-self: start; }
    .portal-list__item:has(.portal-list__actions) .portal-list__main { grid-column: 2 / -1; }
    .portal-list__item:has(.portal-list__actions) > .portal-badge { grid-column: 2; grid-row: 2; }
    .portal-list__item:has(.portal-list__actions) .portal-list__actions { grid-column: 3; grid-row: 2; }

    .portal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .portal-table,
    .portal-table tbody,
    .portal-table tr { display: block; }
    .portal-table tr { padding: 14px 18px; border-top: 1px solid var(--p-line); }
    .portal-table tbody tr:first-child { border-top: 0; }
    .portal-group--flush .portal-table tr > th,
    .portal-group--flush .portal-table tr > td {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        padding: 3px 0;
        border: 0;
    }
    .portal-group--flush .portal-table tr > th { grid-template-columns: minmax(0, 1fr); padding-bottom: 6px; }
    .portal-table td::before { content: attr(data-label); font-size: 12.5px; font-weight: 500; color: var(--p-muted); }
}

@media (max-width: 420px) {
    .portal-list__item:has(.portal-list__actions) .portal-list__actions { grid-column: 2 / -1; grid-row: 3; }
}

@media (max-width: 520px) {
    .portal-page:not(.portal-page--desk) { padding: 16px; }
    .portal-card { padding: 31px 21px 23px; border-radius: 20px; }
    .portal-card__pair { grid-template-columns: minmax(0, 1fr); }
    .portal-bar__brand-text { display: none; }
    .portal-foot { flex-direction: column; gap: 4px; text-align: center; }
}

.site-header__logout-button {
    background: none;
    border: 0;
    padding: 0;
    font-size: 14px;
    color: var(--green-ui, #328036);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: .22em;
}

/* =============================================================================
   404
   ========================================================================== */

.error-page { padding-block: clamp(72px, 12vw, 160px); }
.error-page__inner { max-width: 640px; }
.error-page__code {
    margin: 0 0 8px;
    color: var(--green-ui, #328036);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
}
.error-page__title { font-size: clamp(32px, 4vw, 56px); line-height: 1.15; }
.error-page__text { margin-top: 16px; color: var(--text-soft); font-size: 18px; }
.error-page__links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; padding: 0; list-style: none; }
.error-page__link { color: var(--green-ui); font-weight: 600; }

/* =============================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .consult__inner {
        margin-left: 0;
        padding-inline: var(--gutter);
        grid-template-columns: minmax(0, 1fr);
        row-gap: clamp(24px, 4vw, 48px);
    }
    .services-panel { width: auto; margin-inline: var(--gutter); }
    .service-cards--book { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__heading { margin-left: 0; }
}

@media (max-width: 900px) {
    .site-header__inner {
        flex-wrap: wrap;
        padding-inline: var(--gutter);
        min-height: 0;
        padding-block: 14px;
        row-gap: 10px;
    }

    .site-nav__toggle { display: block; }

    .site-nav__toggle-label {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        order: 5;
        margin-left: 10px;
        width: 40px;
        height: 36px;
        cursor: pointer;
    }
    .site-nav__toggle-bar { display: block; width: 24px; height: 2px; background: var(--text); }

    .site-nav__toggle:focus-visible + .site-nav__toggle-label { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
    .site-nav__toggle:checked + .site-nav__toggle-label .site-nav__toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .site-nav__toggle:checked + .site-nav__toggle-label .site-nav__toggle-bar:nth-child(2) { opacity: 0; }
    .site-nav__toggle:checked + .site-nav__toggle-label .site-nav__toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .site-header__actions { order: 3; margin-left: auto; }

    .site-nav {
        order: 4;
        width: 100%;
        margin-left: 0;
        max-height: 0;
        overflow: hidden;
    }
    .site-nav__toggle:checked ~ .site-nav { max-height: 420px; }

    .site-nav__list { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 8px; }

    .hero { min-height: 0; }
    .hero__copy { width: auto; padding-inline: var(--gutter); padding-top: clamp(32px, 7vw, 64px); }
    .hero__title { width: auto; }
    .hero__subtitle, .hero__actions { margin-left: 0; }
    .hero__subtitle { max-width: none; }
    .hero__media { position: static; width: 100%; }
    .hero__image { aspect-ratio: 16 / 11; }

    .services-intro { padding-top: clamp(28px, 6vw, 48px); }
    .services-intro__lede { max-width: none; }

    .service-cards--services { padding-inline: var(--gutter); }

    .service-cards--home .service-card,
    .service-cards--services .service-card { display: block; }

    .service-cards--home .service-card__media,
    .service-cards--services .service-card__media { width: 100%; }

    .service-cards--home .service-card__photo,
    .service-cards--services .service-card__photo { aspect-ratio: 16 / 10; }

    .service-cards--home .service-card__body,
    .service-cards--services .service-card__body {
        width: 92%;
        min-height: 0;
        margin: -12% 0 0 auto;
    }

    .values { grid-template-columns: minmax(0, 1fr); }
    .values__copy { padding-left: var(--gutter); padding-top: clamp(32px, 6vw, 64px); }
    .values__text { max-width: none; }
    .values__image { aspect-ratio: 16 / 10; }

    .testimonials__list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 0; }
    .testimonials__column:first-child .testimonial + .testimonial { margin-top: 0; }

    .site-footer__inner { padding-right: 0; }
    .site-footer__tagline { max-width: none; }
    .site-footer__heading { width: auto; text-align: left; }
    .site-footer__social { margin-left: 0; }

    .about__inner { grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding-inline: var(--gutter); margin-top: clamp(24px, 4vw, 48px); }
    .about__title { padding-left: var(--gutter); }
    .about__image { aspect-ratio: 3 / 4; max-width: 460px; }

    .contact { grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding-inline: var(--gutter); }
    .contact__lines { margin-left: 0; width: auto; }

    .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .service-cards--book { grid-template-columns: minmax(0, 1fr); }
    .testimonials__list { grid-template-columns: minmax(0, 1fr); }
    .contact-form__row--split { grid-template-columns: minmax(0, 1fr); }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__cta { min-width: 0; }
    .llc__row { align-items: flex-start; }
    .reviews-badge { left: auto; right: 8px; bottom: 8px; }
    .reviews-badge__panel { max-width: 0; min-width: 0; opacity: 0; }
    .reviews-badge__toggle { border-left: 0; border-radius: 4px; }
    .reviews-badge__toggle span { transform: rotate(180deg); }
    .reviews-badge__check:checked ~ .reviews-badge__panel { max-width: 220px; opacity: 1; }
    .reviews-badge__check:checked ~ .reviews-badge__toggle span { transform: none; }
}

/* Archivo stand-in for murs-gothic: smaller sizes need a wider cut to keep the same line breaks. */
.service-card__title { font-stretch: 112%; overflow-wrap: break-word; }
.llc__price { font-stretch: 118%; }

/* =============================================================================
   ENTRANCE  —  matches the live Wix motions: headings rise, photos wipe in
   from the side, body copy fades or floats up. Hidden only after the layout
   script marks <html class="motion">, so a no-JS visit still shows the page.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
    html.motion [data-enter="up"] {
        opacity: 0;
        transform: translateY(100%);
    }

    html.motion [data-enter="fade"],
    html.motion [data-enter="float"],
    html.motion [data-enter="right"],
    html.motion [data-enter="left"] {
        opacity: 0;
    }

    html.motion [data-enter="float"] { transform: translateY(60px); }

    html.motion [data-enter].is-in {
        animation-duration: var(--enter-duration, 1.2s);
        animation-delay: var(--enter-delay, 0ms);
        animation-fill-mode: both;
        animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    }

    html.motion [data-enter="up"].is-in { animation-name: enter-up; }
    html.motion [data-enter="fade"].is-in { animation-name: enter-fade; animation-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95); }
    html.motion [data-enter="float"].is-in { animation-name: enter-float; animation-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95); }
    html.motion [data-enter="right"].is-in { animation-name: enter-reveal-right; }
    html.motion [data-enter="left"].is-in { animation-name: enter-reveal-left; }

    /* The photo keeps easing in for a beat after the wipe lands, so it settles rather than stops. */
    html.motion [data-enter="right"].is-in > img,
    html.motion [data-enter="left"].is-in > img {
        animation-duration: calc(var(--enter-duration, 1.2s) + .9s);
        animation-delay: var(--enter-delay, 0ms);
        animation-fill-mode: both;
        animation-timing-function: var(--ease-settle);
    }
    html.motion [data-enter="right"].is-in > img { animation-name: enter-settle-right; }
    html.motion [data-enter="left"].is-in > img { animation-name: enter-settle-left; }

    @media (max-width: 900px) {
        .site-nav { transition: max-height .45s var(--ease-out); }
        .site-nav__toggle-bar { transition: transform .35s var(--ease-out), opacity .2s var(--ease-out); }
    }

    @view-transition { navigation: auto; }
}

@keyframes enter-settle-right {
    from { transform: translateX(3%) scale(1.08); }
    to { transform: none; }
}

@keyframes enter-settle-left {
    from { transform: translateX(-3%) scale(1.08); }
    to { transform: none; }
}

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--ease-out); }

.site-header { view-transition-name: site-header; }
.reviews-badge { view-transition-name: reviews-badge; }

@media print {
    html.motion [data-enter],
    html.motion [data-enter] > img {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        animation: none !important;
    }
    .reviews-badge { display: none; }
}

@keyframes enter-up {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: none; }
}

@keyframes enter-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes enter-float {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: none; }
}

@keyframes enter-reveal-right {
    from { opacity: 1; clip-path: inset(0 0 0 100%); }
    to { opacity: 1; clip-path: inset(0); }
}

@keyframes enter-reveal-left {
    from { opacity: 1; clip-path: inset(0 100% 0 0); }
    to { opacity: 1; clip-path: inset(0); }
}
