:root {
  --site-nav-h: 96px;
}

html {
  scroll-padding-top: calc(var(--review-strip-h) + var(--site-nav-h) + 16px);
}

.review-strip nav a {
  width: 44px;
  height: 44px;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: calc(var(--review-strip-h) + 12px);
  left: 12px;
  z-index: 500;
  padding: 12px 16px;
  background: #fffaf0;
  color: #173b33;
  font-size: 0.9rem;
  font-weight: 700;
}

.sticky-site-nav {
  position: sticky;
  top: var(--review-strip-h);
  z-index: 100;
  min-height: var(--site-nav-h);
  margin-bottom: calc(var(--site-nav-h) * -1);
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--light);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.sticky-site-nav.is-scrolled,
.sticky-site-nav.menu-open {
  border-bottom-color: rgba(243, 231, 208, 0.26);
  background: var(--dark);
  box-shadow: 0 12px 34px rgba(6, 28, 24, 0.16);
}

.sticky-site-nav nav a {
  min-height: 48px;
  padding-inline: 2px;
  font-size: 14px;
  line-height: 1.3;
}

.sticky-site-nav .nav-cta {
  padding-inline: 20px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.sticky-site-nav .nav-cta:hover,
.sticky-site-nav .nav-cta:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--dark);
}

.sticky-site-nav nav a[aria-current="page"]:not(.nav-cta) {
  color: #f3dfb6;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.hero {
  padding-top: var(--site-nav-h);
}

.hero-field {
  bottom: 104px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 6;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.88);
  border-radius: 50%;
  background: rgba(10, 39, 33, 0.28);
  color: var(--light);
  transform: translateX(-50%);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.hero-scroll-indicator__chevron {
  width: 16px;
  height: 16px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-4px) rotate(45deg);
}

.hero-scroll-indicator:hover,
.hero-scroll-indicator:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--dark);
}

.motion-control {
  top: calc(var(--site-nav-h) + 24px);
  right: clamp(28px, 5vw, 80px);
  bottom: auto;
}

.clean-principle {
  min-height: 820px;
  display: flex;
  align-items: center;
  padding: 88px clamp(28px, 6vw, 108px);
  background-color: var(--dark);
  background-image:
    linear-gradient(rgba(255, 250, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 240, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--light);
}

.clean-principle-frame {
  position: relative;
  width: min(1420px, 100%);
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 138px);
  border: 1px solid rgba(255, 250, 240, 0.72);
  background: none;
  background-image: none;
  box-shadow: inset 0 0 0 12px rgba(255, 250, 240, 0.025);
}

.clean-principle-copy {
  width: min(1100px, 100%);
  text-align: center;
}

.clean-principle-copy blockquote {
  max-width: 1080px;
  margin: 34px auto 0;
  font-family: var(--display);
  font-size: clamp(62px, 6.2vw, 112px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.principle-corner {
  position: absolute;
  z-index: -1;
  width: 104px;
  height: 104px;
  background: var(--accent);
  pointer-events: none;
}

.principle-corner-a {
  top: -18px;
  left: -18px;
}

.principle-corner-b {
  right: -18px;
  bottom: -18px;
}

.week-contact {
  --contact-ink: #173b33;
  --muted: #455951;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: clamp(88px, 10vw, 160px) 0;
  background: #eee6d5;
  color: var(--contact-ink);
}

.week-contact-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(62px, 9vw, 150px);
  align-items: start;
}

.week-contact-copy .display {
  max-width: 790px;
  font-size: clamp(58px, 6.4vw, 104px);
}

.week-contact-copy > p:last-child {
  max-width: 650px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.7;
}

.week-signal {
  position: absolute;
  top: 0;
  right: 0;
  width: min(36vw, 600px);
  height: 16px;
  background: var(--accent);
}

.contact-form {
  position: relative;
}

.contact-form fieldset {
  display: grid;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field {
  min-width: 0;
}

.form-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.required-note {
  opacity: 0.62;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(23, 59, 51, 0.42);
  border-radius: 0;
  background: rgba(255, 250, 240, 0.5);
  color: var(--contact-ink);
  font: 400 1rem/1.5 var(--body);
}

.form-field input {
  padding: 0 16px;
}

.form-field textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.form-actions button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 22px;
  border: 1px solid var(--contact-ink);
  border-radius: 0;
  background: var(--contact-ink);
  color: var(--light);
  font: 800 0.72rem/1.2 var(--utility);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.form-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.form-guidance {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 59, 51, 0.28);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.form-guidance p {
  margin: 0 0 8px;
}

.form-guidance a {
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

/* A — Open Ledger */
.week-contact-a {
  background:
    linear-gradient(90deg, transparent 0 49.95%, rgba(23, 59, 51, 0.08) 50%, transparent 50.05%),
    #eee6d5;
}

.form-open-ledger {
  padding-left: clamp(28px, 4vw, 58px);
  border-left: 2px solid var(--accent);
}

.form-open-ledger fieldset {
  gap: 30px;
}

.form-open-ledger .form-field input,
.form-open-ledger .form-field textarea {
  border-width: 0 0 1px;
  background: transparent;
}

.form-open-ledger .form-field input {
  padding-inline: 0;
}

.form-open-ledger .form-field textarea {
  padding-inline: 0;
}

.form-open-ledger .form-actions {
  margin-top: 34px;
}

/* B — Beacon Card */
.week-contact-b {
  background:
    radial-gradient(circle at 8% 53%, transparent 0 86px, rgba(23, 59, 51, 0.12) 87px 89px, transparent 90px 152px),
    #d9ceb5;
}

.week-contact-b .week-contact-form {
  position: relative;
}

.week-contact-b .week-contact-form::after {
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  background: var(--accent);
  content: "";
}

.form-beacon-card {
  padding: clamp(34px, 4vw, 58px);
  background: #fbf7ed;
}

.form-card-label {
  margin-bottom: 34px;
  color: #8a6538;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-beacon-card fieldset {
  grid-template-columns: 1fr 1fr;
  gap: 28px 22px;
}

.form-beacon-card .form-field:last-child {
  grid-column: 1 / -1;
}

.form-beacon-card .form-actions {
  margin-top: 28px;
}

/* C — Division-of-Labor Register */
.week-contact-c {
  background:
    linear-gradient(rgba(23, 59, 51, 0.06) 1px, transparent 1px),
    #f1eadc;
  background-size: 100% 56px;
}

.form-register {
  border-top: 2px solid var(--contact-ink);
}

.form-register fieldset {
  display: block;
}

.form-register .register-field {
  display: grid;
  grid-template-columns: 44px minmax(118px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(23, 59, 51, 0.35);
}

.form-register .register-field label {
  display: block;
  margin: 0;
  letter-spacing: 0.07em;
}

.form-register .register-field .required-note {
  display: block;
  margin-top: 6px;
}

.register-index {
  color: #8a6538;
  font: 800 0.68rem/1 var(--utility);
}

.form-register .form-field input,
.form-register .form-field textarea {
  border: 0;
  background: rgba(255, 250, 240, 0.62);
}

.form-register .form-field textarea {
  min-height: 108px;
}

.form-register .form-actions {
  margin-top: 26px;
}

/* D — Conversation Folio */
.week-contact-d {
  background: #e5dbc7;
}

.form-folio {
  padding: clamp(38px, 5vw, 72px);
  border: 1px solid var(--contact-ink);
  background: rgba(255, 250, 240, 0.28);
}

.folio-corner {
  position: absolute;
  width: 66px;
  height: 66px;
  background: var(--accent);
  pointer-events: none;
}

.folio-corner-a {
  top: -12px;
  left: -12px;
}

.folio-corner-b {
  right: -12px;
  bottom: -12px;
}

.form-folio fieldset,
.form-folio .form-actions,
.form-folio .form-guidance {
  position: relative;
  z-index: 1;
}

.form-folio fieldset {
  gap: 28px;
}

.form-folio .form-field input,
.form-folio .form-field textarea {
  background: #f6efe2;
}

.form-folio .form-actions {
  margin-top: 30px;
}

/* E — Horizontal Signal Bar */
.week-contact-e {
  padding-bottom: clamp(88px, 9vw, 140px);
}

.week-contact-e .week-contact-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
}

.week-contact-e .week-contact-copy > p:last-child {
  max-width: 500px;
}

.week-contact-e .week-contact-form {
  margin-top: 0;
}

.form-signal-bar {
  position: relative;
  padding: clamp(34px, 4vw, 58px);
  padding-top: clamp(76px, 7vw, 104px);
  overflow: hidden;
  background: var(--dark);
  color: var(--light);
}

.form-signal-bar::before {
  position: absolute;
  top: 38px;
  right: clamp(34px, 4vw, 58px);
  left: clamp(34px, 4vw, 58px);
  height: 10px;
  background:
    linear-gradient(
      90deg,
      var(--accent) 0 31%,
      rgba(255, 250, 240, 0.24) 31% 33%,
      var(--accent) 33% 64%,
      rgba(255, 250, 240, 0.24) 64% 66%,
      var(--accent) 66% 100%
    );
  content: "";
}

.form-signal-bar fieldset {
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}

.form-signal-bar .form-field:last-child {
  grid-column: 1 / -1;
}

.form-signal-bar .form-field input,
.form-signal-bar .form-field textarea {
  border-color: rgba(255, 250, 240, 0.52);
  background: rgba(255, 250, 240, 0.06);
  color: var(--light);
}

.form-signal-bar .form-actions {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}

.form-signal-bar .form-actions button {
  border-color: var(--accent);
  background: var(--accent);
  color: #0b2b25;
}

.form-signal-bar .form-status {
  margin: 0;
  color: rgba(255, 250, 240, 0.66);
}

.form-signal-bar .form-guidance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-color: rgba(255, 250, 240, 0.24);
  color: rgba(255, 250, 240, 0.72);
}

.clean-footer {
  background: #0b2b25;
  background-image: none;
}

.clean-footer::before,
.clean-footer::after {
  display: none;
  background: none;
  content: none;
}

.clean-footer .footer-word {
  color: #f3e7d0;
}

.clean-footer .footer-directory a {
  text-underline-offset: 0.25em;
  transition:
    color 160ms ease,
    opacity 160ms ease,
    text-decoration-color 160ms ease;
}

.clean-footer .footer-directory a:hover,
.clean-footer .footer-directory a[aria-current="page"] {
  color: #fffaf0;
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

@media (max-width: 980px) {
  .week-contact-layout {
    grid-template-columns: 1fr;
  }

  .week-contact-copy {
    max-width: 820px;
  }

  .week-contact-form {
    max-width: 760px;
  }

  .week-contact-e .week-contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .sticky-site-nav nav {
    position: absolute;
    top: calc(var(--site-nav-h) - 6px);
    right: clamp(20px, 4vw, 48px);
    left: clamp(20px, 4vw, 48px);
    z-index: 10;
    display: none;
    padding: 16px;
    border: 1px solid var(--accent);
    background: var(--dark);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  }

  .sticky-site-nav nav.is-open {
    display: grid;
  }

  .sticky-site-nav nav a {
    min-height: 54px;
    padding-inline: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 16px;
  }

  .sticky-site-nav nav a[aria-current="page"]:not(.nav-cta) {
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .sticky-site-nav .nav-cta {
    margin-top: 12px;
    justify-content: center;
    border-bottom: 1px solid currentColor;
  }

  .sticky-site-nav .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  :root {
    --site-nav-h: 84px;
  }

  .sticky-site-nav {
    min-height: var(--site-nav-h);
  }

  .sticky-site-nav nav {
    top: calc(var(--site-nav-h) - 6px);
    z-index: 10;
    background: var(--dark);
  }

  .sticky-site-nav nav a {
    min-height: 54px;
    padding-inline: 14px;
    font-size: 16px;
  }

  .hero-field {
    bottom: 104px;
  }

  .hero-scroll-indicator {
    width: 48px;
    height: 48px;
  }

  .motion-control {
    top: calc(var(--site-nav-h) + 18px);
    right: 20px;
    bottom: auto;
  }

  .clean-principle {
    min-height: 0;
    padding-block: 76px;
  }

  .clean-principle-frame {
    min-height: 560px;
    padding: 70px 42px;
  }

  .principle-corner {
    width: 72px;
    height: 72px;
  }

  .week-contact {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .clean-principle {
    background-size: 54px 54px;
  }

  .clean-principle-frame {
    width: calc(100% - 14px);
    min-height: 500px;
    padding: 64px 24px;
    box-shadow: none;
  }

  .clean-principle-copy blockquote {
    font-size: clamp(46px, 13vw, 66px);
  }

  .principle-corner {
    width: 52px;
    height: 52px;
  }

  .week-contact-layout {
    width: min(100% - 36px, 1240px);
    gap: 48px;
  }

  .week-contact-copy .display {
    font-size: clamp(48px, 13vw, 68px);
  }

  .form-open-ledger {
    padding-left: 20px;
  }

  .week-contact-b .week-contact-form::after {
    inset: 8px -8px -8px 8px;
  }

  .form-beacon-card {
    padding: 30px 22px;
  }

  .form-beacon-card fieldset,
  .form-signal-bar fieldset,
  .form-signal-bar .form-actions,
  .form-signal-bar .form-guidance {
    grid-template-columns: 1fr;
  }

  .form-beacon-card .form-field:last-child,
  .form-signal-bar .form-field:last-child {
    grid-column: auto;
  }

  .form-register .register-field {
    grid-template-columns: 34px 1fr;
  }

  .form-register .register-field input,
  .form-register .register-field textarea {
    grid-column: 1 / -1;
  }

  .form-folio {
    padding: 42px 22px;
  }

  .folio-corner {
    display: none;
  }

  .form-signal-bar {
    padding: 76px 20px 32px;
  }

  .form-signal-bar::before {
    top: 30px;
    right: 20px;
    left: 20px;
  }

  .form-signal-bar .form-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sticky-site-nav {
    padding-inline: 16px;
  }

  .sticky-site-nav .brand-mark {
    width: 38px;
    height: 38px;
  }

  .sticky-site-nav .brand-type--single strong {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    visibility: hidden;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .sticky-site-nav,
  .clean-principle,
  .form-signal-bar,
  .clean-footer {
    forced-color-adjust: auto;
  }

  .form-field input,
  .form-field textarea,
  .form-actions button {
    border: 1px solid CanvasText;
  }

  .hero-scroll-indicator,
  .sticky-site-nav .nav-cta {
    border-color: LinkText;
  }
}
