:root {
  --teal: #24b9b9;
  --ink: #000000;
  --paper: #ffffff;
  --page-padding: clamp(1.25rem, 3.4vw, 3.75rem);
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype",
    "Book Antiqua", Cambria, Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--teal);
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--teal);
  font-family: var(--serif);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  color: var(--teal);
  background: var(--paper);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.6rem 0.85rem;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.9rem;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.background,
.background-wash {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
}

.background {
  z-index: 0;
  background-color: var(--teal);
}

.plain-version .background {
  background: var(--teal);
}

.background.is-fallback {
  background-image:
    radial-gradient(circle at 25% 20%, transparent 0 8rem, rgb(0 0 0 / 7%) 8.1rem 8.2rem, transparent 8.3rem),
    radial-gradient(circle at 80% 72%, transparent 0 12rem, rgb(0 0 0 / 6%) 12.1rem 12.2rem, transparent 12.3rem);
}

.background-wash {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 50%, transparent 0, rgb(0 0 0 / 10%) 82%),
    linear-gradient(rgb(0 0 0 / 33%), rgb(0 0 0 / 33%));
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--page-padding);
  isolation: isolate;
}

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

.site-header {
  animation: reveal 700ms 100ms both;
}

.header-links {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.site-nav a {
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-transform: uppercase;
}

.wordmark {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark span {
  display: inline-block;
  margin-left: 0.08em;
}

.practice {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  margin: 0;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-style: italic;
  line-height: 1.2;
}

.practice-divider {
  opacity: 0.6;
}

.hero {
  display: flex;
  align-items: center;
  padding-block: clamp(4.25rem, 9vh, 7rem);
}

.hero-copy {
  width: 100%;
}

.eyebrow {
  margin: 0 0 clamp(1.1rem, 2.4vh, 1.8rem) 0.35em;
  font-size: clamp(0.72rem, 0.85vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  animation: reveal 700ms 180ms both;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(5.5rem, 13vw, 13.5rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.73;
}

h1 span {
  display: block;
  width: fit-content;
  animation: title-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 span:last-child {
  margin-left: clamp(1.3rem, 9vw, 10rem);
  animation-delay: 80ms;
}

.strapline-group {
  display: grid;
  grid-template-columns: minmax(5rem, 16vw) minmax(16rem, 49rem);
  gap: clamp(1rem, 2.2vw, 2.25rem);
  align-items: start;
  margin-top: clamp(2.3rem, 5vh, 4.2rem);
  margin-left: clamp(0.3rem, 9vw, 10rem);
  animation: reveal 800ms 420ms both;
}

.strapline-rule {
  display: block;
  height: 1px;
  margin-top: 0.8em;
  background: currentColor;
  opacity: 0.85;
}

.strapline {
  max-width: 35em;
  margin: 0;
  font-size: clamp(1.25rem, 2.15vw, 2.2rem);
  line-height: 1.17;
  text-wrap: balance;
}

.site-footer {
  padding-top: clamp(0.9rem, 1.5vw, 1.25rem);
  border-top: 1px solid rgb(255 255 255 / 45%);
  font-size: clamp(0.69rem, 0.8vw, 0.82rem);
  font-style: italic;
  line-height: 1.2;
  animation: reveal 700ms 580ms both;
}

.site-footer p {
  margin: 0;
}

.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(20rem, 1.18fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  padding-block: clamp(4rem, 8vh, 7rem);
}

.contact-intro {
  align-self: start;
  padding-top: clamp(0rem, 4vh, 3rem);
}

.contact-intro h1 {
  max-width: none;
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.82;
}

.contact-intro h1 span:last-child {
  margin-left: 0;
}

.contact-lede {
  max-width: 27rem;
  margin: clamp(1.8rem, 4vh, 3rem) 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  line-height: 1.3;
  animation: reveal 800ms 300ms both;
}

.contact-phone {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.025em;
  text-underline-offset: 0.28em;
  animation: reveal 800ms 380ms both;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid rgb(255 255 255 / 55%);
  background: rgb(0 0 0 / 14%);
  backdrop-filter: blur(8px);
  animation: reveal 800ms 240ms both;
}

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

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

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  color: var(--paper);
  background: rgb(0 0 0 / 14%);
  font: inherit;
}

.form-field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgb(255 255 255 / 68%);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  align-items: center;
}

.form-actions button {
  border: 1px solid var(--paper);
  padding: 0.8rem 1.2rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.form-actions button:hover,
.form-actions button:focus-visible {
  color: var(--paper);
  background: transparent;
}

.form-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-note {
  max-width: 28rem;
  margin: 0;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.35;
}

.form-status {
  flex-basis: 100%;
  min-height: 1.35em;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.form-status:empty {
  display: none;
}

.form-status.is-success::before {
  content: "✓ ";
}

.form-status.is-error::before {
  content: "! ";
}

.form-trap {
  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;
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(0.32em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 47.99rem) {
  .page-shell {
    width: 100%;
    max-width: 100%;
    padding-bottom: max(var(--page-padding), env(safe-area-inset-bottom));
  }

  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
  }

  .header-links {
    justify-content: flex-end;
  }

  .practice {
    display: grid;
    gap: 0.1rem;
    justify-self: end;
    max-width: 10rem;
    text-align: right;
  }

  .practice-divider {
    display: none;
  }

  .hero {
    padding-block: clamp(4.5rem, 11vh, 7rem);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.5rem, 19.5vw, 7.5rem);
    letter-spacing: -0.07em;
    line-height: 0.77;
  }

  h1 span:last-child {
    margin-left: 0;
  }

  .strapline-group {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.9rem;
    width: 100%;
    margin-left: 0;
  }

  .strapline {
    max-width: 100%;
    font-size: clamp(1.15rem, 5.3vw, 1.55rem);
  }

  .contact-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .contact-intro {
    padding-top: 0;
  }

  .contact-intro h1 {
    font-size: clamp(3.6rem, 18vw, 6.8rem);
  }

}

@media (max-width: 30rem) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .practice {
    display: none;
  }

  .header-links {
    justify-content: flex-end;
  }

  .eyebrow {
    letter-spacing: 0.1em;
  }

  .strapline-group {
    display: block;
    width: auto;
    max-width: 17.5rem;
  }

  .strapline-rule {
    width: 2.75rem;
    margin: 0 0 1rem;
  }

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

  .form-field,
  .form-field--wide,
  .form-actions {
    grid-column: 1;
  }
}

@media (max-height: 43rem) and (min-width: 48rem) {
  .hero {
    padding-block: 2.4rem;
  }

  h1 {
    font-size: clamp(4.8rem, 16vh, 8rem);
  }

  .strapline-group {
    margin-top: 1.8rem;
  }
}

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

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