/* WEBE official brand site — design draft */

:root {
  --magenta: #c7197b;
  --magenta-deep: #a01464;
  --magenta-soft: #e85aa8;
  --paper: #f7f4f0;
  --paper-deep: #efebe5;
  --sheet: #fffcfa;
  --ink: #1c1817;
  --ink-muted: #5a5551;
  --line: #ddd7d0;
  --charcoal: #1c1817;
  --charcoal-soft: #26211f;
  --chalk: #f4efe9;
  --chalk-muted: #c9c1b8;
  --line-dark: rgba(244, 239, 233, 0.16);
  --blush: #f6ecef;
  --focus: #c7197b;
  --header-h: 4.75rem;
  --font-serif-zh: "Noto Serif TC", "Songti TC", "Noto Serif CJK TC", serif;
  --font-sans-zh: "Noto Sans TC", "PingFang TC", "Noto Sans CJK TC", sans-serif;
  --font-serif-en: "Newsreader", "Noto Serif TC", serif;
  --font-sans-en: "Source Sans 3", "Noto Sans TC", sans-serif;
  --font-heading: var(--font-serif-zh);
  --font-body: var(--font-sans-zh);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="en"] {
  --font-heading: var(--font-serif-en);
  --font-body: var(--font-sans-en);
}

html[lang="zh-Hant"] body {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}

html[lang="zh-Hant"] .lang-en,
html[lang="en"] .lang-zh {
  display: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

p + p {
  margin-top: 1.15em;
}

ol, ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--sheet);
  text-decoration: none;
  font-size: 0.875rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(1180px, calc(100% - 2.75rem));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap {
    width: min(1180px, calc(100% - 5rem));
  }
}

@media (min-width: 1280px) {
  .wrap {
    width: min(1180px, calc(100% - 7.5rem));
  }
}

/* Scroll progress */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 420ms var(--ease), border-color 420ms var(--ease), box-shadow 420ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 244, 240, 0.78);
  border-bottom-color: rgba(221, 215, 208, 0.7);
  box-shadow: 0 1px 0 rgba(28, 24, 23, 0.03);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}

.header-inner {
  width: min(1180px, calc(100% - 2.75rem));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .header-inner {
    width: min(1180px, calc(100% - 5rem));
  }
}

@media (min-width: 1280px) {
  .header-inner {
    width: min(1180px, calc(100% - 7.5rem));
  }
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  display: block;
  object-fit: contain;
  object-position: left center;
}

.logo-img--nav {
  width: 6.5rem;
  height: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin-left: 0.5rem;
}

.nav-desktop a {
  position: relative;
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 0.2rem 0;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease);
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after,
.nav-desktop a.is-active::after {
  transform: scaleX(1);
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-btn {
  background: none;
  border: 0;
  padding: 0.15rem 0.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  line-height: 1;
  transition: color 240ms var(--ease);
}

.lang-btn[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 500;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--magenta);
}

.lang-sep {
  color: var(--line);
  font-size: 0.75rem;
  user-select: none;
}

.login-link {
  display: none;
  position: relative;
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding: 0.2rem 0;
  transition: color 240ms var(--ease);
}

.login-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease);
}

.login-link:hover,
.login-link:focus-visible {
  color: var(--ink);
}

.login-link:hover::after,
.login-link:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: none;
}

.menu-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: var(--ink);
  transition: transform 280ms var(--ease), opacity 280ms var(--ease);
}

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

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

@media (min-width: 1120px) {
  .nav-desktop,
  .login-link {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}

/* Mobile menu */

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: var(--paper);
  overflow: auto;
  padding: 2.5rem 1.5rem 3rem;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(1180px, calc(100% - 1rem));
  margin-inline: auto;
}

.mobile-menu-nav a {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 240ms var(--ease);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus-visible {
  color: var(--magenta);
}

.mobile-menu-login {
  margin-top: 1.25rem;
  color: var(--magenta) !important;
  border-bottom: 0 !important;
  font-size: 1.25rem !important;
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 2.85rem;
  padding: 0.7rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 280ms var(--ease), color 280ms var(--ease), border-color 280ms var(--ease);
}

.btn--primary {
  background: var(--magenta);
  color: #fff;
  border: 1px solid var(--magenta);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.2) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease);
  pointer-events: none;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--magenta-deep);
  border-color: var(--magenta-deep);
  color: #fff;
}

.btn--primary:hover::after,
.btn--primary:focus-visible::after {
  transform: translateX(120%);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--magenta);
  color: var(--magenta);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 5rem 0 6.5rem;
  overflow: hidden;
  background: var(--paper);
}

@media (min-width: 768px) {
  .hero {
    padding: 7rem 0 8.5rem;
  }
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-atmosphere__wash {
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(ellipse 52% 42% at 12% 28%, rgba(199, 25, 123, 0.07), transparent 62%),
    radial-gradient(ellipse 48% 50% at 88% 72%, rgba(199, 25, 123, 0.05), transparent 68%),
    radial-gradient(ellipse 40% 34% at 62% 18%, rgba(255, 255, 255, 0.55), transparent 70%);
  animation: wash-drift 28s ease-in-out infinite alternate;
}

.hero-atmosphere__beam {
  position: absolute;
  top: -30%;
  left: -40%;
  width: 42%;
  height: 160%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 252, 248, 0.38) 50%,
    rgba(255, 255, 255, 0) 62%,
    transparent 100%
  );
  transform: skewX(-14deg) translateX(0);
  animation: beam-sweep 16s ease-in-out infinite;
}

.hero-atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("assets/paper-grain.jpg");
  background-size: 280px 280px;
  mix-blend-mode: multiply;
  animation: grain-shift 9s steps(4) infinite;
}

@keyframes wash-drift {
  from { transform: translate3d(-1.6%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1.4%, 0) scale(1.04); }
}

@keyframes beam-sweep {
  0% { transform: skewX(-14deg) translateX(-10%); opacity: 0; }
  12% { opacity: 0.85; }
  55% { opacity: 0.45; }
  100% { transform: skewX(-14deg) translateX(320%); opacity: 0; }
}

@keyframes grain-shift {
  0% { background-position: 0 0; }
  25% { background-position: -40px 20px; }
  50% { background-position: 20px -30px; }
  75% { background-position: -20px -10px; }
  100% { background-position: 0 0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.55fr);
  }
}

.hero-copy {
  max-width: 42rem;
}

.logo-img--hero {
  width: min(15.5rem, 70vw);
  height: auto;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: clamp(2.55rem, 8vw, 5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

html[lang="en"] .hero h1 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(2.15rem, 5.2vw, 3.55rem);
}

.rule {
  display: block;
  width: 2.75rem;
  height: 1.5px;
  background: var(--line);
  margin: 1.5rem 0 1.6rem;
  border: 0;
}

.rule--accent {
  background: var(--magenta);
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 34em;
}

.hero-key {
  margin-top: 1.15rem;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  max-width: 18em;
}

html[lang="en"] .hero-key {
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  letter-spacing: -0.015em;
  font-style: italic;
  max-width: 22em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 2.6rem;
}

@media (max-height: 900px) {
  .hero {
    padding: 3.25rem 0 4.25rem;
  }

  .logo-img--hero {
    width: min(13.5rem, 62vw);
    margin-bottom: 1.75rem;
  }

  .hero-key {
    margin-top: 0.9rem;
  }

  .hero-actions {
    margin-top: 1.85rem;
  }
}

/* Sections */

.section {
  position: relative;
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 7.5rem 0;
  }
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--magenta);
  margin: 0 0 0.95rem;
  line-height: 1;
}

html[lang="en"] .section-label {
  text-transform: uppercase;
}

.section-intro h2,
.about-heading h2,
.membership-copy h2,
.contact-inner h2 {
  font-size: clamp(2.15rem, 5.2vw, 3.65rem);
  font-weight: 600;
}

html[lang="en"] .section-intro h2,
html[lang="en"] .about-heading h2,
html[lang="en"] .membership-copy h2,
html[lang="en"] .contact-inner h2 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 1.65rem;
  max-width: 34em;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.section-intro--offset {
  max-width: 38rem;
}

@media (min-width: 900px) {
  .section-intro--offset {
    margin-left: 0;
    max-width: 36rem;
  }
}

/* Chapter images — always complete, never cropped */

.chapter-figure {
  margin: 0 auto 3.5rem;
}

.chapter-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.chapter-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.section--dark .chapter-figure figcaption {
  color: var(--chalk-muted);
}

.chapter-figure--mat {
  width: min(1180px, calc(100% - 2.75rem));
}

@media (min-width: 768px) {
  .chapter-figure--mat {
    width: min(1180px, calc(100% - 5rem));
    margin-bottom: 5rem;
  }
}

@media (min-width: 1280px) {
  .chapter-figure--mat {
    width: min(1180px, calc(100% - 7.5rem));
  }
}

@media (min-width: 900px) {
  .chapter-figure--offset-right {
    margin-left: auto;
    margin-right: 0;
    width: min(86vw, 1080px);
    padding-right: 0;
  }
}

.chapter-figure--column {
  margin: 0;
}

.chapter-figure--column img,
.chapter-figure--column {
  width: 100%;
}

/* Key lines */

.key-line {
  margin-top: 2.25em;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  max-width: 16em;
}

html[lang="en"] .key-line {
  letter-spacing: -0.015em;
  font-style: italic;
  max-width: 20em;
}

.key-line--compact {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 18em;
}

/* About — beige, generous, asymmetric */

.section--about {
  background: var(--paper);
  padding-top: 4.5rem;
}

@media (min-width: 768px) {
  .section--about {
    padding-top: 6rem;
  }
}

.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 4rem 8vw;
    align-items: start;
  }

  .about-copy {
    padding-top: 5.5rem;
  }
}

.about-copy {
  max-width: 32em;
  color: var(--ink-muted);
  font-size: 1rem;
}

/* Partnerships — charcoal, magazine offset */

.section--partnerships {
  background: var(--charcoal);
  color: var(--chalk);
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .section--partnerships {
    padding-top: 8.5rem;
    padding-bottom: 8.75rem;
  }
}

.section--dark {
  background: var(--charcoal);
  color: var(--chalk);
  overflow: hidden;
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--chalk);
}

.section--dark .section-label {
  color: var(--magenta-soft);
}

.section--dark .section-lead,
.section--dark p {
  color: var(--chalk-muted);
}

.section-atmosphere {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(199, 25, 123, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 35% at 10% 90%, rgba(255, 252, 248, 0.04), transparent 65%);
  animation: wash-drift 32s ease-in-out infinite alternate;
}

.section-atmosphere--blush {
  background:
    radial-gradient(ellipse 55% 45% at 20% 20%, rgba(199, 25, 123, 0.06), transparent 62%),
    radial-gradient(ellipse 45% 40% at 90% 80%, rgba(199, 25, 123, 0.05), transparent 68%);
}

.section--partnerships .section-intro h2 {
  font-size: clamp(2.4rem, 6vw, 4.15rem);
}

.section--partnerships .chapter-figure {
  margin-top: 3.25rem;
}

@media (min-width: 768px) {
  .section--partnerships .chapter-figure {
    margin-top: 4.5rem;
  }
}

.axis-list {
  margin-top: 3.25rem;
  border-top: 1px solid var(--line-dark);
}

@media (min-width: 768px) {
  .axis-list {
    margin-top: 4.5rem;
  }
}

.axis-item {
  display: grid;
  gap: 0.65rem 2.5rem;
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 720px) {
  .axis-item {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0 3.5rem;
    padding: 2.5rem 0;
    align-items: start;
  }

  .axis-item--2 {
    padding-left: 8vw;
  }

  .axis-item--3 {
    padding-left: 4vw;
  }
}

.axis-num {
  font-family: var(--font-serif-en);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 500;
  color: var(--magenta-soft);
  letter-spacing: 0.06em;
  line-height: 1;
  padding-top: 0.15rem;
}

.axis-body h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

html[lang="en"] .axis-body h3 {
  font-weight: 500;
  letter-spacing: -0.015em;
}

.axis-body p {
  max-width: 32em;
  color: var(--chalk-muted);
  font-size: 0.98rem;
}

/* Membership — thin magenta wash, intimate, asymmetric */

.section--membership {
  background: var(--blush);
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .section--membership {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.membership-layout {
  display: grid;
  gap: 2.75rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .membership-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 4rem 7vw;
    align-items: end;
  }

  .membership-copy {
    padding-bottom: 0.5rem;
    padding-top: 7rem;
  }
}

.membership-copy h2 {
  margin-bottom: 0;
}

.membership-copy p {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 32em;
}

.membership-copy .section-label {
  color: var(--magenta);
}

.membership-copy .key-line {
  color: var(--ink);
}

.membership-copy .btn {
  margin-top: 2rem;
}

/* Fields — return to beige, offset columns, large image */

.section--fields {
  background: var(--paper);
  padding-top: 5rem;
  padding-bottom: 5.5rem;
}

@media (min-width: 768px) {
  .section--fields {
    padding-top: 7.5rem;
    padding-bottom: 8rem;
  }
}

.section-intro--quiet h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 500;
}

.fields-grid {
  display: grid;
  gap: 3.25rem;
  margin-top: 3.25rem;
}

@media (min-width: 800px) {
  .fields-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem 8vw;
  }

  .field--secondary {
    padding-top: 7.5rem;
  }

  .field--primary {
    max-width: 26rem;
  }
}

.field h3 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  margin: 0.95rem 0 0.9rem;
}

.field .rule {
  margin: 0 0 0;
}

html[lang="en"] .field h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

@media (max-width: 799px) {
  .field--secondary {
    padding-left: 1.75rem;
  }
}

.field p {
  color: var(--ink-muted);
  max-width: 26em;
  font-size: 0.98rem;
}

.fields-note {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 36em;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* Contact — charcoal, generous whitespace */

.section--contact {
  background: var(--charcoal);
  color: var(--chalk);
  padding-top: 6rem;
  padding-bottom: 6.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .section--contact {
    padding-top: 9.5rem;
    padding-bottom: 10rem;
  }
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

@media (min-width: 900px) {
  .contact-inner {
    margin-left: 8vw;
  }
}

.contact-lead {
  margin-top: 0.35rem;
  color: var(--chalk-muted);
  font-size: 1rem;
}

.contact-email {
  position: relative;
  display: inline-block;
  margin-top: 1.35rem;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4.6vw, 3.05rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--chalk);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.contact-email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 1.5px;
  background: var(--magenta);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 480ms var(--ease);
}

.contact-email:hover::after,
.contact-email:focus-visible::after {
  transform: scaleX(1);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line-dark);
  background: var(--charcoal);
  padding: 1.6rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--chalk-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
}

.footer-nav a {
  position: relative;
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--chalk-muted);
  transition: color 240ms var(--ease);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--chalk);
}

/* Focus */

:focus {
  outline: none;
}

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

.nav-desktop a:focus-visible,
.login-link:focus-visible,
.footer-nav a:focus-visible,
.logo-link:focus-visible,
.mobile-menu-nav a:focus-visible {
  outline-offset: 4px;
}

.section--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--magenta-soft);
}

/* Language cross-fade */

.site-header,
main,
.site-footer,
.mobile-menu {
  transition: opacity 200ms ease;
}

html.is-lang-fading .site-header,
html.is-lang-fading main,
html.is-lang-fading .site-footer,
html.is-lang-fading .mobile-menu {
  opacity: 0;
}

/* Motion — default (no-preference) */

.reveal,
.reveal-child,
.hero-stage {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .hero-stage {
    opacity: 0;
    transform: translateY(1.15rem);
  }

  html.js.is-ready .hero-stage {
    animation: hero-enter 900ms var(--ease) forwards;
    animation-delay: calc(var(--stage, 0) * 150ms);
  }

  html.js.is-ready .rule--draw {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    animation: draw-line 800ms var(--ease) forwards;
    animation-delay: 0.42s;
  }

  @keyframes hero-enter {
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes draw-line {
    from {
      opacity: 1;
      transform: scaleX(0);
    }
    to {
      opacity: 1;
      transform: scaleX(1);
    }
  }

  html.js .reveal {
    opacity: 0;
    transform: translateY(1.15rem);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  }

  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  html.js .reveal-child {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 750ms var(--ease), transform 750ms var(--ease), clip-path 750ms var(--ease);
    transition-delay: calc(var(--d, 0) * 100ms);
  }

  html.js .axis-num.reveal-child {
    clip-path: inset(100% 0 0 0);
  }

  html.js .reveal.is-in .reveal-child,
  html.js .reveal-child.is-in {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }

  html.js .rule--draw-on {
    transform: scaleX(0);
    transform-origin: left center;
  }

  html.js .reveal.is-in .rule--draw-on,
  html.js .rule--draw-on.is-in {
    transform: scaleX(1);
    transition: transform 900ms var(--ease);
    transition-delay: calc(var(--d, 0) * 100ms);
  }
}

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

  .hero-atmosphere__wash,
  .hero-atmosphere__beam,
  .hero-atmosphere__grain,
  .section-atmosphere {
    animation: none !important;
  }

  .hero-atmosphere__beam {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.is-lang-fading .site-header,
  html.is-lang-fading main,
  html.is-lang-fading .site-footer,
  html.is-lang-fading .mobile-menu {
    opacity: 1;
  }
}

/* Body lock when menu open */

body.menu-open {
  overflow: hidden;
}

.inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 240ms var(--ease);
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--magenta);
}

.section--dark .inline-link,
.page-hero--dark .inline-link {
  color: var(--chalk);
}

.section--dark .inline-link:hover,
.section--dark .inline-link:focus-visible,
.page-hero--dark .inline-link:hover,
.page-hero--dark .inline-link:focus-visible {
  color: var(--magenta-soft);
}

.wordmark-type {
  font-family: var(--font-serif-en);
  font-weight: 500;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

/* -------------------------------------------------------------------------
   Multi-page additions: inner heroes, teasers, insights, FAQ, legal drafts
   ------------------------------------------------------------------------- */

.nav-desktop {
  gap: 1.15rem;
}

body:not([data-page="home"]) .site-header {
  background: rgba(247, 244, 240, 0.86);
  border-bottom-color: rgba(221, 215, 208, 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
  padding: 4.25rem 0 3.5rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 6.25rem 0 5rem;
  }
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.page-hero h1 {
  font-size: clamp(2.15rem, 5.6vw, 3.85rem);
  font-weight: 600;
  line-height: 1.15;
}

html[lang="en"] .page-hero h1 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.page-lead {
  max-width: 34em;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-hero--dark {
  background: var(--charcoal);
  color: var(--chalk);
}

.page-hero--dark h1 {
  color: var(--chalk);
}

.page-hero--dark .page-lead {
  color: var(--chalk-muted);
}

.page-hero--blush {
  background: var(--blush);
}

.section--dark .btn--ghost,
.page-hero--dark .btn--ghost {
  color: var(--chalk);
  border-color: rgba(244, 239, 233, 0.45);
}

.section--dark .btn--ghost:hover,
.section--dark .btn--ghost:focus-visible,
.page-hero--dark .btn--ghost:hover,
.page-hero--dark .btn--ghost:focus-visible {
  color: #fff;
  border-color: var(--magenta);
}

.more-link {
  display: inline-flex;
  align-items: center;
  margin-top: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--magenta);
  padding: 0.1em 0 0.2em;
  transition: color 240ms var(--ease);
}

.more-link:hover,
.more-link:focus-visible {
  color: var(--magenta);
}

.section--dark .more-link {
  color: var(--chalk);
}

.section--dark .more-link:hover,
.section--dark .more-link:focus-visible {
  color: #fff;
}

/* Insights index and teasers — editorial list, not a card mosaic */

.section--insights {
  background: var(--paper-deep);
  padding-top: 5rem;
  padding-bottom: 5.5rem;
}

@media (min-width: 768px) {
  .section--insights {
    padding-top: 7.5rem;
    padding-bottom: 8rem;
  }
}

.insight-list {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.insight-item {
  display: grid;
  gap: 0.65rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 280ms var(--ease);
}

.insight-item:hover,
.insight-item:focus-visible {
  opacity: 0.72;
}

@media (min-width: 800px) {
  .insight-item {
    grid-template-columns: 7rem minmax(0, 1fr) minmax(8rem, 14rem);
    align-items: baseline;
    gap: 1.5rem 3rem;
    padding: 2.15rem 0;
  }

  .insight-item:nth-child(even) .insight-item-title {
    padding-right: 8%;
  }

  .insight-item:nth-child(odd) {
    padding-left: 0;
  }
}

.insight-item-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.insight-item-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
}

html[lang="en"] .insight-item-title {
  letter-spacing: -0.015em;
}

.insight-item-excerpt {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

@media (max-width: 799px) {
  .insight-item-excerpt {
    grid-column: 1 / -1;
  }
}

/* Article typography */

.article-wrap {
  width: min(42rem, calc(100% - 2.75rem));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .article-wrap {
    width: min(42rem, calc(100% - 5rem));
  }
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.article-kicker a {
  color: var(--magenta);
  text-decoration: none;
}

.article-kicker a:hover,
.article-kicker a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.prose {
  margin-top: 2.5rem;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink);
}

.prose p + p {
  margin-top: 1.35em;
}

.article-note {
  margin-top: 3.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  max-width: 38em;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.article-nav {
  margin-top: 3rem;
}

/* FAQ */

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

.faq-list {
  margin-top: 2.75rem;
  max-width: 44rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 1.7rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1px solid var(--magenta);
  border-bottom: 1px solid var(--magenta);
  transform: rotate(45deg);
  transition: transform 280ms var(--ease);
}

.faq-item[open] summary::after {
  top: 1.9rem;
  transform: rotate(225deg);
}

.faq-item .faq-answer {
  padding: 0 0 1.6rem;
  max-width: 36em;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* Legal drafts */

.draft-banner {
  position: relative;
  z-index: 1;
  margin: 0 auto 2.25rem;
  padding: 1rem 0 0;
  max-width: 42rem;
  border-top: 1.5px solid var(--magenta);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.7;
}

.draft-banner strong {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.legal-doc {
  max-width: 42rem;
}

.legal-doc h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 500;
  margin: 2.75rem 0 0.85rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.legal-doc ol,
.legal-doc ul {
  list-style: none;
  padding: 0;
}

.legal-doc li + li {
  margin-top: 0.85em;
}

.legal-doc li {
  padding-left: 1.5rem;
  position: relative;
}

.legal-doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.55rem;
  height: 1px;
  background: var(--magenta);
}

/* Process / suitability blocks on dedicated pages */

.split-block {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .split-block {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem 8vw;
    align-items: start;
  }

  .split-block--flip {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .split-block--flip .split-copy {
    order: 2;
  }
}

.split-copy h2,
.split-copy h3,
.prose-page h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

html[lang="en"] .split-copy h2,
html[lang="en"] .split-copy h3,
html[lang="en"] .prose-page h2 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.split-copy p,
.prose-page p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 36em;
}

.suit-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.suit-list h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.section--dark .suit-list h3 {
  color: var(--chalk);
}

.crumb {
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

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

.crumb a:hover,
.crumb a:focus-visible {
  color: var(--magenta);
}

.footer-nav {
  max-width: 42rem;
}

.disclaimer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 36em;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.section--dark .disclaimer {
  border-top-color: var(--line-dark);
  color: var(--chalk-muted);
}

.page-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

.section--soft {
  background: var(--sheet);
}

.home-teaser-actions {
  margin-top: 2rem;
}
