:root {
    --black: #050505;
    --graphite: #111111;
    --charcoal: #1a1a1a;
    --red: #b00000;
    --red-hot: #e10600;
    --paper: #d8c7a3;
    --white: #e8e1d2;
    --gray: #a8a8a8;
    --gold: #b88a3b;
    --line: rgba(216, 199, 163, 0.18);
    --max: 1220px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--black);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 72% 9%, rgba(225, 6, 0, 0.17), transparent 23rem),
        radial-gradient(circle at 5% 44%, rgba(184, 138, 59, 0.09), transparent 24rem),
        linear-gradient(180deg, #050505 0%, #0a0a0a 36%, #050505 100%);
    color: var(--white);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.55;
    text-rendering: geometricPrecision;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(216, 199, 163, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 199, 163, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

::selection {
    background: var(--red-hot);
    color: #fff;
}

.grain {
    position: fixed;
    inset: -40%;
    z-index: 80;
    pointer-events: none;
    opacity: .19;
    mix-blend-mode: screen;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.45) 0 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,.25) 0 1px, transparent 1px),
        radial-gradient(circle at 42% 61%, rgba(255,255,255,.32) 0 1px, transparent 1px);
    background-size: 89px 83px, 67px 71px, 113px 127px;
    animation: grainDrift 1.5s steps(2) infinite;
}

.poster-edge {
    position: fixed;
    inset: 0;
    z-index: 79;
    pointer-events: none;
    box-shadow: inset 0 0 120px rgba(0,0,0,.9), inset 0 0 0 1px rgba(216,199,163,.08);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px clamp(18px, 4vw, 56px);
    transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
}

.site-header.is-scrolled {
    padding-block: 14px;
    background: rgba(5, 5, 5, .84);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: clamp(150px, 17vw, 250px);
    height: auto;
    filter: contrast(1.08) saturate(.85);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 36px);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray);
}

.site-nav a {
    position: relative;
    padding-block: 7px;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--red-hot);
    transition: width .25s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--white);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: rgba(5,5,5,.72);
    color: var(--white);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 6px auto;
    background: currentColor;
    transition: transform .25s var(--ease);
}

.site-header.menu-open .menu-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.section-frame {
    position: relative;
    isolation: isolate;
}

.section-frame::before,
.section-frame::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.section-frame::before {
    inset: 16px;
    border: 1px solid rgba(216, 199, 163, .12);
}

.section-frame::after {
    inset: 0;
    background:
        linear-gradient(90deg, rgba(176,0,0,.18), transparent 11%, transparent 89%, rgba(176,0,0,.13)),
        repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 7px);
    opacity: .12;
}

.hero {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 42vw);
    align-items: end;
    gap: 24px;
    padding: clamp(118px, 14vw, 180px) clamp(18px, 5vw, 74px) 54px;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(100deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.52) 54%, rgba(5,5,5,.86) 100%),
        url("assets/julioideias.jpg") center 20% / cover;
    filter: grayscale(.25) contrast(1.22) brightness(.64);
    transform: scale(1.08);
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(110deg, transparent 0 58%, rgba(176, 0, 0, .78) 58.15% 59.2%, transparent 59.35%),
        linear-gradient(90deg, transparent 0 50%, rgba(216,199,163,.14) 50.1%, transparent 50.2%);
    opacity: .7;
}

.hero-copy {
    max-width: 850px;
    padding-bottom: clamp(12px, 7vh, 74px);
}

.kicker {
    margin: 0 0 18px;
    color: var(--paper);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hero h1,
h2 {
    margin: 0;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-weight: 400;
    line-height: .91;
    letter-spacing: 0;
    text-transform: uppercase;
    max-width: 100%;
    overflow-wrap: normal;
    text-wrap: balance;
}

.hero h1 {
    max-width: 860px;
    font-size: clamp(64px, 11.4vw, 168px);
    text-shadow: 0 12px 44px rgba(0,0,0,.8);
}

.hero h1 span {
    display: block;
}

em {
    color: var(--red-hot);
    font-style: normal;
}

.hero-subtitle {
    max-width: 700px;
    margin: 24px 0 34px;
    color: var(--gray);
    font-family: "Roboto Condensed", Inter, sans-serif;
    font-size: clamp(17px, 1.9vw, 25px);
    font-weight: 700;
    text-transform: uppercase;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px;
    overflow: hidden;
    border: 1px solid var(--red-hot);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn::after {
    content: ">";
    margin-left: 12px;
    color: inherit;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    translate: -120% 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent);
    transition: translate .45s var(--ease);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn:hover::before,
.btn:focus-visible::before {
    translate: 120% 0;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 18px 40px rgba(176, 0, 0, .25);
}

.btn-ghost {
    background: rgba(5,5,5,.4);
    color: var(--white);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--red);
}

.hero-portrait {
    position: relative;
    align-self: stretch;
    min-height: 500px;
    margin: 0;
    border-left: 1px solid rgba(216,199,163,.18);
    overflow: hidden;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-portrait::before,
.authority-image::before,
.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5,5,5,.1), rgba(5,5,5,.78)),
        radial-gradient(circle at 78% 34%, rgba(225,6,0,.18), transparent 18rem);
    mix-blend-mode: multiply;
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(.24) contrast(1.35) saturate(.86);
}

.scroll-cue {
    position: absolute;
    right: 34px;
    bottom: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--paper);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-cue span {
    width: 1px;
    height: 70px;
    background: linear-gradient(var(--red-hot), transparent);
    animation: cue 1.3s infinite;
}

.marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: #0b0b0b;
    color: var(--paper);
    transform: rotate(-1.2deg) scale(1.02);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 24s linear infinite;
}

.marquee span {
    padding: 13px 24px;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(24px, 4vw, 48px);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee span:nth-child(3n) {
    color: var(--red-hot);
}

.split-section,
.services,
.process,
.portfolio,
.testimonials,
.contact,
.authority,
.solution {
    width: min(var(--max), calc(100% - 36px));
    margin-inline: auto;
}

.split-section,
.services,
.process,
.portfolio,
.testimonials,
.contact,
.solution {
    position: relative;
    overflow: visible;
}

.split-section > *,
.services > *,
.process > *,
.portfolio > *,
.testimonials > *,
.contact > *,
.solution > * {
    position: relative;
    z-index: 2;
}

.split-section::after,
.services::after,
.process::after,
.portfolio::before,
.testimonials::after,
.contact::before,
.solution::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .12;
    inset: -14% 0;
    background-position: var(--photo-x, 70%) var(--photo-y, 50%);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: grayscale(.25) contrast(1.24) brightness(.62) saturate(.86);
    mix-blend-mode: screen;
    mask-image: radial-gradient(circle at var(--photo-x, 70%) var(--photo-y, 50%), #000 0 24%, rgba(0,0,0,.6) 42%, transparent 68%);
    transform: scale(1.08);
}

.split-section::before,
.services::before,
.process::before,
.testimonials::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .22;
    background:
        radial-gradient(circle at var(--photo-x, 70%) var(--photo-y, 50%), rgba(225,6,0,.22), transparent 22rem),
        repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 7px);
    mix-blend-mode: screen;
    mask-image: radial-gradient(circle at var(--photo-x, 70%) var(--photo-y, 50%), #000 0 18%, transparent 58%);
}

.split-section::after {
    --photo-x: 84%;
    --photo-y: 48%;
    background-image: url("assets/Photos/IMG_9955.JPG");
}

.solution::before {
    --photo-x: 78%;
    --photo-y: 46%;
    opacity: .1;
    background-image: url("assets/Photos/Gemini_Generated_Image_mzhgnnmzhgnnmzhg.png");
}

.services::after {
    --photo-x: 18%;
    --photo-y: 54%;
    opacity: .09;
    background-image: url("assets/Photos/The_avatar_in_202512170240.jpeg");
}

.process::after {
    --photo-x: 82%;
    --photo-y: 50%;
    opacity: .11;
    background-image: url("assets/Photos/IMG_9960.JPG");
}

.portfolio::before {
    --photo-x: 50%;
    --photo-y: 18%;
    opacity: .06;
    background-image: url("assets/Photos/IMG_9956.JPG");
}

.testimonials::after {
    --photo-x: 16%;
    --photo-y: 45%;
    opacity: .1;
    background-image: url("assets/Photos/IMG_9961.JPG");
}

.contact::before {
    --photo-x: 78%;
    --photo-y: 48%;
    opacity: .1;
    background-image: url("assets/Photos/Gemini_Generated_Image_n90f52n90f52n90f (1).png");
}

.split-section {
    display: grid;
    grid-template-columns: 180px minmax(0, .92fr) minmax(280px, .75fr);
    gap: clamp(22px, 4vw, 58px);
    padding: clamp(86px, 10vw, 150px) 0;
    border-bottom: 1px solid var(--line);
}

.section-mark {
    color: var(--red-hot);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.split-title h2,
.section-header h2,
.solution h2,
.authority h2,
.contact h2 {
    font-size: clamp(48px, 8vw, 112px);
    max-width: min(900px, calc(100vw - 120px));
}

.split-text {
    color: var(--gray);
    font-size: clamp(17px, 2vw, 22px);
}

.split-text p,
.solution-panel p,
.authority-copy p,
.contact-copy p {
    margin: 0 0 18px;
}

.solution {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    margin-block: 50px;
    padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 72px);
    background:
        linear-gradient(135deg, rgba(17,17,17,.93), rgba(5,5,5,.92)),
        radial-gradient(circle at 30% 20%, rgba(225,6,0,.22), transparent 24rem);
}

.diagonal-label {
    position: absolute;
    top: 28px;
    right: clamp(20px, 5vw, 70px);
    padding: 7px 10px;
    border: 1px solid rgba(216,199,163,.2);
    color: var(--paper);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    transform: rotate(2deg);
}

.solution-panel {
    max-width: 820px;
}

.solution-panel p,
.authority-copy p,
.contact-copy p {
    max-width: 670px;
    color: var(--gray);
    font-size: clamp(17px, 1.6vw, 21px);
}

.solution-aside {
    display: grid;
    align-self: end;
    border-top: 1px solid var(--line);
}

.solution-aside span {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    color: var(--paper);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.services,
.process,
.portfolio,
.testimonials {
    padding-block: clamp(78px, 9vw, 138px);
}

.section-header {
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(90px, 1fr);
    gap: 28px;
    margin-bottom: 42px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    padding-right: clamp(28px, 5vw, 82px);
    translate: clamp(-12px, -0.8vw, -6px) 0;
}

.section-header h2 {
    max-width: 900px;
}

.section-header::after {
    content: "";
    align-self: end;
    height: 10px;
    background: linear-gradient(90deg, var(--red), transparent);
}

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

.service-card {
    min-height: 265px;
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(17,17,17,.52);
    transition: background .25s var(--ease), transform .25s var(--ease);
}

.service-card:hover {
    background: rgba(176, 0, 0, .16);
    transform: translateY(-5px);
}

.service-card span,
.process-step span,
.project-card span {
    color: var(--red-hot);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 600;
}

.service-card h3,
.process-step h3,
.project-card h3 {
    margin: 18px 0 12px;
    color: var(--paper);
    font-family: "Roboto Condensed", Inter, sans-serif;
    font-size: 27px;
    line-height: 1;
    text-transform: uppercase;
}

.service-card p,
.process-step p,
.project-card p {
    margin: 0;
    color: var(--gray);
}

.authority {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 86px);
    align-items: center;
    margin-block: 30px 50px;
    padding: clamp(38px, 6vw, 70px);
    background: #0a0a0a;
}

.authority-image {
    position: relative;
    min-height: 560px;
    margin: 0;
    overflow: hidden;
    transform: rotate(-1.5deg);
    border: 1px solid rgba(216,199,163,.2);
}

.authority-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.3) contrast(1.28) saturate(.85);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.stats div {
    min-width: 125px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
}

.stats strong {
    display: block;
    color: var(--red-hot);
    font-family: "Bebas Neue", sans-serif;
    font-size: 60px;
    line-height: .9;
}

.stats span {
    color: var(--paper);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
}

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

.process-step {
    min-height: 250px;
    padding: 24px 18px 24px 0;
    border-right: 1px solid var(--line);
}

.process-step + .process-step {
    padding-left: 18px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.project-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border: 1px solid rgba(216,199,163,.16);
    background: var(--charcoal);
    cursor: pointer;
}

.project-card:nth-child(6n + 1),
.project-card:nth-child(6n + 4) {
    grid-column: span 2;
}

.project-card::after {
    content: "PLAY";
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 6px 8px;
    border: 1px solid rgba(216,199,163,.32);
    color: var(--paper);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    letter-spacing: .18em;
    background: rgba(5,5,5,.72);
}

.project-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    filter: grayscale(.12) contrast(1.16) saturate(.9);
    transition: transform .65s var(--ease), filter .65s var(--ease);
}

.project-card:hover img {
    transform: scale(1.07);
    filter: grayscale(0) contrast(1.25) saturate(1.05);
}

.project-card div {
    position: absolute;
    inset: auto 0 0;
    z-index: 4;
    padding: 80px 20px 20px;
    background: linear-gradient(transparent, rgba(5,5,5,.96));
}

.project-card h3 {
    margin-block: 8px;
    color: var(--white);
    font-size: 31px;
}

.testimonials {
    position: relative;
}

.testimonial-stage {
    max-width: 900px;
    margin-left: auto;
    padding: clamp(26px, 5vw, 56px);
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(216,199,163,.08), transparent),
        rgba(17,17,17,.7);
    box-shadow: -26px 26px 0 rgba(176,0,0,.26);
}

.testimonial-stage blockquote {
    margin: 0 0 28px;
    color: var(--white);
    font-family: "Roboto Condensed", Inter, sans-serif;
    font-size: clamp(26px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

.testimonial-stage blockquote::before {
    content: "“";
    color: var(--red-hot);
}

.testimonial-stage blockquote::after {
    content: "”";
    color: var(--red-hot);
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-meta > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--red-hot);
    color: var(--paper);
    font-family: "IBM Plex Mono", monospace;
}

.testimonial-meta strong {
    color: var(--paper);
    text-transform: uppercase;
}

.testimonial-meta p {
    margin: 2px 0 0;
    color: var(--gray);
}

.testimonial-dots {
    display: flex;
    gap: 9px;
    margin-top: 26px;
}

.testimonial-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    background: rgba(216,199,163,.25);
    cursor: pointer;
}

.testimonial-dots button.active {
    background: var(--red-hot);
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(320px, .62fr);
    gap: clamp(28px, 6vw, 82px);
    margin-bottom: 60px;
    padding: clamp(54px, 7vw, 88px);
    background:
        linear-gradient(120deg, rgba(5,5,5,.95), rgba(17,17,17,.9)),
        radial-gradient(circle at 80% 15%, rgba(225,6,0,.18), transparent 22rem);
}

.contact-actions {
    margin: 30px 0 22px;
}

.social-links {
    display: flex;
    gap: 20px;
    color: var(--paper);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.social-links a {
    border-bottom: 1px solid rgba(216,199,163,.35);
}

.contact-form {
    position: relative;
    padding: 25px;
    border: 1px solid rgba(216,199,163,.22);
    background: rgba(5,5,5,.68);
    box-shadow: 18px 18px 0 rgba(176,0,0,.18);
}

.form-stamp {
    margin-bottom: 20px;
    color: var(--red-hot);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.contact-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--paper);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(216,199,163,.22);
    border-radius: 0;
    outline: 0;
    background: #070707;
    color: var(--white);
    padding: 15px 14px;
    font-family: Inter, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red-hot);
    box-shadow: 0 0 0 3px rgba(225,6,0,.18);
}

.form-submit {
    width: 100%;
}

.form-submit:disabled {
    cursor: wait;
    opacity: .72;
}

.form-feedback {
    min-height: 22px;
    margin: 14px 0 0;
    color: var(--paper);
    font-size: 14px;
}

.site-footer {
    display: grid;
    gap: 22px;
    justify-items: center;
    padding: 45px 18px 52px;
    border-top: 1px solid var(--line);
    background: #050505;
    text-align: center;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    color: var(--gray);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.site-footer p {
    margin: 0;
    color: var(--gray);
}

.site-footer span {
    color: var(--paper);
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0,0,0,.88);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease);
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-shell {
    position: relative;
    width: min(1060px, 100%);
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(216,199,163,.25);
    background: #000;
    box-shadow: 0 0 70px rgba(176,0,0,.25);
}

.video-shell iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: #050505;
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

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

@keyframes grainDrift {
    0% { transform: translate3d(0,0,0); }
    25% { transform: translate3d(-2%,1%,0); }
    50% { transform: translate3d(1%,-2%,0); }
    75% { transform: translate3d(2%,2%,0); }
    100% { transform: translate3d(-1%,0,0); }
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@keyframes cue {
    0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .45; }
    50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        align-items: end;
    }

    .hero-portrait {
        position: absolute;
        inset: auto 0 0 auto;
        width: min(54vw, 420px);
        min-height: 58vh;
        opacity: .62;
    }

    .split-section {
        grid-template-columns: 1fr 1.2fr;
    }

    .section-mark {
        grid-column: 1 / -1;
    }

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

    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 76px;
        left: 18px;
        right: 18px;
        display: grid;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        background: rgba(5,5,5,.96);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s var(--ease), transform .2s var(--ease);
    }

    .site-header.menu-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .site-nav a {
        padding: 14px 10px;
        border-bottom: 1px solid rgba(216,199,163,.12);
    }

    .hero {
        min-height: 100svh;
        padding: 110px 18px 36px;
    }

    .hero h1 {
        font-size: clamp(58px, 18vw, 96px);
    }

    .hero-portrait {
        width: 72vw;
        min-height: 50vh;
        opacity: .45;
    }

    .scroll-cue {
        display: none;
    }

    .split-section,
    .solution,
    .authority,
    .contact,
    .section-header {
        grid-template-columns: 1fr;
    }

    .section-header {
        padding-right: 0;
        translate: none;
    }

    .split-title h2,
    .section-header h2,
    .solution h2,
    .authority h2,
    .contact h2 {
        max-width: 100%;
    }

    .split-section {
        width: min(var(--max), calc(100% - 36px));
    }

    .solution,
    .authority,
    .contact {
        padding: 38px 18px;
    }

    .authority-image {
        min-height: 440px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .process-step,
    .process-step + .process-step {
        min-height: unset;
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 620px) {
    .brand img {
        width: 154px;
    }

    .hero-actions .btn,
    .contact-actions .btn {
        width: 100%;
    }

    .service-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card:nth-child(6n + 1),
    .project-card:nth-child(6n + 4) {
        grid-column: auto;
        min-height: 275px;
    }

    .service-card {
        min-height: 215px;
    }

    .testimonial-stage {
        box-shadow: 10px 10px 0 rgba(176,0,0,.26);
    }

    .contact-form {
        padding: 18px;
        box-shadow: 10px 10px 0 rgba(176,0,0,.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
