/* Itqan Al Doha Recruitment: site styles. Unlayered so they sit above the scaffold's layered base. */

:root {
  --ink: #112b42;
  --ink-deep: #0b1e2f;
  --ink-2: #1b3a56;
  --paper: #ffffff;
  --mist: #f2f5f8;
  --line: #d9e1e8;
  --line-dark: rgba(255, 255, 255, 0.16);
  --muted: #51667a;
  --steel: #8fabc6;
  --steel-ink: #3e6485;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(56px, 7vw, 104px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  scroll-behavior: smooth;
}
body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.site :where(img) { display: block; max-width: 100%; height: auto; }
.site :where(a) { color: inherit; text-decoration: none; }
.site :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.site :where(h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
.site :where(ol, ul) { list-style: none; }
.site :focus-visible { outline: 2px solid var(--steel-ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 24px; box-sizing: border-box; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h2--light { color: #fff; }
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.lede { margin-top: 14px; max-width: 58ch; color: var(--muted); font-size: 1.02rem; }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel-ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--steel); }
.num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--steel-ink);
  min-width: 2.2em;
  padding-top: 3px;
}

/* ---------- Motion (on mount + scroll-linked transforms only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s var(--ease) both; }
  .rise--2 { animation-delay: 0.12s; }
  .rise--3 { animation-delay: 0.24s; }
  @keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

  .hero__media img, .thero__media img, .ahero__media img { animation: settle 1.6s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

  @supports (animation-timeline: view()) {
    .drift { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.12) translateY(3%); } }
    .promise__bg { animation: pan linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes pan { from { transform: scale(1.1) translateY(-4%); } to { transform: scale(1.1) translateY(4%); } }
  }
  .svc__panel { animation: swap 0.55s var(--ease) both; }
  @keyframes swap { from { transform: translateY(10px); opacity: 0.4; } to { transform: none; opacity: 1; } }
}

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__bar { height: 76px; display: flex; align-items: center; gap: 40px; }
.hdr__logo { color: var(--ink); display: block; flex: none; }
.hdr__logo-svg { height: 38px; width: auto; display: block; }
.hdr__nav { display: flex; gap: 30px; margin-left: auto; }
.hdr__link {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.25s;
}
.hdr__link:hover, .hdr__link.is-active { color: var(--ink); }
.hdr__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ink); }
.cta-nav {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left / 0% 100%;
  transition: background-size 0.45s var(--ease), color 0.3s;
  white-space: nowrap;
}
.cta-nav:hover { background-size: 100% 100%; color: #fff; }
.cta-nav:active { transform: translateY(1px); }
.hdr__toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.hdr__bars, .hdr__bars::before, .hdr__bars::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); content: ""; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.hdr__bars { top: 21px; }
.hdr__bars::before { top: -7px; left: 0; }
.hdr__bars::after { top: 7px; left: 0; }
.hdr--open .hdr__bars { background: transparent; }
.hdr--open .hdr__bars::before { transform: translateY(7px) rotate(45deg); }
.hdr--open .hdr__bars::after { transform: translateY(-7px) rotate(-45deg); }
.hdr__drawer { border-top: 1px solid var(--line); background: #fff; }
.hdr__drawer-nav { display: flex; flex-direction: column; padding-block: 8px 20px; }
.hdr__drawer-link { font-family: var(--serif); font-size: 1.4rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hdr__drawer-cta { margin-top: 18px; background: var(--ink); color: #fff; padding: 15px 18px; font-weight: 500; }
@media (max-width: 960px) {
  .hdr__nav, .cta-nav { display: none; }
  .hdr__toggle { display: block; }
  .hdr__bar { height: 66px; }
  .hdr__logo-svg { height: 32px; }
}

/* ---------- CTAs (each its own garment) ---------- */
.cta-request {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 22px 17px 24px;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.cta-request::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--steel); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.cta-request:hover::after { transform: scaleX(1); }
.cta-request:active { transform: translateY(1px); }
.cta-request--ink { background: var(--ink); color: #fff; }
.cta-request--paper { background: #fff; color: var(--ink); }
.cta-request--paper::after { background: var(--steel-ink); }
.cta-request__arrow { width: 20px; height: 20px; transition: transform 0.45s var(--ease); }
.cta-request:hover .cta-request__arrow { transform: translateX(5px); }

.cta-cv { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; font-size: 0.95rem; padding: 6px 0; }
.cta-cv__ring {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid currentColor; transition: background 0.35s, color 0.35s;
}
.cta-cv__arrow { width: 18px; height: 18px; transition: transform 0.45s var(--ease); }
.cta-cv:hover .cta-cv__arrow { transform: rotate(-45deg); }
.cta-cv:active { transform: scale(0.98); }
.cta-cv--ink { color: var(--ink); }
.cta-cv--ink:hover .cta-cv__ring { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-cv--paper { color: #fff; }
.cta-cv--paper:hover .cta-cv__ring { background: #fff; color: var(--ink); }

.cta-wa { display: inline-flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.cta-wa__kicker { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.cta-wa__number {
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.2;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
  transition: background-size 0.5s var(--ease); padding-bottom: 2px;
}
.cta-wa:hover .cta-wa__number { background-size: 100% 1px; }
.cta-wa--paper { color: #fff; }
.cta-wa--paper .cta-wa__kicker { color: var(--steel); }

/* ---------- Home hero ---------- */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 1.3rem + 4.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero__title em { font-style: italic; color: var(--steel-ink); }
.hero__sub { margin-top: 24px; max-width: 46ch; font-size: 1.08rem; color: var(--muted); font-weight: 300; }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; }
.hero__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: min(78dvh, 720px); justify-self: end; width: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, 0.55); pointer-events: none; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 3; max-height: none; }
}

/* ---------- Facts strip ---------- */
.facts { background: var(--mist); border-bottom: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 auto; }
.facts__item { padding: 22px 20px; border-left: 1px solid var(--line); }
.facts__item:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: 1.15rem; margin-top: 4px; }
@media (max-width: 860px) {
  .facts__row { grid-template-columns: repeat(2, 1fr); }
  .facts__item { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; }
  .facts__item:nth-child(-n + 2) { border-top: 0; }
  .facts__item:last-child { grid-column: 1 / -1; }
}

/* ---------- Reasons ---------- */
.reasons { padding-block: var(--pad); }
.reasons__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.reasons__media { overflow: hidden; min-height: 420px; position: relative; }
.reasons__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.reasons__list { margin-top: 28px; border-top: 1px solid var(--line); }
.reasons__item { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.reasons__item p { color: var(--muted); max-width: 56ch; }
@media (max-width: 860px) {
  .reasons__grid { grid-template-columns: 1fr; }
  .reasons__media { min-height: 0; aspect-ratio: 3 / 2; }
}

/* ---------- Services explorer (dark) ---------- */
.svc {
  padding-block: var(--pad);
  background: var(--ink) url("/assets/lattice.webp") center / 420px repeat;
  color: #fff;
  position: relative;
}
.svc::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 43, 66, 0.72), rgba(11, 30, 47, 0.9)); }
.svc > .wrap { position: relative; }
.svc__tabs { margin-top: 36px; display: flex; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); overflow-x: auto; scrollbar-width: none; }
.svc__tab {
  flex: 1 0 auto;
  display: flex; align-items: baseline; gap: 10px;
  padding: 18px 22px 18px 0;
  margin-right: 22px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  white-space: nowrap;
  transition: color 0.3s;
}
.svc__tab:hover { color: #fff; }
.svc__tab-num { font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: var(--steel); }
.svc__tab[aria-selected="true"] { color: #fff; }
.svc__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.svc__tab[aria-selected="true"]::after { transform: scaleX(1); }
.svc__panel { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 64px); margin-top: 40px; align-items: center; }
.svc__media { overflow: hidden; aspect-ratio: 3 / 2; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.svc__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.15; letter-spacing: -0.015em; }
.svc__body { margin-top: 14px; color: rgba(255, 255, 255, 0.78); max-width: 46ch; }
.svc__points { margin: 24px 0 30px; border-top: 1px solid var(--line-dark); }
.svc__points li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.95rem; display: flex; gap: 12px; align-items: center; }
.svc__points li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--steel); transform: rotate(45deg); flex: none; }
@media (max-width: 860px) {
  .svc__panel { grid-template-columns: 1fr; }
}

/* ---------- Process timeline ---------- */
.proc { padding-block: var(--pad); border-bottom: 1px solid var(--line); }
.proc__track { margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.proc__track::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.proc__track::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 3px; background: var(--ink);
  width: calc((var(--step) + 1) * 20%); transition: width 0.6s var(--ease);
}
.proc__step { padding: 28px 24px 8px 0; outline: none; cursor: default; }
.proc__step p { color: var(--muted); font-size: 0.93rem; }
.proc__num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; color: var(--steel-ink); margin-bottom: 18px;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.proc__step.is-on .proc__num { background: var(--ink); color: #fff; border-color: var(--ink); }
.proc__step:focus-visible .proc__num { outline: 2px solid var(--steel-ink); outline-offset: 3px; }
@media (max-width: 960px) {
  .proc__track { grid-template-columns: 1fr; border-left: 1px solid var(--line); margin-left: 20px; }
  .proc__track::before { display: none; }
  .proc__track::after { left: -2px; top: 0; width: 3px; height: calc((var(--step) + 1) * 20%); transition: height 0.6s var(--ease); }
  .proc__step { padding: 0 0 26px 30px; position: relative; }
  .proc__num { position: absolute; left: -21px; top: 0; background: #fff; margin: 0; }
  .proc__step .h3 { padding-top: 8px; }
}

/* ---------- Promise band ---------- */
.promise { position: relative; overflow: hidden; background: var(--ink-deep); color: #fff; }
.promise__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.promise::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 30, 47, 0.92) 0%, rgba(11, 30, 47, 0.6) 55%, rgba(11, 30, 47, 0.25) 100%); }
.promise__inner { position: relative; z-index: 2; padding-block: clamp(80px, 11vw, 150px); }
.promise__quote { max-width: 800px; }
.promise__quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.8rem); line-height: 1.22; letter-spacing: -0.01em; }
.promise__quote footer { margin-top: 22px; font-size: 0.85rem; color: var(--steel); letter-spacing: 0.04em; display: flex; align-items: center; gap: 12px; }
.promise__quote footer::before { content: ""; width: 36px; height: 1px; background: currentColor; }

/* ---------- Audience panels ---------- */
.aud { display: grid; grid-template-columns: 1fr 1fr; }
.aud__panel { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #fff; }
.aud__panel--schools { background: var(--ink-2); }
.aud__panel--teachers img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.aud__panel--teachers::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(11, 30, 47, 0.94) 10%, rgba(11, 30, 47, 0.35) 100%); }
.aud__panel--teachers:hover img { transform: scale(1.04); }
.aud__inner { position: relative; z-index: 2; padding: clamp(32px, 5vw, 64px); max-width: 540px; }
.aud__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; }
.aud__inner p { margin: 14px 0 28px; color: rgba(255, 255, 255, 0.8); }
@media (max-width: 860px) {
  .aud { grid-template-columns: 1fr; }
  .aud__panel { min-height: 360px; }
}

/* ---------- Teachers page ---------- */
.thero { border-bottom: 1px solid var(--line); }
.thero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.thero__media { overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.thero__media img { width: 100%; height: 100%; object-fit: cover; }
.thero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 1.3rem + 3.4vw, 4.3rem); line-height: 1.04; letter-spacing: -0.025em;
}
@media (max-width: 860px) {
  .thero__grid { grid-template-columns: 1fr; }
  .thero__copy { order: -1; }
}

.roles { padding-block: var(--pad); }
.roles__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.roles__head { position: sticky; top: 110px; }
.roles__list { border-top: 1px solid var(--ink); }
.roles__row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease); }
.roles__row:hover { padding-left: 10px; }
.roles__row dt { font-family: var(--serif); font-size: 1.2rem; }
.roles__row dd { color: var(--muted); }
@media (max-width: 860px) {
  .roles__grid, .roles__row { grid-template-columns: 1fr; }
  .roles__row { gap: 4px; }
  .roles__head { position: static; }
}

.journey { padding-block: var(--pad); background: var(--mist); border-block: 1px solid var(--line); }
.journey__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.journey__list { margin-top: 28px; counter-reset: j; }
.journey__list li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.journey__list p { color: var(--muted); }
.journey__media { overflow: hidden; position: relative; min-height: 420px; }
.journey__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .journey__grid { grid-template-columns: 1fr; }
  .journey__media { min-height: 0; aspect-ratio: 3 / 2; }
}

.ready { background: var(--ink); color: #fff; padding-block: clamp(56px, 6vw, 88px); }
.ready__grid { display: grid; grid-template-columns: 0.9fr 1.3fr 0.8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.ready__list li { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
.ready__list li:first-child { border-top: 1px solid var(--line-dark); }
.ready__list li::before { content: ""; width: 14px; height: 7px; border-left: 1.5px solid var(--steel); border-bottom: 1.5px solid var(--steel); transform: rotate(-45deg) translateY(-3px); flex: none; }
.ready__note { margin-top: 18px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); }
.ready__note a { color: #fff; border-bottom: 1px solid var(--steel); }
@media (max-width: 960px) { .ready__grid { grid-template-columns: 1fr; } }

/* ---------- About page ---------- */
.ahero { border-bottom: 1px solid var(--line); }
.ahero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.ahero__media { overflow: hidden; aspect-ratio: 5 / 5.6; max-height: 640px; }
.ahero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .ahero__grid { grid-template-columns: 1fr; } .ahero__media { aspect-ratio: 4 / 3; } }

.approach { padding-block: var(--pad); background: var(--mist); border-bottom: 1px solid var(--line); }
.approach__quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.2rem); line-height: 1.2; letter-spacing: -0.015em; max-width: 24ch;
}

.commit { padding-block: var(--pad); }
.commit__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.commit__head { position: sticky; top: 110px; }
.commit__list li { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.commit__list li:last-child { border-bottom: 1px solid var(--line); }
.commit__list p { color: var(--muted); max-width: 56ch; }
@media (max-width: 860px) { .commit__grid { grid-template-columns: 1fr; } .commit__head { position: static; } }

.licence { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.licence__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.licence__grid { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-block: clamp(48px, 6vw, 80px); }
.licence__facts { display: flex; flex-wrap: wrap; gap: 0; }
.licence__facts > div { padding: 4px 32px; border-left: 1px solid var(--line-dark); }
.licence__facts > div:first-child { padding-left: 0; border-left: 0; }
.licence__facts dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.licence__facts dd { font-family: var(--serif); font-size: 1.1rem; margin-top: 4px; max-width: 24ch; }
.licence__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
@media (max-width: 760px) {
  .licence__facts { flex-direction: column; gap: 16px; }
  .licence__facts > div { padding: 0; border: 0; }
}

/* ---------- Contact ---------- */
.contact { padding-block: clamp(40px, 6vw, 80px) var(--pad); }
.contact__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__details { margin-top: 36px; border-top: 1px solid var(--line); }
.contact__details > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__details dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact__details dd { font-family: var(--serif); font-size: 1.15rem; margin-top: 2px; }
.contact__details a { border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact__details a:hover { border-color: var(--ink); }
.contact__form-wrap { background: var(--mist); border: 1px solid var(--line); padding: clamp(20px, 3.5vw, 44px); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); margin-bottom: 30px; }
.switch__btn { padding: 14px 12px; font-size: 0.9rem; font-weight: 500; text-align: center; transition: background 0.3s, color 0.3s; }
.switch__btn[aria-selected="true"] { background: var(--ink); color: #fff; }
.switch__btn:not([aria-selected="true"]):hover { background: #fff; }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form__full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 7px; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 12px 14px;
  transition: border-color 0.25s, box-shadow 0.25s; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 43, 66, 0.12); }
.field--err input, .field--err select, .field--err textarea { border-color: #a4262c; }
.field__error { margin-top: 6px; font-size: 0.8rem; color: #a4262c; }
.form__hint { margin-top: 20px; font-size: 0.85rem; color: var(--muted); }
.form__ok { margin-top: 16px; font-size: 0.88rem; padding: 12px 14px; background: #fff; border-left: 2px solid var(--ink); }

.submit { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.submit__main {
  flex: 1 1 280px; display: flex; justify-content: space-between; align-items: center;
  background: var(--ink) !important; color: #fff !important; padding: 18px 22px !important; font-weight: 500;
  position: relative; overflow: hidden;
}
.submit__main::before {
  content: ""; position: absolute; inset: 0; background: var(--ink-2); transform: translateX(-101%); transition: transform 0.6s var(--ease);
}
.submit__main:hover::before { transform: none; }
.submit__main > * { position: relative; }
.submit__main:active { transform: translateY(1px); }
.submit__arrow { width: 22px; height: 22px; }
.submit__alt { font-size: 0.88rem; color: var(--muted) !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.submit__alt:hover { color: var(--ink) !important; text-decoration-color: var(--ink); }

/* ---------- Footer ---------- */
.ftr { background: var(--ink-deep); color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 40px; padding-block: 64px 44px; }
.ftr__logo { height: 44px; width: auto; color: #fff; }
.ftr__line { margin-top: 18px; max-width: 36ch; }
.ftr__col { display: flex; flex-direction: column; gap: 8px; }
.ftr__head { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin-bottom: 6px !important; }
.ftr__link { width: fit-content; transition: color 0.25s; }
.ftr__link:hover { color: #fff; }
.ftr__muted { color: rgba(255, 255, 255, 0.55); }
.ftr__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid var(--line-dark); font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 760px) { .ftr__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 48px 32px; } }

/* ---------- 404 / error ---------- */
.nf { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.nf__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.nf__inner { position: relative; padding-block: clamp(80px, 12vw, 160px); }
.nf__code { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--steel); margin-bottom: 12px !important; }
.nf__text { margin-top: 14px; color: rgba(255, 255, 255, 0.78); }
.nf__links { margin-top: 28px; display: flex; gap: 24px; }
.nf__link { border-bottom: 1px solid var(--steel); padding-bottom: 3px; }
.nf__link--dark { color: var(--ink); border-color: var(--ink); background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font: inherit; }
.err { min-height: 60dvh; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; font-family: var(--sans); color: var(--ink); background: #fff; }

/* ---------- Static build additions ---------- */
[hidden] { display: none !important; }
.hdr__logo-svg { height: 46px; width: auto; }
.ftr__logo { display: block; height: 56px; }
@media (max-width: 960px) { .hdr__logo-svg { height: 38px; } }
