:root {
    --ink: #11110f;
    --paper: #f7f6f2;
    --warm: #ebe8e1;
    --muted: #686760;
    --line: #cbc8c0;
    --white: #ffffff;
    --max: 1240px;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --body: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: -5rem;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--ink);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography */

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--display);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

h1 {
    max-width: 850px;
    margin-bottom: 1.75rem;
    font-size: clamp(3rem, 6.8vw, 6.25rem);
    font-weight: 500;
}

h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.25rem, 4.4vw, 4.5rem);
    font-weight: 500;
}

h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.lead {
    max-width: 650px;
    color: #45443f;
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    line-height: 1.55;
}

.eyebrow {
    margin-bottom: 1.35rem;
    font-size: 0.69rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.85rem 1.3rem;
    color: var(--white);
    background: var(--ink);
    border: 1px solid var(--ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.button:hover,
.button:focus-visible {
    background: #33332f;
    border-color: #33332f;
}

.button--outline {
    color: var(--ink);
    background: transparent;
}

.button--outline:hover,
.button--outline:focus-visible {
    color: var(--white);
}

.button--small {
    min-height: 42px;
    padding: 0.65rem 1.1rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.2rem;
}

.text-link {
    display: inline-block;
    margin-top: 1.25rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid;
    font-weight: 600;
}

.text-link span {
    display: inline-block;
    margin-left: 0.4rem;
    transition: transform 0.2s;
}

.text-link:hover span {
    transform: translateX(4px);
}

/* Header */

.site-header {
    position: relative;
    top: 0;
    z-index: 20;
    width: 100%;
    background: var(--paper);
    border-bottom: 1px solid rgba(17, 17, 15, 0.16);
    transition:
        background 0.25s,
        box-shadow 0.25s;
}

.site-header.is-stuck {
    position: fixed;
    background: rgba(247, 246, 242, 0.94);
    box-shadow: 0 1px 0 rgba(17, 17, 15, 0.1);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--display);
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.wordmark > span:not(.mark) {
    font-weight: 400;
}

.wordmark .mark {
    margin-right: 0.15rem;
    font-family: Arial, sans-serif;
    font-size: 1.7rem;
    line-height: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.7vw, 2.75rem);
}

.site-nav > a:not(.button) {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.site-nav > a:not(.button):hover {
    opacity: 0.55;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: none;
    border: 0;
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    height: 1px;
    margin: 5px 0;
    background: var(--ink);
}

/* Full-width hero */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: clamp(5rem, 9vw, 8rem) 0;
    overflow: hidden;
    color: var(--white);
    background-color: #171715;
    background-image: url("../images/system168-hero-desktop.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 8, 7, 0.94) 0%,
        rgba(8, 8, 7, 0.8) 36%,
        rgba(8, 8, 7, 0.38) 67%,
        rgba(8, 8, 7, 0.08) 100%
    );
}

.hero-grid {
    display: block;
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

.hero-copy {
    max-width: 780px;
    padding-top: 0;
}

.hero h1 {
    max-width: 760px;
    color: var(--white);
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.hero .lead {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
}

.hero .button {
    color: var(--ink);
    background: var(--white);
    border-color: var(--white);
}

.hero .button:hover,
.hero .button:focus-visible {
    color: var(--white);
    background: transparent;
    border-color: var(--white);
}

.hero .button--outline {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
}

.hero .button--outline:hover,
.hero .button--outline:focus-visible {
    color: var(--ink);
    background: var(--white);
    border-color: var(--white);
}

.hero-points {
    display: flex;
    gap: 2rem;
    max-width: 760px;
    padding: 1.25rem 0 0;
    margin: 3.5rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-points li {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-points li::before {
    content: "—";
    margin-right: 0.6rem;
}

/* 168 Hours section */

.hours-section {
    padding: clamp(6rem, 11vw, 10rem) 0;
    color: var(--paper);
    background: var(--ink);
}

.hours-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 9rem);
}

.hours-number {
    padding-right: clamp(2rem, 5vw, 6rem);
    border-right: 1px solid #44443f;
}

.hours-number strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(8rem, 19vw, 16rem);
    font-weight: 400;
    line-height: 0.72;
    letter-spacing: -0.1em;
}

.hours-number span {
    display: block;
    margin-top: 2.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.hours-copy h2 {
    max-width: 780px;
}

.hours-copy > p:not(.eyebrow) {
    max-width: 730px;
    color: #c6c3ba;
    font-size: 1.13rem;
}

.week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-top: 3.5rem;
    border-top: 1px solid #44443f;
    border-bottom: 1px solid #44443f;
}

.week span {
    padding: 1.2rem 0.3rem;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-right: 1px solid #44443f;
}

.week span:last-child {
    border: 0;
}

.week b {
    display: block;
    margin-bottom: 0.4rem;
    color: #88877f;
    font-weight: 400;
}

/* General sections */

.section {
    padding: clamp(6rem, 10vw, 10rem) 0;
}

.section-heading {
    max-width: 800px;
    margin-bottom: clamp(3rem, 6vw, 6rem);
}

.split-heading {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 5rem;
    max-width: none;
}

.split-heading > p {
    max-width: 480px;
    color: var(--muted);
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.editorial-item {
    padding: 2.5rem clamp(1rem, 3vw, 3rem) 2.5rem 0;
    border-right: 1px solid var(--line);
}

.editorial-item + article {
    padding-left: clamp(1rem, 3vw, 3rem);
}

.editorial-item:last-child {
    border-right: 0;
}

.editorial-item > span,
.method-grid b {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.editorial-item h3 {
    margin: 2.5rem 0 1rem;
}

.editorial-item p {
    max-width: 330px;
    margin: 0;
    color: var(--muted);
}

/* Packages */

.packages {
    background: #eeece6;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.package {
    display: flex;
    flex-direction: column;
    min-height: 700px;
    padding: 2.3rem clamp(1.3rem, 2.7vw, 2.7rem);
    border-right: 1px solid var(--line);
}

.package:first-child {
    padding-left: 0;
}

.package:last-child {
    padding-right: 0;
    border-right: 0;
}

.package--featured {
    padding-top: 3.3rem;
    padding-bottom: 3.3rem;
    padding-left: clamp(1.3rem, 2.7vw, 2.7rem);
    margin: -1rem 0;
    background: var(--paper);
    border: 1px solid var(--ink);
}

.package-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    min-height: 90px;
}

.price {
    font-family: var(--display);
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.06em;
}

.price > span {
    margin-right: 0.15rem;
    font-size: 1rem;
    vertical-align: top;
}

.price small {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--body);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
}

.flag {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.package h3 {
    margin: 2.5rem 0 1rem;
}

.package-best {
    min-height: 80px;
    color: var(--muted);
}

.package ul {
    flex: 1;
    padding: 1.5rem 0 2rem;
    margin: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.package li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.4rem;
    font-size: 0.92rem;
}

.package li::before {
    content: "✓";
    position: absolute;
    left: 0;
}

.package .button {
    width: 100%;
}

/* Founding clients */

.founding {
    padding: clamp(5rem, 8vw, 8rem) 0;
    background: #dcd8ce;
}

.founding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 9vw, 10rem);
}

.founding h2 {
    font-size: clamp(2.2rem, 3.8vw, 4rem);
}

.founding-grid > div:last-child {
    padding-top: 2.25rem;
    font-size: 1.08rem;
}

/* Method */

.method-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
}

.method-grid article {
    padding: 2rem 1.5rem 0 0;
}

.method-grid article + article {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
}

.method-grid h3 {
    margin: 3rem 0 1rem;
    font-size: 1.15rem;
}

.method-grid p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* About */

.about {
    padding: clamp(6rem, 10vw, 10rem) 0;
    background: #e3e0d8;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 9rem);
}

.about-image {
    height: 680px;
    overflow: hidden;
    background: #d2cfc8;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    mix-blend-mode: multiply;
}

.about-copy .role {
    margin-top: -0.7rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.about-copy blockquote {
    padding-left: 1.5rem;
    margin: 3rem 0;
    font-family: var(--display);
    font-size: clamp(1.65rem, 3vw, 2.7rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
    border-left: 1px solid;
}

.about-copy > p:not(.eyebrow, .role) {
    max-width: 650px;
    color: #4a4944;
}

.credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
    padding: 1.5rem 0 0;
    margin-top: 2rem;
    list-style: none;
    border-top: 1px solid var(--line);
}

.credentials li {
    padding: 1rem 0;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--line);
}

/* Decision */

.decision {
    text-align: center;
}

.decision-grid {
    max-width: 900px;
}

.decision-grid > p:last-child {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.1rem;
}

/* Contact */

.contact {
    padding: clamp(6rem, 9vw, 9rem) 0;
    color: var(--paper);
    background: var(--ink);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: end;
    gap: clamp(3rem, 9vw, 10rem);
}

.contact h2 {
    max-width: 760px;
}

.contact-grid > div:first-child > p:last-child {
    max-width: 700px;
    color: #bbb8b0;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.button--light {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--paper);
}

.button--light:hover {
    color: var(--ink);
    background: #d7d4cb;
    border-color: #d7d4cb;
}

.button--dark-outline {
    background: transparent;
    border-color: #8d8b84;
}

.contact-actions > p {
    margin: 0.7rem 0 0;
    color: #aaa79e;
    font-size: 0.8rem;
    text-align: center;
}

.contact-actions > p a {
    color: var(--paper);
    text-decoration: underline;
}

/* Footer */

.site-footer {
    padding: 4.5rem 0 1.5rem;
    background: var(--paper);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 0.65fr 0.65fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.wordmark--footer {
    margin-bottom: 1.4rem;
}

.footer-grid > div:first-child p {
    max-width: 420px;
    color: var(--muted);
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-grid a:not(.wordmark) {
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
}

.footer-base {
    display: flex;
    justify-content: space-between;
    padding-top: 1.3rem;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-top: 1px solid var(--line);
}

/* Legal pages */

.legal {
    padding: 150px 0 8rem;
}

.legal .legal-wrap {
    max-width: 850px;
}

.legal h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
}

.legal h2 {
    margin: 3rem 0 1rem;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

.legal p,
.legal li {
    color: #4f4e49;
}

.legal .updated {
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}

/* Reveal animation */

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Tablet */

@media (max-width: 900px) {
    .site-header {
        position: fixed;
        background: rgba(247, 246, 242, 0.94);
        backdrop-filter: blur(14px);
    }

    .menu-toggle {
        display: block;
        z-index: 2;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        background: var(--paper);
        transform: translateX(100%);
        transition: transform 0.3s;
    }

    .site-nav.is-open {
        transform: none;
    }

    .site-nav > a:not(.button) {
        font-family: var(--display);
        font-size: 1.5rem;
        letter-spacing: -0.02em;
        text-transform: none;
    }

    .hero {
        align-items: flex-start;
        min-height: 100svh;
        padding-top: 130px;
        padding-bottom: 4rem;
        background-image: url("../images/system168-hero-mobile.png");
        background-position: center bottom;
    }

    .hero::before {
        background: linear-gradient(
            180deg,
            rgba(8, 8, 7, 0.95) 0%,
            rgba(8, 8, 7, 0.78) 42%,
            rgba(8, 8, 7, 0.3) 72%,
            rgba(8, 8, 7, 0.12) 100%
        );
    }

    .hero-copy {
        max-width: 680px;
    }

    .hours-grid,
    .split-heading,
    .founding-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hours-number {
        padding: 0 0 4rem;
        border-right: 0;
        border-bottom: 1px solid #44443f;
    }

    .hours-number strong {
        font-size: clamp(9rem, 40vw, 16rem);
    }

    .week {
        grid-template-columns: repeat(4, 1fr);
    }

    .three-col,
    .package-grid {
        grid-template-columns: 1fr;
    }

    .editorial-item,
    .editorial-item + article {
        padding: 2rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .package,
    .package:first-child,
    .package:last-child {
        min-height: 0;
        padding: 2.5rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .package--featured {
        padding: 2.5rem 1rem !important;
        margin: 0 -1rem;
        border: 1px solid;
    }

    .package-best {
        min-height: 0;
    }

    .method-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-image {
        height: 620px;
    }

    .contact-actions {
        max-width: 500px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

/* Mobile */

@media (max-width: 580px) {
    :root {
        --gutter: 1.15rem;
    }

    .header-inner {
        height: 70px;
    }

    h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: 100svh;
        padding-top: 110px;
        padding-bottom: 2.5rem;
    }

    .hero h1 {
        max-width: 10ch;
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .hero .lead {
        max-width: 33rem;
        font-size: 1rem;
        line-height: 1.55;
    }

    .button-row {
        flex-direction: column;
    }

    .button-row .button {
        width: 100%;
    }

    .hero .button-row {
        max-width: 340px;
    }

    .hero-points {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.7rem 1.25rem;
        margin-top: 2.5rem;
    }

    .hero-points li {
        font-size: 0.61rem;
    }

    .week {
        grid-template-columns: repeat(2, 1fr);
    }

    .week span:nth-child(even) {
        border-right: 0;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .method-grid article,
    .method-grid article + article {
        padding: 1.7rem 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .method-grid h3 {
        margin: 1.5rem 0 0.7rem;
    }

    .about-image {
        height: 500px;
    }

    .credentials {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .footer-base {
        flex-direction: column;
        gap: 0.5rem;
    }

    .legal {
        padding-top: 120px;
    }
}