/* ============================================================
   FORMULASSIST DE AUTOMOBILE
   Main Stylesheet
   Design: Motorsport | Premium Engineering | Technical Minimalism
   Colors: Carbon Black | White | Racing Red
   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */

:root {
    --black: #080808;
    --black-soft: #0d0d0d;
    --surface: #121212;
    --surface-light: #191919;
    --surface-hover: #202020;

    --white: #f5f5f5;
    --text: #b0b0b0;
    --muted: #777777;

    --red: #e3212b;
    --red-bright: #ff303a;
    --red-dark: #a9151d;

    --border: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.07);

    --font-body: "Inter", Arial, sans-serif;
    --font-display: "Barlow Condensed", Impact, sans-serif;

    --container: 1240px;
    --header-height: 82px;

    --ease: 220ms ease;
}


/* ============================================================
   02. RESET
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 25px);
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background: var(--black);
    color: var(--white);

    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.75;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
    font-family: var(--font-body);
}

body.modal-open {
    overflow: hidden;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-size: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--red);
    color: white;
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 25px);
}


/* ============================================================
   03. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4 {
    color: var(--white);
    font-weight: 800;
    line-height: 1.1;
}

h1,
h2 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(64px, 8vw, 112px);
    line-height: 0.92;
}

h2 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.98;
}

h3 {
    font-size: 17px;
}

p {
    color: var(--text);
}

em {
    color: var(--red);
    font-style: normal;
}

strong,
b {
    font-weight: 750;
}


/* ============================================================
   04. SHARED COMPONENTS
   ============================================================ */

.section-wrap {
    width: min(var(--container), calc(100% - 80px));
    margin-inline: auto;
    padding-block: 120px;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
}

.section-kicker span {
    color: var(--red);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;

    color: #8a8a8a;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 2px;
    line-height: 1.6;
    text-transform: uppercase;
}

.red-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;

    display: inline-block;
    border-radius: 50%;

    background: var(--red);
    box-shadow: 0 0 12px rgba(227, 33, 43, 0.4);
}


/* ============================================================
   05. TOP BAR
   ============================================================ */

.topline {
    position: relative;
    min-height: 5px;

    background: var(--red);
}

.topline::after {
    content: "";

    position: absolute;
    top: 0;
    right: 0;

    width: 22%;
    height: 100%;

    background: var(--white);
    opacity: 0.12;

    clip-path: polygon(
        10% 0,
        100% 0,
        100% 100%,
        0 100%
    );
}


/* ============================================================
   06. HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding-inline: max(
        40px,
        calc((100vw - var(--container)) / 2)
    );

    background: rgba(8, 8, 8, 0.94);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* Brand */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    flex-shrink: 0;
}

.brand-mark {
    position: relative;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;

    border: 1px solid rgba(227, 33, 43, 0.75);

    background: rgba(227, 33, 43, 0.06);

    color: var(--white);

    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 900;
    line-height: 1;

    transform: skew(-7deg);
}

.brand-slash {
    color: var(--red);
    font-weight: 900;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-copy strong {
    color: var(--white);

    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.brand-copy small {
    margin-top: 4px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.2px;
}


/* Navigation */

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3vw, 40px);
}

.main-nav > a {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding-block: 10px;

    color: #a8a8a8;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1px;

    transition: color var(--ease);
}

.main-nav > a:not(.nav-contact)::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;

    background: var(--red);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform var(--ease);
}

.main-nav > a:hover {
    color: white;
}

.main-nav > a:hover::after {
    transform: scaleX(1);
}

.main-nav .nav-contact {
    padding: 11px 15px;

    border: 1px solid rgba(227, 33, 43, 0.65);

    color: white;

    transition:
        background var(--ease),
        border-color var(--ease);
}

.nav-contact span {
    color: var(--red);
    font-size: 15px;
    transition: color var(--ease);
}

.main-nav .nav-contact:hover {
    background: var(--red);
    border-color: var(--red);
}

.main-nav .nav-contact:hover span {
    color: white;
}


/* Mobile menu button */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    flex-shrink: 0;

    padding: 10px;

    border: 1px solid var(--border);
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin-block: 5px;

    background: white;

    transition:
        transform var(--ease),
        opacity var(--ease);
}


/* ============================================================
   07. HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    isolation: isolate;

    min-height: 760px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    grid-template-rows: minmax(600px, 1fr) auto;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 76% 38%,
            rgba(227, 33, 43, 0.08),
            transparent 43%
        ),
        linear-gradient(
            125deg,
            #080808 0%,
            #0c0c0c 55%,
            #101010 100%
        );

    border-bottom: 1px solid var(--border);
}


/* Technical background grid */

.hero-grid {
    position: absolute;
    z-index: -1;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image: linear-gradient(
        110deg,
        black 0%,
        rgba(0, 0, 0, 0.8) 45%,
        transparent 100%
    );

    -webkit-mask-image: linear-gradient(
        110deg,
        black 0%,
        rgba(0, 0, 0, 0.8) 45%,
        transparent 100%
    );
}


/* Hero text */

.hero-content {
    position: relative;
    z-index: 2;

    grid-column: 1;
    grid-row: 1;

    align-self: center;

    width: 100%;
    max-width: 760px;

    padding-block: 100px 90px;
    padding-left: max(
        40px,
        calc((100vw - var(--container)) / 2)
    );
    padding-right: 20px;
}

.hero-content > .eyebrow {
    margin-bottom: 32px;
}

.hero h1 {
    margin-bottom: 30px;

    font-size: clamp(65px, 7.8vw, 108px);

    letter-spacing: -1px;
}

.hero h1 em {
    display: inline-block;
    color: var(--red);
}

.hero-description {
    max-width: 480px;

    margin-bottom: 33px;

    color: #aaa;

    font-size: 13px;
    line-height: 2;
}


/* Hero buttons */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 38px;
}

.button {
    min-height: 49px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    padding: 13px 20px;

    border: 1px solid transparent;
    border-radius: 0;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background var(--ease),
        border-color var(--ease),
        color var(--ease),
        transform var(--ease);
}

.button:hover {
    transform: translateY(-2px);
}

.button > span {
    font-size: 16px;
    line-height: 1;
}

.button-red {
    background: var(--red);
    border-color: var(--red);

    color: white;
}

.button-red > span {
    color: white;
}

.button-red:hover {
    background: var(--red-bright);
    border-color: var(--red-bright);
}

.button-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.24);

    color: white;
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: white;
}

.hero-signature {
    display: flex;
    align-items: center;
    gap: 13px;
}

.signature-line {
    width: 34px;
    height: 2px;

    flex-shrink: 0;

    background: var(--red);
}

.hero-signature > span:last-child {
    color: #777;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    line-height: 1.7;
}

.hero-signature b {
    color: var(--red);
}


/* Hero visual space */

.hero-art {
    position: relative;

    grid-column: 2;
    grid-row: 1;

    min-width: 0;
    min-height: 400px;

    align-self: stretch;

    /*
       Intentionally empty.
       Future vehicle visuals will be added through Assets.
       No vehicle is drawn or inserted by this CSS.
    */

    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(255, 255, 255, 0.018),
            transparent 68%
        );
}


/* Hero bottom information bar */

.hero-bottom-bar {
    position: relative;
    z-index: 2;

    grid-column: 1 / -1;
    grid-row: 2;

    min-height: 66px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-inline: max(
        40px,
        calc((100vw - var(--container)) / 2)
    );

    border-top: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.012);
}

.hero-bottom-bar > span {
    color: #777;

    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.5px;
}

.hero-bottom-bar i {
    padding-inline: 5px;

    color: var(--red);

    font-style: normal;
}


/* ============================================================
   08. ABOUT SECTION
   ============================================================ */

.intro {
    display: grid;

    grid-template-columns: 0.5fr 1.3fr 1fr;
    align-items: start;

    gap: 45px;
}

.intro > .section-kicker {
    padding-top: 9px;
    white-space: nowrap;
}

.intro-main > .eyebrow {
    margin-bottom: 22px;
}

.intro-main h2 {
    font-size: clamp(39px, 4.2vw, 59px);
    line-height: 1.03;
}

.intro-main h2 span {
    display: inline-block;
    margin-top: 8px;

    color: var(--red);
}

.intro-side {
    padding-top: 7px;
}

.intro-side > p {
    margin-bottom: 17px;

    color: #999;

    font-size: 12px;
    line-height: 2;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    margin-top: 10px;

    color: white;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;

    transition: color var(--ease);
}

.text-link > span {
    color: var(--red);
    font-size: 16px;

    transition: transform var(--ease);
}

.text-link:hover {
    color: var(--red-bright);
}

.text-link:hover > span {
    transform: translate(3px, -3px);
}


/* ============================================================
   09. PROJECTS SECTION
   ============================================================ */

.featured {
    position: relative;

    background:
        linear-gradient(
            180deg,
            #0d0d0d 0%,
            #101010 100%
        );

    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}


/* Section heading */

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;

    margin-bottom: 45px;
}

.section-heading .section-kicker {
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: clamp(44px, 5.4vw, 72px);
}

.section-heading h2 span {
    color: var(--red);
}

.section-heading > p {
    max-width: 320px;

    padding-bottom: 5px;

    color: #888;

    font-size: 12px;
    line-height: 2;
}


/* Project filters */

.project-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 25px;
    padding-bottom: 17px;

    border-bottom: 1px solid var(--border);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    min-height: 34px;

    padding: 8px 13px;

    border: 1px solid var(--border);
    background: transparent;

    color: #929292;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;

    cursor: pointer;

    transition:
        color var(--ease),
        background var(--ease),
        border-color var(--ease);
}

.filter-btn:hover,
.filter-btn.active,
.filter-btn[aria-pressed="true"] {
    background: var(--red);
    border-color: var(--red);

    color: white;
}

.project-count {
    flex-shrink: 0;

    color: #777;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* Project card grid */

.project-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* Project cards: generic selectors support script-generated markup */

.project-card {
    position: relative;

    min-width: 0;
    min-height: 310px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--border);
    background: var(--surface);

    transition:
        transform var(--ease),
        border-color var(--ease),
        background var(--ease);
}

.project-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--red);

    transition: width 300ms ease;
}

.project-card:hover {
    transform: translateY(-5px);

    border-color: rgba(227, 33, 43, 0.6);
    background: var(--surface-light);
}

.project-card:hover::before {
    width: 100%;
}


/* Project media, if generated by JavaScript */

.project-image,
.project-visual,
.project-card img {
    width: 100%;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    background: #0b0b0b;

    border-bottom: 1px solid var(--border);
}

.project-card-top {
    min-height: 90px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    padding: 21px 21px 15px;

    border-bottom: 1px solid var(--border-light);
}

.project-number,
.project-index {
    color: rgba(255, 255, 255, 0.2);

    font-family: var(--font-display);
    font-size: 35px;
    font-weight: 800;
    line-height: 1;
}

.project-category {
    display: inline-block;

    padding: 5px 8px;

    border: 1px solid rgba(227, 33, 43, 0.4);

    color: #e56b71;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
}

.project-card-body,
.project-content {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 22px;
}

.project-title {
    margin-bottom: 12px;

    color: white;

    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.project-summary {
    margin-bottom: 18px;

    color: #999;

    font-size: 11px;
    line-height: 1.9;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: auto;
    margin-bottom: 17px;
}

.project-meta span,
.project-tag {
    padding: 4px 7px;

    border: 1px solid var(--border);

    color: #888;

    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.project-link {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid var(--border);

    color: #ddd;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    cursor: pointer;

    transition: color var(--ease);
}

.project-link::after {
    content: "↗";

    color: var(--red);
    font-size: 17px;
}

.project-link:hover {
    color: var(--red-bright);
}


/* Portfolio disclaimer */

.portfolio-note {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-top: 32px;
    padding: 18px 20px;

    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.015);

    color: #888;

    font-size: 10px;
    line-height: 1.8;
}

.portfolio-note .red-dot {
    flex-shrink: 0;
}


/* Empty/loading/error messages */

.project-grid > p,
.project-grid .loading,
.project-grid .empty-state,
.project-grid .error-state {
    grid-column: 1 / -1;

    padding: 35px 20px;

    border: 1px solid var(--border);

    color: #888;

    font-size: 12px;
    text-align: center;
}


/* ============================================================
   10. ENGINEERING SECTION
   ============================================================ */

.engineering {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);

    align-items: center;
    gap: 90px;
}

.engineering-copy > .section-kicker {
    margin-bottom: 30px;
}

.engineering-copy > .eyebrow {
    margin-bottom: 18px;
}

.engineering-copy h2 {
    margin-bottom: 25px;

    font-size: clamp(47px, 5.4vw, 72px);
    line-height: 0.99;
}

.engineering-description {
    max-width: 500px;

    margin-bottom: 30px;

    color: #999;

    font-size: 12px;
    line-height: 2;
}

.engineering-copy > .button {
    margin-top: 4px;
}


/* Engineering list */

.engineering-list {
    border-top: 1px solid var(--border);
}

.engineering-item {
    display: grid;

    grid-template-columns: 38px minmax(0, 1fr) 22px;

    align-items: center;
    gap: 14px;

    padding: 24px 0;

    border-bottom: 1px solid var(--border);

    transition: padding var(--ease);
}

.item-number {
    align-self: start;

    padding-top: 3px;

    color: var(--red);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.engineering-item h3 {
    margin-bottom: 6px;

    color: #eee;

    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.engineering-item p {
    color: #888;

    font-size: 11px;
    line-height: 1.8;
}

.item-arrow {
    color: #777;

    font-size: 19px;

    transition:
        color var(--ease),
        transform var(--ease);
}

.engineering-item:hover {
    padding-left: 7px;
}

.engineering-item:hover .item-arrow {
    color: var(--red);
    transform: translate(3px, -3px);
}


/* ============================================================
   11. BRAND STATEMENT
   ============================================================ */

.statement {
    position: relative;
    isolation: isolate;

    overflow: hidden;

    padding: 100px 25px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(227, 33, 43, 0.12),
            transparent 65%
        ),
        #101010;

    text-align: center;
}

.statement::before {
    content: "";

    position: absolute;
    z-index: -1;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image: linear-gradient(
        transparent,
        black,
        transparent
    );

    -webkit-mask-image: linear-gradient(
        transparent,
        black,
        transparent
    );
}

.statement-mark {
    margin-bottom: 22px;

    color: white;

    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.statement-mark span {
    color: var(--red);
}

.statement > p {
    color: white;

    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 90px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.5px;
}

.statement > p em {
    display: inline-block;

    margin-top: 8px;

    color: var(--red);
    font-style: normal;
}

.statement-caption {
    display: inline-block;

    margin-top: 30px;

    color: #777;

    font-size: 9px;
    font-weight: 750;
    letter-spacing: 2px;
}


/* ============================================================
   12. CONTACT SECTION
   ============================================================ */

.contact {
    display: grid;

    grid-template-columns: 0.45fr 1fr;

    align-items: start;
    gap: 65px;
}

.contact > .section-kicker {
    padding-top: 8px;
}

.contact-main {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);

    align-items: start;
    gap: 50px;
}

.contact-main .eyebrow {
    margin-bottom: 23px;
}

.contact-main h2 {
    font-size: clamp(50px, 5.6vw, 76px);
    line-height: 0.96;
}

.contact-details {
    padding-top: 7px;
}

.contact-details > p {
    margin-bottom: 25px;

    color: #999;

    font-size: 12px;
    line-height: 2;
}

.contact-details .button {
    width: 100%;
    margin-bottom: 15px;
}

.contact-details > small {
    display: block;

    color: #777;

    font-size: 10px;
    line-height: 1.8;
}


/* ============================================================
   13. FOOTER
   ============================================================ */

.site-footer {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;
    gap: 30px;

    padding: 30px max(
        40px,
        calc((100vw - var(--container)) / 2)
    );

    border-top: 1px solid var(--border);

    background: #060606;
}


/* Footer brand */

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    width: fit-content;
}

.footer-brand .brand-mark {
    width: 38px;
    height: 38px;

    font-size: 19px;
}

.footer-brand > span:last-child {
    display: flex;
    flex-direction: column;

    line-height: 1.4;
}

.footer-brand strong {
    color: white;

    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
}

.footer-brand small {
    margin-top: 3px;

    color: #777;

    font-size: 8px;
    letter-spacing: 1.5px;
}


/* Footer group link */

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;

    color: #777;

    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.8px;
    text-align: center;
}

.footer-center a {
    color: #ddd;

    transition: color var(--ease);
}

.footer-center a:hover {
    color: var(--red);
}


/* Footer links */

.footer-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-direction: column;
    gap: 6px;
}

.footer-right > span,
.footer-right > a {
    color: #777;

    font-size: 9px;
    text-align: right;
}

.footer-right > a {
    font-weight: 750;
    letter-spacing: 0.8px;

    transition: color var(--ease);
}

.footer-right > a:hover {
    color: var(--red);
}


/* ============================================================
   14. PROJECT DETAILS MODAL
   ============================================================ */

.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed;
    z-index: 2000;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.85);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
    position: relative;
    z-index: 1;

    width: min(680px, 100%);
    max-height: 85vh;

    overflow-y: auto;

    padding: 42px;

    border: 1px solid rgba(255, 255, 255, 0.16);

    background: #111;

    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    background: transparent;

    color: white;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        background var(--ease),
        border-color var(--ease);
}

.modal-close:hover {
    background: var(--red);
    border-color: var(--red);
}

.modal-panel > .eyebrow {
    margin-bottom: 20px;

    padding-right: 35px;
}

.modal-panel h2 {
    margin-bottom: 23px;

    font-size: clamp(38px, 5vw, 55px);
}

.modal-panel > p:not(.eyebrow):not(.modal-disclaimer) {
    margin-bottom: 20px;

    color: #aaa;

    font-size: 12px;
    line-height: 2;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-block: 22px;
}

.modal-meta > span {
    padding: 6px 10px;

    border: 1px solid var(--border);

    color: #999;

    font-size: 9px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.modal-disclaimer {
    margin-top: 25px;
    padding: 15px;

    border-left: 2px solid var(--red);

    background: rgba(255, 255, 255, 0.025);

    color: #888;

    font-size: 10px;
    line-height: 1.9;
}


/* ============================================================
   15. RESPONSIVE — TABLETS
   ============================================================ */

@media (max-width: 1100px) {

    :root {
        --header-height: 76px;
    }

    .site-header {
        padding-inline: 30px;
    }

    .main-nav {
        gap: 20px;
    }

    .hero {
        min-height: 700px;

        grid-template-columns: 1.1fr 0.65fr;
        grid-template-rows: minmax(560px, 1fr) auto;
    }

    .hero-content {
        padding-left: 35px;
    }

    .hero h1 {
        font-size: clamp(62px, 7.6vw, 88px);
    }

    .hero-bottom-bar {
        padding-inline: 35px;
    }

    .section-wrap {
        width: calc(100% - 60px);
        padding-block: 95px;
    }

    .intro {
        grid-template-columns: 0.45fr 1.2fr 1fr;
        gap: 28px;
    }

    .intro-main h2 {
        font-size: clamp(40px, 4.4vw, 53px);
    }

    .engineering {
        gap: 55px;
    }

    .contact {
        grid-template-columns: 0.35fr 1fr;
        gap: 35px;
    }

    .contact-main {
        gap: 30px;
    }

    .site-footer {
        padding-inline: 30px;
    }
}


/* ============================================================
   16. RESPONSIVE — MOBILE NAVIGATION
   ============================================================ */

@media (max-width: 800px) {

    .site-header {
        min-height: 72px;

        padding-inline: 22px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 12px 22px 22px;

        border-bottom: 1px solid var(--border);

        background: rgba(8, 8, 8, 0.99);

        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
    }

    .main-nav.open,
    .main-nav.active,
    .main-nav.is-open {
        display: flex;
    }

    .main-nav > a {
        min-height: 46px;

        justify-content: space-between;

        padding: 12px 3px;

        border-bottom: 1px solid var(--border-light);

        font-size: 11px;
    }

    .main-nav > a:not(.nav-contact)::after {
        display: none;
    }

    .main-nav .nav-contact {
        justify-content: center;

        margin-top: 14px;
        padding: 13px;

        border: 1px solid var(--red);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* Hero */

    .hero {
        min-height: auto;

        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .hero-grid {
        grid-column: 1;
        grid-row: 1 / 4;
    }

    .hero-content {
        grid-column: 1;
        grid-row: 1;

        max-width: 700px;

        padding: 85px 30px 35px;
    }

    .hero h1 {
        font-size: clamp(65px, 11vw, 92px);
    }

    .hero-art {
        grid-column: 1;
        grid-row: 2;

        min-height: 70px;
    }

    .hero-bottom-bar {
        grid-column: 1;
        grid-row: 3;

        min-height: 62px;

        padding-inline: 25px;
    }


    /* About */

    .intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .intro > .section-kicker {
        padding-top: 0;
    }

    .intro-main h2 {
        font-size: clamp(45px, 8vw, 62px);
    }

    .intro-side {
        max-width: 650px;
        padding-top: 0;
    }


    /* Projects */

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .section-heading > p {
        max-width: 450px;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .project-card {
        min-height: 300px;
    }


    /* Engineering */

    .engineering {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .engineering-copy {
        max-width: 650px;
    }

    .engineering-copy h2 {
        font-size: clamp(55px, 9vw, 72px);
    }


    /* Contact */

    .contact {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-main {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }


    /* Footer */

    .site-footer {
        grid-template-columns: 1fr 1fr;
        gap: 24px;

        padding: 28px 25px;
    }

    .footer-center {
        grid-column: 1 / -1;
        grid-row: 2;

        justify-content: flex-start;

        text-align: left;
    }

    .footer-right {
        grid-column: 2;
        grid-row: 1;
    }
}


/* ============================================================
   17. RESPONSIVE — SMALL TABLETS & LARGE PHONES
   ============================================================ */

@media (max-width: 600px) {

    .section-wrap {
        width: calc(100% - 40px);
        padding-block: 75px;
    }

    .hero-content {
        padding: 75px 22px 25px;
    }

    .hero h1 {
        font-size: clamp(56px, 12vw, 76px);
    }

    .hero-description {
        max-width: 480px;
        font-size: 12px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;

        max-width: 340px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-signature > span:last-child {
        font-size: 8px;
        letter-spacing: 0.9px;
    }

    .hero-bottom-bar {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        padding: 15px 22px;
    }

    .hero-bottom-bar > span {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .section-heading h2 {
        font-size: 51px;
    }

    .project-tools {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .filter-group {
        gap: 6px;
    }

    .filter-btn {
        padding-inline: 10px;
        font-size: 8px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 260px;
    }

    .project-card-body,
    .project-content {
        padding: 23px;
    }

    .project-title {
        font-size: 28px;
    }

    .portfolio-note {
        align-items: flex-start;
        font-size: 9px;
    }

    .contact-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-main h2 {
        font-size: clamp(55px, 12vw, 72px);
    }

    .statement {
        padding: 75px 20px;
    }

    .statement > p {
        font-size: clamp(48px, 11vw, 67px);
    }
}


/* ============================================================
   18. RESPONSIVE — SMALL PHONES
   ============================================================ */

@media (max-width: 380px) {

    .site-header {
        padding-inline: 15px;
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .brand-copy strong {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .brand-copy small {
        font-size: 8px;
        letter-spacing: 1.3px;
    }

    .hero-content {
        padding-inline: 17px;
    }

    .hero h1 {
        font-size: 52px;
        letter-spacing: -0.4px;
    }

    .hero-content > .eyebrow {
        font-size: 8px;
        letter-spacing: 1.1px;
    }

    .hero-signature {
        align-items: flex-start;
    }

    .hero-signature > span:last-child {
        font-size: 7px;
    }

    .section-wrap {
        width: calc(100% - 32px);
    }

    .intro-main h2 {
        font-size: 42px;
    }

    .section-heading h2 {
        font-size: 45px;
    }

    .engineering-copy h2 {
        font-size: 51px;
    }

    .engineering-item {
        grid-template-columns: 27px minmax(0, 1fr) 18px;
        gap: 9px;
    }

    .engineering-item h3 {
        font-size: 18px;
    }

    .statement > p {
        font-size: 43px;
    }

    .modal {
        padding: 12px;
    }

    .modal-panel {
        padding: 32px 20px;
    }
}


/* ============================================================
   19. ACCESSIBILITY — REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}