@font-face {
    font-family: "Barlow";
    src: url("/assets/fonts/barlow/Barlow-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Barlow";
    src: url("/assets/fonts/barlow/Barlow-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Barlow";
    src: url("/assets/fonts/barlow/Barlow-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Barlow";
    src: url("/assets/fonts/barlow/Barlow-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --yc-plum-950: #35102f;
    --yc-plum-900: #501348;
    --yc-plum-700: #702568;
    --yc-orange: #f3912e;
    --keybox: #1baad2;
    --keybox-dark: #075273;
    --ink: #1d1920;
    --muted: #69616d;
    --paper: #f8f6f3;
    --surface: #ffffff;
    --surface-soft: #f5f0f4;
    --line: rgba(80, 19, 72, .14);
    --line-strong: rgba(80, 19, 72, .26);
    --danger: #a9293c;
    --focus: #f3912e;
    --shadow-card: 0 10px 26px rgba(35, 20, 34, .055);
    --shadow-float: 0 18px 42px rgba(53, 16, 47, .12);
    --radius-sm: 8px;
    --radius-control: 10px;
    --radius-card: 14px;
    --radius-media: 18px;
    --container: 1184px;
    --reading: 760px;
    --gutter: clamp(1rem, 4vw, 2.25rem);
    --motion: 180ms;
}

* {
    box-sizing: border-box;
    scrollbar-color: rgba(80, 19, 72, .46) rgba(80, 19, 72, .07);
    scrollbar-width: thin;
}

*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: rgba(80, 19, 72, .07); }
*::-webkit-scrollbar-thumb {
    background: rgba(80, 19, 72, .46);
    border: 3px solid var(--paper);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(80, 19, 72, .64); }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Barlow", ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

h1, h2, h3, p, dt, dd, li { overflow-wrap: anywhere; }

h1, h2, h3 {
    margin: 0;
    font-weight: 800;
    line-height: 1.02;
    text-wrap: balance;
}

h1 {
    max-width: 680px;
    color: var(--yc-plum-900);
    font-size: clamp(2.15rem, 3.35vw, 3rem);
    letter-spacing: -.025em;
}

h2 {
    font-size: clamp(1.65rem, 2.25vw, 2.08rem);
    line-height: 1.08;
    letter-spacing: -.015em;
}

h3 {
    font-size: clamp(1.22rem, 1.7vw, 1.48rem);
    line-height: 1.14;
}

p, dd, li { text-wrap: pretty; }

.skip-link {
    position: fixed;
    top: -5rem;
    left: 1rem;
    z-index: 100;
    padding: .72rem 1rem;
    color: #fff;
    background: var(--yc-plum-950);
    border-radius: var(--radius-control);
}

.skip-link:focus { top: 1rem; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
    padding: .65rem var(--gutter);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand img { width: 132px; height: auto; }

.nav {
    display: flex;
    justify-content: center;
    gap: clamp(.8rem, 3vw, 1.8rem);
    font-size: .95rem;
    font-weight: 600;
}

.nav a, .header-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: color var(--motion) ease, border-color var(--motion) ease, background var(--motion) ease;
}

.nav a:hover { color: var(--yc-plum-700); }
.nav a.active { color: var(--yc-plum-900); border-color: var(--yc-orange); }

.header-cta {
    justify-content: center;
    padding-inline: 1rem;
    color: var(--yc-plum-900);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    font-size: .92rem;
    font-weight: 700;
}

.header-cta:hover { background: var(--surface-soft); border-color: var(--line-strong); }
.header-cta span { margin-left: .35rem; color: var(--yc-orange); }

.hero, .home-hero, .opportunity-hero, .page-hero, .section, .content-grid, .home-ethos {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

.eyebrow, .section-index, .home-hero-kicker, .featured-label, .opportunity-card-media-label {
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow { color: var(--muted); }

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .72rem 1.12rem;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    transition: transform var(--motion) ease, background var(--motion) ease, border-color var(--motion) ease, box-shadow var(--motion) ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button.primary {
    color: #fff;
    background: var(--yc-plum-900);
    box-shadow: 0 8px 18px rgba(80, 19, 72, .17);
}
.button.primary:hover { background: var(--yc-plum-700); box-shadow: 0 10px 22px rgba(80, 19, 72, .21); }

.button.secondary {
    color: var(--yc-plum-900);
    background: #fff;
    border-color: var(--line-strong);
}
.button.secondary:hover { background: var(--surface-soft); }

.actions, .filter-pills, .chip-row, .filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    min-height: 510px;
    overflow: hidden;
    color: #fff;
    background: var(--yc-plum-950);
    border-bottom: 4px solid var(--yc-orange);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    z-index: 2;
    background: var(--yc-orange);
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    padding: clamp(2rem, 4vw, 3rem);
}

.home-hero-kicker { color: rgba(255,255,255,.7); }
.home-hero-kicker span:not(.status-dot) { color: rgba(255,255,255,.32); }
.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: .5rem;
    background: var(--yc-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(243,145,46,.14);
}

.home-hero-copy .eyebrow { margin-top: 1.2rem; color: #ffc27f; }
.home-hero-copy h1 { max-width: 520px; color: #fff; }
.home-hero-copy h1 em { color: var(--yc-orange); font-style: normal; }
.home-hero-copy > p:not(.eyebrow) { max-width: 470px; margin: 0; color: rgba(255,255,255,.77); font-size: 1.04rem; }
.home-hero-copy .button.secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.35); }
.home-hero-copy .button.secondary:hover { background: rgba(255,255,255,.09); }

.home-hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    width: 100%;
    max-width: 500px;
    margin-top: .85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.2);
}

.home-hero-proof div { display: grid; gap: .15rem; padding-right: .7rem; }
.home-hero-proof strong { font-size: 1.3rem; line-height: 1; }
.home-hero-proof span { color: rgba(255,255,255,.58); font-size: .72rem; line-height: 1.2; }

.home-hero-media { position: relative; min-height: 510px; overflow: hidden; background: var(--yc-plum-700); }
.home-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(53,16,47,.36), transparent 25%), linear-gradient(180deg, transparent 60%, rgba(29,12,29,.3));
    pointer-events: none;
}
.home-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.home-hero-note {
    position: absolute;
    right: 1.6rem;
    bottom: 1.6rem;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .7rem;
    max-width: 280px;
    padding: .88rem 1rem;
    color: var(--ink);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-float);
}
.home-hero-note > span { color: var(--yc-orange); font-size: .75rem; font-weight: 700; }
.home-hero-note div { display: grid; gap: .18rem; }
.home-hero-note strong { color: var(--yc-plum-900); line-height: 1.1; }
.home-hero-note small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.home-hero-caption { position: absolute; top: 1.2rem; right: 1.4rem; z-index: 2; color: rgba(255,255,255,.78); font-size: .74rem; font-weight: 600; }
.home-hero-rail { position: absolute; top: 2rem; right: .6rem; z-index: 3; color: rgba(255,255,255,.44); font-size: .58rem; font-weight: 700; letter-spacing: .18em; writing-mode: vertical-rl; }

.section { margin-block: clamp(2.75rem, 6vw, 5rem); }
.home-opportunities { margin-top: clamp(3.5rem, 6vw, 5rem); }
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}
.home-section-heading { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.section-heading-copy { max-width: 720px; }
.section-index { margin-bottom: .6rem; color: var(--yc-plum-700); }
.section-index span { color: var(--yc-orange); }
.section-heading p:last-child { max-width: 760px; margin: .55rem 0 0; color: var(--muted); }

.text-link { color: var(--yc-plum-900); font-weight: 700; }
.arrow-link { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.arrow-link span { color: var(--yc-orange); transition: transform var(--motion) ease; }
.arrow-link:hover span { transform: translate(2px,-2px); }

.pill, .chip-row span, .meta-chip {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .46rem .76rem;
    color: #342c37;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    font-size: .9rem;
    font-weight: 600;
}
.pill.active { color: #fff; background: var(--yc-plum-900); border-color: var(--yc-plum-900); }
.pill.entity-filter { width: 42px; padding: .48rem; justify-content: center; background: var(--yc-plum-900); border-color: var(--yc-plum-900); border-radius: 50%; }
.pill.entity-filter:hover { background: var(--yc-plum-700); }
.pill.entity-filter img { width: 24px; height: 24px; object-fit: contain; }
.home-filter-pills { margin-block: 1.35rem 1.1rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 360px));
    gap: 1rem;
    justify-content: start;
}

.opportunity-card, .summary-card, .content-block, .search-panel, .application-form fieldset, .error-summary, .consent-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.opportunity-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--motion) ease, border-color var(--motion) ease, box-shadow var(--motion) ease;
}
.opportunity-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 34px rgba(35,20,34,.09); }
.opportunity-card.entity-theme { border-top: 3px solid var(--entity-primary); }

.opportunity-card-visual { position: relative; }
.opportunity-card-media { position: relative; display: block; aspect-ratio: 16/8.7; overflow: hidden; background: var(--surface-soft); }
.opportunity-card-media::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(180deg,transparent,rgba(30,14,30,.44)); pointer-events: none; }
.opportunity-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.opportunity-card-media:hover img { transform: scale(1.025); }
.opportunity-card-media-label { position: absolute; left: 1rem; bottom: .85rem; z-index: 1; color: #fff; }
.opportunity-card-media-label span { color: var(--yc-orange); font-size: 1rem; }

.opportunity-card-brand { position: absolute; top: .75rem; right: .75rem; z-index: 2; }
.logo-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.logo-row--compact { gap: 0; }
.logo-tile {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .52rem;
    background: var(--yc-plum-900);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
}
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.logo-tile:hover { filter: brightness(1.15); }
.logo-tile:focus-visible { outline: 3px solid var(--yc-orange); outline-offset: 3px; position: relative; z-index: 3; }
.logo-row--compact .logo-tile { width: 31px; height: 31px; margin-left: -7px; padding: .34rem; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(29,25,32,.16); }
.logo-row--compact .logo-tile:first-child { margin-left: 0; }
.logo-tile.entity-theme, .entity-filter.entity-theme { background: var(--entity-primary); }
.entity-filter.entity-theme { border-color: var(--entity-primary); }
.entity-filter.entity-theme:hover { background: color-mix(in srgb, var(--entity-primary) 85%, #000); }

.opportunity-card-body { display: grid; gap: .7rem; padding: 1.15rem 1.2rem .95rem; }
.opportunity-card-topline { min-height: 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.opportunity-card-entities { color: var(--yc-plum-700); font-size: .78rem; font-weight: 700; line-height: 1.25; }
.opportunity-card.entity-theme .opportunity-card-entities { color: var(--entity-readable); }
.opportunity-card.entity-theme .text-link { color: var(--entity-readable); }
.opportunity-card.entity-theme h3 a { color: var(--entity-readable); }
.featured-label { color: var(--yc-orange); white-space: nowrap; }
.opportunity-card-copy { display: grid; gap: .55rem; }
.opportunity-card-copy h3 a:hover { color: var(--entity-readable); }
.opportunity-card-copy p { margin: 0; color: var(--muted); font-size: .95rem; }
.opportunity-card-footer { display: grid; gap: .95rem; margin-top: auto; padding: .95rem 1.2rem 1.15rem; border-top: 1px solid var(--line); }

.meta-list, .detail-list { display: grid; gap: .4rem; margin: 0; }
.meta-list div, .detail-list div { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: .55rem; }
dt { color: #7a717d; font-size: .84rem; font-weight: 600; }
dd { margin: 0; color: #302932; }

.home-ethos {
    display: grid;
    grid-template-columns: minmax(230px,.72fr) minmax(0,1.28fr);
    gap: clamp(2rem,7vw,5.5rem);
    margin-bottom: 4rem;
    padding-block: clamp(1.6rem,4vw,3rem);
    border-block: 1px solid var(--line);
}
.home-ethos-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-ethos-grid > div { display: grid; align-content: start; gap: .45rem; min-height: 140px; padding-inline: 1.15rem; border-left: 1px solid var(--line); }
.ethos-mark { color: var(--yc-orange); font-size: 1.4rem; line-height: 1; }
.home-ethos-grid strong { color: var(--yc-plum-900); font-size: 1.08rem; }
.home-ethos-grid > div > span:last-child { color: var(--muted); font-size: .92rem; line-height: 1.35; }

.page-hero.compact {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .7rem;
    margin-top: 1.25rem;
    padding: clamp(1.6rem,5vw,3rem);
    background: linear-gradient(110deg,#fff 0%,#fff 62%,var(--surface-soft));
    border: 1px solid var(--line);
    border-left: 5px solid var(--yc-orange);
    border-radius: var(--radius-media);
}
.page-hero p:not(.eyebrow) { max-width: 640px; margin: 0; color: var(--muted); font-size: 1.02rem; }
.page-hero h1 span { color: var(--yc-orange); }

.search-panel {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(190px,250px) auto;
    gap: .75rem;
    align-items: end;
    padding: 1rem;
    margin-bottom: 1.4rem;
}
.search-panel label, .field { display: grid; gap: .36rem; color: #433b47; font-size: .92rem; font-weight: 600; }
.search-control { position: relative; display: block; }
.search-control input { padding-right: 2.8rem; }
.search-clear { position: absolute; top: 50%; right: .45rem; width: 34px; height: 34px; transform: translateY(-50%); color: var(--muted); background: transparent; border: 0; border-radius: var(--radius-sm); font-size: 1.25rem; }
.search-clear:hover { color: var(--yc-plum-900); background: var(--surface-soft); }

input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: .7rem .82rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(80,19,72,.24);
    border-radius: var(--radius-control);
    transition: border-color var(--motion) ease, box-shadow var(--motion) ease;
}
input:hover, select:hover, textarea:hover { border-color: rgba(80,19,72,.42); }
input:focus, select:focus, textarea:focus { border-color: var(--yc-plum-700); box-shadow: 0 0 0 3px rgba(80,19,72,.09); outline: 0; }
textarea { min-height: 132px; resize: none; }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; height: 18px; flex: 0 0 18px; padding: 0; accent-color: var(--yc-plum-900); }
input[type="file"] { min-height: 96px; padding: 1rem; border-style: dashed; background: var(--surface-soft); }
input[type="file"]::file-selector-button { min-height: 40px; margin-right: .8rem; padding: .55rem .8rem; color: #fff; background: var(--yc-plum-900); border: 0; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }

.empty-state { grid-column: 1/-1; display: grid; gap: .4rem; padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); }
.empty-state strong { color: var(--yc-plum-900); font-size: 1.2rem; }
.empty-state p { margin: 0; color: var(--muted); }

.opportunity-hero {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(360px,1.1fr);
    gap: clamp(1.2rem,3vw,2.4rem);
    align-items: center;
    margin-top: 1.25rem;
    padding: clamp(1.35rem,4vw,3rem);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--yc-orange);
    border-radius: var(--radius-media);
    box-shadow: var(--shadow-card);
}
.opportunity-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .95rem; }
.back-link { display: inline-flex; color: var(--muted); font-size: .92rem; font-weight: 700; }
.back-link::before { content: "←"; margin-right: .42rem; color: var(--yc-orange); }
.opportunity-copy > p { max-width: 620px; margin: 0; color: #554d58; font-size: 1.03rem; }
.opportunity-media { min-height: 360px; align-self: stretch; overflow: hidden; background: var(--surface-soft); border-radius: var(--radius-media); }
.opportunity-media img { width: 100%; height: 100%; object-fit: cover; }
.opportunity-page.entity-theme .opportunity-hero { border-top-color: var(--entity-primary); }
.opportunity-page.entity-theme h1, .opportunity-page.entity-theme h2, .opportunity-page.entity-theme .text-link { color: var(--entity-readable); }
.opportunity-page.entity-theme .button.primary { color: var(--entity-on-primary); background: var(--entity-primary); box-shadow: none; }
.opportunity-page.entity-theme .button.primary:hover { background: color-mix(in srgb, var(--entity-primary) 85%, #000); }
.opportunity-page.entity-theme .chip-row span { border-color: color-mix(in srgb, var(--entity-primary) 28%, transparent); }
.opportunity-page.entity-theme .entity-intro-strip { color: var(--entity-text); background: var(--entity-surface); border-color: color-mix(in srgb, var(--entity-primary) 28%, transparent); }

.entity-intro-strip {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin: 1rem auto 0;
    padding: clamp(1.25rem,3vw,2rem);
    color: var(--yc-plum-950);
    background: #fffaf4;
    border: 1px solid rgba(243,145,46,.28);
    border-left: 4px solid var(--yc-orange);
    border-radius: var(--radius-card);
}
.entity-intro-strip > div { max-width: 790px; }
.entity-intro-strip h2 { margin-top: .25rem; font-size: clamp(1.45rem,3vw,2rem); }
.entity-intro-strip p:not(.eyebrow) { margin: .7rem 0 0; color: #554d58; }
.entity-intro-strip .text-link { flex: 0 0 auto; }

.entities-hero { border-top-color: var(--yc-orange); }
.entity-theme {
    --entity-primary: var(--yc-plum-900);
    --entity-accent: var(--yc-orange);
    --entity-readable: var(--entity-primary);
    --entity-on-primary: #fff;
    --entity-surface: var(--canvas);
    --entity-text: var(--ink);
}
.entity-directory { margin-block: clamp(2.4rem,6vw,5rem); }
.entity-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,300px),380px)); gap: 1rem; justify-content: start; }
.entity-card {
    overflow: hidden;
    background: var(--entity-surface);
    border: 1px solid color-mix(in srgb, var(--entity-primary) 18%, transparent);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
}
.entity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.entity-card-link { min-height: 330px; display: flex; align-items: flex-start; flex-direction: column; gap: .7rem; padding: clamp(1.25rem,3vw,1.7rem); color: var(--entity-text); }
.entity-card-link:focus-visible { outline: 3px solid var(--entity-accent); outline-offset: -4px; }
.entity-card-logo { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: .4rem; padding: .6rem; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; }
.entity-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.entity-card-type { color: var(--entity-readable); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.entity-card strong { font-size: clamp(1.45rem,3vw,2rem); line-height: 1.08; }
.entity-card-link > span:not(.entity-card-logo,.entity-card-type,.entity-card-meta) { color: color-mix(in srgb, var(--entity-text) 72%, transparent); }
.entity-card-meta { margin-top: auto; padding-top: 1rem; color: var(--entity-readable); font-size: .82rem; font-weight: 700; border-top: 1px solid color-mix(in srgb, var(--entity-primary) 18%, transparent); }

.entity-page { color: var(--entity-text); }
.entity-profile-hero {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    min-height: 490px;
    display: grid;
    grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr);
    gap: clamp(2rem,6vw,5rem);
    align-items: center;
    margin: clamp(1rem,3vw,2rem) auto 0;
    padding: clamp(1.4rem,5vw,4rem);
    background: var(--entity-surface);
    border-top: 4px solid var(--entity-accent);
    border-radius: var(--radius-media);
}
.entity-profile-copy { max-width: 760px; }
.entity-profile-copy .eyebrow { color: var(--entity-readable); }
.entity-profile-copy h1 { margin-top: .6rem; color: var(--entity-readable); }
.entity-profile-copy > p:not(.eyebrow) { margin: 1rem 0 1.5rem; color: color-mix(in srgb, var(--entity-text) 76%, transparent); font-size: clamp(1rem,2vw,1.15rem); }
.entity-profile-copy .button.primary { color: var(--entity-on-primary); background: var(--entity-primary); box-shadow: none; }
.entity-profile-copy .button.primary:hover { background: color-mix(in srgb, var(--entity-primary) 85%, #000); }
.entity-profile-mark { aspect-ratio: 1; display: grid; place-items: center; padding: clamp(1.2rem,4vw,2.5rem); background: #fff; border: 1px solid color-mix(in srgb, var(--entity-primary) 16%, transparent); border-radius: var(--radius-media); }
.entity-profile-mark img { width: 100%; max-height: 220px; object-fit: contain; }
.carrier-line { width: min(var(--container), calc(100% - (var(--gutter) * 2))); margin: 1rem auto 0; padding: .9rem 1rem; color: var(--muted); font-size: .88rem; text-align: center; }
.carrier-line a { color: var(--entity-readable); font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--entity-primary) 30%, transparent); text-underline-offset: 3px; }
.entity-story { display: grid; grid-template-columns: minmax(240px,.65fr) minmax(0,1fr); gap: clamp(2rem,7vw,6rem); margin-block: clamp(3rem,8vw,6rem); }
.entity-story-copy { max-width: 720px; }
.entity-story-copy p { margin: 0 0 1rem; color: #554d58; font-size: 1.04rem; }
.entity-opportunities { margin-bottom: clamp(3rem,8vw,6rem); }

.content-grid { margin-block: 1.1rem 4rem; }
.opportunity-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(290px,340px); gap: 1rem; align-items: start; }
.content-stack { display: grid; gap: 1rem; }
.content-block { padding: clamp(1.2rem,3vw,1.65rem); }
.content-block p { margin: .75rem 0 0; color: #554d58; }
.content-block ul { margin: .75rem 0 0; padding-left: 1.15rem; }
.content-block li { margin: .42rem 0; color: #554d58; }
.content-block li::marker { color: var(--yc-orange); }
.summary-card { position: sticky; top: 88px; padding: 1.2rem; }
.summary-card h2 { margin-bottom: 1rem; font-size: 1.25rem; }
.summary-card .detail-list { gap: .62rem; }
.summary-card .button { width: 100%; margin-top: 1.1rem; }

.page-hero.application-heading { min-height: 250px; }
.application-shell { width: min(960px, calc(100% - (var(--gutter) * 2))); margin: 1rem auto 4rem; }
.application-progress {
    position: sticky;
    top: 80px;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 1px;
    margin: 0 0 1rem;
    padding: .35rem;
    list-style: none;
    background: var(--yc-plum-950);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-float);
}
.application-progress a { min-height: 54px; display: flex; align-items: center; gap: .45rem; padding: .55rem .65rem; color: rgba(255,255,255,.78); border-radius: var(--radius-sm); }
.application-progress a:hover { color: #fff; background: rgba(255,255,255,.08); }
.application-progress span { color: var(--yc-orange); font-size: .7rem; font-weight: 700; }
.application-progress strong { font-size: .82rem; font-weight: 600; }
.application-form { display: grid; gap: 1rem; }
.application-form fieldset { min-width: 0; display: grid; gap: 1rem; margin: 0; padding: clamp(1.15rem,3vw,1.55rem); scroll-margin-top: 158px; }
.application-form legend { padding: 0 .4rem; color: var(--yc-plum-900); font-size: 1.12rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.field strong, .choice-field legend strong { color: var(--yc-orange); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.field small, .field em, .consent-box em { color: var(--muted); font-size: .84rem; font-style: normal; font-weight: 400; }
.field em, .consent-box em, .error-summary strong { color: var(--danger); }
.application-form .choice-field { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.application-form .choice-field legend { padding: 0; color: #433b47; font-size: .92rem; font-weight: 600; }
[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(169,41,60,.1); }
.checkbox-grid, .choice-stack { display: flex; flex-wrap: wrap; gap: .5rem; }
.checkbox-grid label, .choice-stack label, .consent-box label { min-height: 42px; display: inline-flex; align-items: center; gap: .48rem; padding: .55rem .72rem; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-control); font-weight: 500; }

.consent-box { display: grid; gap: .7rem; padding: 1rem; box-shadow: none; }
.consent-box--required { border-left: 4px solid var(--yc-plum-900); }
.consent-box--optional { border-left: 4px solid var(--yc-orange); background: #fffaf4; }
.consent-heading { display: flex; align-items: baseline; gap: .65rem; }
.consent-heading span { color: var(--yc-plum-700); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.consent-box--optional .consent-heading span { color: #9a570f; }
.consent-heading strong { font-size: 1rem; }
.consent-box label { align-items: flex-start; padding: 0; background: transparent; border: 0; }
.error-summary { display: grid; gap: .25rem; margin-bottom: 1rem; padding: 1rem 1.2rem; border-left: 4px solid var(--danger); }
.error-summary p { margin: 0; color: var(--muted); }
.application-submit { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: rgba(248,246,243,.96); border: 1px solid var(--line); border-radius: var(--radius-card); backdrop-filter: blur(10px); }
.application-submit p { margin: 0; color: var(--muted); font-size: .86rem; }
.application-submit .button { min-width: 220px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.page-hero.legal-page { width: min(var(--reading), calc(100% - (var(--gutter) * 2))); min-height: 0; margin-block: clamp(1.5rem,5vw,4rem); }
.legal-page ul { margin: .5rem 0 0; padding-left: 1.15rem; }
.legal-page li { margin: .32rem 0; }
.confirmation-card { position: relative; overflow: hidden; }
.confirmation-mark { width: 46px; height: 46px; display: inline-grid; place-items: center; color: #fff; background: var(--yc-plum-900); border-radius: 50%; font-size: 1.3rem; font-weight: 800; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem var(--gutter); color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.footer-brand { display: grid; gap: .18rem; }
.footer-brand strong { color: var(--yc-plum-900); font-size: .83rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-brand span { font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1rem; font-size: .82rem; font-weight: 600; }
.footer-links a:hover { color: var(--yc-plum-900); }

@media (max-width: 1023px) {
    .home-hero, .opportunity-hero, .opportunity-layout, .search-panel, .home-ethos, .entity-profile-hero, .entity-story { grid-template-columns: 1fr; }
    .home-hero-copy { order: 1; }
    .home-hero-media { order: 2; min-height: 350px; }
    .home-hero-copy { padding-block: 2.2rem; }
    .home-hero-rail { display: none; }
    .opportunity-media { min-height: 320px; }
    .summary-card { position: static; }
    .entity-profile-mark { max-width: 340px; }
    .home-ethos { gap: 1.5rem; }
}

@media (max-width: 720px) {
    :root { --gutter: 1rem; }
    body { font-size: 15px; }
    .site-header { grid-template-columns: auto 1fr; min-height: 64px; padding-block: .5rem; }
    .brand img { width: 106px; }
    .nav { justify-content: flex-end; gap: .9rem; font-size: .91rem; }
    .header-cta { display: none; }
    .home-hero { width: 100%; min-height: 0; border-bottom-width: 3px; }
    .home-hero::before { width: 4px; }
    .home-hero-media { min-height: 265px; }
    .home-hero-copy { padding: 1.4rem; }
    .home-hero-copy .eyebrow { margin-top: .7rem; }
    .home-hero-copy > p:not(.eyebrow) { font-size: .98rem; }
    .home-hero-note { right: .75rem; bottom: .75rem; max-width: 235px; padding: .72rem .8rem; }
    .home-hero-caption { top: .75rem; right: .9rem; font-size: .66rem; }
    .home-hero-proof { margin-top: .8rem; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .filter-pills { flex-wrap: nowrap; overflow-x: auto; padding: .15rem .15rem .45rem; scrollbar-gutter: stable; }
    .home-ethos-grid { grid-template-columns: 1fr; gap: 1rem; }
    .home-ethos-grid > div { min-height: 0; padding: 0 0 1rem 1rem; border-left: 2px solid var(--line); }
    .page-hero.compact { width: calc(100% - 1rem); margin-top: .75rem; padding: 1.2rem; border-radius: var(--radius-card); }
    .search-panel { padding: 1rem; }
    .filter-actions, .filter-actions .button { width: 100%; }
    .opportunity-hero { width: calc(100% - 1rem); padding: 1rem; border-radius: var(--radius-card); }
    .opportunity-media { min-height: 235px; order: 2; }
    .opportunity-copy { order: 1; }
    .content-grid { width: calc(100% - 2rem); }
    .entity-intro-strip { width: calc(100% - 2rem); align-items: flex-start; flex-direction: column; gap: 1rem; }
    .entity-profile-hero { width: calc(100% - 1rem); min-height: 0; padding: 1.2rem; border-radius: var(--radius-card); }
    .entity-profile-mark { width: 100%; max-width: 260px; }
    .page-hero.application-heading { width: calc(100% - 1rem); }
    .application-shell { width: calc(100% - 2rem); }
    .application-progress { top: 70px; padding: .25rem; }
    .application-progress a { min-height: 50px; justify-content: center; padding: .45rem .25rem; }
    .application-progress a { flex-direction: column; gap: .12rem; }
    .application-progress strong { font-size: .68rem; }
    .application-form fieldset { scroll-margin-top: 142px; }
    .form-grid { grid-template-columns: 1fr; }
    .checkbox-grid, .choice-stack { display: grid; grid-template-columns: 1fr; }
    .checkbox-grid label, .choice-stack label { width: 100%; }
    .application-submit { position: static; align-items: stretch; flex-direction: column; }
    .application-submit .button { width: 100%; min-width: 0; }
    .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
    h1 { font-size: clamp(2rem,9vw,2.25rem); }
    h2 { font-size: 1.55rem; }
    .home-hero-copy h1 { font-size: 2.25rem; }
    .home-hero-proof span { font-size: .64rem; }
    .home-hero-proof strong { font-size: 1.15rem; }
    .home-opportunities { margin-top: 2.8rem; }
    .meta-list div, .detail-list div { grid-template-columns: 66px minmax(0,1fr); }
    .opportunity-card-body, .opportunity-card-footer { padding-inline: 1rem; }
    .opportunity-copy .button { width: 100%; }
    .application-progress strong { display: none; }
    .application-progress span { font-size: .74rem; }
    .application-progress a { min-height: 42px; }
    .consent-heading { align-items: flex-start; flex-direction: column; gap: .18rem; }
}

@media (forced-colors: active) {
    * { scrollbar-color: auto; }
    .button, .pill, .logo-tile, .consent-box { border: 1px solid ButtonText; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    /* Accessibility override: suppress non-essential motion globally. */
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .button:hover, .opportunity-card:hover, .opportunity-card-media:hover img { transform: none; }
}
