@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/SourceSerif4-latin-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("./fonts/InstrumentSans-Latin-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #101318;
  --raised: #1b2129;
  --surface: #232b35;
  --ink: #f3f0e9;
  --secondary: #c0c6d0;
  --muted: #a0a9b6;
  --line: #39424f;
  --line-soft: #2a323e;
  --brand: #c98275;
  --knowledge: #82a5d8;
  --code: #a58bcf;
  --decision: #c28ba5;
  --execution: #8d9db4;
  --check: #72b2a7;
  --gold: #c69a46;
  --gold-light: #f1d78f;
  --gold-shadow: #a27836;
  --font-ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: "Source Serif 4", Georgia, serif;
  font-family: var(--font-ui);
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: linear-gradient(180deg, var(--canvas) 0%, #0b0f14 100%) no-repeat; color: var(--ink); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 3px; }
::selection { color: var(--ink); background: var(--line); }
p, h1, h2, h3 { margin: 0; }
p { text-wrap: pretty; }
img { max-width: 100%; }
.page { width: min(100% - 5rem, 76rem); margin-inline: auto; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.brand { flex: 0 0 auto; display: inline-block; line-height: 0; }
.brand img { display: block; width: auto; height: 1.4rem; opacity: .94; filter: invert(1); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; font-size: .8125rem; }
.site-nav a { text-decoration: none; }
.nav-contact { color: var(--secondary); }
.nav-contact:hover { color: var(--ink); }
.primary-link { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 2.5rem; padding-block: .6875rem; color: var(--ink); line-height: 1.4; }
.primary-link:hover { color: var(--muted); }
.skip-link { position: fixed; z-index: 2; top: 1rem; left: 1rem; padding: .75rem 1rem; background: var(--raised); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
main:focus { outline: none; }

h1 { font-family: var(--font-brand); font-size: clamp(2.5rem, 4.8vw, 4.375rem); font-weight: 400; line-height: 1.07; letter-spacing: -.035em; overflow-wrap: anywhere; }
.home-page { min-height: 100svh; min-height: 100dvh; display: flex; flex-direction: column; isolation: isolate; }
.home-page .site-header { position: relative; z-index: 2; }
.home-page .brand, .home-page .site-nav { filter: drop-shadow(0 0 6px var(--canvas)); }
.motion-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 0; padding-block: 3rem 8rem; }
.motion-title { width: calc(100% - 3rem); max-width: 100%; font-size: clamp(2rem, 3.6vw, 3.75rem); font-weight: 400; line-height: 1.18; letter-spacing: -.035em; text-align: center; text-wrap: balance; }
.hero-intro { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; gap: 1rem; padding: 3rem 1.5rem; text-align: center; pointer-events: none; }
.hero-intro::before { content: ""; position: absolute; z-index: -1; inset: -3rem max(0px, calc((100% - 66rem) / 2)); background: radial-gradient(ellipse, rgb(16 19 24 / .97) 18%, rgb(16 19 24 / .8) 40%, rgb(16 19 24 / 0) 72%); }
.hero-intro .motion-title { width: 100%; }
.hero-description { max-width: 42ch; font-size: .875rem; line-height: 1.6; color: var(--secondary); text-wrap: balance; }
@font-face { font-family: "Geist Mono"; src: url("./fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
.ascii-ocean { position: fixed; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; font-family: "Geist Mono", ui-monospace, Menlo, monospace; }
.home-page .motion-control { position: fixed; z-index: 2; background: rgb(16 19 24 / .85); }
.ocean-interaction { position: fixed; z-index: 2; bottom: 1.5rem; left: 2rem; display: grid; gap: .375rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.motion-control { position: absolute; right: 2rem; bottom: 1.5rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; cursor: pointer; color: var(--muted); border-radius: 50%; }
.motion-control:hover { background: var(--surface); color: var(--ink); }
.motion-control svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.4; }
.motion-control .play-icon { display: none; }
.motion-toggle:checked + .motion-control .play-icon { display: block; }
.motion-toggle:checked + .motion-control .pause-icon { display: none; }
.motion-toggle:focus-visible + .motion-control { outline: 2px solid var(--ink); outline-offset: 2px; }
.home-page .site-footer { margin-top: 0; }

.positions-main { padding-top: 4rem; }
.positions-main h1 { max-width: none; font-size: clamp(2rem, 3.5vw, 3rem); }
.positions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 3rem; }
h2 { font-family: var(--font-brand); font-size: 1.25rem; line-height: 1.5; font-weight: 500; letter-spacing: -.015em; }
.positions-panel { min-width: 0; }
.roles { padding-inline: 0; }
.role { --role-color: var(--brand); }
.role summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr) 1rem; align-items: baseline; gap: 1.75rem; padding-block: 1.25rem; cursor: pointer; list-style: none; }
.role summary::-webkit-details-marker { display: none; }
.role summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 3px; }
.role summary:hover h2 { color: var(--role-color); }
.role-toggle { width: .625rem; height: .625rem; position: relative; align-self: center; color: var(--muted); }
.role-toggle::before, .role-toggle::after { content: ""; position: absolute; background: currentColor; }
.role-toggle::before { width: 100%; height: 1px; left: 0; top: 50%; }
.role-toggle::after { width: 1px; height: 100%; top: 0; left: 50%; }
.role details[open] .role-toggle::after { display: none; }
.role-details { max-width: 40rem; padding: 0 2.75rem 1.5rem 1.5rem; }
.role-details p + p { margin-top: .75rem; }
.role-0 { --role-color: var(--code); }
.role-2 { --role-color: var(--execution); }
.role-3 { --role-color: var(--decision); }
.role-4 { --role-color: var(--check); }
.role-5 { --role-color: var(--knowledge); }
.role h2 { font-family: var(--font-ui); letter-spacing: normal; display: flex; align-items: baseline; gap: .75rem; font-size: .875rem; line-height: 1.65; font-weight: 500; }
.role-mark { display: inline-block; width: .75rem; height: .4375rem; flex: 0 0 auto; background: var(--role-color); border-radius: 1px; transform: translateY(-.125rem); }
.role p, .role-description { font-size: .8125rem; line-height: 1.7; color: var(--secondary); }
.application { padding: 1.25rem 0 1.5rem; font-size: .8125rem; line-height: 1.75; }
.application p + p { margin-top: .375rem; }
.terms { margin-top: .625rem; color: var(--muted); }
.privacy-link { display: inline-block; margin-top: .625rem; }
.placeholder { color: var(--muted); overflow-wrap: anywhere; }
.site-footer { margin-top: 3.5rem; padding-block: 1.5rem 2.5rem; color: var(--muted); font-size: .75rem; line-height: 1.8; }

.privacy-main { padding-top: 4rem; }
.privacy-main h1 { font-size: clamp(2.5rem, 4vw, 3.25rem); }
.privacy-copy { margin-top: 2rem; max-width: 46rem; padding: 2rem; border-radius: .75rem; background: var(--raised); }
.privacy-copy p { font-size: .9375rem; line-height: 1.8; }
.privacy-copy p + p { margin-top: 1.25rem; }
.back { display: inline-block; margin-top: 2rem; font-size: .875rem; }

@media (max-width: 1000px) {
  .positions { grid-template-columns: minmax(0, 1fr) minmax(0, 3.5fr); gap: 2rem; }
  .role summary { grid-template-columns: minmax(0, 1fr) 1rem; gap: .375rem 1rem; }
  .role-description { grid-column: 1; padding-left: 1.5rem; }
  .role-toggle { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 700px) {
  .page { width: calc(100% - 3rem); }
  .site-header { padding-block: 1.25rem; gap: 1rem; }
  .brand img { width: 3.5rem; }
  .site-nav { gap: 1rem; font-size: .75rem; }
  .primary-link { padding-block: .625rem; gap: .5rem; }
  h1 { max-width: 12ch; font-size: clamp(2.75rem, 8.5vw, 3.75rem); line-height: 1.08; letter-spacing: -.03em; }
  .positions { grid-template-columns: 1fr; gap: 1.25rem; }
  .positions-main { padding-top: 3rem; }
  .roles { padding-inline: 0; }
  .role summary { padding-block: 1.125rem; }
  .role h2 { font-family: var(--font-ui); letter-spacing: normal; font-size: .875rem; }
  .role p { font-size: .8125rem; }
  .application { padding: 1.25rem 0; }
  .site-footer { margin-top: 2.5rem; padding-bottom: 2rem; }
  .privacy-main { padding-top: 3rem; }
  .privacy-copy { padding: 1.25rem; }
}

@media (max-width: 380px) {
  .site-nav { gap: .625rem; }
  .primary-link { padding-inline: 0; }
}

@media print {
  .page { width: 100%; }
  .site-header, .privacy-main { padding-top: 1.5rem; }
  .skip-link { display: none; }
  .role { break-inside: avoid; }
  a { color: inherit; }
}

@media (max-width: 700px) {
  .motion-stage { width: 100%; padding-block: 2rem 6rem; }
  .motion-title { width: calc(100% - 1.5rem); max-width: 100%; font-size: clamp(2rem, 7.5vw, 3rem); line-height: 1.2; }
  .motion-control { right: .75rem; bottom: 1rem; }
  .ocean-interaction { left: 1rem; bottom: 1rem; }
}


.contact-page, .positions-page { min-height: max(100svh, 53rem); display: flex; flex-direction: column; }
.positions-main { flex: 1; display: flex; flex-direction: column; }
.contact-main { flex: 1; display: flex; flex-direction: column; padding-top: 4rem; }
.contact-main > .ribbon-stage, .positions-main > .ribbon-stage { margin-top: auto; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 3rem; }
.contact-main h1 { max-width: none; font-size: clamp(2rem, 3.5vw, 3rem); }
.contact-details { min-width: 0; }
.contact-person { --role-color: var(--brand); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr) 1rem; align-items: baseline; gap: 1.75rem; padding-block: 1.25rem; }
.contact-person:nth-child(2) { --role-color: var(--knowledge); }
.contact-person:nth-child(3) { --role-color: var(--code); }
.contact-person:nth-child(4) { --role-color: var(--check); }
.contact-person:nth-child(5) { --role-color: var(--decision); }
.contact-profile { min-width: 0; }
.contact-role { margin-top: .375rem; padding-left: 1.5rem; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.contact-upcoming h2 { color: var(--secondary); }
.contact-person h2 { display: flex; align-items: baseline; gap: .75rem; font-family: var(--font-ui); font-size: .875rem; line-height: 1.65; font-weight: 400; letter-spacing: normal; }
.contact-address { font-family: var(--font-ui); font-size: .875rem; line-height: 1.65; overflow-wrap: anywhere; }
.contact-address a { color: var(--ink); text-decoration: none; }
.contact-address a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.contact-address .placeholder { font-size: .8125rem; }
.contact-careers { display: inline-block; margin-top: 2rem; font-size: .8125rem; color: var(--secondary); }
.contact-careers span { margin-left: .5rem; }
@media (min-width: 701px) and (max-width: 1000px) {
  .contact-page, .positions-page { min-height: max(100svh, 60rem); }
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 3.5fr); gap: 2rem; }
  .contact-person { grid-template-columns: 1fr; gap: .375rem; }
}
.ribbon-stage { position: relative; padding-block: 5rem 5rem; }
.reasoning-ribbon { width: 100%; overflow: hidden; }
/* The artwork motif in reasoningRibbon spans 1024 SVG units. */
.ribbon-track { display: block; width: calc(100% + 1024px); max-width: none; height: 32px; animation: ribbon-flow 38s linear infinite; }
.ribbon-track text { font-family: var(--font-ui); font-size: 12px; }
.ribbon-canvas { width: calc(100% + var(--ribbon-span, 1024px)); height: var(--ribbon-height, 32px); font-family: "Geist Mono", ui-monospace, monospace; animation-name: tile-ribbon-flow; }
.motion-toggle:checked ~ .reasoning-ribbon .ribbon-track { animation-play-state: paused; }
@keyframes ribbon-flow { from { transform: translateX(0); } to { transform: translateX(-1024px); } }
@keyframes tile-ribbon-flow { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--ribbon-span, 1024px))); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; }
  .ribbon-stage .motion-control { display: none; }
}
@media (max-width: 700px) {
  .contact-page, .positions-page { min-height: max(100svh, 60rem); }
  .contact-main { padding-top: 3rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .contact-person { grid-template-columns: 1fr; gap: .375rem; padding-block: 1.125rem; }
  .contact-careers { margin-top: 1.25rem; }
  .ribbon-stage { padding-block: 3.5rem 5rem; }
}

@media (max-width: 380px) {
  .contact-page, .positions-page { min-height: max(100svh, 62rem); }
}

.role-6 { --role-color: var(--brand); }

@media (max-width: 1000px) {
  .contact-address { padding-left: 1.5rem; }
}

.role .role-location { margin-top: .25rem; padding-left: 1.5rem; font-size: .75rem; line-height: 1.5; color: var(--muted); }

/* Application view: a single screen, with two steps on compact displays. */
.role-apply { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 2.75rem; margin-top: 1.25rem; padding: .75rem 1.125rem; border-radius: 999px; background: var(--ink); color: var(--canvas); font-size: .8125rem; text-decoration: none; }
.role-apply:hover { background: var(--secondary); }
.role-apply span { font-size: 1rem; }
.apply-page { height: 100svh; display: flex; flex-direction: column; }
.apply-page .site-header { flex: 0 0 auto; }
.apply-main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: clamp(.5rem, 2vh, 1.5rem); }
.apply-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.apply-intro h1 { margin-top: 2rem; font-size: clamp(2.5rem, 4.4vw, 4rem); max-width: 9ch; }
.apply-back { font-size: .8125rem; text-decoration: none; color: var(--secondary); }
.apply-back:hover { text-decoration: underline; }
.apply-lead { margin-top: 1.25rem; font-size: .9375rem; line-height: 1.7; }
.apply-note { max-width: 28ch; margin-top: 1.5rem; font-size: .8125rem; line-height: 1.8; color: var(--secondary); }
.application-form { --field-background: var(--raised); min-width: 0; }
.application-form fieldset { border: 0; min-width: 0; padding: 0; margin: 1.25rem 0 0; }
.application-form legend { padding: 0; margin-bottom: .75rem; font-size: .8125rem; font-weight: 500; display: flex; align-items: center; gap: .625rem; }
.form-mark { width: .625rem; height: .625rem; border-radius: 1px; background: var(--code); }
.work-fields .form-mark { background: var(--knowledge); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { min-width: 0; }
.form-field + .form-field { margin-top: .875rem; }
.form-pair .form-field { margin-top: 0; }
.application-form label { display: block; margin-bottom: .375rem; font-size: .8125rem; line-height: 1.5; }
.application-form label span { margin-left: .5rem; font-size: .75rem; color: var(--muted); }
.application-form input, .application-form select, .application-form textarea { width: 100%; min-height: 2.75rem; border: 0; border-radius: .375rem; background: var(--field-background); padding: .6875rem .875rem; font: inherit; font-size: .875rem; color: var(--ink); caret-color: var(--ink); color-scheme: dark; outline: none; }
.application-form select { padding-right: 2rem; cursor: pointer; }
.application-form textarea { display: block; resize: none; line-height: 1.6; height: clamp(5rem, 12svh, 8rem); min-height: 0; }
.application-form :is(input, select, textarea):is(:hover, :focus, :active) { background: var(--field-background); color: var(--ink); outline: none; }
.application-form :is(input, select, textarea):focus { box-shadow: 0 0 0 2px var(--knowledge); }
.application-form :is(input, select, textarea):autofill { background: var(--field-background); color: var(--ink); box-shadow: 0 0 0 1000px var(--field-background) inset; }
.application-form :is(input, select, textarea):-webkit-autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); box-shadow: 0 0 0 1000px var(--field-background) inset; }
.application-form :is(input, select, textarea):-webkit-autofill:focus { box-shadow: 0 0 0 1000px var(--field-background) inset, 0 0 0 2px var(--knowledge); }
.application-form button:focus-visible { outline: 2px solid var(--knowledge); outline-offset: 3px; }
.application-form .field-hint { margin-top: .375rem; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.form-submit { margin-top: 1rem; }
.form-privacy { font-size: .75rem; line-height: 1.5; }
.form-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: .75rem; }
.form-button { display: inline-flex; align-items: center; gap: 1.75rem; min-height: 2.75rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--canvas); padding: .75rem 1.25rem; font: inherit; font-size: .8125rem; cursor: pointer; }
.form-button:hover { background: var(--secondary); }
.form-button:disabled { opacity: .5; cursor: default; }
.form-button span { font-size: 1rem; line-height: 1; }
.step-next, .step-back { display: none; }
.form-status { font-size: .8125rem; line-height: 1.7; margin-bottom: 1rem; }
.form-status:empty { margin: 0; }
.application-draft[hidden], .has-draft .application-edit { display: none; }
.application-draft textarea { height: clamp(8rem, 27svh, 18rem); }
.draft-actions { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.copy-application, .edit-application, .step-back { border: 0; background: transparent; padding: .75rem 0; font: inherit; font-size: .8125rem; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; color: var(--ink); }
.apply-main > .ribbon-stage { flex: 0 0 auto; padding-block: 1.25rem 2.25rem; }
.apply-main .ribbon-stage .motion-control { bottom: .125rem; }
@media (max-width: 700px), (max-height: 820px) {
  .application-form[data-step="details"] .form-step-work, .application-form[data-step="work"] .form-step-details { display: none; }
  .application-form[data-step="details"] .form-submit > .field-hint, .application-form[data-step="details"] [type="submit"] { display: none; }
  .application-form[data-step="details"] .step-next { display: inline-flex; }
  .application-form[data-step="work"] .step-back { display: inline-flex; }
  .application-form .work-fields { margin-top: 0; }
  .application-form textarea { height: clamp(6rem, 18svh, 10rem); }
}
@media (max-width: 700px) {
  .apply-page .site-header { padding-block: .75rem; }
  .apply-main { padding-top: .5rem; }
  .apply-layout { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 1.5rem; }
  .apply-intro h1 { max-width: none; margin-top: .75rem; font-size: clamp(2rem, 8vw, 2.75rem); }
  .apply-lead { margin-top: .5rem; font-size: .8125rem; }
  .apply-note { display: none; }
  .application-form input, .application-form select, .application-form textarea { font-size: 1rem; }
  .apply-main > .ribbon-stage { padding-block: 1rem 2rem; }
  .application-form .field-hint { font-size: .6875rem; }
}
@media (max-height: 720px) {
  .apply-page .site-header { padding-block: .5rem; }
  .apply-main { padding-top: 0; }
  .apply-layout { gap: .5rem; }
  .apply-intro h1 { margin-top: .5rem; font-size: 2rem; }
  .apply-lead, .apply-note { display: none; }
  .application-form fieldset { margin-top: .75rem; }
  .application-form .work-fields { margin-top: 0; }
  .application-form textarea { height: 5rem; }
  .apply-main > .ribbon-stage { padding-block: .375rem .625rem; }
}
