/* Mvision Web facelift preview */
:root {
    --blue: #07408c;
    --blue-deep: #052f68;
    --blue-ink: #052f68;
    --green: #aac634;
    --green-dark: #8ba82a;
    --green-light: #c4de4a;
    --paper: #f7f7f8;
    --paper-2: #f3f7fd;
    --white: #ffffff;
    --ink: #17191c;
    --muted: #5e636e;
    --line: #e9eaec;
    --line-light: rgba(255, 255, 255, 0.16);
    --font: 'Poppins', sans-serif;
    --max: 1440px;
    --gutter: clamp(20px, 4vw, 64px);
    --gap: clamp(16px, 2vw, 32px);
    --header-h: 72px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body.nav-open {
    overflow: hidden;
}

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

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

button {
    font: inherit;
}

::selection {
    background: var(--green);
    color: var(--blue-ink);
}

:focus-visible {
    outline: 2px solid var(--green-dark);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    background: var(--blue-ink);
    color: var(--white);
    padding: 10px 14px;
    font-size: 13px;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}

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

.scroll-sentinel {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 247, 248, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.scrolled {
    background: rgba(247, 247, 248, 0.97);
    border-bottom-color: var(--line);
}

body.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 30px);
    margin-left: auto;
}

.desktop-nav a {
    position: relative;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    padding: 4px 0;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--green-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: var(--white);
    padding: 12px 17px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.25s, transform 0.25s;
}

.header-cta:hover {
    background: var(--blue-deep);
    transform: translateY(-1px);
}

.header-cta i {
    font-size: 14px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.25s var(--ease), opacity 0.25s;
}

body.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--paper);
    padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0.45s;
}

body.nav-open .mobile-menu {
    transform: translateY(0);
    visibility: visible;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(2rem, 7vw, 3.4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.mobile-menu nav a.mobile-cta {
    color: var(--blue);
}

.mobile-menu nav a i {
    font-size: 24px;
    color: var(--green-dark);
}

.mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.mobile-meta a:first-child {
    color: var(--blue);
    font-weight: 600;
}

/* Hero */
.hero {
    min-height: min(880px, calc(100dvh - var(--header-h)));
    padding: 56px 0 72px;
    display: flex;
    align-items: start;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gap);
    align-items: center;
}

.hero-copy {
    grid-column: 1 / span 7;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 32px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
}

.eyebrow span {
    color: var(--green-dark);
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 5.2vw, 6rem);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: var(--ink);
}

.hero h1 span {
    position: relative;
    z-index: 0;
    color: var(--blue);
    white-space: nowrap;
}

.hero h1 span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.06em;
    width: 100%;
    height: 0.16em;
    background: var(--green);
    z-index: -1;
    opacity: 0.8;
}

.hero-sub {
    max-width: 44ch;
    margin: 32px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn i {
    font-size: 15px;
}

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

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-deep);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.btn-green {
    background: var(--green);
    color: var(--blue-ink);
}

.btn-green:hover {
    background: var(--green-light);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.32);
}

.btn-outline-light:hover {
    color: var(--green);
    border-color: var(--green);
}

.portrait-card {
    grid-column: 9 / span 4;
    position: relative;
    margin: 0;
}

.portrait-frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--blue);
    box-shadow: -18px 18px 0 0 var(--blue);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.9) contrast(1.03);
}

.portrait-card figcaption {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.portrait-name {
    font-weight: 600;
    color: var(--ink);
}

.portrait-role {
    color: var(--muted);
    text-align: right;
}

.portrait-mark {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: var(--green);
    color: var(--blue-ink);
    padding: 6px 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* Trust strip */
.trust-strip {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.trust-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: center;
}

.trust-label {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.logo-marquee {
    display: flex;
    gap: 48px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-shrink: 0;
    animation: marquee 36s linear infinite;
}

.logo-track img {
    width: auto;
    max-width: 120px;
    max-height: 26px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.3s, opacity 0.3s;
}

.logo-track img:hover {
    filter: none;
    opacity: 1;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

@keyframes marquee {
    to {
        transform: translateX(calc(-100% - 48px));
    }
}

/* Services */
.services {
    padding: clamp(80px, 10vw, 140px) 0;
    border-bottom: 1px solid var(--line);
}

.services-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gap);
    align-items: start;
}

.services-intro {
    grid-column: 1 / span 4;
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.section-index {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--blue);
}

.services-intro h2 {
    margin: 0;
    font-size: clamp(2.6rem, 4.4vw, 4.6rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.services-intro p {
    max-width: 30ch;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.service-list {
    grid-column: 6 / span 7;
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    grid-template-columns: 48px 1fr 32px;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.3s var(--ease), color 0.3s var(--ease), padding 0.3s var(--ease);
}

.service-row:hover {
    background: var(--blue);
    color: var(--white);
    padding-left: 16px;
    padding-right: 16px;
}

.service-num {
    padding-top: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--blue);
}

.service-row:hover .service-num {
    color: var(--green);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-body strong {
    font-size: clamp(1.25rem, 1.8vw, 1.7rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.service-body span {
    max-width: 48ch;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.service-row:hover .service-body span {
    color: rgba(255, 255, 255, 0.72);
}

.service-arrow {
    font-size: 22px;
    color: var(--muted);
    transition: transform 0.3s var(--ease), color 0.3s;
}

.service-row:hover .service-arrow {
    color: var(--green);
    transform: translate(4px, -4px);
}

/* Hosting */
.hosting {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--blue-ink);
    color: var(--white);
}

.hosting-top {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gap);
    align-items: end;
    margin-bottom: 64px;
}

.hosting-top h2 {
    grid-column: 1 / span 6;
    margin: 0;
    font-size: clamp(3rem, 5.4vw, 6rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.hosting-top > div {
    grid-column: 8 / span 5;
}

.hosting-top p {
    max-width: 44ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

.hosting-tag {
    display: inline-flex;
    margin-top: 24px;
    padding: 7px 10px;
    border: 1px solid rgba(170, 198, 52, 0.45);
    color: var(--green);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.plan-card {
    min-height: 340px;
    padding: 28px;
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    display: flex;
    flex-direction: column;
    transition: background 0.3s;
}

.plan-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.plan-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 20px;
}

.plan-head h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.plan-head span {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

.plan-card > p {
    min-height: 42px;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.6;
}

.plan-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0 32px;
    padding: 0;
    list-style: none;
}

.plan-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.plan-card li i {
    color: var(--green);
    font-size: 13px;
}

.plan-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line-light);
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    transition: color 0.25s;
}

.plan-link:hover {
    color: var(--green);
}

.plan-link i {
    transition: transform 0.25s;
}

.plan-link:hover i {
    transform: translate(3px, -3px);
}

.hosting-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hosting-actions > div {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hosting-actions p {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

/* Work */
.work {
    padding: clamp(80px, 10vw, 140px) 0;
    border-bottom: 1px solid var(--line);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gap);
    align-items: start;
}

.work-quote {
    grid-column: 1 / span 7;
}

.work-quote h2 {
    margin: 0;
    font-size: clamp(3rem, 5vw, 5.6rem);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.work-quote blockquote {
    margin: 48px 0 0;
    padding: 32px 0 0;
    border-top: 1px solid var(--line);
}

.work-quote blockquote p {
    max-width: 34ch;
    margin: 0;
    font-size: clamp(1.2rem, 1.7vw, 1.6rem);
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.work-quote blockquote footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
    font-size: 12px;
    font-weight: 600;
}

.work-quote blockquote footer span {
    font-weight: 400;
    color: var(--muted);
}

.work-list {
    grid-column: 9 / span 4;
    border-top: 1px solid var(--line);
}

.work-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    transition: padding 0.25s, color 0.25s;
}

.work-list a:hover {
    padding-left: 8px;
    color: var(--blue);
}

.work-list span {
    font-size: 15px;
    font-weight: 600;
}

.work-list em {
    grid-column: 1;
    font-size: 12px;
    font-style: normal;
    color: var(--muted);
}

.work-list i {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 18px;
    color: var(--muted);
    transition: transform 0.25s, color 0.25s;
}

.work-list a:hover i {
    color: var(--green-dark);
    transform: translate(3px, -3px);
}

.work-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    margin-top: clamp(48px, 6vw, 80px);
}

.work-shot {
    margin: 0;
}

.work-shot a {
    display: block;
}

.work-shot img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    background: var(--paper-2);
    border: 1px solid var(--line);
    transition: transform 0.5s var(--ease);
}

.work-shot a:hover img {
    transform: scale(1.02);
}

.work-shot figcaption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    font-size: 11px;
}

.work-shot figcaption span {
    font-weight: 600;
}

.work-shot figcaption em {
    font-style: normal;
    color: var(--muted);
}

.work-more {
    margin-top: 32px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--green);
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    transition: color 0.25s, gap 0.25s;
}

.text-link:hover {
    gap: 12px;
    color: var(--blue-deep);
}

/* Resources */
.resources {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
}

.resources-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 48px;
}

.resources-head h2 {
    margin: 0;
    font-size: clamp(2.8rem, 4.6vw, 5rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.resources-head p {
    max-width: 30ch;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.resource-card {
    grid-column: span 3;
    min-height: 220px;
    padding: 28px;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    transition: background 0.3s, color 0.3s;
}

.resource-card-large {
    grid-column: span 6;
    background: var(--blue);
    color: var(--white);
}

.resource-card:hover {
    background: var(--white);
}

.resource-card-large:hover {
    background: var(--blue-deep);
}

.resource-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
}

.resource-top i:first-child {
    font-size: 26px;
    color: var(--blue);
}

.resource-card-large .resource-top i:first-child {
    color: var(--green);
}

.resource-top i:last-child {
    font-size: 16px;
    color: var(--muted);
    transition: transform 0.25s;
}

.resource-card-large .resource-top i:last-child {
    color: rgba(255, 255, 255, 0.6);
}

.resource-card:hover .resource-top i:last-child {
    transform: translate(3px, -3px);
}

.resource-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.resource-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.resource-card-large p {
    color: rgba(255, 255, 255, 0.7);
}

.resource-tag {
    display: inline-flex;
    margin-top: 20px;
    padding: 5px 8px;
    border: 1px solid rgba(170, 198, 52, 0.45);
    color: var(--green);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.resources-more {
    margin-top: 32px;
}

/* Contact */
.contact {
    padding: clamp(80px, 10vw, 140px) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gap);
    align-items: start;
}

.contact-copy {
    grid-column: 1 / span 7;
}

.contact-copy h2 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 5.6rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.contact-copy p {
    max-width: 35ch;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.contact-links {
    grid-column: 9 / span 4;
    border-top: 1px solid var(--line);
}

.contact-links a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    transition: padding 0.25s, color 0.25s;
}

.contact-links a:hover {
    padding-left: 8px;
    color: var(--blue);
}

.contact-links span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-links strong {
    grid-column: 1;
    font-size: 14px;
    font-weight: 600;
}

.contact-links i {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--muted);
}

.contact-links p {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 80px 0 24px;
    background: var(--blue-ink);
    color: var(--white);
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gap);
}

.footer-grid > :nth-child(1) {
    grid-column: span 4;
}

.footer-grid > :nth-child(2) {
    grid-column: span 2;
}

.footer-grid > :nth-child(3) {
    grid-column: span 3;
}

.footer-grid > :nth-child(4) {
    grid-column: span 3;
}

.footer-brand img {
    height: 36px;
    width: auto;
    margin-bottom: 24px;
}

.footer-brand p {
    max-width: 30ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.7;
}

.footer-brand span {
    display: block;
    margin-top: 16px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.footer-col h3 {
    margin: 0 0 6px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
}

.footer-col a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.25s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 64px;
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p {
    margin: 0;
}

.footer-partner a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-partner a:hover {
    color: var(--white);
}

.footer-wordmark {
    position: absolute;
    left: 50%;
    bottom: -0.22em;
    z-index: 0;
    transform: translateX(-50%);
    font-size: clamp(6rem, 17vw, 17rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.08em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: var(--blue-ink);
    box-shadow: 0 10px 28px rgba(4, 28, 58, 0.18);
    transition: transform 0.25s, background 0.25s, bottom 0.25s;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    background: var(--green-light);
}

body.cookie-open .whatsapp-float {
    bottom: 96px;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px var(--gutter);
    background: var(--blue-ink);
    color: var(--white);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    visibility: visible;
}

.cookie-banner p {
    max-width: 68ch;
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
}

.cookie-banner a {
    color: var(--white);
    text-decoration: underline;
}

.cookie-banner > div {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cookie-banner button {
    padding: 10px 16px;
    border: 0;
    background: var(--green);
    color: var(--blue-ink);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-banner button:hover {
    background: var(--green-light);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--delay, 0ms);
}

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

/* Resources page */
.desktop-nav a[aria-current="page"],
.mobile-menu nav a[aria-current="page"] {
    color: var(--blue);
}

.desktop-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.resource-hero {
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--line);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
    transition: gap 0.25s;
}

.back-link:hover {
    gap: 12px;
}

.resource-hero h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(3rem, 6vw, 6.4rem);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.resource-hero p {
    max-width: 52ch;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.resource-directory {
    padding: 56px 0 clamp(80px, 10vw, 140px);
}

.resource-note {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.resource-note strong {
    flex-shrink: 0;
    color: var(--ink);
}

.resource-grid-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.resource-grid-directory .resource-card {
    grid-column: span 1;
    min-height: 240px;
}

.resource-grid-directory .resource-card-large {
    grid-column: span 1;
}

.resource-card-static {
    background: var(--paper);
    color: var(--ink);
}

.resource-card-static:hover {
    background: var(--white);
}

.resource-card-static .resource-top i:first-child {
    color: var(--blue);
}

.webmail-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.inline-link:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

@media (max-width: 768px) {
    .resource-grid-directory {
        grid-template-columns: 1fr;
    }

    .resource-note {
        flex-direction: column;
        gap: 6px;
    }

    .resource-grid-directory .resource-card,
    .resource-grid-directory .resource-card-large {
        grid-column: span 1;
        min-height: auto;
    }
}

/* Responsive */
@media (max-width: 1120px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-cta {
        margin-left: auto;
    }

    .hero-copy {
        grid-column: 1 / span 7;
    }

    .portrait-card {
        grid-column: 9 / span 4;
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-top: 40px;
    }

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

    .hero-copy,
    .portrait-card {
        grid-column: 1 / -1;
    }

    .hero h1 {
        font-size: clamp(3.4rem, 8.6vw, 6.4rem);
    }

    .portrait-card {
        max-width: 440px;
        margin-top: 40px;
    }

    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-intro {
        position: static;
        grid-column: 1 / -1;
        max-width: 640px;
        margin-bottom: 40px;
    }

    .services-intro p {
        max-width: 44ch;
    }

    .service-list {
        grid-column: 1 / -1;
    }

    .hosting-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hosting-top h2,
    .hosting-top > div {
        grid-column: 1 / -1;
    }

    .hosting-top p {
        max-width: 52ch;
    }

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

    .work-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .work-quote,
    .work-list,
    .contact-copy,
    .contact-links {
        grid-column: 1 / -1;
    }

    .work-list {
        margin-top: 40px;
    }

    .contact-links {
        margin-top: 40px;
    }

    .footer-grid > :nth-child(1) {
        grid-column: span 6;
    }

    .footer-grid > :nth-child(2) {
        grid-column: span 3;
    }

    .footer-grid > :nth-child(3) {
        grid-column: span 3;
    }

    .footer-grid > :nth-child(4) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .header-cta {
        display: none;
    }

    .menu-toggle {
        margin-left: auto;
    }

    .hero {
        padding-top: 32px;
        padding-bottom: 56px;
    }

    .hero h1 {
        font-size: clamp(2.9rem, 11vw, 4.4rem);
        line-height: 0.95;
    }

    .hero-sub {
        margin-top: 24px;
    }

    .hero-actions {
        margin-top: 32px;
    }

    .btn {
        flex: 1 1 100%;
    }

    .trust-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .logo-marquee {
        mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    }

    .logo-track,
    .logo-marquee {
        gap: 32px;
    }

    .logo-track img {
        max-width: 90px;
        max-height: 22px;
    }

    .services-intro h2 {
        font-size: clamp(2.4rem, 9vw, 3.4rem);
    }

    .service-row {
        grid-template-columns: 32px 1fr 24px;
        gap: 12px;
        padding: 20px 0;
    }

    .service-body strong {
        font-size: 1.2rem;
    }

    .service-body span {
        font-size: 13px;
    }

    .service-arrow {
        font-size: 18px;
    }

    .hosting-top h2 {
        font-size: clamp(2.8rem, 11vw, 4.2rem);
    }

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

    .plan-card {
        min-height: auto;
        padding: 24px;
    }

    .hosting-actions {
        align-items: start;
    }

    .work-quote h2 {
        font-size: clamp(2.8rem, 10vw, 4rem);
    }

    .work-images {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .resources-head {
        display: block;
    }

    .resources-head h2 {
        font-size: clamp(2.6rem, 9vw, 3.8rem);
    }

    .resources-head p {
        margin-top: 20px;
    }

    .resource-card,
    .resource-card-large {
        grid-column: span 12;
    }

    .resource-card {
        min-height: auto;
        padding: 24px;
    }

    .contact-copy h2 {
        font-size: clamp(2.6rem, 9vw, 4rem);
    }

    .footer-grid > :nth-child(1),
    .footer-grid > :nth-child(2),
    .footer-grid > :nth-child(3),
    .footer-grid > :nth-child(4) {
        grid-column: span 12;
    }

    .footer-grid {
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        margin-top: 48px;
    }

    .footer-wordmark {
        font-size: clamp(4.4rem, 18vw, 8rem);
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
    }

    body.cookie-open .whatsapp-float {
        bottom: 120px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: start;
        gap: 12px;
        padding: 16px 20px;
    }

    .cookie-banner > div {
        width: 100%;
        justify-content: space-between;
    }

    .cookie-banner button {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(2.6rem, 11.5vw, 3.6rem);
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .portrait-card {
        max-width: 100%;
    }

    .portrait-card figcaption {
        flex-direction: column;
        gap: 2px;
    }

    .portrait-role {
        text-align: left;
    }

    .service-row {
        grid-template-columns: 24px 1fr 20px;
    }

    .service-num {
        font-size: 10px;
    }

    .plan-card {
        padding: 20px;
    }

    .resource-card {
        padding: 20px;
    }

    .footer-wordmark {
        font-size: 4rem;
    }
}

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

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

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

    .logo-track {
        animation: none;
    }
}

/* Inner pages */
.page-hero {
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(3rem, 6vw, 6.4rem);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.page-intro {
    max-width: 54ch;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.page-section {
    padding: clamp(64px, 8vw, 120px) 0;
    border-bottom: 1px solid var(--line);
}

.page-section:last-of-type {
    border-bottom: 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 48px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.section-head p {
    max-width: 38ch;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.prose {
    max-width: 70ch;
}

.prose p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.prose h2 {
    margin: 48px 0 16px;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.prose h3 {
    margin: 32px 0 12px;
    font-size: 1.15rem;
    font-weight: 600;
}

.prose ul,
.prose ol {
    margin: 0 0 18px;
    padding-left: 1.2em;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.prose li {
    margin-bottom: 8px;
}

.prose a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose strong {
    color: var(--ink);
}

.two-col {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gap);
    align-items: start;
}

.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-12 { grid-column: span 12; }

.media-card {
    margin: 0;
    border: 1px solid var(--line);
    background: var(--paper-2);
}

.media-card img {
    width: 100%;
    height: auto;
}

.media-card figcaption {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.stat {
    padding: 28px;
    background: var(--paper);
}

.stat strong {
    display: block;
    color: var(--blue);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
}

.stat span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.value-card {
    padding: 32px;
    background: var(--paper);
}

.value-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.value-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.process-step {
    padding: 28px;
    background: var(--paper);
}

.process-step span {
    display: block;
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.process-step h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.process-step p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.service-detail {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: var(--gap);
    padding: 36px 0;
    border-top: 1px solid var(--line);
}

.service-detail:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.service-detail h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.service-detail p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.service-detail ul {
    margin: 0;
    padding-left: 1.1em;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.service-detail a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.plan-grid-light {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.plan-card-light {
    min-height: 330px;
    padding: 28px;
    background: var(--paper);
    display: flex;
    flex-direction: column;
}

.plan-card-light .plan-head h3 {
    color: var(--ink);
}

.plan-card-light .plan-head span {
    color: var(--muted);
}

.plan-card-light > p {
    min-height: 42px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.plan-card-light ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0 32px;
    padding: 0;
    list-style: none;
}

.plan-card-light li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.plan-card-light li i {
    color: var(--green-dark);
    font-size: 13px;
}

.plan-card-light .plan-link {
    border-top-color: var(--line);
    color: var(--blue);
}

.plan-card-light .plan-link:hover {
    color: var(--blue-deep);
}

.work-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.work-card {
    border: 1px solid var(--line);
    background: var(--paper);
}

.work-card a {
    display: block;
}

.work-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    transition: transform 0.4s var(--ease);
}

.work-card a:hover img {
    transform: scale(1.015);
}

.work-card-body {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    padding: 18px 20px;
}

.work-card-body h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.work-card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.work-card-body i {
    color: var(--muted);
    font-size: 16px;
}

.case-study {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: var(--gap);
    padding: 48px 0;
    border-top: 1px solid var(--line);
}

.case-study:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.case-label {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.case-study h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
}

.case-study > div > p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.case-step {
    padding: 24px;
    background: var(--paper);
}

.case-step h3 {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-step p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px var(--gap);
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.post-cat {
    color: var(--blue);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.post-card h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.post-card h2 a:hover {
    color: var(--blue);
}

.post-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.post-card .read-more {
    margin-top: 4px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 600;
}

.contact-layout {
    display: grid;
    grid-template-columns: 7fr 4fr;
    gap: var(--gap);
    align-items: start;
}

.contact-form-page {
    padding: 32px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-field label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    outline: none;
}

.form-check {
    display: flex;
    align-items: start;
    gap: 10px;
    margin: 4px 0 20px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.form-check input {
    margin-top: 3px;
    flex-shrink: 0;
}

.form-status {
    margin: 14px 0 0;
    color: var(--blue);
    font-size: 12px;
    line-height: 1.5;
}

.contact-side {
    display: grid;
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.contact-side a,
.contact-side div {
    display: block;
    padding: 22px;
    background: var(--paper);
}

.contact-side span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-side strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.contact-side a:hover strong {
    color: var(--blue);
}

.contact-side p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.legal-layout {
    display: grid;
    grid-template-columns: 3fr 8fr;
    gap: var(--gap);
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.legal-toc h3 {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-toc a {
    display: block;
    padding: 5px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.legal-toc a:hover {
    color: var(--blue);
}

.legal-content {
    max-width: 72ch;
}

.legal-content h2 {
    margin: 40px 0 12px;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.legal-content h3 {
    margin: 28px 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.legal-content p {
    margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 16px;
    padding-left: 1.2em;
}

.legal-content li {
    margin-bottom: 7px;
}

.legal-content a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-meta {
    margin: 0 0 32px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.legal-note {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--green);
    background: var(--paper-2);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.7;
}

.legal-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.legal-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--paper);
}

.legal-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.legal-card p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.legal-card span {
    margin-top: auto;
    color: var(--blue);
    font-size: 10px;
    font-weight: 600;
}

.cta-band {
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--blue-ink);
    color: var(--white);
}

.cta-band .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.cta-band h2 {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
}

.cta-band p {
    max-width: 34ch;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.6;
}

.cta-band .btn-green {
    flex-shrink: 0;
}

.not-found {
    min-height: 70dvh;
    display: flex;
    align-items: center;
    padding: 64px 0;
}

.not-found h1 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(6rem, 18vw, 18rem);
    font-weight: 700;
    line-height: 0.78;
    letter-spacing: -0.08em;
}

.not-found p {
    max-width: 42ch;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .two-col,
    .contact-layout,
    .legal-layout,
    .service-detail,
    .case-study {
        grid-template-columns: 1fr;
    }

    .col-5,
    .col-6,
    .col-7,
    .col-12 {
        grid-column: 1 / -1;
    }

    .plan-grid-light {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .legal-toc {
        position: static;
    }

    .cta-band .container {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 40px 0 48px;
    }

    .page-hero h1 {
        font-size: clamp(2.8rem, 10vw, 4.2rem);
    }

    .section-head {
        display: block;
    }

    .section-head p {
        margin-top: 16px;
    }

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

    .value-grid,
    .process-grid,
    .plan-grid-light,
    .work-page-grid,
    .journal-grid,
    .case-study-grid,
    .legal-nav {
        grid-template-columns: 1fr;
    }

    .contact-form-page {
        padding: 24px;
    }

    .legal-content h2 {
        margin-top: 32px;
    }
}

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

    .page-actions .btn {
        flex: 1 1 100%;
    }
}

/* Grid children must be allowed to shrink */
.hero-grid > *,
.services-layout > *,
.hosting-top > *,
.hosting-actions > *,
.plan-grid > *,
.plan-grid-light > *,
.work-grid > *,
.work-images > *,
.contact-grid > *,
.footer-grid > *,
.two-col > *,
.legal-layout > *,
.case-study > *,
.case-study-grid > *,
.service-detail > *,
.work-page-grid > *,
.journal-grid > *,
.resource-grid > *,
.resource-grid-directory > *,
.process-grid > *,
.value-grid > *,
.stat-grid > *,
.section-head > * {
    min-width: 0;
}

.work-quote h2,
.contact-copy h2,
.page-hero h1,
.hero h1 {
    overflow-wrap: break-word;
}


/* Design work gallery */
.design-section {
    background: var(--paper-2);
}

.design-masonry {
    column-count: 4;
    column-gap: var(--gap);
}

.design-item {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 var(--gap);
    border: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden;
}

.design-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s var(--ease);
}

.design-item:hover img {
    transform: scale(1.02);
}

@media (max-width: 1200px) {
    .design-masonry { column-count: 3; }
}

@media (max-width: 900px) {
    .design-masonry { column-count: 2; }
}

@media (max-width: 560px) {
    .design-masonry { column-count: 1; }
}

/* Legal service schedule */
.order-form-table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
}

.order-form-table th,
.order-form-table td {
    padding: 12px 14px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.order-form-table th {
    width: 34%;
    background: var(--paper-2);
    color: var(--ink);
    font-weight: 600;
}

.legal-card-wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .legal-card-wide {
        grid-column: span 1;
    }
}
