/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.header--scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.06em;
}

.nav__list {
    display: flex;
    gap: 3rem;
}

.nav__link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 1.18rem;
    padding: 0.35rem 0.8rem;
}

.nav__icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.nav__label {
    display: block;
    font-size: 0.75rem;
    line-height: 1;
}

/* Responsive: icons-only on small screens */
@media (max-width: 768px) {
    /* keep labels visible inside the off-canvas menu */
    .nav__label { display: block; }
    .nav__link, .nav__btn { padding: 0.35rem 0.6rem; }
    .nav__list { gap: 1rem; }
    .nav__icon { width: 20px; height: 20px; }
    /* make active pill smaller to circle around icon when labels hidden */
    .nav__link--active::before, .nav__btn.nav__active::before {
        width: 44px;
        height: 44px;
    }
}

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

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav__toggle--active span:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ===== SECTION BASE ===== */
.section {
    padding: 7rem 0;
}

/* CV page: use MADE Mirage (site heading font) for headings only */
.cv h1,
.cv h2,
.cv h3,
.cv h4,
.cv h5,
.cv h6 {
    font-family: var(--font-heading);
}

.section__title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* ===== LIGHT SECTIONS ===== */
.section--light {
    background: var(--white);
}

/* Poster-style adjustments for light sections */
.section--light {
    color: var(--light-text);
}

.section--light .section__title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Left-align title for the Work/Selected Projects section */
.section.work .section__title,
.section#work .section__title {
    text-align: left;
}

/* Left-align Services header and ensure Mirage font for service titles */
.section.services .section__title,
.section#services .section__title,
.section.process .section__title,
.section#process .section__title {
    text-align: left;
}

.section.services .section__eyebrow {
    font-family: var(--font-heading) !important;
    color: var(--muted);
}

.services__grid .service__item span:last-child {
    font-family: var(--font-body);
    color: var(--muted);
}

.section--light .about__title {
    color: var(--light-text);
    
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.section--light .about__text {
    color: var(--muted-2);
    font-size:1rem;
    text-align: center;
}

.section--light .section__title,
.section--light .about__title,
.section--light .about__text,
.section--light .columns__heading,
.section--light .columns__list li,
.section--light .work__title,
.section--light .work__description,
.section--light .work__tag,
.section--light .work__link,
.section--light .service__item,
.section--light .form__label,
.section--light .form__input,
.section--light .form__textarea {
    color: var(--light-text);
}

.section--light .work__card {
    background: var(--light-bg);
    border-color: var(--light-border);
}

.section--light .work__card:hover {
    border-color: var(--bg);
}

.section--light .work__image-placeholder {
    background: linear-gradient(145deg, var(--light-bg), var(--border-light));
    color: var(--light-text-hint);
}

.section--light .work__tag {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--light-border);
}

.section--light .form__input,
.section--light .form__textarea {
    background: var(--light-bg);
    border-color: var(--light-border);
    color: var(--light-text);
}

.section--light .form__submit {
    border-color: var(--light-text);
    color: var(--light-text);
}

.section--light .form__submit:hover {
    border-color: var(--bg);
    color: var(--bg);
}

.section--light .contact__link svg {
    opacity: 0.6;
}

.section--light.work,
.section--light.services,
.section--light.contact,
.section--light + .section--light {
    border-top-color: var(--light-border);
}

/* ===== ABOUT ===== */
.about {
    padding: 8rem 0 4rem;
    border-bottom: 1px solid var(--light-border);
}

.about__content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about__text {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== THREE COLUMNS ===== */
.columns {
    padding: 5rem 0 7rem;
}

.columns__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.columns__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.columns__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin:0 auto;
    font-size: 3.5rem;
}
.columns__icon i{
    color:var(--dark-1);
}
.columns__heading {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.columns__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    max-width: 320px; /* keep list block a consistent width so items align */
    margin: 0 auto;
}

.columns__list li {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* keep icon left of text */
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-muted-medium);
    line-height: 1.6;
    padding: 0.5rem 0;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
}

.columns__list li:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.04);
    color: var(--bg);
}

/* ===== WORK / PROJECTS ===== */
.work {
    border-top: 1px solid var(--border-very-dark);
}

.work__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.1rem;
}

.work__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(17, 17, 17, 0.02);
}

.work__card:hover {
    box-shadow: 0 14px 32px rgba(25, 25, 25, 0.08);
    transform: translateY(-6px);
    border-color: rgba(17, 17, 17, 0.12);
}

.work__image {
    position: relative;
    overflow: hidden;
    background: #f3f1ee;
}

.work__image-placeholder {
    aspect-ratio: 16 / 11;
    background: linear-gradient(145deg, var(--light-bg), var(--white));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    transition: color 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.work__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.work__card:hover .work__image-placeholder {
    color: var(--bg);
}

.work__card:hover .work__image-img {
    transform: scale(1.03);
}

.work__image-icon {
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 2rem;
}

.work__card:hover .work__image-icon {
    opacity: 0.8;
    transform: scale(1.05);
}

.work__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.65rem 1.5rem 1.7rem;
    color: var(--light-text-secondary);
}

.work__title {
    font-family: var(--font-heading);
    font-size: 1.48rem;
    font-weight: 400;
    color: var(--light-text);
    margin: 0 0 0.7rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.work__description {
    font-size: 0.9rem;
    color: var(--muted-2);
    line-height: 1.72;
    margin: 0 0 1.15rem;
}

.work__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
}

.work__tag {
    padding: 0.3rem 0.7rem;
    background: rgba(17, 17, 17, 0.02);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted-3);
    letter-spacing: 0.02em;
}

.work__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted-3);
    transition: color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.02em;
    margin-top: auto;
    padding-top: 0.15rem;
}

.work__link:hover {
    color: var(--bg);
    transform: translateX(1px);
}

/* ===== WORK STATUS BADGE ===== */
/* The badge deliberately carries no colour of its own: every status reuses the
   same border/ink recipe and differs only in weight, so the label does the
   work. letter-spacing needs !important to survive the global
   `* { letter-spacing: 0 !important }` reset further down this file. */
.work__status {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.7rem;
    border: 1px solid var(--status-line, rgba(17, 17, 17, 0.12));
    border-radius: 999px;
    background: var(--status-bg, transparent);
    color: var(--status-ink, var(--muted-3));
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.work__status--live { --status-ink: var(--ink); --status-line: rgba(47, 125, 109, 0.45); }
.work__status--in_progress { --status-line: rgba(17, 17, 17, 0.22); }
.work__status--completed { --status-ink: var(--muted-2); }
.work__status--concept { --status-line: rgba(17, 17, 17, 0.08); --status-ink: var(--light-text-muted-lightest); }
.work__status--archived { --status-line: rgba(17, 17, 17, 0.07); --status-ink: var(--light-text-hint); }

/* The homepage card is dark, transparent and square-cornered, so the badge has
   to be re-tuned against white-on-black rather than reusing the light rules.
   `.work__info` is a flex column with a 0.65rem gap, so the badge inherits its
   own spacing and must not add a margin on top of it. */
.home-page .work__status {
    margin-bottom: 0;
    border-radius: 0;
    --status-line: rgba(255, 255, 255, 0.18);
    --status-ink: rgba(255, 255, 255, 0.62);
}
.home-page .work__status--live { --status-line: rgba(47, 125, 109, 0.55); --status-ink: rgba(255, 255, 255, 0.88); }
.home-page .work__status--in_progress { --status-line: rgba(255, 255, 255, 0.28); --status-ink: rgba(255, 255, 255, 0.7); }
.home-page .work__status--completed { --status-ink: rgba(255, 255, 255, 0.5); }
.home-page .work__status--concept { --status-line: rgba(255, 255, 255, 0.1); --status-ink: rgba(255, 255, 255, 0.42); }
.home-page .work__status--archived { --status-line: rgba(255, 255, 255, 0.08); --status-ink: rgba(255, 255, 255, 0.34); }

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

/* ===== SERVICES ===== */
.services {
    border-top: 1px solid var(--border-very-dark);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 800px;
}

.service__item {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border: 1px solid var(--work-border);
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 400 !important;
    color: var(--muted);
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.service__item:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* ===== CONTACT ===== */
.contact {
    border-top: 1px solid var(--border-very-dark);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted-medium);
    transition: color 0.2s ease;
}

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

.contact__link svg {
    flex-shrink: 0;
    opacity: 0.5;
}

/* Form */
.form__group {
    margin-bottom: 1.25rem;
}

.form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-3);
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--dark-2);
    border: 1px solid var(--border-dark);
    border-radius: 0;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--accent);
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--accent);
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__submit {
    width: 100%;
    padding: 0.9rem;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.form__submit:hover {
    border-color: var(--bg);
    color: var(--bg);
}

/* ===== FOOTER ===== */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--dark-1);
}

/* ===== FLOATING FUN FACT ===== */
.floating-fact {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 200;
    background: var(--bg);
    color: var(--light-text-hint);
    border: 1px solid var(--border-subtle);
    padding: 1rem 1.25rem;
    max-width: 320px;
    font-size: 0.82rem;
    line-height: 1.6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: factFadeIn 0.5s ease;
}

@keyframes factFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.floating-fact__close {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--light-text-muted-lighter);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.floating-fact__close:hover { color: var(--white); }

.floating-fact__label {
    display: flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.floating-fact__text { margin: 0; }

.floating-fact--hidden { display: none; }

/* ===== FLOATING WHATSAPP ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    animation: factFadeIn 0.5s ease;
}

.floating-whatsapp:hover {
    border-color: var(--white);
    transform: scale(1.05);
}

.floating-whatsapp svg {
    width: 22px;
    height: 22px;
}

.floating-cv {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(47, 125, 109, 0.35);
    animation: factFadeIn 0.5s ease;
}

.floating-cv:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(47, 125, 109, 0.5);
    color: var(--white);
} 

/* ===== PAGE TRANSITIONS ===== */
.page-content {
    opacity: 1;
    transition: opacity 0.25s ease;
}

.nav__link--active {
    color: var(--text);
}

/* ===== WORK FILTERS ===== */
.work__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.work__filter {
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1px solid var(--light-border);
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--light-text-muted-lighter);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.work__filter:hover {
    border-color: var(--bg);
    color: var(--bg);
}

.work__filter--active {
    background: var(--bg);
    border-color: var(--bg);
    color: var(--white);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    border-top: 1px solid var(--light-border);
}

/* ===== BLOG ===== */
.blog-page,
.blog-preview {
    border-top: 1px solid var(--light-border);
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog__card {
    border: 1px solid var(--light-border);
    background: var(--card-bg-light);
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease;
}

.blog__card:hover {
    border-color: var(--bg);
}

.blog__card-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--light-bg);
}

.blog__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog__card:hover .blog__card-image img {
    transform: scale(1.03);
}

.blog__card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog__date {
    font-size: 0.75rem;
    color: var(--light-text-muted-lightest);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.blog__card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog__card-summary {
    font-size: 0.88rem;
    color: var(--light-text-muted-lighter);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--light-text);
    transition: gap 0.2s ease;
}

.blog__read-more:hover {
    gap: 0.6rem;
}

.blog__empty {
    text-align: center;
    color: var(--light-text-muted-lightest);
    padding: 3rem 0;
    font-size: 1.1rem;
}

/* ===== EDITORIAL MAGAZINE ===== */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 200;
    background: transparent;
    pointer-events: none;
}

.reading-progress__bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--dark-1), var(--color-warning));
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
    border-radius: 0 2px 2px 0;
}

/* Article Wrapper */
.editorial {
    background: var(--paper);
    padding-bottom: 0;
}

/* Hero */
.editorial__hero {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 2rem 0;
}

.editorial__hero-img {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.editorial__hero-img img {
    width: 100%;
    display: block;
    max-height: 440px;
    object-fit: cover;
}

/* Text below hero */
.editorial__hero-text {
    text-align: left;
}

.editorial__hero-inner {
    max-width: 720px;
}

/* Back Link */
.editorial__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.editorial__back:hover {
    color: var(--ink);
}

/* Meta (tag + read time) */
.editorial__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.editorial__tag {
    background: var(--dark-1);
    color: var(--white);
    padding: 0.25rem 0.7rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.editorial__dot {
    opacity: 0.4;
}

/* Title */
.editorial__title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.08;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

/* Subtitle */
.editorial__subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 1.5rem;
    max-width: 560px;
    font-weight: 300;
}

/* Byline */
.editorial__byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.editorial__author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.editorial__author-avatar svg {
    width: 20px;
    height: 20px;
}

.editorial__author-info {
    display: flex;
    flex-direction: column;
}

.editorial__author-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
}

.editorial__date {
    font-size: 0.78rem;
    color: var(--muted);
}

/* Body */
.editorial__body {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2rem 0;
}

/* Content */
.editorial__content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink);
}

.editorial__content > *:first-child {
    margin-top: 0;
}

.editorial__content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary-dark);
}

.editorial__content h2,
.editorial__content h3,
.editorial__content h4 {
    font-family: var(--font-heading);
    color: var(--ink);
    font-weight: 400;
    margin: 3rem 0 1.25rem;
    line-height: 1.2;
}

.editorial__content h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    letter-spacing: -0.01em;
}

.editorial__content h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
}

.editorial__content h4 {
    font-size: 1.2rem;
}

.editorial__content ul,
.editorial__content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.editorial__content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary-dark);
}

.editorial__content li::marker {
    color: var(--dark-1);
}

.editorial__content a {
    color: var(--dark-1);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s;
}

.editorial__content a:hover {
    color: var(--accent-dark);
}

.editorial__content blockquote {
    position: relative;
    border: none;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    background: linear-gradient(135deg, rgba(29,93,81,0.04), rgba(201,148,69,0.04));
    border-radius: 12px;
    border-left: 4px solid var(--dark-1);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--ink);
    font-style: italic;
}

.editorial__content blockquote p {
    margin-bottom: 0;
    color: var(--ink);
}

.editorial__content code {
    background: rgba(29,93,81,0.08);
    color: var(--dark-1);
    padding: 0.15rem 0.45rem;
    font-size: 0.88em;
    border-radius: 4px;
    overflow-wrap: break-word;
    font-weight: 500;
}

.editorial__content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
}

.editorial__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.editorial__content pre {
    background: var(--ink);
    color: #e8e0d8;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.88rem;
    line-height: 1.7;
}

.editorial__content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-weight: 400;
}

.editorial__content hr {
    border: none;
    height: 1px;
    background: var(--line);
    margin: 3rem 0;
}

.editorial__content strong {
    color: var(--ink);
    font-weight: 600;
}

/* Editorial Row (alternating image/text sections) */
.editorial__content .ed-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3.5rem 0;
}

.editorial__content .ed-row--reverse {
    direction: rtl;
}

.editorial__content .ed-row--reverse > * {
    direction: ltr;
}

.editorial__content .ed-row__media {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.editorial__content .ed-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.editorial__content .ed-row__text {
    padding: 1rem 0;
}

.editorial__content .ed-row__text h2,
.editorial__content .ed-row__text h3 {
    margin-top: 0;
}

/* Pull Quote */
.editorial__content .pull-quote {
    position: relative;
    padding: 3rem 2.5rem;
    margin: 3.5rem -2rem;
    background: var(--ink);
    border-radius: 16px;
    text-align: center;
}

.editorial__content .pull-quote p {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    line-height: 1.5;
    color: var(--white);
    margin-bottom: 0;
    font-style: italic;
}

.editorial__content .pull-quote::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    color: var(--dark-1);
    opacity: 0.4;
}

/* Highlight Box */
.editorial__content .highlight-box {
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    background: linear-gradient(135deg, rgba(29,93,81,0.06), rgba(29,93,81,0.02));
    border: 1px solid rgba(29,93,81,0.15);
    border-radius: 12px;
    border-left: 4px solid var(--dark-1);
}

.editorial__content .highlight-box p {
    margin-bottom: 0;
}

/* Key Takeaways */
.editorial__content .key-takeaways {
    padding: 2rem 2rem 2rem 3.5rem;
    margin: 3rem 0;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: 12px;
    position: relative;
}

.editorial__content .key-takeaways::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 1.5rem;
    width: 8px;
    height: 8px;
    background: var(--dark-1);
    border-radius: 50%;
}

.editorial__content .key-takeaways h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dark-1);
    margin: 0 0 1rem;
    font-family: var(--font-body);
    font-weight: 700;
}

/* Stats Card */
.editorial__content .stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 3rem 0;
}

.editorial__content .stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.editorial__content .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.editorial__content .stat-card__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--dark-1);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.editorial__content .stat-card__label {
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* Callout */
.editorial__content .callout {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    background: rgba(201,148,69,0.06);
    border: 1px solid rgba(201,148,69,0.2);
    border-radius: 12px;
    align-items: flex-start;
}

.editorial__content .callout-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.15rem;
}

.editorial__content .callout p {
    margin-bottom: 0;
}

/* Editorial Divider */
.editorial__content .ed-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3.5rem 0;
    color: var(--line);
}

.editorial__content .ed-divider::before,
.editorial__content .ed-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.editorial__content .ed-divider i {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* End of Article */
.editorial__end {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

/* Share */
.editorial__share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.editorial__share-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.editorial__share-btns {
    display: flex;
    gap: 0.5rem;
}

.editorial__share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper-strong);
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.editorial__share-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--paper);
}

.editorial__share-btn--copy.copied {
    border-color: var(--dark-1);
    color: var(--dark-1);
    background: rgba(29,93,81,0.06);
}

/* Author Card */
.editorial__author-card {
    display: flex;
    gap: 1.25rem;
    padding: 2rem;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.editorial__author-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--dark-1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.editorial__author-card-avatar svg {
    width: 26px;
    height: 26px;
}

.editorial__author-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.editorial__author-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 500;
}

.editorial__author-card-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--ink);
}

.editorial__author-card-bio {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 0.25rem;
}

/* Prev / Next Navigation */
.editorial__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 3rem 2rem;
    max-width: 720px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.editorial__nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-strong);
    text-decoration: none;
    transition: all 0.25s ease;
    min-width: 0;
}

.editorial__nav-link:hover {
    border-color: var(--ink);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.editorial__nav-link--next {
    text-align: right;
    align-items: flex-end;
}

.editorial__nav-direction {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.editorial__nav-link--next .editorial__nav-direction {
    justify-content: flex-end;
}

.editorial__nav-direction i {
    font-size: 0.65rem;
}

.editorial__nav-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Related Articles */
.editorial__related {
    padding: 4rem 2rem;
    max-width: 1120px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.editorial__related-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.editorial__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.editorial__related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-strong);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.editorial__related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.editorial__related-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.editorial__related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.editorial__related-card:hover .editorial__related-img img {
    transform: scale(1.04);
}

.editorial__related-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.editorial__related-date {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.editorial__related-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.editorial__related-summary {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== CV PAGE ===== */
.cv {
    border-top: 1px solid var(--light-border);
    padding: 5rem 0 6rem;
    line-height: 1.5;
    color: var(--light-text);
}

/* Override global `* { letter-spacing: 0 !important }` for CV headings */
.cv .cv__section h3,
.cv .cv__sidebar-title {
    letter-spacing: 0.5px !important;
}

/* ===== CV TOOLBAR ===== */
.cv__toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.cv__print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    background: var(--white);
    color: var(--light-text-tertiary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.cv__print-btn:hover {
    border-color: var(--bg);
    color: var(--bg);
    background: var(--card-bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* ===== CV PAPER ===== */
.cv__paper {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 40px -12px rgba(0, 20, 30, 0.15);
    overflow: hidden;
}

/* ===== CV HEADER / TOP BAR ===== */
.cv__hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    background: var(--card-bg-light);
    border-bottom: 1px solid var(--light-border);
}

.cv__name-title {
    font-size: 2.4rem;
    letter-spacing: -0.02em;
    color: var(--light-text);
    margin-bottom: 0.2rem;
}

.cv__name-title h1 {
    font-family: var(--font-heading) !important;
    font-size: 2.4rem;
    text-transform: lowercase !important;

    font-weight: 300;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
}

.cv__avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
 }

.cv__badge {
    display: inline-block;
    letter-spacing: 5px !important;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: var(--dark-1);
    margin-top: 0.2rem;
}

.cv__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 1.8rem;
    font-size: 0.9rem;
    color: var(--light-text-tertiary);
}

/* ===== MAIN LAYOUT ===== */
.cv__body {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 0;
    background: var(--white);
}

/* ===== SIDEBAR (LEFT) ===== */
.cv__sidebar {
    background: var(--light-bg);
    padding: 2rem 1.8rem;
    border-right: 1px solid var(--light-border);
}

.cv__sidebar-section {
    margin-bottom: 2.2rem;
}

.cv__sidebar-section:last-child {
    margin-bottom: 0;
}

.cv__sidebar-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px !important;
    font-weight: 700;
    color: var(--light-text);
    border-bottom: 2px solid var(--light-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.2rem;
}

.cv__sidebar-title i {
    color: var(--accent);
    width: 1.1rem;
    margin-right: 6px;
}

/* Summary */
.cv__text {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

/* Skills */
.cv__skill-list {
    list-style: none;
    padding: 0;
}

.cv__skill-list li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--light-border);
}

.cv__skill-list li:last-child {
    border-bottom: none;
}

.cv__skill-list i {
    color: var(--accent);
    width: 1.1rem;
    font-size: 0.8rem;
}

.cv__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.8rem;
}

.cv__tag {
    display: inline-block;
    background: var(--card-bg-light);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--light-text);
    margin: 0.15rem 0.1rem;
}

/* GitHub Stats */
.cv__gh-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.cv__gh-stat {
    text-align: center;
    padding: 0.8rem 0.5rem;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    background: var(--white);
}

.cv__gh-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--light-text);
    line-height: 1.1;
}

.cv__gh-stat-label {
    display: block;
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.3rem;
}

/* Languages */
.cv__lang {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--light-border);
}

.cv__lang:last-child {
    border-bottom: none;
}

.cv__lang-level {
    color: var(--accent);
    font-weight: 500;
}

/* ===== MAIN CONTENT (RIGHT) ===== */
.cv__main {
    padding: 2rem 2.2rem;
    background: var(--white);
}

.cv__section {
    margin-bottom: 2.2rem;
}

.cv__section:last-child {
    margin-bottom: 0;
}

.cv__section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px !important;
    font-weight: 700;
    color: var(--light-text);
    border-bottom: 2px solid var(--light-border);
    padding-bottom: 0.4rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cv__section h3 i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* ===== WORK EXPERIENCE ===== */
.cv__work-entry {
    margin-bottom: 1.8rem;
}

.cv__work-entry:last-child {
    margin-bottom: 0;
}

.cv__work-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.cv__work-head-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--light-text);
}

.cv__work-head-title .cv__company {
    font-weight: 600;
    color: var(--accent);
}

.cv__work-head .cv__date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--light-text);
    background: var(--card-bg-light);
    padding: 0.15rem 0.8rem;
    border-radius: 30px;
    white-space: nowrap;
}

.cv__work-desc {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 0.2rem;
}

.cv__work-desc li {
    font-size: 0.9rem;
    color: var(--light-text);
    padding: 0.2rem 0 0.2rem 1.4rem;
    position: relative;
    line-height: 1.5;
}

.cv__work-desc li::before {
    content: "\25B9";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* ===== PROJECTS ===== */
.cv__project-item {
    margin-bottom: 0.8rem;
}

.cv__project-item strong {
    color: var(--light-text);
    font-weight: 700;
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print { display: none !important; }

    body {
        background: var(--white) !important;
        color: var(--light-text) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cv {
        padding: 0;
        border-top: none;
    }

    .cv__paper {
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .cv__hero {
        padding: 2rem 2.5rem 1.5rem;
        background: none !important;
    }

    .cv__body {
        grid-template-columns: 1fr 2.2fr;
    }

    .cv__main {
        padding: 1.5rem 2.5rem;
        border-right: 1px solid var(--light-border);
    }

    .cv__sidebar {
        padding: 1.5rem 2rem;
        background: none;
    }

    .cv__sidebar-section {
        break-inside: avoid;
    }

    .cv__section {
        margin-bottom: 1.25rem;
        break-inside: avoid;
    }

    .cv__work-entry {
        break-inside: avoid;
    }

    .cv__section h3,
    .cv__sidebar-title {
        border-bottom-color: var(--light-border);
    }

    .cv__tag {
        background: var(--card-bg-light);
        color: var(--light-text);
    }

    .cv__date {
        background: var(--card-bg-light);
        color: var(--light-text);
    }

    .nav, .footer, .floating-cv, .floating-whatsapp, .floating-fact {
        display: none !important;
    }

    .section {
        padding: 0;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* Override global heading font for CV: use site heading font (MADE Mirage) */
.cv h1, .cv h2, .cv h3, .cv h4, .cv h5, .cv h6 {
    font-family: var(--font-heading) !important;
}

/* ===== 404 PAGE ===== */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--white);
}

.page-404__code {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 18vw, 8rem);
    font-weight: 400;
    color: var(--light-text);
    line-height: 1;
    margin-bottom: 1rem;
}

.page-404__text {
    font-size: 1.2rem;
    color: var(--light-text-muted-lighter);
    margin-bottom: 2rem;
}

.page-404__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--light-text);
    font-size: 0.9rem;
    color: var(--light-text);
    transition: all 0.2s ease;
}

.page-404__link:hover {
    background: var(--light-text);
    color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .work__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media screen and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 5rem 0;
    }

    .section__title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Nav - off-canvas menu for small screens (hamburger) */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 5rem 2rem 2rem;
        transition: right 0.35s ease;
        border-left: 1px solid var(--border-very-dark);
        z-index: 99;
    }

    .nav__menu--open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
    }

    .nav__link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .nav__toggle {
        display: flex;
        z-index: 100;
    }

    /* About */
    .about__title {
        font-size: 2.25rem;
    }

    .about__text {
        font-size: 1.05rem;
    }

    /* Columns */
    .columns__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .columns__heading {
        font-size: 1.15rem;
    }

    /* Work */
    .work__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Blog */
    .blog__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Editorial */
    .editorial__hero {
        padding-top: 4rem;
    }

    .editorial__hero-img img {
        max-height: 340px;
    }

    .editorial__body {
        padding-top: 2.5rem;
    }

    .editorial__content .ed-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .editorial__content .ed-row--reverse {
        direction: ltr;
    }

    .editorial__content .stats-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .editorial__content .pull-quote {
        margin-left: 0;
        margin-right: 0;
    }

    .editorial__nav {
        padding: 2rem 1.5rem;
    }

    .editorial__related-grid {
        grid-template-columns: 1fr;
    }

    .editorial__related {
        padding: 3rem 1.5rem;
    }

    /* Services */
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* CV */
    .cv__body {
        grid-template-columns: 1fr;
    }

    .cv__sidebar {
        border-right: none;
        border-bottom: 1px solid #e6ecf3;
    }

    .cv__hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cv__contacts {
        gap: 0.8rem 1.2rem;
    }
}

/* ===== HOMEPAGE ABOUT INTRO ===== */
.home-page .about__content {
    max-width: 100%;
}

.home-page .about__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(3rem, 9vw, 9rem);
    align-items: end;
    padding: 1.5rem 0 3.5rem;
    border-bottom: 1px solid var(--line);
}

.home-page .about__title {
    margin: 0;
    text-align: left;
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    line-height: 0.88;
    letter-spacing: -0.065em;
}

.home-page .about__title em {
    color: var(--muted);
    font-style: italic;
}

.home-page .about__copy {
    max-width: 430px;
    padding-bottom: 0.35rem;
}

.home-page .about__lead {
    max-width: 360px;
    margin: 0 0 1.5rem;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.1;
}

.home-page .about__text {
    max-width: none;
    margin: 0 0 0.9rem;
    text-align: left;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.home-page .about__text:last-child {
    margin-bottom: 0;
}

.home-page .about__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2.5rem;
    padding-top: 1.25rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media screen and (max-width: 700px) {
    .home-page .about__intro {
        grid-template-columns: 1fr;
        gap: 2.75rem;
        padding-top: 0.75rem;
        padding-bottom: 2.5rem;
    }

    .home-page .about__title {
        font-size: clamp(3.5rem, 17vw, 5.5rem);
    }

    .home-page .about__details {
        gap: 0.7rem 1.5rem;
    }
}

@media screen and (min-width: 901px) {
    .home-page .contact__intro .services__intro-heading {
        justify-self: end;
        width: 100%;
    }
}

/* ===== FINAL SHARED POLISH ===== */
:root {
    --site-max-width: 1180px;
    --site-radius: 10px;
    --site-line: rgba(24, 21, 17, 0.14);
    --site-focus: rgba(47, 125, 109, 0.22);
}

.container {
    max-width: var(--site-max-width);
    padding-right: clamp(1.25rem, 3vw, 2.5rem);
    padding-left: clamp(1.25rem, 3vw, 2.5rem);
}

.section {
    scroll-margin-top: 5rem;
}

.section__eyebrow {
    color: var(--accent-dark);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
}

.contact__text,
.about__text,
.services__intro-copy p,
.work__description,
.process__desc,
.service__desc {
    text-wrap: pretty;
}

.section__cta,
.form__submit,
.footer__btn,
.nav__btn {
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.section__cta:focus-visible,
.form__submit:focus-visible,
.footer__btn:focus-visible,
.nav__link:focus-visible,
.nav__btn:focus-visible,
.form__input:focus-visible,
.form__textarea:focus-visible,
.subscribe__input:focus-visible {
    outline: 3px solid var(--site-focus);
    outline-offset: 3px;
}

.header {
    padding: 1.1rem 0;
}

.nav__list {
    gap: clamp(1rem, 2.4vw, 2.2rem);
}

.nav__link {
    border-radius: 999px;
}

.nav__link:hover,
.nav__link--active {
    background: rgba(255, 255, 255, 0.08);
}

.home-page .work__card,
.home-page .blog__card,
.home-page .process__item,
.home-page .service__item {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-page .work__card:hover,
.home-page .blog__card:hover,
.home-page .service__item:hover {
    border-color: rgba(47, 125, 109, 0.45);
}

.form__input,
.form__textarea,
.subscribe__input {
    min-height: 48px;
}

.form__input:focus,
.form__textarea:focus,
.subscribe__input:focus {
    border-color: var(--accent);
    box-shadow: 0 2px 0 var(--accent);
}

.footer__group a,
.footer__meta-links a,
.contact__link,
.blog__read-more,
.work__link {
    text-underline-offset: 0.22em;
}

.footer__group a:hover,
.footer__meta-links a:hover,
.contact__link:hover,
.blog__read-more:hover,
.work__link:hover {
    text-decoration: underline;
}

.inner-page .page-content {
    min-height: calc(100vh - 5rem);
}

.inner-page__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 4rem;
    align-items: end;
    margin-bottom: 4rem;
}

.inner-page__intro .section__title {
    margin: 0.8rem 0 0;
    text-align: left;
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    line-height: 0.88;
}

.inner-page__intro-copy {
    max-width: 360px;
    margin: 0 0 0.35rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.inner-page .blog-page .blog__grid {
    gap: 1.5rem;
}

.inner-page .blog__card {
    border-radius: var(--site-radius);
    border-color: var(--site-line);
    box-shadow: 0 8px 24px rgba(24, 21, 17, 0.05);
}

.inner-page .blog__card:hover {
    box-shadow: 0 18px 40px rgba(24, 21, 17, 0.1);
}

.inner-page .cv__paper {
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    box-shadow: 0 18px 50px rgba(24, 21, 17, 0.08);
}

@media screen and (max-width: 700px) {
    .inner-page__intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.75rem;
    }

    .inner-page__intro .section__title {
        font-size: clamp(3rem, 14vw, 5rem);
    }
}

@media screen and (max-width: 768px) {
    .header {
        padding: 0.8rem 0;
    }

    .section {
        scroll-margin-top: 4rem;
    }

    .home-page .services__intro-copy,
    .home-page .contact__details .contact__links {
        max-width: none;
    }
}

/* ===== HOMEPAGE EDITORIAL SECTIONS ===== */
.home-page .about,
.home-page .columns,
.home-page .services,
.home-page .process,
.home-page .contact,
.home-page .subscribe {
    border-top: 0;
    border-bottom: 0;
    background: var(--white);
}

/* Cable aesthetic: a few cube sketches scattered through the whitespace
   around Services → Ideas Worth Sharing. Cubes are placed individually by
   JS (see the CUBE_CONFIG block in templates/index.html); positions are
   stored as % of the cable-band and can be tuned with the dev positioner UI. */
.home-page .cable-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--white);
}

/* Layer holding the cube `<img>` elements (kept empty in production markup) */
.home-page .cable-band__cubes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* A single cube sketch */
.home-page .cable-band__cube {
    position: absolute;
    width: clamp(120px, 14vw, 230px);
    aspect-ratio: 591 / 373;
    opacity: 0.45;
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%);
}

@media screen and (max-width: 700px) {
    .home-page .cable-band__cube {
        width: clamp(92px, 26vw, 150px);
        opacity: 0.32;
    }
}

.home-page .cable-band > .section {
    position: relative;
    z-index: 1;
    background: transparent;
}

.home-page .cable-band .container {
    position: relative;
    z-index: 1;
}

.home-page .about {
    padding: 6rem 0 4.5rem;
}

.home-page .about__content {
    max-width: 720px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-page .about__title {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    margin-bottom: 1.4rem;
}

.home-page .about__text {
    max-width: 580px;
    font-size: 0.98rem;
    line-height: 1.75;
}

.home-page .about__title[style] {
    margin-top: 2.25rem !important;
    font-family: var(--font-body) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
}

.home-page .columns {
    padding: 4.5rem 0 6rem;
    border-top: 1px solid var(--line);
}

.home-page .columns__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.home-page .columns__item {
    min-height: 230px;
    padding: 1.4rem 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-page .columns__icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1.4rem;
    filter: none;
}

.home-page .columns__heading {
    margin-bottom: 0.9rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
}

.home-page .columns__list {
    max-width: 180px;
    gap: 0.35rem;
}

.home-page .columns__list li {
    justify-content: center;
    width: auto;
    padding: 0;
    border: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.home-page .columns__list li:hover {
    background: transparent;
    color: var(--muted);
}

.home-page .work {
    padding: 7rem 0;
    background: var(--ink);
    color: var(--white);
}

.home-page .work .section__eyebrow,
.home-page .work .section__title {
    color: var(--white);
}

.home-page .work .section__eyebrow {
    color: rgba(255, 255, 255, 0.55);
}

.home-page .work .services__intro-copy p,
.home-page .work .services__intro-copy .section__cta {
    color: rgba(255, 255, 255, 0.72);
}

.home-page .work .services__intro-copy .section__cta {
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--white);
}

.home-page .work .services__intro-copy .section__cta:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--ink);
}

.home-page .work .section__title span img {
    filter: invert(1) grayscale(1) brightness(1.2);
    opacity: 0.85;
}

.home-page .work__card {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.home-page .work__card:hover {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: none;
}

.home-page .work__image {
    margin-top: 1.25rem;
}

.home-page .work__image-placeholder {
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0;
}

.home-page .work__info {
    padding: 1.35rem 0 0.25rem;
    gap: 0.65rem;
}

.home-page .work__title,
.home-page .work__description,
.home-page .work__link {
    color: var(--white);
}

.home-page .work__title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.home-page .work__description {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
    line-height: 1.55;
}

.home-page .work__tag {
    border-color: rgba(255, 255, 255, 0.16);
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    border-radius: 0;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
}

.home-page .work__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.35rem;
}

.home-page .work__link {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.home-page .work__filter {
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.35rem 0;
    min-height: 0;
}

.home-page .work__filter--active,
.home-page .work__filter:hover {
    border-color: var(--white);
    background: transparent;
    color: var(--white);
}

.home-page .work__filters {
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.home-page .work__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: left;
}

.home-page .work__cta-text {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.6;
}

.home-page .work__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.home-page .work .section__cta {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    border-color: var(--white);
    background: var(--white);
    color: var(--ink);
    border-radius: 999px;
    box-shadow: none;
}

.home-page .work .section__cta--outline {
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--white);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-page .work .section__cta--outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.home-page .testimonials {
    padding: 6rem 0;
    background: var(--white);
    border-top: 0;
}

.home-page .blog-preview,
.home-page .process {
    border-top: 1px solid var(--line);
}

.home-page .blog-preview {
    background: var(--paper);
}

.home-page .cable-band > .services,
.home-page .cable-band > .testimonials,
.home-page .cable-band > .blog-preview {
    background: transparent;
}

.home-page .process {
    padding: 7.5rem 0 8rem;
    background: var(--white);
}

.home-page .process .services__intro {
    margin-bottom: 6rem;
}

.home-page .process .services__intro-heading .section__title img {
    filter: grayscale(1);
}

.home-page .process__item {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-page .contact {
    border-top: 1px solid var(--line);
}

@media screen and (max-width: 768px) {
    .home-page .columns__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-page .work,
    .home-page .testimonials {
        padding: 4.5rem 0;
    }
}

@media screen and (max-width: 480px) {
    .home-page .columns__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .home-page .columns__item {
        min-height: 190px;
    }
}

/* ===== SERVICES INDEX ===== */
.home-page .services {
    padding: 7.5rem 0 8rem;
    background: var(--white);
}

.home-page .services__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 5rem;
    align-items: end;
    margin-bottom: 6rem;
}

.home-page .services__intro-heading .section__eyebrow {
    margin-bottom: 1.5rem;
    color: var(--ink);
    font-size: 0.65rem;
    letter-spacing: 0.28em !important;
}

.home-page .services__intro-heading .section__eyebrow::before {
    display: none;
}

.home-page .services__intro-heading .section__title {
    margin: 0;
    font-size: clamp(3.5rem, 7vw, 6.8rem);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.065em !important;
}

.home-page .services__intro-heading .section__title span {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.home-page .services__intro-heading .section__title img {
    width: clamp(42px, 5vw, 72px);
    height: clamp(42px, 5vw, 72px);
    border-radius: 14px;
    object-fit: cover;
    filter: grayscale(1);
}

.home-page .services__intro-copy {
    max-width: 360px;
    padding-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.home-page .services__intro-copy p + p {
    margin-top: 1rem;
}

.home-page .services__intro-copy .section__cta {
    min-height: 40px;
    margin-top: 1.8rem;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.75rem;
}

.home-page .services__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4.5rem 3.25rem;
    max-width: none;
}

.home-page .service__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 230px;
    padding: 0.8rem 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.home-page .service__item:hover {
    border-color: var(--ink);
    transform: none;
}

.home-page .service__number {
    margin: 0;
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.08em !important;
}

.home-page .service__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    margin-top: 0;
}

.home-page .service__name {
    max-width: 200px;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.15;
}

.home-page .service__desc {
    max-width: 200px;
    margin: 0;
    margin-top: auto;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.home-page .service__price {
    width: fit-content;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent-dark);
    font-size: 0.65rem;
    font-weight: 700;
}

.home-page .services__cta {
    align-items: flex-start;
    margin-top: 4rem;
    text-align: left;
}

.home-page .services__cta-text {
    max-width: 420px;
    font-size: 0.85rem;
}

@media screen and (max-width: 900px) {
    .home-page .services__intro {
        gap: 3rem;
    }

    .home-page .services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem 2rem;
    }
}

@media screen and (max-width: 600px) {
    .home-page .services {
        padding: 5rem 0 5.5rem;
    }

    .home-page .services__intro {
        display: block;
        margin-bottom: 4rem;
    }

    .home-page .services__intro-heading .section__title {
        font-size: clamp(3.25rem, 16vw, 5rem);
    }

    .home-page .services__intro-copy {
        margin-top: 2.5rem;
    }

    .home-page .services__grid {
        gap: 2.5rem 1.25rem;
    }

    .home-page .service__item {
        min-height: 190px;
    }

    .home-page .service__name {
        font-size: 0.9rem;
    }
}

/* ===== HOMEPAGE SHARED EDITORIAL SYSTEM ===== */
.home-page .work .services__intro,
.home-page .services .services__intro,
.home-page .process .services__intro,
.home-page .blog-preview .services__intro {
    margin-bottom: 5rem;
}

@media screen and (min-width: 901px) {
    .home-page .work .services__intro,
    .home-page .blog-preview .services__intro {
        grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    }

    .home-page .work .services__intro-heading,
    .home-page .blog-preview .services__intro-heading {
        grid-column: 2;
        grid-row: 1;
    }

    .home-page .blog-preview .services__intro-heading .section__title {
        font-size: clamp(3rem, 6vw, 6.8rem);
        text-align: right;
    }

    .home-page .blog-preview .services__intro-heading .section__title span {
        justify-content: flex-end;
        white-space: nowrap;
    }

    .home-page .work .services__intro-copy,
    .home-page .blog-preview .services__intro-copy {
        grid-column: 1;
        grid-row: 1;
    }

    .home-page .work .services__intro {
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    }

    .home-page .work .services__intro-heading {
        grid-column: 1;
    }

    .home-page .work .services__intro-copy {
        grid-column: 2;
    }

    .home-page .contact__intro {
        grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    }

    .home-page .contact__intro .services__intro-heading {
        grid-column: 2;
        grid-row: 1;
    }

    .home-page .contact__intro .services__intro-copy {
        grid-column: 1;
        grid-row: 1;
    }

    .home-page .contact__intro .services__intro-heading .section__title {
        text-align: right;
    }

    .home-page .contact__intro .services__intro-heading .section__title span {
        justify-content: flex-end;
    }
}

.home-page .work__grid {
    gap: 2.5rem 2rem;
}

.home-page .blog__grid,
.home-page .process__grid {
    gap: 2.25rem;
}

.home-page .work__card,
.home-page .blog__card,
.home-page .process__item {
    border-radius: 0;
    box-shadow: none;
}

.home-page .work__card,
.home-page .blog__card {
    transform: none;
}

.home-page .work__card:hover,
.home-page .blog__card:hover {
    transform: translateY(-3px);
}

.home-page .work__image-placeholder,
.home-page .blog__card-image {
    border-radius: 0;
}

.home-page .process {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.home-page .process__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-page .process__item {
    min-height: 220px;
    padding: 0.8rem 1rem 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
}

.home-page .process__number {
    margin-bottom: 1.35rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em !important;
}

.home-page .process__title {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
}

.home-page .process__desc {
    margin-top: auto;
    color: var(--muted);
    font-size: 0.78rem;
}

.home-page .process__cta {
    align-items: flex-start;
    margin-top: 4rem;
}

.home-page .blog-preview {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.home-page .blog__card {
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
}

.home-page .blog__card-body {
    padding: 1rem 0 0;
}

.home-page .blog__card-title {
    font-size: 1.35rem;
}

.home-page .contact {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.home-page .contact__inner {
    gap: 4.5rem;
}

.home-page .contact__form {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 2rem 0 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-width: 720px;
}

.home-page .form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.5rem;
}

.home-page .form__group {
    margin-bottom: 1.15rem;
}

.home-page .form__label {
    margin-bottom: 0.15rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-page .form__input,
.home-page .form__textarea,
.home-page select.form__input {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 0.7rem 0;
    font-size: 0.95rem;
    box-shadow: none;
}

.home-page .form__input:focus,
.home-page .form__textarea:focus,
.home-page select.form__input:focus {
    border-color: var(--ink);
    box-shadow: none;
    outline: none;
}

.home-page .form__textarea {
    resize: vertical;
    min-height: 7rem;
}

.home-page .form__submit {
    width: auto;
    align-self: flex-start;
    margin-top: 0.75rem;
    padding: 0 1.5rem;
    border-radius: 999px;
    box-shadow: none;
}

.home-page .subscribe {
    padding-top: 5.5rem;
    padding-bottom: 6.5rem;
    border-top: 1px solid var(--line);
}

.home-page .subscribe__inner {
    max-width: none;
    text-align: left;
}

.home-page .subscribe__label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-page .subscribe__form {
    max-width: 520px;
}

.home-page .subscribe__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: end;
    max-width: none;
    margin: 0;
}

.home-page .subscribe__input {
    min-height: 48px;
    padding: 0.7rem 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-page .subscribe__input:focus {
    border-color: var(--ink);
    box-shadow: none;
}

.home-page .subscribe__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0 1.25rem;
    border-radius: 999px;
    background: var(--ink);
    box-shadow: none;
}

.home-page .subscribe__status {
    margin-top: 0.75rem;
    min-height: 1.25rem;
    font-size: 0.8rem;
}

@media screen and (max-width: 900px) {
    .home-page .process__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 600px) {
    .home-page .process__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
    }

    .home-page .process__item {
        min-height: 190px;
        padding-left: 0;
        padding-right: 0;
    }

    .home-page .contact__inner {
        gap: 3rem;
    }
}

@media screen and (max-width: 480px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .about__title {
        font-size: 1.85rem;
    }

    /* CV */
    .cv__hero {
        padding: 1.5rem;
    }

    .cv__main,
    .cv__sidebar {
        padding: 1.5rem;
    }

    .cv__work-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* ===== UI REFRESH ===== */
:root {
    --ink: var(--bg-very-dark);
    --muted: var(--text-secondary-dark);
    --line: var(--gray-subtle);
    --paper: var(--bg-paper-light);
    --paper-strong: var(--white);
    --accent: var(--accent-hover);
    --accent-dark: var(--dark-1);
    --warm: var(--color-warning);
    --shadow: 0 18px 50px rgba(24, 21, 17, 0.08);
}

* {
    letter-spacing: 0 !important;
}

body {
    background: var(--paper);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid rgba(47, 125, 109, 0.35);
    outline-offset: 3px;
}

.container {
    max-width: 1180px;
}

.header {
    padding: 0rem 0;
}

.header .container {
    max-width: min(1180px, calc(100% - 2rem));
    padding: 0;
}

.nav {
    min-height: 40px;
    padding: 0.15rem 0.4rem 0.15rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(12, 12, 12, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.header--scrolled {
    background: transparent;
    padding: 0.25rem 0;
}

.header--scrolled .nav {
    background: rgba(10, 10, 10, 0.88);
    border-color: rgba(255, 255, 255, 0.16);
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    color: var(--white);
}

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.45rem;
    border-radius: 6px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transition: width 0.3s, left 0.3s;
}

.nav__link:hover {
    color: var(--white);
}

.nav__link:hover::after {
    width: 60%;
    left: 20%;
}

.nav__link--active {
    color: var(--dark-1);
}

.nav__link--active::after {
    width: 60%;
    left: 20%;
}

/* Active nav - circular highlight for links */
/* Active nav - smooth pill highlight for links/buttons */
.nav__link,
.nav__btn {
    position: relative;
}

.nav__link--active,
.nav__btn.nav__active {
    z-index: 1; /* ensure text sits above the highlight */
    color: var(--dark-1) !important;
}

.nav__link--active::before,
.nav__btn.nav__active::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: calc(100% + 18px);
    height: 44px;
    border-radius: 999px;
    background: var(--white);
    z-index: -1;
    box-shadow: 0 10px 26px rgba(47,125,109,0.12);
    transition: transform 280ms cubic-bezier(.2,.9,.2,1), background 220ms ease, opacity 220ms ease;
    opacity: 1;
}

/* Active chat nav button variant */
.nav__btn.nav__chat.nav__active .nav__chat__bubble {
    background: var(--accent);
    color: #fff;
}
.nav__btn.nav__chat.nav__active .nav__chat__avatar {
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    border-color: rgba(255,255,255,1);
}

.nav__btn {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 1.25rem;
    border-radius: 6px;
    background: var(--white);
    color: var(--dark-1);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    white-space: nowrap;
}

.nav__btn:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(47, 125, 109, 0.4);
}

/* Chat-style nav button (avatar + message bubble) */
.nav__chat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0.5rem;
    background: transparent;
}

.nav__chat__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 36px;
    margin-left: -6px; /* overlap feel */
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: 2px solid rgba(255,255,255,0.95);
}
.nav__chat__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav__chat__bubble {
    position: relative;
    display: inline-block;
    background: var(--white);
    color: var(--dark-1);
    padding: 0.42rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}
.nav__chat__bubble::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}

.nav__chat:hover .nav__chat__bubble {
    background: var(--accent);
    color: #fff;
}



.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section__eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.floating-whatsapp {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgb(0, 0, 0);
}

.floating-whatsapp i {
    display: none;
}

.floating-cv {
    background: var(--accent);
}

.social-icon-svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: currentColor;
}

.section,
.about,
.columns {
    padding: 6.5rem 0;
}

.section--light,
.page-404 {
    background: var(--paper);
}

.section--light + .section--light,
.section--light.work,
.section--light.services,
.section--light.contact,
.testimonials,
.blog-page,
.blog-preview,
.cv,
.editorial,
.about {
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.section__title,
.section--light .section__title,
.about__title,
.editorial__title {
    color: var(--ink);
    line-height: 1.05;
}

.section__title {
    margin-bottom: 0.7rem;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.contact__text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.about__content {
    position: relative;
    max-width: 1200px;
    padding: 3rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--light-bg);
    box-shadow: var(--shadow);
}
.about__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.about__text {
    max-width: 1200px;
    color: var(--muted);
}

.columns {
    padding-top: 2rem;
}

.columns__grid {
    gap: 1.25rem;
}

.columns__item,
.work__card,
.blog__card,
.contact__form,
.cv__section,
.service__item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.columns__item {
    align-items: center;
    padding: 1.5rem;
    text-align: center;
}

.columns__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    color: var(--accent);
    font-size: 2rem;
}

.home-page .columns__icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.4rem;
}

.home-page .columns__icon img {
    width: 64px;
    height: 64px;
    max-width: none;
    object-fit: contain;
    opacity: 0.6;
}

.columns__heading {
    color: var(--ink);
    font-size: 1.45rem;
}

.columns__list {
    width: 100%;
}

.columns__list li {
    width: 100%;
    padding: 0.65rem 0;
    color: var(--muted);
}

.section--light .work__card,
.section--light .work__tag,
.section--light .form__input,
.section--light .form__textarea {
    border-color: var(--line);
}

.work__grid,
.blog__grid {
    gap: 1.35rem;
}

.work__card,
.blog__card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.work__card:hover,
.blog__card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 125, 109, 0.45);
    box-shadow: 0 24px 60px rgba(24, 21, 17, 0.12);
}

.work__image-placeholder,
.section--light .work__image-placeholder {
    background:
        linear-gradient(135deg, rgba(47, 125, 109, 0.12), rgba(201, 148, 69, 0.16)),
        var(--light-bg);
    color: rgba(47, 125, 109, 0.5);
}

.work__info,
.blog__card-body {
    padding: 1.4rem;
}

.work__title,
.blog__card-title {
    font-size: 1.35rem;
    color: var(--ink);
}

.work__description,
.blog__card-summary {
    color: var(--muted);
}

.work__tag {
    border-radius: 999px;
    background: rgba(47, 125, 109, 0.08);
    color: var(--accent-dark);
}

.work__link,
.blog__read-more {
    color: var(--accent-dark);
    font-weight: 700;
}

.work__filter {
    min-height: 44px;
    border-radius: 999px;
    background: var(--paper-strong);
    border-color: var(--line);
    color: var(--muted);
    font-weight: 700;
}

.work__filter--active,
.work__filter:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.services__grid {
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.service__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 76px;
    color: var(--ink);
    font-weight: 700;
}

.service__item span:last-child {
    min-width: 0;
}

.service__item:hover {
    border-color: rgba(47, 125, 109, 0.45);
    color: var(--ink);
    transform: translateY(-2px);
}

.contact__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
}

.contact__text {
    max-width: 470px;
    margin-bottom: 2rem;
}

.contact__link {
    color: var(--muted);
    font-weight: 400;
}
.contact__link:hover {
    color: var(--dark-1);
    font-weight: 600;
}

.contact__link i {
    color: var(--accent);
}


.contact__form {
    padding: 2rem 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}

.home-page .contact__inner {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
    margin: 0 auto;
}

.home-page .contact__intro,
.home-page .contact__form,
.home-page .contact__details {
    width: 100%;
}
.home-page .contact__intro {
    margin-bottom: 0;
}

.home-page .contact__intro .services__intro-heading .section__title {
    font-size: clamp(3rem, 6vw, 6.2rem);
}

.home-page .contact__intro .services__intro-heading .section__title,
.home-page .contact__intro .services__intro-heading .section__title span {
    white-space: nowrap;
}

.home-page .contact__intro .services__intro-heading {
    justify-self: end;
}

.home-page .contact__intro .services__intro-heading .section__title {
    text-align: right;
}

.home-page .contact__intro .services__intro-heading .section__title span {
    justify-content: flex-end;
}

.home-page .contact__intro .contact__text {
    max-width: none;
}

.home-page .subscribe__inner .services__intro {
    margin-bottom: 2.25rem;
}

.home-page .subscribe__inner .services__intro-heading .section__title {
    text-align: left;
}

.home-page .subscribe__inner .services__intro-heading .section__title span {
    justify-content: flex-start;
}
.home-page .contact__form {
    padding-top: 2rem;
    max-width: 720px;
}

.home-page .contact__main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: stretch;
    width: 100%;
}

.home-page .contact__main .contact__form {
    max-width: none;
    display: flex;
    flex-direction: column;
}

.home-page .contact__main .form__submit {
    margin-top: auto;
}

.home-page .contact__image {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
    overflow: hidden;
}

.home-page .contact__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-page .contact__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: start;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.home-page .contact__details .contact__text--pricing {
    max-width: 360px;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
}

.home-page .contact__details .contact__links {
    display: grid;
    justify-items: end;
    gap: 0.65rem;
}

.home-page .contact__details .contact__link {
    font-size: 0.82rem;
}

.form__input,
.form__textarea,
.section--light .form__input,
.section--light .form__textarea {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--ink);
    box-shadow: none;
}

.form__submit,
.section--light .form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    padding: 0 1.4rem;
    width: auto;
}

.form__submit:hover,
.section--light .form__submit:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

.form__error {
    display: block;
    color: var(--error-color);
    font-size: 0.82rem;
    margin-top: 0.3rem;
}

.footer--dark {
    background: #100f10;
    color: #f5f3ee;
    border-top: 0;
    border-radius: 32px 32px 0 0;
    overflow: hidden;
    padding: 3rem 0 1.25rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(180px, 1fr);
    gap: 2rem 2.5rem;
    align-items: flex-start;
    padding-bottom: 2.5rem;
}

.footer__group {
    min-width: 0;
}

.footer__group h3 {
    margin: 0 0 1rem;
    color: rgba(255,255,255,0.72);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer__group ul,
.footer__meta-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.footer__group a,
.footer__meta-links a {
    color: rgba(255,255,255,0.9);
    font-size: 1.02rem;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.footer__group a:hover,
.footer__meta-links a:hover {
    opacity: 0.7;
}

.footer__aside {
    min-width: 0;
    padding-left: 2rem;
    border-left: 1px solid rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer__btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.2rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer__btn:hover {
    transform: translateY(-1px);
}

.footer__btn--primary {
    background: #f1efe9;
    color: #111;
}

.footer__btn--secondary {
    background: transparent;
    color: #f1efe9;
    border: 1px solid rgba(255,255,255,0.4);
}

.footer__meta-links {
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer__meta-links a,
.footer__copyright {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.02em;
}

.footer__copyright {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.footer__dot {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.8);
}

.footer__brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__logo-svg {
    display: block;
    width: min(100%, 700px);
    height: auto;
    margin: 0 auto;
    color: rgba(255,255,255,0.96);
}

/* ===== RESPONSIVE FOOTER / NAV TWEAKS ===== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nav__list { gap: 1rem; }
    .nav__link { padding: 0.45rem 0.7rem; }
}

@media screen and (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.25rem 2rem;
    }

    .footer__aside {
        grid-column: 1 / -1;
        padding-left: 0;
        border-left: 0;
    }
}

@media screen and (max-width: 480px) {
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }

    .home-page .founder-feature__heading h2 {
        font-size: clamp(2.9rem, 14vw, 4rem);
    }
}

.floating-fact {
    border-radius: 8px;
    background: rgba(21, 21, 21, 0.94);
}

.flash-stack {
    position: fixed;
    top: 6.5rem;
    right: 1rem;
    z-index: 250;
    display: grid;
    gap: 0.6rem;
    width: min(360px, calc(100% - 2rem));
}

.flash {
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
    color: var(--ink);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
}

.flash--success {
    border-color: rgba(47, 125, 109, 0.35);
}

.flash--error {
    border-color: rgba(168, 62, 50, 0.35);
}

.flash--info {
    border-color: rgba(65, 105, 225, 0.4);
}

.flash--warning {
    border-color: rgba(201, 148, 69, 0.5);
}

/* ===== SUBSCRIBE ===== */

.subscribe {
    text-align: center;
}

.subscribe__inner {
    max-width: 540px;
    margin: 0 auto;
}

.subscribe__form {
    position: relative;
}

.subscribe__fields {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.subscribe__input {
    flex: 1;
    min-height: 48px;
    padding: 0 1rem;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.subscribe__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(47, 125, 109, 0.12);
}

.subscribe__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 6px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.subscribe__btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.subscribe__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.subscribe__status {
    min-height: 1.5rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    transition: color 0.2s;
}

.subscribe__status--checking {
    color: var(--ink-muted);
}

.subscribe__status--valid {
    color: var(--accent);
}

.subscribe__status--invalid {
    color: var(--error-color);
}

@media screen and (max-width: 900px) {
    .contact__inner {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .header .container {
        max-width: calc(100% - 1rem);
    }

    .nav {
        min-height: 58px;
    }

    .nav__menu {
        top: 0.5rem;
        right: calc(-100% - 1rem);
        width: min(84%, 340px);
        height: calc(100svh - 1rem);
        border-radius: 8px 0 0 8px;
        background: rgba(0, 0, 0, 0.98);
    }

    .nav__menu--open {
        right: 0.5rem;
    }

    .nav__link {
        min-height: 48px;
        padding: 0 0.6rem;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.95rem;
    }

    .nav__link::after {
        bottom: 6px;
    }

    .nav__btn {
        display: flex;
        justify-content: center;
        margin-top: 0.75rem;
        min-height: 46px;
        padding: 0 1rem;
        font-size: 0.95rem;
    }

    .about__content,
    .contact__form,
    .columns__item {
        padding: 1.25rem;
    }

    .home-page .contact__main {
        grid-template-columns: 1fr;
    }
    .home-page .contact__image {
        min-height: 260px;
    }
    .home-page .contact__image img {
        height: 260px;
    }

    .columns__grid,
    .work__grid,
    .blog__grid {
        grid-template-columns: 1fr;
    }

    .floating-fact {
        right: 4.5rem;
        left: 1rem;
        bottom: 1rem;
        max-width: none;
        padding: 0.8rem 1rem;
        font-size: 0.78rem;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section,
    .about,
    .columns {
        padding: 4.5rem 0;
    }

    .editorial__hero {
        padding: 4rem 1.25rem 0;
    }

    .editorial__hero-img img {
        max-height: 280px;
    }

    .editorial__body {
        padding: 2rem 1.25rem 0;
    }

    .editorial__share {
        flex-direction: column;
        align-items: flex-start;
    }

    .editorial__author-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .editorial__nav {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
    }

    .editorial__related {
        padding: 2.5rem 1.25rem;
    }
}


/* Ensure Mirage font for headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
    font-weight: 600;
}

/* ===== PHASE 2: SERVICES, PROCESS & CONVERSION ===== */

/* Section CTA buttons (read well on light sections) */
.section__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0 1.5rem;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
}

.section__cta:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
    color: var(--white);
}

.section__cta--outline {
    background: transparent;
    color: var(--ink);
    box-shadow: none;
}

.section__cta--outline:hover {
    background: var(--ink);
    color: var(--white);
}

/* Service cards with description + price */
.services__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: none;
    gap: 1.25rem;
}

.service__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    min-height: 0;
    text-align: left;
    font-weight: 400;
}

.service__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.service__name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.25;
}

.service__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.service__price {
    display: inline-block;
    width: fit-content;
    margin-top: 0.4rem;
    padding: 0.28rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(47, 125, 109, 0.08);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

/* CTA bars under Work, Services and Process sections */
.work__cta,
.services__cta,
.process__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    margin-top: 2.75rem;
    text-align: center;
}

.work__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.work__cta-text,
.services__cta-text {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Process: How We Work */
.process__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.process__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    text-align: left;
}

.process__number {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    line-height: 1;
    color: rgba(47, 125, 109, 0.85);
    margin-bottom: 0.85rem;
    font-weight: 400;
}

.process__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.process__desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

/* Pricing note in contact section */
.contact__text--pricing {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Native renders selects consistently with form inputs */
select.form__input {
    appearance: auto;
    cursor: pointer;
    height: auto;
}

@media (max-width: 992px) {
    .process__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .home-page .contact__details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .home-page .contact__details .contact__links {
        justify-items: start;
    }

    .home-page .form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-page .subscribe__fields {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .home-page .subscribe__btn {
        width: 100%;
        justify-content: center;
    }

    .process__grid {
        grid-template-columns: 1fr;
    }

    .work__cta,
    .services__cta,
    .process__cta {
        align-items: stretch;
    }

    .home-page .work__cta {
        align-items: stretch;
    }

    .home-page .work__cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .work__cta .section__cta,
    .services__cta .section__cta,
    .process__cta .section__cta,
    .home-page .work__cta .section__cta {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}

/* ===== INNER PAGE SYSTEM ===== */
.inner-page {
    background: var(--paper);
}

.inner-page .header {
    position: sticky;
    top: 0;
    padding: 0.7rem 0;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(18, 18, 18, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.inner-page .header .nav {
    min-height: 48px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.inner-page .nav__logo,
.inner-page .nav__link {
    color: var(--ink);
}

.inner-page .nav__link:hover,
.inner-page .nav__link--active {
    color: var(--accent-dark);
}

.inner-page .nav__toggle span {
    background: var(--ink);
}

.inner-page .section {
    padding-top: 6.5rem;
}

.inner-page .section__title {
    max-width: 760px;
    margin-bottom: 2.5rem;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    letter-spacing: -0.04em !important;
}

.inner-page .blog-page {
    min-height: 70vh;
}

.inner-page .blog-page .section__title::before {
    content: 'RETEC / ';
    display: block;
    margin-bottom: 0.8rem;
    color: var(--accent-dark);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em !important;
    text-transform: uppercase;
}

.inner-page .blog__card {
    border-radius: 8px;
    background: var(--paper-strong);
    box-shadow: none;
}

.inner-page .blog__card-image {
    aspect-ratio: 16 / 10;
    background: var(--paper);
}

.inner-page .blog__card-body {
    padding: 1.6rem 1.5rem 1.8rem;
}

.inner-page .blog__date {
    color: var(--accent-dark);
    font-weight: 700;
    letter-spacing: 0.12em !important;
}

.inner-page .blog__card-title {
    font-size: 1.55rem;
    line-height: 1.1;
}

.inner-page .blog__read-more {
    margin-top: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em !important;
    font-size: 0.7rem;
}

.inner-page .editorial {
    background: var(--paper);
}

.inner-page .editorial__hero {
    max-width: 1080px;
    padding: 4rem 2rem 0;
}

.inner-page .editorial__hero-img {
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(24, 21, 17, 0.12);
}

.inner-page .editorial__hero-text {
    padding: 0 1rem;
}

.inner-page .editorial__title {
    max-width: 900px;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    letter-spacing: -0.04em !important;
}

/* ===== RETEC JOURNAL ===== */
.journal {
    background: #f5f2ee;
    color: var(--ink);
    overflow: clip;
}

.journal__utility-bar {
    border-bottom: 1px solid rgba(18, 18, 18, 0.06);
    background: rgba(255, 255, 255, 0.65);
}

.journal__utility-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 2.6rem;
    font-size: .68rem;
    letter-spacing: .04em;
}

.journal__utility-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .32rem .68rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
}

.journal__utility-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--muted);
}

.journal__utility-action {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.journal__masthead {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
    background: transparent;
    border-bottom: 0;
}

.journal__intro {
    max-width: 1080px;
    margin: 0 auto;
    text-align: left;
}

.journal__kicker {
    margin: 0 0 .85rem;
    color: rgba(25, 25, 25, 0.7);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em !important;
    text-transform: uppercase;
}

.journal__intro h1,
.journal__section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: -.045em !important;
    line-height: .94;
}

.journal__intro h1 {
    font-size: clamp(3.2rem, 6vw, 6.2rem);
    letter-spacing: -.05em;
}
.journal__intro-subtitle {
    margin: 1.25rem 0 0;
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 500;
    letter-spacing: -.03em;
    color: rgba(18,18,18,0.82);
}

.journal__intro > p:last-child {
    max-width: 560px;
    margin: 1rem auto 0;
    color: rgba(18,18,18,0.65);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.7;
}

.journal__featured,
.journal__latest,
.journal__newsletter { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }

.journal__latest { border-top: 1px solid var(--line); }
.journal__section-heading { margin-bottom: 2rem; }
.journal__section-heading h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.journal__section-heading--split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
}

.journal__section-heading--split > p {
    margin: 0 0 .25rem;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}

.journal__view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    width: fit-content;
    padding: .7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-strong);
    color: var(--ink);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}

.journal__feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.journal__discover {
    padding: 0 0 1.5rem;
    border-bottom: 1px solid rgba(18, 18, 18, 0.06);
}

.journal__filters {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    justify-content: center;
}

.journal__filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    padding: .4rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.38);
}

.journal__filter-group--categories {
    margin-top: 0;
}

.journal__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: .42rem .8rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.journal__filter--active {
    border-color: var(--line);
    background: var(--paper-strong);
    color: var(--ink);
}

.journal-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(18, 18, 18, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 32px rgba(15, 15, 15, 0.04);
}

.journal-card.blog__card:hover { border-color: rgba(18, 18, 18, 0.22); box-shadow: 0 18px 42px rgba(15, 15, 15, 0.08); }
.journal-card__image { display: block; overflow: hidden; background: var(--light-bg); }
.journal-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-medium) var(--ease-smooth); }
.journal-card:hover .journal-card__image img { transform: scale(1.035); }
.journal-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem 1.1rem 1.1rem; }
.journal-card__date,
.editorial__meta { color: rgba(18, 18, 18, 0.7); font-size: .7rem; font-weight: 700; letter-spacing: .12em !important; text-transform: uppercase; }
.journal-card h3 {
    margin: .65rem 0 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    letter-spacing: -.025em !important;
    line-height: 1.08;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.journal-card h3 a { color: inherit; text-decoration: none; }
.journal-card__summary {
    margin: .85rem 0 1.3rem;
    color: rgba(18, 18, 18, 0.68);
    font-size: .9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.journal-card__link { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; margin-top: auto; color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .1em !important; text-decoration: none; text-transform: uppercase; }
.journal-card__link i { transition: transform var(--duration-fast) var(--ease-standard); }
.journal-card:hover .journal-card__link i { transform: translateX(4px); }

.journal-card--feature .journal-card__image { aspect-ratio: 4 / 3.8; }
.journal-card--feature .journal-card__body { padding: 1rem 1rem 1.15rem; }
.journal-card--feature h3 { font-size: clamp(1.45rem, 2vw, 2.2rem); }
.journal-card--feature-small .journal-card__image { aspect-ratio: 4 / 3.2; }
.journal-card--feature-small .journal-card__body { padding: 1rem 1rem 1.15rem; }
.journal-card--feature-small h3 { font-size: clamp(1.1rem, 1.7vw, 1.5rem); }

.journal__latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
    gap: 1.35rem;
    align-items: stretch;
}

.journal-card--feature-lead {
    min-height: 100%;
}

.journal-card--feature-lead .journal-card__image { aspect-ratio: 16 / 10; }
.journal-card--feature-lead .journal-card__body { padding: clamp(1.25rem, 2vw, 1.8rem); }
.journal-card--feature-lead h3 { font-size: clamp(2rem, 3vw, 3rem); }

.journal__stacked {
    display: grid;
    gap: 1.35rem;
}

.journal-card--feature-side .journal-card__image { aspect-ratio: 5 / 3.2; }
.journal-card--feature-side .journal-card__body { padding: 1rem; }
.journal-card--feature-side h3 { font-size: clamp(1.2rem, 1.7vw, 1.6rem); }

.journal__story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
    margin-top: 1.35rem;
}

.journal-card--story-grid-card .journal-card__image { aspect-ratio: 16 / 9; }
.journal-card--story-grid-card .journal-card__body { padding: 1.1rem; }

.journal__newsletter-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border: 1px solid rgba(18,18,18,0.06);
    border-radius: 20px;
    background: rgba(255,255,255,0.55);
    box-shadow: 0 12px 30px rgba(15,15,15,0.02);
}

.journal__newsletter-copy h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.04em;
}

.journal__newsletter-form {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: 100%;
}

.journal__newsletter-form input {
    flex: 1;
    min-width: 0;
    min-height: 3.2rem;
    padding: 0 .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-strong);
    color: var(--ink);
    font: inherit;
}

.journal__newsletter-form button {
    min-height: 3.2rem;
    padding: 0 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.journal__empty { min-height: 38vh; padding: 5rem 0; color: var(--muted); }

@media screen and (max-width: 768px) {
    .journal__utility-inner {
        gap: .6rem;
        font-size: .65rem;
    }

    .journal__masthead { padding-top: 3.5rem; }
    .journal__intro h1 { font-size: clamp(2.85rem, 14vw, 4.5rem); }
    .journal__intro-subtitle { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .journal__section-heading--split {
        display: block;
    }

    .journal__section-heading--split > p {
        margin-top: .9rem;
    }

    .journal__feature-grid,
    .journal__latest-layout,
    .journal__story-grid,
    .journal__newsletter-inner {
        grid-template-columns: 1fr;
    }

    .journal__newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .journal__newsletter-form button,
    .journal__newsletter-form input {
        width: 100%;
    }

    .journal-card--feature .journal-card__image,
    .journal-card--feature-small .journal-card__image,
    .journal-card--feature-lead .journal-card__image,
    .journal-card--feature-side .journal-card__image,
    .journal-card--story-grid-card .journal-card__image {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journal-card__image img,
    .journal-card__link i { transition: none; }
}
/* Article layout deliberately keeps the content column narrow and the image broad. */
.inner-page .editorial { padding-bottom: 0; }
.inner-page .editorial__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6rem) 2rem 0;
}
.inner-page .editorial__hero-text { max-width: none; padding: 0; text-align: left; }
.inner-page .editorial__hero-inner { max-width: 620px; }
.inner-page .editorial__back { margin-bottom: 2rem; }
.inner-page .editorial__meta { display: block; margin-bottom: 1rem; }
.inner-page .editorial__title { max-width: 1000px; margin-bottom: 1.25rem; font-size: clamp(2.75rem, 5vw, 4.9rem); text-align: left; }
.inner-page .editorial__subtitle { max-width: 670px; margin-bottom: 2.75rem; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.inner-page .editorial__hero-img {
    max-width: none;
    margin: 0;
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
}
.inner-page .editorial__hero-img img { width: 100%; max-height: min(68vw, 720px); aspect-ratio: 5 / 4.8; object-fit: cover; }
.inner-page .editorial__body { max-width: 780px; padding: clamp(3rem, 7vw, 6rem) 2rem 0; }
.inner-page .editorial__content { font-size: 1.08rem; line-height: 1.9; }
.inner-page .editorial__content p,
.inner-page .editorial__content li { color: var(--text-secondary-dark); }
.inner-page .editorial__nav { max-width: 1180px; padding: 4rem 2rem; }
.inner-page .editorial__related { max-width: 1180px; padding: 4.5rem 2rem 6rem; }
.inner-page .editorial__related .journal__kicker { margin-bottom: .65rem; }

@media screen and (max-width: 768px) {
    .journal__masthead { padding-top: 4rem; }
    .journal__intro h1 { font-size: clamp(2.85rem, 14vw, 4.5rem); }
    .journal__section-heading--split { display: block; }
    .journal__section-heading--split > p { margin-top: .9rem; }
    .journal__feature-grid,
    .journal__latest-grid { grid-template-columns: 1fr; }
    .journal-card--latest:nth-child(3n + 1) { grid-column: auto; }
    .journal-card--latest:nth-child(3n + 1) .journal-card__image { aspect-ratio: 16 / 10; }
    .journal__supporting { grid-template-rows: auto; }
    .journal-card--support { grid-template-columns: 120px minmax(0, 1fr); min-height: 175px; }
    .journal-card--lead h3 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
    .inner-page .editorial__hero { padding: 3rem 1.25rem 0; }
    .inner-page .editorial__title { font-size: clamp(2.75rem, 13vw, 4.25rem); }
    .inner-page .editorial__hero-img { border-radius: 0; }
    .inner-page .editorial__hero-img img { max-height: none; aspect-ratio: 4 / 3; }
    .inner-page .editorial__body { padding: 3rem 1.25rem 0; }
    .inner-page .editorial__content { font-size: 1rem; line-height: 1.82; }
    .inner-page .editorial__nav,
    .inner-page .editorial__related { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .journal-card__image img,
    .journal-card__link i { transition: none; }
}

.inner-page .editorial__meta,
.inner-page .editorial__back {
    color: var(--accent-dark);
}

.inner-page .editorial__tag {
    border-radius: 999px;
    background: var(--accent-dark);
}

.inner-page .editorial__body {
    max-width: 820px;
}

.inner-page .editorial__content {
    font-size: 1.1rem;
}

.inner-page .editorial__author-card,
.inner-page .editorial__nav-link,
.inner-page .editorial__related-card {
    border-radius: 8px;
    box-shadow: none;
}

.inner-page .cv {
    padding-bottom: 7rem;
}

.inner-page .cv__toolbar {
    justify-content: flex-start;
}

.inner-page .cv__print-btn {
    border-radius: 999px;
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.inner-page .cv__print-btn:hover {
    background: var(--accent-dark);
    color: var(--white);
}

.inner-page .cv__paper {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(24, 21, 17, 0.08);
}

.inner-page .cv__hero {
    background: var(--ink);
    border-bottom: 0;
}

.inner-page .cv__name-title,
.inner-page .cv__name-title h1,
.inner-page .cv__contacts,
.inner-page .cv__contacts a {
    color: var(--white);
}

.inner-page .cv__badge {
    color: var(--color-warning-lighter);
}

.inner-page .cv__sidebar {
    background: var(--paper);
}

.inner-page .cv__main {
    background: var(--paper-strong);
}

@media screen and (max-width: 768px) {
    .inner-page .header {
        padding: 0.5rem;
    }

    .inner-page .header .container {
        max-width: 100%;
    }

    .inner-page .section {
        padding-top: 4.5rem;
    }

    .inner-page .editorial__hero {
        padding: 2.5rem 1.25rem 0;
    }

    .inner-page .editorial__hero-text {
        padding: 0;
    }
}

/* ===== HOMEPAGE HERO ===== */
/* Home page header is anchored to the top so it sits on the light hero. */
.home-page .header {
    position: fixed;
    top: 0;
    padding: 0;
    color: var(--white);
}

.home-page .header .nav {
    min-height: 58px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.home-page .header .nav__logo,
.home-page .header .nav__link {
    color: var(--ink);
}

.home-page .header .nav__link:hover {
    color: var(--accent-dark);
}

.home-page .header .nav__toggle span {
    background: var(--ink);
}

/* ===== HOMEPAGE HERO — GROW FRAME ===== */
/* Section background is a full-width band; its contents stay on the site grid. */
.hero-editorial {
    background: var(--gray-light);
    font-family: var(--font-body);
}

.hero-editorial__container {
    padding-top: clamp(6.5rem, 12vw, 8.5rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.hero-editorial__canvas {
    border-radius: 1.5rem;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.75rem, 4.5vw, 3rem) 0;
}

.hero-editorial__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-editorial__content {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
}

.hero-editorial__visual {
    grid-column: span 5;
    position: relative;
}

/* ————— Left column ————— */
.hero-editorial__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    align-self: flex-start;
    padding: 0.45rem 1rem 0.45rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink);
}

.hero-editorial__pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 0.62rem;
}

.hero-editorial__title {
    margin: 1.5rem 0 0;
    font-family: var(--font-heading), Georgia, serif;
    font-size: clamp(3.2rem, 6.5vw, 5.2rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-wrap: balance;
    color: var(--ink);
}
.hero-editorial__title-bigger{
    margin: 1.5rem 0 0;
    font-family: var(--font-heading), Georgia, serif;
    font-size: clamp(5.8rem, 7vw, 6.2rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-wrap: balance;
    color: var(--ink);

}
.hero-editorial__title-word {
    display: inline-block;
    
    font-family: inherit;
    font-size: 1.5em;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    color: inherit;
    margin-inline: 0.08em;
    vertical-align: baseline;
}
.hero-editorial__title-lite {
    display: block;
    margin-top: 0.4rem;
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--muted);
}

.hero-editorial__desc {
    max-width: 460px;
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: clamp(0.78rem, 1vw, 0.85rem);
    line-height: 1.7;
}

.hero-editorial__social {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 400px;
    margin-top: 1.75rem;
}

.hero-editorial__social-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    font-size: 0.72rem;
}

.hero-editorial__stars {
    display: inline-flex;
    gap: 0.1rem;
    font-size: 0.62rem;
    color: var(--warm);
}

.hero-editorial__social-title {
    font-weight: 600;
    color: var(--ink);
}

.hero-editorial__social-value {
    font-weight: 600;
    color: var(--muted);
}

.hero-editorial__social-rule {
    height: 1px;
    background: var(--line);
}

.hero-editorial__social-value--main {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink);
}

.hero-editorial__social-meta {
    color: var(--muted);
}

.hero-editorial__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

.hero-editorial__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-editorial__btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.hero-editorial__btn-note {
    font-weight: 400;
    opacity: 0.7;
}

.hero-editorial__btn--ghost {
    padding: 0.5rem 0.2rem;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
}

.hero-editorial__btn--ghost:hover {
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}

.hero-editorial__btn-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.hero-editorial__btn--ghost:hover .hero-editorial__btn-arrow {
    transform: translate(3px, -3px);
}

/* ————— Right visual / gradient panel ————— */
.hero-editorial__panel {
    position: relative;
    width: 100%;
    height: clamp(430px, 46vw, 540px);
    border-radius: 2rem;
    background: linear-gradient(160deg, var(--color-warning-lighter) 0%, var(--warm) 38%, var(--accent-dark) 88%);
    box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.hero-editorial__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-editorial__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 45%);
    pointer-events: none;
}

.hero-editorial__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    font-size: 0.8rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease;
}

.hero-editorial__play:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.hero-editorial__stat {
    position: absolute;
    top: 1.5rem;
    right: -4rem;
    z-index: 2;
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    color: var(--ink);
    text-align: left;
}

.hero-editorial__stat-label {
    margin-bottom: 0.3rem;
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(21, 21, 21, 0.7);
}

.hero-editorial__stat-number {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ink);
}

.hero-editorial__stat-caption {
    margin: 0.35rem 0 0;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(21, 21, 21, 0.8);
}

/* Featured project glass card */
.hero-editorial__card {
    position: absolute;
    bottom: 1.5rem;
    right: -3.5rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 300px;
    padding: 0.85rem;
    border-radius: 1.25rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.25s ease;
}

.hero-editorial__card:hover,
.hero-editorial__card--hover {
    box-shadow: 0 26px 50px -12px rgba(0, 0, 0, 0.38);
}

.hero-editorial__card-thumb {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.hero-editorial__card:hover .hero-editorial__card-thumb,
.hero-editorial__card--hover .hero-editorial__card-thumb {
    transform: translate(3px, -3px);
}

.hero-editorial__card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-editorial__card-label {
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(21, 21, 21, 0.7);
}

.hero-editorial__card-title {
    margin: 0.1rem 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-editorial__card-meta {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(21, 21, 21, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Floating chat chips */
.hero-editorial__chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px -6px rgba(0, 0, 0, 0.15);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink);
    z-index: 2;
    animation: retec-float 7s ease-in-out infinite;
}

.hero-editorial__chip--top {
    top: 32%;
    left: -3.5rem;
}

.hero-editorial__chip--bottom {
    top: 44%;
    left: -2.25rem;
    animation-delay: 1.2s;
}

.hero-editorial__chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--warm);
    color: var(--white);
    font-size: 0.55rem;
}

.hero-editorial__chip--bottom .hero-editorial__chip-icon {
    background: var(--muted);
}

/* ————— Client / trust bar (selected-work marquee) ————— */
.hero-editorial__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    padding-bottom: clamp(1.5rem, 4vw, 2rem);
}

.hero-editorial__logos-label {
    flex: 0 0 auto;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-editorial__logos-track {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.hero-editorial__logos-list {
    display: inline-flex;
    align-items: center;
    gap: clamp(2rem, 4vw, 3rem);
    padding-right: clamp(2rem, 4vw, 3rem);
    white-space: nowrap;
    will-change: transform;
    animation: selected-work-marquee 30s linear infinite;
}

.hero-editorial__logos:hover .hero-editorial__logos-list {
    animation-play-state: paused;
}

@keyframes selected-work-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.hero-editorial__logo {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    white-space: nowrap;
}

.hero-editorial__logo:nth-child(odd) {
    font-family: var(--font-heading), Georgia, serif;
    font-weight: 400;
    font-style: italic;
}

/* ————— Motion ————— */
@keyframes retec-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-editorial__chip {
        animation: none;
    }

    .hero-editorial__logos-list {
        animation: none;
        width: max-content;
    }

    .hero-editorial__logos-track {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ————— Responsive ————— */
@media screen and (max-width: 900px) {
    .hero-editorial__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .hero-editorial__content,
    .hero-editorial__visual {
        grid-column: span 1;
    }

    .hero-editorial__title {
        font-size: clamp(3rem, 10vw, 4.2rem);
    }

    .hero-editorial__title-word {
        font-size: 1.28em;
    }

    .hero-editorial__panel {
        max-width: 520px;
        margin: 0 auto;
        height: clamp(400px, 96vw, 470px);
    }

    .hero-editorial__stat {
        top: 1rem;
        right: -2.5rem;
    }

    .hero-editorial__card {
        bottom: 1rem;
        right: -2rem;
    }

    .hero-editorial__chip--top {
        top: 32%;
        left: -0.5rem;
    }

    .hero-editorial__chip--bottom {
        top: 44%;
        left: -0.25rem;
    }

    .hero-editorial__logos {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-editorial__canvas {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-editorial__stat {
        top: 1rem;
        right: 1rem;
        left: auto;
        padding: 0.8rem;
    }

    .hero-editorial__stat-number {
        font-size: 1.7rem;
    }

    .hero-editorial__card {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Keep the editorial two-column rhythm on narrow screens. */
@media screen and (max-width: 600px) {
    .home-page .process__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== ABOUT — SHARED WORK/HEADER STYLE ===== */

.section.about .section__title {
    text-align: left;
}

.section.about .about__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section.about .about__detail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section.about .about__detail-num {
    color: var(--warm);
    font-weight: 700;
}

@media screen and (max-width: 700px) {
    .section.about .about__details {
        gap: 0.7rem 1.5rem;
    }
}

/* ===== FOUNDER FEATURE ===== */
.home-page .founder-feature {
    position: relative;
    min-height: 760px;
    margin-top: 6rem;
    overflow: hidden;
    background: #f1f0ee;
    color: var(--ink);
}

.home-page .founder-feature__topline {
    position: absolute;
    top: 2.25rem;
    left: 2.5rem;
    right: 2.5rem;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em !important;
    text-transform: lowercase;
}

.home-page .founder-feature__heading {
    position: absolute;
    top: 8rem;
    left: 8%;
    z-index: 2;
}

.home-page .founder-feature__kicker {
    margin: 0 0 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

.home-page .founder-feature__heading h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 400;
    letter-spacing: -0.07em !important;
    line-height: 0.82;
}

.home-page .founder-feature__portrait {
    position: absolute;
    right: 8%;
    bottom: 0;
    width: min(46%, 520px);
    height: 74%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #deddda, #b9b8b6);
}

.home-page .founder-feature__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1) contrast(1.04);
}

.home-page .founder-feature__footer {
    position: absolute;
    right: 8%;
    bottom: 2.5rem;
    left: 8%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.home-page .founder-feature__footer > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.home-page .founder-feature__name {
    font-size: 0.9rem;
    line-height: 1;
}

.home-page .founder-feature__role {
    color: var(--muted);
    font-size: 0.7rem;
}

.home-page .founder-feature__footer p {
    max-width: 280px;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
}

@media screen and (max-width: 768px) {
    .home-page .founder-feature {
        min-height: 680px;
        margin-top: 4.5rem;
    }

    .home-page .founder-feature__topline {
        top: 1.5rem;
        left: 1.25rem;
        right: 1.25rem;
    }

    .home-page .founder-feature__heading {
        top: 6rem;
        left: 1.25rem;
    }

    .home-page .founder-feature__kicker {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    .home-page .founder-feature__heading h2 {
        font-size: clamp(3.6rem, 16vw, 5.5rem);
    }

    .home-page .founder-feature__portrait {
        right: 0;
        width: 72%;
        height: 62%;
    }

    .home-page .founder-feature__footer {
        right: 1.25rem;
        bottom: 1.5rem;
        left: 1.25rem;
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.home-page .testimonials.testimonials--carousel {
    width: 100%;
    padding: 110px 0;
    overflow: hidden;
}

/* ----- HEADER ----- */
.home-page .testimonials--carousel .testimonials__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 45px;
}

.home-page .testimonials--carousel .testimonials__eyebrow {
    display: block;
    margin-bottom: 26px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.32em !important;
    text-transform: uppercase;
    color: #111111;
}

.home-page .testimonials--carousel .testimonials__title {
    margin: 0;
    font-size: clamp(45px, 5.5vw, 76px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.06em !important;
    color: #111111;
}

.home-page .testimonials--carousel .testimonials__title span {
    color: #b8b8bb;
}

/* ----- CONTROLS ----- */
.home-page .testimonials--carousel .testimonials__controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.home-page .testimonials--carousel .testimonials__arrow {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.home-page .testimonials--carousel .testimonials__arrow:hover {
    transform: scale(1.07);
}

.home-page .testimonials--carousel .testimonials__arrow:active {
    transform: scale(0.95);
}

.home-page .testimonials--carousel .testimonials__arrow:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

/* ----- CAROUSEL ----- */
.home-page .testimonials--carousel .testimonials__viewport {
    width: 100%;
    overflow: hidden;
}

.home-page .testimonials--carousel .testimonials__track {
    display: flex;
    gap: 14px;
    padding: 0 32px 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-page .testimonials--carousel .testimonials__track::-webkit-scrollbar {
    display: none;
}

.home-page .testimonials--carousel .testimonials__track--dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
    cursor: grabbing;
}

/* ----- CARD ----- */
.home-page .testimonials--carousel .testimonial-card {
    flex: 0 0 calc((100% - 92px) / 3);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: #f3f4f6;
    border-radius: 30px;
    scroll-snap-align: start;
    overflow: hidden;
}

/* ----- CARD TOP ----- */
.home-page .testimonials--carousel .testimonial-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ----- AVATAR ----- */
.home-page .testimonials--carousel .testimonial-card__avatar {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #dedfe1;
    overflow: hidden;
}

.home-page .testimonials--carousel .testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-page .testimonials--carousel .testimonial-card__avatar i {
    color: #777777;
    font-size: 18px;
}

/* ----- COMPANY ----- */
.home-page .testimonials--carousel .testimonial-card__company {
    max-width: 55%;
    padding: 13px 20px;
    border: 1px solid #cccccf;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #333333;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----- QUOTE ----- */
.home-page .testimonials--carousel .testimonial-card__quote {
    margin-top: 55px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 74px;
    font-weight: 700;
    line-height: 0.7;
    color: #8da9d3;
    user-select: none;
}

/* ----- TEXT ----- */
.home-page .testimonials--carousel .testimonial-card__text {
    max-width: 340px;
    margin: 35px 0 30px;
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.045em !important;
    color: #111111;
}

/* ----- AUTHOR ----- */
.home-page .testimonials--carousel .testimonial-card__author {
    margin-top: auto;
    padding-left: 20px;
    border-left: 1px solid #c8c8ca;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-page .testimonials--carousel .testimonial-card__author strong {
    font-size: 14px;
    font-weight: 500;
    color: #111111;
}

.home-page .testimonials--carousel .testimonial-card__author span {
    font-size: 12px;
    color: #555555;
}

.home-page .testimonials--carousel .testimonial-card__author small {
    font-size: 11px;
    color: #888888;
}

/* ----- TABLET ----- */
@media (max-width: 1024px) {
    .home-page .testimonials--carousel .testimonial-card {
        flex-basis: calc((100% - 78px) / 2);
    }
}

/* ----- MOBILE ----- */
@media (max-width: 700px) {
    .home-page .testimonials--carousel {
        padding: 80px 0;
    }

    .home-page .testimonials--carousel .testimonials__header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 32px;
    }

    .home-page .testimonials--carousel .testimonials__title {
        font-size: clamp(42px, 12vw, 58px);
    }

    .home-page .testimonials--carousel .testimonials__controls {
        align-self: flex-end;
    }

    .home-page .testimonials--carousel .testimonials__arrow {
        width: 50px;
        height: 50px;
    }

    .home-page .testimonials--carousel .testimonials__track {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-page .testimonials--carousel .testimonial-card {
        flex-basis: calc(100% - 40px);
        min-height: 470px;
        border-radius: 26px;
    }

    .home-page .testimonials--carousel .testimonial-card__text {
        font-size: 28px;
    }
}

/* ----- SMALL MOBILE ----- */
@media (max-width: 420px) {
    .home-page .testimonials--carousel .testimonial-card {
        min-height: 450px;
    }

    .home-page .testimonials--carousel .testimonial-card__text {
        font-size: 25px;
    }

    .home-page .testimonials--carousel .testimonial-card__company {
        padding: 11px 15px;
        font-size: 11px;
    }
}

/* ===== BECOME A PARTNER =====
   Collaboration page. Scoped entirely under .partner so it cannot leak into
   any other section. Every colour, radius, shadow and type value is an
   existing root token or an already-used literal — no new palette, no new
   spacing scale. The only additions are a paper section rhythm and the
   two-column split CTA, because nothing in the existing sheet covered them. */
.partner {
    background: var(--paper);
    color: var(--ink);
    overflow: clip;
}

/* Hero: type and whitespace only. Sits under the fixed nav, so it carries the
   same top offset the Journal masthead uses rather than a bespoke value. */
.partner__hero {
    padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.partner__hero-inner { max-width: 780px; }
.partner__title {
    margin: 0 0 1.5rem;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    font-weight: 400;
    letter-spacing: -.045em !important;
    line-height: 1;
}
.partner__lede {
    max-width: 620px;
    margin: 0 0 2.25rem;
    color: var(--muted);
    font-size: clamp(0.2rem, 1.5vw, 0.9rem);
    line-height: 1.2;
}
.partner__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Section rhythm. Alternating .section--light already carries the hairline
   border from the shared rule, so only the vertical padding is set here. */
.partner__section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }

/* Shared editorial intro: heading left, supporting copy right. Collapses to a
   single column because the copy is a long-form paragraph, not a caption. */
.partner__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem clamp(2rem, 5vw, 4.5rem);
    align-items: end;
    margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.partner__intro-title { margin: 0; }
.partner__intro-copy { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* Collaborator cards. Same border/radius/background recipe as the Journal card
   and the process card, with a numeric index in place of an icon. */
.partner__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}
.partner-card {
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.45rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.partner-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.partner-card__number {
    margin-bottom: 1.15rem;
    color: var(--accent-dark);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.02em !important;
    opacity: 0.55;
}
.partner-card__name {
    margin: 0 0 0.6rem;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -.02em !important;
    line-height: 1.2;
    text-transform: uppercase;
}
.partner-card__desc { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* The four collaboration steps reuse the homepage .process__item, which is
   tiled for five columns. Re-tile rather than fork the component. */
.partner__process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
}

.partner__process-grid .process__item {
    position: relative;
    z-index: 0;
    isolation: isolate;
    min-height: 270px;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    transition: transform var(--duration-medium) var(--ease-expressive), box-shadow var(--duration-medium) var(--ease-standard);
}

.partner__process-grid .process__item::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card-bg-light);
    content: "";
    transform: translate(7px, -7px) rotate(1.5deg);
    transition: transform var(--duration-medium) var(--ease-expressive);
}

.partner__process-grid .process__item:nth-child(even)::before {
    transform: translate(7px, -7px) rotate(-1.5deg);
}

.partner__process-grid .process__item:hover {
    z-index: 2;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    transform: translateY(-4px);
}

.partner__process-grid .process__item:hover::before {
    transform: translate(10px, -10px) rotate(2deg);
}

.partner__process-grid .process__number,
.partner__process-grid .process__title { color: var(--ink); }
.partner__process-grid .process__desc { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .partner__process-grid .process__item,
    .partner__process-grid .process__item::before { transition: none; }
}

/* "Why collaborate" reads as a definition list, not a card grid — quieter than
   the collaborator cards above it, so the two sections do not compete. */
.partner__reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--line);
}
.partner-reason {
    padding: 1.6rem 1.45rem 1.6rem 0;
    border-bottom: 1px solid var(--line);
}
.partner-reason__title {
    margin: 0 0 0.5rem;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .12em !important;
    text-transform: uppercase;
}
.partner-reason__desc { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* Form section: copy rail against a form column, matching the contact layout
   proportion so the two public forms feel like one site. */
.partner__apply {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
.partner__apply-intro { position: sticky; top: 7rem; }
.partner__apply-copy { margin: 1.4rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.partner__apply-note { margin: 1.4rem 0 0; color: var(--muted); font-size: 0.85rem; line-height: 1.7; }
.partner__apply-note a { color: var(--ink); text-underline-offset: 3px; }
.partner__form { min-width: 0; }
.partner__form .form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(1.5rem, 3vw, 2.5rem);
}
.partner__form .form__label { margin-bottom: 0.15rem; color: var(--muted); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.partner__form .form__input,
.partner__form .form__textarea { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0.7rem 0; }
.partner__form .form__input:focus,
.partner__form .form__textarea:focus { border-color: var(--ink); box-shadow: none; }
.partner__form .form__textarea { min-height: 8rem; resize: vertical; }
.partner__form .form__submit { width: auto; align-self: flex-start; margin-top: 0.5rem; border-radius: 999px; box-shadow: none; }

/* Final split CTA. The two panels share a hairline; only the second is
   inverted, so the paths read as related without a second button style. */
.partner__final {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.partner__final-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    background: var(--paper-strong);
}
.partner__final-panel--alt { border-left: 1px solid var(--line); background: var(--light-bg); }
.partner__final-kicker {
    margin: 0;
    color: var(--accent-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .14em !important;
    text-transform: uppercase;
    opacity: 0.6;
}
.partner__final-title {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 400;
    letter-spacing: -.03em !important;
    line-height: 1.12;
}
.partner__final-panel .section__cta { margin-top: auto; }

@media screen and (max-width: 992px) {
    .partner__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner__process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 768px) {
    .partner__intro { grid-template-columns: 1fr; align-items: start; }
    .partner__apply { grid-template-columns: 1fr; }
    .partner__apply-intro { position: static; }
    .partner__final { grid-template-columns: 1fr; }
    .partner__final-panel--alt { border-left: 0; border-top: 1px solid var(--line); }
    .partner__form .form__row { grid-template-columns: 1fr; gap: 0; }
    .partner__form .form__submit { width: 100%; justify-content: center; }
}

@media screen and (max-width: 480px) {
    .partner__title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
    .partner__grid,
    .partner__process-grid { grid-template-columns: 1fr; }
    .partner__actions { flex-direction: column; align-items: stretch; }
    .partner__actions .section__cta { justify-content: center; }
    .partner-card { padding: 1.35rem 1.25rem; }
    .partner-reason { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .partner-card { transition: none; }
    .partner-card:hover { transform: none; }
}

/* ============================================================
   RETEC JOURNAL — FILTERS, CARD METADATA, ARTICLE FURNITURE
   Appended block. Everything below reuses the tokens already
   defined above; no new palette and no root overrides.
   ============================================================ */

/* ----- Discover / filter bar ----- */
.journal__discover {
    padding: 0;
    border-bottom: 1px solid var(--line);
}

.journal__filters {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-bottom: 1.5rem;
}

.journal__filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.journal__filter-group--categories {
    padding-top: 0.15rem;
}

/* The type row is the primary control, so it is set larger than the
   topic row below it rather than being styled twice. */
.journal__filter {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard),
                background-color var(--duration-fast) var(--ease-standard);
}

.journal__filter:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.journal__filter--active,
.journal__filter--active:hover {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

/* Topics are a lighter set: they are a refinement of the current
   view, not a peer of the content type. */
.journal__filter-group--categories .journal__filter {
    padding: 0.4rem 0.85rem;
    border-color: transparent;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.journal__filter-group--categories .journal__filter--active,
.journal__filter-group--categories .journal__filter--active:hover {
    color: var(--accent-dark);
    background: transparent;
    border-color: currentColor;
}

.journal__filter-group--categories .journal__filter:not(.journal__filter--active):hover {
    color: var(--ink);
    border-color: var(--line);
}

/* ----- Card metadata strip ----- */
.journal-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    font-family: var(--font-body);
}

.journal-card__type {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-dark);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
}

.journal-card__cat {
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.journal-card__src {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.journal-card__src::before {
    content: "\00B7";
    margin-right: 0.4rem;
}

.journal-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-bottom: 1.15rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.74rem;
}

.journal-card__footer span + span::before {
    content: "\00B7";
    margin-right: 1rem;
}

.journal-card--lead .journal-card__meta,
.journal-card--lead .journal-card__footer {
    font-size: 0.8rem;
}

/* ----- Broken-image handling -----
   A fetched cover can 404 at any time. The card hides the frame
   instead of collapsing to a broken-image box. */
.journal-card__image--broken,
.editorial__related-img--broken,
.editorial__hero-img--broken {
    display: none !important;
}

.journal-card__image--broken + .journal-card__body,
.editorial__related-img--broken + .editorial__related-body {
    padding-top: 1.45rem;
}

/* ----- Pagination ----- */
.journal-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-body);
}

.journal-pagination__step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.journal-pagination__step:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.journal-pagination__step--off {
    opacity: 0.35;
    pointer-events: none;
}

.journal-pagination__info {
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ----- Article: publication line ----- */
.editorial__publication {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.1rem;
    margin-top: 1.75rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.editorial__publication span + span::before,
.editorial__publication time + span::before,
.editorial__publication time + time::before,
.editorial__publication span + time::before {
    content: "\00B7";
    margin-right: 1.1rem;
}

/* The first element must not get a leading separator. */
.editorial__publication > :first-child::before {
    content: none;
    margin-right: 0;
}

.editorial__preview-badge {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--accent-dark);
    border-radius: 999px;
    color: var(--accent-dark) !important;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.editorial__preview-badge::before {
    content: none !important;
    margin-right: 0 !important;
}

/* ----- Article: source attribution ----- */
.editorial__source {
    margin-top: 3rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent-dark);
    border-radius: 8px;
    background: var(--paper);
    font-family: var(--font-body);
}

.editorial__source .journal__kicker {
    margin-bottom: 0.7rem;
}

.editorial__source-link,
.editorial__source-name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 0.1rem;
}

.editorial__source-link i {
    font-size: 0.7rem;
    color: var(--muted);
}

.editorial__source-link:hover {
    color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.editorial__source-date {
    display: block;
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.editorial__source-note {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

/* ----- Article: reading progress ----- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: 100%;
    height: 3px;
    pointer-events: none;
}

.reading-progress__bar {
    width: 100%;
    height: 100%;
    background: var(--accent-dark);
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
}

/* ----- Article: end-of-body share ----- */
.editorial__end {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.editorial__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-body);
}

.editorial__share-label {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.editorial__share-btns {
    display: flex;
    gap: 0.5rem;
}

.editorial__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: none;
    color: var(--ink);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard),
                background-color var(--duration-fast) var(--ease-standard);
}

.editorial__share-btn:hover {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.editorial__share-btn.copied {
    color: var(--white);
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.editorial__share-btn.copied::after {
    content: "\f00c";
    font-size: 0.85rem;
}

.editorial__share-btn.copied i {
    display: none;
}

/* ----- Article: previous / next ----- */
.editorial__nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-width: 20rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color var(--duration-fast) var(--ease-standard);
}

/* The "previous" link is always left-aligned; only "next" pushes right, so a
   pair of links sits at opposite ends and a lone link stays at the start. */
.editorial__nav-link--prev {
    margin-right: auto;
    text-align: left;
    align-items: flex-start;
}

.editorial__nav-link--next {
    margin-left: auto;
    text-align: right;
    align-items: flex-end;
}

.editorial__nav-link:hover {
    border-color: var(--ink);
}

.editorial__nav-direction {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.editorial__nav-title {
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* ----- Article: related rail ----- */
.editorial__related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.editorial__related-title {
    margin-bottom: 2rem;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.editorial__related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background: var(--paper-strong);
    transition: border-color var(--duration-fast) var(--ease-standard),
                box-shadow var(--duration-fast) var(--ease-standard);
}

.editorial__related-card:hover {
    border-color: var(--ink);
    box-shadow: 0 14px 34px rgba(24, 21, 17, 0.07);
}

.editorial__related-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--light-bg);
}

.editorial__related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-medium) var(--ease-smooth);
}

.editorial__related-card:hover .editorial__related-img img {
    transform: scale(1.035);
}

.editorial__related-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.editorial__related-date {
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.editorial__related-card-title {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.editorial__related-summary {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

/* ----- Empty state link ----- */
.journal__empty .journal-card__link {
    margin-top: 1.25rem;
}

@media screen and (max-width: 768px) {
    .journal__filter-group--categories { gap: 0.35rem; }
    .journal__filter { padding: 0.5rem 0.9rem; font-size: 0.68rem; }
    .journal__filter-group--categories .journal__filter { padding: 0.35rem 0.7rem; font-size: 0.64rem; }
    .editorial__publication { gap: 0.3rem 0.8rem; font-size: 0.74rem; }
    .editorial__publication span + span::before,
    .editorial__publication time + time::before { margin-right: 0.8rem; }
    .editorial__source { padding: 1.25rem 1.15rem; }
    .editorial__nav { flex-direction: column; gap: 1rem; }
    .editorial__nav-link,
    .editorial__nav-link--next { max-width: none; margin-left: 0; text-align: left; align-items: flex-start; }
    .editorial__related-grid { grid-template-columns: 1fr; }
    .journal-pagination { gap: 0.85rem; }
    .journal-pagination__step { padding: 0.55rem 0.95rem; font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
    .journal__filter,
    .journal-pagination__step,
    .editorial__share-btn,
    .editorial__nav-link,
    .editorial__related-card,
    .editorial__related-card:hover .editorial__related-img img {
        transition: none;
    }
}

/* ===== JOURNAL MAGAZINE COMPOSITION ===== */
.journal {
    --journal-bg: #f6f6f8;
    --journal-surface: #fff;
    --journal-ink: #161616;
    --journal-muted: #77777b;
    --journal-line: rgba(22, 22, 22, 0.08);
    background: var(--journal-bg);
    color: var(--journal-ink);
}

.journal .container { max-width: 1320px; }

body:has(.journal) .header {
    padding: 0.35rem 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--journal-line);
}

body:has(.journal) .header .container { max-width: 1400px; }
body:has(.journal) .header .nav { min-height: 46px; }
body:has(.journal) .header .nav__icon { display: none; }
body:has(.journal) .header .nav__list { gap: 0.8rem; }
body:has(.journal) .header .nav__link {
    gap: 0;
    padding: 0.45rem 0.55rem;
    color: var(--journal-ink);
    font-size: 0.72rem;
}
body:has(.journal) .header .nav__link--active { color: var(--journal-ink); }

.journal__utility-bar {
    color: #f7f7f7;
    background: #111;
    border: 0;
}

.journal__utility-inner {
    max-width: 1400px;
    min-height: 2rem;
    gap: 0.75rem;
    font-size: 0.64rem;
}

.journal__utility-pill {
    padding: 0.18rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font-size: 0.58rem;
}

.journal__utility-text { color: rgba(255, 255, 255, 0.82); }
.journal__utility-action { color: #fff; font-size: 0.58rem; }

.journal__masthead {
    position: relative;
    padding: clamp(2.9rem, 6vw, 5.3rem) 0 1.7rem;
    background: linear-gradient(112deg, #edf0fb 0%, #f7f2f4 48%, #f7e8e4 100%);
}

.journal__intro { max-width: 1000px; }
.journal__intro .journal__kicker { margin-bottom: 0.5rem; color: #77777b; }
.journal__intro h1 {
    color: var(--journal-ink);
    font-family: var(--font-body) !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0 !important;
    line-height: 1.08;
}
.journal__intro-subtitle {
    margin-top: 0.35rem;
    color: var(--journal-muted);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
}

.journal__featured { padding: 1rem 0 0.6rem; }
.journal__feature-grid { gap: 1.1rem; }
.journal__feature-grid .journal-card {
    position: relative;
    min-height: 0;
    margin-bottom: 0.45rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.journal__feature-grid .journal-card__image {
    aspect-ratio: 1.48;
    border-radius: 8px;
    background: #e7e8eb;
}
.journal__feature-grid .journal-card__body {
    position: absolute;
    right: 5%;
    bottom: 0.55rem;
    left: 5%;
    min-height: 8rem;
    padding: 0.8rem 0.9rem 0.75rem;
    border: 1px solid rgba(22, 22, 22, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 22px rgba(22, 22, 22, 0.07);
}
.journal__feature-grid .journal-card__meta { gap: 0.4rem; margin-bottom: 0.25rem; }
.journal__feature-grid .journal-card__type {
    padding: 0.16rem 0.42rem;
    background: #fff;
    color: var(--journal-ink);
    font-size: 0.55rem;
    letter-spacing: 0;
}
.journal__feature-grid .journal-card__cat,
.journal__feature-grid .journal-card__date,
.journal__feature-grid .journal-card__footer {
    color: var(--journal-muted);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.journal__feature-grid .journal-card__date { display: inline; }
.journal__feature-grid .journal-card h3 {
    margin-top: 0.3rem;
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.35vw, 1.15rem);
    font-weight: 650;
    letter-spacing: 0 !important;
    line-height: 1.18;
}
.journal__feature-grid .journal-card__summary {
    margin: 0.35rem 1.2rem 0 0;
    color: #626267;
    font-size: 0.68rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
}
.journal__feature-grid .journal-card__footer { display: none; }
.journal__feature-grid .journal-card__link,
.journal__latest-layout .journal-card__link {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--journal-ink);
    font-size: 0;
}
.journal__feature-grid .journal-card__link i,
.journal__latest-layout .journal-card__link i { font-size: 0.7rem; }

.journal__discover {
    padding: 0.9rem 0;
    border: 0;
    background: #ededf0;
}
.journal__filters {
    gap: 0.35rem;
    padding: 0;
}
.journal__filter-group {
    justify-content: flex-start;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.1rem 0;
    border-radius: 0;
    background: transparent;
    scrollbar-width: none;
}
.journal__filter-group::-webkit-scrollbar { display: none; }
.journal__filter-group--categories { order: 1; }
.journal__filter-group:not(.journal__filter-group--categories) {
    order: 2;
    opacity: 0.78;
}
.journal__filter {
    min-height: 1.9rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.82);
    color: #45454a;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.journal__filter--active,
.journal__filter--active:hover {
    border-color: transparent;
    background: var(--journal-ink);
    color: #fff;
}
.journal__filter-group--categories .journal__filter {
    padding: 0.35rem 0.75rem;
    border-color: transparent;
    background: rgba(255, 255, 255, 0.82);
    color: #45454a;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0;
}
.journal__filter-group--categories .journal__filter--active,
.journal__filter-group--categories .journal__filter--active:hover {
    background: var(--journal-ink);
    color: #fff;
}

.journal__latest { padding: 2.4rem 0 2rem; border: 0; }
.journal__latest .container { max-width: 1080px; }
.journal__section-heading--split {
    min-height: 3.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--journal-line);
    border-radius: 6px;
    background: var(--journal-surface);
}
.journal__section-title { display: flex; align-items: baseline; gap: 0.75rem; }
.journal__section-title h2 {
    color: var(--journal-ink);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0 !important;
    line-height: 1.2;
}
.journal__section-title p { color: var(--journal-muted); font-size: 0.68rem; }
.journal__view-more {
    gap: 0.6rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--journal-ink);
    font-size: 0.65rem;
    letter-spacing: 0;
}
.journal__view-more i {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 50%;
    background: var(--journal-ink);
    color: #fff;
}
.journal__latest-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.95fr);
    gap: 0.85rem;
}
.journal__latest-layout .journal-card {
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}
.journal-card--feature-lead { position: relative; min-height: 400px; overflow: hidden; border-radius: 8px !important; }
.journal-card--feature-lead .journal-card__image {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: #e7e8eb;
}
.journal-card--feature-lead .journal-card__body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 12rem;
    padding: 4rem 3.75rem 1.35rem 1.5rem;
    border: 0;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0));
    color: #fff;
    box-shadow: none;
}
.journal-card--feature-lead .journal-card__meta { gap: 0.4rem; margin-bottom: 0.25rem; }
.journal-card--feature-lead .journal-card__type { background: #fff; color: var(--journal-ink); font-size: 0.58rem; }
.journal-card--feature-lead .journal-card__date,
.journal-card--feature-lead .journal-card__cat { color: #fff; font-size: 0.62rem; letter-spacing: 0; }
.journal-card--feature-lead .journal-card__footer { color: rgba(255, 255, 255, 0.78); font-size: 0.68rem; letter-spacing: 0; }
.journal-card--feature-lead h3 {
    margin-top: 0.3rem;
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0 !important;
    line-height: 1.16;
    color: #fff;
}
.journal-card--feature-lead .journal-card__summary { margin: 0.35rem 0 0; color: rgba(255, 255, 255, 0.82); font-size: 0.72rem; line-height: 1.45; }
.journal-card--feature-lead .journal-card__footer { display: flex; margin: 0.6rem 0 0; }
.journal-card--feature-lead .journal-card__link { background: #fff; color: var(--journal-ink); }
.journal__stacked { grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.journal-card--feature-side {
    display: grid;
    grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--journal-line) !important;
    border-radius: 8px !important;
    background: var(--journal-surface) !important;
}
.journal-card--feature-side .journal-card__image { min-height: 100%; aspect-ratio: auto; background: #e7e8eb; }
.journal-card--feature-side .journal-card__body { position: relative; padding: 0.75rem 0.7rem; }
.journal-card--feature-side .journal-card__meta { gap: 0.35rem; margin-bottom: 0.35rem; }
.journal-card--feature-side .journal-card__type { padding: 0.12rem 0.35rem; background: #f2f2f4; color: var(--journal-ink); font-size: 0.55rem; letter-spacing: 0; }
.journal-card--feature-side .journal-card__cat,
.journal-card--feature-side .journal-card__date { color: var(--journal-muted); font-size: 0.58rem; letter-spacing: 0; }
.journal-card--feature-side h3 {
    margin-top: 0.35rem;
    font-family: var(--font-body);
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    font-weight: 650;
    letter-spacing: 0 !important;
    line-height: 1.25;
}
.journal-card--feature-side .journal-card__summary,
.journal-card--feature-side .journal-card__footer { display: none; }
.journal__story-grid { gap: 0.85rem; margin-top: 0.85rem; }
.journal-card--story-grid-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "meta date" "title title" "image image" "summary summary" "footer link";
    align-content: start;
    border: 1px solid var(--journal-line);
    border-radius: 8px;
    background: var(--journal-surface);
    box-shadow: none;
}
.journal-card--story-grid-card .journal-card__image { grid-area: image; aspect-ratio: 1.4; }
.journal-card--story-grid-card .journal-card__body { display: contents; }
.journal-card--story-grid-card .journal-card__meta { grid-area: meta; margin: 0; padding: 1rem 0 0 1rem; }
.journal-card--story-grid-card .journal-card__date { grid-area: date; align-self: center; padding: 1rem 1rem 0 0; font-size: 0.62rem; letter-spacing: 0; }
.journal-card--story-grid-card h3 { grid-area: title; margin: 0; padding: 0.5rem 1rem 0.85rem; font-family: var(--font-body); font-size: 1.1rem; font-weight: 650; letter-spacing: 0 !important; }
.journal-card--story-grid-card .journal-card__summary { grid-area: summary; margin: 0; padding: 0.85rem 1rem 0; }
.journal-card--story-grid-card .journal-card__footer { grid-area: footer; align-self: center; margin: 0; padding: 0.75rem 1rem 1rem; font-size: 0.64rem; }
.journal-card--story-grid-card .journal-card__link { grid-area: link; align-self: center; justify-self: end; margin: 0 0.8rem 0 0; }
.journal-card--story-grid-card:not(:has(.journal-card__image)) {
    display: flex;
    flex-direction: column;
}
.journal-card--story-grid-card:not(:has(.journal-card__image)) .journal-card__body {
    display: flex;
    padding: 1rem;
}
.journal-card--story-grid-card:not(:has(.journal-card__image)) .journal-card__meta,
.journal-card--story-grid-card:not(:has(.journal-card__image)) .journal-card__date,
.journal-card--story-grid-card:not(:has(.journal-card__image)) h3,
.journal-card--story-grid-card:not(:has(.journal-card__image)) .journal-card__footer {
    padding: 0;
}
.journal-card--story-grid-card:not(:has(.journal-card__image)) h3 { margin-top: 0.5rem; }
.journal-card--story-grid-card:not(:has(.journal-card__image)) .journal-card__summary { padding: 0.6rem 0 0; }
.journal-card--story-grid-card:not(:has(.journal-card__image)) .journal-card__link { margin: 0.75rem 0 0; }

.journal__newsletter { padding: 1rem 0 3rem; }
.journal__newsletter .container { max-width: 1080px; }
.journal__newsletter-inner {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--journal-line);
    border-radius: 8px;
    background: var(--journal-surface);
    box-shadow: none;
}
.journal__newsletter-copy h3 {
    font-family: var(--font-body);
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}
.journal__newsletter-form input { border-radius: 5px; background: #fff; }
.journal__newsletter-form button { border-radius: 5px; }

@media (max-width: 768px) {
    body:has(.journal) .nav__menu {
        right: 0;
        clip-path: inset(0 0 0 100%);
        visibility: hidden;
        pointer-events: none;
        transition: clip-path 0.35s ease, visibility 0s linear 0.35s;
    }
    body:has(.journal) .nav__menu--open {
        clip-path: inset(0);
        visibility: visible;
        pointer-events: auto;
        transition: clip-path 0.35s ease;
    }
    .journal .container { padding-right: 1rem; padding-left: 1rem; }
    .journal__masthead { padding-top: 2.6rem; }
    .journal__intro h1 { font-size: clamp(2.3rem, 9vw, 3.5rem); }
    .journal__featured { padding-top: 0.65rem; }
    .journal__feature-grid { grid-template-columns: 1fr; gap: 0.2rem; }
    .journal__feature-grid .journal-card { margin-bottom: 0.35rem; }
    .journal__feature-grid .journal-card__image { aspect-ratio: 1.55; }
    .journal__feature-grid .journal-card__body { right: 4%; left: 4%; }
    .journal__filter-group { max-width: 100%; }
    .journal__latest { padding-top: 1.5rem; }
    .journal__section-heading--split { min-height: 0; gap: 0.8rem; }
    .journal__section-title { flex-wrap: wrap; gap: 0.15rem 0.6rem; }
    .journal__latest-layout { grid-template-columns: 1fr; }
    .journal-card--feature-lead { min-height: 330px; }
    .journal-card--feature-lead .journal-card__body { padding: 3.5rem 3.5rem 1.1rem 1.1rem; }
    .journal__stacked { grid-template-rows: none; }
    .journal-card--feature-side { min-height: 145px; grid-template-columns: 38% minmax(0, 1fr); }
    .journal__story-grid { grid-template-columns: 1fr; }
    .journal__newsletter-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .journal-card__image img,
    .journal-card:hover .journal-card__image img { transition: none; transform: none; }
}

/* ===== HOMEPAGE JOURNAL PREVIEW ===== */
.home-page .blog-preview {
    padding: 5.5rem 0 6rem;
    background: #f6f6f8;
}

.home-page .blog-preview .container { max-width: 1320px; }

.home-journal-preview__heading {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.home-journal-preview__heading .section__eyebrow {
    margin-bottom: 0.4rem;
    color: #707076;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-journal-preview__heading h2 {
    color: #161616;
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}

.home-journal-preview__heading > p {
    padding-bottom: 0.25rem;
    color: #77777b;
    font-size: 0.78rem;
}

.home-journal-preview__more {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
}

.home-journal-preview__more i { font-size: 0.65rem; }

.home-journal-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-page .home-journal-preview__grid .journal-card {
    position: relative;
    min-width: 0;
    min-height: 370px;
    overflow: visible;
    border: 0;
    border-radius: 8px;
    background: #e9e9ec;
    box-shadow: none;
}

.home-journal-preview__grid .journal-card__image {
    position: absolute;
    inset: 0 0 2rem;
    display: block;
    border-radius: 8px;
    background: #e4e4e7;
}

.home-journal-preview__grid .journal-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-journal-preview__grid .journal-card__body {
    position: absolute;
    right: 5%;
    bottom: 0;
    left: 5%;
    padding: 1rem 3.5rem 1rem 1rem;
    border: 1px solid rgba(22, 22, 22, 0.07);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #161616;
    box-shadow: 0 8px 22px rgba(22, 22, 22, 0.08);
}

.home-journal-preview__grid .journal-card__meta {
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.home-journal-preview__grid .journal-card__type {
    padding: 0.18rem 0.5rem;
    background: #f2f2f4;
    color: #161616;
    font-size: 0.58rem;
    letter-spacing: 0;
}

.home-journal-preview__grid .journal-card__cat,
.home-journal-preview__grid .journal-card__date {
    color: #77777b;
    font-size: 0.64rem;
    letter-spacing: 0;
}

.home-journal-preview__grid .journal-card h3 {
    margin-top: 0.35rem;
    color: #161616;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0 !important;
    line-height: 1.22;
}

.home-journal-preview__grid .journal-card__summary {
    margin: 0.45rem 0 0;
    color: #626267;
    font-size: 0.75rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
}

.home-journal-preview__grid .journal-card__link {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: #f1f1f3;
    color: #161616;
    font-size: 0;
}

.home-journal-preview__grid .journal-card__link i { font-size: 0.75rem; }

.home-journal-preview__grid .journal-card:not(:has(.journal-card__image)),
.home-journal-preview__grid .journal-card:has(.journal-card__image--broken) {
    border: 1px solid rgba(22, 22, 22, 0.08);
    background: #fff;
}

.home-journal-preview__grid .journal-card:not(:has(.journal-card__image)) .journal-card__body,
.home-journal-preview__grid .journal-card:has(.journal-card__image--broken) .journal-card__body {
    position: relative;
    padding: 1.2rem;
    background: transparent;
    color: #161616;
}

.home-journal-preview__grid .journal-card:not(:has(.journal-card__image)) h3,
.home-journal-preview__grid .journal-card:has(.journal-card__image--broken) h3 { color: #161616; }

.home-journal-preview__grid .journal-card:not(:has(.journal-card__image)) .journal-card__cat,
.home-journal-preview__grid .journal-card:not(:has(.journal-card__image)) .journal-card__date,
.home-journal-preview__grid .journal-card:has(.journal-card__image--broken) .journal-card__cat,
.home-journal-preview__grid .journal-card:has(.journal-card__image--broken) .journal-card__date { color: #77777b; }

.home-journal-preview__grid .journal-card:not(:has(.journal-card__image)) .journal-card__summary,
.home-journal-preview__grid .journal-card:has(.journal-card__image--broken) .journal-card__summary { color: #626267; }

.home-journal-preview__grid .journal-card:not(:has(.journal-card__image)) .journal-card__link,
.home-journal-preview__grid .journal-card:has(.journal-card__image--broken) .journal-card__link {
    position: static;
    margin-top: 1rem;
    background: #f1f1f3;
}

@media (max-width: 900px) {
    .home-journal-preview__heading { grid-template-columns: 1fr auto; }
    .home-journal-preview__heading > p { grid-column: 1; grid-row: 2; }
    .home-journal-preview__more { grid-column: 2; grid-row: 1 / span 2; }
    .home-journal-preview__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .home-page .blog-preview { padding: 4rem 0; }
    .home-journal-preview__heading { grid-template-columns: 1fr; gap: 0.65rem; }
    .home-journal-preview__heading > p,
    .home-journal-preview__more { grid-column: 1; grid-row: auto; }
    .home-journal-preview__more { justify-self: start; }
    .home-journal-preview__grid { grid-template-columns: 1fr; }
    .home-page .home-journal-preview__grid .journal-card { min-height: 350px; }
    .home-journal-preview__grid .journal-card__image { inset: 0 0 1.65rem; }
}

/* Homepage hero: framed industrial composition */
.hero-industrial {
    background: linear-gradient(145deg, var(--light-bg), var(--gray-light));

    color: var(--light-text);
    font-family: var(--font-body);
}

.hero-industrial__container {
    width: 100%;
    max-width: none;
    padding-top: 6.5rem;
    padding-right: 0;
    padding-bottom: 3rem;
    padding-left: 0;
}

.hero-industrial__frame {
    --hero-gutter: clamp(1.5rem, 5vw, 4rem);
    --hero-bleed: clamp(3rem, 10vw, 8rem);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: clamp(680px, calc(100svh - 10rem), 900px);
    overflow: hidden;
    border-radius: 0;
    padding: clamp(1.5rem, 4vw, 3rem) var(--hero-gutter) 1.5rem;
    background: linear-gradient(145deg, var(--light-bg), var(--gray-light));
}

.hero-industrial__masthead {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 2.5rem;
}

.hero-industrial__tag {
    justify-self: start;
    padding: 0.45rem 1rem;
    border: 1px solid var(--light-text-muted-lightest);
    border-radius: 999px;
    color: var(--light-text-muted);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-industrial__wordmark {
    color: var(--light-text);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.hero-industrial__menu {
    justify-self: end;
    display: grid;
    align-content: center;
    gap: 4px;
    width: 2rem;
    height: 2rem;
}

.hero-industrial__menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--light-text);
}

.hero-industrial__menu span:nth-child(2) {
    width: 72%;
    justify-self: end;
}

.hero-industrial__main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.hero-industrial__heading {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
    align-items: start;
    gap: 2rem;
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-industrial__heading h1 {
    max-width: none;
    color: var(--light-text);
    font-family: var(--font-heading) !important;
    font-size: 8rem;
    font-weight:400;
    line-height: 1.05;
    text-wrap: balance;
}

.hero-industrial__mobile-break {
    display: block;
}

.hero-industrial__intro {
    padding-top: 0.5rem;
}

.hero-industrial__dash {
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-bottom: 1.25rem;
    background: var(--light-text);
}

.hero-industrial__intro h2 {
    max-width: 17ch;
    color: var(--light-text);
    font-family: var(--font-body) !important;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.14;
}

.hero-industrial__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    background: var(--light-text);
    color: var(--light-bg);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform var(--duration-fast) var(--ease-standard);
}

.hero-industrial__cta:hover {
    transform: translateY(-2px);
}

.hero-industrial__visual {
    position: relative;
    display: flex;
    flex: 1;
    align-items: flex-end;
    justify-content: center;
    min-height: 330px;
    margin-top: -1rem;
    overflow: hidden;
}

.hero-industrial__image {
    width: min(78%, 900px);
    height: clamp(300px, 43vw, 470px);
    object-fit: contain;
    object-position: center bottom;
    filter: grayscale(1) contrast(1.04);
    mix-blend-mode: multiply;
    mask-image: linear-gradient(to bottom, var(--light-text) 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, var(--light-text) 78%, transparent 100%);
}

.hero-industrial__status,
.hero-industrial__telemetry {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--light-text-muted-light);
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.hero-industrial__status {
    top: 44%;
    left: 3%;
}

.hero-industrial__telemetry {
    right: 3%;
    bottom: 24%;
    padding-left: 0.8rem;
    border-left: 1px solid var(--light-text-muted-lightest);
}

.hero-industrial__focus {
    position: absolute;
    top: 29%;
    right: 24%;
    display: grid;
    width: clamp(90px, 13vw, 160px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--light-text-hint);
    background: color-mix(in srgb, var(--light-text) 10%, transparent);
}

.hero-industrial__focus::before,
.hero-industrial__focus::after {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--light-text-muted-lighter);
    border-style: solid;
    content: '';
}

.hero-industrial__focus::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.hero-industrial__focus::after {
    right: -1px;
    bottom: -1px;
    border-width: 0 1px 1px 0;
}

.hero-industrial__focus span {
    width: 34%;
    aspect-ratio: 1;
    border: 3px solid var(--light-text-hint);
    border-radius: 50%;
}

.hero-industrial__footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: calc(100% + var(--hero-bleed));
    margin-left: calc(0px - var(--hero-gutter));
    padding-top: 1.25rem;
    border-top: 1px solid var(--light-border);
}

.hero-industrial__footer-label {
    padding-inline: var(--hero-gutter);
    color: var(--light-text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-industrial__projects {
    min-width: 0;
    overflow: hidden;
}

.hero-industrial__projects-track {
    display: flex;
    width: 200%;
    animation: selected-work-marquee 30s linear infinite;
}

.hero-industrial__projects-group {
    display: grid;
    flex: 0 0 50%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    min-width: 0;
}

.hero-industrial__projects-group > span {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
}

.hero-industrial__project-more {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.hero-industrial__projects-group > span img,
.hero-industrial__project-more img {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.72;
}

.hero-industrial__project-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-industrial__projects-group > span,
.hero-industrial__project-more {
    transform-origin: center;
    transition: transform 260ms var(--ease-smooth);
}

.hero-industrial__projects-group > span:hover,
.hero-industrial__project-more:hover {
    position: relative;
    z-index: 1;
    transform: translateY(-4px) scale(1.16);
}

.hero-industrial__projects-group > span:hover + span,
.hero-industrial__projects-group > span:has(+ span:hover) {
    animation: hero-project-ripple 720ms var(--ease-smooth) both;
}

.hero-industrial__projects-group > span:hover + span + span,
.hero-industrial__projects-group > span:has(+ span + span:hover) {
    animation: hero-project-ripple 720ms var(--ease-smooth) 90ms both;
}

@keyframes hero-project-ripple {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.08); }
}

@media (max-width: 900px) {
    .hero-industrial__container { padding-top: 6rem; }
    .hero-industrial__frame { min-height: 760px; }
    .hero-industrial__heading { grid-template-columns: 1fr; gap: 1.25rem; }
    .hero-industrial__heading h1 { font-size: 4.25rem; }
    .hero-industrial__intro {
        display: grid;
        grid-template-columns: 2.5rem minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.75rem;
        padding: 0;
    }
    .hero-industrial__dash { margin: 0; }
    .hero-industrial__cta { margin: 0; white-space: nowrap; }
    .hero-industrial__visual { min-height: 340px; margin-top: 0; }
    .hero-industrial__image { width: 100%; height: 370px; }
    .hero-industrial__status { top: 22%; left: 0; }
    .hero-industrial__telemetry { right: 0; bottom: 18%; }
    .hero-industrial__focus { top: 12%; right: 17%; }
}

@media (max-width: 600px) {
    .hero-industrial__container { padding: 5.5rem 0 1.5rem; }
    .hero-industrial__frame {
        --hero-gutter: 1rem;
        --hero-bleed: 2rem;
        min-height: 720px;
        border-radius: 0;
        padding: 1.25rem var(--hero-gutter) 1rem;
    }
    .hero-industrial__masthead { grid-template-columns: 1fr auto; }
    .hero-industrial__tag { max-width: 100%; padding: 0.4rem 0.65rem; font-size: 0.52rem; }
    .hero-industrial__wordmark { display: none; }
    .hero-industrial__heading { gap: 1rem; margin-top: 2.75rem; }
    .hero-industrial__heading h1 { font-size: 2.6rem; }
    .hero-industrial__intro { grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.6rem; }
    .hero-industrial__intro h2 { font-size: 1.15rem; }
    .hero-industrial__cta { grid-column: 2; justify-self: start; padding: 0.7rem 1rem; font-size: 0.6rem; }
    .hero-industrial__visual { min-height: 290px; margin: 0 -0.25rem; }
    .hero-industrial__image { height: 300px; }
    .hero-industrial__status,
    .hero-industrial__telemetry { font-size: 0.48rem; }
    .hero-industrial__status { top: 15%; }
    .hero-industrial__telemetry { right: 0; bottom: 10%; max-width: 48%; }
    .hero-industrial__focus { top: 7%; right: 12%; width: 82px; }
    .hero-industrial__footer { grid-template-columns: 1fr; gap: 0.75rem; }
    .hero-industrial__projects-group > span,
    .hero-industrial__project-more { gap: 0.25rem; font-size: 0.72rem; }
    .hero-industrial__projects-group > span img,
    .hero-industrial__project-more img { width: 0.85rem; height: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-industrial__cta { transition: none; }
    .hero-industrial__projects-track { animation: none; }
    .hero-industrial__project-more,
    .hero-industrial__project-more:hover,
    .hero-industrial__projects-group > span,
    .hero-industrial__projects-group > span:hover,
    .hero-industrial__projects-group > span:hover + span,
    .hero-industrial__projects-group > span:has(+ span:hover),
    .hero-industrial__projects-group > span:hover + span + span,
    .hero-industrial__projects-group > span:has(+ span + span:hover) {
        transition: none;
        animation: none;
        transform: none;
    }
}

/* Homepage desktop navigation: shared active and hover indicators */
@media (min-width: 769px) {
    .home-page .nav__list {
        position: relative;
    }

    .home-page .nav__indicator-host {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
        width: 0;
        height: 0;
        list-style: none;
        pointer-events: none;
    }

    .home-page .nav__active-indicator,
    .home-page .nav__hover-indicator {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 44px;
        border-radius: 999px;
        transform: translateY(-50%);
        opacity: 0;
        pointer-events: none;
        will-change: transform, opacity;
    }

    .home-page .nav__active-indicator {
        z-index: 0;
        background: var(--accent-dark);
    }

    .home-page .nav__hover-indicator {
        z-index: 1;
        background: transparent;
    }

    .home-page .nav__link {
        z-index: 2;
        transition: color 220ms var(--ease-smooth), scale 220ms var(--ease-smooth);
    }

    .home-page .nav__link:hover {
        color: var(--white);
        background: transparent;
        scale: 1.045;
    }

    .home-page .nav__link:focus-visible {
        color: var(--white);
        scale: 1.045;
    }

    .home-page .nav__link--active {
        color: var(--white) !important;
        background: transparent;
    }

    .home-page .nav__link--active::before,
    .home-page .nav__link--active::after,
    .home-page .nav__link:hover::after {
        display: none;
    }

    .home-page .nav__link:hover::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .home-page .nav__indicator-host {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .nav__active-indicator,
    .home-page .nav__hover-indicator {
        transition: opacity 220ms var(--ease-standard);
        will-change: auto;
    }
}

.flash {
    transition: opacity 280ms ease, transform 280ms ease;
}

.flash.is-dismissing {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.home-page .section__cta,
.home-page .hero-industrial__cta,
.home-page .form__submit,
.home-page .subscribe__btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.home-page .cta-liquid-fill {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: inherit;
    gap: inherit;
    border-radius: inherit;
    background: var(--gray-medium);
    color: var(--ink);
    clip-path: inset(0 100% 0 0);
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: inherit;
    white-space: nowrap;
    pointer-events: none;
    transition: clip-path 620ms var(--ease-smooth);
}

.home-page .cta-liquid-fill__content {
    display: inline-flex;
    align-items: center;
    gap: inherit;
}

.home-page .section__cta:hover .cta-liquid-fill,
.home-page .section__cta:focus-visible .cta-liquid-fill,
.home-page .hero-industrial__cta:hover .cta-liquid-fill,
.home-page .hero-industrial__cta:focus-visible .cta-liquid-fill,
.home-page .form__submit:hover .cta-liquid-fill,
.home-page .form__submit:focus-visible .cta-liquid-fill,
.home-page .subscribe__btn:hover .cta-liquid-fill,
.home-page .subscribe__btn:focus-visible .cta-liquid-fill {
    clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
    .flash,
    .home-page .cta-liquid-fill {
        transition: none;
    }
}

/* ===== LEGAL PAGES =====
   /privacy, /terms, /security.

   Scoped under `.legal` and appended last so it wins over the generations of
   rules above it without touching any of them. Reuses the existing paper/ink
   palette from the UI REFRESH block and the existing --motion-* tokens; no new
   palette, no new font, no new breakpoint scale.

   Layout: a sticky TOC aside at >= 1024px, a single reading column from 0 to
   1023px where the aside is replaced by a horizontally scrollable rail. The
   reading measure is capped well below the container so the eye never has to
   travel the full 1180px.
   ========================================================================== */

.legal {
    background: var(--paper);
    color: var(--ink);
    overflow-x: clip;
    /* The hanging number column. Both the section heading and the prose beneath
       it derive their indent from these two values, so the body text lines up
       under the title instead of under the number, at every width, without a
       magic pixel value that can drift when the number style changes. */
    --legal-col: 1.05rem;
    --legal-gap: 0.85rem;
}

/* ------------------------------------------------------------------ hero -- */
.legal__hero {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
}

.legal__hero-inner {
    max-width: 780px;
}

.legal__eyebrow {
    margin-bottom: 1.25rem;
}

.legal__title {
    margin: 0 0 1.5rem;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(2.9rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.045em !important;
    line-height: 1;
}

.legal__lede {
    max-width: 62ch;
    margin: 0 0 1.75rem;
    color: var(--ink);
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.legal__intro {
    max-width: 66ch;
    margin: 0 0 2rem;
    padding-left: 1.15rem;
    border-left: 2px solid var(--line);
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.7;
    text-wrap: pretty;
}

.legal__intro p {
    margin: 0 0 0.85rem;
}

.legal__intro p:last-child {
    margin-bottom: 0;
}

/* "Last updated" as a definition pair rather than a badge: it is a fact a reader
   may need to quote, so it gets real text at a real size. */
.legal__stamp {
    margin: 0;
}

.legal__stamp-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.9rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
}

.legal__stamp dt {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legal__stamp dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ body -- */
.legal__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-bottom: clamp(4rem, 9vw, 8rem);
}

.legal__aside {
    display: none;
}

.legal__article {
    min-width: 0;
}

/* --------------------------------------------------------------- rail (mobile) -- */
/* Sticky directly beneath the site header, which is itself `position: sticky`
   at z-index 100. The header's height is not knowable in CSS, so legal.js
   publishes it as --legal-header-h; the fallback is only what shows for the one
   frame before that runs. Without this the rail would slide up behind the
   header and be invisible for the whole read. */
.legal__rail-wrap {
    position: sticky;
    top: var(--legal-header-h, 64px);
    z-index: 20;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 243, 237, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.legal__rail-list {
    display: flex;
    gap: 0.4rem;
    margin: 0;
    padding: 0 0 0.25rem;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.legal__rail-list::-webkit-scrollbar {
    display: none;
}

.legal__rail-item {
    flex: 0 0 auto;
}

.legal__rail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-strong);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard),
                background-color var(--duration-fast) var(--ease-standard);
}

.legal__rail-num {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    opacity: 0.65;
}

/* Active state is carried by fill + weight + a rule, not by colour alone: the
   chip gains a solid ink background, so it reads as "current" in greyscale. */
.legal__rail-link:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.legal__rail-link.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.legal__rail-link.is-active .legal__rail-num {
    opacity: 0.7;
}

/* --------------------------------------------------------------- toc (desktop) -- */
.legal__toc {
    padding-top: 0.4rem;
}

.legal__toc-title {
    margin: 0 0 1.1rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legal__toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--line);
}

.legal__toc-item {
    margin: 0;
}

.legal__toc-link {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.42rem 0.9rem 0.42rem 1rem;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-standard),
                background-color var(--duration-fast) var(--ease-standard);
}

.legal__toc-link:hover {
    background: rgba(26, 26, 26, 0.035);
    color: var(--ink);
}

/* The rail is drawn on the item, not the list, so it only spans the height of
   the link actually being read. */
.legal__toc-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1px;
    width: 2px;
    height: 100%;
    background: var(--ink);
    opacity: 0;
    transform: scaleY(0.3);
    transform-origin: center;
    transition: opacity var(--duration-fast) var(--ease-standard),
                transform var(--duration-fast) var(--ease-standard);
}

.legal__toc-link.is-active::before {
    opacity: 1;
    transform: scaleY(1);
}

.legal__toc-link.is-active {
    background: rgba(26, 26, 26, 0.05);
    color: var(--ink);
    font-weight: 600;
}

.legal__toc-num {
    flex: 0 0 auto;
    min-width: 1.5em;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

/* Active index goes solid — a fill change, readable without colour vision. */
.legal__toc-link.is-active .legal__toc-num {
    color: var(--ink);
}

.legal__toc-label {
    min-width: 0;
}

/* --------------------------------------------------------------- sections -- */
.legal__section {
    padding: clamp(2.5rem, 5vw, 3.75rem) 0 0;
    /* Anchor targets must clear the sticky nav on a hash jump. The exact value
       is enforced by motion.scrollTo() when the motion system is live; this is
       the no-JS and reduced-motion path. */
    scroll-margin-top: 7.5rem;
}

.legal__section + .legal__section {
    margin-top: clamp(2.5rem, 5vw, 3.75rem);
    border-top: 1px solid var(--line);
}

.legal__section:focus {
    outline: none;
}

.legal__section-head {
    display: flex;
    align-items: baseline;
    gap: var(--legal-gap);
    margin-bottom: 1.5rem;
}

.legal__section-num {
    flex: 0 0 var(--legal-col);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    transform: translateY(-0.15em);
}

.legal__section-title {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    font-weight: 400;
    letter-spacing: -0.03em !important;
    line-height: 1.1;
}

/* ---------------------------------------------------------------- prose -- */
/* 48rem including the hanging indent leaves roughly 738px of text at the base
   size — inside the 720–820px reading measure this page is designed for. rem
   rather than ch because the measure then does not change with font size
   mid-page, and because the indent has to be inside the same box. */
.legal__prose {
    max-width: 48rem;
    padding-left: calc(var(--legal-col) + var(--legal-gap));
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.75;
    text-wrap: pretty;
}

.legal__prose > * {
    margin: 0 0 1.15rem;
}

.legal__prose > *:last-child {
    margin-bottom: 0;
}

.legal__prose h3 {
    margin: 2rem 0 0.75rem;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 500;
    letter-spacing: -0.015em !important;
    line-height: 1.25;
}

.legal__prose h3:first-child {
    margin-top: 0;
}

.legal__prose strong {
    font-weight: 600;
}

.legal__prose ul,
.legal__prose ol {
    margin: 0 0 1.15rem;
    padding-left: 1.15rem;
}

.legal__prose li {
    margin-bottom: 0.6rem;
    padding-left: 0.2rem;
}

.legal__prose li::marker {
    color: var(--muted);
}

.legal__prose a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(26, 26, 26, 0.3);
    text-underline-offset: 0.18em;
    transition: text-decoration-color var(--duration-fast) var(--ease-standard);
}

.legal__prose a:hover {
    text-decoration-color: currentColor;
}

/* Field-by-field tables: a hairline between rows, no zebra striping. Keeps the
   eye on the term and lets the definitions read as one block. */
.legal__defs {
    margin: 0 0 1.35rem;
    border-top: 1px solid var(--line);
}

.legal__defs dt {
    margin: 0;
    padding: 0.85rem 0 0.25rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.legal__defs dd {
    margin: 0;
    padding: 0 0 0.9rem;
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.65;
}

/* A caveat is content, not decoration: this carries the "we do not do X" lines
   and the marked placeholders, so it is a quiet rule rather than a callout box. */
.legal__note {
    padding-left: 1rem;
    border-left: 2px solid var(--line);
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* Contact block. Deliberately the most prominent element on any legal page:
   the whole point of section 15 / 18 / 13 is that the address is reachable. */
.legal__mail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 1.5rem 0 1.65rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--paper-strong);
    text-decoration: none;
    transition: background-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.legal__mail:hover {
    background: var(--ink);
    color: var(--paper);
}

.legal__mail-label {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color var(--duration-fast) var(--ease-standard);
}

.legal__mail:hover .legal__mail-label {
    color: rgba(247, 243, 237, 0.7);
}

.legal__mail-address {
    color: var(--ink);
    font-size: clamp(0.98rem, 2.2vw, 1.12rem);
    font-weight: 600;
    overflow-wrap: anywhere;
    transition: color var(--duration-fast) var(--ease-standard);
}

.legal__mail:hover .legal__mail-address {
    color: var(--paper);
}

/* ------------------------------------------------------------- colophon -- */
.legal__colophon {
    margin-top: clamp(3rem, 7vw, 5rem);
    padding-top: 1.75rem;
    border-top: 1px solid var(--ink);
}

.legal__colophon p {
    max-width: 48rem;
    padding-left: calc(var(--legal-col) + var(--legal-gap));
    margin: 0 0 0.9rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.legal__colophon-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding-left: calc(var(--legal-col) + var(--legal-gap));
    font-size: 0.82rem !important;
}

/* ===== CV + PARTNER EDITORIAL PASS ===== */
.inner-page .cv {
    padding: clamp(3rem, 6vw, 5rem) 0 7rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.inner-page .cv .container { max-width: 1220px; }

.cv__toolbar { margin-bottom: 1.25rem; }

.inner-page .cv__print-btn {
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.inner-page .cv__print-btn:hover {
    border-color: var(--ink);
    background: var(--paper-strong);
    color: var(--ink);
    transform: none;
}

.inner-page .cv__paper {
    max-width: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.inner-page .cv__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.62fr);
    gap: 2rem;
    align-items: end;
    padding: clamp(2rem, 5vw, 4rem) 0 2rem;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.inner-page .cv__name-title {
    margin: 0;
    color: var(--ink);
}

.cv__name-title-inner {
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 2vw, 1.6rem);
}

.inner-page .cv__avatar {
    flex: 0 0 auto;
    width: clamp(2.75rem, 5vw, 4rem);
    height: clamp(2.75rem, 5vw, 4rem);
    border-radius: 0;
    filter: grayscale(1);
}

.inner-page .cv__name-title h1 {
    color: var(--ink);
    font-size: clamp(4.25rem, 10vw, 8rem);
    font-weight: 400;
    letter-spacing: 0 !important;
    line-height: 0.9;
    text-transform: none !important;
}

.inner-page .cv__badge {
    display: block;
    margin-top: 1.1rem;
    padding: 0;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
}

.inner-page .cv__contacts {
    display: grid;
    justify-items: start;
    gap: 0.65rem;
    padding-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.inner-page .cv__contacts a {
    color: var(--ink);
    text-decoration: none;
    text-underline-offset: 3px;
}

.inner-page .cv__contacts a:hover { text-decoration: underline; }
.inner-page .cv__contacts i { width: 1rem; color: var(--muted); }

.inner-page .cv__body {
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.8fr);
    background: transparent;
}

.inner-page .cv__sidebar {
    padding: 2.2rem 2rem 2rem 0;
    border-right: 1px solid var(--line);
    background: transparent;
}

.inner-page .cv__sidebar-section {
    margin-bottom: 1.8rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--line);
}

.inner-page .cv__sidebar-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.inner-page .cv__sidebar-title,
.inner-page .cv__section h3 {
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-body) !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em !important;
    line-height: 1.4;
}

.inner-page .cv__sidebar-title i,
.inner-page .cv__section h3 i { display: none; }

.inner-page .cv__text,
.inner-page .cv__skill-list li,
.inner-page .cv__lang,
.inner-page .cv__work-desc li,
.inner-page .cv__project-item {
    color: var(--light-text-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.inner-page .cv__skill-list { margin: 0; }

.inner-page .cv__skill-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
}

.inner-page .cv__skill-list i { color: var(--muted); }

.inner-page .cv__tags { gap: 0.45rem; }

.inner-page .cv__tag {
    margin: 0;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 500;
}

.inner-page .cv__gh-stat {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.inner-page .cv__gh-stat-value { color: var(--ink); }

.inner-page .cv__lang { border-bottom-color: var(--line); }
.inner-page .cv__lang-level { color: var(--muted); }

.inner-page .cv__main {
    padding: 2.2rem 0 2rem clamp(2rem, 5vw, 4.5rem);
    background: transparent;
}

.inner-page .cv__section { margin-bottom: 2.5rem; }

.inner-page .cv__section h3 {
    display: block;
    font-size: 0.7rem;
}

.inner-page .cv__work-entry {
    margin-bottom: 1.8rem;
    padding-bottom: 1.45rem;
    border-bottom: 1px solid var(--line);
}

.inner-page .cv__work-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.inner-page .cv__work-head-title {
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 500;
}

.inner-page .cv__work-head-title .cv__company {
    color: var(--ink);
    font-weight: 700;
}

.inner-page .cv__work-head .cv__date {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inner-page .cv__work-desc { margin: 0.55rem 0 0; }
.inner-page .cv__work-desc li { padding-top: 0.15rem; padding-bottom: 0.15rem; }
.inner-page .cv__work-desc li::before { color: var(--muted); }
.inner-page .cv__project-item strong { color: var(--ink); }

.partner__hero { padding-top: clamp(5rem, 10vw, 8.5rem); }

.partner__title {
    max-width: 11ch;
    font-size: clamp(3.25rem, 6vw, 5.25rem);
    letter-spacing: 0 !important;
    line-height: 0.98;
}

.partner__lede { max-width: 56ch; }

.partner__hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.partner__hero-image {
    width: 100%;
    max-width: 580px;
    aspect-ratio: 5 / 4;
    justify-self: end;
    overflow: hidden;
}

.partner__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% center;
}

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

.partner__section.section { padding: clamp(2.75rem, 5vw, 4.25rem) 0; }
.partner__section.section--light { background: var(--light-bg); }

.partner__intro { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.inner-page .partner__intro-title {
    max-width: 15ch;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    text-align: left;
}

.partner__invite {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper-strong);
}

.partner__invite-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
}

.partner__invite-visual {
    display: grid;
    min-height: 260px;
    aspect-ratio: 5 / 4;
    place-items: center;
    overflow: hidden;
    background: transparent;
}

.partner__invite-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.partner__invite-title {
    max-width: 12ch;
    margin: 0 0 1rem;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.08;
}

.partner__invite-copy > p:not(.section__eyebrow) {
    max-width: 48ch;
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.partner__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
}

.partner-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 275px;
    padding: 1.5rem clamp(1rem, 2vw, 1.5rem) 2rem;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.partner-card::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--ink);
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--duration-medium) var(--ease-standard);
}

.partner-card:nth-child(3n + 1) { padding-left: 0; }
.partner-card:nth-child(3n) { padding-right: 0; border-right: 0; }
.partner-card:nth-child(n + 4) { border-top: 1px solid var(--line); }

.partner-card:hover::before { transform: scaleX(1); }

.partner-card__number {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em !important;
    transition: color var(--duration-fast) var(--ease-standard);
}

.partner-card__visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 60px;
    margin-bottom: 40px;
}

.partner-card__visual svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.5;
    opacity: 0.72;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--duration-medium) var(--ease-expressive), stroke var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard);
}

.partner-card:hover .partner-card__visual svg {
    stroke: var(--white);
    opacity: 1;
    transform: scale(1.1) rotate(-5deg);
}

.partner-card__name {
    margin: 0 0 0.75rem;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0 !important;
    line-height: 1.2;
    text-transform: none;
    transition: color var(--duration-fast) var(--ease-standard);
}

.partner-card__desc {
    max-width: 28ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
    transition: color var(--duration-fast) var(--ease-standard);
}

.partner-card:hover .partner-card__number,
.partner-card:hover .partner-card__name,
.partner-card:hover .partner-card__desc {
    color: var(--white);
}

@media screen and (max-width: 992px) {
    .partner__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .partner-card:nth-child(3n + 1) { padding-left: clamp(1rem, 2vw, 1.5rem); }
    .partner-card:nth-child(3n) { padding-right: clamp(1rem, 2vw, 1.5rem); border-right: 1px solid var(--line); }
    .partner-card:nth-child(2n + 1) { padding-left: 0; }
    .partner-card:nth-child(2n) { padding-right: 0; border-right: 0; }
    .partner-card:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

.partner__final {
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.partner__final-panel {
    min-height: 220px;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
    background: transparent;
}

.partner__final-panel--alt {
    padding-left: clamp(1.75rem, 4vw, 3.5rem);
    border-left: 1px solid var(--line);
    background: transparent;
}

.partner__final-title {
    max-width: 18ch;
    letter-spacing: 0 !important;
}

@media screen and (max-width: 768px) {
    .inner-page .cv__hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .inner-page .cv__contacts {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }

    .inner-page .cv__body { grid-template-columns: 1fr; }

    .inner-page .cv__sidebar {
        padding: 1.8rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .inner-page .cv__main { padding: 1.8rem 0 0; }

    .partner__title { font-size: clamp(3.5rem, 12vw, 6rem); }

    .partner__hero .container { grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr); gap: 1.5rem; }

    .partner__hero-image { max-width: 360px; }

    .inner-page .partner__intro-title { font-size: clamp(2rem, 6vw, 2.8rem); }

    .partner__invite-inner { grid-template-columns: 1fr; gap: 1.75rem; }

    .partner__invite-visual { width: min(100%, 460px); min-height: 220px; }

    .partner__invite-title { font-size: clamp(2.15rem, 7vw, 3rem); }

    .partner__final-panel { min-height: 190px; }

    .partner__final-panel--alt {
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media screen and (max-width: 480px) {
    .inner-page .cv__name-title h1 { font-size: clamp(3.75rem, 18vw, 5rem); }
    .inner-page .cv__work-head { gap: 0.4rem 1rem; }
    .partner__title { font-size: clamp(3.25rem, 15vw, 4.5rem); }
    .partner__grid { grid-template-columns: 1fr; }
    .partner-card {
        min-height: 0;
        padding: 1.5rem 0 1.75rem;
        border-right: 0;
    }
    .partner-card:nth-child(2n) { padding-left: 0; }
    .partner-card:nth-child(n + 2) { border-top: 1px solid var(--line); }

    .partner__hero .container { grid-template-columns: 1fr; }

    .partner__hero-image {
        width: 100%;
        max-width: 420px;
        aspect-ratio: 4 / 3;
        justify-self: stretch;
        margin-top: -0.5rem;
    }

    .partner__title { font-size: clamp(2.75rem, 13vw, 3.75rem); }
}

@media print {
    .inner-page .cv { padding: 0; }
    .inner-page .cv__hero { background: transparent !important; }
    .inner-page .cv__paper { border: 0; box-shadow: none; }
    .inner-page .cv__sidebar,
    .inner-page .cv__main { background: transparent !important; }
}

@media (prefers-reduced-motion: reduce) {
    .partner-card::before,
    .partner-card__number,
    .partner-card__visual svg,
    .partner-card__name,
    .partner-card__desc { transition: none; }
}

.legal__colophon-meta a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(26, 26, 26, 0.3);
    text-underline-offset: 0.18em;
    transition: text-decoration-color var(--duration-fast) var(--ease-standard);
}

.legal__colophon-meta a:hover {
    text-decoration-color: currentColor;
}

/* ============================================================ responsive == */

/* Tablet: the aside can hold from 1024px, but the reading column still gets the
   larger share of the grid. */
@media (min-width: 768px) {
    .legal__prose {
        font-size: 1.03rem;
    }

    .legal__rail-link {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* Desktop: two columns. `1fr` on the reading side rather than a fixed px so the
   measure stays at 78ch on wide monitors instead of drifting to 900px+. */
@media (min-width: 1024px) {
    .legal__body {
        grid-template-columns: 236px minmax(0, 1fr);
        gap: clamp(2.5rem, 5vw, 5rem);
        padding-top: clamp(2.5rem, 5vw, 4rem);
    }

    /* The rail is redundant once the aside is visible, and two sticky navs for
       the same list is one too many. */
    .legal__rail-wrap {
        display: none;
    }

    .legal__aside {
        display: block;
    }

    .legal__toc {
        position: sticky;
        top: calc(var(--legal-header-h, 64px) + 2rem);
        max-height: calc(100vh - var(--legal-header-h, 64px) - 4rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
}

@media (min-width: 1280px) {
    .legal__body {
        grid-template-columns: 264px minmax(0, 1fr);
    }
}

/* Mobile: one column, and the content is never allowed to go cramped. The
   hanging indent is narrowed rather than removed — dropping it to zero would
   put the body text under the section number instead of under its title. */
@media (max-width: 480px) {
    .legal {
        --legal-col: 0.75rem;
        --legal-gap: 0.6rem;
    }

    .legal__hero {
        padding-top: 2.75rem;
    }

    .legal__prose {
        font-size: 0.97rem;
        line-height: 1.72;
    }

    .legal__rail-wrap {
        padding: 0.5rem 0;
    }

    .legal__rail-link {
        padding: 0.4rem 0.68rem;
        font-size: 0.76rem;
    }

    .legal__mail {
        padding: 1rem 1.05rem;
    }
}

/* The design already renders correctly without the motion system; this only
   removes the transitions so a reduced-motion visitor gets no easing at all. */
@media (prefers-reduced-motion: reduce) {
    .legal__toc-link,
    .legal__toc-link::before,
    .legal__rail-link,
    .legal__prose a,
    .legal__mail,
    .legal__mail-label,
    .legal__mail-address,
    .legal__colophon-meta a {
        transition: none;
    }
}

/* ===== JOURNAL LATEST BATCHES =====
   /blog renders every story on one page, so the original lead/stacked/grid
   block is repeated for each batch of five. Separate the blocks instead of
   letting the next lead card sit flush under the previous grid. */

.journal__batch + .journal__batch {
    margin-top: 2.4rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--journal-line);
}

/* ===== JOURNAL GRID-CARD: subdue the bottom widgets =====
   The two side-by-side cards beneath the lead card reached the same height as
   the lead story, so the batch read as several equal headlines. The structure
   stays, but it is scaled down: a short wide banner image, a two-line title, a
   one-line summary and tighter padding so the lead card clearly reads as the
   headline of the batch. */

.journal-card--story-grid-card .journal-card__image { aspect-ratio: 5 / 2; }
.journal-card--story-grid-card h3 {
    padding: 0.35rem 0.8rem 0.55rem;
    font-size: clamp(0.78rem, 0.95vw, 0.9rem);
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.journal-card--story-grid-card .journal-card__meta { padding: 0.65rem 0 0 0.8rem; }
.journal-card--story-grid-card .journal-card__date {
    padding: 0.65rem 0.8rem 0 0;
    font-size: 0.56rem;
}
.journal-card--story-grid-card .journal-card__summary {
    padding: 0.4rem 0.8rem 0;
    font-size: 0.64rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.journal-card--story-grid-card .journal-card__footer {
    padding: 0.5rem 0.8rem 0.7rem;
    font-size: 0.58rem;
}
.journal-card--story-grid-card .journal-card__link { margin: 0 0.6rem 0 0; }

/* ===== START A PROJECT (discovery questionnaire) =====
   Scoped to the /start-a-project pages. Uses the existing form__ tokens and
   section rhythm; no root tokens are changed. */

.contact__questionnaire {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    font-weight: 600;
    color: var(--dark-1);
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.contact__questionnaire:hover { opacity: 0.75; }

.qs-hero { padding-top: clamp(7rem, 16vh, 11rem); padding-bottom: 2rem; }
.qs-hero__inner { max-width: 760px; }
.qs-hero__lead { margin-top: 1rem; color: var(--text-muted, #666); font-size: 1.05rem; line-height: 1.7; }
.qs-hero__meta { margin-top: 0.6rem; font-size: 0.85rem; color: var(--text-muted, #888); }

.qs-index {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}
.qs-index__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.qs-index__link:hover { border-color: currentColor; background: rgba(0, 0, 0, 0.04); }
.qs-index__letter { font-weight: 700; letter-spacing: 0.05em; }

.qs-body { padding-top: 1rem; }
.qs-errors {
    border: 1px solid #f0b4b4;
    background: #fdf1f1;
    color: #8a2222;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.qs-errors ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }

.qs-form { display: flex; flex-direction: column; gap: 1.5rem; }
.qs-section {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    background: rgba(255, 255, 255, 0.55);
    margin: 0;
}
.qs-section__head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.qs-section__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.qs-section__title { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin: 0; }
.qs-section__intro { margin: 0.3rem 0 0; color: var(--text-muted, #777); font-size: 0.9rem; }

.qs-field { margin-bottom: 1.35rem; }
.qs-field:last-child { margin-bottom: 0; }
.qs-field__label { display: block; margin-bottom: 0.35rem; }
.qs-field__help { margin: -0.1rem 0 0.5rem; font-size: 0.82rem; color: var(--text-muted, #888); }
.qs-field .form__error { display: block; margin-top: 0.35rem; }

.qs-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.qs-choices--inline { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.qs-choice {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    font-size: 0.87rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.qs-choice:hover { border-color: rgba(0, 0, 0, 0.4); }
.qs-choice input { accent-color: #111; width: 1rem; height: 1rem; }
.qs-choice:has(input:checked) { border-color: #111; background: rgba(0, 0, 0, 0.05); }

.qs-submit { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.qs-submit__note { font-size: 0.85rem; color: var(--text-muted, #777); margin: 0; }
.qs-submit__note a { color: inherit; }

.qs-done { padding-top: clamp(7rem, 18vh, 12rem); padding-bottom: clamp(4rem, 10vh, 7rem); min-height: 70vh; }
.qs-done__inner { max-width: 760px; }
.qs-done__lead { margin-top: 1rem; color: var(--text-muted, #666); font-size: 1.05rem; line-height: 1.7; }
.qs-done__steps { list-style: none; padding: 0; margin: 2.25rem 0; display: flex; flex-direction: column; gap: 1.25rem; }
.qs-done__steps li { display: flex; gap: 1rem; align-items: flex-start; }
.qs-done__num { font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted, #999); }
.qs-done__steps strong { display: block; margin-bottom: 0.2rem; }
.qs-done__steps p { margin: 0; color: var(--text-muted, #777); font-size: 0.92rem; line-height: 1.6; }
.qs-done__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.qs-done__link { font-size: 0.9rem; color: inherit; }
.qs-done__meta { margin-top: 1.75rem; font-size: 0.85rem; color: var(--text-muted, #888); }

/* ===== START A PROJECT — sequential wizard (v2) =====
   Progressive enhancement over the same markup: JS adds .qs-wizard--js and only
   the active step is shown. Without JS the <noscript> block reveals every step.
   Uses existing tokens; no root tokens are changed. */

.qs-hero { padding-top: clamp(6rem, 12vh, 8.5rem); padding-bottom: 1.25rem; }
.qs-hero__inner { max-width: 720px; }
.qs-hero__lead { font-size: 1rem; line-height: 1.65; }
.qs-body { padding-top: 0; padding-bottom: clamp(3.5rem, 7vw, 5rem); }
.qs-errors { margin-bottom: 1rem; }

/* Progress / step tracker */
.qs-progress {
    position: sticky;
    top: 76px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.qs-progress__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}
.qs-progress__count {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--light-text-muted-lighter);
    white-space: nowrap;
}
.qs-progress__count b { color: var(--light-text); }
.qs-progress__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-text);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qs-progress__track {
    height: 6px;
    border-radius: 999px;
    background: #e6e6e6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.qs-progress__fill {
    display: block;
    height: 100%;
    width: 0;
    background: #111;
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.qs-progress__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.qs-progress__dot {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: transparent;
    color: var(--light-text-muted-lighter);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.qs-progress__dot:hover { border-color: #111; color: #111; }
.qs-progress__dot.is-done { background: rgba(0, 0, 0, 0.06); border-color: rgba(0, 0, 0, 0.25); color: #111; }
.qs-progress__dot.is-active { background: #111; border-color: #111; color: #fff; }

/* Steps */
.qs-step {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: clamp(1.1rem, 2.6vw, 1.9rem);
    background: rgba(255, 255, 255, 0.6);
    margin: 0;
    will-change: transform, opacity;
}
.qs-wizard .qs-step { display: none; }
.qs-wizard .qs-step.is-active { display: block; }

.qs-section__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0 0 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.qs-section__heading { min-width: 0; }
.qs-section__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}
.qs-section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    line-height: 1.2;
    margin: 0;
}
.qs-section__intro {
    margin: 0.25rem 0 0;
    color: var(--light-text-muted-lighter);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Field grid — two columns on wide screens, aligned to one baseline */
.qs-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.4rem;
    align-items: start;
}
.qs-field { margin: 0; min-width: 0; }
.qs-field--wide { grid-column: 1 / -1; }
.qs-field__label { display: block; margin-bottom: 0.35rem; }
.qs-field__help {
    margin: -0.15rem 0 0.45rem;
    font-size: 0.8rem;
    color: var(--light-text-muted-lighter);
    line-height: 1.5;
}
.qs-wizard .qs-field--invalid .form__input,
.qs-wizard .qs-field--invalid .form__textarea { border-color: var(--error-color, #c62828); }
.qs-field__error {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: var(--error-color, #c62828);
}

.qs-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.45rem;
}
.qs-choices--inline { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.qs-choice { padding: 0.5rem 0.65rem; }

/* Navigation */
.qs-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.1rem;
}
.qs-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    background: transparent;
    color: var(--light-text);
    font: inherit;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.qs-nav__btn:hover { border-color: #111; background: rgba(0, 0, 0, 0.04); }
.qs-nav__btn--prev[disabled] { opacity: 0.35; cursor: not-allowed; }
.qs-nav__btn--next { margin-left: auto; }
.qs-wizard--last .qs-nav__btn--next { display: none; }
.qs-nav__submit {
    width: auto;
    margin-left: auto;
    display: none;
}
.qs-wizard--last .qs-nav__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.qs-submit__note { margin-top: 0.9rem; text-align: left; }

/* Validation shake */
@keyframes qsShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
}
.qs-step.is-shake { animation: qsShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

@media (max-width: 620px) {
    .qs-fields { grid-template-columns: 1fr; }
    .qs-field--wide { grid-column: auto; }
    .qs-nav__btn--next { margin-left: 0; }
    .qs-nav { flex-wrap: wrap; }
}
@media (max-width: 860px) {
    .qs-progress { top: 68px; }
}
@media (prefers-reduced-motion: reduce) {
    .qs-progress__fill { transition: none; }
    .qs-step.is-shake { animation: none; }
}
