@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/instrument-sans-500.woff2") format("woff2");
}

:root {
  --page-top: #f5efe3;
  --page-mid: #dfd6c8;
  --page-bottom: #9aa7a0;
  --mist: rgba(255, 251, 245, 0.7);
  --brass-glow: rgba(214, 182, 126, 0.28);
  --surface: rgba(255, 253, 250, 0.7);
  --surface-strong: rgba(255, 252, 247, 0.86);
  --text: #1f2a28;
  --muted: #54615b;
  --line: rgba(73, 88, 82, 0.14);
  --shadow: rgba(36, 51, 48, 0.14);
  --shadow-strong: rgba(33, 44, 41, 0.18);
  --focus: #87662e;
  --button: #23312e;
  --button-hover: #17211f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-mid);
  color-scheme: light;
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  isolation: isolate;
  font-family: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 14%, var(--mist) 0%, rgba(252, 245, 231, 0.18) 34%, rgba(252, 245, 231, 0) 64%),
    radial-gradient(circle at 22% 10%, var(--brass-glow) 0%, rgba(213, 180, 126, 0) 30%),
    radial-gradient(circle at 80% 24%, rgba(144, 160, 151, 0.16) 0%, rgba(144, 160, 151, 0) 28%),
    linear-gradient(180deg, var(--page-top) 0%, #ece3d6 35%, var(--page-mid) 62%, var(--page-bottom) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

body::after {
  background:
    radial-gradient(circle at 50% -4%, rgba(255, 250, 240, 0.22) 0%, rgba(255, 250, 240, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 28%, rgba(31, 44, 42, 0.08) 100%);
}

.site-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

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

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.site-backdrop::before,
.site-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
}

.site-backdrop::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 82% 18%, rgba(195, 213, 204, 0.36) 0%, rgba(195, 213, 204, 0) 28%),
    radial-gradient(circle at 50% 72%, rgba(214, 182, 126, 0.18) 0%, rgba(214, 182, 126, 0) 34%);
}

.site-backdrop::after {
  background-image: url("/assets/brass-book-mark.png");
  background-repeat: no-repeat;
  background-position: right -8vw top 8rem;
  background-size: min(46rem, 64vw);
  opacity: 0.11;
  filter: blur(4px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(247, 241, 231, 0.88), rgba(247, 241, 231, 0.42));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header-inner,
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.site-nav-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-brand-mark {
  width: clamp(2.75rem, 4.2vw, 3.65rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 0.85rem 1.7rem rgba(36, 51, 48, 0.12));
}

.site-menu-toggle {
  display: none;
}

.site-nav-shell {
  display: flex;
}

.site-brand-name,
.eyebrow,
.section-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.4);
}

.site-menu-toggle {
  align-items: center;
  gap: 0.7rem;
  min-height: 2.85rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(73, 88, 82, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.site-menu-toggle:hover,
.site-menu-toggle:focus-visible,
.site-header-nav-open .site-menu-toggle {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(73, 88, 82, 0.18);
}

.site-menu-toggle-lines {
  display: inline-grid;
  gap: 0.28rem;
}

.site-menu-toggle-lines span {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-main {
  flex: 1 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) 0 5rem;
}

.site-main-legal {
  padding-bottom: 2rem;
}

body.modal-open {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 7rem);
  min-height: calc(100svh - 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.hero-copy {
  max-width: 34rem;
}

.hero h1,
.page-intro h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-subtext,
.page-summary,
.section-copy,
.legal-card p,
.legal-card li,
.form-note,
.form-status,
.site-footer,
.contact-copy,
.site-nav a,
input,
textarea,
button {
  font-size: 1rem;
  line-height: 1.65;
}

.hero-subtext,
.page-summary,
.section-copy,
.legal-card p,
.legal-card li,
.form-note,
.contact-copy {
  margin: 1.1rem 0 0;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.7rem;
  flex-wrap: wrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: #f8f6f1;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1rem 2.25rem rgba(23, 33, 31, 0.18);
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--button-hover);
  transform: translateY(-1px);
  box-shadow: 0 1.2rem 2.75rem rgba(23, 33, 31, 0.22);
}

.button-link-secondary {
  background: rgba(35, 49, 46, 0.08);
  color: var(--text);
  box-shadow: none;
}

.button-link-secondary:hover,
.button-link-secondary:focus-visible {
  background: rgba(35, 49, 46, 0.14);
  box-shadow: none;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-mark-frame,
.legal-card,
.contact-card,
.contact-form {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(250, 247, 241, 0.62));
  box-shadow: 0 1.4rem 3rem var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-mark-frame {
  width: min(100%, 30rem);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 2rem;
  overflow: hidden;
}

.hero-mark-frame::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 242, 0.7) 0%, rgba(255, 250, 242, 0) 72%);
}

.hero-mark {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1.3rem 2.4rem rgba(36, 51, 48, 0.16));
}

.contact-section,
.legal-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.contact-section {
  padding-bottom: 2rem;
}

.contact-card,
.contact-form,
.legal-card {
  border-radius: 1.75rem;
  padding: clamp(1.5rem, 3.2vw, 2.2rem);
}

.contact-card h2,
.legal-card h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.legal-card a,
.site-footer a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.field-error {
  margin: 0;
  color: #7a3326;
  font-size: 0.92rem;
  line-height: 1.45;
}

.field-error[hidden] {
  display: none;
}

label {
  font-size: 0.96rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(73, 88, 82, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 0.95rem 1rem;
  resize: vertical;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(135, 102, 46, 0.55);
  box-shadow: 0 0 0 4px rgba(135, 102, 46, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(139, 62, 47, 0.5);
  box-shadow: 0 0 0 4px rgba(139, 62, 47, 0.12);
}

.form-note,
.form-status {
  margin: 0;
}

.form-status {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(35, 49, 46, 0.08);
}

.form-status-success {
  background: rgba(35, 49, 46, 0.08);
  color: var(--text);
}

.form-status-error {
  background: rgba(139, 62, 47, 0.12);
  color: #7a3326;
}

.button-link:disabled,
.button-link[aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(35, 49, 46, 0.34);
  box-shadow: none;
  transform: none;
}

.page-intro {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.page-summary {
  max-width: 38rem;
}

.page-meta {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.document-page {
  padding: clamp(2rem, 5vw, 3.5rem) 0 2rem;
}

.document-page-legal {
  padding-bottom: 1rem;
}

.document-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1.9rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 247, 241, 0.68));
  box-shadow: 0 1.4rem 3rem var(--shadow);
  backdrop-filter: blur(12px);
}

.document-frame-header {
  margin-bottom: 2rem;
}

.document-frame-copy {
  max-width: 42rem;
}

.document-frame-copy h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.document-viewer-shell {
  position: relative;
  min-height: clamp(33rem, 72vh, 46rem);
  border: 1px solid rgba(73, 88, 82, 0.1);
  border-radius: 1.45rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.56);
}

.document-viewer {
  width: 100%;
  height: clamp(33rem, 72vh, 46rem);
  border: 0;
  display: block;
}

.document-viewer-shell-legal {
  min-height: clamp(38rem, calc(100svh - 17rem), 56rem);
  height: clamp(38rem, calc(100svh - 17rem), 56rem);
}

.document-viewer-shell-legal > .document-viewer {
  min-height: clamp(38rem, calc(100svh - 17rem), 56rem);
  height: clamp(38rem, calc(100svh - 17rem), 56rem);
}

.document-viewer-loading {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 247, 241, 0.64));
  text-align: center;
}

.document-viewer-loading-label {
  margin: 0;
  color: var(--muted);
}

.document-error {
  margin: 1rem 0 0;
  color: #7a3326;
}

.document-fallback[hidden] {
  display: none;
}

.document-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255, 252, 247, 0.94);
  text-align: center;
}

.document-fallback-message {
  margin: 0;
  color: #7a3326;
}

.document-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.legal-layout {
  padding-bottom: 2rem;
}

.legal-card {
  min-height: 100%;
}

.legal-card p + p {
  margin-top: 0.9rem;
}

.modal-overlay[hidden],
.verification-error[hidden],
.form-status[hidden] {
  display: none !important;
}

.legal-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.legal-list li + li {
  margin-top: 0.6rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(24, 34, 31, 0.36);
  backdrop-filter: blur(12px);
}

.modal-box {
  position: relative;
  width: min(100%, 31rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 247, 241, 0.82));
  box-shadow: 0 1.8rem 3.2rem var(--shadow-strong);
}

.modal-content {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
}

.modal-copy {
  max-width: none;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(35, 49, 46, 0.08);
  color: var(--text);
  cursor: pointer;
}

.verification-prompt {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.verification-error {
  margin: 0;
  color: #7a3326;
}

.modal-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.apps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  padding-bottom: 2rem;
}

.app-card {
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  padding: clamp(1.5rem, 3.2vw, 2.2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(250, 247, 241, 0.62));
  box-shadow: 0 1.4rem 3rem var(--shadow);
  backdrop-filter: blur(10px);
}

.app-card h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.app-release,
.app-platform {
  margin: 1rem 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 2rem;
  color: var(--muted);
}

.site-footer-inner {
  padding: 1rem 0 0;
  border-top: 1px solid rgba(73, 88, 82, 0.12);
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal-delay-1 {
  animation-delay: 100ms;
}

.reveal-delay-2 {
  animation-delay: 220ms;
}

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

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

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .site-header {
    padding: 0.85rem 0;
  }

  .site-header-inner {
    align-items: center;
    gap: 0.9rem;
  }

  .site-footer-inner {
    align-items: flex-start;
  }

  .site-brand-name {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

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

  .site-nav-shell {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    min-width: min(17rem, calc(100vw - 1.25rem));
    display: none;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 241, 0.88));
    box-shadow: 0 1.25rem 2.4rem rgba(23, 33, 31, 0.18);
    backdrop-filter: blur(16px);
  }

  .site-header-nav-open .site-nav-shell {
    display: block;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .site-nav a {
    width: 100%;
    min-height: 3rem;
    justify-content: flex-start;
    padding: 0.75rem 0.95rem;
    border-radius: 1rem;
  }

  .hero,
  .contact-section,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 1.75rem;
  }

  .hero h1,
  .page-intro h1 {
    font-size: clamp(2.5rem, 14vw, 3.8rem);
  }

  .site-backdrop::after {
    background-position: center top 5.8rem;
    background-size: min(28rem, 92vw);
    opacity: 0.09;
  }

  .document-viewer-shell,
  .document-viewer,
  .document-viewer-shell-legal,
  .document-viewer-shell-legal > .document-viewer {
    min-height: 28rem;
    height: 28rem;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-height: 760px) {
  .hero {
    min-height: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
