:root {
  --color-bg: #F8F7FC;
  --color-panel: #FFFFFF;
  --color-panel-translucent: rgba(255, 255, 255, 0.86);
  --color-panel-soft: #F0ECFA;
  --color-panel-pale: #F5F2FC;
  --color-border: #E4DFF0;
  --color-accent: #7042E8;
  --color-accent-dark: #4F2CB5;
  --color-accent-mid: #8C6AE9;
  --color-accent-soft: #CFC1F3;
  --color-accent-pale: #E9E2FA;
  --color-accent-faint: #F2EDFC;
  --color-text: #25212E;
  --color-text-muted: #6E6879;
  --color-text-soft: #918A9D;
  --color-success: #31B98A;
  --color-success-dark: #238565;
  --color-success-soft: #DDF6ED;
  --color-warn: #C9852E;
  --color-warn-soft: #F9EBD7;
  --color-error: #C84E65;
  --color-error-soft: #F9E2E7;
  --color-white: #FFFFFF;
  --color-grid: rgba(112, 66, 232, 0.07);
  --color-fiber: rgba(79, 44, 181, 0.055);
  --color-shadow: rgba(62, 43, 106, 0.12);
  --color-shadow-soft: rgba(62, 43, 106, 0.07);
  --color-shadow-button: rgba(79, 44, 181, 0.22);
  --color-overlay: rgba(37, 33, 46, 0.24);
  --color-tunnel-floor: #E6DDF8;
  --color-city-near: #BCA9E8;
  --color-city-far: #D7CCF1;
  --font-display: Inter, "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  --font-body: Inter, "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --shadow-header: 0 1px 0 var(--color-border);
  --shadow-paper: 0 8px 24px var(--color-shadow-soft);
  --shadow-stage: 0 24px 62px var(--color-shadow);
  --shadow-button: 0 12px 25px var(--color-shadow-button);
  --content-width: 1280px;
  --reading-width: 768px;
  --header-height: 76px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(72px, 9vw, 120px);
  --toc-top: calc(var(--header-height) + 12px);
  --toc-clearance: calc(var(--header-height) + 84px);
  --transition-fast: 160ms ease;
  --transition-slow: 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  min-width: 0;
  scroll-behavior: smooth;
  background: var(--color-bg);
}

html.nav-open {
  overflow: hidden;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 16%, var(--color-accent-faint) 0, transparent 26%),
    radial-gradient(circle at 89% 34%, var(--color-success-soft) 0, transparent 19%),
    var(--color-bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
  min-width: 0;
}

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

img {
  height: auto;
}

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

button,
input,
select,
textarea,
summary {
  font: inherit;
}

button,
summary {
  color: inherit;
}

button {
  border: 0;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
[role="tab"]:focus-visible {
  outline: 3px solid var(--color-accent-soft);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
blockquote,
pre,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  font-family: var(--font-display);
  text-wrap: balance;
}

h1,
.hero-title {
  margin-bottom: 24px;
  font-size: clamp(52px, 5.2vw, 72px);
  line-height: 1.1;
  font-weight: 830;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.18;
  font-weight: 790;
  letter-spacing: -0.018em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.3;
  font-weight: 750;
}

h4 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 720;
}

p {
  margin-bottom: 1.15em;
}

strong {
  font-weight: 740;
}

small {
  color: var(--color-text-muted);
}

code,
kbd,
samp {
  font-family: var(--font-mono);
}

:not(pre) > code {
  max-width: 100%;
  padding: 0.14em 0.38em;
  overflow-wrap: anywhere;
  border-radius: var(--radius-xs);
  color: var(--color-accent-dark);
  background: var(--color-panel-soft);
  font-size: 0.9em;
}

pre {
  max-width: 100%;
  padding: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: var(--color-panel-soft);
  box-shadow: inset 0 0 0 1px var(--color-border);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

pre code {
  padding: 0;
  overflow-wrap: normal;
  background: transparent;
}

table {
  border-collapse: collapse;
}

hr {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: var(--color-border);
}

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.reading-wrap {
  width: 100%;
  max-width: calc(var(--reading-width) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  overflow-x: clip;
}

.section-compact {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 16px;
}

.lead {
  color: var(--color-text-muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.72;
}

.kicker,
.eyebrow {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 5px 14px 5px 10px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  color: var(--color-accent-dark);
  background: var(--color-panel);
  box-shadow: var(--shadow-paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 660;
  letter-spacing: 0.02em;
}

.status-dot,
.eyebrow-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-success-soft);
}

.title-accent,
.text-accent {
  color: var(--color-accent);
}

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

.mono {
  font-family: var(--font-mono);
}

.panel,
.paper-card {
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-paper);
}

.panel-soft {
  border-radius: var(--radius-lg);
  background: var(--color-panel-soft);
}

.panel-pad {
  padding: clamp(22px, 3vw, 36px);
}

.badge,
.tag,
.fact-chip {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 11px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  color: var(--color-accent-dark);
  background: var(--color-accent-faint);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 680;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.badge-success {
  color: var(--color-success-dark);
  background: var(--color-success-soft);
}

.badge-warn {
  color: var(--color-warn);
  background: var(--color-warn-soft);
}

.badge-error {
  color: var(--color-error);
  background: var(--color-error-soft);
}

.button,
.cta {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  font-weight: 730;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast);
}

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

.button svg,
.cta svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary,
.cta-primary {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  box-shadow: var(--shadow-button);
}

.button-primary:hover,
.cta-primary:hover {
  box-shadow: var(--shadow-stage);
}

.button-secondary,
.cta-secondary {
  color: var(--color-accent-dark);
  background: var(--color-panel);
  box-shadow: var(--shadow-paper);
}

.button-soft {
  color: var(--color-accent-dark);
  background: var(--color-panel-soft);
}

.button-quiet {
  color: var(--color-text-muted);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.button[aria-disabled="true"],
.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  background: var(--color-panel-translucent);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: 100%;
  max-width: calc(var(--content-width) + (var(--gutter) * 2));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(210px, 270px) 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-paper);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.brand-en {
  font-size: 18px;
  font-weight: 790;
  letter-spacing: -0.02em;
}

.brand-local {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 540;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-link,
.more-summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 580;
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.more-summary:hover {
  color: var(--color-accent-dark);
  background: var(--color-panel-soft);
}

.nav-link[aria-current="page"],
.nav-more.is-active > .more-summary {
  color: var(--color-accent-dark);
  background: var(--color-panel-soft);
  font-weight: 700;
}

.nav-more {
  position: relative;
}

.more-summary {
  gap: 6px;
  cursor: pointer;
  list-style: none;
}

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

.more-summary svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.more-menu,
.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-stage);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast),
    visibility var(--transition-fast);
}

.more-menu {
  left: 50%;
  width: 174px;
  transform: translate(-50%, -5px);
}

.nav-more:hover .more-menu,
.nav-more[open] .more-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.more-menu a,
.language-menu a {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 570;
}

.more-menu a:hover,
.language-menu a:hover,
.language-menu a[aria-current="true"] {
  color: var(--color-accent-dark);
  background: var(--color-panel-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switcher {
  position: relative;
}

.language-button,
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--color-text-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.language-button:hover,
.menu-toggle:hover {
  color: var(--color-accent-dark);
  background: var(--color-panel-soft);
}

.language-menu {
  right: 0;
  width: 170px;
}

.language-switcher.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.login-button {
  min-width: 76px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-button);
  font-size: 14px;
  line-height: 1;
  font-weight: 710;
  white-space: nowrap;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.login-button:hover {
  transform: translateY(-1px);
  background: var(--color-accent);
}

.menu-toggle {
  display: none;
  padding: 0;
}

.menu-toggle-lines {
  width: 20px;
  height: 14px;
  display: grid;
  align-content: space-between;
}

.menu-toggle-lines span {
  width: 100%;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.nav-veil {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(900px - var(--header-height));
  overflow-x: clip;
  overflow-y: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.78;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 28%, currentColor 72%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.58;
  background:
    radial-gradient(circle at 20% 24%, var(--color-fiber) 0 1px, transparent 1.4px),
    radial-gradient(circle at 71% 15%, var(--color-fiber) 0 1px, transparent 1.5px);
  background-size: 17px 17px, 23px 23px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  padding-top: 23px;
  padding-bottom: 24px;
  text-align: center;
}

.hero-inner h1 {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-actions {
  justify-content: center;
  margin-top: 14px;
}

.hero-description {
  max-width: 790px;
  margin: 11px auto 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.62;
}

.hero-description strong {
  color: var(--color-accent-dark);
  font-weight: 730;
  background: linear-gradient(to top, var(--color-accent-soft) 39%, transparent 39%);
}

.trust-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.trust-item {
  max-width: 100%;
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  background: var(--color-panel-translucent);
  box-shadow: var(--shadow-paper);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: var(--color-success);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prose {
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.82;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--color-text);
}

.prose h2 {
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.7em;
}

.prose a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose li + li {
  margin-top: 0.55em;
}

.prose img {
  margin: 28px auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-paper);
}

.prose blockquote {
  margin: 28px 0;
}

.reveal {
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal.pending {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.shown {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  position: relative;
  overflow-x: clip;
  padding-top: 72px;
  padding-bottom: 28px;
  color: var(--color-text-muted);
  background: var(--color-panel-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(150px, 0.75fr));
  gap: clamp(32px, 5vw, 72px);
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.75;
}

.footer-column h2 {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  width: max-content;
  max-width: 100%;
  padding-block: 3px;
  overflow-wrap: anywhere;
  font-size: 14px;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  margin-top: 56px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.tilt,
.tilt-card {
  transform: rotate(-0.35deg);
}

body:has(.toc-tabs) section[id] {
  scroll-margin-top: var(--toc-clearance);
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .desktop-nav {
    gap: 0;
  }

  .nav-link,
  .more-summary {
    padding-inline: 10px;
  }

  .brand-local {
    display: none;
  }

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

  .footer-column:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .language-switcher {
    display: none;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    position: fixed;
    z-index: 60;
    top: var(--header-height);
    right: var(--gutter);
    left: var(--gutter);
    max-height: calc(100dvh - var(--header-height) - 12px);
    padding: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--color-panel);
    box-shadow: var(--shadow-stage);
  }

  .mobile-nav.is-open {
    display: block;
  }

  .mobile-nav a {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 620;
  }

  .mobile-nav a:hover,
  .mobile-nav a[aria-current="page"],
  .mobile-nav a[aria-current="true"] {
    color: var(--color-accent-dark);
    background: var(--color-panel-soft);
  }

  .mobile-nav-title {
    display: block;
    padding: 15px 14px 6px;
    color: var(--color-text-soft);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .nav-veil {
    position: fixed;
    z-index: 40;
    inset: var(--header-height) 0 0;
    background: var(--color-overlay);
  }

  .nav-veil.is-open {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 48px;
  }
}

@media (max-width: 768px) {
  h1,
  .hero-title {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.14;
    letter-spacing: -0.015em;
  }

  h2 {
    font-size: clamp(29px, 8vw, 40px);
  }

  .lead {
    font-size: 17px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
  }

  :root {
    --gutter: 16px;
  }

  body {
    font-size: 15px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-en {
    font-size: 17px;
  }

  .login-button {
    min-width: 64px;
    min-height: 40px;
    padding-inline: 14px;
  }

  .mobile-nav {
    right: 0;
    left: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .hero-inner {
    padding-top: 28px;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-actions .cta,
  .hero-actions .button {
    min-width: 0;
    flex: 1 1 135px;
  }

  .hero-description {
    font-size: 14px;
  }

  .trust-row {
    align-items: stretch;
  }

  .trust-item {
    white-space: normal;
  }

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

  .footer-brand,
  .footer-column:last-child {
    grid-column: auto;
  }

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

  .tilt,
  .tilt-card,
  [class*="tilt"] {
    transform: none;
  }

  .prose {
    font-size: 16px;
  }

  .prose table,
  .prose > table {
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .brand-copy {
    display: none;
  }

  .header-tools {
    gap: 4px;
  }

  .login-button {
    min-width: 62px;
    padding-inline: 12px;
  }
}

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

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

  .reveal,
  .reveal.pending,
  .reveal.shown {
    opacity: 1;
    transform: none;
  }
}