*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--paper-2);
}

.wrap {
    width: 100%;
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    padding: 16px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        background-color 0.2s ease;
}
.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}
.btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}
.btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.btn-light {
    background: var(--paper);
    color: var(--ink);
}
.btn-light:hover {
    background: #ffffff;
}
.btn-dark {
    background: var(--ink);
    color: var(--paper);
}
.btn-dark:hover:not(:disabled) {
    background: var(--ink-3);
}
.btn-link {
    font-size: 15px;
    color: var(--gray-3);
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px
        no-repeat;
    padding-bottom: 2px;
    transition:
        background-size 0.25s ease,
        color 0.2s;
}
.btn-link:hover {
    color: var(--paper);
    background-size: 100% 1px;
}
:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 3px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.header-logo svg {
    height: 22px;
    width: auto;
    display: block;
}
.header-badge {
    font-size: 13px;
    color: var(--gray-4);
}
.header-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
    margin-right: 8px;
    vertical-align: 1px;
}

.section-title {
    font-size: clamp(32px, 3.6vw, 50px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.032em;
    margin-bottom: 28px;
    max-width: 18ch;
}
.prose {
    max-width: 62ch;
}
.prose p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--gray-6);
}
.prose p + p {
    margin-top: 18px;
}

.hero {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 112px 0 72px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 70vw;
    height: 90vh;
    height: 90lvh;
    background: radial-gradient(
        closest-side,
        var(--fog-violet),
        transparent 70%
    );
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 72px;
    align-items: center;
}
.hero-kicker {
    font-size: 14px;
    color: var(--gray-5);
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(44px, 5.6vw, 84px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: 32px;
    text-wrap: balance;
}
.hero-lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-4);
    max-width: 52ch;
}
.hero-lede + .hero-lede {
    margin-top: 14px;
    color: var(--paper);
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.ledger {
    contain: layout;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--gray-4);
}
.ledger-question {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 24px;
    line-height: 1.3;
    color: var(--paper);
    margin-bottom: 20px;
}
.ledger-runs {
    list-style: none;
    height: calc(8 * 30px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
    mask-image: linear-gradient(to bottom, transparent, #000 55%);
}
.run {
    flex: none;
    height: 30px;
    display: grid;
    grid-template-columns: 4ch repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--rule-dark);
    white-space: nowrap;
}
.run-n {
    color: var(--gray-6);
}
.run-b {
    color: var(--gray-3);
    overflow: hidden;
    text-overflow: ellipsis;
}
.run-b.is-ours {
    color: var(--pink);
}
.run.is-new {
    animation: run-in 0.24s ease-out;
}
@keyframes run-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}
.ledger-tally {
    margin-top: 24px;
}
.ledger-head {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--gray-5);
    margin-bottom: 12px;
}
.tally {
    list-style: none;
    display: grid;
    gap: 10px;
}
.tally-row {
    display: grid;
    grid-template-columns: 6ch minmax(0, 1fr) 9ch;
    gap: 14px;
    align-items: center;
}
.tally-name {
    color: var(--gray-3);
}
.tally-row.is-ours .tally-name,
.tally-row.is-ours .tally-val {
    color: var(--pink);
}
.tally-track {
    position: relative;
    height: 6px;
    background: var(--ink-3);
    border-radius: 3px;
}
.tally-ci {
    position: absolute;
    inset: -3px 0;
    overflow: hidden;
}
.tally-lo,
.tally-hi {
    position: absolute;
    inset: 0;
    border-left: 1px solid var(--gray-6);
    transition: transform 0.2s;
}
.tally-bar {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: var(--gray-5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}
.tally-row.is-ours .tally-bar {
    background: var(--pink);
}
.tally-val {
    text-align: right;
    color: var(--gray-4);
}
.ledger-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--gray-6);
}
.ledger-toggle {
    font: inherit;
    color: var(--gray-4);
    background: none;
    border: 1px solid var(--rule-dark);
    border-radius: 999px;
    padding: 5px 12px;
    cursor: pointer;
    transition:
        color 0.2s,
        border-color 0.2s;
}
.ledger-toggle:hover {
    color: var(--paper);
    border-color: var(--gray-6);
}

.loop {
    padding: 128px 0;
    border-top: 1px solid var(--rule-soft);
}
.cycle {
    --node: 11px;
    list-style: none;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin-top: 72px;
    padding-bottom: 40px;
}
.cycle::before {
    content: "";
    position: absolute;
    top: calc(var(--node) / 2);
    left: 0;
    right: 0;
    height: 1px;
    background: var(--pink-line);
}
.cycle::after {
    content: "";
    position: absolute;
    top: calc(var(--node) / 2);
    left: calc(var(--node) / 2);
    right: 0;
    bottom: 0;
    border: 1px dashed var(--gray-3);
    border-top: none;
    border-radius: 0 0 14px 14px;
    pointer-events: none;
}
.step {
    position: relative;
    padding: 0 28px 0 24px;
}
.step:first-child {
    padding-left: 24px;
}
.step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: var(--node);
    height: var(--node);
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--pink);
    z-index: 1;
}
.step:first-child::before {
    background: var(--pink);
}
.step:first-child::after {
    content: "";
    position: absolute;
    left: calc(var(--node) / 2 - 3.5px);
    top: 22px;
    width: 8px;
    height: 8px;
    border-left: 1px solid var(--gray-4);
    border-top: 1px solid var(--gray-4);
    transform: rotate(45deg);
}
.step-n {
    display: block;
    font-size: 13px;
    color: var(--pink-ink);
    margin: 32px 0 6px;
}
.step-title {
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.step p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-6);
}
.cycle-return {
    margin-top: 16px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 20px;
    color: var(--gray-6);
    text-align: center;
}
.scale {
    margin-top: 96px;
    padding-top: 40px;
    border-top: 1px solid var(--rule-soft);
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.35;
    letter-spacing: -0.02em;
    max-width: 40ch;
}

.work {
    background: var(--paper-2);
    padding: 128px 0;
}
.work code {
    background: var(--paper);
}
.work-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 80px;
    align-items: start;
}
.log {
    border-radius: 12px;
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
}
.log-title {
    font-size: 13px;
    color: var(--gray-5);
    padding: 14px 18px;
    border-bottom: 1px solid var(--rule-dark);
}
.log-lines {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--gray-2);
    padding: 10px 0;
}
.log-lines li {
    padding: 6px 18px;
}
.systems {
    margin-top: 40px;
    display: grid;
    gap: 0;
}
.systems > div {
    display: grid;
    grid-template-columns: 9ch minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--rule-soft);
}
.systems dt {
    font-weight: 500;
    font-size: 15px;
}
.systems dd {
    font-size: 15px;
    line-height: 1.55;
    color: var(--gray-6);
}

.ethos {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding: 144px 0 152px;
    overflow: hidden;
}
.ethos::before {
    content: "";
    position: absolute;
    left: -15%;
    bottom: -30%;
    width: 70vw;
    height: 80vh;
    background: radial-gradient(closest-side, var(--fog-pink), transparent 70%);
    pointer-events: none;
}
.ethos .wrap {
    position: relative;
}
.ethos-title {
    font-size: clamp(40px, 5.4vw, 80px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
    max-width: 14ch;
    text-wrap: balance;
}
.ethos-body {
    margin: 64px 0 0 auto;
    max-width: 56ch;
}
.ethos-body p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--gray-4);
}
.ethos-body p + p {
    margin-top: 20px;
}
.ethos-body p:last-child {
    color: var(--paper);
}
.ethos-age {
    margin-top: 88px;
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 26ch;
    color: var(--gray-4);
}
.ethos-age span {
    display: block;
    margin-top: 8px;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--paper);
}
.ethos-future {
    margin: 64px 0 0 auto;
    max-width: 56ch;
}
.ethos-future p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--gray-4);
}

.role {
    padding: 128px 0;
}
.role-head {
    max-width: 62ch;
    margin-bottom: 64px;
}
.role-tag {
    font-size: 15px;
    color: var(--gray-6);
    margin-bottom: 14px;
}
.role-title {
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1;
    margin-bottom: 24px;
}
.role-lede {
    font-size: 20px;
    line-height: 1.55;
    color: var(--gray-6);
}
.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    border-top: 1px solid var(--ink);
    padding-top: 40px;
}
.col-title {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
}
.col-title:not(:first-child) {
    margin-top: 48px;
}
.role-col > p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-6);
}
.list {
    list-style: none;
    display: grid;
    gap: 14px;
}
.list li {
    position: relative;
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-3);
}
.list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 10px;
    height: 1px;
    background: var(--pink-ink);
}
.list-muted li {
    color: var(--gray-6);
}
.list-muted li::before {
    background: var(--gray-4);
}
.role-foot {
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--rule-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.process {
    list-style: none;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.process li {
    display: flex;
    gap: 14px;
    align-items: baseline;
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-6);
    max-width: 32ch;
}
.process-n {
    flex: none;
    font-size: 13px;
    color: var(--pink-ink);
}

.apply {
    padding: 128px 0;
}
.apply-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    align-items: start;
}
.apply-intro p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-6);
    max-width: 40ch;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 20px;
    margin-bottom: 28px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.field.full {
    grid-column: 1 / -1;
}
label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-3);
}
.optional {
    font-weight: 400;
    color: var(--gray-5);
}
input,
select,
textarea {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--ink);
    background: #fbfbf8;
    border: 1px solid var(--rule-soft);
    border-radius: 8px;
    padding: 13px 14px;
    width: 100%;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
select {
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--gray-5) 50%),
        linear-gradient(135deg, var(--gray-5) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}
textarea {
    resize: vertical;
    line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
    color: var(--gray-4);
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px var(--pink-soft);
}
input.invalid,
select.invalid {
    border-color: #c2412d;
}
.error-banner {
    display: none;
    font-size: 15px;
    color: #9b2c1c;
    background: #f9e4df;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.error-banner.visible {
    display: block;
}
.success-panel {
    display: none;
    padding: 40px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--paper);
}
.success-panel.visible {
    display: block;
}
.success-title {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.success-panel p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-3);
}

.site-footer {
    background: var(--ink);
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-logo svg {
    height: 18px;
    width: auto;
    display: block;
}
.footer-copy {
    font-size: 13px;
    color: var(--gray-5);
}

@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .hero {
        min-height: 0;
    }
    .cycle {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 0;
        margin-top: 56px;
    }
    .cycle::before {
        top: 0;
        bottom: 0;
        left: calc(var(--node) / 2);
        right: auto;
        width: 1px;
        height: auto;
    }
    .cycle::after,
    .step:first-child::after {
        display: none;
    }
    .step,
    .step:first-child {
        padding: 0 0 0 36px;
        max-width: 60ch;
    }
    .step-n {
        margin-top: 0;
    }
    .cycle-return {
        text-align: left;
        padding-left: 36px;
        margin-top: 28px;
    }
    .work-grid,
    .apply-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}
@media (max-width: 760px) {
    .wrap {
        padding: 0 24px;
    }
    .hero {
        padding: 96px 0 56px;
    }
    .loop,
    .work,
    .role,
    .apply {
        padding: 88px 0;
    }
    .role-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ethos {
        padding: 96px 0 104px;
    }
    .ethos-body,
    .ethos-future {
        margin-left: 0;
    }
    .ethos-body p,
    .ethos-future p {
        font-size: 18px;
    }
    .ethos-age,
    .ethos-future {
        margin-top: 72px;
    }
    .role-grid .role-col + .role-col {
        margin-top: 48px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .role-foot .btn,
    .form-footer .btn,
    .hero-actions .btn {
        width: 100%;
    }
    .run {
        grid-template-columns: 4ch repeat(3, minmax(0, 1fr));
    }
    .run-b:nth-child(n + 5) {
        display: none;
    }
    .systems > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .site-header {
        padding: 0 20px;
    }
    .site-footer {
        padding: 24px;
    }
}

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

.chips {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.chips legend {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-3);
    margin-bottom: 10px;
    padding: 0;
}
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    position: relative;
    cursor: pointer;
}
.chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.chip span {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid var(--rule-soft);
    border-radius: 999px;
    background: #fbfbf8;
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-3);
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}
.chip:hover span {
    border-color: var(--gray-5);
}
.chip input:checked + span {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}
.chip input:focus-visible + span {
    outline: 2px solid var(--pink-line);
    outline-offset: 2px;
}
input.chip-other {
    width: 12em;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
}
.log-rate {
    display: block;
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--paper);
    margin-bottom: 4px;
}

.role-note {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--gray-5);
}
.quiet {
    color: inherit;
    text-decoration: none;
    cursor: text;
}
