/* ==========================================================================
   PRIME FALCON — shared stylesheet
   Palette derived from peregrine plumage: slate back, barred pale underside,
   and the single bright note of the cere (the yellow above the beak).
   ========================================================================== */

:root {
  --ink:    #0D141C;
  --slate:  #18242F;
  --steel:  #3E5A72;
  --mute:   #7C8FA1;
  --haze:   #DCE4EB;
  --paper:  #F6F8FA;
  --white:  #FFFFFF;
  --cere:   #F5B417;
  --cere-d: #C68C05;

  --line:   rgba(13, 20, 28, 0.12);
  --line-d: rgba(255, 255, 255, 0.14);

  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Spline Sans", "Segoe UI", Roboto, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: 24px;
  --max: 1200px;
  --rail: 76px;

  --r: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 350;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--cere);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ---------- type scale ---------- */
.t-hero   { font-size: clamp(2.6rem, 6.4vw, 5.1rem); }
.t-h2     { font-size: clamp(1.9rem, 3.6vw, 3.05rem); }
.t-h3     { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.012em; }
.t-lead   { font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.55; color: var(--steel); }
.t-small  { font-size: 0.92rem; color: var(--steel); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cere);
  flex: none;
}
.on-dark .eyebrow { color: var(--haze); }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 124px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--dark { background: var(--ink); color: var(--haze); }
.section--slate { background: var(--slate); color: var(--haze); }
.section--paper { background: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--slate h1, .section--slate h2, .section--slate h3 { color: var(--white); }
.section--dark .t-lead, .section--slate .t-lead { color: var(--haze); }
.section--dark .eyebrow, .section--slate .eyebrow { color: var(--mute); }

.head-block { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 60px); }
.head-block .t-lead { margin-top: 18px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- altitude rail (signature) ---------- */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 40;
  pointer-events: none;
  display: none;
}
@media (min-width: 1180px) { .rail { display: block; } }

.rail__track {
  position: absolute;
  left: 46px;
  top: 120px;
  bottom: 90px;
  width: 1px;
  background: rgba(124, 143, 161, 0.38);
}
.rail__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: var(--cere);
}
.rail__tick {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
}
.rail__tick i { display: block; width: 7px; height: 1px; background: rgba(124, 143, 161, 0.55); }
.rail__tick span {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.rail__label {
  position: absolute;
  left: 14px;
  bottom: 40px;
  transform-origin: left bottom;
  transform: rotate(-90deg) translateX(0);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.rail__bird {
  position: absolute;
  left: 41px;
  top: 120px;
  width: 11px;
  height: 11px;
  color: var(--cere);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 248, 250, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(13, 20, 28, 0.5); }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
  flex: none;
}
.brand__mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand__mark .accent { fill: var(--cere); }
.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__name small {
  display: block;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  color: var(--mute);
  margin-top: 4px;
}

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--steel);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cere);
}
@media (max-width: 1020px) { .nav__links { display: none; } }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 9px 13px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (max-width: 1020px) { .nav__toggle { display: block; } }

.nav__drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 12px var(--gutter) 26px;
}
.nav__drawer.is-open { display: block; }
.nav__drawer a {
  display: block;
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 1.22rem;
  font-weight: 500;
}
.nav__drawer .btn { margin-top: 18px; width: 100%; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--cere); color: var(--ink); }
.btn--primary:hover { background: var(--cere-d); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--outline-light { border-color: var(--line-d); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); }
.btn svg { width: 13px; height: 13px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 3px;
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--cere);
  padding-bottom: 3px;
  transition: gap 0.2s var(--ease);
}
.textlink:hover { gap: 13px; }
.on-dark .textlink, .section--dark .textlink, .section--slate .textlink { color: var(--white); }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--haze);
  position: relative;
  overflow: hidden;
  padding-block: clamp(70px, 10vw, 132px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 82% 8%, rgba(62, 90, 114, 0.42), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { color: var(--white); }
.hero__sub { margin-top: 24px; max-width: 46ch; color: var(--haze); opacity: 0.82; }

/* the annotated word — grounds the brand name in falconry */
.gloss {
  position: relative;
  color: var(--cere);
  cursor: help;
  border-bottom: 2px dotted rgba(245, 180, 23, 0.5);
}
.gloss__note {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  width: 268px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r);
  padding: 13px 15px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 5;
}
.gloss:hover .gloss__note, .gloss:focus-visible .gloss__note { opacity: 1; visibility: visible; transform: translateY(0); }

/* stoop diagram */
.stoop { position: relative; }
.stoop svg { width: 100%; height: auto; overflow: visible; }
.stoop__path { fill: none; stroke: rgba(220, 228, 235, 0.35); stroke-width: 1; stroke-dasharray: 3 5; }
.stoop__trace {
  fill: none;
  stroke: var(--cere);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.stoop__grid line { stroke: rgba(220, 228, 235, 0.12); stroke-width: 1; }
.stoop__lbl { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.12em; fill: var(--mute); }
.stoop__bird { fill: var(--cere); opacity: 0; }

.readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-d);
  font-family: var(--f-mono);
}
@media (max-width: 420px) { .readout { grid-template-columns: 1fr; } }
.readout__n { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--white); line-height: 1; letter-spacing: -0.02em; }
.readout__n sup { font-size: 0.36em; color: var(--cere); letter-spacing: 0.1em; margin-left: 5px; vertical-align: super; }
.readout__l { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }

/* ---------- stat band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 24px;
}
.stat__n {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__n em { font-style: normal; color: var(--cere); }
.stat__l {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 12px;
}

/* ---------- card grids ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.section--dark .grid, .section--slate .grid { background: var(--line-d); border-color: var(--line-d); }

.card {
  background: var(--paper);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s var(--ease);
}
.section--paper .card { background: var(--white); }
.section--dark .card { background: var(--ink); }
.section--slate .card { background: var(--slate); }
.card:hover { background: var(--white); }
.section--dark .card:hover, .section--slate .card:hover { background: #1F2E3B; }

.card__idx {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--mute);
}
.card__ico { width: 26px; height: 26px; color: var(--cere); }
.card p { color: var(--steel); font-size: 0.97rem; }
.section--dark .card p, .section--slate .card p { color: var(--haze); opacity: 0.75; }
.card__list { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__list li {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px 8px;
}
.section--dark .card__list li, .section--slate .card__list li { color: var(--haze); border-color: var(--line-d); }

/* ---------- phases (dive sequence) ---------- */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-d); }
@media (max-width: 940px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .phases { grid-template-columns: 1fr; } }
.phase { background: var(--ink); padding: 32px 26px 36px; position: relative; }
.phase__alt {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--cere);
  display: block;
  margin-bottom: 20px;
}
.phase h3 { color: var(--white); margin-bottom: 12px; }
.phase__term {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 10px;
}
.phase p { color: var(--haze); opacity: 0.72; font-size: 0.94rem; }

/* ---------- case studies ---------- */
.case {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 42px);
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.28s var(--ease);
}
.case:first-of-type { border-top: 1px solid var(--line); }
.case:hover { padding-left: 14px; }
@media (max-width: 780px) { .case { grid-template-columns: 1fr; } .case:hover { padding-left: 0; } }
.case__meta { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); line-height: 2; }
.case__body h3 { margin-bottom: 10px; }
.case__body p { color: var(--steel); font-size: 0.97rem; max-width: 62ch; }
.case__kpi {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: rgba(245, 180, 23, 0.18);
  padding: 6px 10px;
  border-radius: var(--r);
  white-space: nowrap;
}

/* ---------- logos / marquee strip ---------- */
.strip { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  color: var(--steel);
}
.section--dark .chip, .section--slate .chip { border-color: var(--line-d); color: var(--haze); }

/* ---------- page head (inner pages) ---------- */
.page-head {
  background: var(--ink);
  color: var(--haze);
  padding-block: clamp(56px, 8vw, 104px);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 120% at 88% 0%, rgba(62, 90, 114, 0.4), transparent 60%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: var(--white); max-width: 20ch; }
.page-head .t-lead { color: var(--haze); opacity: 0.8; margin-top: 22px; max-width: 58ch; }
.crumb {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 26px;
}
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--cere); }

/* ---------- accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 24px 40px 24px 0;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
}
.acc__btn::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--cere);
  border-bottom: 1.5px solid var(--cere);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.acc__btn[aria-expanded="true"]::after { transform: translateY(-20%) rotate(225deg); }
.acc__panel { display: none; padding: 0 60px 26px 0; color: var(--steel); font-size: 0.98rem; }
.acc__panel.is-open { display: block; }

/* ---------- form ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field select, .field textarea {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--steel); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field__err { font-family: var(--f-mono); font-size: 0.68rem; color: #C0392B; display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #C0392B; }
.field.is-invalid .field__err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form__status {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  padding: 14px 16px;
  border-radius: var(--r);
  background: rgba(245, 180, 23, 0.16);
  border: 1px solid rgba(245, 180, 23, 0.5);
  display: none;
}
.form__status.is-visible { display: block; }

/* ---------- contact detail list ---------- */
.deflist { border-top: 1px solid var(--line); }
.deflist div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 520px) { .deflist div { grid-template-columns: 1fr; gap: 5px; } }
.deflist dt {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 4px;
}
.deflist dd { margin: 0; }
.deflist dd a { text-decoration: none; border-bottom: 1px solid var(--cere); }

/* ---------- roles (careers) ---------- */
.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.role:first-of-type { border-top: 1px solid var(--line); }
.role__meta { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }
@media (max-width: 640px) { .role { grid-template-columns: 1fr; align-items: start; } }

/* ---------- cta band ---------- */
.cta-band { background: var(--cere); color: var(--ink); padding-block: clamp(56px, 7vw, 92px); }
.cta-band h2 { color: var(--ink); max-width: 18ch; }
.cta-band p { margin-top: 16px; max-width: 46ch; color: rgba(13, 20, 28, 0.72); }
.cta-band .btn--primary { background: var(--ink); color: var(--cere); }
.cta-band .btn--primary:hover { background: #000; }
.cta-band .btn--ghost { border-color: rgba(13, 20, 28, 0.3); }
.cta-band .btn--ghost:hover { border-color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--haze); padding-block: 64px 30px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer .brand__mark { color: var(--white); }
.site-footer .brand__name { color: var(--white); }
.foot-col h4 {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
}
.foot-col li { margin-bottom: 11px; }
.foot-col a { text-decoration: none; font-size: 0.94rem; opacity: 0.82; transition: opacity 0.2s, color 0.2s; }
.foot-col a:hover { opacity: 1; color: var(--cere); }
.foot-note {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line-d);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.foot-note a { text-decoration: none; display: inline-block; padding: 6px 3px; }
.foot-note a:hover { color: var(--cere); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stoop__trace { stroke-dashoffset: 0; }
  .stoop__bird { opacity: 1; }
}

/* skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--r);
  z-index: 100;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-decoration: none;
}
.skip:focus { left: 12px; }

/* ==========================================================================
   Inner-page components
   ========================================================================== */

/* services list */
.svc-list { display: grid; }
.svc {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}
.svc:first-child { border-top: 1px solid var(--line); }
@media (max-width: 720px) { .svc { grid-template-columns: 1fr; gap: 14px; } }
.svc__body { max-width: 74ch; }

.ticks { margin-top: 24px; display: grid; gap: 11px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 0.97rem;
  color: var(--steel);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--cere);
  border-bottom: 1.5px solid var(--cere);
  transform: rotate(-45deg);
}

/* full case list */
.case-list { display: grid; }
.case-full {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 42px);
  align-items: start;
  padding: clamp(30px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.case-full:first-child { border-top: 1px solid var(--line); }
@media (max-width: 820px) { .case-full { grid-template-columns: 1fr; } }

/* timeline */
.timeline { display: grid; border-top: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(14px, 3vw, 40px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 620px) { .timeline li { grid-template-columns: 1fr; gap: 8px; } }
.timeline__yr {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--cere);
  padding-top: 5px;
}
.timeline p { color: var(--steel); font-size: 0.97rem; margin-top: 9px; max-width: 62ch; }

/* misc */
code {
  font-family: var(--f-mono);
  font-size: 0.86em;
  background: var(--haze);
  padding: 2px 6px;
  border-radius: var(--r);
}
.section--dark .stat, .section--slate .stat { border-color: var(--line-d); }
.section--dark .stats, .section--slate .stats { border-color: var(--line-d); }
.section--dark .stat__n, .section--slate .stat__n { color: var(--white); }

/* header fits small screens: the CTA lives in the drawer below 720px */
@media (max-width: 720px) {
  .nav > .btn { display: none; }
  .nav { gap: 14px; min-height: 66px; }
  .brand__name { font-size: 0.98rem; }
}
.nav__drawer a.btn {
  display: flex;
  justify-content: center;
  border-bottom: 0;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 500;
}

/* ---------- case visuals ---------- */
.case-full { grid-template-columns: 300px minmax(0, 1fr) auto; }
@media (max-width: 980px) { .case-full { grid-template-columns: 260px minmax(0, 1fr); } }
@media (max-width: 820px) { .case-full { grid-template-columns: 1fr; } }
.case__viz {
  width: 100%;
  height: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink);
}
@media (max-width: 820px) { .case__viz { max-width: 420px; } }

/* barred plumage texture on dark bands */
.section--dark, .page-head, .hero {
  background-image: url("../img/pattern-barring.svg");
  background-repeat: repeat;
  background-size: 60px 60px;
}
.hero, .page-head { background-color: var(--ink); }

/* ---------- client reviews ---------- */
.rev { gap: 16px; }
.rev__stars {
  color: var(--cere);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  line-height: 1;
}
.rev__q { font-size: 1.02rem !important; color: var(--ink) !important; }
.section--dark .rev__q, .section--slate .rev__q { color: var(--haze) !important; opacity: 1; }
.rev__by {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section--dark .rev__by, .section--slate .rev__by { border-top-color: var(--line-d); }
.rev__ini {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--cere);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.section--dark .rev__ini, .section--slate .rev__ini { background: var(--cere); color: var(--ink); }
.rev__who { font-weight: 500; font-size: 0.9rem; line-height: 1.35; }
.rev__meta {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--mute);
  text-transform: uppercase;
}

/* ---------- portfolio grid + filter ---------- */
.pf-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.pf-filter__btn {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 17px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--steel);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.pf-filter__btn:hover { color: var(--ink); border-color: var(--ink); }
.pf-filter__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cere); }

.pf {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.pf:hover { border-color: var(--ink); transform: translateY(-2px); }
.pf[hidden] { display: none; }
.pf__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.pf__body { padding: clamp(20px, 2.2vw, 26px); display: flex; flex-direction: column; gap: 11px; flex: 1; }
.pf__cat {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cere-d);
}
.pf__p { color: var(--steel); font-size: 0.93rem; }
.pf__kpi {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.pf-empty { color: var(--steel); font-family: var(--f-mono); font-size: .8rem; }

/* ---------- office map ---------- */
.map {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--slate);
}
.map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

/* Below ~400px the brand tagline pushes the menu button off-screen; the
   brand name alone still identifies the site. */
@media (max-width: 420px) {
  .brand__name small { display: none; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 72ch; }
.legal h2 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  margin: 48px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1rem; margin: 26px 0 8px; }
.legal p { color: var(--steel); margin-bottom: 14px; }
.legal ul { margin: 0 0 18px; }
.legal li {
  color: var(--steel);
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.legal li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 7px; height: 1px;
  background: var(--cere);
}
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cere); text-underline-offset: 3px; }
.legal__stamp {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 40px;
}
