/* ==========================================================================
   House of Pros
   Palette: pure black + three silvers. No accent colour — the footage
   supplies colour; type and silver carry the brand.
   Type scale (Bringhurst): 14 · 16 · 18 · 21 · 24 · 36 · 60 · 72
   ========================================================================== */

/* --- Silver Editorial (SilverStag Type Foundry, commercial licence) -------
   Drop the licensed files into /fonts using the names below. Until then the
   site falls back to Newsreader (Google Fonts).                       */
@font-face {
  font-family: "Silver Editorial";
  src:
    local("The Silver Editorial"),
    local("TheSilverEditorial-Regular"),
    url("../fonts/TheSilverEditorial-Regular.woff2") format("woff2"),
    url("../fonts/TheSilverEditorial-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Silver Editorial";
  src:
    local("The Silver Editorial Italic"),
    local("TheSilverEditorial-Italic"),
    url("../fonts/TheSilverEditorial-Italic.woff2") format("woff2"),
    url("../fonts/TheSilverEditorial-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --- British Green (Attract Studio) — hero title -----------------------
   Only the Regular weight was supplied. When the Bold / Thin files arrive,
   add them as BritishGreen-Bold.woff2 / BritishGreen-Thin.woff2 and the
   @font-face rules below pick them up; then remove the faux-bold stroke in
   .hero__bold.                                                            */
@font-face {
  font-family: "British Green";
  src:
    url("../fonts/BritishGreen-Regular.woff2") format("woff2"),
    url("../fonts/BritishGreen-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Helvetica Neue — for the headline's first line on devices that don't have it
   built in (Windows, Android). Drop HelveticaNeue-Regular.woff2 (or .otf/.ttf)
   into /fonts and it's used automatically; until then "HOP Helvetica" below. */
@font-face {
  font-family: "HOP Helvetica Neue";
  src:
    url("../fonts/HelveticaNeue-Regular.woff2") format("woff2"),
    url("../fonts/HelveticaNeue-Regular.otf") format("opentype"),
    url("../fonts/HelveticaNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Helvetica Neue Light — first headline line on devices without it built in.
   Drop HelveticaNeue-Light.woff2 (or .otf/.ttf) into /fonts to use it;
   until then those devices show Inter Light (Google Fonts). */
@font-face {
  font-family: "HOP Helvetica Neue Light";
  src:
    url("../fonts/HelveticaNeue-Light.woff2") format("woff2"),
    url("../fonts/HelveticaNeue-Light.otf") format("opentype"),
    url("../fonts/HelveticaNeue-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Helvetica — fallback for the headline's first line on devices without
   Helvetica Neue (Windows, Android). Apple devices use their built-in
   Helvetica Neue and never download this file. */
@font-face {
  font-family: "HOP Helvetica";
  src:
    url("../fonts/Helvetica-Regular.woff2") format("woff2"),
    url("../fonts/Helvetica-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "British Green Thin";
  src:
    url("../fonts/BritishGreen-Thin.woff2") format("woff2"),
    url("../fonts/BritishGreen-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "British Green Bold";
  src:
    url("../fonts/BritishGreen-Bold.woff2") format("woff2"),
    url("../fonts/BritishGreen-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --black: #000000;
  --silver-50: #f2f3f5;
  --silver-300: #c3c8d0;
  --silver-500: #8a919c;
  --line: rgba(195, 200, 208, 0.22);
  --line-strong: rgba(195, 200, 208, 0.45);
  --error: #e0a0a0;

  /* Display: modelled on FoundersCard's hero (Feature Display Light) —
     high-contrast, light. Free stand-in: Noto Serif Display 300. */
  --font-display: "Silver Editorial", "Noto Serif Display", "Times New Roman", Georgia, serif;
  --font-hero: "British Green", "Noto Serif Display", "Times New Roman", Georgia, serif;
  --font-neue: "Helvetica Neue", "HelveticaNeue", "HOP Helvetica Neue Light", "Inter", "HOP Helvetica", Helvetica, Arial, sans-serif;
  --font-arial: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font: "Silver Editorial", "Newsreader", "Times New Roman", Georgia, serif;

  --gutter: clamp(20px, 4vw, 48px);
  --radius-frame: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--black);
  color: var(--silver-50);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* Homepage: the video frame sits on FoundersCard-style off-white */
body.home {
  background: #f5f5f0;
}

/* No visible scroll bars on the public site (scrolling still works) */
html:not(:has(body.admin)),
.apply-layer {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html:not(:has(body.admin))::-webkit-scrollbar,
.apply-layer::-webkit-scrollbar {
  display: none;
}

/* Anything marked hidden stays hidden, whatever layout rules say */
[hidden] {
  display: none !important;
}

::selection {
  background: var(--silver-300);
  color: var(--black);
}

:focus-visible {
  outline: 1px solid var(--silver-50);
  outline-offset: 4px;
}

/* ==========================================================================
   Nav pill (shared)
   ========================================================================== */

.nav {
  position: absolute;
  top: clamp(16px, 2.4vw, 28px);
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
}

body > .nav {
  position: fixed;
}

/* Terms page: same frosted glass, slightly stronger tint over the black page */
body > .nav .nav__brand {
  background: rgba(255, 255, 255, 0.12);
}

/* Hidden once the form has scrolled under it (set by js/apply.js) */
.nav.is-faded {
  visibility: hidden;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px 8px 11px;
  /* Frosted glass — heavy blur (FoundersCard's menu uses 45px), faint white
     tint, hairline edge and a top highlight catching the light */
  border: 0;
  border-radius: 999px;
  /* Solid frosted glass — one even tint, no gradient */
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  text-decoration: none;
  white-space: nowrap;
}

.nav__brand {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__mark {
  height: 34px;
  width: auto;
}

/* Small caps echo the logo lockup's lettering */
.nav__name {
  font-size: 21px;
  line-height: 1;
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
  padding-top: 1px;
}

/* ==========================================================================
   Button (shared)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 15px 40px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--silver-50);
  color: var(--black);
  font-family: var(--font-arial);
  font-size: 17px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}

.btn:hover {
  background: #ffffff;
}

.btn:disabled {
  cursor: progress;
  opacity: 0.6;
}

/* ==========================================================================
   Hero CTA — hover motion adapted from Magic UI's "Interactive Hover Button"
   (21st.dev/@dillionverma/components/interactive-hover-button, MIT).
   A silver dot floods the button; the label slides out to the right while a
   black label + arrow slides in from the right.
   ========================================================================== */

.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 15px 44px 14px;
  overflow: hidden;
  border: 1px solid rgba(242, 243, 245, 0.7);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--silver-50);
  font-family: var(--font-arial);
  font-size: 17px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.8s var(--ease);
}

.cta__rest {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta__dot {
  position: relative;
  z-index: -1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--silver-50);
  transition: transform 1s var(--ease);
}

.cta__label {
  display: inline-block;
  transition:
    transform 0.85s var(--ease),
    opacity 0.5s var(--ease);
}

.cta__over {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--black);
  opacity: 0;
  transform: translateX(48px);
  transition:
    transform 0.85s var(--ease),
    opacity 0.55s var(--ease);
}

.cta__over svg {
  flex: none;
}

.cta:focus-visible {
  outline: 1px solid var(--silver-50);
  outline-offset: 5px;
}

/* Touch screens have no hover: the same motion plays on tap (js/apply.js
   adds .is-pressed, then opens the form as the fill completes) */
.cta.is-pressed,
.cta.is-demo {
  border-color: var(--silver-50);
}
.cta.is-pressed .cta__dot,
.cta.is-demo .cta__dot {
  transform: scale(70);
}
.cta.is-pressed .cta__label,
.cta.is-demo .cta__label {
  transform: translateX(48px);
  opacity: 0;
}
.cta.is-pressed .cta__over,
.cta.is-demo .cta__over {
  transform: translateX(0);
  opacity: 1;
}

@media (hover: hover) {
  .cta:hover {
    border-color: var(--silver-50);
  }
  .cta:hover .cta__dot {
    transform: scale(70);
  }
  .cta:hover .cta__label {
    transform: translateX(48px);
    opacity: 0;
  }
  .cta:hover .cta__over {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Keyboard users get the same state */
.cta:focus-visible .cta__dot {
  transform: scale(70);
}
.cta:focus-visible .cta__label {
  transform: translateX(48px);
  opacity: 0;
}
.cta:focus-visible .cta__over {
  transform: translateX(0);
  opacity: 1;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  /* Large viewport height: on phones the frame runs on behind the browser's
     floating toolbar, like FoundersCard. --chrome is the height that toolbar
     can cover, so content can stay clear of it (0 on desktop). */
  --chrome: 0px;
  height: 100vh;
  height: 100lvh;
  min-height: 600px;
  padding: 4px;
}

@supports (height: 100lvh) {
  .hero {
    --chrome: calc(100lvh - 100svh);
  }
}

.hero__frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-frame);
  background: var(--black) url("../assets/hero-poster.jpg") center / cover no-repeat;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  transform: scale(1.05);
  animation: settle 2.6s var(--ease) forwards;
}

/* Legibility: dim the top under the nav + gentle vignette */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Light touch: soft edges and a little shade under the logo pill — no overall tint */
  background:
    radial-gradient(125% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 18%);
}

/* The bottom shadow — footage falls away into black */
.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  z-index: -1;
  /* Shorter, gentler fade — still reaches black at the very bottom edge */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.22) 35%,
    rgba(0, 0, 0, 0.58) 65%,
    rgba(0, 0, 0, 0.88) 88%,
    #000 100%
  );
}

/* Small subtitle under the headline */
.hero__sub {
  max-width: none;
  margin: calc(clamp(12px, 2vh, 18px) - clamp(56px, 10vh, 112px)) 0 0;
  font-family: var(--font-arial);
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  white-space: nowrap; /* one line on desktop */
  color: rgba(226, 229, 234, 0.78);
  text-wrap: balance;
}

.hero__sub:empty {
  display: none;
}

/* Sits in the lower half: headline over the fade, button near the bottom */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(56px, 10vh, 112px);
  padding: 110px var(--gutter) calc(clamp(96px, 15svh, 168px) + var(--chrome));
  text-align: center;
  opacity: 0;
  animation: appear 1.6s var(--ease) 0.3s forwards;
  pointer-events: none;
}

.hero__content > * {
  pointer-events: auto;
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
}

/* Extra darkness behind the form so it reads over the footage */
.hero__dim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}

/* The one loud thing on the page */
.hero__title {
  margin: 0;
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(2.625rem, 5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #f2f3f5;
  text-wrap: balance;
}

.hero__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  transition: opacity 0.4s var(--ease);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 clamp(20px, 3vw, 36px) calc(clamp(16px, 2.6svh, 26px) + var(--chrome) + env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  color: var(--silver-500);
}

.hero__footer p {
  margin: 0;
}

.hero__footer a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

.hero__footer a:hover {
  color: var(--silver-50);
  text-decoration-color: var(--silver-500);
}

/* ==========================================================================
   Application form — opens over the video, on the same page
   ========================================================================== */

.is-applying .hero__dim {
  opacity: 1;
}

.is-applying .hero__content {
  visibility: hidden;
  transition: visibility 0s linear 0.5s;
}

.is-applying .hero__content > * {
  opacity: 0;
  transform: translateY(-18px);
}

.is-applying .hero__footer {
  opacity: 0;
  visibility: hidden;
}

.apply-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(96px, 13vh, 120px) clamp(10px, 3vw, 32px) calc(64px + var(--chrome));
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.7s var(--ease);
}

.apply-layer.is-open {
  opacity: 1;
  transform: none;
}

.apply-panel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  backdrop-filter: blur(30px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.apply-close {
  position: absolute;
  top: clamp(16px, 2.4vw, 24px);
  right: clamp(16px, 2.4vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--silver-300);
  font-family: var(--font);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.apply-close:hover {
  border-color: var(--line-strong);
  color: var(--silver-50);
}

.apply-panel__head {
  margin-bottom: 64px;
  padding-right: 90px;
}

.apply-panel__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  outline: none;
}

.apply-panel a:not(.btn) {
  text-decoration: underline;
  text-decoration-color: var(--silver-500);
  text-underline-offset: 3px;
}

.apply-panel a:not(.btn):hover {
  text-decoration-color: var(--silver-50);
}

@media (max-width: 600px) {
  .apply-panel {
    border-radius: 18px;
  }
  .apply-panel__head {
    padding-right: 0;
    padding-top: 36px;
  }
}

/* Two weights in the title: bold first line, thin second line */
/* Keeps the headline readable over brighter parts of the footage */
.hero__title,
.hero__sub {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

/* "An exclusive network for" — quieter, so the phrase below stands out */
.hero__bold {
  font-family: var(--font-neue);
  font-weight: 300; /* Light — Helvetica Neue Light on Apple devices */
  letter-spacing: -0.03em;
  color: rgba(226, 229, 234, 0.72);
}

/* "independent professionals" — the highlighted phrase */
.hero__thin {
  font-family: "British Green Thin", var(--font-hero);
  font-size: 1.14em;
  color: #ffffff;
  text-shadow:
    0 0 28px rgba(255, 255, 255, 0.28),
    0 0 2px rgba(255, 255, 255, 0.35);
}

/* Buttons that share the Apply now motion (Send application, Back to home) */
button.cta {
  appearance: none;
  cursor: pointer;
}

.cta--form {
  min-width: 240px;
}

.cta:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Country dropdown, styled like the other fields */
.field select {
  display: block;
  width: 100%;
  padding: 8px 28px 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%227%22 fill=%22none%22 stroke=%22%23c3c8d0%22 stroke-width=%221.4%22%3E%3Cpath d=%22m1 1 5 5 5-5%22/%3E%3C/svg%3E")
    right 4px center no-repeat;
  color: var(--silver-50);
  font-family: var(--font);
  font-size: 21px;
  line-height: 1.4;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}

.field select:invalid {
  color: rgba(138, 145, 156, 0.85);
}

.field select:focus {
  outline: none;
  border-bottom-color: var(--silver-50);
}

.field select option {
  background: #111214;
  color: #f2f3f5;
}

.field.is-invalid select {
  border-bottom-color: var(--error);
}

/* Designed dropdown (desktop only — phones keep the native picker; js/select.js) */
.combo {
  position: relative;
}

.combo select {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.combo__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 28px 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%227%22 fill=%22none%22 stroke=%22%23c3c8d0%22 stroke-width=%221.4%22%3E%3Cpath d=%22m1 1 5 5 5-5%22/%3E%3C/svg%3E")
    right 4px center no-repeat;
  color: var(--silver-50);
  font-family: var(--font);
  font-size: 21px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}

.combo__trigger:focus-visible,
.combo.is-open .combo__trigger {
  outline: none;
  border-bottom-color: var(--silver-50);
}

.combo__value.is-placeholder {
  color: rgba(138, 145, 156, 0.85);
}

.field.is-invalid .combo__trigger {
  border-bottom-color: var(--error);
}

.combo__pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #121214;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  animation: combo-in 0.22s var(--ease);
}

@keyframes combo-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.field .combo__search {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver-50);
  font-family: var(--font-arial);
  font-size: 15px;
  outline: none;
}

.field .combo__search:focus {
  border-color: var(--line-strong);
}

.field .combo__search::placeholder {
  color: var(--silver-500);
}

.combo__list {
  max-height: 300px;
  margin: 8px 0 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.combo__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--silver-300);
  font-family: var(--font-arial);
  font-size: 16px;
  cursor: pointer;
}

.combo__opt.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--silver-50);
}

.combo__opt[aria-selected="true"] {
  color: #fff;
}

.combo__tick {
  display: inline-flex;
  opacity: 0;
}

.combo__opt[aria-selected="true"] .combo__tick {
  opacity: 1;
}

.combo__sep {
  height: 1px;
  margin: 6px 10px;
  background: var(--line);
}

.combo__empty {
  padding: 14px 12px;
  color: var(--silver-500);
  font-family: var(--font-arial);
  font-size: 15px;
}

/* Supporting text ("subtitles") in Arial */
.apply-panel .page__lede,
.apply-panel .page__meta,
.page__aside .page__lede,
.page__aside .page__meta,
.form-section__hint,
.group__sub,
.form-actions__note,
.apply-closed p,
.sent p {
  font-family: var(--font-arial);
}

.apply-panel .page__lede {
  font-size: 18px;
  line-height: 1.55;
}

.apply-panel .page__meta,
.form-section__hint,
.form-actions__note {
  font-size: 15px;
}

/* Use the panel's full width for text (fewer lines, no empty right side) */
.apply-panel .page__lede {
  max-width: 62ch;
}

.apply-panel .form-actions__note {
  max-width: 64ch;
}

/* Result messages ("Application sent.", "closed") sit centred in the panel */
.apply-panel .sent,
.apply-panel .apply-closed {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 4px;
}

.apply-panel .sent p,
.apply-panel .apply-closed p {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

/* When the panel shows a result, centre the whole card */
.apply-panel.is-result .apply-panel__head {
  padding-right: 0;
  text-align: center;
}

.apply-panel.is-result .apply-panel__head .page__lede {
  margin-left: auto;
  margin-right: auto;
}

/* Once sent, only the confirmation shows (no form heading) */
.apply-panel.is-sent .apply-panel__head {
  display: none;
}

.apply-panel.is-sent .sent {
  padding-top: 28px;
}

/* Focus moves here for screen readers after sending; no visible box needed */
.sent:focus {
  outline: none;
}

/* "Follow our socials" in the confirmation */
.sent__social {
  margin: -8px 0 36px;
}

.apply-panel .sent .sent__social-text {
  max-width: 64ch;
  margin: 0 auto 16px;
  text-wrap: balance;
  font-size: 15px;
  color: var(--silver-500);
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--silver-50);
  transition:
    background-color 0.5s var(--ease),
    color 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.social svg {
  width: 20px;
  height: 20px;
}

.social:hover,
.social:focus-visible {
  background: var(--silver-50);
  color: var(--black);
  transform: translateY(-2px);
}

/* Phones: the result card sits in the middle of the screen, both ways */
@media (max-width: 600px) {
  .apply-layer.is-centered {
    display: flex;
    flex-direction: column;
    /* equal space above and below, so the card sits in the true middle */
    padding-top: 84px;
    padding-bottom: calc(84px + var(--chrome));
  }
  .apply-layer.is-centered .apply-panel {
    width: 100%;
    margin: auto 0; /* centres vertically, still scrolls if it's taller than the screen */
  }
  .apply-panel.is-result .sent,
  .apply-panel.is-result .apply-closed {
    padding-top: 40px; /* clear of the Close button */
  }
}

/* Shown instead of the form when applications are closed */
.apply-closed p {
  margin: 0 0 28px;
  max-width: 44ch;
  font-size: 21px;
  line-height: 1.5;
  color: var(--silver-300);
}

/* Keep the second line whole wherever it fits */
@media (min-width: 820px) {
  .hero__line {
    white-space: nowrap;
  }
}

@keyframes settle {
  to {
    transform: scale(1);
  }
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .nav__brand {
    gap: 9px;
    padding: 6px 18px 6px 8px;
  }
  .nav__mark {
    height: 28px;
  }
  .nav__name {
    font-size: 18px;
  }
  /* Phones: "An exclusive network" / "Built for" / "Independent Professionals" */
  .hero__title {
    max-width: none;
    font-size: clamp(1.5rem, 7.2vw, 2.5rem);
    line-height: 1.12;
  }
  .hero__bold,
  .hero__thin {
    display: block;
    white-space: nowrap;
  }
  .hero__title br {
    display: none; /* each line is already its own block */
  }
  .hero__thin {
    text-transform: capitalize;
  }
  .hero__sub {
    max-width: 34ch;
    font-size: 13px;
    white-space: normal; /* too long for one line on a phone */
  }
  .hero__content .cta {
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================================================================
   Inner pages: apply + terms
   Two columns — a sticky introduction on the left, the work on the right.
   ========================================================================== */

.page {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(40px, 7vw, 120px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 168px) var(--gutter) 120px;
}

.page__aside {
  position: sticky;
  top: 140px;
  align-self: start;
}

.page__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 3.1vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.page__lede {
  margin: 0 0 16px;
  max-width: 32ch;
  font-size: 21px;
  line-height: 1.45;
  color: var(--silver-300);
}

.page__meta {
  margin: 0;
  font-size: 16px;
  color: var(--silver-500);
}

.page__main {
  min-width: 0;
  max-width: 640px;
}

.page a:not(.btn) {
  text-decoration: underline;
  text-decoration-color: var(--silver-500);
  text-underline-offset: 3px;
}

.page a:not(.btn):hover {
  text-decoration-color: var(--silver-50);
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
  }
  .page__aside {
    position: static;
    margin-bottom: 56px;
  }
}

/* ==========================================================================
   Application form
   ========================================================================== */

.form-section + .form-section {
  margin-top: 80px;
}

.form-section__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.1;
}

.form-section__hint {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--silver-500);
}

.field {
  margin: 0 0 32px;
}

.field__label,
.group__label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 18px;
  line-height: 1.4;
  color: var(--silver-300);
}

.field__optional {
  color: var(--silver-500);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--silver-50);
  font-family: var(--font);
  font-size: 21px;
  line-height: 1.4;
  transition: border-color 0.3s var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(138, 145, 156, 0.7);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--silver-50);
}

.group {
  margin: 0 0 36px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.group__label {
  margin-bottom: 14px;
}

.group__sub {
  margin: -10px 0 14px;
  font-size: 16px;
  color: var(--silver-500);
}

.error {
  display: none;
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--error);
}

.is-invalid .error {
  display: block;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-bottom-color: var(--error);
}

/* --- Single choice: chips --------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input,
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.chip span {
  display: inline-block;
  padding: 9px 18px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--silver-300);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.chip:hover span {
  border-color: var(--silver-300);
  color: var(--silver-50);
}

.chip input:checked + span {
  border-color: var(--silver-50);
  background: var(--silver-50);
  color: var(--black);
}

.chip input:focus-visible + span {
  outline: 1px solid var(--silver-50);
  outline-offset: 3px;
}

.group.is-invalid .chip span {
  border-color: var(--error);
}

/* --- Multiple choice / consent: square boxes -------------------------- */

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.45;
  color: var(--silver-50);
}

.check__box {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.check__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--black);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}

.check:hover .check__box {
  border-color: var(--silver-300);
}

.check input:checked + .check__box {
  border-color: var(--silver-50);
  background: var(--silver-50);
}

.check input:checked + .check__box::after {
  transform: rotate(45deg) scale(1);
}

.check input:focus-visible + .check__box {
  outline: 1px solid var(--silver-50);
  outline-offset: 3px;
}

.group.is-invalid .check__box {
  border-color: var(--error);
}

.consent .group {
  margin-bottom: 8px;
}

/* --- Submit ----------------------------------------------------------- */

.form-actions {
  margin-top: 48px;
}

.form-actions__note {
  margin: 20px 0 0;
  max-width: 52ch;
  font-size: 16px;
  color: var(--silver-500);
}

.form-actions__status {
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--error);
}

.sent__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.1;
}

.sent p {
  max-width: 44ch;
  margin: 0 0 32px;
  color: var(--silver-300);
}

/* ==========================================================================
   Terms of Use
   ========================================================================== */

.toc {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.4;
}

.toc li {
  margin: 0 0 8px;
}

.page .toc a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--silver-500);
  text-decoration: none;
  transition: color 0.35s var(--ease), gap 0.35s var(--ease);
}

/* A short line grows in front of the section you're reading */
.page .toc a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--silver-50);
  transition: width 0.35s var(--ease);
}

.page .toc a:hover {
  color: var(--silver-300);
}

.page .toc a[aria-current="true"] {
  gap: 10px;
  color: var(--silver-50);
}

.page .toc a[aria-current="true"]::before {
  width: 16px;
}

.legal {
  color: var(--silver-300);
  line-height: 1.6;
}

.legal section + section {
  margin-top: 48px;
}

.legal h2 {
  margin: 0 0 12px;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  color: var(--silver-50);
  scroll-margin-top: 120px;
}

.legal p,
.legal li {
  margin: 0 0 12px;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 1.1em;
}

.legal__back {
  margin-top: 64px;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__video {
    transform: none;
  }
}

/* Spam trap field — off-screen, never shown to people */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
