/* ===== LUCIDITY DESIGNS — PRODUCTION STYLES ===== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ===== 1. THEME SYSTEM ===== */

/* Light theme (default) */
:root {
  --bg-primary: #EDEDE9;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #E5E5E0;
  --text-primary: #171324;
  --text-secondary: #3E3A52;
  --text-muted: #6B6780;
  --accent: #858BBD;
  --accent-hover: #6B70A3;
  --accent-light: #A8ACCF;
  --border: #D0D0CA;
  --divider: #D8D8D2;

  /* Typography */
  --font-heading: "DM Serif Display", Georgia, serif;
  --font-body: "Source Sans 3", Georgia, serif;
  --font-ui: "Source Sans 3", system-ui, sans-serif;

  /* Scale */
  --size-body: 19px;
  --size-body-sm: 16px;
  --size-h1: clamp(2.2rem, 4vw, 3.5rem);
  --size-h2: clamp(1.6rem, 3vw, 2.4rem);
  --size-h3: clamp(1.2rem, 2vw, 1.5rem);
  --size-small: 0.85rem;

  /* Line heights */
  --lh-body: 1.75;
  --lh-tight: 1.3;
  --lh-normal: 1.5;

  /* Widths */
  --max-width: 1200px;
  --max-width-prose: 720px;
  --max-width-prose-wide: 900px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-speed: 400ms;
  --transition-ease: ease;
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #171324;
  --bg-surface: #221E33;
  --bg-surface-alt: #2A2640;
  --text-primary: #EDEDE9;
  --text-secondary: #C4C0D4;
  --text-muted: #858BBD;
  --accent: #9EA3CC;
  --accent-hover: #B5B9E0;
  --accent-light: #C8CBE8;
  --border: #35304A;
  --divider: #2E2945;
}

/* ===== 2. BASE RESET ===== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition:
    background-color var(--transition-speed) var(--transition-ease),
    color var(--transition-speed) var(--transition-ease);
  min-width: 320px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--lh-tight);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 200ms ease;
}

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

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

/* Transition on all elements */
section, .card, .form-group label, .form-group input,
.form-group textarea, .form-group select, button,
nav, h1, h2, h3, p, blockquote, span, a, div {
  transition:
    background-color var(--transition-speed) var(--transition-ease),
    color var(--transition-speed) var(--transition-ease),
    border-color var(--transition-speed) var(--transition-ease);
}

/* ===== 3. LAYOUT ===== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-prose);
  margin: 0 auto;
}

.container--wide {
  max-width: var(--max-width-prose-wide);
}

/* ===== 4. STICKY NAV ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-speed) var(--transition-ease),
              border-color var(--transition-speed) var(--transition-ease);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__brand {
  font-family: var(--font-heading);
  font-size: var(--size-body-sm);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.nav__brand img {
  height: 28px;
  width: auto;
}

[data-theme="dark"] .nav__brand img[src*="light"] {
  display: none;
}

[data-theme="dark"] .nav__brand img[src*="dark"] {
  display: block;
}

[data-theme="light"] .nav__brand img[src*="light"] {
  display: block;
}

[data-theme="light"] .nav__brand img[src*="dark"] {
  display: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  font-family: var(--font-ui);
  font-size: var(--size-small);
}

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav__link:hover {
  color: var(--accent);
}

/* Underline animation */
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav__link:hover::after {
  width: 100%;
}

/* Active link */
.nav__link--active {
  color: var(--text-primary);
}

.nav__link--active::after {
  width: 100%;
  background: var(--accent);
}

/* Nav controls (theme + language) */
.nav__controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ===== 5. THEME TOGGLE ===== */

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: var(--size-small);
  color: var(--text-secondary);
  transition: border-color 200ms ease, color 200ms ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ===== 6. LANGUAGE TOGGLE ===== */

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: var(--size-small);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 2px;
  transition: border-color 200ms ease, color 200ms ease;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-toggle .lang-text {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ===== 7. HERO ===== */

.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__dot-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: 0 0, 0 0;
  background-repeat: repeat;
}

/* Hero dots — dark theme */
.hero__dot-bg.dot-hero-dark {
  background-image:
    radial-gradient(circle, rgba(18, 17, 33, 0.4) 2.5px, transparent 2.5px),
    repeating-linear-gradient(-45deg, transparent, transparent 3.5px, rgba(18, 17, 33, 0.12) 3.5px, rgba(18, 17, 33, 0.12) 7px),
    linear-gradient(7deg, #171324, #8288ba 70%, #171324 100%);
  background-size: 4px 4px, 7px 7px, 100% 100%;
}

/* Hero dots — light theme */
.hero__dot-bg.dot-hero-light {
  background-image:
    radial-gradient(rgba(151, 156, 195, 0.4) 2px, transparent 2px),
    repeating-linear-gradient(45deg, transparent, transparent 3.5px, rgba(151, 156, 195, 0.12) 3.5px, rgba(151, 156, 195, 0.12) 7px),
    linear-gradient(0deg, #e9e9e6, #979cc3);
  background-size: 7px 7px, 7px 7px, 100% 100%;
}

/* Mask fade utility */
.mask-fade {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: var(--size-h1);
  font-weight: 400;
  line-height: var(--lh-tight);
  max-width: var(--max-width-prose-wide);
  margin: 0 auto var(--space-lg);
}

.hero__tagline .tagline__primary {
  color: var(--text-primary);
}

.hero__tagline .tagline__secondary {
  font-size: 0.65em;
  color: var(--accent);
  display: block;
  line-height: var(--lh-tight);
}

[data-theme="light"] .hero__tagline .tagline__secondary {
  color: #FFFFFF;
}

.hero__philosophy {
  font-size: var(--size-body);
  line-height: var(--lh-body);
  max-width: var(--max-width-prose);
  margin: 0 auto var(--space-lg);
  color: var(--text-secondary);
}

.hero__philosophy strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero__scroll {
  margin-top: var(--space-lg);
  color: var(--text-muted);
  animation: scroll-pulse 2s ease-in-out infinite;
}

.hero__scroll svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ===== 8. ENTRY SECTION (Digital / Atelier) ===== */

.entry-section {
  padding: var(--space-lg) 0;
}

.entry-intro {
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: var(--max-width-prose-wide);
  margin: 0 auto;
}

.entry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 350ms ease;
  position: relative;
}

.entry-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px var(--accent);
}

[data-theme="dark"] .entry-card:hover {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--accent);
}

/* Single dot on card hover — with pulse entrance */
@keyframes dot-pulse {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.entry-card::after,
.card-pattern .card-service::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  right: 16px;
  top: 16px;
  opacity: 0;
  transform: scale(0.375);
  transition:
    opacity 300ms ease,
    transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.entry-card:hover::after,
.card-pattern .card-service:hover::after {
  opacity: 1;
  transform: scale(1);
}

.entry-card h3 {
  font-family: var(--font-heading);
  font-size: var(--size-h3);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.entry-card p {
  font-size: var(--size-body-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

/* ===== 9. SECTION DIVIDERS ===== */

.section-divider {
  height: 1px;
  background: var(--divider);
  border: none;
  margin: var(--space-xl) 0;
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

/* Decorative dot divider */
.divider-decorative {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.divider-decorative::before,
.divider-decorative::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--divider);
}

.dot-accent-lg {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
}

/* Decorative divider with ellipse accent */
.divider-accent {
  position: relative;
  height: 2px;
  margin: var(--space-xl) 0;
}

.divider-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 1px;
  background: var(--divider);
  top: 50%;
  transform: translateY(-50%);
}

.divider-accent::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

/* Floating dots */
@keyframes float-dot {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-4px) scale(1.2); opacity: 0.5; }
}

.dot-float {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: float-dot 3s ease-in-out infinite;
}

.dot-float.delay-1 { animation-delay: 0.5s; }
.dot-float.delay-2 { animation-delay: 1s; }
.dot-float.delay-3 { animation-delay: 1.5s; }

/* ===== 10. NUMBERED HEADERS ===== */

.numbered-header {
  margin-bottom: var(--space-md);
  position: relative;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.numbered-header:hover {
  transform: translateX(4px);
}

.numbered-header::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  width: 8px;
  height: 1px;
  background: var(--accent);
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.numbered-header:hover::before {
  transform: translateY(-50%) scaleX(1);
}

.numbered-header .number {
  font-family: var(--font-heading);
  font-size: var(--size-body-sm);
  color: var(--accent);
  letter-spacing: 0.02em;
}

.numbered-header .separator {
  margin: 0 0.3em;
  color: var(--text-muted);
}

.numbered-header .title {
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  display: inline;
}

.numbered-header + .numbered-subtitle {
  font-style: italic;
  color: var(--text-muted);
  font-size: var(--size-body-sm);
  margin-top: 0.25rem;
  margin-bottom: var(--space-sm);
}

/* ===== 12. TYPOGRAPHY SWATCH CARDS ===== */

.typo-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.typo-swatch {
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition:
    transform 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 350ms ease,
    border-color 350ms ease;
}

.typo-swatch:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .typo-swatch:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.typo-swatch::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  width: 8px;
  height: 1px;
  background: var(--accent);
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.typo-swatch:hover .numbered-header::before {
  transform: translateY(-50%) scaleX(1);
}

.typo-swatch .numbered-header {
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.typo-swatch:hover .numbered-header {
  transform: translateX(4px);
}

.typo-swatch-label {
  font-family: var(--font-ui);
  font-size: var(--size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* ===== 11. FLAT SECTIONS ===== */

.flat-section {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--divider);
  position: relative;
}

.flat-section:last-child {
  border-bottom: none;
}

.flat-section h3 {
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.flat-section p {
  color: var(--text-secondary);
  max-width: var(--max-width-prose);
  line-height: var(--lh-body);
}

/* ===== 12a. BRIDGE / INTERLUDE ===== */

.section--bridge {
  padding: var(--space-lg) 0;
  text-align: center;
}

.section--bridge .bridge__inner {
  max-width: var(--max-width-prose-wide);
  margin: 0 auto;
}

.section--bridge .bridge__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.section--bridge .bridge__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
}

.section--bridge p {
  color: var(--text-secondary);
  max-width: var(--max-width-prose);
  margin: 0 auto;
  line-height: var(--lh-body);
}

.section--bridge p + p {
  margin-top: var(--space-sm);
}

/* ===== 12. FULL-BLEED SECTIONS ===== */

.full-bleed {
  padding: var(--space-xl) var(--space-md);
  margin: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

.full-bleed--dark {
  background: var(--bg-primary);
  color: var(--text-secondary);
}

[data-theme="light"] .full-bleed--dark {
  background: var(--accent);
  color: #171324;
}

[data-theme="dark"] .full-bleed--dark h3,
[data-theme="dark"] .full-bleed--dark p {
  color: var(--text-primary);
}

.full-bleed--light {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
}

.full-bleed__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width-prose-wide);
  margin: 0 auto;
}

.full-bleed h3 {
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  margin-bottom: var(--space-sm);
}

.full-bleed p {
  line-height: var(--lh-body);
  max-width: var(--max-width-prose);
}

/* Full-bleed dot texture */
.full-bleed__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

[data-theme="dark"] .full-bleed__texture {
  background: radial-gradient(circle, rgba(237, 237, 233, 0.06) 1px, transparent 1px);
  background-size: 10px 10px;
}

[data-theme="light"] .full-bleed__texture {
  background: radial-gradient(circle, rgba(23, 19, 36, 0.05) 1px, transparent 1px);
  background-size: 10px 10px;
}

/* ===== 13. CARDS ===== */

.card-pattern .card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  transition:
    transform 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 350ms ease,
    border-color 350ms ease;
}

.card-pattern .card:hover {
  transform: translateY(-1px);
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .card-pattern .card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card-pattern .card h4 {
  font-family: var(--font-heading);
  font-size: var(--size-h3);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.card-pattern .card p {
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

/* Service card with number */
.card-pattern .card-service {
  position: relative;
}

.card-pattern .card-service:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .card-pattern .card-service:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.card-number {
  font-family: var(--font-heading);
  font-size: var(--size-small);
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-xs);
}

/* Quote card */
.card--quote {
  border-left: 3px solid var(--accent);
  font-style: italic;
  padding: 0.5rem 0 0.5rem 1rem;
}

.card--quote p {
  margin: 0;
}

/* ===== 14. CONTACT FORMS ===== */

.form-demo {
  max-width: 560px;
  margin: 0 auto;
}

.form-demo h3 {
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-subtitle {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: var(--size-body-sm);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-body);
  font-size: var(--size-body-sm);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-submit {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 0.7rem 1.8rem;
  font-family: var(--font-ui);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bg-primary);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color 300ms ease,
    transform 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 300ms ease;
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent);
}

.form-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ===== 15. PAGE HEADER (for sub-pages) ===== */

.page-header {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  position: relative;
}

.page-header__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

[data-theme="dark"] .page-header__texture {
  background: radial-gradient(circle, rgba(237, 237, 233, 0.03) 1px, transparent 1px);
  background-size: 10px 10px;
}

[data-theme="light"] .page-header__texture {
  background: radial-gradient(circle, rgba(23, 19, 36, 0.03) 1px, transparent 1px);
  background-size: 10px 10px;
}

.page-header h1 {
  font-size: var(--size-h1);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.page-header p {
  max-width: var(--max-width-prose);
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

/* ===== 16. PROGRESS DOTS (Atelier process) ===== */

.process-stages {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
}

/* ===== 17. HERO ECHO ===== */

.hero-echo {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-xl) 0;
}

.hero-echo__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.hero-echo p {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ===== 18. FOOTER ===== */

.footer {
  text-align: center;
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
  position: relative;
}

.footer::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.2;
  margin: 0 auto var(--space-md);
}

.footer p {
  font-family: var(--font-ui);
  font-size: var(--size-small);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ===== 19. NOISE OVERLAY ===== */

.noise-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  pointer-events: none;
}

/* ===== 20. RESPONSIVE ===== */

@media (max-width: 768px) {
  .entry-grid,
  .typo-swatches,
  .form-row {
    grid-template-columns: 1fr;
  }

  .nav__inner {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .nav__links {
    gap: var(--space-sm);
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: var(--space-xs);
    border-top: 1px solid var(--divider);
    margin-top: 0.25rem;
  }

  .nav__controls {
    order: 2;
  }

  .full-bleed {
    padding: var(--space-lg) var(--space-sm);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  .hero__tagline {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }

  .container {
    padding: 0 var(--space-sm);
  }
}
