:root {
  color-scheme: dark;
  --ocean: #004d7a;
  --sand: #e2c7a8;
  --clouds: #f9f9f9;
  --sky: #83daf7;
  --ink: #073149;
  --border-light: rgba(249, 249, 249, 0.3);
  --serif: "Cormorant Garamond", "Garamond Premier Pro", Garamond, Georgia, serif;
  --sans: "Work Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ocean);
}

body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--clouds);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  display: flex;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(0.75rem, 1.8vh, 1.35rem) clamp(1rem, 4vw, 4rem);
}

.ocean-film,
.brand-wash,
.texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ocean-film {
  z-index: -4;
  object-fit: cover;
  object-position: center;
  background: var(--ocean);
  transform: scale(1.03);
}

.brand-wash {
  z-index: -3;
  background: rgba(0, 77, 122, 0.7);
}

.texture {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 28, 46, 0.18), transparent 55%),
    radial-gradient(circle at 76% 20%, rgba(131, 218, 247, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(0, 25, 41, 0.1), rgba(0, 25, 41, 0.35));
}

.content {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.8vh, 1.95rem);
  width: min(100%, 70rem);
  margin: auto;
  padding-bottom: clamp(2.75rem, 5.5vh, 3.6rem);
}

.intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 2.4vh, 1.55rem);
  text-align: center;
}

.brand-logo {
  display: block;
  width: clamp(13rem, min(24vw, 36vh), 22rem);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 900ms 100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.editorial-copy {
  display: flex;
  max-width: 61rem;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 900ms 260ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 clamp(0.55rem, 1.25vh, 0.85rem);
  color: var(--sand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 30ch;
  margin-bottom: clamp(0.5rem, 1.3vh, 0.8rem);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(2.35rem, min(4.25vw, 7.2vh), 4.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.93;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin-bottom: 0;
  color: rgba(249, 249, 249, 0.78);
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.45;
}

.contact-card {
  position: relative;
  width: min(100%, 64rem);
  padding: clamp(0.85rem, 1.8vh, 1.25rem) clamp(1rem, 2.4vw, 1.7rem);
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(
    135deg,
    rgba(252, 252, 251, 0.96),
    rgba(242, 247, 249, 0.91)
  );
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 0.48rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1.35rem 3.75rem rgba(0, 24, 39, 0.18);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 900ms 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.card-heading {
  display: grid;
  place-items: center;
  margin-bottom: clamp(0.7rem, 1.65vh, 1rem);
  text-align: center;
}

.eyebrow-dark {
  margin-bottom: 0.55rem;
  color: var(--ocean);
}

h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.55rem, min(2.5vw, 4.2vh), 2.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

form {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.35fr auto;
  align-items: end;
  gap: clamp(0.6rem, 1.25vw, 0.95rem);
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  color: rgba(7, 49, 73, 0.68);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 0.45rem 0 0.6rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 77, 122, 0.25);
  border-radius: 0;
  outline: 0;
  transition: border-color 180ms ease;
}

textarea {
  min-height: 2.4rem;
  max-height: 3.6rem;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(7, 49, 73, 0.4);
}

input:focus,
textarea:focus {
  border-color: var(--ocean);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #a33b33;
}

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 10.5rem;
  min-height: 2.8rem;
  margin-top: 0;
  padding: 0 1.2rem 0 1.35rem;
  color: var(--clouds);
  background: var(--ocean);
  border: 1px solid var(--ocean);
  border-radius: 0;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    background 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

button:hover {
  color: var(--clouds);
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

button:active {
  transform: scale(0.985);
  transition-duration: 100ms;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.arrow {
  font-size: 1.2rem;
}

.form-note,
.form-status {
  grid-column: 1 / -1;
  margin: -0.25rem 0 0;
  text-align: center;
  color: rgba(7, 49, 73, 0.52);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.form-status {
  min-height: 0.8rem;
  color: var(--ocean);
}

footer {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: clamp(0.55rem, 1.3vh, 0.9rem);
  left: clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 auto;
  padding-top: 0.6rem;
  color: rgba(249, 249, 249, 0.68);
  border-top: 1px solid var(--border-light);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-mark {
  width: 0.23rem;
  height: 0.23rem;
  background: var(--sand);
  border-radius: 50%;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  form {
    grid-template-columns: 1fr 1fr;
  }

  .field:nth-child(3),
  button {
    grid-column: auto;
  }
}

@media (max-height: 900px) and (min-width: 901px) {
  .content {
    gap: clamp(0.9rem, 2.1vh, 1.2rem);
    padding-bottom: clamp(2.5rem, 5vh, 3rem);
  }

  .intro {
    gap: clamp(0.7rem, 1.7vh, 0.95rem);
  }

  .brand-logo {
    width: min(19rem, 22vw, 38vh);
  }

  h1 {
    max-width: 30ch;
    font-size: clamp(2.2rem, min(3.8vw, 6.4vh), 3.7rem);
    line-height: 0.94;
  }

  .lede {
    font-size: 0.92rem;
  }

  .contact-card {
    width: min(100%, 61rem);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .eyebrow-dark {
    margin-bottom: 0.45rem;
  }

  h2 {
    font-size: clamp(1.5rem, 3.7vh, 1.95rem);
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 0.75rem;
  }

  .content {
    gap: clamp(0.8rem, 2.1vh, 1.2rem);
    padding-bottom: 3.2rem;
  }

  .intro {
    gap: clamp(0.65rem, 2vh, 1.1rem);
  }

  .brand-logo {
    width: min(15.5rem, 64vw, 34vh);
  }

  h1 {
    max-width: 17ch;
    margin-bottom: 0.4rem;
    font-size: clamp(1.9rem, min(9vw, 5.8vh), 2.7rem);
    line-height: 0.95;
  }

  .headline-break {
    display: none;
  }

  .contact-card {
    padding: 0.85rem 0.9rem;
  }

  .card-heading {
    margin-bottom: 0.65rem;
  }

  .eyebrow-dark {
    display: none;
  }

  h2 {
    font-size: 1.55rem;
  }

  form {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.7rem;
  }

  .field:nth-child(3) {
    grid-column: 1 / -1;
  }

  button {
    grid-column: 1 / -1;
    min-height: 2.7rem;
  }

  input,
  textarea {
    padding: 0.42rem 0 0.5rem;
  }

  textarea {
    min-height: 2.25rem;
  }

  footer {
    right: 0.75rem;
    bottom: 0.65rem;
    left: 0.75rem;
    gap: 0.45rem;
    font-size: 0.6rem;
    letter-spacing: 0.07em;
  }
}

@media (max-height: 690px) {
  .content {
    gap: 0.9rem;
    padding-bottom: 2.7rem;
  }

  .intro {
    gap: 0.75rem;
  }

  .brand-logo {
    width: min(12.5rem, 29vw, 32vh);
  }

  .eyebrow {
    margin-bottom: 0.48rem;
  }

  h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.75rem, 5.2vh, 2.85rem);
  }

  .lede {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .contact-card {
    padding-top: 0.78rem;
    padding-bottom: 0.78rem;
  }

  .card-heading {
    margin-bottom: 0.7rem;
  }

  .form-note {
    display: none;
  }
}

@media (max-height: 690px) and (max-width: 560px) {
  .brand-logo {
    width: min(10rem, 52vw, 27vh);
  }
}

@media (max-height: 520px) and (min-width: 640px) {
  .page-shell {
    padding: 0.55rem clamp(0.75rem, 3vw, 2rem);
  }

  .content {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
    gap: clamp(0.75rem, 2.2vw, 1.5rem);
    width: min(100%, 70rem);
    padding-bottom: 2.25rem;
  }

  .intro {
    gap: 0.35rem;
  }

  .brand-logo {
    width: min(11.5rem, 22vw, 39vh);
  }

  .eyebrow {
    margin-bottom: 0.25rem;
    font-size: 0.6rem;
  }

  h1 {
    max-width: 17ch;
    margin-bottom: 0.2rem;
    font-size: clamp(1.55rem, min(3.6vw, 8vh), 2.1rem);
    line-height: 0.94;
  }

  .lede {
    max-width: 22rem;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .contact-card {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
  }

  .card-heading {
    margin-bottom: 0.4rem;
  }

  .eyebrow-dark {
    display: none;
  }

  h2 {
    font-size: 1.35rem;
  }

  form {
    gap: 0.35rem 0.65rem;
  }

  .field {
    gap: 0.18rem;
  }

  label {
    font-size: 0.6rem;
  }

  input,
  textarea {
    padding: 0.3rem 0 0.4rem;
    font-size: 0.78rem;
  }

  textarea {
    min-height: 2rem;
  }

  button {
    min-height: 2.35rem;
    padding: 0 0.85rem;
    font-size: 0.72rem;
  }

  .form-status {
    min-height: 0.55rem;
    font-size: 0.62rem;
  }

  footer {
    bottom: 0.35rem;
    padding-top: 0.35rem;
    font-size: 0.55rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .contact-card {
    background: rgba(249, 249, 249, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ocean-film {
    display: none;
  }

  .brand-logo,
  .editorial-copy,
  .contact-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

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