:root {
  --blush: #f4e8e6;
  --blush-2: #f8efed;
  --blush-3: #ead8d3;
  --ink: #171918;
  --muted: #55514f;
  --faint: rgba(23, 25, 24, 0.13);
  --rule: rgba(23, 25, 24, 0.18);
  --teal: #2a9d8f;
  --teal-deep: #087467;
  --green: #52b788;
  --stone: #d8cac3;
  --sans: "Raleway", system-ui, sans-serif;
  --serif: "Spectral", Georgia, serif;
  --quote: "Newsreader", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--blush);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.34), transparent 24rem),
    linear-gradient(115deg, var(--blush-2), var(--blush) 45%, #efe0dc);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(90deg, rgba(23, 25, 24, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(23, 25, 24, 0.045) 1px, transparent 1px);
  background-size: 11rem 11rem;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

a {
  color: inherit;
}

em {
  color: var(--teal-deep);
  font-style: normal;
}

strong {
  color: var(--teal-deep);
  font-weight: 600;
  letter-spacing: 0.12em;
}

::selection {
  background: var(--teal);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) auto auto;
  gap: 2rem;
  align-items: center;
  min-height: 7.25rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem);
  background: rgba(244, 232, 230, 0.76);
  border-bottom: 1px solid var(--faint);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  grid-template-columns: 2.25rem auto 1px auto;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.brand-word {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1;
}

.brand-line {
  width: 1px;
  height: 2.25rem;
  background: var(--rule);
}

.brand-tag {
  max-width: 11rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.15;
}

.site-menu {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2.6rem);
  align-items: center;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 500;
}

.site-menu a {
  position: relative;
  padding: 0.35rem 0;
  text-decoration: none;
}

.site-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--teal-deep);
  transition: right 180ms ease;
}

.site-menu a:hover::after,
.site-menu a.active::after {
  right: 0;
}

.site-menu a:last-child {
  color: var(--teal-deep);
}

.menu-toggle {
  display: none;
  justify-self: end;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.8rem 1rem;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(24rem, 0.95fr) minmax(28rem, 1.25fr) minmax(10rem, 0.42fr);
  gap: clamp(1.5rem, 2.4vw, 3rem);
  align-items: center;
  min-height: min(36.5rem, calc(100vh - 7.25rem));
  padding: clamp(1.8rem, 3.6vw, 3.6rem) clamp(1.25rem, 5.2vw, 5.2rem) clamp(1.35rem, 2.5vw, 2.2rem);
  border-bottom: 1px solid var(--rule);
}

.home-hero {
  min-height: min(36.5rem, calc(100vh - 7.25rem));
}

.hero-copy {
  align-self: center;
}

.hero h1,
.content-section h2,
.next-band h2,
.form-intro h2,
.not-found h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.14;
}

.hero h1 {
  max-width: 12.4em;
  font-size: clamp(2.75rem, 3.15vw, 3.55rem);
}

.hero-body {
  max-width: 31rem;
  margin-top: 1.45rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
}

.hero-body p {
  margin: 0 0 1rem;
}

.rule.short {
  width: 4rem;
  height: 1px;
  margin-top: 1.8rem;
  background: var(--teal-deep);
}

.beats {
  margin: 1.1rem 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.beats span {
  margin-left: 0.75rem;
}

.beats strong {
  margin-left: 0.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.9rem;
}

.button,
.site-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.2rem;
  padding: 0 1.45rem;
  border: 1px solid var(--teal-deep);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button.primary,
.site-form button {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: white;
}

.button.secondary {
  background: rgba(248, 239, 237, 0.4);
  color: var(--teal-deep);
}

.button:hover,
.site-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 2rem rgba(8, 116, 103, 0.16);
}

.portal-plate {
  position: relative;
  align-self: stretch;
  min-height: min(49vh, 29rem);
  margin: 0;
}

.portal-plate::before,
.portal-plate::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: 2;
  width: clamp(2rem, 5vw, 6rem);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent),
    linear-gradient(var(--stone), #efe5e0);
  border-inline: 1px solid rgba(23, 25, 24, 0.1);
}

.portal-plate::before {
  left: 0;
}

.portal-plate::after {
  right: 0;
  transform: scaleX(-1);
}

.portal-frame {
  position: absolute;
  inset: 0 clamp(2rem, 5vw, 6rem);
  overflow: hidden;
  background: #d8cac3;
  box-shadow: inset 0 0 0 1px rgba(23, 25, 24, 0.12);
}

.portal-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  filter: saturate(0.78) contrast(0.95) brightness(1.02);
}

.portal-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 232, 230, 0.5), transparent 26%, transparent 70%, rgba(244, 232, 230, 0.26)),
    radial-gradient(circle at 60% 40%, rgba(82, 183, 136, 0.28), transparent 38%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-note {
  align-self: center;
  padding-left: 1.75rem;
  border-left: 2px solid var(--teal-deep);
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.45;
}

.hero-note p {
  margin: 0;
}

.next-band {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  border-bottom: 1px solid var(--rule);
}

.next-band::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  background: var(--rule);
}

.next-band article {
  min-height: 16rem;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 6vw, 6.5rem);
}

.next-band h2 {
  max-width: 14em;
  font-family: var(--quote);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 400;
}

.next-band p {
  max-width: 28rem;
  color: var(--muted);
}

.next-band a,
.footer-next a {
  color: var(--teal-deep);
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
}

.content-flow {
  padding: clamp(1rem, 2vw, 2rem) 0;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(4rem, 0.22fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.25rem, 8vw, 8rem);
  border-bottom: 1px solid var(--faint);
}

.content-section.section-split {
  grid-template-columns: minmax(4rem, 0.22fr) minmax(20rem, 0.9fr);
  justify-content: end;
  background: rgba(255, 255, 255, 0.16);
}

.section-index {
  color: var(--teal-deep);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.section-copy {
  max-width: 61rem;
}

.section-copy h2 {
  max-width: 16em;
  font-family: var(--quote);
  font-size: clamp(2.35rem, 4.4vw, 5rem);
  font-weight: 400;
}

.section-copy p {
  max-width: 46rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
}

.item-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 61rem;
  margin: 2.5rem 0 0;
  padding: 0;
  border: 1px solid var(--faint);
  background: var(--faint);
  list-style: none;
}

.item-list li {
  min-height: 5.5rem;
  padding: 1.2rem 1.35rem;
  background: rgba(248, 239, 237, 0.7);
  color: var(--ink);
}

blockquote {
  max-width: 48rem;
  margin: 0;
  color: var(--ink);
  font-family: var(--quote);
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  font-style: italic;
  line-height: 1.12;
}

blockquote cite {
  display: block;
  margin-top: 1.4rem;
  color: var(--teal-deep);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.text-card {
  min-height: 12rem;
  padding: 1.6rem;
  background: rgba(248, 239, 237, 0.78);
  color: var(--ink);
  text-decoration: none;
}

.text-card span {
  display: inline-block;
  margin-bottom: 1.6rem;
  color: var(--teal-deep);
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.text-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 500;
}

.text-card p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1rem;
}

.text-card b {
  display: inline-block;
  margin-top: 1rem;
  color: var(--teal-deep);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 8vw, 8rem);
  background: linear-gradient(135deg, rgba(8, 116, 103, 0.09), rgba(255, 255, 255, 0.12));
  border-bottom: 1px solid var(--rule);
}

.form-intro span {
  color: var(--teal-deep);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.form-intro h2 {
  margin-top: 1rem;
  font-family: var(--quote);
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  font-weight: 400;
}

.form-intro p {
  max-width: 35rem;
  color: var(--muted);
}

.site-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-self: start;
}

.site-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-form label:has(textarea),
.site-form .form-note,
.site-form .form-success,
.site-form button {
  grid-column: 1 / -1;
}

.site-form input,
.site-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: rgba(248, 239, 237, 0.68);
  color: var(--ink);
  font: 1rem var(--serif);
  outline: none;
  padding: 1rem;
}

.site-form input:focus,
.site-form textarea:focus {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.12);
}

.site-form .form-note,
.site-form .form-success {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-form .form-success {
  color: var(--teal-deep);
  font-family: var(--sans);
  font-weight: 600;
}

.site-footer {
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 6vw, 6.5rem);
  background: #151817;
  color: #f4e8e6;
}

.footer-next {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244, 232, 230, 0.18);
}

.footer-next span {
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-next a {
  color: #f4e8e6;
  font-family: var(--quote);
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 400;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  color: rgba(244, 232, 230, 0.72);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: flex-end;
}

.footer-links a {
  text-decoration: none;
}

.not-found {
  min-height: 60vh;
  padding: 10rem clamp(1.25rem, 8vw, 8rem);
}

.not-found p {
  max-width: 32rem;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-menu {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .portal-plate {
    min-height: 34rem;
    order: -1;
  }

  .hero-note {
    max-width: 32rem;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 5.8rem;
    padding: 1rem;
  }

  .brand {
    grid-template-columns: 2rem auto;
    gap: 0.75rem;
  }

  .brand-line,
  .brand-tag {
    display: none;
  }

  .brand-word {
    font-size: 1.18rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 1rem;
  }

  .site-menu.open {
    display: flex;
  }

  .site-menu a {
    padding: 0.9rem 0;
    border-top: 1px solid var(--faint);
  }

  .hero {
    padding: 2rem 1rem 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 2.85rem);
  }

  .portal-plate {
    min-height: 26rem;
  }

  .portal-plate::before,
  .portal-plate::after {
    width: 2rem;
  }

  .portal-frame {
    inset-inline: 2rem;
  }

  .next-band,
  .content-section,
  .form-section {
    grid-template-columns: 1fr;
  }

  .next-band::before {
    display: none;
  }

  .content-section,
  .form-section {
    padding-inline: 1rem;
  }

  .section-index {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.75rem;
  }

  .item-list,
  .section-cards,
  .site-form {
    grid-template-columns: 1fr;
  }

  .footer-next,
  .footer-grid {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
