:root {
    --ink: #071315;
    --ink-soft: #0e2022;
    --paper: #f4f3ee;
    --paper-warm: #e9e7df;
    --white: #ffffff;
    --text: #162326;
    --muted: #617073;
    --line: rgba(7, 19, 21, 0.14);
    --line-dark: rgba(255, 255, 255, 0.13);
    --red: #e3222b;
    --red-dark: #ba1119;
    --green: #1dbf83;
    --amber: #f3b33d;
    --radius: 4px;
    --header-height: 84px;
    --shadow: 0 30px 80px rgba(7, 19, 21, 0.13);
    --sans: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body, button, input, textarea, select {
    font-family: var(--sans);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button, a, summary, select, input, textarea {
    outline-offset: 4px;
}

:focus-visible {
    outline: 2px solid var(--red);
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2 {
    letter-spacing: -0.045em;
    line-height: 0.98;
}

h1 {
    font-size: clamp(3.5rem, 7vw, 7.5rem);
    font-weight: 760;
}

h2 {
    font-size: clamp(2.7rem, 5vw, 5.5rem);
    font-weight: 740;
}

h1 em, h2 em {
    color: var(--red);
    font-style: normal;
    font-weight: 420;
}

.container {
    margin-inline: auto;
    max-width: 1260px;
    padding-inline: clamp(1.25rem, 4vw, 3.5rem);
    width: 100%;
}

.narrow {
    max-width: 850px;
}

.section {
    padding-block: clamp(6rem, 10vw, 10rem);
}

.section-light {
    background: var(--paper);
    color: var(--text);
}

.section-dark, .section-ink {
    background: var(--ink);
    color: var(--white);
}

.section-ink {
    background-image: linear-gradient(135deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.025) 50%, rgba(255,255,255,.025) 75%, transparent 75%);
    background-size: 10px 10px;
}

.eyebrow {
    align-items: center;
    color: var(--red);
    display: flex;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: .74rem;
    font-weight: 700;
    gap: .65rem;
    letter-spacing: .16em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.eyebrow::before {
    background: currentColor;
    content: "";
    height: 2px;
    width: 28px;
}

.eyebrow span:not(:last-child)::after {
    color: rgba(255,255,255,.35);
    content: "/";
    margin-left: .65rem;
}

.button-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    display: inline-flex;
    font-size: .88rem;
    font-weight: 750;
    gap: .8rem;
    justify-content: center;
    letter-spacing: .04em;
    min-height: 54px;
    padding: .9rem 1.4rem;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--red);
    color: var(--white);
}

.button-primary:hover {
    background: var(--red-dark);
}

.button-secondary {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.button-ghost {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.2);
    color: var(--white);
}

.button-ghost:hover {
    background: rgba(255,255,255,.1);
}

.button-dark {
    background: var(--ink);
    color: var(--white);
}

.text-link {
    align-items: center;
    color: inherit;
    display: inline-flex;
    font-family: var(--mono);
    font-size: .79rem;
    font-weight: 700;
    gap: .8rem;
    letter-spacing: .06em;
    padding-bottom: .35rem;
    text-decoration: none;
    text-transform: uppercase;
}

.text-link::after {
    background: var(--red);
    content: "";
    display: block;
    height: 2px;
    transition: width .2s ease;
    width: 36px;
}

.text-link:hover::after {
    width: 64px;
}

.sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.skip-link {
    background: var(--white);
    color: var(--ink);
    left: 1rem;
    padding: .7rem 1rem;
    position: fixed;
    top: -100px;
    z-index: 1000;
}

.skip-link:focus {
    top: .8rem;
}

/* Header */
.site-header {
    backdrop-filter: blur(18px);
    background: rgba(0, 0, 0, .96);
    border-bottom: 1px solid var(--line-dark);
    color: var(--white);
    height: var(--header-height);
    inset: 0 0 auto;
    position: fixed;
    z-index: 100;
}

.header-inner {
    align-items: center;
    display: flex;
    gap: 2rem;
    height: 100%;
    margin: 0 auto;
    max-width: 1480px;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.brand {
    align-items: center;
    align-self: stretch;
    display: flex;
    flex: 0 0 auto;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    width: 300px;
}

.brand-logo {
    display: block;
    height: auto;
    left: 50%;
    max-width: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
}

.desktop-nav {
    align-items: stretch;
    display: flex;
    height: 100%;
    margin-left: auto;
}

.desktop-nav a {
    align-items: center;
    border-bottom: 2px solid transparent;
    color: rgba(255,255,255,.72);
    display: flex;
    font-size: .83rem;
    font-weight: 650;
    padding: 0 .75rem;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}

.desktop-nav a:hover, .desktop-nav a.is-active {
    border-bottom-color: var(--red);
    color: var(--white);
}

.header-actions {
    align-items: center;
    display: flex;
    gap: .7rem;
}

.portal-link {
    background: var(--red);
    color: var(--white);
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .03em;
    padding: .65rem .9rem;
    text-decoration: none;
}

.language-switcher {
    display: inline-block;
    position: relative;
}

.language-trigger {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 2px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 700;
    gap: .5rem;
    height: 38px;
    list-style: none;
    padding: 0 .55rem;
    user-select: none;
}

.language-trigger::-webkit-details-marker {
    display: none;
}

.language-trigger:hover,
.language-trigger:focus-visible,
.language-switcher[open] .language-trigger {
    border-color: rgba(255,255,255,.5);
    outline: none;
}

.language-flag {
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    display: block;
    flex: 0 0 auto;
    height: 15px;
    object-fit: cover;
    width: 20px;
}

.language-chevron {
    font-size: .72rem;
    margin-left: .1rem;
    transition: transform .18s ease;
}

.language-switcher[open] .language-chevron {
    transform: rotate(180deg);
}

.language-options {
    background: #111315;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 14px 34px rgba(0,0,0,.3);
    min-width: 175px;
    padding: .35rem;
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    z-index: 100;
}

.language-option {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--white);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: .65rem;
    grid-template-columns: auto 1fr auto;
    padding: .65rem .7rem;
    text-align: left;
    width: 100%;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.is-active {
    background: rgba(255,255,255,.09);
    outline: none;
}

.language-option.is-active {
    box-shadow: inset 2px 0 0 var(--red);
}

.language-option-code {
    color: rgba(255,255,255,.55);
    font-family: var(--mono);
    font-size: .68rem;
}

.language-loading {
    color: var(--red);
    position: absolute;
    right: -1rem;
}

.mobile-menu {
    display: none;
    margin-left: auto;
}

.mobile-menu summary {
    cursor: pointer;
    list-style: none;
    padding: .75rem;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary span {
    background: var(--white);
    display: block;
    height: 2px;
    margin: 5px 0;
    width: 25px;
}

.mobile-menu nav {
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    display: flex;
    flex-direction: column;
    inset: var(--header-height) 0 auto;
    padding: 1rem 1.25rem 1.5rem;
    position: fixed;
}

.mobile-menu:not([open]) > nav {
    display: none;
}

.mobile-menu nav > a {
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.25rem;
    font-weight: 650;
    padding: .9rem 0;
    text-decoration: none;
}

.mobile-menu .language-switcher {
    margin-top: 1rem;
}

/* Hero */
.hero {
    min-height: min(900px, 100svh);
    overflow: hidden;
    padding: calc(var(--header-height) + clamp(4rem, 8vw, 7rem)) 0 6rem;
    position: relative;
}

.hero::before {
    background: radial-gradient(circle, rgba(227,34,43,.22), transparent 65%);
    content: "";
    height: 700px;
    pointer-events: none;
    position: absolute;
    right: -250px;
    top: -250px;
    width: 700px;
}

.hero-grid {
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 54px 54px;
    inset: 0;
    mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
    pointer-events: none;
    position: absolute;
}

.hero-layout {
    align-items: center;
    display: grid;
    gap: clamp(3rem, 8vw, 7rem);
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr);
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    margin-bottom: 2rem;
    max-width: 900px;
}

.hero-copy .eyebrow {
    color: rgba(255,255,255,.55);
}

.hero-copy .eyebrow::before {
    background: var(--red);
}

.hero-lead {
    color: rgba(255,255,255,.67);
    font-size: clamp(1.08rem, 1.6vw, 1.35rem);
    line-height: 1.65;
    margin-bottom: 2.2rem;
    max-width: 720px;
}

.microcopy {
    color: rgba(255,255,255,.42);
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .04em;
    margin: 1.5rem 0 0;
}

.system-panel {
    background: rgba(13,32,34,.72);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 30px 40px 90px rgba(0,0,0,.35);
    transform: rotate(1.2deg);
}

.panel-topline {
    align-items: center;
    border-bottom: 1px solid var(--line-dark);
    display: flex;
    gap: 7px;
    height: 42px;
    padding: 0 1rem;
}

.panel-topline > span {
    background: rgba(255,255,255,.25);
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.panel-topline > span:first-child {
    background: var(--red);
}

.panel-topline small {
    color: rgba(255,255,255,.4);
    font-family: var(--mono);
    font-size: .6rem;
    margin-left: auto;
}

.panel-content {
    padding: 1.6rem;
}

.panel-status {
    align-items: center;
    border-bottom: 1px solid var(--line-dark);
    display: grid;
    gap: .8rem;
    grid-template-columns: auto 1fr auto;
    margin-bottom: .7rem;
    padding-bottom: 1.4rem;
}

.status-pulse {
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(29,191,131,.1), 0 0 25px rgba(29,191,131,.5);
    height: 9px;
    width: 9px;
}

.panel-status strong, .panel-status small {
    display: block;
}

.panel-status strong {
    font-size: .87rem;
}

.panel-status small {
    color: rgba(255,255,255,.45);
    font-family: var(--mono);
    font-size: .6rem;
}

.status-label {
    color: var(--green);
    font-family: var(--mono);
    font-size: .6rem;
}

.code-line {
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: grid;
    font-size: .82rem;
    gap: .8rem;
    grid-template-columns: 24px 1fr auto;
    padding: .85rem 0;
}

.code-line span {
    color: rgba(255,255,255,.25);
    font-family: var(--mono);
    font-size: .62rem;
}

.code-line p {
    color: rgba(255,255,255,.62);
    margin: 0;
}

.code-line p strong {
    color: var(--white);
}

.code-line b {
    color: var(--green);
}

.panel-metric {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 1.4rem;
}

.panel-metric div {
    background: rgba(255,255,255,.04);
    border-left: 2px solid var(--red);
    padding: .75rem;
}

.panel-metric small, .panel-metric strong {
    display: block;
}

.panel-metric small {
    color: rgba(255,255,255,.38);
    font-family: var(--mono);
    font-size: .55rem;
}

.panel-metric strong {
    font-size: .9rem;
}

.scroll-hint {
    bottom: 2rem;
    color: rgba(255,255,255,.4);
    font-family: var(--mono);
    font-size: .65rem;
    left: 50%;
    letter-spacing: .1em;
    position: absolute;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.scroll-hint span {
    color: var(--red);
    margin-left: .5rem;
}

.signal-bar {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-block: 1.5rem;
}

.signal-grid > div {
    border-right: 1px solid var(--line);
    display: grid;
    gap: 0 .8rem;
    grid-template-columns: auto 1fr;
    padding: .2rem 1.5rem;
}

.signal-grid > div:first-child {
    padding-left: 0;
}

.signal-grid > div:last-child {
    border: 0;
}

.signal-grid span {
    color: var(--red);
    font-family: var(--mono);
    font-size: .64rem;
    grid-row: 1 / span 2;
}

.signal-grid strong, .signal-grid small {
    display: block;
}

.signal-grid strong {
    font-size: .84rem;
}

.signal-grid small {
    color: var(--muted);
    font-size: .7rem;
}

/* Services */
.section-heading {
    margin-bottom: 4rem;
}

.split-heading {
    align-items: end;
    display: grid;
    gap: 4rem;
    grid-template-columns: 1.25fr .75fr;
}

.section-heading h2 {
    margin: 0;
}

.split-heading > p, .center-heading > p:last-child {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 560px;
}

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

.service-card {
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 470px;
    overflow: hidden;
    padding: 2rem;
    position: relative;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.service-card:hover {
    background: #ecebe5;
    z-index: 1;
}

.service-card-featured {
    background: var(--red);
    color: var(--white);
}

.service-card-featured:hover {
    background: var(--red-dark);
}

.service-card-dark {
    background: var(--ink);
    color: var(--white);
}

.service-card-dark:hover {
    background: var(--ink-soft);
}

.service-card-wide {
    align-items: center;
    flex-direction: row;
    gap: 2rem;
    grid-column: span 4;
    min-height: 210px;
}

.service-card-wide .card-mark {
    flex: 0 0 auto;
}

.service-card-wide .card-link {
    margin: 0 0 0 auto;
    white-space: nowrap;
}

.card-index {
    color: currentColor;
    font-family: var(--mono);
    font-size: .63rem;
    opacity: .45;
    position: absolute;
    right: 1.3rem;
    top: 1.2rem;
}

.card-mark {
    align-items: center;
    border: 1px solid currentColor;
    color: var(--red);
    display: flex;
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    letter-spacing: .08em;
    margin-bottom: auto;
    width: 48px;
}

.service-card-featured .card-mark, .service-card-dark .card-mark {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    line-height: 1.15;
    margin: 2rem 0 1rem;
}

.service-card p {
    color: var(--muted);
    font-size: .91rem;
}

.service-card-featured p, .service-card-dark p {
    color: rgba(255,255,255,.67);
}

.service-card ul {
    color: var(--muted);
    font-size: .78rem;
    list-style: none;
    margin: 1rem 0 1.5rem;
    padding: 0;
}

.service-card-featured ul, .service-card-dark ul {
    color: rgba(255,255,255,.65);
}

.service-card li::before {
    color: var(--red);
    content: "+";
    font-family: var(--mono);
    margin-right: .55rem;
}

.service-card-featured li::before {
    color: var(--white);
}

.card-link {
    border-top: 1px solid currentColor;
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 700;
    margin-top: auto;
    opacity: .75;
    padding-top: 1rem;
    text-transform: uppercase;
}

/* Feature stack */
.feature-layout {
    align-items: start;
    display: grid;
    gap: clamp(4rem, 10vw, 9rem);
    grid-template-columns: .8fr 1.2fr;
}

.feature-copy {
    position: sticky;
    top: calc(var(--header-height) + 3rem);
}

.feature-copy h2 {
    margin-bottom: 2rem;
}

.feature-copy > p:not(.eyebrow) {
    color: rgba(255,255,255,.62);
    font-size: 1.1rem;
    margin-bottom: 2.3rem;
}

.feature-stack {
    border-top: 1px solid var(--line-dark);
}

.feature-stack article {
    border-bottom: 1px solid var(--line-dark);
    display: grid;
    gap: 2rem;
    grid-template-columns: 48px 1fr;
    padding: 2rem 0;
}

.feature-stack > article > span {
    color: var(--red);
    font-family: var(--mono);
    font-size: .65rem;
}

.feature-stack h3 {
    font-size: 1.4rem;
    margin-bottom: .5rem;
}

.feature-stack p {
    color: rgba(255,255,255,.55);
    margin: 0;
}

/* Innovation */
.center-heading {
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.center-heading .eyebrow::before {
    display: none;
}

.center-heading > p:last-child {
    margin-top: 1.5rem;
}

.innovation-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
}

.innovation-card {
    min-height: 720px;
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

.app-card {
    background: #dfded6;
}

.ai-card {
    background: var(--ink);
    color: var(--white);
}

.innovation-tag {
    font-family: var(--mono);
    font-size: .6rem;
    left: 2rem;
    letter-spacing: .1em;
    opacity: .5;
    position: absolute;
    top: 2rem;
}

.innovation-content {
    bottom: 2.2rem;
    left: 2.2rem;
    max-width: 520px;
    position: absolute;
    right: 2.2rem;
    z-index: 2;
}

.card-kicker {
    color: var(--red);
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.innovation-content h3 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    letter-spacing: -.035em;
    line-height: 1.05;
}

.innovation-content > p:not(.card-kicker) {
    color: var(--muted);
}

.ai-card .innovation-content > p:not(.card-kicker) {
    color: rgba(255,255,255,.58);
}

.check-list {
    font-size: .85rem;
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.check-list li {
    border-top: 1px solid currentColor;
    padding: .55rem 0;
}

.check-list li::before {
    color: var(--red);
    content: "↳";
    font-family: var(--mono);
    margin-right: .7rem;
}

.phone-frame {
    background: var(--ink);
    border: 5px solid #263436;
    border-radius: 32px;
    height: 350px;
    left: 50%;
    overflow: hidden;
    position: absolute;
    top: 58px;
    transform: translateX(-50%) rotate(4deg);
    width: 190px;
    opacity: .28;
}

.phone-frame::before {
    background: #263436;
    border-radius: 0 0 10px 10px;
    content: "";
    height: 16px;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 75px;
}

.phone-frame div {
    background: linear-gradient(135deg, var(--red), #f17752);
    height: 85px;
    margin: 38px 16px 20px;
}

.phone-frame span {
    background: rgba(255,255,255,.1);
    display: block;
    height: 42px;
    margin: 10px 16px;
}

.phone-frame span:nth-child(3) { width: 70%; }
.phone-frame span:nth-child(4) { width: 84%; }

.ai-orbit {
    align-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    display: flex;
    height: 330px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 65px;
    transform: translateX(-50%);
    width: 330px;
}

.ai-orbit::before, .ai-orbit::after {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    content: "";
    position: absolute;
}

.ai-orbit::before { inset: 40px; }
.ai-orbit::after { inset: 85px; }

.ai-orbit > span {
    color: var(--red);
    font-family: var(--mono);
    font-size: 2.4rem;
    font-weight: 800;
    text-shadow: 0 0 35px rgba(227,34,43,.65);
}

.ai-orbit i {
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--green);
    height: 7px;
    position: absolute;
    width: 7px;
}

.ai-orbit i:nth-of-type(1) { left: 18px; top: 145px; }
.ai-orbit i:nth-of-type(2) { right: 65px; top: 54px; }
.ai-orbit i:nth-of-type(3) { bottom: 36px; right: 85px; }

/* Microsoft */
.microsoft-section {
    background: var(--white);
}

.microsoft-layout {
    align-items: center;
    display: grid;
    gap: clamp(4rem, 10vw, 9rem);
    grid-template-columns: .65fr 1.35fr;
}

.ms-badge {
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.4rem;
    padding: 2.2rem;
    transform: rotate(-2deg);
}

.ms-grid {
    display: grid;
    flex: 0 0 75px;
    gap: 4px;
    grid-template-columns: 1fr 1fr;
    height: 75px;
}

.ms-grid span:nth-child(1) { background: #f25022; }
.ms-grid span:nth-child(2) { background: #7fba00; }
.ms-grid span:nth-child(3) { background: #00a4ef; }
.ms-grid span:nth-child(4) { background: #ffb900; }

.ms-badge small, .ms-badge strong {
    display: block;
}

.ms-badge small {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .1em;
}

.ms-badge strong {
    font-size: 1.3rem;
}

.microsoft-copy > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 700px;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 2rem 0;
}

.pill-list span {
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .7rem;
    padding: .45rem .75rem;
}

/* Helpdesk */
.service-layout {
    align-items: center;
    display: grid;
    gap: clamp(4rem, 9vw, 8rem);
    grid-template-columns: 1fr 1fr;
}

.section-lead {
    color: rgba(255,255,255,.6);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.dark-text {
    color: var(--muted);
}

.sla-board {
    background: rgba(255,255,255,.035);
    border: 1px solid var(--line-dark);
    padding: 1.5rem;
}

.sla-head, .sla-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 45px 1fr 85px 10px;
}

.sla-head {
    color: rgba(255,255,255,.35);
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .08em;
    padding: 0 0 .8rem;
}

.sla-head span:nth-child(2) { grid-column: 2; }
.sla-head span:nth-child(3) { grid-column: 3; }

.sla-row {
    border-top: 1px solid var(--line-dark);
    padding: 1.15rem 0;
}

.sla-row strong {
    font-family: var(--mono);
    font-size: .75rem;
}

.sla-row span {
    color: rgba(255,255,255,.68);
    font-size: .86rem;
}

.sla-row b {
    font-family: var(--mono);
    font-size: .6rem;
    font-weight: 500;
}

.sla-row i {
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.sla-row i.red { background: var(--red); box-shadow: 0 0 12px var(--red); }
.sla-row i.amber { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.sla-row i.green { background: var(--green); box-shadow: 0 0 12px var(--green); }

.sla-board > p {
    color: rgba(255,255,255,.32);
    font-size: .66rem;
    margin: 1rem 0 0;
}

/* About */
.about-layout {
    align-items: center;
    display: grid;
    gap: clamp(4rem, 10vw, 9rem);
    grid-template-columns: .72fr 1.28fr;
}

.about-visual {
    min-height: 520px;
    position: relative;
}

.portrait-placeholder {
    align-items: center;
    background: var(--ink);
    color: var(--white);
    display: flex;
    flex-direction: column;
    inset: 0 40px 0 0;
    justify-content: center;
    position: absolute;
}

.portrait-placeholder::before {
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 35px 35px;
    content: "";
    inset: 0;
    position: absolute;
}

.portrait-placeholder > span {
    color: var(--red);
    font-size: 7rem;
    font-weight: 800;
    letter-spacing: -.08em;
    line-height: 1;
    position: relative;
}

.portrait-placeholder > small {
    font-family: var(--mono);
    letter-spacing: .2em;
    position: relative;
}

.experience-stamp {
    align-items: center;
    background: var(--red);
    bottom: -20px;
    color: var(--white);
    display: flex;
    gap: .7rem;
    padding: 1.2rem;
    position: absolute;
    right: 0;
}

.experience-stamp strong {
    font-size: 2.5rem;
    line-height: 1;
}

.experience-stamp span {
    font-family: var(--mono);
    font-size: .6rem;
    line-height: 1.3;
    text-transform: uppercase;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 600;
}

.about-copy > p:not(.eyebrow):not(.about-lead) {
    color: var(--muted);
}

.about-facts {
    border-top: 1px solid var(--line);
    margin-top: 2.5rem;
}

.about-facts > div {
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 130px 1fr;
    padding: .85rem 0;
}

.about-facts dt {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .65rem;
    text-transform: uppercase;
}

.about-facts dd {
    font-size: .9rem;
    font-weight: 650;
    margin: 0;
}

/* Shop teaser */
.shop-teaser {
    background: var(--paper-warm);
    border-block: 1px solid var(--line);
    padding: 3rem 0;
}

.shop-teaser-inner {
    align-items: center;
    display: grid;
    gap: 3rem;
    grid-template-columns: 1.1fr 1fr auto;
}

.shop-teaser .eyebrow {
    margin-bottom: .7rem;
}

.shop-teaser h2 {
    font-size: 2.2rem;
    margin: 0;
}

.shop-teaser p:not(.eyebrow) {
    color: var(--muted);
    margin: 0;
}

/* Contact */
.contact-section {
    background: var(--red);
    color: var(--white);
}

.contact-layout {
    align-items: start;
    display: grid;
    gap: clamp(3rem, 8vw, 7rem);
    grid-template-columns: .8fr 1.2fr;
}

.contact-section .eyebrow {
    color: var(--white);
}

.contact-section h2 em {
    color: var(--ink);
}

.contact-copy > p:not(.eyebrow) {
    color: rgba(255,255,255,.75);
    max-width: 520px;
}

.contact-direct {
    border-top: 1px solid rgba(255,255,255,.3);
    margin-top: 3rem;
}

.contact-direct > a, .contact-direct > div {
    border-bottom: 1px solid rgba(255,255,255,.3);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    text-decoration: none;
}

.contact-direct span {
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .1em;
    opacity: .7;
}

.contact-direct strong {
    font-size: 1.2rem;
}

.contact-form-card {
    background: var(--paper);
    box-shadow: 20px 30px 70px rgba(92,0,5,.25);
    color: var(--text);
    padding: clamp(1.5rem, 4vw, 3rem);
}

.form-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1fr 1fr;
}

.field {
    display: flex;
    flex-direction: column;
}

.field-full {
    grid-column: 1 / -1;
}

.field > label {
    font-family: var(--mono);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: .4rem;
    text-transform: uppercase;
}

.field input:not([type=checkbox]), .field textarea, .field select {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #a8aeaa;
    border-radius: 0;
    color: var(--text);
    font-size: 1rem;
    padding: .65rem 0;
    width: 100%;
}

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
    background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    cursor: pointer;
    padding-right: 1.8rem;
}

.field textarea {
    border: 1px solid #a8aeaa;
    padding: .8rem;
    resize: vertical;
}

.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--red);
}

.privacy-field label {
    align-items: start;
    display: flex;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 400;
    gap: .7rem;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.privacy-field input {
    accent-color: var(--red);
    flex: 0 0 auto;
    margin-top: .2rem;
}

.validation-message {
    color: var(--red-dark);
    font-size: .7rem;
    margin-top: .3rem;
}

.invalid:not([type=checkbox]) {
    border-color: var(--red) !important;
}

.submit-button {
    margin-top: 1.7rem;
    min-width: 210px;
}

.submit-button:disabled {
    cursor: wait;
    opacity: .6;
}

.form-note {
    color: var(--muted);
    font-size: .65rem;
    margin: .8rem 0 0;
}

.form-status {
    border: 1px solid;
    font-size: .85rem;
    margin-top: 1.5rem;
    padding: .8rem 1rem;
}

.form-status.is-success {
    background: rgba(29,191,131,.08);
    border-color: var(--green);
}

.form-status.is-error {
    background: rgba(227,34,43,.06);
    border-color: var(--red);
}

.honeypot {
    height: 0;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

/* Footer */
.site-footer {
    background: #030a0b;
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    gap: 4rem;
    grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-brand {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 800;
}

.footer-brand strong {
    color: var(--red);
}

.footer-grid > div > p:not(.footer-brand):not(.footer-title) {
    color: rgba(255,255,255,.43);
    font-size: .86rem;
    max-width: 430px;
}

.footer-title {
    color: rgba(255,255,255,.37);
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-grid a, .footer-button {
    background: none;
    border: 0;
    color: rgba(255,255,255,.78);
    cursor: pointer;
    display: block;
    font-size: .82rem;
    margin: .4rem 0;
    padding: 0;
    text-align: left;
    text-decoration: none;
}

.footer-grid a:hover, .footer-button:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid var(--line-dark);
    color: rgba(255,255,255,.3);
    display: flex;
    font-family: var(--mono);
    font-size: .58rem;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.3rem;
}

/* Consent */
.consent-banner {
    align-items: end;
    background: var(--white);
    border-top: 3px solid var(--red);
    bottom: 0;
    box-shadow: 0 -20px 70px rgba(7,19,21,.24);
    color: var(--text);
    display: none;
    gap: 2rem;
    grid-template-columns: 1.6fr auto;
    left: 0;
    padding: 1.5rem max(1.25rem, calc((100vw - 1190px) / 2));
    position: fixed;
    right: 0;
    z-index: 300;
}

.consent-banner.is-open {
    display: grid;
}

.consent-copy .eyebrow {
    margin-bottom: .4rem;
}

.consent-copy h2 {
    font-size: 1.6rem;
    margin-bottom: .5rem;
}

.consent-copy p {
    color: var(--muted);
    font-size: .8rem;
    margin-bottom: .3rem;
}

.consent-copy a {
    font-size: .72rem;
}

.consent-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.consent-actions .button {
    min-height: 44px;
    padding: .6rem .9rem;
}

.text-button {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: .72rem;
    text-decoration: underline;
}

.consent-details {
    border-top: 1px solid var(--line);
    display: grid;
    gap: .7rem;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr) auto;
    padding-top: 1rem;
}

.consent-details[hidden] {
    display: none;
}

.consent-details label {
    align-items: start;
    display: flex;
    font-size: .75rem;
    gap: .5rem;
}

.consent-details input {
    accent-color: var(--red);
    margin-top: .2rem;
}

.consent-details strong, .consent-details small {
    display: block;
}

.consent-details small {
    color: var(--muted);
    line-height: 1.35;
}

.consent-details .button {
    min-height: 44px;
}

.translation-toast {
    background: var(--ink);
    border-left: 3px solid var(--green);
    bottom: 1.25rem;
    color: var(--white);
    font-size: .8rem;
    opacity: 0;
    padding: .8rem 1rem;
    pointer-events: none;
    position: fixed;
    right: 1.25rem;
    transform: translateY(20px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 400;
}

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

.translation-toast.is-error {
    border-left-color: var(--red);
}

/* Service pages */
.service-page-hero {
    min-height: 710px;
    overflow: hidden;
    padding: calc(var(--header-height) + 5rem) 0 6rem;
    position: relative;
}

.service-page-hero-grid {
    align-items: center;
    display: grid;
    gap: 5rem;
    grid-template-columns: 1.4fr .6fr;
    min-height: 560px;
    position: relative;
}

.service-page-hero h1 {
    font-size: clamp(3.3rem, 6vw, 6.5rem);
    margin-bottom: 1.5rem;
}

.back-link {
    color: rgba(255,255,255,.48);
    display: inline-block;
    font-family: var(--mono);
    font-size: .67rem;
    margin-bottom: 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
}

.service-monogram {
    align-items: center;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transform: rotate(3deg);
}

.service-monogram::before, .service-monogram::after {
    border: 1px solid rgba(255,255,255,.08);
    content: "";
    inset: 12%;
    position: absolute;
}

.service-monogram::after { inset: 27%; }

.service-monogram span {
    color: var(--red);
    font-family: var(--mono);
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.service-monogram small {
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .16em;
    position: relative;
    z-index: 1;
}

.detail-intro {
    display: grid;
    gap: 4rem;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 4rem;
}

.detail-intro h2 {
    font-size: clamp(2.3rem, 4vw, 4rem);
}

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

.detail-grid article {
    background: var(--white);
    min-height: 260px;
    padding: 2rem;
}

.detail-grid article > span {
    color: var(--red);
    font-family: var(--mono);
    font-size: .65rem;
}

.detail-grid h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-top: 3rem;
}

.detail-grid p {
    color: var(--muted);
    font-size: .86rem;
}

.result-section {
    background: var(--paper-warm);
}

.result-layout {
    align-items: center;
    display: grid;
    gap: 7rem;
    grid-template-columns: 1fr 1fr;
}

.result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.result-list li {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    grid-template-columns: 25px 1fr;
    padding: 1rem 0;
}

.result-list li:first-child {
    border-top: 1px solid var(--line);
}

.result-list span {
    color: var(--red);
    font-family: var(--mono);
}

.service-page-cta {
    padding: 7rem 0;
    text-align: center;
}

.service-page-cta .eyebrow {
    justify-content: center;
}

.service-page-cta h2 {
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    margin-inline: auto;
    max-width: 950px;
}

.service-page-cta p {
    color: rgba(255,255,255,.55);
}

.centered-buttons {
    justify-content: center;
}

/* Legal and utility pages */
.legal-page {
    background: var(--paper);
    min-height: 75vh;
    padding: calc(var(--header-height) + 5rem) 0 7rem;
}

.legal-layout {
    display: grid;
    gap: 6rem;
    grid-template-columns: 280px 1fr;
}

.legal-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 3rem);
}

.legal-sidebar h1 {
    font-size: 3.5rem;
}

.legal-sidebar nav {
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.legal-sidebar nav a {
    border-bottom: 1px solid var(--line);
    font-size: .85rem;
    padding: .8rem 0;
    text-decoration: none;
}

.legal-sidebar nav a.active {
    color: var(--red);
    font-weight: 700;
}

.legal-content {
    max-width: 760px;
}

.legal-content section {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
}

.legal-content h2 {
    font-size: 1.5rem;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.legal-content p, .legal-content dd {
    color: #49585b;
    font-size: .92rem;
}

.legal-content dl > div {
    display: grid;
    grid-template-columns: 100px 1fr;
}

.legal-content dt {
    font-family: var(--mono);
    font-size: .7rem;
}

.legal-content dd {
    margin: 0;
}

.legal-updated {
    font-family: var(--mono);
    font-size: .65rem !important;
}

.construction-page, .simple-page {
    align-items: center;
    display: flex;
    min-height: 78vh;
    padding: calc(var(--header-height) + 6rem) 0 7rem;
    position: relative;
    text-align: center;
}

.construction-page h1, .simple-page h1 {
    font-size: clamp(3rem, 6vw, 6rem);
}

.construction-page p:not(.eyebrow), .simple-page p:not(.eyebrow) {
    color: rgba(255,255,255,.62);
    font-size: 1.1rem;
    margin-inline: auto;
    max-width: 680px;
}

.construction-page .eyebrow, .simple-page .eyebrow {
    justify-content: center;
}

.construction-code {
    color: rgba(255,255,255,.15);
    font-family: var(--mono);
    font-size: clamp(2rem, 5vw, 5rem);
    letter-spacing: .08em;
    margin-bottom: 1rem;
}

.construction-code strong {
    color: var(--red);
}

.portal-page {
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        var(--ink);
    background-size: 52px 52px;
    color: var(--white);
    min-height: 100svh;
    overflow: hidden;
    padding: calc(var(--header-height) + clamp(4.5rem, 8vw, 8rem)) 0 clamp(5rem, 9vw, 8rem);
    position: relative;
}

.portal-status {
    align-items: center;
    color: rgba(255,255,255,.55);
    display: flex;
    font-family: var(--mono);
    font-size: .65rem;
    letter-spacing: .12em;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.portal-status span {
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--green);
    display: inline-block;
    height: 7px;
    margin-right: .5rem;
    width: 7px;
}

.portal-grid {
    align-items: center;
    display: grid;
    gap: clamp(4rem, 9vw, 9rem);
    grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr);
    position: relative;
    z-index: 1;
}

.portal-intro h1 {
    font-size: clamp(3.7rem, 6.2vw, 7rem);
    margin: 0 0 2rem;
}

.portal-intro > p:not(.eyebrow):not(.portal-security-note) {
    color: rgba(255,255,255,.67);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 610px;
}

.portal-benefits {
    border-top: 1px solid var(--line-dark);
    list-style: none;
    margin: 2.25rem 0 0;
    max-width: 610px;
    padding: 0;
}

.portal-benefits li {
    align-items: center;
    border-bottom: 1px solid var(--line-dark);
    display: flex;
    font-size: .92rem;
    gap: .8rem;
    padding: .9rem 0;
}

.portal-benefits li::before {
    color: var(--red);
    content: "↳";
    font-family: var(--mono);
}

.portal-security-note {
    color: rgba(255,255,255,.48);
    font-family: var(--mono);
    font-size: .67rem;
    line-height: 1.55;
    margin: 1.6rem 0 0;
    max-width: 610px;
}

.portal-security-note span {
    color: var(--green);
    margin-right: .4rem;
}

.portal-login-shell {
    box-shadow: 18px 20px 0 rgba(0,0,0,.28);
    position: relative;
}

.portal-login-shell::before {
    border: 1px solid rgba(255,255,255,.12);
    content: "";
    inset: -14px 14px 14px -14px;
    pointer-events: none;
    position: absolute;
}

.portal-terminal-bar {
    align-items: center;
    background: #060707;
    border: 1px solid rgba(255,255,255,.18);
    border-bottom: 0;
    display: flex;
    gap: .35rem;
    min-height: 40px;
    padding: 0 .8rem;
    position: relative;
    z-index: 1;
}

.portal-terminal-bar span {
    background: rgba(255,255,255,.22);
    border-radius: 50%;
    height: 6px;
    width: 6px;
}

.portal-terminal-bar span:first-child {
    background: var(--red);
}

.portal-terminal-bar small {
    color: rgba(255,255,255,.38);
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .08em;
    margin-left: auto;
}

.portal-login-form {
    background: #efeee9;
    border: 1px solid rgba(255,255,255,.18);
    color: var(--ink);
    padding: clamp(2rem, 4.5vw, 3.6rem);
    position: relative;
    z-index: 1;
}

.portal-login-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.portal-login-heading span,
.portal-login-heading b {
    color: var(--red);
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .1em;
}

.portal-login-heading h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin: .3rem 0 0;
}

.portal-login-heading b {
    border: 1px solid rgba(7,20,26,.18);
    color: var(--ink);
    padding: .45rem .55rem;
}

.portal-login-form > label,
.portal-password-label label {
    display: block;
    font-family: var(--mono);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: .5rem;
    text-transform: uppercase;
}

.portal-login-form > input:not([type="hidden"]) {
    background: #fff;
    border: 1px solid rgba(7,20,26,.25);
    border-radius: 0;
    color: var(--ink);
    font: inherit;
    min-height: 52px;
    padding: .75rem .9rem;
    transition: border-color .18s ease, box-shadow .18s ease;
    width: 100%;
}

.portal-login-form > input:not([type="hidden"]):focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(235,28,47,.12);
    outline: none;
}

.portal-password-label {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-top: 1.35rem;
}

.portal-password-label a,
.portal-register a {
    color: var(--red);
    font-size: .76rem;
}

.portal-login-submit {
    justify-content: space-between;
    margin-top: 1.8rem;
    width: 100%;
}

.portal-register {
    color: rgba(7,20,26,.62);
    font-size: .8rem;
    margin: 1.3rem 0 0;
    text-align: center;
}

.portal-handoff {
    background: rgba(7,20,26,.06);
    color: rgba(7,20,26,.58);
    font-family: var(--mono);
    font-size: .61rem;
    line-height: 1.5;
    margin: 1.5rem 0 0;
    padding: .8rem;
}

.portal-handoff span {
    color: var(--green);
    font-size: .55rem;
    margin-right: .35rem;
}

.error-page {
    background: var(--ink);
    color: var(--white);
}

/* Account pages */
.account-body {
    background: var(--ink);
    color: var(--white);
    min-height: 100svh;
}

.account-header {
    align-items: center;
    border-bottom: 1px solid var(--line-dark);
    display: flex;
    justify-content: space-between;
    min-height: var(--header-height);
    padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}

.account-brand img {
    display: block;
    width: min(260px, 48vw);
}

.account-header nav {
    display: flex;
    gap: 1.25rem;
}

.account-header nav a {
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    text-decoration: none;
}

.account-header nav a:hover {
    color: var(--white);
}

.account-main {
    display: grid;
    min-height: calc(100svh - var(--header-height));
    padding: clamp(2rem, 7vw, 6rem) 1.25rem;
    place-items: start center;
}

.account-card {
    background: var(--paper);
    color: var(--text);
    max-width: 560px;
    padding: clamp(2rem, 5vw, 4rem);
    width: 100%;
}

.account-card h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.account-card .eyebrow {
    margin-bottom: 1rem;
}

.account-intro,
.account-switch {
    color: var(--muted);
    font-size: .9rem;
}

.account-form {
    display: grid;
    gap: .55rem;
    margin-top: 1.75rem;
}

.account-form > label:not(.account-checkbox) {
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin-top: .8rem;
    text-transform: uppercase;
}

.account-form > input:not([type="hidden"]):not([type="checkbox"]) {
    background: var(--white);
    border: 1px solid rgba(7, 20, 26, .25);
    border-radius: 0;
    color: var(--ink);
    font: inherit;
    min-height: 52px;
    padding: .75rem .9rem;
    width: 100%;
}

.account-form > input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(227, 34, 43, .12);
    outline: none;
}

.account-checkbox {
    align-items: center;
    display: flex;
    font-size: .86rem;
    gap: .55rem;
    margin-top: .75rem;
}

.account-checkbox input {
    accent-color: var(--red);
}

.account-submit {
    margin-top: 1rem;
    width: 100%;
}

.account-switch {
    margin: 1.5rem 0 0;
    text-align: center;
}

.account-switch a {
    color: var(--red);
}

.account-validation {
    color: var(--red-dark);
    font-size: .78rem;
}

.validation-summary-valid {
    display: none;
}

.account-message {
    border-left: 3px solid var(--red);
    font-size: .84rem;
    margin-bottom: 1.25rem;
    padding: .8rem 1rem;
}

.account-message-error {
    background: rgba(227, 34, 43, .08);
}

.account-external {
    margin-top: 1.75rem;
}

.account-external > p {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: .75rem;
    gap: .75rem;
    justify-content: center;
}

.account-external > p::before,
.account-external > p::after {
    background: var(--line);
    content: "";
    height: 1px;
    width: 100%;
}

.account-external form + form {
    margin-top: .65rem;
}

.account-external .button {
    width: 100%;
}

/* Runtime status */
#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none;
    left: 0;
    padding: .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
}

/* Responsive */
@media (max-width: 1120px) {
    .desktop-nav { display: none; }
    .header-actions { margin-left: auto; }
    .mobile-menu { display: block; margin-left: 0; }
    .hero-layout { grid-template-columns: 1fr .7fr; gap: 3rem; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card-wide { grid-column: span 2; }
    .signal-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
    .signal-grid > div:nth-child(2) { border-right: 0; }
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-grid { gap: 4rem; }
}

@media (max-width: 820px) {
    :root { --header-height: 72px; }
    body { font-size: 16px; }
    .brand { width: 210px; }
    .brand-logo { width: 210px; }
    .header-actions .language-switcher { display: none; }
    .portal-link { display: none; }
    .hero { min-height: auto; padding-bottom: 5rem; }
    .hero-layout { grid-template-columns: 1fr; }
    .system-panel { margin-inline: auto; max-width: 500px; transform: none; width: 100%; }
    .scroll-hint { display: none; }
    .signal-grid { grid-template-columns: 1fr 1fr; }
    .signal-grid > div { padding-inline: .7rem; }
    .split-heading, .feature-layout, .microsoft-layout, .service-layout, .about-layout, .contact-layout, .detail-intro, .result-layout, .service-page-hero-grid, .legal-layout { grid-template-columns: 1fr; }
    .split-heading, .feature-layout, .microsoft-layout, .service-layout, .about-layout, .contact-layout, .detail-intro, .result-layout, .service-page-hero-grid, .legal-layout { gap: 3rem; }
    .feature-copy, .legal-sidebar { position: static; }
    .innovation-grid { grid-template-columns: 1fr; }
    .innovation-card { min-height: 690px; }
    .ms-badge { max-width: 430px; }
    .about-visual { min-height: 440px; }
    .shop-teaser-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-page-hero { min-height: auto; }
    .service-monogram { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
    .legal-content { max-width: none; }
    .portal-grid { grid-template-columns: 1fr; }
    .portal-intro { max-width: 680px; }
    .portal-login-shell { max-width: 600px; width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .consent-banner { align-items: stretch; grid-template-columns: 1fr; }
    .consent-details { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
    h2 { font-size: clamp(2.4rem, 12vw, 3.8rem); }
    .hero-copy .eyebrow { gap: .3rem; font-size: .58rem; }
    .eyebrow span:not(:last-child)::after { margin-left: .3rem; }
    .button-row { align-items: stretch; flex-direction: column; }
    .button-row .button { width: 100%; }
    .signal-grid { grid-template-columns: 1fr; }
    .signal-grid > div { border-bottom: 1px solid var(--line); border-right: 0; padding: .7rem 0; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card-wide { align-items: flex-start; flex-direction: column; grid-column: span 1; }
    .service-card-wide .card-link { margin: auto 0 0; white-space: normal; }
    .service-card { min-height: 420px; }
    .innovation-card { margin-inline: -1.25rem; min-height: 730px; }
    .ai-orbit { height: 270px; width: 270px; }
    .phone-frame { height: 310px; width: 170px; }
    .ms-badge { padding: 1.3rem; }
    .ms-grid { flex-basis: 55px; height: 55px; }
    .form-grid { grid-template-columns: 1fr; }
    .field { grid-column: 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: .5rem; }
    .consent-banner { max-height: 90vh; overflow: auto; }
    .consent-actions { align-items: stretch; flex-direction: column; }
    .consent-actions .button { width: 100%; }
    .detail-grid { margin-inline: 1.25rem; }
    .legal-content dl > div { grid-template-columns: 1fr; margin-bottom: .8rem; }
    .portal-page { padding-top: calc(var(--header-height) + 3.5rem); }
    .portal-intro h1 { font-size: clamp(3.1rem, 14vw, 4.6rem); }
    .portal-login-form { padding: 1.6rem 1.25rem; }
    .portal-login-heading { margin-bottom: 2rem; }
    .portal-login-heading b { display: none; }
    .portal-password-label { align-items: flex-start; flex-direction: column; gap: .15rem; }
}

/* Shop administration */
.admin-shell { min-height: 100vh; background: #f3f5f4; color: #132124; }
.admin-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: .9rem clamp(1rem, 3vw, 2.5rem); background: #071315; color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.admin-brand { color: #fff; font-weight: 750; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.admin-header nav { display: flex; gap: .25rem; overflow-x: auto; }
.admin-header nav a, .admin-public-link { border-radius: 6px; color: #d7e1df; padding: .55rem .7rem; text-decoration: none; white-space: nowrap; }
.admin-header nav a.active, .admin-header nav a:hover, .admin-public-link:hover { background: #173033; color: #fff; }
.admin-main { padding: 2rem clamp(1rem, 3vw, 3rem) 4rem; }
.admin-page { max-width: 1320px; margin: 0 auto; }
.admin-page.wide { max-width: 1760px; }
.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.admin-page-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.admin-page-heading p { max-width: 650px; margin: .2rem 0; }
.admin-panel { margin: 1.2rem 0; padding: 1.25rem; border: 1px solid #d5dddb; border-radius: 10px; background: #fff; box-shadow: 0 5px 18px rgba(7,19,21,.04); }
.admin-panel h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 1rem; }
.admin-stat-grid article { min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; border-radius: 10px; background: #fff; border: 1px solid #d5dddb; }
.admin-stat-grid span, .admin-preview-grid span { color: #536466; font-size: .85rem; }
.admin-stat-grid strong { font-size: 2rem; }
.admin-stat-warning { border-color: #c4673d !important; }
.admin-group-counts, .admin-preview-grid, .admin-group-prices { display: grid; grid-template-columns: repeat(6, minmax(100px, 1fr)); gap: .75rem; }
.admin-group-counts > div, .admin-preview-grid > div, .admin-group-prices > div { display: flex; flex-direction: column; gap: .25rem; padding: .8rem; border: 1px solid #d5dddb; border-radius: 7px; }
.admin-form-grid, .admin-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 1rem; }
.admin-filter-grid { padding: 1rem; margin-bottom: 1rem; border-radius: 10px; background: #fff; border: 1px solid #d5dddb; align-items: end; }
.admin-filter-grid .span-2 { grid-column: span 2; }
.admin-filter-bar, .admin-inline-form, .admin-actions, .admin-bulk-bar, .admin-pagination { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.admin-filter-bar, .admin-bulk-bar { margin-bottom: 1rem; padding: 1rem; background: #fff; border: 1px solid #d5dddb; border-radius: 10px; }
.admin-bulk-bar span { margin-right: auto; font-weight: 650; }
.admin-form label, .admin-filter-grid label, .admin-filter-bar label, .admin-inline-form label { display: flex; flex-direction: column; gap: .35rem; color: #425255; font-size: .84rem; font-weight: 650; }
.admin-shell input:not([type="checkbox"]), .admin-shell select { min-height: 40px; border: 1px solid #b8c5c3; border-radius: 5px; background: #fff; color: #132124; padding: .5rem .65rem; font: inherit; }
.admin-shell input:focus, .admin-shell select:focus { outline: 2px solid #3b7b72; outline-offset: 1px; }
.admin-checkbox { flex-direction: row !important; align-items: center; min-height: 40px; }
.admin-price-grid { display: grid; gap: .65rem; }
.admin-price-row { display: grid; grid-template-columns: 80px repeat(2, minmax(180px, 1fr)); align-items: end; gap: 1rem; padding: .7rem; border-top: 1px solid #e1e7e5; }
.admin-button { min-height: 38px; border: 1px solid #9aa9a7; border-radius: 5px; background: #fff; color: #132124; padding: .45rem .8rem; cursor: pointer; font: inherit; font-weight: 650; }
.admin-button:hover:not(:disabled) { border-color: #355f5a; background: #edf4f2; }
.admin-button.primary { border-color: #173f3a; background: #173f3a; color: #fff; }
.admin-button.danger { border-color: #923a27; background: #923a27; color: #fff; }
.admin-button.small { min-height: 30px; padding: .25rem .5rem; font-size: .78rem; }
.admin-button:disabled { cursor: not-allowed; opacity: .45; }
.admin-message { padding: .8rem 1rem; border-radius: 6px; background: #e7f2ef; color: #17443e; }
.admin-message.error { background: #f9e4df; color: #7e2818; }
.admin-message.warning { background: #fff2d7; color: #73531b; }
.admin-hint, .admin-loading { color: #5b6c6f; }
.admin-table-wrap { overflow: auto; border: 1px solid #d5dddb; border-radius: 9px; background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th { position: sticky; top: 0; z-index: 1; background: #e9eeec; color: #38484a; text-align: left; }
.admin-table th, .admin-table td { padding: .7rem; border-bottom: 1px solid #e1e7e5; vertical-align: top; }
.admin-table td small { display: block; margin-top: .2rem; color: #607174; }
.admin-table.products { min-width: 1350px; }
.admin-table.categories { min-width: 1120px; }
.admin-table.compact { margin-top: 1rem; }
.admin-badge { display: inline-flex; align-items: center; width: fit-content; margin: .1rem .25rem .1rem 0; padding: .16rem .4rem; border-radius: 99px; background: #e7eceb; color: #4b5c5e; font-size: .73rem; font-weight: 750; }
.admin-badge.ok { background: #dcefe9; color: #176348; }
.admin-badge.warn { background: #fff0cf; color: #775415; }
.admin-badge.error { background: #f7ded8; color: #8d2b19; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.admin-detail-row td { background: #f5f8f7; }
.admin-group-prices .warning { border-color: #bd6d35; background: #fff7ec; }
.admin-pagination { justify-content: center; margin-top: 1rem; }
.admin-confirmation { border-color: #8aa59f; }
.admin-category-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.admin-category-tree { display: flex; align-items: center; gap: .35rem; min-width: 300px; padding-inline-start: calc(var(--category-depth) * 1.5rem); }
.admin-category-toggle, .admin-category-toggle-placeholder { display: inline-grid; flex: 0 0 1.7rem; width: 1.7rem; height: 1.7rem; place-items: center; }
.admin-category-toggle { border: 1px solid transparent; border-radius: 4px; background: transparent; color: #244d48; cursor: pointer; font: inherit; font-size: 1rem; }
.admin-category-toggle:hover { border-color: #9bb1ad; background: #edf4f2; }
.admin-category-toggle:focus-visible { outline: 2px solid #3b7b72; outline-offset: 1px; }
.admin-category-name.root { font-weight: 780; }
.admin-category-level { margin-left: .15rem; color: #68797b; font-size: .68rem; font-weight: 750; letter-spacing: .04em; }
.admin-category-path { margin: -.35rem 0 1rem; color: #536466; }
.admin-category-path span { font-weight: 750; }
.admin-visibility-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 30px; margin: 0 .25rem .1rem 0; padding: .2rem .45rem; border: 1px solid #aab9b6; border-radius: 99px; background: #f1f4f3; color: #4b5c5e; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 750; }
.admin-visibility-toggle:hover:not(:disabled) { border-color: #4e776f; }
.admin-visibility-toggle:focus-visible { outline: 2px solid #3b7b72; outline-offset: 1px; }
.admin-visibility-toggle:disabled { cursor: wait; opacity: .6; }
.admin-visibility-toggle.is-hidden { border-color: #e2a9b5; background: #fde8ee; color: #7a2940; }
.admin-visibility-toggle.is-visible { border-color: #8fc4b5; background: #dcefe9; color: #176348; }
.admin-visibility-track { display: block; width: 1.55rem; height: .9rem; padding: .12rem; border-radius: 99px; background: #899795; }
.admin-visibility-track span { display: block; width: .66rem; height: .66rem; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.admin-visibility-toggle.is-visible .admin-visibility-track { background: #32806a; }
.admin-visibility-toggle.is-visible .admin-visibility-track span { transform: translateX(.65rem); }

@media (max-width: 1100px) {
    .admin-header { grid-template-columns: 1fr; gap: .4rem; position: static; }
    .admin-stat-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
    .admin-form-grid, .admin-filter-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
    .admin-group-counts, .admin-preview-grid, .admin-group-prices { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
}

@media (max-width: 650px) {
    .admin-page-heading { align-items: start; flex-direction: column; gap: .5rem; }
    .admin-stat-grid, .admin-form-grid, .admin-filter-grid, .admin-group-counts, .admin-preview-grid, .admin-group-prices { grid-template-columns: 1fr; }
    .admin-filter-grid .span-2 { grid-column: auto; }
    .admin-price-row { grid-template-columns: 1fr; }
}

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

/* Shop catalog */
.shop-hero,
.shop-subpage-hero {
    overflow: hidden;
    position: relative;
}

.shop-hero {
    min-height: 560px;
    padding-block: clamp(5.5rem, 9vw, 9rem);
}

.shop-hero .hero-grid {
    opacity: .32;
}

.shop-hero-inner {
    align-items: end;
    display: grid;
    gap: clamp(3rem, 8vw, 8rem);
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    position: relative;
    z-index: 1;
}

.shop-hero h1,
.shop-subpage-hero h1 {
    font-size: clamp(3.2rem, 6.7vw, 6.7rem);
    margin-bottom: 1.8rem;
}

.shop-hero-inner > div > p:last-child {
    color: rgba(255,255,255,.68);
    max-width: 650px;
}

.shop-search {
    align-items: stretch;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    padding: .55rem;
    width: 100%;
}

.shop-search input {
    background: transparent;
    border: 0;
    color: var(--ink);
    font-size: .9rem;
    min-width: 0;
    padding: .75rem 1rem;
    width: 100%;
}

.shop-search input:focus {
    outline: 0;
}

.shop-search:focus-within {
    box-shadow: 0 0 0 3px rgba(227, 34, 43, .28), var(--shadow);
}

.shop-subpage-hero {
    padding-block: clamp(4.5rem, 7vw, 7rem);
}

.shop-subpage-hero .container {
    position: relative;
}

.shop-subpage-hero h1 {
    margin-bottom: 2.5rem;
}

.shop-subpage-hero .shop-search {
    max-width: 760px;
}

.shop-catalog-section {
    min-height: 540px;
    padding-block: clamp(4rem, 7vw, 7rem);
}

.shop-catalog-layout {
    align-items: start;
    display: grid;
    gap: clamp(2rem, 4vw, 4.5rem);
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
}

.shop-sidebar {
    position: sticky;
    top: 1.5rem;
}

.shop-sidebar-block {
    border-top: 3px solid var(--ink);
    padding-top: 1.25rem;
}

.shop-sidebar h2 {
    font-size: 1.45rem;
    letter-spacing: -.02em;
    margin-bottom: 1.2rem;
}

.shop-sidebar p {
    color: var(--muted);
    font-size: .82rem;
}

.shop-category-nav {
    display: grid;
}

.shop-category-link {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    font-size: .83rem;
    gap: .7rem;
    justify-content: space-between;
    padding: .7rem .25rem;
    text-decoration: none;
}

.shop-category-link.level-2 {
    padding-left: 1.1rem;
}

.shop-category-link.level-3 {
    color: var(--muted);
    padding-left: 2rem;
}

.shop-category-link:hover,
.shop-category-link.active {
    color: var(--red);
}

.shop-category-link small {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .62rem;
}

.shop-filter-bar {
    align-items: end;
    background: var(--paper-warm);
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto auto;
    padding: 1rem;
}

.shop-filter-bar label:not(.shop-stock-filter) {
    display: grid;
    gap: .35rem;
}

.shop-filter-bar label > span {
    font-family: var(--mono);
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.shop-filter-bar select {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font: inherit;
    font-size: .8rem;
    min-height: 46px;
    padding: .55rem .7rem;
    width: 100%;
}

.shop-stock-filter {
    align-items: center;
    display: flex;
    gap: .45rem;
    min-height: 46px;
    white-space: nowrap;
}

.shop-stock-filter input {
    accent-color: var(--red);
}

.shop-filter-bar .button {
    min-height: 46px;
    padding-block: .6rem;
}

.shop-result-meta {
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    font-family: var(--mono);
    font-size: .68rem;
    justify-content: space-between;
    letter-spacing: .04em;
    min-height: 60px;
    text-transform: uppercase;
}

.shop-result-meta p {
    margin: 0;
}

.shop-result-meta strong {
    color: var(--ink);
}

.shop-product-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1px;
}

.shop-product-card {
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shop-product-visual,
.shop-detail-visual {
    align-items: center;
    background:
        linear-gradient(135deg, transparent 48%, rgba(7,19,21,.045) 48%, rgba(7,19,21,.045) 52%, transparent 52%),
        var(--paper-warm);
    color: rgba(7,19,21,.12);
    display: flex;
    font-family: var(--mono);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    justify-content: center;
    min-height: 230px;
    text-decoration: none;
}

.shop-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.shop-product-maker,
.shop-product-code {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .63rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.shop-product-maker {
    margin-bottom: .65rem;
}

.shop-product-content h2 {
    font-size: 1.18rem;
    letter-spacing: -.02em;
    line-height: 1.25;
    margin-bottom: .8rem;
}

.shop-product-content h2 a {
    text-decoration: none;
}

.shop-product-content h2 a:hover {
    color: var(--red);
}

.shop-product-footer {
    border-top: 1px solid var(--line);
    display: grid;
    gap: .9rem;
    margin-top: auto;
    padding-top: 1rem;
}

.shop-product-footer > div {
    display: grid;
}

.shop-price {
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1.2;
}

.shop-product-footer small,
.shop-detail-purchase small {
    color: var(--muted);
    font-size: .65rem;
}

.shop-price-unavailable {
    color: var(--muted);
    font-size: .88rem;
}

.shop-availability {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-family: var(--mono);
    font-size: .62rem;
    gap: .45rem;
    text-transform: uppercase;
}

.shop-availability::before {
    background: var(--amber);
    border-radius: 50%;
    content: "";
    height: 7px;
    width: 7px;
}

.shop-availability.available {
    color: #087751;
}

.shop-availability.available::before {
    background: var(--green);
}

.shop-empty-state {
    border: 1px solid var(--line);
    margin-top: 1.5rem;
    padding: clamp(2.5rem, 6vw, 5rem);
    text-align: center;
}

.shop-empty-state > span {
    color: var(--red);
    font-family: var(--mono);
    font-size: .72rem;
}

.shop-empty-state h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    margin: 1.2rem auto;
    max-width: 760px;
}

.shop-empty-state p {
    color: var(--muted);
    margin-inline: auto;
    max-width: 620px;
}

.shop-empty-state .button {
    margin-top: .8rem;
}

.shop-pagination {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    font-family: var(--mono);
    font-size: .72rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.2rem;
    text-transform: uppercase;
}

.shop-pagination a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
}

.shop-loading {
    color: var(--muted);
    font-family: var(--mono);
    min-height: 260px;
    padding-block: 3rem;
}

.shop-product-page {
    min-height: 70svh;
    padding-block: clamp(3rem, 6vw, 6rem);
}

.shop-breadcrumb {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: .67rem;
    gap: .55rem;
    margin-bottom: 2.2rem;
    text-transform: uppercase;
}

.shop-breadcrumb a {
    color: var(--red);
    text-decoration: none;
}

.shop-product-detail {
    align-items: start;
    display: grid;
    gap: clamp(2.5rem, 6vw, 6rem);
    grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
}

.shop-detail-visual {
    aspect-ratio: 1;
    min-height: 0;
}

.shop-detail-copy h1 {
    font-size: clamp(1.8rem, 2.4vw, 2.2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.shop-product-not-found h1 {
    font-size: clamp(2.8rem, 5vw, 5.3rem);
    overflow-wrap: anywhere;
}

.shop-detail-lead {
    color: var(--muted);
    font-size: 1.03rem;
    max-width: 720px;
}

.shop-product-facts {
    border-block: 1px solid var(--line);
    margin-block: 2rem;
    padding-block: .7rem;
}

.shop-product-facts > div {
    display: grid;
    font-size: .82rem;
    gap: 1rem;
    grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr);
    padding-block: .45rem;
}

.shop-product-facts dt {
    color: var(--muted);
}

.shop-product-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.shop-detail-purchase {
    align-items: start;
    background: var(--white);
    display: grid;
    gap: .45rem;
    padding: 1.5rem;
}

.shop-detail-purchase > strong:not(.shop-price-unavailable) {
    font-size: 2rem;
}

.shop-detail-purchase .shop-availability {
    margin-top: .8rem;
}

.shop-cart-note {
    color: var(--muted);
    font-size: .75rem;
    margin-top: 1rem;
}

.shop-description {
    border-top: 1px solid var(--line);
    margin-top: clamp(4rem, 8vw, 8rem);
    max-width: 900px;
    padding-top: 3rem;
}

.shop-description h2 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.shop-description > p:last-child {
    white-space: pre-line;
}

.shop-product-not-found {
    margin-top: 0;
}

@media (max-width: 1050px) {
    .shop-hero-inner { grid-template-columns: 1fr; }
    .shop-hero-inner .shop-search { max-width: 760px; }
    .shop-filter-bar { grid-template-columns: 1fr 1fr; }
    .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .shop-catalog-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .shop-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-category-link.level-2,
    .shop-category-link.level-3 { padding-left: .25rem; }
    .shop-product-detail { grid-template-columns: 1fr; }
    .shop-detail-visual { max-height: 520px; }
}

@media (max-width: 560px) {
    .shop-hero { min-height: auto; }
    .shop-search { flex-direction: column; }
    .shop-filter-bar { grid-template-columns: 1fr; }
    .shop-stock-filter { min-height: 36px; }
    .shop-product-grid,
    .shop-category-nav { grid-template-columns: 1fr; }
    .shop-result-meta { align-items: flex-start; flex-direction: column; gap: .3rem; justify-content: center; }
    .shop-pagination { gap: 1rem; }
    .shop-pagination span { text-align: center; }
    .shop-product-facts > div { grid-template-columns: 1fr; gap: 0; }
}
