:root {
  color-scheme: dark;
  --ink: #070b0f;
  --navy: #071724;
  --ivory: #f4f0e7;
  --muted: #c9c3b8;
  --gold: #c8ae76;
  --gold-bright: #d7bf8b;
  --line: rgba(223, 211, 183, 0.24);
  --page-x: clamp(30px, 4.2vw, 82px);
  --page-y: clamp(26px, 3.2vw, 62px);
  --display: "Bodoni 72", Didot, "Bodoni MT", "Iowan Old Style", "Times New Roman", serif;
  --serif: "Iowan Old Style", Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
}

body {
  color: var(--ivory);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.012);
  animation: architectural-drift 38s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 10, 17, 0.18) 0%, rgba(2, 10, 17, 0.04) 55%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.09) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.page-frame {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--page-y) var(--page-x) clamp(24px, 2.7vw, 50px);
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  opacity: 0;
  animation: content-arrival 1.1s 0.1s ease-out forwards;
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(25px, 2.05vw, 40px);
  line-height: 0.95;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.descriptor {
  margin-top: 12px;
  color: rgba(244, 240, 231, 0.82);
  font-family: var(--serif);
  font-size: clamp(10px, 0.67vw, 13px);
  line-height: 1.3;
  letter-spacing: 0.16em;
}

.text-access,
.footer-access {
  border: 0;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}

.text-access {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 34px;
  padding: 3px 0 0;
  font-size: clamp(10px, 0.56vw, 11px);
  font-weight: 600;
  letter-spacing: 0.28em;
  white-space: nowrap;
}

.access-rule {
  display: block;
  width: 34px;
  height: 1px;
  background: var(--gold);
  transition: width 350ms ease;
}

.text-access:hover .access-rule,
.text-access:focus-visible .access-rule {
  width: 48px;
}

.header-rule,
.footer-rule {
  height: 1px;
  background: var(--line);
}

.header-rule {
  margin-top: clamp(30px, 3.1vw, 58px);
  opacity: 0;
  animation: rule-reveal 1.4s 0.25s ease-out forwards;
  transform-origin: left;
}

.hero-copy {
  align-self: center;
  width: min(76vw, 1310px);
  padding: 3vh 0 1vh;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-arrival 1.2s 0.35s cubic-bezier(.22,.74,.2,1) forwards;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(10px, 0.61vw, 12px);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.32em;
}

.eyebrow span {
  display: inline-block;
  padding: 0 0.85em;
}

h1 {
  margin: clamp(28px, 3vw, 50px) 0 0;
  font-family: var(--display);
  font-size: clamp(72px, 7.7vw, 148px);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.05em;
}

.title-line {
  display: block;
  white-space: nowrap;
}

.title-gold {
  margin-top: 0.1em;
  color: var(--gold);
  font-style: italic;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px 42px;
  opacity: 0;
  animation: content-arrival 1.1s 0.65s ease-out forwards;
}

.footer-rule {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

.footer-access {
  justify-self: start;
  padding: 8px 0;
  font-size: clamp(10px, 0.57vw, 11px);
  font-weight: 650;
  letter-spacing: 0.3em;
}

.footer-access::after {
  display: block;
  width: 0;
  height: 1px;
  margin-top: 6px;
  background: var(--gold);
  content: "";
  transition: width 350ms ease;
}

.footer-access:hover::after,
.footer-access:focus-visible::after {
  width: 100%;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.5vw, 66px);
  padding: 8px 0;
  color: rgba(244, 240, 231, 0.72);
  font-size: clamp(10px, 0.52vw, 11px);
  font-weight: 600;
  letter-spacing: 0.23em;
  white-space: nowrap;
}

.dialog-layer {
  position: fixed;
  z-index: 20;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.dialog-layer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(1, 5, 8, 0.64);
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: opacity 520ms ease, backdrop-filter 520ms ease;
}

.is-open .dialog-backdrop {
  opacity: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.correspondence-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(650px, 100vw);
  height: 100%;
  overflow: hidden auto;
  border-left: 1px solid rgba(202, 174, 118, 0.3);
  background:
    linear-gradient(150deg, rgba(29, 27, 24, 0.3), transparent 42%),
    rgba(8, 11, 14, 0.985);
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.45);
  transform: translateX(102%);
  transition: transform 680ms cubic-bezier(.22,.78,.18,1);
  scrollbar-color: rgba(200, 174, 118, 0.45) transparent;
  scrollbar-width: thin;
}

.is-open .correspondence-panel {
  transform: translateX(0);
}

.panel-inner {
  position: relative;
  min-height: 100%;
  padding: clamp(42px, 5vw, 72px) clamp(28px, 4vw, 64px) 38px;
}

.panel-close {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 240, 231, 0.2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.panel-close span {
  position: absolute;
  top: 20px;
  left: 12px;
  width: 16px;
  height: 1px;
  background: var(--ivory);
}

.panel-close span:first-child {
  transform: rotate(45deg);
}

.panel-close span:last-child {
  transform: rotate(-45deg);
}

.panel-heading {
  padding: 36px 54px 32px 0;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  max-width: 500px;
  margin: 24px 0 20px;
  font-family: var(--display);
  font-size: clamp(38px, 3.15vw, 54px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.panel-notice {
  max-width: 510px;
  margin: 0;
  color: rgba(244, 240, 231, 0.7);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.62;
}

#correspondence-form {
  padding-top: 30px;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 22px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.label-row span {
  display: block;
  margin-bottom: 9px;
  color: rgba(244, 240, 231, 0.65);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.label-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(244, 240, 231, 0.25);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 200ms ease;
}

.field input,
.field select {
  height: 42px;
  padding: 3px 2px 10px;
}

.field textarea {
  min-height: 112px;
  padding: 8px 2px 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: 0;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(244, 240, 231, 0.35);
}

.field select {
  color-scheme: dark;
}

.acknowledgment {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  margin: 26px 0 22px;
  color: rgba(244, 240, 231, 0.76);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
}

.acknowledgment input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkmark {
  display: block;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 1px solid rgba(244, 240, 231, 0.38);
}

.acknowledgment input:focus-visible + .checkmark {
  outline: 1px solid var(--gold-bright);
  outline-offset: 3px;
}

.acknowledgment input:checked + .checkmark {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.form-status {
  min-height: 20px;
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 12px;
  line-height: 1.5;
}

.form-status.is-error {
  color: #d9a79c;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid rgba(202, 174, 118, 0.58);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.24em;
  transition: background 250ms ease, color 250ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--gold);
  color: #090a0b;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.panel-legal {
  display: flex;
  gap: 24px;
  margin-top: 26px;
}

.panel-legal a {
  color: rgba(244, 240, 231, 0.54);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.panel-legal a:hover {
  color: var(--gold-bright);
}

.legal-page {
  min-height: 100vh;
  padding: clamp(32px, 6vw, 90px);
  background: radial-gradient(circle at 90% 5%, #17202a 0%, var(--ink) 45%);
}

.legal-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
}

.legal-wordmark {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.legal-wrap h1 {
  margin: 90px 0 35px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.95;
  white-space: normal;
}

.legal-wrap h2 {
  margin: 36px 0 10px;
  color: var(--gold-bright);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.legal-wrap p,
.legal-wrap li {
  color: rgba(244, 240, 231, 0.72);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
}

.legal-wrap a {
  color: var(--gold-bright);
}

@keyframes architectural-drift {
  from { transform: scale(1.012) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(-0.35%, -0.15%, 0); }
}

@keyframes content-arrival {
  to { opacity: 1; }
}

@keyframes rule-reveal {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes hero-arrival {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  :root {
    --page-x: clamp(24px, 5vw, 42px);
    --page-y: clamp(24px, 4vw, 38px);
  }

  .text-access {
    max-width: 260px;
    white-space: normal;
    text-align: right;
  }

  .hero-copy {
    width: 90vw;
  }

  h1 {
    font-size: clamp(60px, 9.2vw, 92px);
  }

  .footer-meta {
    gap: 24px;
  }
}

@media (max-width: 620px) {
  .site-shell {
    min-height: 100svh;
  }

  .hero-media img {
    object-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(2, 9, 15, 0.68) 0%, rgba(2, 9, 15, 0.3) 70%, rgba(0, 0, 0, 0.15) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 54%, rgba(0, 0, 0, 0.34) 100%);
  }

  .page-frame {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .site-header {
    gap: 16px;
  }

  .wordmark {
    font-size: clamp(20px, 5.7vw, 25px);
  }

  .descriptor {
    max-width: 210px;
    margin-top: 8px;
    font-size: 9px;
    letter-spacing: 0.09em;
  }

  .text-access {
    max-width: 145px;
    gap: 9px;
    padding-top: 0;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 0.18em;
  }

  .access-rule {
    display: none;
  }

  .header-rule {
    margin-top: 24px;
  }

  .hero-copy {
    align-self: end;
    width: 100%;
    padding: 0 0 10vh;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.24em;
  }

  h1 {
    margin-top: 24px;
    font-size: 10.5vw;
    line-height: 0.92;
  }

  .title-line {
    white-space: normal;
  }

  .title-gold {
    font-size: 1.08em;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }

  .footer-rule {
    margin-bottom: 8px;
  }

  .footer-access,
  .footer-meta {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    white-space: normal;
    text-align: right;
  }

  .panel-inner {
    padding: 34px 23px 30px;
  }

  .panel-close {
    top: 18px;
    right: 18px;
  }

  .panel-heading {
    padding: 34px 42px 26px 0;
  }

  .panel-heading h2 {
    margin-top: 20px;
    font-size: 38px;
  }

  .panel-notice {
    font-size: 13px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .field-wide {
    grid-column: auto;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
}

@media (max-height: 700px) and (min-width: 621px) {
  .hero-copy {
    padding: 2vh 0;
  }

  h1 {
    margin-top: 18px;
    font-size: min(7vw, 92px);
  }

  .header-rule {
    margin-top: 20px;
  }

  .footer-rule {
    margin-bottom: 8px;
  }
}

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

  .site-header,
  .header-rule,
  .hero-copy,
  .site-footer {
    opacity: 1;
    transform: none;
  }
}
