/* =========================================================
   Roch Dog — Founder Director Programme
   Design system: monochrome editorial, luxury hospitality
   ========================================================= */

:root {
  --ink: #0A0A0A;
  --ink-soft: #1F1E1C;
  --paper: #F4F2EC;
  --paper-warm: #F4F2EC;
  --paper-cool: #F4F2EC;
  --line: #1F1E1C;
  --line-soft: #C9C6BF;
  --mute: #807D77;
  --mute-soft: #A8A59E;
  --gold: #B3951A;
  --max: 1440px;
  --pad: clamp(24px, 5vw, 80px);
  --serif: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}
a:hover { opacity: 0.55; }

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}

h1 {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 200;
}

h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

p { font-size: clamp(15px, 1.05vw, 17px); }

.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  font-weight: 300;
  color: var(--ink-soft);
}
.lede--four {
  max-width: 880px;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
  color: var(--ink);
}

/* ---------- Layout primitives ---------- */

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 28px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-bottom: none;
  cursor: pointer;
}
.site-header .brand:hover { opacity: 1; }
.site-header .brand img {
  height: 36px;
  width: auto;
  display: block;
  pointer-events: none;
}
.site-header .brand .brand__logo--hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.site-header .brand:hover .brand__logo--default { opacity: 0; }
.site-header .brand:hover .brand__logo--hover { opacity: 1; }

.site-header nav {
  display: flex;
  gap: 36px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}
.site-header nav a {
  border-bottom: none;
  color: var(--ink);
  transition: color 0.3s ease;
}
.site-header nav a:hover {
  color: var(--gold);
  opacity: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero__bg picture {
  display: block;
}
.hero__bg img {
  display: block;
  position: absolute;
  bottom: 0;
  right: 8%;
  width: 60%;
  height: 87%;
  object-fit: contain;
  object-position: right bottom;
}
@media (max-width: 768px) {
  .hero__bg img {
    width: 100%;
    height: auto;
    max-height: 60%;
  }
}

.hero__copy {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  padding: 200px var(--pad) 80px var(--pad);
  max-width: 760px;
}

.hero__copy .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 32px 0;
  display: block;
}

.hero h1 {
  margin: 0 0 28px -0.04em;
  white-space: nowrap;
  font-size: clamp(48px, 7.5vw, 108px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(44px, 11vw, 72px); }
}

.hero h1 .dot {
  color: var(--mute);
  font-weight: inherit;
}

.hero__lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 48px;
  letter-spacing: -0.005em;
}

@media (max-width: 768px) {
  .hero { min-height: 640px; }
  .hero__copy {
    padding: 110px var(--pad) 40px var(--pad);
    max-width: 100%;
  }
  .hero__copy .hero__lede { max-width: 100%; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
  opacity: 1;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Sections ---------- */

section.band {
  padding: clamp(80px, 12vw, 160px) 0;
}

section.band--warm,
section.band--white {
  background: var(--paper);
}

section.band--tight {
  padding: clamp(16px, 2vw, 24px) 0 clamp(40px, 5vw, 64px);
  margin-top: clamp(-100px, -8.5vw, -55px);
}

section.band--page-top {
  padding-top: clamp(160px, 18vw, 240px);
  min-height: 100svh;
  position: relative;
}

.scroll-btn {
  position: absolute;
  bottom: clamp(40px, 5vw, 80px);
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
}
.scroll-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}
.scroll-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

section.band--stacked {
  padding-top: clamp(28px, 3vw, 44px);
}

section.band--stacked-bottom {
  padding-bottom: clamp(28px, 3vw, 44px);
}

.cta-card {
  background: #CFD1CE;
  border-radius: 16px;
  padding: clamp(36px, 5vw, 64px) clamp(40px, 5vw, 72px);
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.cta-card__main {
  flex: 1 1 auto;
  min-width: 0;
}
.cta-card__seal {
  width: clamp(120px, 14vw, 180px);
  height: auto;
  flex-shrink: 0;
  filter: brightness(0);
}
.cta-card .standfirst {
  margin-bottom: clamp(20px, 2.2vw, 30px);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.3;
  text-wrap: pretty;
  max-width: none;
}
@media (max-width: 768px) {
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(20px, 4vw, 32px);
  }
  .cta-card__seal {
    width: clamp(100px, 25vw, 160px);
  }
}

section.band--dark {
  background: linear-gradient(180deg, #1A1A1A 0%, #0E0E0E 100%);
  color: #FFFFFF;
}

/* ---- Manifesto block (the three lines on dark) ---- */

section.band--manifesto {
  padding: clamp(100px, 12vw, 160px) 0;
}

.manifesto {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.manifesto__line {
  display: block;
  font-family: var(--sans);
  color: #FFFFFF;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.022em;
  font-size: clamp(26px, 4vw, 58px);
}
.manifesto__line + .manifesto__line { margin-top: 0.18em; }

@media (max-width: 768px) {
  section.band--manifesto { padding: 76px 0; }
  .manifesto__line { font-size: clamp(24px, 6vw, 38px); }
}
section.band--dark h1,
section.band--dark h2,
section.band--dark h3,
section.band--dark .standfirst {
  color: #FFFFFF;
}
section.band--dark .lede,
section.band--dark .lede--four {
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(20px, 3.5vw, 56px);
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-head .eyebrow {
  padding-left: clamp(16px, 2.5vw, 48px);
}
.section-head .lede {
  margin-left: clamp(-32px, -2vw, -16px);
}

.section-head--stacked {
  display: block;
  grid-template-columns: none;
  gap: 0;
  margin-bottom: clamp(48px, 5vw, 64px);
}
.section-head--stacked .eyebrow {
  padding-left: 0;
  margin-bottom: 10px;
}
.section-head--stacked .lede {
  margin-left: 0;
  max-width: 880px;
  text-wrap: pretty;
}

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Tier cards ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.tier {
  background: var(--paper);
  padding: clamp(32px, 4vw, 56px);
}

.tier__num {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--mute);
  margin-bottom: 24px;
}

.tier h3 { margin-bottom: 16px; }

.tier__meta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 24px;
}

.tier p { color: var(--ink-soft); }

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

/* ---------- Ladder (chevron progression) ---------- */

.ladder {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  align-items: stretch;
  --chev: 24px;
  --hair: #B6B2A9;
}

.rung {
  position: relative;
  padding: 32px 28px;
  background: var(--paper);
}
.rung h3 {
  margin: 0 0 14px 0;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.rung__meta {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
  margin-bottom: 22px;
  white-space: nowrap;
}
.rung p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* Box 1: flat left, point right */
.ladder .rung:nth-child(1) {
  padding-right: calc(28px + var(--chev));
  clip-path: polygon(
    0 0,
    calc(100% - var(--chev)) 0,
    100% 50%,
    calc(100% - var(--chev)) 100%,
    0 100%
  );
}

/* Boxes 2 & 3: notch left, point right */
.ladder .rung:nth-child(2),
.ladder .rung:nth-child(3) {
  padding-left: calc(28px + var(--chev));
  padding-right: calc(28px + var(--chev));
  margin-left: calc(var(--chev) * -1);
  clip-path: polygon(
    0 0,
    calc(100% - var(--chev)) 0,
    100% 50%,
    calc(100% - var(--chev)) 100%,
    0 100%,
    var(--chev) 50%
  );
}

/* Box 4: notch left, flat right */
.ladder .rung:nth-child(4) {
  padding-left: calc(28px + var(--chev));
  margin-left: calc(var(--chev) * -1);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0 100%,
    var(--chev) 50%
  );
}

/* Outer hairline of the whole ladder, with gently rounded outer corners */
.ladder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border: 1px solid var(--hair);
  border-radius: 8px;
}

/* Three chevron seams, each a single shared hairline between adjacent boxes */
.ladder__seam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--chev);
  height: 100%;
  pointer-events: none;
  overflow: visible;
  display: block;
}
.ladder__seam:nth-of-type(1) { left: calc(25% - var(--chev)); }
.ladder__seam:nth-of-type(2) { left: calc(50% - var(--chev)); }
.ladder__seam:nth-of-type(3) { left: calc(75% - var(--chev)); }
.ladder__seam path {
  fill: none;
  stroke: var(--hair);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 900px) {
  .ladder {
    grid-template-columns: 1fr;
    --chev: 20px;
  }
  .ladder::after { display: none; }
  .ladder__seam { display: none; }
  .rung { outline: 1px solid var(--hair); outline-offset: -1px; }
  .ladder .rung:nth-child(1) {
    padding-right: 28px;
    padding-bottom: calc(32px + var(--chev));
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - var(--chev)),
      50% 100%,
      0 calc(100% - var(--chev))
    );
  }
  .ladder .rung:nth-child(2),
  .ladder .rung:nth-child(3) {
    padding-left: 28px;
    padding-right: 28px;
    padding-top: calc(32px + var(--chev));
    padding-bottom: calc(32px + var(--chev));
    margin-left: 0;
    margin-top: calc(var(--chev) * -1);
    clip-path: polygon(
      0 var(--chev),
      50% 0,
      100% var(--chev),
      100% calc(100% - var(--chev)),
      50% 100%,
      0 calc(100% - var(--chev))
    );
  }
  .ladder .rung:nth-child(4) {
    padding-left: 28px;
    padding-top: calc(32px + var(--chev));
    margin-left: 0;
    margin-top: calc(var(--chev) * -1);
    clip-path: polygon(
      0 var(--chev),
      50% 0,
      100% var(--chev),
      100% 100%,
      0 100%
    );
  }
}

/* ---------- Pull quote / standfirst ---------- */

.standfirst {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: 1100px;
}
.standfirst em { font-style: italic; }

/* ---------- Footer ---------- */

/* ---------- Footer (matches standards.rochdog.com) ---------- */

.site-footer {
  background: linear-gradient(180deg, #1A1A1A 0%, #0E0E0E 100%);
  color: #fff;
  margin-top: auto;
  padding: 0;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  align-items: start;
  gap: 48px;
}

.site-footer__brand {
  flex: 0 1 280px;
  min-width: 0;
}
.site-footer__brand-mark {
  display: inline-block;
  border: 0;
  margin-bottom: 14px;
}
.site-footer__brand-mark img {
  height: 28px;
  width: auto;
  display: block;
}
.site-footer__brand-about {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.site-footer__col {
  min-width: 0;
  flex-shrink: 0;
}

.site-footer__inner > .site-footer__col:nth-child(2) {
  margin-left: auto;
}

.site-footer__col--newsletter {
  margin-left: auto;
  min-width: 260px;
}

.site-footer__col-heading {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-bottom: 14px;
}

.site-footer__col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__col-links a {
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border: 0;
  transition: color 0.15s;
}
.site-footer__col-links a:hover {
  color: #fff;
}

.site-footer__newsletter-row {
  display: flex;
  gap: 0;
}
.site-footer__newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: #fff;
  outline: none;
  min-width: 0;
}
.site-footer__newsletter-input::placeholder {
  color: rgba(255,255,255,0.35);
}
.site-footer__newsletter-input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
}
.site-footer__newsletter-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0 4px 4px 0;
  padding: 8px 20px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.site-footer__newsletter-btn:hover {
  background: rgba(255,255,255,0.25);
}
.site-footer__newsletter-note {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin: 6px 0 0 0;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
}
.site-footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__copy {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}
.site-footer__bottom-links {
  display: flex;
  gap: 28px;
}
.site-footer__bottom-links a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border: 0;
  transition: color 0.15s;
}
.site-footer__bottom-links a:hover {
  color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 24px;
  }
  .site-footer__inner > .site-footer__col:nth-child(2) { margin-left: 0; }
  .site-footer__col--newsletter { margin-left: 0; min-width: 0; width: 100%; }
  .site-footer__bottom-inner {
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- Form ----------
   Agentic players-inspired pill style, translated to Roch paper + gold.
   Filled inputs with soft white fill, gold focus halo, pill chips. */

.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* 2-column grid for the whole form, gap handles vertical + horizontal spacing. */
.form-wrap .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 18px;
  align-items: start;
}
.form-wrap .grid .field { margin: 0; }
.form-wrap .grid .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .form-wrap .grid {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
}

.form-wrap h1 {
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 300;
  text-align: center;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.form-wrap .lede {
  text-align: center;
  text-wrap: pretty;
  color: var(--mute);
  font-size: clamp(16px, 1.3vw, 19px);
  margin-left: auto;
  margin-right: auto;
  max-width: 460px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.field > label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mute);
  margin-bottom: 6px;
}

.field > label .optional {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mute-soft);
  font-weight: 400;
  margin-left: 6px;
  text-transform: uppercase;
}

/* Filled pill inputs. Subtle white fill on paper, soft border. */
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(10, 10, 10, 0.14);
  background-color: #FFFFFF;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--mute);
  opacity: 0.7;
}

.field input.capitalize { text-transform: capitalize; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
  background-color: #FFFFFF;
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 16px 4px rgba(179, 149, 26, 0.35);
}

.field textarea {
  min-height: 130px;
  max-height: 220px;
  resize: vertical;
  line-height: 1.5;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mute) 50%),
    linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
}

.field .hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--mute);
  font-style: normal;
  font-family: var(--sans);
}

.field .hint #motivation-count {
  color: var(--ink-soft);
  font-weight: 600;
}

.field .err {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #B42020;
  letter-spacing: 0.01em;
}
.field.has-error .err {
  display: block;
  animation: errorIn 0.18s ease-out;
}
.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: rgba(180, 32, 32, 0.6);
  background-color: rgba(180, 32, 32, 0.04);
}
.field.has-error input:focus,
.field.has-error textarea:focus,
.field.has-error select:focus {
  border-color: rgba(180, 32, 32, 0.9);
  box-shadow: 0 0 0 3px rgba(180, 32, 32, 0.18);
}
@keyframes errorIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Pill chips for ambition + languages. */
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.checks input { display: none; }
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(10, 10, 10, 0.14);
  background: #FFFFFF;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.005em;
  text-transform: none;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.checks label:not(.locked):hover {
  border-color: var(--gold);
  box-shadow:
    0 0 0 1.5px var(--gold),
    0 0 12px 2px rgba(179, 149, 26, 0.3);
}
.checks label:focus-within {
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 14px 3px rgba(179, 149, 26, 0.35);
}
.checks label:has(input:checked) {
  color: #FFFFFF;
  background: var(--gold);
  border-color: var(--gold);
}

/* Locked English chip: ink fill so it reads as system-locked, not user-selected. */
.checks--lang label.locked {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
  cursor: default;
}

/* Typeahead multi-select for "Languages besides English". */
.typeahead {
  position: relative;
}
.typeahead__field {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(10, 10, 10, 0.14);
  background-color: #FFFFFF;
  border-radius: 10px;
  cursor: text;
  min-height: 46px;
  max-height: 96px;
  overflow-y: auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.typeahead__field:focus-within {
  border-color: var(--gold);
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 16px 4px rgba(179, 149, 26, 0.35);
}
.typeahead__tags {
  display: contents;
}
.typeahead__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  background-color: var(--gold);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  user-select: none;
  white-space: nowrap;
}
.typeahead__tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  transition: background-color 0.15s ease;
}
.typeahead__tag-remove:hover { background-color: rgba(255, 255, 255, 0.45); }
.typeahead__field input.typeahead__input,
.typeahead__field input.typeahead__input:focus,
.field input.typeahead__input,
.field input.typeahead__input:focus {
  flex: 1;
  width: auto;
  min-width: 140px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  padding: 4px 0;
}
.typeahead__input::placeholder {
  color: var(--mute);
  opacity: 0.7;
}
.typeahead__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background-color: #FFFFFF;
  border: 1px solid rgba(10, 10, 10, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.14);
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
}
.typeahead__group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 8px 10px 4px;
}
.typeahead__option {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  user-select: none;
  transition: background-color 0.12s ease;
}
.typeahead__option:hover,
.typeahead__option.is-active {
  background-color: rgba(179, 149, 26, 0.12);
}
.typeahead__option-native {
  font-weight: 500;
}
.typeahead__option-english {
  color: var(--mute);
  font-size: 12px;
}
.typeahead__option--add {
  border-top: 1px solid rgba(10, 10, 10, 0.06);
  margin-top: 4px;
  padding-top: 12px;
  font-style: italic;
  color: var(--ink-soft);
}
.typeahead__option--add strong {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
}
.typeahead__empty {
  padding: 12px;
  color: var(--mute);
  font-size: 13px;
  text-align: center;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  font-family: var(--sans);
  font-style: normal;
  min-height: 22px;
}
.form-status.ok { color: var(--ink); font-weight: 500; }
.form-status.bad { color: #B42020; }

/* Submit button: keep locked .btn pill, but center it under the form. */
#submit-btn {
  display: flex;
  margin: 28px auto 0;
  min-width: 240px;
  justify-content: center;
}
.btn:disabled { cursor: not-allowed; }

/* Gold pulse cascade. Each class hits the white box element (input/select/textarea/chip/btn)
   directly, never the .field wrapper. Tight peak (45-55%) so individual boxes flash and fade
   before the next one peaks, creating a visible wave instead of a wash. */
.pulse-gold {
  animation: pulseGoldRing 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  will-change: box-shadow;
}
.pulse-gold-quick {
  animation: pulseGoldRing 0.55s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  will-change: box-shadow;
}
.pulse-gold-strong {
  animation: pulseGoldRingStrong 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  will-change: box-shadow;
}
@keyframes pulseGoldRing {
  0%   { box-shadow: 0 0 0 0 rgba(179, 149, 26, 0), 0 0 0 0 rgba(179, 149, 26, 0); }
  45%  { box-shadow: 0 0 0 2px var(--gold), 0 0 18px 4px rgba(179, 149, 26, 0.45); }
  55%  { box-shadow: 0 0 0 2px var(--gold), 0 0 18px 4px rgba(179, 149, 26, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(179, 149, 26, 0), 0 0 0 0 rgba(179, 149, 26, 0); }
}
@keyframes pulseGoldRingStrong {
  0%   { box-shadow: 0 0 0 0 rgba(179, 149, 26, 0), 0 0 0 0 rgba(179, 149, 26, 0); }
  40%  { box-shadow: 0 0 0 3px var(--gold), 0 0 28px 6px rgba(179, 149, 26, 0.55); }
  60%  { box-shadow: 0 0 0 3px var(--gold), 0 0 28px 6px rgba(179, 149, 26, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(179, 149, 26, 0), 0 0 0 0 rgba(179, 149, 26, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-gold,
  .pulse-gold-quick,
  .pulse-gold-strong { animation: none; }
  .field.has-error .err { animation: none; }
}

/* ---------- Apply page: success state ---------- */

/* When the success block is showing, give the section viewport-tall stage and
   centre the form-wrap vertically. Modern browsers via :has(); fallback is
   simple top-aligned which is acceptable. */
.band--apply:has(#apply-success-block:not([hidden])) {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}
.band--apply:has(#apply-success-block:not([hidden])) > .shell {
  width: 100%;
}

.apply-success {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 0;
  animation: applySuccessIn 0.55s ease-out both;
}

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

.apply-success__mark {
  display: block;
  width: clamp(96px, 11vw, 132px);
  height: auto;
  margin: 0 auto 36px;
  opacity: 0.95;
}

.apply-success .apply-success__eyebrow {
  margin-bottom: 14px;
  display: block;
  text-align: center;
}

.form-wrap .apply-success__heading {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  text-align: center;
}

.form-wrap .apply-success__body {
  margin: 24px auto 0;
  max-width: 460px;
  text-wrap: balance;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--mute);
}

/* ---------- Utility ---------- */

.center { text-align: center; }
.spacer-l { height: clamp(48px, 8vw, 96px); }
.spacer-m { height: clamp(24px, 4vw, 48px); }
