/* Editorial homepage. Shared commercial routes keep their own layout. */
.c-editorial-hero,
.c-editorial-services,
.c-editorial-systems,
.c-editorial-process,
.c-editorial-trust,
.c-editorial-close {
    --editorial-ink: #0a1025;
    --editorial-muted: #4b546d;
    --editorial-blue: #333bca;
    --editorial-line: #d5d8e7;
    --editorial-space: clamp(58px, 8vw, 126px);
}

.c-site:has(.c-editorial-hero) .c-header {
    height: 74px;
    background: #fff;
}

@font-face {
    font-family: "Instrument Serif";
    src: url("./fonts/instrument-serif-italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

.c-editorial-hero {
    --c-link: #3637ac;
    --c-brand-ink: #fff;
    color: #11162a;
    background: radial-gradient(ellipse at 92% 4%, #e9e5ff 0%, transparent 52%),
        radial-gradient(ellipse at 17% 102%, #eeedfb 0%, transparent 54%), #fdfdff;
}

.c-editorial-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
    align-items: center;
    gap: clamp(28px, 4.5vw, 77px);
    padding-block: clamp(36px, 4.8vw, 78px) clamp(32px, 4vw, 64px);
}

.c-editorial-kicker {
    color: var(--editorial-blue);
    font-size: .875rem;
    font-weight: 670;
    line-height: 1.45;
    letter-spacing: .075em;
    text-transform: uppercase;
    margin: 0 0 19px;
}

.c-site .c-editorial-intro .c-editorial-kicker {
    margin: 0 0 26px;
    color: #454080;
}

.c-editorial-systems .c-editorial-kicker,
.c-editorial-close .c-editorial-kicker { color: #c3caff; }

.c-site .c-editorial-hero h1 {
    max-width: 13ch;
    margin: 0;
    color: #0c112a;
    font-size: clamp(52px, 5.35vw, 88px);
    font-weight: 565;
    line-height: .98;
    letter-spacing: -.069em;
}

.c-editorial-hero h1 em {
    color: #4d40ba;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.18em;
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.044em;
}

.c-site .c-editorial-hero-description {
    max-width: 41ch;
    margin: 22px 0 0;
    color: #414b63;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.6;
}

.c-editorial-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
}

.c-site .c-editorial-hero .c-button {
    min-height: 52px;
    border-radius: 999px;
    background: linear-gradient(115deg, #151c37, #283064);
    border-color: #151c37;
}

.c-site .c-editorial-hero .c-button:hover {
    background: #282d86;
    border-color: #282d86;
}

.c-site .c-editorial-hero .c-editorial-actions .c-text-link {
    min-height: 52px;
    padding-inline: 17px;
    font-size: .9375rem;
}

.c-editorial-hero-fallback {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.c-work-reel {
    min-width: 0;
    position: relative;
    align-self: center;
    border: 1px solid #fff;
    border-radius: clamp(14px, 2.15vw, 26px);
    padding: clamp(5px, .6vw, 10px);
    background: #ffffffc9;
    box-shadow: 0 24px 55px -34px #27246180, 0 5px 14px -9px #4935a14d;
}

.c-work-reel { display: grid; }
.c-work-project { display: grid; grid-template-rows: auto 1fr; grid-area: 1 / 1; min-width: 0; margin: 0; }
.c-site .c-work-project[hidden] { display: grid !important; visibility: hidden; }
.c-work-controls[hidden] { display: none; }

.c-work-stage {
    position: relative;
    aspect-ratio: 3 / 2;
    background: #c4bdf5 url("./product/portfolio-estudio.webp") center / cover no-repeat;
    border-radius: clamp(10px, 1.45vw, 19px);
}

/* The inset fits the display inside the 1536 × 1024 studio photograph. */
.c-work-stage .c-work-screen {
    position: absolute;
    left: 16.73%;
    top: 15.33%;
    width: 66.28%;
    height: 60.84%;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.c-work-project figcaption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 78px;
    padding: 13px clamp(5px, .8vw, 12px) 7px;
    line-height: 1.3;
}

.c-work-reel:has(.c-work-controls:not([hidden])) figcaption { padding-right: 146px; }

.c-site .c-work-client {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: #161b32;
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 625;
    letter-spacing: -.036em;
}

.c-site a.c-work-client:hover { color: #423aa2; }
.c-work-client svg { width: .68em; height: .68em; flex-shrink: 0; }

.c-work-sector {
    margin-bottom: 3px;
    color: #4c536a;
    font-size: .875rem;
    line-height: 1.5;
}

.c-work-controls {
    position: absolute;
    bottom: clamp(10px, 1.15vw, 16px);
    right: clamp(9px, 1.15vw, 16px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.c-work-count {
    color: #505873;
    margin-right: 5px;
    font-size: .8125rem;
    font-variant-numeric: tabular-nums;
}

.c-work-controls button {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    padding: 0;
    border: 1px solid #bfc4d8;
    border-radius: 50%;
    background: #fff;
    color: #1c2544;
    cursor: pointer;
}

.c-work-controls button:hover { background: #e6e6f8; border-color: #434a81; }
.c-work-controls button:focus-visible { outline: 3px solid #4941bc; outline-offset: 2px; }
.c-work-controls button svg { width: 18px; height: 18px; }
.c-work-controls [data-work-previous] svg { transform: rotate(180deg); }

.c-work-status {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.c-editorial-hero-index {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding-block: 16px 20px;
    border-top: 1px solid #d8dbee;
}

.c-site .c-editorial-hero-index a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: .45rem .65rem;
    border: 1px solid #dedff0;
    border-radius: 999px;
    background: #ffffffa3;
    color: #242b46;
    font-size: .875rem;
    font-weight: 620;
    line-height: 1.3;
    white-space: normal;
}

.c-editorial-hero-index a svg { width: 14px; height: 14px; flex: none; color: #6154bb; }
.c-site .c-editorial-hero-index a:hover { background: #f0ecff; border-color: #c4b8ed; color: #3a2e97; }
.c-site .c-editorial-hero-index .c-scroll-link { margin: 0; }

.c-site .c-editorial-services,
.c-site .c-editorial-systems,
.c-site .c-editorial-process,
.c-site .c-editorial-trust,
.c-site .c-editorial-close {
    padding-block: var(--editorial-space);
}

.c-editorial-services {
    --c-link: var(--editorial-blue);
    background: radial-gradient(ellipse at 6% 2%, #ece9ff, transparent 57%), #f8f8fc;
    color: var(--editorial-ink);
}

.c-editorial-columns {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(38px, 8vw, 124px);
    align-items: start;
}

.c-site .c-editorial-section-intro h2,
.c-site .c-editorial-process h2,
.c-site .c-editorial-close h2 {
    color: inherit;
    margin: 0;
    font-size: clamp(39px, 5.1vw, 73px);
    line-height: 1.03;
    letter-spacing: -.062em;
    font-weight: 610;
    text-wrap: balance;
}

.c-site .c-editorial-section-intro > p:not(.c-editorial-kicker),
.c-site .c-editorial-trust .c-editorial-columns > div > p:not(.c-editorial-kicker) {
    max-width: 43ch;
    margin: 17px 0 0;
    color: var(--editorial-muted);
    line-height: 1.65;
    font-size: clamp(16px, 1.4vw, 19px);
}

.c-editorial-service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.c-editorial-service-list article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    scroll-margin-top: 92px;
    padding: clamp(18px, 2.2vw, 29px);
    border: 1px solid #e0e1ef;
    border-radius: 17px;
    background: #fff;
}

.c-editorial-service-list article:focus-within,
.c-editorial-service-list article:hover { border-color: #bdb6e9; }

.c-editorial-service-list article > .c-text-link { margin-top: auto; }

.c-site .c-editorial-service-list h3,
.c-site .c-editorial-process-list h3 {
    margin: 0;
    color: inherit;
    font-size: clamp(25px, 2.7vw, 40px);
    line-height: 1.12;
    font-weight: 605;
    letter-spacing: -.043em;
}

.c-editorial-service-list h3 a { color: inherit; }
.c-editorial-service-list h3 a:hover { color: var(--editorial-blue); }
.c-site .c-editorial-service-list h3 { font-size: clamp(22px, 2.05vw, 31px); overflow-wrap: anywhere; }

.c-site .c-editorial-service-list p,
.c-site .c-editorial-process-list p {
    margin: 10px 0 5px;
    max-width: 50ch;
    color: var(--editorial-muted);
    line-height: 1.65;
}

.c-site .c-editorial-service-list p { margin-bottom: 18px; }

.c-editorial-systems {
    --c-link: #e7eaff;
    --agency-action-ink: #eef0ff;
    --agency-action-bg: #ffffff12;
    --agency-action-line: #bcc6fa63;
    --agency-action-hover: #ffffff23;
    --agency-action-focus: #d5ccff;
    background: radial-gradient(ellipse at 76% 0%, #202c60, transparent 73%), #101733;
    color: #fff;
}

.c-site .c-editorial-systems .c-editorial-section-intro > p:not(.c-editorial-kicker) {
    color: #d5dbf1;
    margin-bottom: 9px;
}

.c-editorial-module-list { display: grid; gap: 9px; }
.c-editorial-module {
    padding-inline: clamp(14px, 2vw, 25px);
    border: 1px solid #ffffff36;
    border-radius: 14px;
    background: #ffffff05;
}
.c-editorial-module[open] { background: #ffffff0c; }

.c-editorial-module summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #fff;
    padding: 17px 0;
    cursor: pointer;
    list-style: none;
    font-size: clamp(23px, 2.9vw, 38px);
    font-weight: 570;
    line-height: 1.16;
    letter-spacing: -.038em;
    min-height: 54px;
}

.c-editorial-module summary::-webkit-details-marker { display: none; }
.c-editorial-module summary:hover { color: #c9ceff; }

.c-editorial-toggle {
    position: relative;
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #8791b9;
}

.c-editorial-toggle::before,
.c-editorial-toggle::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 10px;
    height: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.c-editorial-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.c-editorial-module[open] .c-editorial-toggle::after { display: none; }

.c-editorial-module-description {
    max-width: 59ch;
    padding: 0 16px 19px 0;
    color: #d8def3;
}

.c-site .c-editorial-module-description p { color: inherit; margin: 2px 0 12px; }
.c-editorial-module-description ul { padding-inline-start: 20px; margin: 0 0 8px; }
.c-editorial-module-description li { margin-block: 4px; }

.c-editorial-module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.c-editorial-hero :focus-visible { outline: 2px solid #4537aa; outline-offset: 3px; }

.c-editorial-systems :focus-visible,
.c-editorial-close :focus-visible {
    outline: 2px solid #d2d8ff;
    outline-offset: 5px;
}

.c-editorial-process {
    background: #fff;
    color: var(--editorial-ink);
}

.c-editorial-process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 60px);
    margin-top: 37px;
}

.c-editorial-process-list article {
    border-top: 1px solid var(--editorial-line);
    padding-top: 19px;
}

.c-editorial-trust {
    --c-link: var(--editorial-blue);
    background: #f0f2ff;
    color: var(--editorial-ink);
}

.c-editorial-trust .c-text-link { margin: 10px 24px 0 0; }

.c-editorial-close {
    --c-brand-ink: #0a1025;
    background: radial-gradient(ellipse at 95% 110%, #3645bd, transparent 74%), #101733;
    color: #fff;
}

.c-editorial-close .c-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    align-items: start;
    gap: clamp(32px, 6vw, 90px);
}

.c-site .c-editorial-close .c-container > div > p:not(.c-editorial-kicker) {
    margin: 16px 0 0;
    color: #e0e5ff;
    font-size: 18px;
    line-height: 1.6;
}

.c-editorial-contact-options { display: grid; gap: 8px; }
.c-site .c-editorial-contact-options a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 12px 16px;
    border: 1px solid #c6ceff5c;
    border-radius: 11px;
    background: #ffffff0b;
    color: #fff;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.4;
}
.c-site .c-editorial-contact-options a:hover { border-color: #c6ceff; background: #ffffff21; }
.c-editorial-contact-options svg { width: 20px; height: 20px; flex-shrink: 0; }

@media (max-width: 860px) {
    .c-editorial-columns,
    .c-editorial-close .c-container { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 760px) {
    .c-editorial-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .c-site .c-editorial-hero h1 { font-size: clamp(50px, 9.4vw, 72px); }
    .c-site .c-editorial-intro .c-editorial-kicker { margin-bottom: 15px; }
    .c-editorial-actions { margin-top: 20px; }
    .c-work-project figcaption { min-height: 72px; }
}

@media (min-width: 541px) and (max-width: 1160px) {
    .c-editorial-hero-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
    .c-site:has(.c-editorial-hero) .c-header { height: 68px; }
    .c-editorial-hero-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-site .c-editorial-hero-index a {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 14px;
        padding-inline: .6rem;
        border-radius: 10px;
        font-size: .8125rem;
        overflow-wrap: anywhere;
    }
    .c-editorial-service-list { grid-template-columns: 1fr; }
    .c-editorial-process-list { grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
}

@media (max-width: 420px) {
    .c-site .c-editorial-hero h1 { max-width: none; font-size: clamp(40px, 11.5vw, 49px); }
    .c-editorial-actions { gap: 7px; }
    .c-site .c-editorial-hero .c-editorial-actions :is(.c-button, .c-text-link) {
        min-height: 48px;
        padding-inline: 11px;
        font-size: .875rem;
    }
    .c-editorial-actions svg { width: 16px; height: 16px; }
}

@media (max-width: 359px) {
    .c-editorial-actions .c-text-link > svg { display: none; }
    .c-work-count { display: none; }
    .c-work-reel:has(.c-work-controls:not([hidden])) figcaption { padding-right: 104px; }
}
