:root {
  --bg: #ececeb;
  --bg-soft: #f4f4f3;
  --line: #cfcfcd;
  --text: #4b4b4a;
  --text-soft: #8d8d8a;
  --text-strong: #3c3c3b;
  --max: 1180px;
  --section-gap: clamp(64px, 10vw, 140px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

body.page-enter {
  opacity: 0;
  transform: translateY(12px);
}

body.page-leave {
  opacity: 0;
  transform: translateY(10px);
}

body.nav-open {
  overflow: hidden;
}

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

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

.wrap {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(14px);
  background: rgba(236, 236, 235, 0.86);
  border-bottom: 1px solid rgba(79, 79, 78, 0.08);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease,
    border-color 0.35s ease;
}

.site-header.scrolled {
  background: rgba(236, 236, 235, 0.93);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(60, 60, 59, 0.05);
  border-bottom-color: rgba(79, 79, 78, 0.12);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
  min-width: 0;
  flex: 1;
}

.brand-mark {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(60, 60, 59, 0.16);
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-strong);
  cursor: pointer;
  flex: 0 0 auto;
  z-index: 130;
  position: relative;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(60, 60, 59, 0.3);
  outline-offset: 2px;
}

.nav-toggle.is-open {
  color: #f4f4f3;
  border-color: rgba(244, 244, 243, 0.26);
  background: transparent;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-links {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.nav-links a {
  position: relative;
  transition: color 0.28s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--text-strong);
  outline: none;
}

.nav-links-inline {
  display: none;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #0c0c0c;
  color: #f4f4f3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.nav-overlay-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08em;
  transform: translate(-50%, -50%) scale(1.08);
  transform-origin: top left;
  transition:
    left 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-overlay.is-settled .nav-overlay-brand {
  left: 20px;
  top: 18px;
  transform: translate(0, 0) scale(0.34);
}

.nav-overlay-mark {
  font-size: clamp(5rem, 26vw, 14rem);
  line-height: 0.8;
  font-weight: 800;
  letter-spacing: -0.1em;
  color: #f4f4f3;
}

.nav-overlay-sub {
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 244, 243, 0.72);
  padding: 0 0 0.24em 0.28em;
  border-bottom: 1px solid rgba(244, 244, 243, 0.2);
}

.nav-overlay-menu {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-36%);
  display: grid;
  gap: 10px;
}

.nav-overlay-link {
  display: inline-block;
  width: fit-content;
  font-size: clamp(2.1rem, 9vw, 5.5rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: rgba(244, 244, 243, 0.9);
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.25s ease;
}

.nav-overlay.is-settled .nav-overlay-link {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay-link:nth-child(1) {
  transition-delay: 0.08s;
}

.nav-overlay-link:nth-child(2) {
  transition-delay: 0.12s;
}

.nav-overlay-link:nth-child(3) {
  transition-delay: 0.16s;
}

.nav-overlay-link:nth-child(4) {
  transition-delay: 0.2s;
}

.nav-overlay-link:nth-child(5) {
  transition-delay: 0.24s;
}

.nav-overlay-link:hover,
.nav-overlay-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.nav-overlay-meta {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(244, 244, 243, 0.54);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s ease 0.26s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.26s;
}

.nav-overlay.is-settled .nav-overlay-meta {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  --hero-dim: 0;
  padding: 28px 0 clamp(72px, 12vw, 140px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.42), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.3), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
  opacity: calc(1 - (var(--hero-dim) * 0.35));
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 125, 123, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 125, 123, 0.055) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
}

.hero-motifs {
  position: relative;
  width: 100%;
  height: clamp(120px, 34vw, 260px);
  opacity: 0.72;
  animation: floatMotifs 10s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero-motifs .motif-line,
.hero-motifs .motif-frame,
.hero-motifs .motif-arc {
  position: absolute;
  border-color: rgba(125, 125, 123, 0.42);
}

.hero-motifs .motif-line {
  height: 1px;
  background: rgba(125, 125, 123, 0.34);
  border: 0;
}

.hero-motifs .motif-frame {
  border: 1px solid rgba(125, 125, 123, 0.2);
  background: transparent;
}

.hero-motifs .motif-arc {
  border-top: 1px solid rgba(125, 125, 123, 0.26);
  border-left: 1px solid rgba(125, 125, 123, 0.18);
  border-right: 0;
  border-bottom: 0;
  border-radius: 999px 0 0 0;
  background: transparent;
}

.hero-motifs .m1 {
  top: 18%;
  left: 0;
  width: 62%;
}

.hero-motifs .m2 {
  top: 62%;
  right: 2%;
  width: 44%;
}

.hero-motifs .m3 {
  bottom: 10%;
  left: 12%;
  width: 28%;
}

.hero-motifs .f1 {
  top: 8%;
  right: 12%;
  width: 18%;
  height: 54%;
}

.hero-motifs .f2 {
  top: 28%;
  left: 8%;
  width: 22%;
  height: 44%;
}

.hero-motifs .f3 {
  top: 0;
  left: 36%;
  width: 14%;
  height: 100%;
}

.hero-motifs .a1 {
  right: 0;
  bottom: 0;
  width: 28%;
  height: 56%;
}

.hero-motifs .a2 {
  left: 22%;
  top: 4%;
  width: 18%;
  height: 34%;
}

.hero-motifs .a3 {
  left: 52%;
  bottom: 12%;
  width: 16%;
  height: 30%;
}

.hero-kicker {
  font-size: clamp(1.2rem, 5vw, 2.1rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}

.hero-title {
  margin: 0;
  color: var(--text-strong);
}

.hero-title-stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.04em;
  max-width: none;
  margin: 0;
}

.hero-title-main {
  display: block;
  font-size: clamp(3.8rem, 18vw, 8.5rem);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: -0.1em;
  color: var(--text-strong);
  will-change: transform, opacity;
}

.hero-title-sub {
  display: block;
  width: 100%;
  font-size: clamp(0.78rem, 2.2vw, 1.15rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0 0 0.28em 0.18em;
  border-bottom: 1px solid rgba(60, 60, 59, 0.28);
  will-change: transform, opacity;
}

.hero-subtitle {
  margin: 14px 0 0;
  font-size: clamp(0.9rem, 3.6vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.hero-copy {
  max-width: 38rem;
  font-size: 0.98rem;
  color: var(--text);
  margin-top: 24px;
  will-change: transform, opacity;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 0 18px;
  border: 1px solid var(--text-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.button {
  background: var(--text-strong);
  color: var(--bg-soft);
}

.button-secondary {
  background: transparent;
  color: var(--text-strong);
  border-color: rgba(60, 60, 59, 0.28);
}

.button:hover,
.button-secondary:hover,
.button:focus-visible,
.button-secondary:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.hero-foot {
  margin-top: clamp(56px, 10vw, 180px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
}

.hero-foot .site-id {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.hero-foot .site-id strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 6px;
}

.section {
  padding: 0 0 var(--section-gap);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.section-number {
  font-size: 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 2px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 8vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-strong);
}

.section-intro {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 1rem;
  color: var(--text);
}

.page-hero {
  padding: clamp(48px, 10vw, 120px) 0 42px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.34), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.page-hero > .wrap {
  position: relative;
  z-index: 1;
}

.page-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin: 0 0 18px;
}

.page-title {
  margin: 0;
  font-size: clamp(2.2rem, 10vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}

.page-copy {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1rem;
}

.grid-2,
.grid-3,
.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(79, 79, 78, 0.1);
  padding: 22px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(60, 60, 59, 0.07);
}

.card-label {
  font-size: 0.76rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.card-title {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.card p,
.card li {
  font-size: 0.97rem;
}

.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.clean-list li {
  position: relative;
  padding-left: 16px;
}

.clean-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #92928f;
  position: absolute;
  top: 0.6em;
  left: 0;
}

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

.drawings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.drawings-table th,
.drawings-table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(79, 79, 78, 0.12);
  vertical-align: top;
}

.drawings-table th {
  color: var(--text-strong);
  font-weight: 600;
}

.yes,
.no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.yes::before,
.no::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0.95rem;
  line-height: 1;
}

.yes::before {
  content: "✓";
}

.no::before {
  content: "×";
}

.subtle-rule {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.site-footer {
  padding: 34px 0 56px;
  border-top: 1px solid rgba(79, 79, 78, 0.1);
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.reveal,
.reveal-soft {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}

.reveal {
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-soft {
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible,
.reveal-soft.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(60, 60, 59, 0.18);
  background: rgba(244, 244, 243, 0.92);
  color: var(--text-strong);
  font: inherit;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(60, 60, 59, 0.08);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(60, 60, 59, 0.28);
  outline: none;
}

.back-to-top-arrow {
  font-size: 1rem;
  line-height: 1;
}

.back-to-top-text {
  white-space: nowrap;
}

@keyframes floatMotifs {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 719px) {
  .hero-title-main {
    font-size: clamp(3.4rem, 22vw, 6rem);
  }

  .hero-title-sub {
    font-size: clamp(0.72rem, 3vw, 0.95rem);
    letter-spacing: 0.18em;
  }
}

@media (min-width: 720px) {
  .wrap {
    width: min(calc(100% - 40px), var(--max));
  }

  .nav {
    gap: 24px;
    min-height: 76px;
    padding: 0;
  }

  .brand {
    flex: 0 0 auto;
    min-width: auto;
  }

  .brand-mark {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.78rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links-inline {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.84rem;
  }

  .nav-links-inline a {
    padding: 6px 0;
  }

  .nav-links-inline a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background: var(--text-strong);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
  }

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

  .nav-overlay {
    display: none;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .button,
  .button-secondary {
    width: auto;
    min-width: 190px;
  }

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

  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
    min-height: 52px;
    padding: 0 16px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 140px);
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-foot {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }

  .section-head {
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 34px;
  }

  .grid-3,
  .link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .card {
    padding: 26px;
  }
}

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

  .site-header,
  .nav-links a,
  .nav-links-inline a::after,
  .nav-toggle,
  .nav-toggle span,
  .nav-overlay,
  .nav-overlay-brand,
  .nav-overlay-link,
  .nav-overlay-meta,
  .card,
  .button,
  .button-secondary,
  .reveal,
  .reveal-soft,
  .hero-grid,
  .hero-motifs,
  .hero-title-main,
  .hero-title-sub,
  .hero-copy,
  .back-to-top,
  body {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
