:root {
  --bg: #f3f8fc;
  --bg-elevated: #ffffff;
  --bg-soft: #eaf4fb;
  --ink: #0d2336;
  --ink-muted: #466176;
  --ink-subtle: #6d879b;
  --accent: #0277bd;
  --accent-hover: #015a92;
  --accent-bright: #0ea5e9;
  --accent-glow: #38bdf8;
  --accent-soft: #e0f2fe;
  --ocean-deep: #071e32;
  --border: rgba(14, 90, 122, 0.12);
  --border-strong: rgba(2, 119, 189, 0.28);
  --shadow-sm: 0 4px 16px rgba(12, 74, 110, 0.05);
  --shadow-md: 0 18px 42px rgba(10, 62, 96, 0.09);
  --shadow-lg: 0 26px 60px rgba(7, 30, 50, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  /* English editorial serif; Chinese uses crisp modern sans on Windows/macOS */
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html.is-zh {
  --font-display: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 68% 42% at 10% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(ellipse 52% 38% at 92% 12%, rgba(2, 119, 189, 0.09), transparent 58%),
    linear-gradient(180deg, #f0f7fc 0%, #f7fbfe 46%, #eef6fb 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
}

/* Language toggle visibility */
.lang-zh {
  display: none;
}

html.is-zh .lang-en {
  display: none;
}

html.is-zh .lang-zh {
  display: revert;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 248, 252, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.88;
}

.brand-wordmark {
  height: 34px;
  width: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  margin: 0 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  font-weight: 500;
  white-space: nowrap;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--ink-muted);
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-glow), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
}

/* Hero Section */
.hero {
  padding: 52px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.98fr;
  gap: 28px;
  align-items: stretch;
}

.hero-grid > *,
.pillars-grid > *,
.works-stack > *,
.about-grid > * {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 8px 16px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(14, 165, 233, 0.24);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e0f7ff, #0ea5e9);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.55);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
}

html.is-zh .hero h1 {
  font-size: clamp(1.75rem, 2.75vw, 2.38rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.32;
}

html.is-zh .zh-hero-single {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 560px) {
  html.is-zh .zh-hero-single {
    white-space: normal;
  }

  html.is-zh .zh-hero-single .accent-gradient {
    display: block;
    margin-top: 2px;
  }
}

.hero h1 .accent-gradient {
  background: linear-gradient(120deg, #0369a1 0%, #0ea5e9 65%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 1.04rem;
  color: var(--ink-muted);
  max-width: 550px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0277bd 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(2, 119, 189, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(2, 119, 189, 0.36);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent-bright);
  box-shadow: var(--shadow-sm);
}

/* Interactive WebGL Ocean Caustics Canvas */
.hero-stage {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(148deg, #0b4c73 0%, #072c48 56%, #051c30 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(186, 230, 253, 0.32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
}

.hero-stage:focus,
.hero-stage:active {
  outline: none;
}

.ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: rgba(240, 249, 255, 0.88);
  letter-spacing: 0.08em;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(6, 28, 46, 0.32);
  border: 1px solid rgba(224, 242, 254, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stage-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  text-align: center;
  pointer-events: none;
}

.stage-logo {
  width: min(256px, 76%);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(4, 24, 42, 0.42));
  animation: gentleFloat 6.8s ease-in-out infinite;
}

.stage-caption {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(240, 249, 255, 0.92);
  letter-spacing: 0.14em;
  text-shadow: 0 2px 10px rgba(4, 24, 42, 0.45);
}

.stage-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(224, 242, 254, 0.84);
  text-shadow: 0 1px 8px rgba(4, 24, 42, 0.5);
  pointer-events: none;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Studio Rhythm Strip */
.studio-strip {
  margin-top: 26px;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}

.strip-pearl {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e0f7ff, #0284c7);
}

/* Sections */
.section {
  padding: 44px 0 46px;
}

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

.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.52rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.26;
  color: var(--ink);
}

/* Craft Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.pillar-card {
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(2, 119, 189, 0.36);
  letter-spacing: 0.08em;
}

.pillar-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: var(--ink);
}

.pillar-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

/* Works Showcase with Clean Visual Art Headers */
.works-stack {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.work-art {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--ocean-deep);
}

.work-art--upcoming {
  background: #e1f1fb;
  border-bottom: 1px solid var(--border);
}

.work-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-art-img {
  transform: scale(1.035);
}

.art-hud {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(6, 26, 44, 0.58);
  border: 1px solid rgba(186, 230, 253, 0.28);
  color: #e0f2fe;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.art-hud--light {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(2, 132, 199, 0.18);
  color: #0369a1;
}

.work-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 28px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.badge-warm {
  background: #edf7fe;
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.work-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.32;
}

.work-code {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.work-desc {
  margin: 0 0 18px;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-list li {
  font-size: 0.77rem;
  color: var(--ink-muted);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 4px 10px;
}

.work-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.upcoming-note {
  font-size: 0.82rem;
  color: var(--ink-subtle);
}

/* About & Contact Hub */
.about-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.about-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.story-quote {
  margin: 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e7f4fc 100%);
  border-left: 3.5px solid var(--accent-bright);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.about-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.meta-chip {
  font-size: 0.78rem;
  color: var(--ink-muted);
  background: var(--bg-soft);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
}

/* Redesigned Contact Action Rows */
.contact-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 15px;
  background: #f7fbfe;
  border: 1px solid rgba(14, 90, 122, 0.10);
  color: var(--ink);
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.contact-row:hover {
  background: #edf7fe;
  border-color: rgba(14, 165, 233, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(12, 74, 110, 0.06);
  color: var(--ink);
}

.contact-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.contact-ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(12, 74, 110, 0.05);
}

.contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.contact-label {
  font-size: 0.74rem;
  color: var(--ink-subtle);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.contact-val {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-val--mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.contact-action-arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 90, 122, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.copy-btn {
  flex-shrink: 0;
  border: 1px solid rgba(2, 119, 189, 0.24);
  background: #ffffff;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover,
.copy-btn.is-copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

html.has-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

/* Legal / Policy Page */
.doc-shell {
  padding: 52px 0 72px;
}

.doc-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 46px 48px;
  box-shadow: var(--shadow-md);
}

.doc-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
}

.doc-meta {
  font-size: 0.88rem;
  color: var(--ink-subtle);
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.doc-card h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.doc-card p,
.doc-card li {
  font-size: 0.96rem;
  color: var(--ink-muted);
}

.doc-card ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}

.doc-card li {
  margin-bottom: 6px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Deep Ocean Night Footer */
.site-footer {
  margin-top: 44px;
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.16), transparent 44%),
    linear-gradient(180deg, #092740 0%, #06192a 100%);
  color: rgba(224, 242, 254, 0.78);
  padding: 46px 0 42px;
  font-size: 0.87rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  height: 36px;
  width: auto;
  align-self: flex-start;
  filter: drop-shadow(0 6px 16px rgba(56, 189, 248, 0.22));
}

.footer-tagline {
  margin: 0;
  color: rgba(186, 230, 253, 0.74);
  font-size: 0.86rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #e0f2fe;
  font-weight: 500;
}

.footer-links a:hover {
  color: #7dd3fc;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(186, 230, 253, 0.56);
}

/* 404 */
.not-found {
  padding: 92px 0;
  text-align: center;
}

.not-found .doc-card {
  max-width: 560px;
}

.not-found-code {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .pillars-grid,
  .works-stack,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 320px;
  }

  .footer-right {
    align-items: flex-start;
  }

  .doc-card {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
    align-items: center;
    row-gap: 10px;
    padding: 12px 0;
    min-height: 0;
  }

  .brand {
    grid-area: brand;
  }

  .brand-wordmark {
    height: 30px;
  }

  .nav-wrap {
    display: contents;
  }

  .lang-toggle {
    grid-area: lang;
    justify-self: end;
  }

  .nav-links {
    grid-area: nav;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(14, 90, 122, 0.08);
    font-size: 0.85rem;
  }

  .hero {
    padding: 26px 0 22px;
  }

  .hero-copy {
    padding: 6px 0;
  }

  .hero-stage {
    min-height: 300px;
  }

  .card {
    padding: 22px 18px;
  }

  .work-body {
    padding: 22px 18px 24px;
  }

  .upcoming-note {
    word-break: break-all;
  }

  .contact-row {
    padding: 13px 12px;
  }

  .contact-val--mono {
    font-size: 0.82rem;
  }
}

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

  .btn,
  .card,
  .work-card,
  .contact-row,
  .reveal {
    transition: none;
  }

  .stage-logo {
    animation: none;
  }
}
