/* ============================================================
   TFX
   ============================================================ */

:root {
    --black: #070807;
    --deep: #0b0e0c;
    --panel: #101411;
    --green: #b7ff42;
    --white: #f2f3ed;
    --muted: #899087;
    --line: rgba(242, 243, 237, 0.12);

    --display: "Bricolage Grotesque", sans-serif;
    --mono: "IBM Plex Mono", monospace;
}


/* ============================================================
   RESET
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;

    background: var(--black);
    color: var(--white);

    font-family: var(--display);

    overflow-x: hidden;
}

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


/* ============================================================
   GLOBAL
   ============================================================ */

.site-header,
.hero,
.intro,
.controls,
.workflow,
.formats,
.cta,
.site-footer {
    width: min(1240px, calc(100% - 56px));
    margin-inline: auto;
}

.section-kicker,
.kicker,
.hero-index,
.header-status,
.hero-mark,
.section-number,
.control-number,
.panel-top,
.line-number,
.line-description,
.format span,
.site-footer {
    font-family: var(--mono);
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    height: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}

.brand {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--muted);

    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.status-dot {
    width: 6px;
    height: 6px;

    display: block;

    background: var(--green);
    border-radius: 50%;

    box-shadow: 0 0 12px rgba(183, 255, 66, 0.8);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    min-height: 760px;

    position: relative;

    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;

    padding: 90px 0;
}

.hero-index {
    align-self: start;

    padding-top: 14px;

    color: var(--muted);

    font-size: 0.65rem;
    letter-spacing: 0.08em;

    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.hero-main {
    max-width: 920px;
}

.kicker,
.section-kicker {
    color: var(--green);

    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.hero h1 {
    margin-top: 25px;

    font-size: clamp(5rem, 13vw, 11rem);
    font-weight: 800;
    line-height: 0.76;
    letter-spacing: -0.09em;
}

.hero h1 span {
    display: block;

    padding-left: 8vw;

    color: transparent;

    -webkit-text-stroke: 1px var(--white);
}

.hero-text {
    max-width: 470px;

    margin-top: 42px;
    margin-left: 8vw;

    color: var(--muted);

    font-size: 0.98rem;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 32px;
    margin-left: 8vw;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.button {
    min-height: 50px;

    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button-primary {
    background: var(--green);
    color: var(--black);
}

.button-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.button span {
    font-size: 0.9rem;
}

.text-link {
    color: var(--muted);

    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    transition: color 0.2s ease;
}

.text-link span {
    margin-left: 8px;
}

.text-link:hover {
    color: var(--green);
}


/* ============================================================
   SMALL WAVEFORM
   ============================================================ */

.hero-mark {
    position: absolute;
    right: 0;
    bottom: 90px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;

    color: var(--muted);

    font-size: 0.56rem;
    letter-spacing: 0.08em;
}

.waveform {
    width: 120px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
}

.waveform i {
    width: 4px;

    display: block;

    background: var(--green);
    border-radius: 3px;

    opacity: 0.8;
}

.waveform i:nth-child(1) {
    height: 9px;
}

.waveform i:nth-child(2) {
    height: 15px;
}

.waveform i:nth-child(3) {
    height: 23px;
}

.waveform i:nth-child(4) {
    height: 12px;
}

.waveform i:nth-child(5) {
    height: 29px;
}

.waveform i:nth-child(6) {
    height: 18px;
}

.waveform i:nth-child(7) {
    height: 11px;
}

.waveform i:nth-child(8) {
    height: 27px;
}

.waveform i:nth-child(9) {
    height: 16px;
}

.waveform i:nth-child(10) {
    height: 31px;
}

.waveform i:nth-child(11) {
    height: 19px;
}

.waveform i:nth-child(12) {
    height: 25px;
}

.waveform i:nth-child(13) {
    height: 13px;
}

.waveform i:nth-child(14) {
    height: 21px;
}

.waveform i:nth-child(15) {
    height: 8px;
}


/* ============================================================
   INTRO
   ============================================================ */

.intro {
    min-height: 620px;

    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;

    border-top: 1px solid var(--line);
}

.section-number {
    align-self: start;

    padding-top: 45px;

    color: var(--muted);

    font-size: 0.64rem;
}

.intro-content {
    max-width: 850px;
    padding: 100px 0;
}

.intro h2 {
    margin-top: 25px;

    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.08em;
}

.intro h2 em {
    display: block;

    color: var(--green);

    font-style: normal;
}

.intro-text {
    max-width: 560px;

    margin-top: 48px;
    margin-left: 12vw;

    color: var(--muted);

    font-size: 1rem;
    line-height: 1.8;
}


/* ============================================================
   CONTROLS
   ============================================================ */

.controls {
    padding: 130px 0;

    border-top: 1px solid var(--line);
}

.controls-heading {
    max-width: 900px;
}

.controls h2 {
    margin-top: 24px;

    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.075em;
}

.controls h2 span {
    display: block;

    color: var(--muted);
}

.control-grid {
    margin-top: 85px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.control-card {
    min-height: 290px;

    padding: 30px;

    position: relative;

    border-top: 1px solid var(--line);
}

.control-card:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.control-card:nth-child(n + 3) {
    border-bottom: 1px solid var(--line);
}

.control-number {
    color: var(--green);

    font-size: 0.6rem;
}

.control-card h3 {
    margin-top: 70px;

    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.control-card p {
    max-width: 390px;

    margin-top: 20px;

    color: var(--muted);

    font-size: 0.84rem;
    line-height: 1.75;
}


/* ============================================================
   WORKFLOW
   ============================================================ */

.workflow {
    padding: 130px 0;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 100px;

    align-items: center;

    border-top: 1px solid var(--line);
}

.workflow-panel {
    background: var(--panel);

    border: 1px solid var(--line);
}

.panel-top {
    min-height: 55px;

    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--muted);

    border-bottom: 1px solid var(--line);

    font-size: 0.58rem;
    letter-spacing: 0.08em;
}

.workflow-line {
    min-height: 82px;

    padding: 0 22px;

    display: grid;
    grid-template-columns: 55px 130px 1fr;
    align-items: center;

    border-bottom: 1px solid var(--line);
}

.workflow-line:last-child {
    border-bottom: 0;
}

.line-number {
    color: var(--muted);

    font-size: 0.58rem;
}

.workflow-line strong {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.line-description {
    color: var(--muted);

    font-size: 0.58rem;
}

.workflow-copy {
    max-width: 480px;
}

.workflow-copy h2 {
    margin-top: 25px;

    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.85;
    letter-spacing: -0.07em;
}

.workflow-copy h2 span {
    display: block;

    color: var(--green);
}

.workflow-copy p:last-child {
    margin-top: 35px;

    color: var(--muted);

    font-size: 0.9rem;
    line-height: 1.8;
}


/* ============================================================
   FORMATS
   ============================================================ */

.formats {
    min-height: 600px;

    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;

    border-top: 1px solid var(--line);
}

.formats-main {
    padding: 100px 0;
}

.formats h2 {
    margin-top: 25px;

    font-size: clamp(4rem, 9vw, 8.5rem);
    line-height: 0.8;
    letter-spacing: -0.09em;
}

.formats h2 span {
    display: block;

    color: transparent;

    -webkit-text-stroke: 1px var(--white);
}

.format-row {
    margin-top: 70px;

    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.format {
    min-height: 125px;

    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-right: 1px solid var(--line);
}

.format:last-child {
    border-right: 0;
}

.format strong {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.05em;
}

.format span {
    color: var(--muted);

    font-size: 0.57rem;
    line-height: 1.6;
}

.format-note {
    justify-content: center;
}


/* ============================================================
   CTA
   ============================================================ */

.cta {
    min-height: 690px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;

    text-align: center;

    border-top: 1px solid var(--line);
}

.cta::before {
    content: "TFX";

    position: absolute;

    font-family: var(--display);
    font-size: clamp(15rem, 35vw, 35rem);
    font-weight: 800;
    line-height: 1;

    color: rgba(255, 255, 255, 0.018);

    pointer-events: none;
    user-select: none;
}

.cta h2,
.cta p,
.cta .button,
.cta .section-kicker {
    position: relative;
    z-index: 1;
}

.cta h2 {
    margin-top: 25px;

    font-size: clamp(4.5rem, 11vw, 10rem);
    font-weight: 800;
    line-height: 0.76;
    letter-spacing: -0.09em;
}

.cta h2 span {
    display: block;

    color: var(--green);
}

.cta > p:not(.section-kicker) {
    margin-top: 30px;

    color: var(--muted);

    font-size: 0.9rem;
}

.cta .button {
    margin-top: 32px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    min-height: 100px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    border-top: 1px solid var(--line);

    color: var(--muted);

    font-size: 0.58rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-footer > :nth-child(2) {
    text-align: center;
}

.site-footer > :last-child {
    text-align: right;

    transition: color 0.2s ease;
}

.site-footer > :last-child:hover {
    color: var(--green);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

    .site-header,
    .hero,
    .intro,
    .controls,
    .workflow,
    .formats,
    .cta,
    .site-footer {
        width: min(100% - 36px, 1240px);
    }

    .hero {
        min-height: 700px;
        grid-template-columns: 55px 1fr;
    }

    .hero h1 {
        font-size: clamp(4.5rem, 14vw, 8rem);
    }

    .workflow {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .format-row {
        grid-template-columns: 1fr 1fr;
    }

    .format-note {
        grid-column: 1 / -1;

        border-top: 1px solid var(--line);
        border-right: 0;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
        gap: 15px;

        padding: 25px 0;
    }

    .site-footer > :nth-child(2) {
        text-align: right;
    }

    .site-footer > :last-child {
        grid-column: 1 / -1;

        text-align: left;
    }
}


@media (max-width: 600px) {

    .site-header,
    .hero,
    .intro,
    .controls,
    .workflow,
    .formats,
    .cta,
    .site-footer {
        width: calc(100% - 28px);
    }

    .site-header {
        height: 72px;
    }

    .header-status {
        display: none;
    }

    .hero {
        min-height: 650px;

        display: block;

        padding: 70px 0;
    }

    .hero-index {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .hero-main {
        margin-top: 55px;
    }

    .hero h1 {
        font-size: clamp(4rem, 19vw, 6.5rem);
    }

    .hero h1 span {
        padding-left: 4vw;
    }

    .hero-text,
    .hero-actions {
        margin-left: 4vw;
    }

    .hero-mark {
        right: 0;
        bottom: 45px;
    }

    .intro {
        min-height: auto;

        display: block;
    }

    .section-number {
        padding-top: 28px;
    }

    .intro-content {
        padding: 70px 0 90px;
    }

    .intro h2 {
        font-size: clamp(3.2rem, 15vw, 5rem);
    }

    .intro-text {
        margin-left: 4vw;
    }

    .controls {
        padding: 90px 0;
    }

    .controls h2 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .control-grid {
        margin-top: 55px;

        grid-template-columns: 1fr;
    }

    .control-card {
        min-height: 250px;
    }

    .control-card:nth-child(odd) {
        border-right: 0;
    }

    .control-card:nth-child(n + 3) {
        border-bottom: 0;
    }

    .control-card:last-child {
        border-bottom: 1px solid var(--line);
    }

    .control-card h3 {
        margin-top: 55px;
    }

    .workflow {
        padding: 90px 0;
    }

    .workflow-line {
        grid-template-columns: 40px 105px 1fr;
        padding: 0 15px;
    }

    .workflow-copy h2 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .formats {
        min-height: auto;

        display: block;
    }

    .formats-main {
        padding: 70px 0 90px;
    }

    .formats h2 {
        font-size: clamp(4rem, 18vw, 6rem);
    }

    .format-row {
        grid-template-columns: 1fr 1fr;

        margin-top: 50px;
    }

    .format {
        min-height: 105px;
    }

    .format-note {
        grid-column: 1 / -1;
    }

    .cta {
        min-height: 560px;
    }

    .cta h2 {
        font-size: clamp(4rem, 19vw, 6.5rem);
    }

    .cta::before {
        font-size: 60vw;
    }

    .site-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        padding: 25px 0;
    }

    .site-footer > :nth-child(2),
    .site-footer > :last-child {
        text-align: left;
    }
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}