/* The Union Fund. Plain CSS, no framework.
   Colour roles (Apple HIG: one colour, one meaning):
     navy   = structure: dark sections, headings, type
     green  = the Union Fund logo green, exactly: actions and emphasis only
     mint   = soft ground for calm sections
     orange = the Dune Buggy Financial mark colour, used only beside that logo
   Type: Zilla Slab for headings, Rethink Sans for text. */

:root {
  --ink: #0e1b2c;
  --ink-2: #1c2839;
  --green: #5bb17a;
  --mint: #e9f5ee;
  --mint-2: #d3ebdd;
  --soft: #f4f7f5;
  --orange: #f08a1c;
  --white: #ffffff;
  --muted: #4a5868;            /* 7:1 on white, 6.4:1 on mint */
  --muted-inv: #b9c3ce;        /* 8.5:1 on navy */
  --line: rgba(14, 27, 44, .14);
  --line-inv: rgba(255, 255, 255, .2);
  --radius: 12px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --spring: cubic-bezier(.34, 1.45, .55, 1);
  --font-display: "Zilla Slab", Georgia, serif;
  --font-text: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1200px;
  --section: clamp(80px, 10vw, 144px);
  --cut: clamp(28px, 4vw, 64px);   /* depth of the diagonal on the navy band */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 500; }
h2 { font-size: clamp(2.25rem, 4.2vw, 3.75rem); line-height: 1.05; letter-spacing: -.02em; }
h3 { font-size: 1.625rem; line-height: 1.18; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.on-ink :focus-visible { outline-color: var(--white); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; position: relative; }
.section { position: relative; padding-block: var(--section); }
.section--mint { background: var(--mint); }
.section--soft { background: var(--soft); }
.on-ink { background: var(--ink); color: var(--white); }
.lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.55; max-width: 58ch; }
.muted { color: var(--muted); }
.on-ink .muted { color: var(--muted-inv); }
.small { font-size: .9375rem; }
.head { display: grid; gap: 20px; max-width: 800px; margin-bottom: clamp(44px, 6vw, 80px); position: relative; z-index: 1; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 12px 18px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
.hl { color: var(--green); }              /* green emphasis, used on navy only */

/* decorations: static, behind content, never carrying information */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco svg { display: block; width: 100%; height: 100%; overflow: visible; }
.arcs path { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; opacity: .4; }
.dots {
  background-image: radial-gradient(circle, currentColor 1.6px, transparent 1.8px);
  background-size: 22px 22px; opacity: .22;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 72%); mask-image: linear-gradient(135deg, #000 0%, transparent 72%);
}
.circle { border-radius: 50%; background: var(--mint); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 8px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: transform 220ms var(--spring), background-color 160ms var(--ease), border-color 160ms var(--ease), box-shadow 220ms var(--ease);
}
.btn:active { transform: scale(.97); transition-duration: 90ms; }
.btn svg { transition: transform 220ms var(--spring); }
.btn--primary { background: var(--green); color: var(--ink); }
/* the contact action: the plain green button (orange accent removed for now) */
.btn--cta { background: var(--green); color: var(--ink); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #6cc08a; }
  .btn--cta:hover { background: #6cc08a; }
  .btn--ghost:hover { background: rgba(255, 255, 255, .1); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* header: both logos on the left, everything else together on the right */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: box-shadow 240ms var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(14, 27, 44, .45); }
.bar { display: flex; align-items: center; min-height: 84px; gap: 24px; }
.bar__logos { display: flex; align-items: center; gap: 18px; flex: none; text-decoration: none; }
.bar__logos .uf { height: 42px; width: auto; }
.bar__logos .dbf { height: 62px; width: auto; }
.bar__logos .sep { width: 1px; height: 40px; background: var(--line); }
.bar__right { margin-left: auto; }
.bar__inner { display: flex; align-items: center; gap: 36px; }
.bar__nav { display: flex; align-items: center; gap: 32px; }
.bar__nav a, .bar__signin {
  text-decoration: none; font-weight: 500; font-size: 1rem; padding-block: 8px;
  background: linear-gradient(var(--green), var(--green)) 0 100% / 0 3px no-repeat; transition: background-size 260ms var(--ease);
}
.bar__nav a:hover, .bar__signin:hover, .bar__nav a[aria-current="true"] { background-size: 100% 3px; }
.bar__inner .btn { min-height: 48px; padding-inline: 26px; }
.bar__toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; cursor: pointer; margin-left: auto; color: var(--ink); }
.bar__toggle svg path { transition: transform 320ms var(--ease); transform-box: fill-box; transform-origin: center; }
.site-header.is-open .bar__toggle .l1 { transform: translateY(4px) rotate(45deg); }
.site-header.is-open .bar__toggle .l2 { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) {
  .bar { flex-wrap: wrap; padding-block: 10px; gap: 0 12px; min-height: 76px; }
  .bar__logos .uf { height: 36px; } .bar__logos .dbf { height: 54px; } .bar__logos { gap: 14px; }
  .bar__toggle { display: inline-grid; place-items: center; }
  /* the menu opens by growing from the header, then its items settle in one after another */
  .bar__right { display: grid; grid-template-rows: 0fr; width: 100%; order: 3; margin: 0; visibility: hidden;
    transition: grid-template-rows 380ms var(--ease), visibility 0s linear 380ms; }
  .site-header.is-open .bar__right { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 380ms var(--ease), visibility 0s; }
  .bar__inner { min-height: 0; overflow: hidden; flex-direction: column; align-items: stretch; gap: 0; }
  .bar__nav { flex-direction: column; align-items: stretch; gap: 0; }
  .bar__nav a, .bar__signin { padding: 16px 0; border-top: 1px solid var(--line); font-size: 1.125rem; background: none; }
  .bar__inner .btn { margin: 12px 0 16px; }
  .bar__inner > *, .bar__nav a { opacity: 0; transform: translateY(-10px); transition: opacity 240ms var(--ease), transform 320ms var(--ease); }
  .site-header.is-open .bar__inner > *, .site-header.is-open .bar__nav a { opacity: 1; transform: none; }
  .site-header.is-open .bar__nav a:nth-child(1) { transition-delay: 70ms; }
  .site-header.is-open .bar__nav a:nth-child(2) { transition-delay: 120ms; }
  .site-header.is-open .bar__nav a:nth-child(3) { transition-delay: 170ms; }
  .site-header.is-open .bar__signin { transition-delay: 220ms; }
  .site-header.is-open .bar__inner .btn { transition-delay: 270ms; }
}

/* hero: words on a solid navy panel beside the photograph, never on it */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--ink); color: var(--white); min-height: clamp(560px, 82vh, 760px); overflow: hidden; }
.hero__text {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding: clamp(56px, 7vw, 104px) clamp(24px, 5vw, 80px) clamp(56px, 7vw, 104px) max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.hero__text h1 { max-width: 12ch; }
.hero__text .lead { color: #dfe6ee; max-width: 46ch; }
.hero .deco--arcs { left: -90px; bottom: -150px; width: 640px; height: 640px; }
.tile, .foot a.tile { display: inline-flex; align-items: center; background: var(--white); border-radius: 12px; padding: 10px 18px; transition: transform 260ms var(--spring); }
.tile img { height: 60px; width: auto; }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-2px); } }
.hero__photo { position: relative; min-height: 340px; overflow: hidden; background: var(--ink-2); }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { order: -1; aspect-ratio: 16 / 10; min-height: 0; }
  .hero__text { padding: 44px var(--gutter) 60px; }
  .hero .deco--arcs { width: 420px; height: 420px; bottom: -120px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise 760ms var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: 90ms; }
  .hero__text > :nth-child(3) { animation-delay: 180ms; }
  .hero__text > :nth-child(4) { animation-delay: 270ms; }
  .hero__photo img { animation: settle 1800ms var(--ease) both; }
  .arcs path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1900ms var(--ease) forwards; }
  .arcs path:nth-child(2) { animation-delay: 120ms; } .arcs path:nth-child(3) { animation-delay: 240ms; }
  .arcs path:nth-child(4) { animation-delay: 360ms; } .arcs path:nth-child(5) { animation-delay: 480ms; }
}

/* scroll reveal: visible by default, only hidden when script runs and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease) var(--d, 0ms), transform 700ms var(--ease) var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .arcs--scroll path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: none; transition: stroke-dashoffset 1800ms var(--ease); }
  .js .arcs--scroll.in path { stroke-dashoffset: 0; }
}

/* the thesis: a check-size scale */
.band { z-index: 1; overflow: hidden; }
.fund .deco--arcs { right: -160px; top: -120px; left: auto; bottom: auto; width: 560px; height: 560px; transform: scale(-1, -1); }
.scale { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; align-items: end; }
.scale__label { display: grid; gap: 6px; }
.scale__label--them { text-align: right; justify-items: end; }
.scale__label strong { font: 600 clamp(1.375rem, 2.4vw, 2rem)/1.15 var(--font-display); }
.scale__label span { font-size: 1.125rem; color: var(--muted-inv); }
.scale__label--us strong { color: var(--green); }
.scale__label--us span { color: var(--white); font-weight: 600; }
.scale__track { grid-column: 1 / -1; position: relative; height: 32px; }
.scale__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(255,255,255,.3); }
.scale__fill { position: absolute; left: 16px; right: 16px; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--green); transform-origin: left center; }
.scale__pin { position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; }
.scale__pin--us { left: 0; background: var(--green); box-shadow: 0 0 0 8px rgba(91,177,122,.28); }
.scale__pin--them { right: 0; background: var(--ink); border: 4px solid var(--white); }
.scale__between { grid-column: 1 / -1; text-align: center; max-width: 30ch; margin-inline: auto; font: 500 clamp(1.5rem, 2.8vw, 2.25rem)/1.25 var(--font-display); text-wrap: balance; }
.scale__note { grid-column: 1 / -1; text-align: center; color: var(--muted-inv); font-size: 1.0625rem; margin-top: -8px; }
@media (prefers-reduced-motion: no-preference) {
  .js .scale.reveal .scale__fill { transform: scaleX(0); transition: transform 1300ms var(--ease) 350ms; }
  .js .scale.reveal.in .scale__fill { transform: none; }
}
@media (max-width: 640px) { .scale { gap: 22px 20px; } .scale__label span { font-size: 1rem; } .scale__pin { width: 26px; height: 26px; margin-top: -13px; } .scale__fill { left: 13px; right: 13px; } }

/* the deal process */
.process { overflow: hidden; }
.process .deco--arcs { right: -120px; top: -60px; width: 520px; height: 520px; transform: scale(-1, -1); }
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; list-style: none; margin: 0; padding: 0; }
.step { display: grid; gap: 14px; align-content: start; }
.step__media { position: relative; margin: 0 14px 14px 0; }
.step__media::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--radius); background: var(--mint-2); }
.step__photo { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--ink-2); }
.step__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.step__n { position: absolute; left: 18px; bottom: -4px; z-index: 2; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--ink); font: 600 1.5rem/1 var(--font-display); box-shadow: 0 0 0 5px var(--mint); transform: translateY(50%); }
.step h3 { margin-top: 30px; }
@media (hover: hover) and (pointer: fine) { .step:hover .step__photo img { transform: scale(1.04); } }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 48px; } .step__photo { aspect-ratio: 16 / 10; } }

/* investments: the proof, on white, with the facts laid out as data */
.deals { position: relative; z-index: 1; display: grid; gap: clamp(64px, 8vw, 112px); }
.deal { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.deal:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.deal:nth-child(even) .deal__media { order: 2; }
.deal__media { position: relative; margin: 0 16px 16px 0; }
.deal__media::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border-radius: var(--radius); background: var(--mint-2); }
.deal__photo { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: var(--ink-2); }
.deal__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.deal__text { display: grid; gap: 22px; align-content: center; }
.deal h3 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; padding: 20px 0; border-block: 1px solid var(--line); }
.facts dt { font-size: .9375rem; color: var(--muted); font-weight: 500; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.1875rem; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .deal:hover .deal__photo img { transform: scale(1.04); } }
@media (max-width: 900px) { .deal, .deal:nth-child(even) { grid-template-columns: 1fr; } .deal:nth-child(even) .deal__media { order: 0; } }

/* one grade for every photograph: slightly less colour, a navy tint, a faint green lift */
.hero__photo img, .step__photo img, .deal__photo img, .photo img, .panel__photo img { filter: saturate(.82) contrast(1.03); }
.hero__photo::before, .step__photo::before, .deal__photo::before, .photo::before, .panel__photo::before,
.hero__photo::after, .step__photo::after, .deal__photo::after, .photo::after, .panel__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__photo::before, .step__photo::before, .deal__photo::before, .photo::before, .panel__photo::before { background: var(--ink); opacity: .16; mix-blend-mode: multiply; }
.hero__photo::after, .step__photo::after, .deal__photo::after, .photo::after, .panel__photo::after { background: var(--green); opacity: .12; mix-blend-mode: soft-light; }

/* areas we invest in: all six fit in one screen, nothing reacts to the pointer */
.areas { overflow: hidden; padding-block: clamp(48px, 5vw, 72px); }
.areas__wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.areas .photo--tall { aspect-ratio: 10 / 11; }
.areas__main { display: grid; gap: 28px; }
.areas__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; counter-reset: area; }
.areas__grid li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-content: start; padding: 20px 0; border-top: 1px solid var(--line); }
.areas__grid li::before { counter-increment: area; content: counter(area); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); font: 600 .9375rem/1 var(--font-display); }
.areas__grid strong { font: 600 1.25rem/1.25 var(--font-display); }
.areas__grid span { color: var(--muted); font-size: 1rem; line-height: 1.5; margin-top: 4px; }
.matted { position: relative; margin: 0 0 18px 18px; }
.matted::before { content: ""; position: absolute; inset: 18px 18px -18px -18px; border-radius: var(--radius); background: var(--mint-2); }
.photo { position: relative; z-index: 1; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .areas__wrap { grid-template-columns: 1fr; }
  .areas__grid { grid-template-columns: 1fr; }
  .photo--tall { aspect-ratio: 16 / 10; }
}

/* founders: what you get, and the questions people ask */
.founders__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.founders .head { margin-bottom: 36px; }
.gets { list-style: none; margin: 0 0 36px; padding: 0; }
.gets li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); }
.gets strong { font: 600 1.375rem/1.25 var(--font-display); }
.gets span { color: var(--muted); }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 44px); }
.faq h3 { font-size: 1.75rem; margin-bottom: 8px; }
.faq dl { margin: 0; }
.faq dt { font: 600 1.1875rem/1.35 var(--font-text); padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.faq dt:first-of-type { border-top: 0; margin-top: 8px; padding-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 900px) { .founders__grid { grid-template-columns: 1fr; } }

/* team: open columns on white, rules instead of boxes */
.team__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; margin-bottom: clamp(48px, 6vw, 88px); }
.team__top .head { margin-bottom: 0; }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.person { display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 3px solid var(--ink); }
.person--lead { border-top-color: var(--green); }
.person h3 { font-size: 1.625rem; }
.person__role { font-weight: 600; font-size: .9375rem; line-height: 1.4; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .team__top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

/* contact: a navy panel holding the form, photograph on its right edge */
.contact { overflow: hidden; }
.panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border-radius: 22px; overflow: hidden; background: var(--ink); color: var(--white); }
.panel__form { position: relative; z-index: 1; padding: clamp(32px, 5vw, 64px); display: grid; gap: 28px; align-content: start; }
.panel .deco--arcs { left: -150px; bottom: -190px; width: 520px; height: 520px; }
.panel__photo { position: relative; min-height: 360px; }
.panel__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.panel h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.form { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; font-size: .9375rem; font-weight: 500; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border: 2px solid transparent; border-radius: 8px;
  background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--font-text);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field ::placeholder { color: #66727f; opacity: 1; }
.field select:invalid { color: #66727f; }
.field select option { color: var(--ink); }
.field__label { font-size: .9375rem; font-weight: 500; }
.upload { position: relative; }
.upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload__box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px dashed rgba(255,255,255,.38); border-radius: 8px; color: var(--white); cursor: pointer; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.upload__box[hidden] { display: none; }
.upload__box svg { flex: none; color: var(--green); }
.upload__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.upload__text strong { font-weight: 600; font-size: 1rem; }
.upload__text span { color: var(--muted-inv); font-size: .9375rem; font-weight: 400; }
.upload__btn { flex: none; padding: 9px 16px; border-radius: 6px; background: rgba(255,255,255,.14); font-size: .9375rem; font-weight: 600; }
.upload__input:focus-visible + .upload__box { outline: 3px solid var(--white); outline-offset: 3px; }
.upload.is-over .upload__box { border-color: var(--green); background: rgba(91,177,122,.12); }
.upload.is-invalid .upload__box { border-color: #ff8a7a; border-style: solid; }
@media (hover: hover) and (pointer: fine) { .upload__box:hover { border-color: var(--green); background: rgba(255,255,255,.05); } }
.upload__picked { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.upload__picked[hidden] { display: none; }
.upload__picked svg { flex: none; color: var(--green); }
.upload__name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__remove { flex: none; background: none; border: 0; padding: 4px 2px; color: var(--white); font: 600 .9375rem/1 var(--font-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.check { display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--green); cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(91,177,122,.35); }
.field [aria-invalid="true"] { border-color: #ff8a7a; box-shadow: 0 0 0 3px rgba(255, 138, 122, .35); }
.field__error { display: flex; align-items: center; gap: 8px; color: #ffb4a8; font-size: .9375rem; font-weight: 500; line-height: 1.3; }
.field__error[hidden] { display: none; }
.field__error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #ff8a7a; color: var(--ink); font: 700 .75rem/1 var(--font-text); }
.notice { grid-column: 1 / -1; color: var(--muted-inv); font-size: .9375rem; line-height: 1.5; }
.notice a { color: var(--white); text-underline-offset: 3px; }
.form__status { grid-column: 1 / -1; min-height: 1.5em; font-weight: 500; }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; } .panel__photo { order: -1; min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--ink); color: var(--white); padding-block: clamp(64px, 8vw, 104px) 32px; position: relative; overflow: hidden; }
.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; position: relative; z-index: 1; }
.foot > div:first-child { display: grid; gap: 20px; justify-items: start; align-content: start; }
.foot .logo { height: 60px; width: auto; }
.foot h3 { font: 600 .9375rem/1.3 var(--font-text); color: var(--muted-inv); margin-bottom: 14px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot a { text-decoration: none; background: linear-gradient(var(--green), var(--green)) 0 100% / 0 2px no-repeat; transition: background-size 240ms var(--ease); }
.foot a:hover { background-size: 100% 2px; }
.legal { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-inv); font-size: .9375rem; color: var(--muted-inv); }
.legal a { color: var(--white); }
.legal details summary { cursor: pointer; }
.legal details p { margin-top: 8px; max-width: 60ch; }
.site-footer .deco--arcs { right: -180px; top: -220px; width: 560px; height: 560px; transform: scale(-1, -1); }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* sign-in */
.signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 84px); }
.signin__art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 80px) clamp(48px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.signin__art .deco--arcs { left: -90px; bottom: -150px; width: 620px; height: 620px; }
.signin__art > :not(.deco) { position: relative; z-index: 1; }
.signin__art h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); max-width: 12ch; }
.signin__art .lead { color: #dfe6ee; max-width: 38ch; }
.signin__panel { display: grid; align-content: center; justify-items: start; padding: clamp(40px, 6vw, 88px) max(var(--gutter), calc((100vw - var(--max)) / 2)) clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px); }
.auth { display: grid; gap: 22px; width: min(100%, 440px); }
.auth[hidden] { display: none; }
.auth h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); }
.auth .field input { border: 2px solid rgba(14, 27, 44, .35); }
.auth .field input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14, 27, 44, .15); }
.auth form { display: grid; gap: 18px; }
.btn--google { background: var(--white); color: var(--ink); border-color: rgba(14, 27, 44, .35); width: 100%; }
@media (hover: hover) and (pointer: fine) { .btn--google:hover { background: var(--soft); } }
.btn--wide { width: 100%; }
.or { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; color: var(--muted); font-size: .9375rem; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); }
.auth__msg { min-height: 1.5em; font-weight: 500; }
.auth__msg[data-kind="error"] { color: #b42318; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font: 500 .9375rem/1.4 var(--font-text); cursor: pointer; justify-self: start; }
.auth__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.auth__user { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 900px) { .signin { grid-template-columns: 1fr; min-height: 0; } .signin__art { padding: 48px var(--gutter) 56px; } .signin__panel { padding: 44px var(--gutter) 64px; } }

/* inner pages */
.page { padding-block: clamp(64px, 9vw, 120px); min-height: 60vh; }
.page .lead, .page p + p { margin-top: 16px; }
.page article { max-width: 66ch; display: grid; gap: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* long-form pages (privacy, terms, important information) */
.doc h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.625rem; margin-top: 24px; }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.doc p, .doc li { max-width: 66ch; }
.doc a { text-underline-offset: 3px; }

/* hidden field that only bots fill in */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
