:root {
    --red: #85070d;
    --red-hot: #e13b35;
    --black: #111318;
    --charcoal: #23262d;
    --white: #ffffff;
    --fog: #eef0f2;
    --line: #cfd3d8;
    --muted: #656c76;
    --rail: 244px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--black);
    background: var(--white);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
img, svg { display: block; }
a, button { color: inherit; }
button { font: inherit; }

.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;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: var(--white);
    background: var(--red);
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-rail {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: var(--rail);
    display: flex;
    flex-direction: column;
    padding: 34px 28px 30px;
    border-right: 1px solid var(--line);
    background: var(--white);
}

.brand img {
    width: 168px;
    height: auto;
}

.rail-nav {
    display: grid;
    gap: 3px;
    margin-block: auto;
}

.rail-nav a {
    position: relative;
    padding: 9px 0 9px 22px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 720;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.rail-nav a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 9px;
    height: 2px;
    background: var(--red);
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.rail-nav a:hover,
.rail-nav a:focus-visible,
.rail-nav a.is-active {
    color: var(--black);
    transform: translateX(5px);
}

.rail-nav a:hover::before,
.rail-nav a:focus-visible::before,
.rail-nav a.is-active::before {
    transform: translateY(-50%) scaleX(1);
}

.rail-contact {
    display: grid;
    gap: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.rail-contact span {
    color: var(--muted);
    font-size: 0.76rem;
}

.rail-contact strong { font-size: 0.84rem; }
.menu-trigger { display: none; }
.page { margin-left: var(--rail); }

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(400px, 0.95fr) minmax(480px, 1.05fr);
    grid-template-rows: 1fr auto;
    overflow: hidden;
    background: var(--fog);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(70px, 8vw, 120px) clamp(42px, 7vw, 110px);
}

.hero h1 {
    max-width: 670px;
    margin: 0;
    font-size: clamp(3rem, 5.2vw, 5.3rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero-copy > p {
    max-width: 610px;
    margin: 32px 0 0;
    color: var(--muted);
    font-size: clamp(1.04rem, 1.3vw, 1.2rem);
    line-height: 1.7;
}

.action-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--red);
    font-weight: 780;
    text-decoration: none;
}

.action-link svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.action-link:hover svg,
.action-link:focus-visible svg { transform: translateX(6px); }

.hero-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    color: var(--white);
    background: var(--black);
}

.board-cell {
    position: relative;
    min-width: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.board-cell:nth-child(3n) { border-right: 0; }

.board-word {
    color: #8d939e;
    font-size: clamp(0.76rem, 1vw, 0.95rem);
    font-weight: 850;
    letter-spacing: 0.16em;
}

.word-web {
    align-items: end;
    justify-items: start;
    padding: 24px;
}

.word-cloud { writing-mode: vertical-rl; }

.word-app {
    align-items: start;
    justify-items: end;
    padding: 24px;
}

.word-care {
    color: var(--white);
    background: var(--red);
}

.board-dot i {
    width: min(6vw, 76px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--red-hot);
}

.board-lines {
    gap: 8px;
    padding: 28px;
}

.board-lines i {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.42);
    transform: rotate(-12deg);
}

.board-center {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 20px;
    color: var(--black);
    background: var(--white);
}

.board-center span,
.board-center strong {
    justify-self: start;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.board-center strong { justify-self: end; }

.board-center svg {
    width: min(9vw, 120px);
    height: auto;
    fill: none;
    stroke: var(--red);
    stroke-width: 1.5;
}

.board-code {
    color: var(--red-hot);
    font-size: clamp(1.9rem, 3.5vw, 3.8rem);
    font-weight: 360;
}

.board-arrow svg {
    width: min(7vw, 92px);
    height: auto;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.2;
}

.hero-foot {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 20px clamp(28px, 5vw, 72px);
    color: #bbc0c8;
    background: var(--charcoal);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.statement {
    padding: clamp(90px, 13vw, 190px) clamp(36px, 10vw, 150px);
    background: var(--white);
}

.statement p {
    max-width: 1200px;
    margin: 0;
    font-size: clamp(2.2rem, 4.7vw, 5rem);
    font-weight: 720;
    line-height: 1.16;
    letter-spacing: -0.055em;
}

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

.services,
.clients {
    padding: clamp(80px, 10vw, 140px) clamp(36px, 7vw, 110px);
}

.services {
    color: var(--white);
    background: var(--black);
}

.section-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 50px;
    margin-bottom: 70px;
}

.section-intro h2,
.focus-copy h2,
.contact h2 {
    margin: 0;
    font-size: clamp(2.15rem, 3.7vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.section-intro p {
    max-width: 460px;
    margin: 0;
    color: #aeb4bd;
    font-size: 1.05rem;
}

.service-list { border-top: 1px solid rgba(255, 255, 255, 0.2); }

.service-row {
    display: grid;
    grid-template-columns: 78px minmax(220px, 0.75fr) minmax(330px, 1.25fr) 44px;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
    padding: 32px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: padding 180ms ease, color 180ms ease, background 180ms ease;
}

.service-row:hover {
    padding-inline: 24px;
    color: var(--black);
    background: var(--white);
}

.service-symbol {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--red-hot);
}

.service-symbol svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-row h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    line-height: 1.15;
}

.service-row p {
    margin: 0;
    color: #aeb4bd;
}

.service-row:hover p { color: var(--muted); }

.service-end {
    justify-self: end;
    font-size: 1.7rem;
}

.focus {
    display: grid;
    grid-template-columns: minmax(390px, 0.8fr) minmax(530px, 1.2fr);
    min-height: 780px;
}

.focus-poster {
    position: relative;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(40px, 6vw, 90px);
    color: var(--white);
    background: var(--red);
}

.focus-poster span,
.focus-poster strong {
    font-size: clamp(4rem, 8vw, 9rem);
    font-weight: 900;
    line-height: 0.78;
    letter-spacing: -0.08em;
}

.focus-poster strong {
    -webkit-text-stroke: 2px var(--white);
    color: transparent;
}

.focus-poster i {
    position: absolute;
    right: -12%;
    bottom: -10%;
    width: min(27vw, 390px);
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
}

.focus-poster i::before,
.focus-poster i::after {
    content: "";
    position: absolute;
    inset: 17%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.focus-poster i::after { inset: 34%; }

.focus-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(70px, 9vw, 140px);
    background: var(--fog);
}

.focus-copy > p {
    max-width: 670px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.72;
}

.focus-principles {
    display: grid;
    margin: 48px 0 0;
    border-top: 1px solid var(--line);
}

.focus-principles > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 25px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.focus-principles dt {
    color: var(--red);
    font-weight: 820;
}

.focus-principles dd {
    margin: 0;
    color: var(--muted);
}

.clients { background: var(--white); }
.clients-intro p { color: var(--muted); }

.quote-stage {
    display: grid;
    grid-template-columns: minmax(250px, 0.32fr) minmax(500px, 0.68fr);
    min-height: 520px;
    border: 1px solid var(--line);
}

.quote-people {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    border-right: 1px solid var(--line);
}

.quote-people button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 28px 34px;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    background: var(--fog);
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease;
}

.quote-people button:last-child { border-bottom: 0; }

.quote-people button[aria-selected="true"] {
    color: var(--white);
    background: var(--red);
}

.quote-people strong { font-size: 0.98rem; }

.quote-people span {
    color: var(--muted);
    font-size: 0.82rem;
}

.quote-people button[aria-selected="true"] span { color: rgba(255, 255, 255, 0.72); }

.quote-panels {
    display: grid;
    background:
        linear-gradient(90deg, transparent 49.8%, rgba(17, 19, 24, 0.05) 50%, transparent 50.2%),
        linear-gradient(transparent 49.8%, rgba(17, 19, 24, 0.05) 50%, transparent 50.2%);
    background-size: 92px 92px;
}

.quote-panels figure {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 60px;
    margin: 0;
    padding: clamp(44px, 7vw, 100px);
}

.quote-panels figure[hidden] { display: none; }

.quote-panels figure::before {
    content: "“";
    position: absolute;
    top: 20px;
    right: 38px;
    color: var(--red);
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.11;
}

.quote-panels blockquote {
    max-width: 850px;
    margin: 0;
    font-size: clamp(1.45rem, 2.7vw, 2.65rem);
    font-weight: 660;
    line-height: 1.38;
    letter-spacing: -0.035em;
}

.quote-panels figcaption { display: none; }

.contact {
    padding: clamp(80px, 10vw, 140px) clamp(36px, 7vw, 110px);
    color: var(--white);
    background: var(--red);
}

.contact-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 50px;
    padding-bottom: 65px;
}

.contact-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
}

.email-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    font-size: clamp(1.75rem, 4vw, 4rem);
    font-weight: 770;
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.email-link svg {
    width: clamp(42px, 5vw, 70px);
    height: auto;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    transition: transform 180ms ease;
}

.email-link:hover svg,
.email-link:focus-visible svg { transform: translate(7px, -7px); }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 24px clamp(36px, 7vw, 110px);
    color: #aeb4bd;
    background: var(--black);
    font-size: 0.76rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    :root { --rail: 0px; }

    .site-rail {
        width: min(340px, 86vw);
        padding-top: 80px;
        box-shadow: 24px 0 70px rgba(17, 19, 24, 0.22);
        transform: translateX(-110%);
        visibility: hidden;
        transition: transform 220ms ease, visibility 220ms ease;
    }

    .site-rail.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .menu-trigger {
        position: fixed;
        z-index: 40;
        top: 18px;
        left: 18px;
        width: 46px;
        height: 46px;
        display: grid;
        align-content: center;
        gap: 5px;
        padding: 11px;
        border: 0;
        border-radius: 50%;
        color: var(--white);
        background: var(--red);
        box-shadow: 0 10px 30px rgba(17, 19, 24, 0.18);
        cursor: pointer;
    }

    .menu-trigger > span:not(.sr-only) {
        display: block;
        height: 2px;
        background: currentColor;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .menu-trigger[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-trigger[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
    .menu-trigger[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .page { margin-left: 0; }
    .hero { min-height: auto; }
}

@media (max-width: 880px) {
    .hero { grid-template-columns: 1fr; }

    .hero-copy {
        min-height: 650px;
        padding: 100px 36px 70px;
    }

    .hero-board { min-height: 650px; }
    .hero-foot { grid-column: auto; }

    .section-intro,
    .contact-copy {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-row { grid-template-columns: 62px 1fr 36px; }
    .service-row p { grid-column: 2 / 4; }
    .focus { grid-template-columns: 1fr; }
    .focus-poster { min-height: 480px; }
    .focus-copy { padding: 80px 42px; }
    .quote-stage { grid-template-columns: 1fr; }

    .quote-people {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .quote-people button {
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .quote-people button:last-child { border-right: 0; }
}

@media (max-width: 620px) {
    .hero-copy {
        min-height: 610px;
        padding-inline: 24px;
    }

    .hero h1 { font-size: clamp(2.7rem, 13vw, 3.8rem); }
    .hero-board { min-height: 520px; }

    .hero-foot,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .statement,
    .services,
    .clients,
    .contact { padding-inline: 24px; }

    .statement p { font-size: 2.25rem; }

    .service-row {
        grid-template-columns: 50px 1fr 28px;
        gap: 14px;
        padding-block: 25px;
    }

    .service-row:hover { padding-inline: 12px; }

    .service-symbol,
    .service-symbol svg {
        width: 38px;
        height: 38px;
    }

    .focus-poster {
        min-height: 400px;
        padding: 36px 24px;
    }

    .focus-copy { padding: 70px 24px; }

    .focus-principles > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .quote-people { grid-template-columns: 1fr; }

    .quote-people button,
    .quote-people button:last-child {
        padding: 18px 22px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .quote-panels figure {
        min-height: 440px;
        padding: 48px 28px;
    }

    .quote-panels blockquote { font-size: 1.45rem; }

    .quote-panels figcaption {
        display: grid;
        gap: 2px;
    }

    .quote-panels figcaption span {
        color: var(--muted);
        font-size: 0.82rem;
    }

    .email-link { font-size: clamp(1.35rem, 7vw, 2.1rem); }
}

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

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

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