:root {
    --bg: #f7f1e8;
    --bg-soft: #eee5d8;
    --panel: rgba(252, 248, 242, 0.82);
    --panel-strong: rgba(252, 248, 242, 0.95);
    --panel-edge: rgba(107, 84, 60, 0.12);
    --line: rgba(107, 84, 60, 0.1);
    --line-strong: rgba(107, 84, 60, 0.2);
    --text: #221a14;
    --muted: #776553;
    --gold: #8d5a3c;
    --teal: #7a7368;
    --coral: #b98264;
    --ice: #3a2f25;
    --shadow: 0 16px 36px rgba(116, 82, 48, 0.08);
    --content-width: min(1280px, calc(100vw - 46px));
    --font-ui: "Syne", sans-serif;
    --font-display: "Bodoni Moda", serif;
    --bevel: 16px;
    --bevel-lg: 28px;
    --pointer-x: 50vw;
    --pointer-y: 50vh;
    --theme-meta: #f7f1e8;
    --canvas-line-rgb: 122, 115, 104;
    --canvas-point-rgb: 141, 90, 60;
    --theme-toggle-track: rgba(255, 251, 246, 0.9);
    --theme-toggle-track-border: rgba(107, 84, 60, 0.14);
    --theme-toggle-thumb: linear-gradient(180deg, rgba(184, 125, 91, 0.98), rgba(141, 90, 60, 0.96));
    --theme-toggle-thumb-shadow: 0 12px 22px rgba(116, 82, 48, 0.18);
    --theme-toggle-label: rgba(119, 101, 83, 0.72);
    --theme-toggle-label-active: #221a14;
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #0d1317;
    --bg-soft: #171f24;
    --panel: rgba(22, 28, 33, 0.82);
    --panel-strong: rgba(20, 26, 31, 0.94);
    --panel-edge: rgba(243, 234, 223, 0.12);
    --line: rgba(243, 234, 223, 0.1);
    --line-strong: rgba(243, 234, 223, 0.2);
    --text: #f3eadf;
    --muted: #bcae9d;
    --gold: #e5a06a;
    --teal: #8ca393;
    --coral: #d88c68;
    --ice: #ddd0c0;
    --shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
    --theme-meta: #0d1317;
    --canvas-line-rgb: 140, 163, 147;
    --canvas-point-rgb: 229, 160, 106;
    --theme-toggle-track: rgba(24, 31, 36, 0.92);
    --theme-toggle-track-border: rgba(243, 234, 223, 0.14);
    --theme-toggle-thumb: linear-gradient(180deg, rgba(140, 163, 147, 0.95), rgba(72, 92, 83, 0.98));
    --theme-toggle-thumb-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
    --theme-toggle-label: rgba(188, 174, 157, 0.72);
    --theme-toggle-label-active: #f3eadf;
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
}

.section-shell[id] {
    scroll-margin-top: 104px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    color: var(--text);
    background-color: var(--bg);
    background:
        radial-gradient(circle at 14% 10%, rgba(141, 90, 60, 0.06), transparent 30%),
        radial-gradient(circle at 84% 2%, rgba(122, 115, 104, 0.05), transparent 28%),
        linear-gradient(180deg, #fbf7f1 0%, #f6eee4 52%, #f1e7da 100%);
    overflow-x: hidden;
    transition: background 280ms ease, color 240ms ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(141, 90, 60, 0.035), transparent 220px);
    pointer-events: none;
    z-index: 1;
    transition: background 280ms ease;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    background:
        linear-gradient(125deg, transparent 0 48%, rgba(107, 84, 60, 0.018) 48%, rgba(107, 84, 60, 0.018) 50%, transparent 50%),
        linear-gradient(125deg, transparent 0 72%, rgba(141, 90, 60, 0.03) 72%, rgba(141, 90, 60, 0.03) 73%, transparent 73%);
    mask-image: radial-gradient(circle at center, black 38%, transparent 92%);
    transition: background 280ms ease, opacity 280ms ease;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 16% 12%, rgba(229, 160, 106, 0.13), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(140, 163, 147, 0.12), transparent 30%),
        linear-gradient(180deg, #091015 0%, #0d1317 46%, #0e1519 100%);
}

html[data-theme="dark"] body::before {
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(229, 160, 106, 0.08), transparent 240px);
}

html[data-theme="dark"] body::after {
    opacity: 0.26;
    background:
        linear-gradient(125deg, transparent 0 48%, rgba(243, 234, 223, 0.03) 48%, rgba(243, 234, 223, 0.03) 50%, transparent 50%),
        linear-gradient(125deg, transparent 0 72%, rgba(229, 160, 106, 0.05) 72%, rgba(229, 160, 106, 0.05) 73%, transparent 73%);
}

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

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

main,
.topbar,
.site-footer {
    position: relative;
    z-index: 2;
}

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(107, 84, 60, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 84, 60, 0.012) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black 48%, transparent 96%);
    transition: opacity 280ms ease, background-image 280ms ease;
}

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(86px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.16;
    transition: background 280ms ease, opacity 280ms ease;
}

.ambient-one {
    top: 6vh;
    left: -10vw;
    width: 32vw;
    height: 32vw;
    background: rgba(122, 115, 104, 0.08);
}

.ambient-two {
    right: -8vw;
    bottom: 8vh;
    width: 34vw;
    height: 34vw;
    background: rgba(141, 90, 60, 0.08);
}

html[data-theme="dark"] .page-noise {
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(243, 234, 223, 0.014) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 234, 223, 0.014) 1px, transparent 1px);
}

html[data-theme="dark"] .ambient-one {
    background: rgba(140, 163, 147, 0.14);
}

html[data-theme="dark"] .ambient-two {
    background: rgba(229, 160, 106, 0.14);
}

.signal-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
    transition: opacity 280ms ease;
}

html[data-theme="dark"] .signal-canvas {
    opacity: 0.16;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(251, 247, 241, 0.92), rgba(251, 247, 241, 0.82));
    border-bottom: 1px solid var(--line);
    transition: background 240ms ease, border-color 240ms ease;
}

.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(141, 90, 60, 0.14), rgba(122, 115, 104, 0.12), transparent);
    transition: background 240ms ease;
}

.topbar__inner {
    width: var(--content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 18px 0 16px;
}

.topbar__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.topbar__tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand__mark {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(141, 90, 60, 0.1), rgba(122, 115, 104, 0.04)),
        rgba(253, 249, 243, 0.98);
    border: 1px solid rgba(107, 84, 60, 0.1);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    box-shadow: 0 8px 18px rgba(116, 82, 48, 0.06);
    transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

html[data-theme="dark"] .topbar {
    background: linear-gradient(180deg, rgba(10, 15, 19, 0.92), rgba(10, 15, 19, 0.76));
}

html[data-theme="dark"] .topbar::after {
    background: linear-gradient(90deg, transparent, rgba(229, 160, 106, 0.24), rgba(140, 163, 147, 0.2), transparent);
}

html[data-theme="dark"] .brand__mark {
    background:
        linear-gradient(135deg, rgba(229, 160, 106, 0.18), rgba(140, 163, 147, 0.08)),
        rgba(18, 24, 29, 0.96);
    border-color: rgba(243, 234, 223, 0.1);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.brand__text {
    display: grid;
    gap: 3px;
}

.brand__text strong {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand__text small {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    max-width: 28ch;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topnav a {
    position: relative;
    display: inline-block;
    padding: 0 0 9px;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    line-height: 1;
    transition: color 180ms ease;
}

.topnav a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
    color: var(--text);
}

.topnav a:hover::before,
.topnav a:focus-visible::before {
    transform: scaleX(1);
}

.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.theme-toggle:focus-visible {
    outline: none;
}

.theme-toggle__track {
    position: relative;
    width: 48px;
    min-height: 48px;
    display: inline-grid;
    align-items: center;
    justify-items: center;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 8px 18px rgba(116, 82, 48, 0.05);
    transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.theme-toggle:hover .theme-toggle__track,
.theme-toggle:focus-visible .theme-toggle__track {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(var(--canvas-line-rgb), 0.1);
    box-shadow: 0 10px 22px rgba(116, 82, 48, 0.1);
}

.theme-toggle__thumb {
    position: relative;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--theme-toggle-thumb);
    box-shadow: var(--theme-toggle-thumb-shadow);
    flex: 0 0 auto;
    transition: background 220ms ease, box-shadow 220ms ease;
}

.theme-toggle__thumb::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 58%);
    pointer-events: none;
}

.theme-toggle__sun,
.theme-toggle__moon {
    position: absolute;
    transition: opacity 220ms ease, transform 220ms ease;
}

.theme-toggle__sun {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 247, 235, 0.96);
    box-shadow:
        0 0 0 4px rgba(255, 247, 235, 0.14),
        0 0 18px rgba(255, 247, 235, 0.22);
    opacity: 1;
    transform: scale(1);
}

.theme-toggle__moon {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(244, 238, 230, 0.94);
    box-shadow: -4px -2px 0 0 rgba(16, 25, 31, 0.42) inset;
    opacity: 0;
    transform: scale(0.72);
}

html[data-theme="dark"] .theme-toggle__sun {
    opacity: 0;
    transform: scale(0.72);
}

html[data-theme="dark"] .theme-toggle__moon {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle:hover .theme-toggle__thumb,
.theme-toggle:focus-visible .theme-toggle__thumb {
    box-shadow:
        var(--theme-toggle-thumb-shadow),
        0 0 0 6px rgba(141, 90, 60, 0.08);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 8px 18px rgba(116, 82, 48, 0.05);
}

.language-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 52px;
    gap: 6px;
    padding: 0 14px;
    color: var(--muted);
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.language-pill:hover,
.language-pill:focus-visible {
    color: var(--text);
    background: rgba(var(--canvas-line-rgb), 0.06);
}

.language-pill.is-active {
    color: var(--text);
    border-color: rgba(var(--canvas-line-rgb), 0.08);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 6px 14px rgba(116, 82, 48, 0.07);
}

.language-pill__short {
    display: inline;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.language-pill__name {
    display: none;
}

.section-shell {
    width: var(--content-width);
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--gold);
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 860px;
    margin-bottom: 32px;
    padding-left: 18px;
    border-left: 1px solid var(--line-strong);
}

.section-heading h2,
h1,
h2,
h3 {
    margin: 0;
}

h1,
.section-heading h2,
.closing-card h2 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(3.6rem, 6.9vw, 6.4rem);
    max-width: 11.6ch;
}

.section-heading h2,
.closing-card h2 {
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    max-width: 11ch;
}

h3 {
    font-family: var(--font-ui);
    font-size: clamp(1.18rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
}

p {
    margin: 0;
    color: var(--ice);
    font-size: 1rem;
    line-height: 1.82;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border: 1px solid rgba(114, 88, 61, 0.12);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-transform: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 12% 50%, rgba(141, 90, 60, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(141, 90, 60, 0.08), transparent 58%);
    pointer-events: none;
}

.button::after {
    content: none;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-3px);
}

.button--primary {
    border-color: rgba(141, 90, 60, 0.22);
    background: linear-gradient(180deg, #966648, #7b4d37);
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 234, 0.18),
        0 12px 24px rgba(116, 82, 48, 0.14);
    color: #fffaf4;
}

.button--ghost {
    border-color: rgba(141, 90, 60, 0.14);
    background: linear-gradient(180deg, rgba(250, 243, 235, 0.74), rgba(241, 232, 221, 0.58));
    box-shadow: 0 10px 22px rgba(116, 82, 48, 0.05);
}

.button--primary::before {
    background:
        radial-gradient(circle at 14% 50%, rgba(255, 235, 215, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 227, 196, 0.12), transparent 58%);
}

.button--ghost::before {
    background:
        radial-gradient(circle at 12% 50%, rgba(141, 90, 60, 0.09), transparent 30%),
        linear-gradient(135deg, rgba(141, 90, 60, 0.06), transparent 56%);
}

.clean-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.clean-list li {
    padding-left: 18px;
    position: relative;
    color: var(--muted);
}

.clean-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--gold), var(--teal));
    transform: rotate(45deg);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    border: 1px solid var(--line);
    background: var(--panel);
    transition: background 240ms ease, border-color 240ms ease, color 240ms ease;
}

.tag--soft {
    background: rgba(var(--canvas-line-rgb), 0.12);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-delay {
    transition-delay: 140ms;
}

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

.site-footer {
    padding: 42px 0 54px;
}

.site-footer__inner {
    width: var(--content-width);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    transition: border-color 240ms ease, color 240ms ease;
}

.site-footer__lead {
    display: grid;
    gap: 8px;
}

.site-footer__inner p {
    color: var(--muted);
}

.site-footer__inner a {
    color: inherit;
    text-decoration-color: rgba(var(--canvas-line-rgb), 0.38);
    text-underline-offset: 0.18em;
}

.site-footer__inner a:hover,
.site-footer__inner a:focus-visible {
    color: var(--text);
}

html[data-theme="dark"] .button--primary {
    border-color: rgba(229, 160, 106, 0.26);
    background: linear-gradient(180deg, #9b6949, #724632);
    box-shadow:
        inset 0 1px 0 rgba(255, 233, 214, 0.12),
        0 14px 30px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .button--ghost {
    border-color: rgba(229, 160, 106, 0.12);
    background: linear-gradient(180deg, rgba(22, 28, 33, 0.92), rgba(15, 21, 26, 0.96));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .button::before {
    background:
        radial-gradient(circle at 12% 50%, rgba(229, 160, 106, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(229, 160, 106, 0.1), transparent 58%);
}

html[data-theme="dark"] .button--primary::before {
    background:
        radial-gradient(circle at 14% 50%, rgba(255, 228, 201, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 214, 179, 0.12), transparent 58%);
}

html[data-theme="dark"] .button--ghost::before {
    background:
        radial-gradient(circle at 12% 50%, rgba(229, 160, 106, 0.09), transparent 30%),
        linear-gradient(135deg, rgba(229, 160, 106, 0.06), transparent 56%);
}

html[data-theme="dark"] .tag {
    border-color: rgba(243, 234, 223, 0.1);
    background: rgba(16, 22, 27, 0.72);
}

html[data-theme="dark"] .tag--soft {
    background: rgba(140, 163, 147, 0.12);
}

html[data-theme="dark"] .theme-toggle:hover .theme-toggle__thumb,
html[data-theme="dark"] .theme-toggle:focus-visible .theme-toggle__thumb {
    box-shadow:
        var(--theme-toggle-thumb-shadow),
        0 0 0 6px rgba(140, 163, 147, 0.12);
}

html[data-theme="dark"] .language-switcher {
    background: rgba(18, 24, 29, 0.94);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .language-pill:hover,
html[data-theme="dark"] .language-pill:focus-visible {
    background: rgba(243, 234, 223, 0.06);
}

html[data-theme="dark"] .language-pill.is-active {
    background: rgba(243, 234, 223, 0.09);
    border-color: rgba(243, 234, 223, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .theme-toggle__track {
    background: rgba(18, 24, 29, 0.94);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .theme-toggle:hover .theme-toggle__track,
html[data-theme="dark"] .theme-toggle:focus-visible .theme-toggle__track {
    background: rgba(24, 31, 36, 0.98);
}

@media (max-width: 1080px) {
    .topbar__inner,
    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar__controls {
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        padding-left: 0;
        padding-top: 10px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .topnav {
        justify-content: flex-start;
    }

    .topbar__tools {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 720px) {
    :root {
        --content-width: min(100vw - 24px, 1280px);
    }

    h1 {
        font-size: clamp(3rem, 15vw, 4.9rem);
        max-width: 9.4ch;
    }

    .topbar__inner {
        padding: 16px 0 14px;
    }

    .topbar__controls {
        gap: 14px;
    }

    .topbar__tools {
        gap: 8px;
    }

    .topnav {
        gap: 14px 18px;
    }

    .topnav a {
        padding: 0 0 6px;
        font-size: 0.84rem;
    }

    .brand__text small {
        max-width: 28ch;
    }

    .language-switcher {
        padding: 4px;
    }

    .theme-toggle__track {
        width: 44px;
        min-height: 44px;
    }

    .language-pill {
        min-width: 46px;
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.76rem;
    }

    .button {
        width: 100%;
    }

    .site-footer__inner {
        font-size: 0.84rem;
    }
}

@media (max-width: 560px) {
    .brand {
        gap: 12px;
    }

    .topbar__tools {
        width: 100%;
        justify-content: flex-start;
    }

    .language-pill {
        min-width: 42px;
        padding: 0 10px;
    }
}
