:root {
  color-scheme: dark;
  font-family: "Inter", Arial, sans-serif;
  background: #050505;
  color: #f4f4f4;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 18%, rgba(226, 229, 233, 0.08), transparent 34%),
    linear-gradient(145deg, #020202 0%, #090909 58%, #030303 100%);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #f4f4f4;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accessibility-tools {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
}

.accessibility-toggle {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(244, 244, 244, 0.7);
  border-radius: 50%;
  background: #e4e6e8;
  color: #080808;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  place-items: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.accessibility-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(244, 244, 244, 0.32);
  background: rgba(8, 8, 8, 0.98);
  color: #f4f4f4;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.58);
}

.accessibility-panel[hidden] {
  display: none;
}

.accessibility-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.accessibility-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.accessibility-header button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(244, 244, 244, 0.28);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.accessibility-group {
  margin-bottom: 12px;
}

.accessibility-group p {
  margin: 0 0 9px;
  color: #bfc2c5;
  font-size: 0.9rem;
}

.text-size-controls {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 8px;
}

.text-size-controls button,
.accessibility-option,
.accessibility-reset {
  min-height: 44px;
  border: 1px solid rgba(244, 244, 244, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  font-size: 0.88rem;
}

.text-size-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.accessibility-option,
.accessibility-reset {
  width: 100%;
  margin-top: 8px;
  padding: 10px 13px;
  text-align: left;
}

.accessibility-option[aria-pressed="true"] {
  border-color: #f4f4f4;
  background: #f4f4f4;
  color: #080808;
}

.accessibility-reset {
  margin-top: 16px;
  background: transparent;
  text-align: center;
}

html.a11y-text-large {
  font-size: 112.5%;
}

html.a11y-text-larger {
  font-size: 125%;
}

html.a11y-grayscale body {
  filter: grayscale(1);
}

html.a11y-underline-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px;
}

html.a11y-high-contrast body {
  background: #000;
  color: #fff;
}

html.a11y-high-contrast .glow,
html.a11y-high-contrast .shell::before {
  display: none;
}

html.a11y-high-contrast .intro,
html.a11y-high-contrast .contact-label,
html.a11y-high-contrast .contact-copy > p:last-child,
html.a11y-high-contrast .message-heading > p:last-child,
html.a11y-high-contrast .message-form label > span,
html.a11y-high-contrast .form-footer small,
html.a11y-high-contrast footer {
  color: #fff;
}

html.a11y-high-contrast .message-panel,
html.a11y-high-contrast .accessibility-panel {
  border-color: #fff;
  background: #000;
}

html.a11y-high-contrast .message-form input,
html.a11y-high-contrast .message-form textarea {
  border-color: #fff;
}

.shell {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 4vw, 64px);
}

.shell::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.glow {
  position: absolute;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: rgba(211, 215, 220, 0.05);
  filter: blur(95px);
  pointer-events: none;
}

.glow-one {
  top: -28vw;
  right: -10vw;
}

.glow-two {
  bottom: -32vw;
  left: -12vw;
}

.hero {
  width: min(920px, 100%);
  margin: auto;
  animation: arrive 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wordmark {
  display: block;
  width: min(330px, 62vw);
  height: auto;
  margin-bottom: clamp(48px, 8vh, 88px);
}

.eyebrow,
.contact-label {
  color: #aeb2b7;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 14px 0 20px;
  font-size: clamp(3.6rem, 10vw, 8.8rem);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.intro {
  max-width: 630px;
  margin: 0;
  color: #bfc2c5;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
}

.rule {
  width: 100%;
  height: 1px;
  margin: clamp(42px, 7vh, 72px) 0 32px;
  background: linear-gradient(90deg, #d9dcdf, rgba(217, 220, 223, 0.08));
}

.contact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.contact-copy p,
.contact-copy h2 {
  margin: 0;
}

.contact-copy h2 {
  margin-top: 9px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.contact-copy > p:last-child {
  margin-top: 5px;
  color: #aeb2b7;
  font-size: 0.96rem;
}

.contact-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 9px;
}

.contact-actions a {
  position: relative;
  color: #e5e5e5;
  font-size: 0.95rem;
  text-decoration: none;
}

.contact-actions a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: #cfd2d5;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.contact-actions a:hover::after,
.contact-actions a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.message-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1.28fr);
  gap: clamp(42px, 7vw, 90px);
  margin-top: clamp(64px, 10vh, 118px);
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(225, 228, 231, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(14px);
}

.message-heading h2,
.message-heading p {
  margin: 0;
}

.message-heading h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
}

.message-heading > p:last-child {
  margin-top: 18px;
  color: #9da1a5;
  font-size: 0.92rem;
  line-height: 1.6;
}

.message-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.message-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.message-form label > span {
  color: #b9bdc1;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(225, 228, 231, 0.24);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #f5f5f5;
  font: inherit;
  transition: border-color 180ms ease;
}

.message-form input {
  height: 42px;
}

.message-form textarea {
  min-height: 108px;
  padding: 10px 0;
  resize: vertical;
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: #e6e8ea;
}

.full-width {
  grid-column: 1 / -1;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.form-footer small {
  color: #777c81;
  font-size: 0.7rem;
  line-height: 1.5;
}

.form-footer button {
  flex: 0 0 auto;
  min-width: 158px;
  padding: 14px 20px;
  border: 1px solid #d9dcdf;
  background: #e4e6e8;
  color: #080808;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.form-footer button:hover,
.form-footer button:focus-visible {
  background: transparent;
  color: #f4f4f4;
}

footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: clamp(45px, 8vh, 90px);
  color: #676b70;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 650px) {
  .accessibility-tools {
    right: 16px;
    bottom: 16px;
  }

  .shell {
    padding: 28px 24px;
  }

  .wordmark {
    width: min(250px, 68vw);
    margin-bottom: 54px;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .contact-actions {
    align-items: flex-start;
  }

  .message-panel {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 28px 22px;
  }

  .message-form {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
}
