:root {
  --red: #c43452;
  --red-dark: #9e2740;
  --pink: #efdae4;
  --pink-soft: #f8edf2;
  --paper: #fffdfb;
  --ink: #171315;
  --muted: #746a6f;
  --line: rgba(196, 52, 82, 0.22);
  --line-strong: rgba(196, 52, 82, 0.42);
  --shadow: 0 24px 70px rgba(58, 28, 38, 0.10);
  --page: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --space: clamp(76px, 10vw, 136px);
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-in: cubic-bezier(.3, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.is-loading,
body.is-transitioning {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--pink);
  color: var(--ink);
}

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

.page-shell {
  width: min(var(--page), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--space);
}

.section-label,
.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.display-title,
.section-title,
.project-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.display-title {
  max-width: 880px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.97;
}

.section-title {
  font-size: clamp(2.2rem, 4.4vw, 4.35rem);
  line-height: 1;
}

.body-large {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.75;
}

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

.primary-btn,
.secondary-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}

.primary-btn,
.secondary-btn {
  padding: 12px 23px;
  border-radius: 999px;
}

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

.primary-btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}

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

.secondary-btn:hover {
  background: var(--pink-soft);
  transform: translateY(-2px);
}

.text-link {
  min-height: auto;
  padding: 4px 0;
  color: var(--red);
  border-bottom: 1px solid currentColor;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 5000;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

@media (max-width: 640px) {
  :root {
    --space: 72px;
  }

  .display-title {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .section-title {
    font-size: clamp(2.2rem, 10.5vw, 3.5rem);
  }
}

@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;
  }
}

/* --- Compact, layered layout pass (Aug 2026) --- */
:root {
  --paper-warm: #fff8f5;
  --blush: #f7e6ec;
  --blush-strong: #f1d2dd;
  --section-compact: clamp(52px, 6vw, 82px);
}

body {
  background:
    radial-gradient(circle at 8% 14%, rgba(239, 218, 228, 0.42), transparent 24rem),
    radial-gradient(circle at 92% 34%, rgba(196, 52, 82, 0.06), transparent 28rem),
    var(--paper);
}

.section {
  padding-block: var(--section-compact);
}

.display-title {
  font-size: clamp(2.75rem, 5vw, 4.9rem);
}

.section-title {
  font-size: clamp(2rem, 3.7vw, 3.7rem);
}

.body-large {
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
}

@media (max-width: 640px) {
  :root {
    --section-compact: 52px;
  }
}


/* V5 typography breathing room */
.display-title { line-height: 1.025; letter-spacing: -0.032em; }
.section-title { font-size: clamp(2rem, 3.35vw, 3.4rem); line-height: 1.11; letter-spacing: -0.024em; }
.project-title { line-height: 1.035; letter-spacing: -0.03em; }


/* --- Phone responsiveness pass --- */
@media (max-width: 760px) {
  :root {
    --pad: 18px;
    --section-compact: 48px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .display-title,
  .section-title,
  .project-title {
    overflow-wrap: break-word;
  }

  .display-title {
    font-size: clamp(2.45rem, 12vw, 3.65rem);
  }

  .section-title {
    font-size: clamp(2rem, 9.8vw, 3rem);
  }

  .body-large {
    font-size: 1rem;
    line-height: 1.65;
  }
}

@media (max-width: 420px) {
  :root {
    --pad: 16px;
    --section-compact: 44px;
  }
}
