/* ==========================================================================
   Breakwater Recruitment — styles.css  (v2)
   Layout concept: quiet, editorial professional-services layout on near-black.
   Serif headlines carry the voice, a clean sans does the work, gold is an accent only.
   ========================================================================== */

:root {
  /* Colour — neutrals carry a faint warm bias toward the gold */
  --ink: #0b0b0c;            /* page ground */
  --ink-2: #111113;          /* alternate section ground */
  --ink-3: #18181b;          /* raised surfaces, inputs */
  --line: rgba(245, 243, 239, 0.09);
  --line-2: rgba(245, 243, 239, 0.18);
  --paper: #f5f3ef;          /* headings, primary text */
  --text-2: #b9b4ab;         /* body text */
  --text-3: #85807a;         /* captions, meta */
  --gold: #c5a25e;           /* accent: primary CTA, rules, focus */
  --gold-2: #d6b777;         /* accent hover */
  --gold-line: rgba(197, 162, 94, 0.5);
  --error: #e49a89;
  --ok: #a8d2b0;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-xs: 0.75rem;     /* 12 */
  --t-sm: 0.875rem;    /* 14 */
  --t-base: 1.0625rem; /* 17 */
  --t-lg: 1.1875rem;   /* 19 */
  --t-xl: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --t-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --t-3xl: clamp(2.6rem, 1.5rem + 3.8vw, 4.75rem);
  --t-hero: clamp(2.9rem, 1.6rem + 4.6vw, 6rem);

  /* Space (8pt) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px;
  --section: clamp(96px, 11vw, 168px);
  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 80px;
  --r: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; background: var(--ink); color: var(--text-2);
  font-family: var(--sans); font-size: var(--t-base); line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p { margin: 0; max-width: 64ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3, h4 { margin: 0; color: var(--paper); text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.06; font-optical-sizing: auto; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); line-height: 1.1; }
h3 { font-family: var(--sans); font-size: var(--t-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
h1 em, h2 em { font-style: italic; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--r); font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Eyebrow & section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: var(--t-xs); font-weight: 600; line-height: 1;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); flex: none; }

.section { position: relative; padding-block: var(--section); }
.section--alt { background: var(--ink-2); }
.section--line { border-top: 1px solid var(--line); }
.section--tight { padding-block: clamp(64px, 7vw, 104px); }

.head { display: grid; gap: var(--s-3); max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.head .lead { font-size: var(--t-lg); line-height: 1.6; color: var(--text-2); }
.head--split { max-width: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; gap: var(--s-3) clamp(40px, 7vw, 120px); }
.head--split > div { display: grid; gap: var(--s-3); }
@media (max-width: 880px) { .head--split { grid-template-columns: minmax(0, 1fr); } }

.lead { font-size: var(--t-lg); line-height: 1.6; }
.prose { display: grid; gap: 1.2em; }
.prose .intro { color: var(--paper); font-size: var(--t-lg); line-height: 1.6; }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: transparent; --fg: var(--paper); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 30px; border-radius: var(--r);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { --bg: var(--gold); --fg: #111; --bd: var(--gold); }
.btn--primary:hover { --bg: var(--gold-2); --bd: var(--gold-2); }
.btn--secondary:hover { --bd: var(--paper); --bg: rgba(245, 243, 239, 0.05); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--light:hover { --bg: #fff; --bd: #fff; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.75rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--paper);
  font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.02em;
}
.link__text { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease); }
.link:hover .link__text { background-size: 100% 1px; }
.link .arrow { color: var(--gold); transition: transform .35s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

.text-link { color: var(--paper); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.text-link:hover { text-decoration-color: var(--gold); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--paper); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__word { display: grid; gap: 5px; line-height: 1; }
.brand__name { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.24em; }
.brand__sub { font-family: var(--sans); font-weight: 500; font-size: 0.5625rem; letter-spacing: 0.44em; color: var(--text-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; height: var(--header-h);
  background: rgba(11, 11, 12, 0.82); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-open { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); }
.nav__list { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.nav__link { position: relative; display: block; padding-block: 8px; font-size: var(--t-sm); font-weight: 500; color: var(--text-2); transition: color .25s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--paper); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: 12px; }
.nav__mobile-only { display: none; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: transparent; color: var(--paper); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle__bars { position: relative; width: 20px; height: 10px; }
.nav-toggle__bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 4.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 1060px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: var(--s-5);
    padding: var(--s-4) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom, 0px));
    background: var(--ink); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding-block: 16px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.75rem; font-weight: 400; color: var(--paper); letter-spacing: -0.01em; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--gold); }
  .nav.is-open .nav__list li { animation: rise .5s var(--ease) both; }
  .nav.is-open .nav__list li:nth-child(2) { animation-delay: .04s; } .nav.is-open .nav__list li:nth-child(3) { animation-delay: .08s; }
  .nav.is-open .nav__list li:nth-child(4) { animation-delay: .12s; } .nav.is-open .nav__list li:nth-child(5) { animation-delay: .16s; }
  .nav.is-open .nav__list li:nth-child(6) { animation-delay: .2s; }
  .nav__cta { flex-direction: column; gap: 12px; }
  .nav__cta .btn { width: 100%; }
  .nav__mobile-only { display: inline-flex; }
}

/* ---------- Media (photography slots) ---------- */
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--ink-3); aspect-ratio: var(--ratio, 4 / 3); max-width: 100%; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

/* ---------- Home hero ---------- */
.hero { position: relative; margin-top: calc(var(--header-h) * -1); display: grid; align-items: end; min-height: min(940px, 100svh); isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: settle 2.6s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.92) 0%, rgba(11, 11, 12, 0.7) 38%, rgba(11, 11, 12, 0.15) 72%, rgba(11, 11, 12, 0.1) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 11, 12, 0) 34%);
}
.hero__inner { padding-top: calc(var(--header-h) + clamp(96px, 14vh, 180px)); padding-bottom: clamp(40px, 5vw, 64px); display: grid; gap: clamp(64px, 9vh, 112px); }
.hero__copy { display: grid; gap: var(--s-4); max-width: 820px; }
.hero h1 { font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 em { color: var(--paper); }
.hero__lead { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.hero .btn-row { margin-top: var(--s-1); }
.hero__index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.hero__index li { display: grid; gap: 6px; padding: 22px 24px 0 0; }
.hero__index b { font-size: var(--t-sm); font-weight: 600; color: var(--paper); letter-spacing: 0.01em; }
.hero__index span { font-size: var(--t-sm); color: var(--text-3); line-height: 1.5; }
@keyframes settle { from { transform: scale(1.07); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(0deg, var(--ink) 4%, rgba(11, 11, 12, 0.72) 55%, rgba(11, 11, 12, 0.5) 100%); }
  .hero__index { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}

/* load sequence */
.load-seq > * { animation: rise 1s var(--ease) both; }
.load-seq > *:nth-child(2) { animation-delay: .1s; }
.load-seq > *:nth-child(3) { animation-delay: .2s; }
.load-seq > *:nth-child(4) { animation-delay: .3s; }
.load-seq > *:nth-child(5) { animation-delay: .4s; }
.load-seq > *:nth-child(6) { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(56px, 7vw, 112px) clamp(64px, 8vw, 128px); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.page-hero__copy { display: grid; gap: var(--s-4); min-width: 0; align-content: start; }
.page-hero h1 { font-size: var(--t-3xl); }
.page-hero .lead { color: var(--text-2); max-width: 50ch; }
.page-hero .media { --ratio: 4 / 5; }
.page-hero--compact { padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 80px); }
.page-hero--compact .page-hero__copy { max-width: 860px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: var(--t-xs); letter-spacing: 0.06em; color: var(--text-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.breadcrumb a:hover { color: var(--paper); }
.breadcrumb [aria-current] { color: var(--text-2); }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero .media { --ratio: 16 / 10; }
}

/* ---------- Layout helpers ---------- */
.split-2 { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 8vw, 128px); align-items: start; }
.split-2--center { align-items: center; }
@media (max-width: 880px) { .split-2 { grid-template-columns: minmax(0, 1fr); } }
.statement { font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); line-height: 1.18; letter-spacing: -0.015em; color: var(--paper); max-width: 22ch; }
.stack { display: grid; gap: var(--s-3); align-content: start; }

/* ---------- Industry rows (home) ---------- */
.ind-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.ind-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center;
  padding: 28px 4px; border-bottom: 1px solid var(--line);
}
.ind-row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem); letter-spacing: -0.01em; transition: transform .45s var(--ease); }
.ind-row p { grid-column: 1; font-size: var(--t-sm); color: var(--text-3); line-height: 1.55; transition: color .3s; }
.ind-row .circle { grid-column: 2; grid-row: 1 / span 2; }
.ind-row:hover h3 { transform: translateX(6px); }
.ind-row:hover p { color: var(--text-2); }
.circle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--paper); font-size: 15px; transition: border-color .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
a:hover .circle, .ind-row:hover .circle { border-color: var(--gold); color: var(--gold); }
@media (max-width: 760px) { .ind-list { grid-template-columns: minmax(0, 1fr); } .ind-row { padding: 22px 0; } }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) clamp(32px, 5vw, 72px); }
.roles__group { display: grid; gap: 18px; align-content: start; min-width: 0; }
.roles__group h3 { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.roles__group ul { display: grid; gap: 12px; }
.roles__group li { color: var(--paper); font-size: var(--t-base); }
@media (max-width: 900px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .roles { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }

/* ---------- Values / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) clamp(32px, 5vw, 64px); }
.pillar { display: grid; gap: 14px; align-content: start; padding-top: var(--s-3); border-top: 1px solid var(--line-2); }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; }
.pillar p { font-size: var(--t-base); }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .pillars { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }

/* ---------- Placeholder (content to be supplied) ---------- */
.ph-flag {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 10px;
  border: 1px dashed var(--line-2); border-radius: var(--r);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
}
.ph-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.quote { display: grid; gap: var(--s-4); max-width: 920px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--text-3); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: 0.6; color: var(--gold); margin-bottom: 18px; }
.quote cite { font-style: normal; font-size: var(--t-sm); color: var(--text-3); }

/* ---------- Audience image cards ---------- */
.aud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.aud__card { position: relative; display: grid; align-content: end; min-height: clamp(460px, 44vw, 620px); padding: clamp(28px, 4vw, 56px); overflow: hidden; border-radius: var(--r); isolation: isolate; }
.aud__card .media { position: absolute; inset: 0; z-index: -2; border-radius: 0; aspect-ratio: auto; }
.aud__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 11, 12, 0.95) 8%, rgba(11, 11, 12, 0.55) 50%, rgba(11, 11, 12, 0.15) 100%); }
.aud__card:hover .media img { transform: scale(1.04); }
.aud__body { display: grid; gap: var(--s-2); max-width: 440px; }
.aud__body h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.aud__body p { color: var(--text-2); }
.aud__body .btn-row { margin-top: var(--s-2); }
@media (max-width: 820px) { .aud { grid-template-columns: minmax(0, 1fr); } .aud__card { min-height: 440px; } }

.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 26px; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 12px; height: 1px; background: var(--gold); }

/* ---------- Cards (services, entry points) ---------- */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card {
  position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(28px, 3vw, 40px);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); min-width: 0;
  transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .45s var(--ease);
}
.section--alt .card { background: var(--ink); }
.card__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.card h2, .card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; letter-spacing: -0.01em; line-height: 1.2; }
.card p { font-size: var(--t-sm); line-height: 1.7; }
.card .link, .card .circle { margin-top: 10px; }
a.card:hover, .card--hover:hover { border-color: var(--line-2); background: var(--ink-3); transform: translateY(-3px); }
.card--feature { grid-column: span 2; }
.card--muted { background: transparent !important; border-style: dashed; }
@media (max-width: 1000px) { .cards { --cols: 2 !important; } }
@media (max-width: 620px) { .cards { --cols: 1 !important; } .card--feature { grid-column: auto; } }

/* ---------- Process (a true sequence) ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5) clamp(24px, 3vw, 48px); }
.process li { counter-increment: step; display: grid; gap: 12px; align-content: start; padding-top: var(--s-3); border-top: 1px solid var(--line-2); }
.process li::before { content: counter(step, decimal-leading-zero); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.16em; color: var(--gold); font-variant-numeric: tabular-nums; }
.process h3 { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; }
.process p { font-size: var(--t-sm); }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Industries page ---------- */
.sector-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.sector-nav a { font-size: var(--t-sm); color: var(--text-3); padding-block: 6px; transition: color .2s; }
.sector-nav a:hover { color: var(--paper); }
.sector { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--s-4) clamp(40px, 8vw, 128px); padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.sector:first-child { border-top: 0; }
.sector__head { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.sector__head h2 { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem); }
.sector__meta { font-size: var(--t-sm); color: var(--text-3); }
.sector__meta b { color: var(--text-2); font-weight: 600; }
.sector__body { display: grid; gap: var(--s-4); min-width: 0; align-content: start; }
.sector__roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
.sector__roles li { padding-block: 14px; border-bottom: 1px solid var(--line); color: var(--paper); }
@media (max-width: 880px) { .sector { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .sector__roles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Jobs ---------- */
.filters {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: end;
  padding: clamp(20px, 2.5vw, 32px); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
}
.filters .btn { min-height: 52px; }
@media (max-width: 1060px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters .field--keyword { grid-column: 1 / -1; } }
@media (max-width: 540px) { .filters { grid-template-columns: minmax(0, 1fr); } .filters .btn { width: 100%; } }
.jobs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block: var(--s-5) var(--s-2); }
.job-count { font-size: var(--t-sm); color: var(--text-3); }
.job-count b { color: var(--paper); font-weight: 600; }

.jobs { border-top: 1px solid var(--line); }
.job {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 48px; align-items: center;
  padding: 32px 8px; border-bottom: 1px solid var(--line); transition: background-color .35s var(--ease);
}
.job:hover { background: linear-gradient(90deg, rgba(245, 243, 239, 0.025), rgba(245, 243, 239, 0)); }
.job__main { display: grid; gap: 10px; min-width: 0; }
.job__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem); letter-spacing: -0.01em; line-height: 1.2; }
.job__meta { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: var(--t-sm); color: var(--text-3); }
.job__meta .job__salary { color: var(--paper); font-variant-numeric: tabular-nums; }
.job__desc { font-size: var(--t-sm); max-width: 72ch; }
.job__flag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.job__flag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }
.job__actions { display: flex; align-items: center; gap: 20px; }
.job__share { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--text-3); transition: color .2s; }
.job__share:hover { color: var(--paper); }
.job__share svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .job { grid-template-columns: minmax(0, 1fr); padding: 28px 0; } }
.jobs-empty { display: grid; gap: var(--s-2); justify-items: center; text-align: center; padding: var(--s-7) var(--s-3); border-bottom: 1px solid var(--line); }
.jobs-empty p { color: var(--text-3); }

/* ---------- CTA band ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(112px, 13vw, 200px); }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 12, 0.94) 0%, rgba(11, 11, 12, 0.72) 50%, rgba(11, 11, 12, 0.4) 100%); }
.cta__inner { display: grid; gap: var(--s-4); max-width: 760px; }
.cta h2 { font-size: var(--t-3xl); }
.cta p { font-size: var(--t-lg); }
.cta--plain { background: var(--ink-2); border-block: 1px solid var(--line); }
.cta--plain::before { display: none; }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.form-shell__aside { display: grid; gap: var(--s-3); align-content: start; min-width: 0; position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 920px) { .form-shell { grid-template-columns: minmax(0, 1fr); } .form-shell__aside { position: static; } }

.form { display: grid; gap: var(--s-4); padding: clamp(24px, 4vw, 56px); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.section--alt .form { background: var(--ink); }
.form__group { display: grid; gap: 20px; border: 0; margin: 0; padding: 0; min-width: 0; }
.form__group:has(+ .form__group) { padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.form__legend { padding: 0; margin-bottom: 20px; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form__grid .field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field > label, .field > .label { font-size: var(--t-sm); font-weight: 500; color: var(--paper); }
.field .opt { color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--r);
  font-family: var(--sans); font-size: 1rem; color: var(--paper);
  background: var(--ink); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.section--alt .form .field input, .section--alt .form .field select, .section--alt .form .field textarea,
.filters .field input, .filters .field select { background: var(--ink-3); }
.field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; background-size: 5px 5px; background-repeat: no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 0.8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(245, 243, 239, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 162, 94, 0.16); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { font-size: var(--t-sm); color: var(--error); }
.field__hint { font-size: var(--t-sm); color: var(--text-3); }
.field input[type="file"] { padding: 12px; cursor: pointer; color: var(--text-2); }
.field input[type="file"]::file-selector-button {
  margin-right: 16px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--paper);
  font-family: var(--sans); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: start; font-size: var(--t-sm); color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; accent-color: var(--gold); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); padding-top: var(--s-1); }
.form__small { font-size: var(--t-xs); color: var(--text-3); max-width: 42ch; }
.form__status { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: var(--t-sm); }
.form__status strong { font-weight: 600; }
.form__status span { color: var(--text-2); }
.form__status--ok { border-color: rgba(168, 210, 176, 0.45); color: var(--ok); }
.form__status--error { border-color: rgba(228, 154, 137, 0.5); color: var(--error); }
.form__status--info { border-color: var(--gold-line); color: var(--gold-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.segmented { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; gap: 4px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink); }
.section--alt .form .segmented { background: var(--ink-3); }
.segmented input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.segmented label { display: grid; place-items: center; min-height: 44px; padding: 6px; border-radius: 2px; font-size: var(--t-sm); font-weight: 500; color: var(--text-2); cursor: pointer; transition: background-color .25s, color .25s; }
.segmented label:hover { color: var(--paper); }
.segmented input:checked + label { background: var(--paper); color: var(--ink); font-weight: 600; }
.segmented input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; font-size: var(--t-sm); font-weight: 500; color: var(--paper); }

/* ---------- Contact ---------- */
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line); }
.contact-list .k { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.contact-list .v { color: var(--paper); word-break: break-word; }
.copy-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: var(--t-xs); color: var(--text-3); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.copy-btn:hover { color: var(--paper); }
@media (max-width: 420px) { .contact-list li { grid-template-columns: minmax(0, 1fr) auto; } .contact-list .k { grid-column: 1 / -1; } }

/* ---------- Legal ---------- */
.legal { max-width: 760px; display: grid; gap: 18px; }
.legal h2 { font-size: var(--t-xl); margin-top: var(--s-4); }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 10px; }
.legal strong { color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: #080809; border-top: 1px solid var(--line); padding-block: clamp(80px, 9vw, 128px) calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer__lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4) var(--s-6); align-items: end; padding-bottom: clamp(56px, 7vw, 96px); margin-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.footer__tagline { font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--paper); max-width: 20ch; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.footer__brand { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.footer__brand p { font-size: var(--t-sm); color: var(--text-3); max-width: 36ch; }
.footer__col { display: grid; gap: 18px; align-content: start; min-width: 0; }
.footer__col h2 { font-family: var(--sans); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper); line-height: 1.4; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { font-size: var(--t-sm); color: var(--text-3); transition: color .2s; }
.footer__col a:hover { color: var(--paper); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-top: clamp(56px, 7vw, 96px); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--text-3); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.footer__bottom a:hover { color: var(--paper); }
.social a { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-sm); font-weight: 500; color: var(--paper); transition: color .2s; }
.social a:hover { color: var(--gold-2); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 1060px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .footer__lead { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Preview note ---------- */
.preview-note { position: relative; z-index: 70; background: var(--ink-3); color: var(--text-3); border-bottom: 1px solid var(--line); font-size: 0.6875rem; letter-spacing: 0.04em; text-align: center; padding: 7px 16px; }

/* ---------- Scroll reveal: only below-the-fold elements are hidden, and only once JS runs ---------- */
.js .reveal.is-pending { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--delay, 0s), transform .9s var(--ease) var(--delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal.is-pending { opacity: 1; transform: none; }
}

/* ==========================================================================
   Lead generation components
   ========================================================================== */

/* Confirmation panel (replaces a form after a successful submission) */
.form-wrap { min-width: 0; }
.confirm {
  display: grid; gap: var(--s-3); align-content: start; padding: clamp(28px, 4vw, 56px);
  background: var(--ink-2); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--r);
  animation: rise .6s var(--ease) both;
}
.confirm:focus { outline: none; }
.section--alt .confirm { background: var(--ink); }
.confirm__mark { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold); }
.confirm__mark svg { width: 24px; height: 24px; }
.confirm__title { font-size: var(--t-2xl); }
.confirm .lead { color: var(--text-2); max-width: 52ch; }
.confirm__ref { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0; padding: 16px 0; border-block: 1px solid var(--line); }
.confirm__ref dt { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.confirm__ref dd { margin: 0; color: var(--paper); font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.confirm__note { font-size: var(--t-sm); color: var(--text-3); padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.confirm .btn-row { margin-top: var(--s-1); }

/* Numbered next steps (a real sequence) */
.steps { counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: 1 / span 2; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; color: var(--gold); padding-top: 4px; font-variant-numeric: tabular-nums; }
.steps b { color: var(--paper); font-weight: 600; }
.steps span { font-size: var(--t-sm); color: var(--text-2); }

/* Small secondary action line under hero CTAs */
.alt-action { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: var(--t-sm); color: var(--text-3); }
.alt-action a { color: var(--paper); }
.alt-action .link { font-size: var(--t-sm); }
.alt-action .sep { width: 1px; height: 14px; background: var(--line-2); }

/* Inline CTA strip that ends a section */
.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4);
  margin-top: clamp(48px, 6vw, 72px); padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2);
}
.section--alt .inline-cta { background: var(--ink); }
.inline-cta p { color: var(--paper); font-size: var(--t-lg); max-width: none; }
.inline-cta p span { color: var(--text-3); }

/* Phone line */
.phone-line { display: grid; gap: 4px; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.phone-line .k { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.phone-line a.num { font-family: var(--serif); font-size: 1.75rem; color: var(--paper); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; width: fit-content; }
.phone-line a.num:hover { color: var(--gold-2); }
.phone-line .link { margin-top: 6px; }
.is-confirmed .form-shell__aside .steps, .is-confirmed .form-shell__aside .eyebrow + .steps { display: none; }

/* Mobile action bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 11, 12, 0.94); border-top: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mbar.is-visible { transform: none; }
  .mbar .btn { min-height: 48px; padding: 0 12px; font-size: 0.75rem; letter-spacing: 0.1em; }
}

/* ==========================================================================
   Production additions: job pages, sector pages, footer details, notices
   ========================================================================== */
.footer__contact { display: grid; gap: 6px; font-style: normal; font-size: var(--t-sm); color: var(--text-3); }
.footer__contact a { color: var(--text-2); width: fit-content; }
.footer__contact a:hover { color: var(--paper); }
.footer__bottom .social a { font-size: var(--t-xs); color: var(--text-3); }
.footer__bottom .social svg { width: 14px; height: 14px; }

.form__notice { font-size: var(--t-sm); color: var(--text-3); line-height: 1.6; max-width: none; }
.cf-turnstile { min-height: 65px; }

.job__title a { color: inherit; }
.job__title a:hover { text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 5px; }
.job__meta--lg { font-size: var(--t-base); }
.jobs-none, .jobs-note { padding: var(--s-5) var(--s-4); border: 1px dashed var(--line-2); border-radius: var(--r); display: grid; gap: var(--s-2); justify-items: start; }
.jobs-none h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); }
.jobs-note { display: block; color: var(--text-2); max-width: none; }
.notice { padding: 16px 18px; border: 1px solid var(--gold-line); border-radius: var(--r); color: var(--paper); max-width: 60ch; }

.job-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.job-detail__h { font-size: var(--t-xl); margin-top: var(--s-3); }
.job-detail__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.facts { margin: 0; padding: 8px 24px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); }
.facts div { display: grid; gap: 2px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin: 0; color: var(--paper); }
@media (max-width: 880px) { .job-detail { grid-template-columns: minmax(0, 1fr); } .job-detail__aside { position: static; order: -1; } }

.sector-panel { display: grid; gap: var(--s-3); align-content: start; padding: clamp(24px, 3vw, 40px); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); }
.sector__roles--one { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sector__head h2 a { color: inherit; }
.sector__head h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 6px; }

/* Single-column grid stacks never grow wider than their container (long unbreakable buttons, etc.) */
.sector__head, .sector__body, .stack, .prose, .page-hero__copy, .hero__copy, .form, .form__group, .aud__body, .card, .cta__inner, .confirm, .form-shell__aside, .footer__brand, .sector-panel { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; padding-block: 10px; }
}
