:root {
    color-scheme: light;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-sans);
    --ink: #17243f;
    --muted: #586880;
    --subtle: #64728a;
    --brand: #4f46e5;
    --blue: #285ce4;
    --line: #e1e6f1;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
a { color: inherit; }

body {
    position: relative;
    isolation: isolate;
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(125deg, #f8faff 5%, #f2f5ff 56%, #f9f8ff 100%);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(#6275a008 1px, transparent 1px), linear-gradient(90deg, #6275a008 1px, transparent 1px);
    background-size: 76px 76px;
    -webkit-mask-image: linear-gradient(#000, transparent 80%);
    mask-image: linear-gradient(#000, transparent 80%);
}

.icon {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.skip-link {
    position: absolute;
    z-index: 10;
    top: 1rem;
    left: 1rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    background: white;
    color: var(--brand);
    box-shadow: 0 4px 20px #17243f1a;
    transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #5274ef; outline-offset: 5px; }

/* A small, familiar header keeps the visitor oriented. */
.contact-header {
    background: #ffffffb8;
    border-bottom: 1px solid #dfe5f199;
}
.header-inner, .contact-shell, .contact-footer {
    width: min(1200px, calc(100% - 80px));
    margin-inline: auto;
}
.header-inner {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.contact-brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
    border-radius: .5rem;
}
.contact-logo-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid #e4e9f5;
    border-radius: 14px;
    box-shadow: 0 3px 12px #34457708;
}
.contact-logo-image { display: block; width: 29px; height: 34px; object-fit: contain; }
.brand-copy { display: grid; gap: .15rem; }
.contact-logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.04em;
    white-space: nowrap;
}
.contact-logo-text b { color: var(--brand); font-weight: 800; }
.brand-caption { color: var(--subtle); font-size: .75rem; line-height: 1.4; }
.home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 42px;
    padding: .55rem .85rem;
    border: 1px solid #dfe5f0;
    border-radius: 10px;
    background: #ffffffb8;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .18s, color .18s, background-color .18s;
}
.home-link .icon { width: 1rem; height: 1rem; color: #657494; }
.home-link:hover { color: var(--brand); border-color: #b8c4e9; background: white; }
.home-link-short { display: none; }

/* Intro and supporting copy sit beside the contact panel. */
.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: 'intro panel' 'details panel';
    column-gap: clamp(40px, 6vw, 88px);
    padding-block: clamp(48px, 5.4vw, 76px) 60px;
    align-items: start;
}
.contact-intro { grid-area: intro; padding-top: 20px; animation: contactEnter .55s ease both; }
.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #4a52ad;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
}
.contact-eyebrow::before { content: ''; width: 22px; height: 2px; background: #6064dc; }
.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.25vw, 3.65rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.055em;
}
.contact-heading span {
    color: var(--brand);
    background: linear-gradient(110deg, #5750d5, #2c65d9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.contact-lead {
    max-width: 430px;
    margin-top: 1.35rem;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.8;
}
.contact-details { grid-area: details; margin-top: 2.3rem; animation: contactEnter .55s .06s ease both; }
.details-eyebrow { margin-bottom: 1.25rem; color: #69758b; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.contact-points { display: grid; list-style: none; gap: 1.35rem; padding: 0; }
.contact-points li { display: flex; align-items: flex-start; gap: .9rem; }
.point-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid #dfe5f6;
    border-radius: 12px;
    background: #ffffffb3;
    color: #5159c7;
}
.contact-points h2, .next-step-note h2 { font-size: .9375rem; font-weight: 600; line-height: 1.5; }
.contact-points p { margin-top: .2rem; max-width: 330px; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.next-step-note {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-top: 2rem;
    padding-top: 1.45rem;
    border-top: 1px solid #dce3f2;
}
.next-step-note > .icon { width: 1.1rem; height: 1.1rem; margin-top: .25rem; color: #6878ac; }
.next-step-note h2 { color: #425071; font-size: .875rem; }
.next-step-note p { margin-top: .3rem; max-width: 365px; color: var(--muted); font-size: .875rem; line-height: 1.7; }

/* Contact methods. */
.contact-panel {
    grid-area: panel;
    min-width: 0;
    padding: 32px;
    border: 1px solid #e0e5f2;
    border-radius: 24px;
    background: white;
    box-shadow: 0 2px 3px #26376003, 0 20px 60px -20px #2637601c;
    animation: contactEnter .55s .08s ease both;
}
.panel-heading { display: flex; align-items: flex-start; gap: .9rem; }
.panel-heading-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    border: 1px solid #e4e7fc;
    border-radius: 12px;
    background: #f1f3ff;
    color: #5852c7;
}
.panel-heading-icon .icon { width: 1.35rem; height: 1.35rem; }
.panel-title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.4; letter-spacing: -.035em; font-weight: 800; }
.subhead { margin-top: .35rem; color: var(--muted); font-size: 1rem; line-height: 1.65; }

.inquiry-topic { margin-top: 1.5rem; color: var(--brand); font-weight: 600; }
.contact-actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
.contact-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 50px;
    padding: .7rem 1rem;
    border: 1px solid #dbe2ee;
    border-radius: 11px;
    color: var(--ink);
    background: #f8faff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
.contact-action span { overflow-wrap: anywhere; }
.contact-action:hover { border-color: #9faddd; background: #eff3ff; }
.contact-action-primary { border-color: #4f46e5; color: white; background: linear-gradient(105deg, #5350d8, #345fe0); }
.contact-action-primary:hover { border-color: #4842bf; background: linear-gradient(105deg, #4743c9, #2652d0); }
.privacy-note { margin-top: 1.2rem; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.privacy-note a { color: #454ba4; text-underline-offset: 3px; }

.contact-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid #dfe5f1; padding-block: 1.25rem; color: #69768d; font-size: .75rem; }
.contact-footer nav { display: flex; gap: 1.5rem; }
.contact-footer a { text-decoration: none; }
.contact-footer a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

@keyframes contactEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 1600px) {
    .contact-shell { padding-top: 90px; padding-bottom: 80px; }
}
@media (max-width: 1099px) {
    .header-inner, .contact-shell, .contact-footer { width: min(720px, calc(100% - 48px)); }
    .contact-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: 'intro' 'panel' 'details'; padding-top: 40px; row-gap: 32px; }
    .contact-intro { padding-top: 0; }
    .contact-heading { font-size: 2.7rem; }
    .contact-heading br { display: none; }
    .contact-lead { max-width: 640px; margin-top: 1rem; font-size: 1rem; }
    .contact-eyebrow { margin-bottom: .85rem; }
    .contact-panel { padding: 32px; }
    .contact-details { margin-top: 0; }
    .contact-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
    .contact-points li { flex-direction: column; gap: .75rem; }
    .contact-points h2 { font-size: .875rem; }
    .contact-points p { font-size: .8125rem; }
    .next-step-note { margin-top: 1.5rem; }
    .next-step-note p { max-width: none; }
}
@media (max-width: 560px) {
    .header-inner, .contact-shell, .contact-footer { width: calc(100% - 32px); }
    .header-inner { min-height: 80px; }
    .contact-brand { gap: .6rem; }
    .contact-logo-icon { width: 41px; height: 41px; border-radius: 12px; }
    .contact-logo-image { width: 25px; height: 29px; }
    .contact-logo-text { font-size: 1.12rem; }
    .brand-caption { font-size: .75rem; }
    .home-link { gap: .4rem; padding: .55rem .65rem; font-size: .8125rem; }
    .home-link-long { display: none; }
    .home-link-short { display: inline; }
    .contact-shell { padding-top: 30px; padding-bottom: 32px; row-gap: 26px; }
    .contact-heading { font-size: clamp(2rem, 8.8vw, 2.5rem); line-height: 1.2; }
    .contact-heading br { display: initial; }
    .contact-eyebrow { font-size: .75rem; }
    .contact-lead { margin-top: .85rem; font-size: 1rem; line-height: 1.75; }
    .contact-panel { margin-inline: -16px; padding: 26px 20px; border-inline: 0; border-radius: 20px; box-shadow: 0 10px 30px -24px #26376033; }
    .panel-heading { gap: .7rem; }
    .panel-heading-icon { width: 38px; height: 38px; border-radius: 11px; }
    .panel-heading-icon .icon { width: 1.2rem; height: 1.2rem; }
    .panel-title { font-size: 1.25rem; }
    .subhead { margin-top: .25rem; font-size: .875rem; }
    .contact-points { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
    .contact-points li { flex-direction: row; align-items: flex-start; }
    .contact-points h2 { font-size: .9375rem; }
    .contact-points p { font-size: .875rem; max-width: none; }
    .details-eyebrow { font-size: .75rem; }
    .next-step-note { padding-top: 1.25rem; }
    .contact-footer { align-items: flex-start; font-size: .75rem; gap: .75rem; }
    .contact-footer > span { max-width: 155px; }
    .contact-footer nav { gap: .85rem; }
}
@media (max-width: 359px) {
    .contact-panel { padding-inline: 10px; }
    .home-link { padding-inline: .6rem; }
    .panel-heading { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    .contact-heading span { background: none; -webkit-text-fill-color: currentColor; }
    .point-icon, .panel-heading-icon { border: 1px solid CanvasText; }
}
