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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  color: #0f172a;
  background-color: #ffffff;
  background-image:
    radial-gradient(
      ellipse 140% 90% at 50% -30%,
      #f1f5f9 0%,
      #ffffff 42%,
      #fafafa 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(248, 250, 252, 0.85) 100%
    );
  background-attachment: fixed;
  overflow-x: clip;
}

/* iOS Safari: fixed backgrounds often fail or paint a blank screen */
@media (max-width: 48rem) {
  body {
    background-attachment: scroll;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  height: clamp(2rem, 5.5vw, 2.875rem);
  width: auto;
  max-width: min(12rem, 42vw);
  object-fit: contain;
  object-position: left center;
}

.brand:hover img {
  opacity: 0.92;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Menu button — top right */
.nav-toggle {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.nav-toggle:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.2);
}

.nav-toggle:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.25rem;
  pointer-events: none;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: #0f172a;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-box span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-box span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dim page when menu open (below sticky header z-index) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
  pointer-events: none;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Slide-out tab panel */
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: min(17.5rem, 88vw);
  max-height: 100dvh;
  margin: 0;
  padding: 4.5rem clamp(1.25rem, 4vw, 1.75rem) 1.75rem;
  list-style: none;
  background: #ffffff;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  pointer-events: none;
}

.nav-panel.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

body.nav-drawer-open {
  overflow: hidden;
}

.nav-panel a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #475569;
  border-radius: 0.375rem;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.nav-panel a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.nav-panel a[aria-current="page"] {
  color: #0f172a;
  background: #f1f5f9;
}

.page-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.page-main--center {
  text-align: center;
}

.page-main--center .field label {
  text-align: center;
}

.contact-inline--block {
  margin-bottom: 2rem;
}

.contact-form--centered {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-main--center .contact-form--centered .field label {
  text-align: left;
}

.form-note {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
}

.field--note label {
  text-align: center;
  width: 100%;
}

.btn-submit--center {
  align-self: center;
  margin-inline: auto;
  width: fit-content;
}

.section-heading--center {
  text-align: center;
}

.lead--tight {
  margin-bottom: 0;
  text-align: center;
}

.lead--careers-callout {
  margin-top: 0.75rem;
  margin-bottom: 0;
  text-align: center;
}

.lead--careers-callout a {
  font-weight: 600;
}

.page-title {
  font-family: "Instrument Sans", "DM Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 2rem;
}

.lead strong {
  font-weight: 600;
  color: #0f172a;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.375rem;
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(15, 23, 42, 0.2);
  outline-offset: 1px;
}

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

.check-field {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.check-field input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.check-field label {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
}

.check-field a {
  color: #0f172a;
}

.btn-submit {
  padding: 0.85rem 2rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #0f172a;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

.btn-submit:hover {
  background: #1e293b;
}

.section-heading {
  font-family: "Instrument Sans", "DM Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  letter-spacing: 0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.subsection-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.contact-inline {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #334155;
}

.contact-inline a {
  color: #0f172a;
  font-weight: 500;
}

.footer-site {
  margin-top: auto;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  font-size: 0.8125rem;
  color: #94a3b8;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-site a {
  color: #64748b;
}

/* Home */
.home-frame {
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.home-frame .top-rule {
  width: min(12rem, 40vw);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    #0f172a 20%,
    #0f172a 80%,
    transparent
  );
  margin-bottom: clamp(2rem, 6vw, 3.25rem);
  opacity: 0.88;
}

.logo-shell {
  width: min(100%, 28rem);
  padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px -18px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.logo-shell img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 520px);
  object-fit: contain;
}

.tagline {
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: center;
  font-family: "Instrument Sans", "DM Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(0.8125rem, 1.75vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #334155;
}

body.layout-stretch {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.layout-stretch .page-wrap {
  flex: 1;
}

/* Careers — large type, centered, fills viewport */
.page-wrap--careers {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.page-main--careers {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: min(56rem, 100%);
  min-height: calc(100vh - 9rem);
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
  margin: 0 auto;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 20%,
      rgba(241, 245, 249, 0.9) 0%,
      transparent 55%
    ),
    linear-gradient(
      165deg,
      #ffffff 0%,
      #f8fafc 40%,
      #f1f5f9 100%
    );
  border-radius: 0 0 2rem 2rem;
}

.careers-kicker {
  font-family: "Instrument Sans", "DM Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.careers-display {
  font-family: "Syne", "Instrument Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #0f172a;
  max-width: 20ch;
  margin: 0 auto;
  text-wrap: balance;
}

.careers-rule {
  width: min(8rem, 50vw);
  height: 4px;
  margin: clamp(2rem, 5vw, 3.5rem) auto;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    #0f172a 15%,
    #334155 50%,
    #0f172a 85%,
    transparent
  );
  opacity: 0.85;
}

.careers-questions {
  font-family: "Syne", "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  color: #1e293b;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.careers-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.75rem;
  font-family: "Instrument Sans", "DM Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #0f172a;
  border-radius: 999px;
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.careers-cta:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.careers-cta:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 3px;
}
