:root {
  --ink: #2a2e35;
  --soft: #596270;
  --slate: #44607a;
  --slate-dark: #334a60;
  --t1: #e2eaf2;
  --t2: #e9e6f1;
  --t3: #dfecea;
  --t4: #eaecef;
  --line: #c9d0d8;
  --white: #ffffff;
  --wrap: 1180px;
  --display: "Outfit", system-ui, sans-serif;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--white); color: var(--ink); font: 400 1.08rem/1.6 var(--font); }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--slate); text-underline-offset: 3px; }
a:hover { color: var(--slate-dark); }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0 0 .45em; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; margin-top: 1.4em; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1em; max-width: 60ch; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 20; }
[hidden] { display: none !important; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 28px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 600 1.15rem var(--display); letter-spacing: -0.01em; }
.mark { width: 42px; height: 14px; flex: none; }
.mark .m1 { fill: #9db4c8; } .mark .m2 { fill: #b9b2d3; } .mark .m3 { fill: #a3c9c3; }
.top nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.top nav a { border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 6px 12px; }
.top nav a:hover { background: var(--t4); }
.top nav a[aria-current="page"] { background: var(--t1); font-weight: 700; }

/* Buttons */
.btn { border-radius: 999px; display: inline-block; background: var(--slate); color: var(--white); text-decoration: none; font: 700 1rem/1.2 var(--font); padding: 14px 22px; border: 0; cursor: pointer; }
.btn:hover { background: var(--slate-dark); color: var(--white); }

/* Home */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; padding-top: clamp(16px, 2.4vw, 28px); padding-bottom: clamp(16px, 2.4vw, 28px); min-height: calc(100vh - 122px); }
.stage-text { display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.lead { font: 500 clamp(1.7rem, 2.8vw, 2.3rem)/1.12 var(--display); font-weight: 500; letter-spacing: -0.025em; margin: 0 0 .45em; max-width: 14em; text-wrap: balance; }
.stage .intro p { color: var(--soft); max-width: 54ch; margin: 0; font-size: 1.02rem; }
.switch { margin: clamp(14px, 1.8vw, 20px) 0; border-top: 1px solid var(--line); }
.sw { border-bottom: 1px solid var(--line); }
.sw-name { display: flex; align-items: baseline; gap: 16px; width: 100%; text-align: left; background: none; border: 0; padding: 8px 0; cursor: pointer; color: #a3abb6; font: 600 clamp(1.35rem, 2vw, 1.7rem)/1.1 var(--display); letter-spacing: -0.03em; transition: color .35s, padding .35s; }
.sw-num { font: 500 .9rem var(--font); letter-spacing: 0; color: inherit; min-width: 1.2em; }
.sw.on .sw-name, .sw-name:hover { color: var(--ink); }
.sw.on .sw-name { padding-left: 10px; }
.sw-more > div { padding: 0 0 18px calc(10px + 1.2em + 16px); }
.sw-more p { margin: 0 0 8px; max-width: 48ch; font-size: 1rem; }
.go { font-weight: 700; text-decoration: none; color: var(--slate); }
.go:hover { text-decoration: underline; }
.js .sw-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.js .sw-more > div { overflow: hidden; min-height: 0; padding-bottom: 0; opacity: 0; transition: opacity .35s, padding .45s; }
.js .sw.on .sw-more { grid-template-rows: 1fr; }
.js .sw.on .sw-more > div { opacity: 1; padding-bottom: 18px; }
.partner p { margin: 0; font-size: .98rem; color: var(--soft); max-width: 56ch; }
.partner strong { color: var(--ink); }
.partner a { font-weight: 700; white-space: nowrap; }
.stage-photos { position: relative; border-radius: 0; overflow: hidden; min-height: 320px; background: var(--t4); }
.stage-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07); transition: opacity .9s ease, transform 6s ease-out; }
.stage-photos img.on { opacity: 1; transform: scale(1); }

/* Gentle movement between and within pages */
@view-transition { navigation: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .stage-text > *, .js .page-head > *, .js .part { animation: rise .6s ease both; }
.js .stage-text > :nth-child(3) { animation-delay: .08s; }
.js .stage-text > .switch { animation-delay: .16s; }
.js .stage-text > .partner { animation-delay: .24s; }
.js .part { animation-delay: .12s; }
.js .stage-photos { animation: rise .8s ease both; }
@media (prefers-reduced-motion: reduce) { .js * { animation: none !important; transition: none !important; } }

/* Inner pages */
.page-head { padding-top: clamp(28px, 4vw, 48px); padding-bottom: 8px; }
.page-head h1 { margin-bottom: 0; }
.part { padding-top: clamp(20px, 3vw, 32px); padding-bottom: clamp(36px, 5vw, 64px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.tabs a { border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; padding: 9px 16px; background: var(--t4); }
.tabs a:hover { background: var(--t1); }
.tabs a[aria-selected="true"] { background: var(--slate); color: var(--white); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.side-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.ledger { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 860px; }
.ledger li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 4px 20px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.year { font: 600 1.45rem/1 var(--display); letter-spacing: -0.02em; color: var(--slate); }
.what { max-width: 58ch; }
.thanks-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.thanks-list li { background: var(--t1); padding: 7px 14px; font-weight: 600; font-size: .98rem; }
#fire > p { max-width: 62ch; }
.hiring { display: inline-block; background: var(--t3); font: 600 1.3rem var(--display); padding: 10px 18px; margin: 18px 0 0; }
.growth { margin: 0; }
.growth dt { font: 600 1.25rem var(--display); margin-top: 1em; padding-top: .9em; border-top: 1px solid var(--line); }
.growth dd { margin: 4px 0 0; max-width: 56ch; }
.plain-list { padding: 0; margin: 0 0 1.6em; list-style: none; border-top: 1px solid var(--line); }
.plain-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact p { font-size: 1.25rem; margin-bottom: .5em; }
.prose h2 { margin-top: 1.4em; }
.split h2 + .plain-list + h2 { margin-top: .2em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 16px 0; font-size: .95rem; color: var(--soft); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { color: var(--soft); margin-left: 18px; }
.foot span:first-child a, .foot span + span a:first-child { margin-left: 0; }


@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; min-height: 0; }
  .stage-photos { order: -1; aspect-ratio: 4 / 3; min-height: 0; }
  .top nav a { padding: 6px 8px; }
  .ledger li { grid-template-columns: 4.5rem 1fr; }
}


.mission p { font: 500 clamp(1.25rem, 2.2vw, 1.7rem)/1.35 var(--display); letter-spacing: -0.01em; max-width: 32em; margin-bottom: .8em; }
.mission p:first-child { color: var(--slate); }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.6vw, 18px); margin-top: 22px; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.contact { margin-bottom: 1.4em; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } .strip img:nth-child(3) { display: none; } }

.rot { position: relative; overflow: hidden; }
.rot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.rot img.on { opacity: 1; }
