:root {
  --ink: #0A1A2F;
  --navy: #16304F;
  --paper: #F4F2ED;
  --ice: #AFC9E8;
  --bone: #E2DDD2;
  --slate: #7E8FA6;
  --line: rgba(175, 201, 232, 0.22);
  --line-strong: rgba(175, 201, 232, 0.5);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter Tight", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { position: relative; min-height: 100vh; overflow-x: hidden; }
/* soft glow behind the header, like the reference, in brand ice instead of gold */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 55% at 22% 0%, rgba(175, 201, 232, 0.20), rgba(175, 201, 232, 0) 70%),
    radial-gradient(45% 40% at 85% 8%, rgba(22, 48, 79, 0.95), rgba(22, 48, 79, 0) 75%),
    linear-gradient(180deg, #10243D 0%, rgba(10, 26, 47, 0) 100%);
}
/* faint grid texture that fades out down the page */
body::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 700px; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(175, 201, 232, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(175, 201, 232, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 30% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 30% 0%, #000 0%, transparent 75%);
}
.wrap { position: relative; z-index: 1; }
.frame { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); margin: -24px 0 44px; }
.frame i { flex: 1; height: 1px; background: var(--line); }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px 80px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 40px 0 60px; }
.top img { width: 300px; height: auto; display: block; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; color: var(--bone); }
.back:hover { color: var(--paper); }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ice); margin: 0 0 14px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.005em; margin: 0 0 16px; }
.lede { font-size: 18px; line-height: 1.5; color: var(--bone); margin: 0 0 40px; max-width: 640px; }
.card {
  position: relative; border-radius: 20px; padding: 44px;
  background: linear-gradient(180deg, rgba(22, 48, 79, 0.92) 0%, rgba(14, 33, 56, 0.92) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(175, 201, 232, 0.14);
  backdrop-filter: blur(6px);
}
.card::before {
  content: ""; position: absolute; left: 44px; right: 44px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(175, 201, 232, 0.8), transparent);
}
.q label b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ice); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.divider { height: 1px; background: var(--line); margin: 6px 0 30px; }
.card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-bottom: 30px; }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--paper);
  background: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; outline: none; transition: border-color .15s;
}
input::placeholder, textarea::placeholder { color: var(--slate); }
input:focus, textarea:focus { border-color: var(--ice); }
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.q { margin-bottom: 26px; }
.q label { display: block; font-size: 16px; line-height: 1.45; color: var(--paper); margin-bottom: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.submit {
  width: 100%; margin-top: 8px; padding: 22px; border: 0; border-radius: 14px;
  background: var(--paper); color: #06111F; font: inherit; font-size: 19px; font-weight: 700; letter-spacing: 0.01em; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  transition: transform .15s, background .15s;
}
button.submit:hover { transform: translateY(-1px); background: #FFFFFF; }
button.submit:disabled { opacity: .55; cursor: wait; }
.err { color: #F2B8B5; font-size: 15px; margin: 14px 0 0; min-height: 1em; }
.done { text-align: center; padding: 40px 10px; }
.done h2 { margin-bottom: 12px; }
.done p { color: var(--bone); font-size: 17px; line-height: 1.5; margin: 0; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.role { position: relative; display: block; text-decoration: none; background: linear-gradient(180deg, rgba(22, 48, 79, 0.92), rgba(14, 33, 56, 0.92)); border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(175, 201, 232, 0.14); transition: border-color .15s, transform .15s; }
.role:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.role h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 10px; }
.role p { color: var(--bone); margin: 0 0 22px; line-height: 1.5; }
.role span { color: var(--ice); font-weight: 600; font-size: 15px; }
.foot { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--slate); font-size: 13px; }
@media (max-width: 720px) {
  .wrap { padding: 0 16px 56px; }
  .top { padding: 22px 0 36px; }
  .top img { width: 220px; }
  .card { padding: 24px 18px; border-radius: 14px; }
  .card::before { left: 18px; right: 18px; }
  .frame { margin: -10px 0 30px; gap: 10px; font-size: 10px; }
  .frame .hide-sm { display: none; }
  .grid, .roles { grid-template-columns: 1fr; gap: 14px; }
  .lede { font-size: 16px; }
}
/* headings stay on one line on tablet and desktop */
@media (min-width: 721px) {
  h1 { font-size: clamp(30px, 4.4vw, 46px); white-space: nowrap; }
  .card h2 { font-size: clamp(20px, 2.6vw, 28px); white-space: nowrap; }
}
/* logo centred, Back pinned right */
.top { display: grid; grid-template-columns: 1fr auto 1fr; }
.top > a:first-child { grid-column: 2; }
.top .back { grid-column: 3; justify-self: end; }
