:root {
    color-scheme: dark;
    --bg: #070a12;
    --surface: #101827;
    --surface-strong: #162235;
    --surface-soft: #111b2c;
    --text: #f4f7fb;
    --muted: #a8b3c7;
    --line: rgba(255, 255, 255, 0.14);
    --cyan: #54d6ff;
    --green: #74f0b2;
    --amber: #ffd166;
    --rose: #ff6b8a;
    --violet: #9a8cff;
    --danger: #ff8a8a;
    --success: #7ff0a7;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --radius: 8px;
    --max: 1180px;
    --header-h: 76px;
    --font-display: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
    font-family: var(--font-body);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(84, 214, 255, 0.07), transparent 420px),
        linear-gradient(135deg, #070a12 0%, #0b121f 44%, #0f151b 100%);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    pointer-events: none;
    background-image: url('../img/patterns/wallpaper-damask-trellis.svg');
    background-size: 160px 160px;
    background-repeat: repeat;
    opacity: 0.045;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 50;
    transform: translateY(-140%);
    border-radius: var(--radius);
    background: var(--amber);
    color: #101010;
    padding: 10px 14px;
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto auto auto;
    align-items: center;
    gap: 18px;
    padding: 14px max(18px, calc((100vw - var(--max)) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 18, 0.82);
    backdrop-filter: blur(18px);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 209, 102, 0.28) 25%, rgba(84, 214, 255, 0.28) 50%, rgba(255, 209, 102, 0.28) 75%, transparent 100%);
    pointer-events: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(84, 214, 255, 0.45);
    border-radius: var(--radius);
    background: #070a12;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy {
    display: grid;
    gap: 0;
}

.brand-name {
    font-weight: 900;
}

.brand-role {
    color: var(--muted);
    font-size: 0.82rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.main-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--muted);
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 750;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.nav-icon {
    display: none;
}

.nav-icon::before {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    background: currentColor;
    mask: var(--nav-icon) center / contain no-repeat;
    -webkit-mask: var(--nav-icon) center / contain no-repeat;
}

.nav-icon-home {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.6 12 3l9 7.6M5.5 9.6V21h13V9.6M9.5 21v-6h5v6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav-icon-capabilities {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M18.4 5.6l-2.8 2.8M8.4 15.6l-2.8 2.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav-icon-projects {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 6.5h6l2 2h9v10.5h-17zM3.5 8.5h17' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav-icon-contact {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 3 10 14M21 3 14 21l-4-7-7-4z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.locale-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.locale-switch button {
    min-width: 34px;
    min-height: 34px;
    border: 0;
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 850;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
}

.locale-flag {
    width: 18px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    display: block;
}

.locale-switch button[aria-pressed="true"] {
    background: rgba(84, 214, 255, 0.14);
    color: var(--text);
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    font-weight: 850;
    line-height: 1.2;
    cursor: pointer;
}

.button-primary {
    background: #2563eb;
    color: #06111b;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.18);
}

.button-secondary {
    border-color: rgba(84, 214, 255, 0.36);
    background: rgba(84, 214, 255, 0.08);
}

.button-quiet {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.button:hover {
    transform: translateY(-1px);
}

main:focus {
    outline: none;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
}

h1 {
    max-width: 980px;
    font-size: clamp(2.6rem, 5.4vw, 4.75rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3.25rem);
}

h3 {
    font-size: 1.22rem;
}

.page-hero > p,
.section-head > p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions,
.section-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.city-detail-list dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.page-hero,
.section,
.cta-band,
.bio-shell {
    padding: 84px max(18px, calc((100vw - var(--max)) / 2));
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(84, 214, 255, 0.07), rgba(255, 209, 102, 0.05));
}

.page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(560px, 65vw);
    height: 100%;
    background-image: url('../img/patterns/tympanum-caelum-pediment.svg');
    background-repeat: no-repeat;
    background-position: right 24px center;
    background-size: contain;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 15ch;
}

.section-tight {
    padding-top: 64px;
}

.section-muted {
    background: rgba(255, 255, 255, 0.035);
    border-block: 1px solid var(--line);
}

.section-head {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
    position: relative;
}

.section-head::after {
    content: "";
    display: block;
    width: min(320px, 65%);
    height: 18px;
    background-image: url('../img/patterns/frieze-bestiary-running.svg');
    background-repeat: repeat-x;
    background-size: auto 18px;
    opacity: 0.52;
    margin-top: 8px;
}

.section-head-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
    align-items: end;
}

.city-detail-list {
    display: grid;
    gap: 13px;
    margin: 18px 0 0;
}

.city-detail-list div {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
}

.city-detail-list dt,
.city-detail-list dd {
    margin: 0;
}

.city-detail-list dd {
    color: var(--text);
}

.city-semantic-card {
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.city-semantic-card::before {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.32;
    transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
    pointer-events: none;
    z-index: 0;
}

.city-semantic-btn:hover::before {
    opacity: 0.72;
    transform: scale(1.15);
    filter: drop-shadow(0 0 16px rgba(255, 209, 102, 0.45));
}

.city-semantic-card > * {
    position: relative;
    z-index: 1;
}

.city-semantic-card[data-entity="hourcount"]::before {
    background-image: url('../img/patterns/bracket-caelum.svg');
}

.city-semantic-card[data-entity="hourflix7"]::before {
    background-image: url('../img/patterns/flora-passionflower.svg');
}

.city-semantic-card[data-entity="music-community"]::before {
    background-image: url('../img/patterns/animal-hare-arcadia.svg');
}

.city-semantic-card[data-entity="davetech-core"]::before {
    background-image: url('../img/patterns/flora-madonna-lily.svg');
}

.city-semantic-card[data-entity="travel-operations"]::before {
    background-image: url('../img/patterns/animal-peacock-pratum.svg');
}

.city-semantic-card[data-entity="aerospace-portal"]::before {
    background-image: url('../img/patterns/flora-asagao-moon.svg');
}

.city-semantic-card[data-entity="professional-commerce"]::before {
    background-image: url('../img/patterns/animal-squirrel-arcadia.svg');
}

.city-semantic-card[data-entity="decision-maker"]::before {
    background-image: url('../img/patterns/flora-pomegranate.svg');
}

.city-semantic-card[data-entity="london-events-verified"]::before {
    background-image: url('../img/patterns/animal-peacock-pratum.svg');
}

.city-semantic-card[data-entity="trattore"]::before {
    background-image: url('../img/patterns/animal-kingfisher-arcadia.svg');
}

.city-semantic-card[data-entity="finance-engine"]::before {
    background-image: url('../img/patterns/flora-pomegranate.svg');
}

.city-semantic-card[data-entity="job-engine"]::before {
    background-image: url('../img/patterns/frieze-herbarium.svg');
}

.city-semantic-card[data-entity="legal-studio"]::before {
    background-image: url('../img/patterns/medallion-celestine.svg');
}

.city-semantic-card[data-entity="creative-engine"]::before {
    background-image: url('../img/patterns/flora-passionflower.svg');
}

.city-semantic-card-summary {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Whole card is a button */
.city-semantic-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.city-semantic-btn:hover {
    transform: translateY(-3px);
    border-color: var(--cyan);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(84, 214, 255, 0.2);
}

.city-semantic-btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.city-semantic-btn h3 {
    transition: color 180ms ease;
}

.city-semantic-btn:hover h3 {
    color: var(--cyan);
}

/* LEV gold text keeps its gradient on hover */
.city-semantic-btn[data-entity="london-events-verified"]:hover h3 {
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Inert cards — very subtly dimmed, no explicit label */
.city-semantic-card-inert {
    opacity: 0.55;
    cursor: default;
}

/* ===== Route button backgrounds =====
   Animated backgrounds (LEV particles, HourCount stars, HourFlix orbs)
   are mounted via src/route-buttons.ts + routeButtonBackgrounds.css.
   DaveTech uses a static image (below). */

/* DaveTech Portal City — abstract logo image */
.city-semantic-btn[data-entity="davetech-core"] {
    background-image: url('/assets/img/abstr-768x429.png');
    background-size: cover;
    background-position: center;
    border-color: rgba(84, 214, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.city-semantic-btn[data-entity="davetech-core"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 24, 0.3) 0%, rgba(10, 14, 24, 0.75) 100%);
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}

.city-semantic-btn[data-entity="davetech-core"] > * {
    position: relative;
    z-index: 1;
}

.city-semantic-card a {
    color: var(--cyan);
    font-weight: 850;
}

.signal-grid,
.card-grid,
.project-grid,
.footer-grid {
    display: grid;
    gap: 18px;
}

.signal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-grid article,
.card,
.project-card,
.resume-block,
.contact-panel,
.contact-aside {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(16, 24, 39, 0.78);
    box-shadow: var(--shadow);
}

.signal-grid article,
.card,
.resume-block,
.contact-panel,
.contact-aside {
    padding: 22px;
}

.card {
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    pointer-events: none;
    opacity: 0.42;
    background-image: url('../img/patterns/bracket-caelum.svg');
    background-repeat: no-repeat;
    background-size: contain;
    transform: scaleX(-1);
    transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
    z-index: 1;
}

.card:hover::after {
    opacity: 0.65;
    transform: scaleX(-1) scale(1.12);
    filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.45));
}

.contact-panel,
.contact-aside,
.resume-block {
    position: relative;
}

.contact-panel::after,
.contact-aside::after,
.resume-block::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    pointer-events: none;
    opacity: 0.45;
    background-image: url('../img/patterns/bracket-caelum.svg');
    background-repeat: no-repeat;
    background-size: contain;
    transform: scaleX(-1);
}

.signal-grid article {
    min-height: 180px;
}

.signal-grid p,
.card p,
.project-card p,
.resume-block li,
.contact-aside li,
.contact-aside p {
    color: var(--muted);
}

.card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.private-proof-card {
    position: relative;
    overflow: hidden;
}

.private-proof-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 209, 102, 0.82), rgba(84, 214, 255, 0.42), rgba(255, 107, 138, 0.48));
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.chip-list li {
    border: 1px solid rgba(84, 214, 255, 0.28);
    border-radius: 999px;
    background: rgba(84, 214, 255, 0.08);
    color: #dff7ff;
    padding: 5px 9px;
    font-size: 0.82rem;
    font-weight: 750;
}

.project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    pointer-events: none;
    opacity: 0.52;
    background-image: url('../img/patterns/bracket-caelum.svg');
    background-repeat: no-repeat;
    background-size: contain;
    transform: scaleX(-1);
    filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.4));
    z-index: 2;
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
    background: var(--surface-strong);
}

.project-card-body {
    padding: 22px;
}

.project-card a {
    color: var(--cyan);
    font-weight: 850;
}

/* Visit Project button */
.visit-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 9px 16px;
    border: 1px solid rgba(84, 214, 255, 0.35);
    border-radius: 8px;
    background: rgba(84, 214, 255, 0.08);
    color: var(--cyan) !important;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.visit-project-btn svg {
    transition: transform 180ms ease;
}

.visit-project-btn:hover {
    background: rgba(84, 214, 255, 0.16);
    border-color: rgba(84, 214, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(84, 214, 255, 0.15);
}

.visit-project-btn:hover svg {
    transform: translate(2px, -2px);
}

.visit-project-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.process-list {
    display: grid;
    gap: 12px;
}

.process-list article {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: start;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.process-list span {
    color: var(--amber);
    font-weight: 950;
}

.process-list p {
    margin: 0;
    color: var(--muted);
}

.cta-band {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(84, 214, 255, 0.12), rgba(116, 240, 178, 0.07)),
        var(--surface);
    border-top: 1px solid var(--line);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 24px;
    align-items: start;
}

.inquiry-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label,
.field legend,
.consent-line {
    color: var(--text);
    font-weight: 850;
}

.field label span {
    color: var(--muted);
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 12px 13px;
}

select option {
    color: #0c1220;
}

textarea {
    resize: vertical;
    min-height: 128px;
}

fieldset {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: 11px 13px;
}

.radio-line,
.consent-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.radio-line input,
.consent-line input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.field-error,
.form-alert {
    color: var(--danger);
    margin: 0;
    font-weight: 750;
}

.form-alert,
.form-success {
    border: 1px solid rgba(255, 138, 138, 0.45);
    border-radius: var(--radius);
    background: rgba(255, 138, 138, 0.08);
    padding: 12px 14px;
}

.form-success {
    border-color: rgba(127, 240, 167, 0.5);
    background: rgba(127, 240, 167, 0.1);
    color: var(--success);
    margin-bottom: 18px;
}

.field-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.resume-list {
    margin: 20px 0 0;
    padding-left: 20px;
}

.resume-list li + li {
    margin-top: 10px;
}

.bio-shell {
    min-height: calc(100svh - var(--header-h));
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.bio-shell::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(340px, 80vw);
    height: min(340px, 80vw);
    background-image: url('../img/patterns/medallion-celestine.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.045;
    pointer-events: none;
    z-index: 0;
}

.bio-shell > * {
    position: relative;
    z-index: 1;
}

.bio-shell h1 {
    max-width: none;
}

.bio-links {
    width: min(100%, 520px);
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.bio-link {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
    font-weight: 850;
}

.bio-link-primary {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: #06111b;
}

.site-footer {
    position: relative;
    padding: 24px max(18px, calc((100vw - var(--max)) / 2)) 38px;
    background: #070a12;
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.footer-frieze {
    width: 100%;
    height: 28px;
    margin: 0 0 24px;
    opacity: 0.45;
    background-image: url('../img/patterns/frieze-herbarium.svg');
    background-repeat: repeat-x;
    background-size: 112px 28px;
    filter: drop-shadow(0 0 6px rgba(116, 240, 178, 0.3));
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

@media (max-width: 768px) {
    .footer-frieze {
        height: 20px;
        background-size: 80px 20px;
        margin-bottom: 18px;
    }
}

.footer-watermark {
    position: absolute;
    bottom: 8px;
    right: max(16px, calc((100vw - var(--max)) / 2 + 12px));
    width: 240px;
    height: 240px;
    pointer-events: none;
    opacity: 0.22;
    background-image: url('../img/patterns/medallion-celestine.svg');
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 0 16px rgba(255, 209, 102, 0.25));
    z-index: 0;
}

.footer-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1fr) auto;
    align-items: start;
}

.footer-kicker,
.footer-small {
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 750;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-small {
    position: relative;
    z-index: 1;
    margin: 28px 0 0;
    font-size: 0.92rem;
}

.inquiry-dialog {
    width: min(940px, calc(100vw - 28px));
    max-height: min(880px, calc(100svh - 28px));
    overflow: auto;
    border: 1px solid rgba(84, 214, 255, 0.28);
    border-radius: var(--radius);
    background: #0a0f1a;
    color: var(--text);
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.62);
    padding: 0;
}

.inquiry-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.dialog-shell {
    position: relative;
    display: grid;
    grid-template-columns: 0.55fr 1fr;
    gap: 22px;
    padding: 24px;
}

.dialog-bracket {
    position: absolute;
    width: 38px;
    height: 38px;
    pointer-events: none;
    opacity: 0.58;
    background-image: url('../img/patterns/bracket-caelum.svg');
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 0 10px rgba(84, 214, 255, 0.4));
}

.dialog-bracket--top-left {
    top: 6px;
    left: 6px;
}

.dialog-bracket--bottom-right {
    bottom: 6px;
    right: 6px;
    transform: rotate(180deg);
}

.dialog-intro {
    padding-left: 12px;
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
}

.dialog-intro {
    display: grid;
    align-content: center;
    gap: 14px;
    min-height: 100%;
    border-right: 1px solid var(--line);
    padding-right: 22px;
}

.dialog-intro h2 {
    font-size: 2rem;
}

.dialog-object {
    width: 160px;
    height: 160px;
    position: relative;
    border: 1px solid rgba(84, 214, 255, 0.35);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(84, 214, 255, 0.18), rgba(255, 209, 102, 0.1)),
        rgba(255, 255, 255, 0.04);
}

.dialog-object span {
    position: absolute;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--cyan);
    transform: rotate(-28deg);
}

.dialog-object span:nth-child(1) {
    top: 38px;
}

.dialog-object span:nth-child(2) {
    top: 78px;
    background: var(--green);
}

.dialog-object span:nth-child(3) {
    top: 118px;
    background: var(--amber);
}

@media (max-width: 1080px) {
    .signal-grid,
    .card-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-grid,
    .contact-layout,
    .footer-grid,
    .cta-band,
    .dialog-shell,
    .section-head-split {
        grid-template-columns: 1fr;
    }

    .dialog-intro {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding-right: 0;
        padding-bottom: 18px;
    }
}

@media (max-width: 820px) {
    :root {
        --header-h: 58px;
    }

    .site-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        min-height: var(--header-h);
        padding: 8px 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-copy {
        display: grid;
    }

    .brand-name {
        font-size: 0.95rem;
        line-height: 1;
    }

    .brand-role {
        display: none;
    }

    .main-nav {
        justify-content: flex-end;
        overflow-x: auto;
        gap: 4px;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        flex: 0 0 auto;
    }

    .nav-icon {
        display: block;
    }

    .nav-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .button-header {
        display: none;
    }

    .locale-switch {
        padding: 2px;
    }

    .locale-switch button {
        min-width: 28px;
        min-height: 34px;
        font-size: 0.68rem;
        padding: 0 6px;
        gap: 4px;
    }

    .locale-flag {
        width: 15px;
        height: 10px;
    }

    .signal-grid,
    .card-grid-three,
    .card-grid-two,
    .form-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.15rem;
        line-height: 1.06;
    }
}

@media (max-width: 700px) {
    :root {
        --header-h: 56px;
    }

    .site-header {
        padding-inline: 8px;
    }

    .main-nav {
        gap: 3px;
    }

    .main-nav a {
        width: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .hero-actions {
        gap: 8px;
    }

    .hero-actions .button {
        flex: 1 1 0;
        padding-inline: 10px;
        font-size: 0.92rem;
    }

    .page-hero,
    .section,
    .cta-band,
    .bio-shell {
        padding-block: 58px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .button:hover {
        transform: none;
    }
}
