﻿/* TriadaTechnologies site: light theme, teal accent, calm but confident.
   Nasalization is licensed and supplied by the client. */
@font-face {
  font-family: "Nasalization";
  src: url("fonts/nasalization.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --muted: #556075;
  --line: #E4E7EC;
  /* brand: navy leads, teal supports, orange is a rare highlight */
  --navy: #1E3A8A;
  --navy-deep: #172C6B;
  --teal: #14B8A6;
  --teal-deep: #0D9488;
  --orange: #FF6A00;
  --accent: var(--navy);
  --accent-deep: var(--navy-deep);
  --accent-text: var(--navy);
  --accent-ink: #FFFFFF;
  --tint-teal: #DDF3F0;
  --tint-mist: #F1F4FB;
  --night: #0F1E4A;
  --night-muted: #B4BEDA;

  /* golden-ratio system: spacing follows Fibonacci (each step about 1.618x the last);
     type steps from the 17px body by 1.618 (headings) and its square root 1.272 (lead, card titles) */
  --phi: 1.618;
  --s-1: 8px;
  --s-2: 13px;
  --s-3: 21px;
  --s-4: 34px;
  --s-5: 55px;
  --s-6: 89px;
  --s-7: 144px;

  --fs-eyebrow: 12px;
  --fs-body: 17px;
  --fs-lead: 21px;
  --fs-h3: 22px;
  --fs-h2: 44px;
  --fs-h1: 72px;

  --r-card: 21px;
  --r-panel: 34px;
  --r-field: 13px;
  --r-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(15, 30, 36, .04), 0 12px 32px -12px rgba(15, 30, 36, .12);
  --shadow-lift: 0 2px 4px rgba(15, 30, 36, .05), 0 24px 48px -16px rgba(15, 30, 36, .18);
  --card-art: url("illustration.svg");

  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --sans: "Google Sans Flex", "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Nasalization", "Google Sans Flex", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  padding-left: max(var(--s-3), env(safe-area-inset-left, 0px));
  padding-right: max(var(--s-3), env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: none; color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: var(--s-3); top: -60px; background: var(--ink); color: var(--bg); padding: var(--s-1) var(--s-2); z-index: 30; border-radius: 8px; }
.skip:focus { top: var(--s-2); }

.wrap { max-width: 1120px; margin: 0 auto; }
section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-1);
  font-family: var(--display); font-size: var(--fs-eyebrow); font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text);
  margin: 0 0 var(--s-3);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(42px, 6vw, var(--fs-h1)); line-height: 1.04; }
h2 { font-size: clamp(32px, 4.2vw, var(--fs-h2)); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h1 em, h2 em { font-style: normal; color: inherit; font-weight: inherit; }
p { margin: 0; max-width: 64ch; }
.lead { font-size: clamp(18px, 1.8vw, var(--fs-lead)); color: var(--muted); margin-top: var(--s-3); line-height: 1.6; }
.section-head { margin-bottom: var(--s-5); max-width: 760px; }
.section-head .lead { max-width: 60ch; }

/* buttons: pill shaped, with a gentle lift on hover */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-height: 52px; padding: 0 var(--s-4); border-radius: var(--r-pill); font: 600 16px var(--sans); text-decoration: none; border: 1px solid var(--accent); cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.btn:hover { transform: none; }
.btn-solid { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.btn-solid:hover { background: var(--navy-deep); }
.btn-line { background: var(--surface); color: var(--navy); border-color: var(--line); }
.btn-white { background: #FFFFFF; color: var(--navy); border: 1px solid var(--line); min-width: 168px; min-height: 52px; padding: 0 var(--s-4); box-shadow: var(--shadow-soft); }
.btn-white:hover { border-color: var(--orange); color: var(--navy); box-shadow: var(--shadow-lift); }
.btn-line:hover { border-color: var(--orange); }
.btn-solid:hover { border-color: var(--orange); }

/* top bar: solid at the top, frosted once the page scrolls */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; padding-top: var(--s-2); }
.bar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding: 6px var(--s-1) 6px var(--s-3); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
header.site.scrolled .bar { background: color-mix(in srgb, var(--bg) 66%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-color: transparent; box-shadow: none; }
.brand { display: inline-flex; align-items: center; position: relative; }
.brand img { height: 34px; width: auto; }
/* the logo is dark; pointing at it (or focusing it with the keyboard) fades in the coloured one: navy letters, teal "Technologies", orange bars */
.brand .logo-base { transition: opacity .25s ease; }
.brand .logo-hover { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
@media (hover: hover) { .brand:hover .logo-hover, .brand:focus-visible .logo-hover { opacity: 1; } .brand:hover .logo-base, .brand:focus-visible .logo-base { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .brand .logo-base, .brand .logo-hover { transition: none; } }
nav ul { list-style: none; display: flex; gap: var(--s-3); margin: 0; padding: 0; flex-wrap: wrap; }
nav a { position: relative; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
nav a::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 8px; height: 2px; background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
nav a:hover::after, nav a[aria-current="page"]::after { transform: scaleX(1); }
nav a[aria-current="page"] { color: var(--accent-text); }
.header-cta { display: flex; gap: var(--s-1); align-items: center; }
.header-cta .btn { min-height: 44px; min-width: 150px; padding: 0 var(--s-3); font-size: 15px; }
.header-cta .btn-white { min-height: 44px; min-width: 150px; }

/* on the home page the photo starts at the very top and the bar floats over it */
body:has(.hero-full) header.site { position: fixed; top: 0; left: 0; right: 0; }
.swap { animation: swap 6s ease-in-out infinite; text-shadow: none; }
@keyframes swap {
  0%, 22%   { color: #1E3A8A; }
  33.3%, 55% { color: #14B8A6; }
  66.6%, 88% { color: #FF6A00; }
  100% { color: #1E3A8A; }
}
@media (prefers-reduced-motion: reduce) { .swap { animation: none; color: #14B8A6; } }

/* home landing: full-screen photo, tagline centred on one line */
.hero-full {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-inline: calc(-1 * var(--s-3));
  padding: var(--s-6) var(--s-3);
  text-align: center;
  color: #FFFFFF;
  background-color: var(--night);
  border-top: 0;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .15) 70%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .65) 100%);
}
.hero-center { position: relative; z-index: 2; max-width: 1120px; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero-full h1 { font-size: clamp(24px, 6.6vw, 92px); line-height: 1.05; color: #FFFFFF; white-space: nowrap; }
.hero-full .eyebrow { color: #CFF7F1; margin: 0; }
.scroll-cue { display: none; margin-top: var(--s-5); display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; padding: 0 var(--s-3); border: 1px solid rgba(255,255,255,.55); border-radius: var(--r-pill); color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 500; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }
.scroll-cue::after { content: "â†“"; animation: bob 2.2s ease-in-out infinite; }
.scroll-cue:hover { background: rgba(255,255,255,.18); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.intro { border-top: 0; padding-top: clamp(64px, 9vw, 120px); }
.intro .hero-grid { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.hero-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }
.hook { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); box-shadow: var(--shadow-soft); overflow: hidden; }
.hook::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--teal)); }
.hook strong { display: block; font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; color: var(--ink); }
.hook p { color: var(--muted); }
.hook .call { margin-top: auto; color: var(--ink); font-weight: 500; }

/* industries strip: an editorial ticker. Serif names in a single line, divided by small teal diamonds,
   gliding slowly right to left between hairlines, softly faded at both edges. Pauses under the pointer. */
.marquee { overflow: hidden; padding-block: var(--s-4); border-block: 1px solid var(--line); background: transparent; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.marquee-track { display: flex; width: max-content; animation: slide 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* each industry is an icon and its name, close together; a much wider gap separates one industry from the next */
.marquee-track span { display: inline-flex; align-items: center; gap: 14px; padding-right: 84px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 27px); font-weight: 500; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.marquee-track span img { width: 44px; height: 44px; flex: none; }
.marquee-track span b { font-weight: 500; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.page-hero { border-top: 0; padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(56px, 7vw, 96px); background: radial-gradient(ellipse 45% 60% at 82% 0%, rgba(232,237,248,.95) 0%, rgba(232,237,248,0) 100%); }
.page-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.admin-slot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); }
.admin-slot small { color: var(--muted); font-size: 14px; }

/* two-column text blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: var(--s-5); }
.prose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: var(--s-5); }
.prose p + p { margin-top: var(--s-3); }
.prose .body { color: var(--muted); font-size: 18px; }

/* card grids: equal columns, equal heights, symmetric */
.trio, .quad, .duo, .values, .industries, .steps, .faq { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.industries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trio > *, .quad > *, .duo > *, .values > *, .industries > *, .faq > * { min-width: 0; }

.card {
  --pad: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--pad); overflow: hidden; display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start;
  box-shadow: var(--shadow-soft); height: 100%;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease, border-color .6s ease;
}
.card:hover { transform: scale(1.04); box-shadow: var(--shadow-lift); border-color: var(--teal); }
.card p { color: var(--muted); }
.card .btn { margin-top: auto; }

/* card art runs edge to edge across the top; the card clips the corners. Replace assets/illustration.svg to update all */
.trio > *::before, .quad > *::before, .duo > *::before, .values > *::before, .industries > *::before {
  content: "";
  display: block;
  width: calc(100% + 2 * var(--pad));
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) var(--s-2);
  aspect-ratio: 1.618 / 1;
  background: var(--tint-teal) var(--card-art) center / cover no-repeat;
  box-shadow: inset 0 -3px 0 var(--teal);
}
.industries .card { --pad: var(--s-3); }
.industries .card h3 { font-size: var(--fs-h3); }
.faq .card h3 { font-size: var(--fs-h3); }
.faq .card { align-items: flex-start; }

/* process: numbered steps on a teal rule */
.steps { list-style: none; padding: 0; counter-reset: step; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
.steps li { counter-increment: step; border-top: 2px solid #BFEAE4; padding-top: var(--s-3); position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; color: var(--teal-deep); margin-bottom: var(--s-2); }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--orange); }
.steps h3 { margin-bottom: var(--s-1); font-size: var(--fs-h3); }
.steps p { color: var(--muted); }

.mission-list { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.mission-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-3) var(--s-4); color: var(--muted); box-shadow: var(--shadow-soft); display: flex; gap: var(--s-2); align-items: flex-start; }
.mission-list li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--teal); }

/* closing call to action: a teal panel with a white contact card */
.cta-card { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: var(--s-4); align-items: stretch; background: linear-gradient(135deg, #E8EDF8 0%, #F6F8FD 100%); border: 1px solid #D5DDF0; border-radius: var(--r-panel); padding: clamp(32px, 5vw, 56px); }
.cta-card h2 { margin-top: 0; }
.cta-card .copy p:not(.eyebrow) { color: var(--muted); margin-top: var(--s-3); font-size: 18px; }
.cta-panel { background: var(--surface); border-radius: var(--r-card); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-1); align-items: flex-start; justify-content: center; box-shadow: var(--shadow-lift); }
.cta-panel .label { font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: var(--s-2) 0 0; }
.cta-panel .label:first-child { margin-top: 0; }
.cta-panel a.mail { color: var(--ink); overflow-wrap: anywhere; font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; text-decoration: none; }
.cta-panel .btn { margin-top: var(--s-2); width: 100%; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: var(--s-5); }
.details dl { margin: var(--s-4) 0 0; display: grid; gap: var(--s-3); }
.details dt { font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: var(--s-1) 0 0; font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; }
.details dd a { color: var(--ink); text-decoration: none; }
.details dd a:hover { color: var(--accent-text); }
form.contact-form { display: grid; gap: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lift); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); align-items: start; }
label { display: grid; gap: var(--s-1); font-size: 14px; font-weight: 600; }
input, select, textarea {
  font: 400 16px var(--sans);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  padding: 12px var(--s-3);
  min-height: 52px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30,58,138,.18); }
textarea { min-height: 150px; resize: vertical; }
form.contact-form label { align-content: start; }
form.contact-form input, form.contact-form select { height: 52px; }
form.contact-form textarea { height: 150px; resize: none; }
.form-note { font-size: 14px; color: var(--muted); }
#form-status { font-size: 15px; color: var(--accent-text); min-height: 1.5em; margin: 0; }

/* dark footer */
footer.site-foot { background: var(--night); color: var(--night-muted); border-top: 0; padding-block: var(--s-5) var(--s-5); margin-top: 0; font-size: 14px; }
footer.site-foot a { color: #FFFFFF; text-decoration: none; }
footer.site-foot a:hover { color: #5EEAD4; }
footer.site-foot .eyebrow { color: #5EEAD4; }
.foot { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; align-items: flex-start; }
.foot img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.foot p + p { margin-top: 6px; }
.foot .copy { margin-top: var(--s-3); font-size: 13px; color: #94A0C4; }

/* subtle fade-in on scroll; visible by default when scripts are off */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .intro .hero-grid, .split, .contact-grid, .prose, .cta-card { grid-template-columns: 1fr; gap: var(--s-4); }
  .values, .industries, .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --fs-h1: 42px; --fs-h2: 32px; --fs-h3: 21px; --fs-lead: 18px; }
  body { font-size: 16px; }
  .bar { border-radius: var(--r-card); }
  .header-cta .btn-line { display: none; }
  nav { width: 100%; order: 3; overflow-x: auto; scrollbar-width: none; }
  nav ul { flex-wrap: nowrap; gap: var(--s-3); padding: 2px 0 var(--s-1); }
  nav a { white-space: nowrap; }
  .brand img { height: 28px; width: auto; }
  .trio, .quad, .duo, .values, .industries, .steps, .faq, .field-row { grid-template-columns: 1fr; }
  section { padding-block: var(--s-6) var(--s-6); }
  .card { --pad: var(--s-3); }
  .hook, .cta-panel { padding: var(--s-3); }
  .cta-card { padding: var(--s-3); }
  .marquee-track span { gap: 10px; padding-right: 56px; }
  .marquee-track span img { width: 36px; height: 36px; }
  .hero-full { padding: var(--s-5) var(--s-3); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-video { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Insights ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
.posts > * { min-width: 0; }
/* video-grid card: a large illustration on top, then the title, then the date and topic */
.post-card { display: flex; flex-direction: column; gap: 0; padding: 0; align-items: stretch; }
.post-text { display: flex; flex-direction: column; gap: 6px; padding: var(--s-3); min-width: 0; }
.post-art { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1.618 / 1; overflow: hidden; }
.post-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pal-teal, .pal-sand, .pal-navy, .pal-mist { background: #FFFFFF; }
.meta { font-size: 14px; color: var(--muted); margin: 0; }
.post-card h3 { font-size: 22px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent-deep); }

.archive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.archive-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-2) var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.archive-row a { color: var(--ink); font-weight: 500; }
.archive-row a:hover { color: var(--accent-deep); }
.archive-row span { font-size: 14px; color: var(--muted); }
.archive-empty { color: var(--muted); margin-top: var(--s-3); }

.article-head { max-width: 760px; }
.article-head .meta { margin-top: var(--s-3); }
.article { max-width: 760px; }
.post-art-lg { margin: 0 0 var(--s-5); width: 100%; border-radius: var(--r-card); }
.article-body h2 { font-size: clamp(24px, 3vw, 32px); margin: var(--s-5) 0 var(--s-2); }
.article-body p { color: var(--ink); line-height: 1.75; font-size: 18px; }
.article-body p + p { margin-top: var(--s-3); }
.takeaways { margin-top: var(--s-5); }
.takeaways ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: var(--s-1); }
.sources { padding-left: 20px; display: grid; gap: var(--s-1); }
.ai-note { color: var(--muted) !important; font-size: 15px !important; margin-top: var(--s-4); }
.article-body > p:last-child { margin-top: var(--s-4); }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .posts, .archive-tools { grid-template-columns: 1fr; } }
.archive-row[hidden] { display: none; }

/* ---------- Insights v2: carded hero, toolbar, load more ---------- */
.page-hero.hero-carded { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(24px, 3vw, 40px); }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(28px, 4vw, 56px); box-shadow: var(--shadow-soft); }
.hero-card .lead { max-width: 58ch; }
.article-head .hero-card { max-width: 760px; }
.listing { border-top: 0; padding-top: var(--s-4); }
.toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2); align-items: end; margin-bottom: var(--s-4); }
.toolbar.toolbar-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.toolbar label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.toolbar .btn { min-width: 140px; }
.post-card[hidden] { display: none; }
.load-more { display: flex; justify-content: center; margin-top: var(--s-4); }
.load-more[hidden], #more[hidden] { display: none; }
@media (max-width: 900px) { .toolbar, .toolbar.toolbar-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } .toolbar .btn { width: 100%; } }
@media (max-width: 700px) { .toolbar, .toolbar.toolbar-wide { grid-template-columns: 1fr; } .hero-card { padding: var(--s-3); } }

/* jobs list and detail */
.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.job-card { gap: var(--s-2); }
.job-card h3 { font-size: 22px; }
.job-card h3 a { color: var(--ink); }
.job-card h3 a:hover { color: var(--navy); }
.job-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: auto; padding-top: var(--s-2); }
#job-detail h2 { font-size: clamp(22px, 2.6vw, 28px); margin: var(--s-4) 0 var(--s-2); }
.job-list { margin: 0; padding-left: 20px; display: grid; gap: var(--s-1); color: var(--ink); line-height: 1.6; }
#job-detail .job-actions { margin-top: var(--s-4); }
#job-detail .meta { margin-top: var(--s-3); }
@media (max-width: 900px) { .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .jobs-grid { grid-template-columns: 1fr; } }

/* admin */
.admin-card { max-width: 860px; width: 100%; margin-bottom: var(--s-3); align-items: stretch; height: auto; }
.admin-card:hover { transform: none; box-shadow: var(--shadow-soft); border-color: var(--line); }
.admin-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.admin-card .btn { align-self: flex-start; margin-top: 0; }
.admin-card h2 { font-size: clamp(22px, 2.6vw, 28px); }
.a-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); max-width: 860px; margin-bottom: var(--s-3); }
.a-bar .meta strong { color: var(--ink); }
.btn-sm { min-height: 38px; min-width: 0; padding: 0 var(--s-3); font-size: 14px; }
.a-acts { display: flex; gap: var(--s-1); flex-wrap: wrap; }
.a-msg { min-height: 1.2em; font-size: 15px; color: var(--muted); }
.a-msg.ok { color: #0B7A6E; }
.a-msg.bad { color: #B42318; }
.a-confirm { background: #FFF4EC; border: 1px solid #FFD5B8; border-radius: 14px; padding: var(--s-2) var(--s-3); color: var(--ink); font-size: 15px; }
.a-confirm ul { margin: 6px 0 0; padding-left: 20px; }
.a-when { border: 1px solid var(--line); border-radius: 14px; padding: var(--s-2) var(--s-3); display: grid; gap: var(--s-1); }
.a-when legend { font-size: 14px; color: var(--muted); padding: 0 6px; }
.admin-card .a-radio { flex-direction: row; align-items: center; gap: var(--s-1); color: var(--ink); font-size: 16px; }
.a-radio input[type="radio"] { width: auto; min-height: 0; }
.a-radio input[type="datetime-local"] { width: auto; }
.a-job { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding: var(--s-2) 0; border-top: 1px solid var(--line); }
.a-job .meta { margin-top: 4px; }
.pill { display: inline-block; margin-left: var(--s-1); padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--ink); vertical-align: middle; }
.pill-live { background: #D6F3EE; color: #0B6B61; }
.pill-scheduled { background: #DDE5F7; color: var(--navy); }
.pill-draft { background: #EEF0F3; color: #475467; }
.pill-closed, .pill-expired { background: #FDE6D4; color: #9A3F00; }

/* jobs as table-style row cards: title, location, type */
.jobs-rows { display: grid; gap: var(--s-2); }
.job-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, .9fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
.jobs-rows .job-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease; }
.jobs-rows .job-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--teal); }
.job-head { padding-block: 0 var(--s-1); font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-1); }
.job-head span:last-child { min-width: 108px; }
.job-title { font-size: 20px; }
.job-title a { color: var(--ink); }
.job-title a:hover { color: var(--navy); }
.job-loc { color: var(--muted); font-size: 16px; }
.job-type { margin: 0; }
.type-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; background: #E8EDF8; color: var(--navy); white-space: nowrap; }
@media (max-width: 800px) {
  .job-head { display: none; }
  .job-row { grid-template-columns: 1fr auto; row-gap: 6px; padding: var(--s-3); }
  .job-title { grid-column: 1 / -1; }
  .job-loc { grid-column: 1; }
  .job-type { grid-column: 1; }
  .jobs-rows .job-row .btn { grid-column: 2; grid-row: 2 / span 4; align-self: center; }
}

/* six-digit sign-in code */
.otp-label { font-size: 14px; color: var(--muted); display: block; margin-bottom: 6px; }
.otp { display: flex; gap: var(--s-1); }
.otp input { width: 52px; min-height: 60px; height: 60px; padding: 0; text-align: center; font-size: 26px; font-weight: 600; font-family: var(--sans); color: var(--ink); border-radius: 14px; }
@media (max-width: 420px) { .otp { gap: 6px; } .otp input { width: 44px; height: 54px; min-height: 54px; font-size: 22px; } }

#job-detail .lead{white-space:pre-line}

.hero-logo{align-self:flex-start;width:max(110px,24vw);max-width:336px;height:auto;margin:0}
.hero-img{object-position:center 30%}

/* full-width top bar */
header.site{padding-top:0}
header.site .wrap.bar{max-width:none;width:100%;margin:0;border-radius:0;border-left:0;border-right:0;border-top:0;padding:6px max(16px, calc((100% - 1120px) / 2 + var(--s-3)))}
@media (max-width:800px){header.site .wrap.bar{border-radius:0}}
.hero-full .eyebrow{align-self:center}
.hero-full .eyebrow{text-align:center}

/* button text always stays readable on hover */
.btn-solid, .btn-solid:hover, .btn-solid:focus-visible { color: var(--accent-ink); }
.btn-line:hover, .btn-white:hover, .btn-line:focus-visible, .btn-white:focus-visible { color: var(--navy); }

/* Home only: scroll motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-center { animation-fill-mode: backwards; }
.home-motion .hero-img { transform: translate3d(0, calc(var(--p, 0) * 90px), 0) scale(calc(1.04 + var(--p, 0) * .08)); will-change: transform; }
.home-motion .hero-center { opacity: calc(1 - var(--p, 0) * 1.5); transform: translate3d(0, calc(var(--p, 0) * -50px), 0); will-change: transform, opacity; }
.home-motion .reveal { transform: translateY(40px) scale(.985); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.home-motion .reveal.in { transform: none; }
.home-motion .card { transition: opacity .9s ease, transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease, border-color .6s ease; }
.home-motion .card.in:hover { transform: scale(1.04); box-shadow: var(--shadow-lift); }
.home-motion .hook { transform-origin: 0 50%; }
@media (prefers-reduced-motion: reduce) { .home-motion .hero-img, .home-motion .hero-center { transform: none; opacity: 1; } }

/* card photos: a real photo replaces the shared illustration; if the photo is missing the illustration stays */
.card:has(.card-img)::before { display: none; }
.card .card-img { display: block; width: calc(100% + 2 * var(--pad)); height: auto; max-width: none; margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) var(--s-2); aspect-ratio: 1.618 / 1; object-fit: cover; border-bottom: 3px solid var(--teal); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img { transform: scale(1.04); }

.card .card-img.art{object-fit:cover;background:#FAFAFA;padding:0}

/* ---------- Home hero: editorial split ----------
   Clean off-white field: the brand logo, the tagline in ink with the colour-changing "everyone",
   then the small location line. The photo sits whole and unshaded in a rounded frame beside it,
   the two columns in golden proportion (1 : 1.618). */
body:has(.hero-split) header.site { position: sticky; }
.hero-full.hero-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); align-items: center; gap: clamp(34px, 4.5vw, 55px);
  max-width: 1120px; margin-inline: auto; min-height: 0;
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
  text-align: left; color: var(--ink); background: transparent; overflow: visible;
}
/* tagline on two lines ("Creating value" / "for everyone."), sized to fill the text column;
   the logo is exactly as wide as the word "Creating" (3.5 x the tagline size) */
.hero-split .hero-center { --hero-fs: clamp(40px, 5.3vw, 67px); align-items: flex-start; gap: 0; max-width: none; }
.hero-split .hero-logo { width: calc(var(--hero-fs) * 3.5); max-width: 100%; margin: 0 0 var(--s-4); }
.hero-split h1 { color: var(--ink); white-space: nowrap; font-size: var(--hero-fs); line-height: 1.04; margin: 0; }
.hero-split .eyebrow { align-self: flex-start; text-align: left; color: var(--muted); font-size: 11px; letter-spacing: .14em; margin: var(--s-3) 0 0; }
.hero-photo { position: relative; margin: 0; aspect-ratio: 1.618 / 1.3; max-height: calc(100svh - 140px); width: 100%; border-radius: var(--r-panel); overflow: hidden; background: var(--tint-mist); box-shadow: var(--shadow-lift); }
.hero-photo .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 63% 35%; }
.home-motion .hero-photo .hero-img { transform: translate3d(0, calc(var(--p, 0) * 36px), 0) scale(calc(1.06 + var(--p, 0) * .05)); }
@media (max-width: 800px) {
  .hero-full.hero-split { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0 var(--s-5); }
  .hero-split .hero-center { --hero-fs: clamp(38px, 12.5vw, 60px); }
  .hero-split .hero-logo { margin-bottom: var(--s-3); }
  .hero-split .eyebrow { font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
  .hero-photo { aspect-ratio: 4 / 3; max-height: none; border-radius: var(--r-card); }
  .hero-photo .hero-img { object-position: 62% 30%; }
}

/* text-style button for secondary actions on the admin sign-in */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--accent-deep); }

/* home services: four cards in one row, stepping down to two and then one column */
.trio.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trio.four .card { --pad: var(--s-3); }
@media (max-width: 1000px) { .trio.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .trio.four { grid-template-columns: minmax(0, 1fr); } }

/* FAQ accordion: one row per question; a row opens downward to show its answer */
.faq-list { display: grid; gap: var(--s-2); margin-top: var(--s-5); max-width: 880px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); overflow: hidden; transition: border-color .4s ease, box-shadow .4s ease; }
.faq-item:hover, .faq-item[open] { border-color: var(--teal); }
.faq-item[open] { box-shadow: var(--shadow-lift); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: -4px; border-radius: var(--r-card); }
.faq-item summary h3 { font-size: 20px; line-height: 1.3; margin: 0; }
.faq-icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--tint-mist); transition: background-color .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--navy); border-radius: 2px; transition: transform .4s cubic-bezier(.2,.7,.2,1), background-color .4s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--teal); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #FFFFFF; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 var(--s-4) var(--s-3); }
.faq-a p { color: var(--muted); max-width: 72ch; }
.faq-a a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .faq-item summary { padding: var(--s-2) var(--s-3); } .faq-item summary h3 { font-size: 18px; } .faq-a { padding: 0 var(--s-3) var(--s-2); } }

/* searched words on the Jobs and Insights lists, in the brand orange */
mark.hit { background: rgba(255, 106, 0, .16); color: var(--orange); font: inherit; font-weight: 600; padding: 0 3px; margin: 0 -3px; border-radius: 5px; box-shadow: inset 0 -2px 0 var(--orange); }

/* contact form: a clear message beside each entry that is missing or not valid */
:root { --danger: #B42318; }
.field-error { color: var(--danger); font-size: 14px; font-weight: 500; line-height: 1.4; }
.field-error[hidden] { display: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); background: #FFF6F5; }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 24, .16); }
#form-status.is-error { color: var(--danger); font-weight: 600; }

/* About, Vision: the title and the first line of the text sit on one baseline */
.prose-aligned { align-items: baseline; }

/* Contact: the two orange bars of the logo, small, as a quiet divider between the intro and the details */
.logo-bars { display: block; width: 96px; height: 10px; margin-top: var(--s-4); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 728 77'%3E%3Cg fill='%23FF6A00'%3E%3Cpath transform='translate(18 0)' d='M30 0H710L696 29H0C0 12 12 0 30 0Z'/%3E%3Cpath transform='translate(0 48)' d='M16 0H710V14C710 23 703 29 692 29H0Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat left center / contain; }

/* Home: the top bar reaches both screen edges (it cancels the page's side padding) */
header.site { margin-left: calc(-1 * max(var(--s-3), env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(var(--s-3), env(safe-area-inset-right, 0px))); }

/* ---------- Home opening sequence ----------
   Plain background. Two orange bars from the logo cross from opposite sides, part vertically to reveal the page,
   the hero settles in, and the upper bar rests as a thin line at the top. Without script, or with reduced motion,
   none of this runs and the page simply shows. */
.opening { display: none; }
html.intro-on { overflow: hidden; scrollbar-gutter: stable; }
html.intro-on .opening { display: block; position: fixed; inset: 0; z-index: 100; }
.opening-top, .opening-bottom { position: absolute; left: 0; right: 0; height: 50%; background: var(--bg); will-change: transform; }
.opening-top { top: 0; }
.opening-bottom { bottom: 0; }
.opening-bar { position: absolute; left: 0; width: 100%; height: clamp(10px, 1.7vw, 24px); transform-origin: 0 0; background-size: 100% 100%; background-repeat: no-repeat; will-change: transform; backface-visibility: hidden; }
.opening-bar.a { transform: translate3d(-100%, 0, 0); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 710 29' preserveAspectRatio='none'%3E%3Cpath fill='%23FF6A00' d='M30 0H710L696 29H0C0 12 12 0 30 0Z'/%3E%3C/svg%3E"); }
.opening-bar.b { transform: translate3d(100%, 0, 0); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 710 29' preserveAspectRatio='none'%3E%3Cpath fill='%23FF6A00' d='M16 0H710V14C710 23 703 29 692 29H0Z'/%3E%3C/svg%3E"); }
.top-bar-mark { position: fixed; top: 0; left: 0; right: 0; height: 1px; background: var(--orange); z-index: 29; pointer-events: none; }
html.intro-on .top-bar-mark { opacity: 0; }

.hero-split .hero-center { animation: none; }
.hero-split .hero-logo, .hero-split h1, .hero-split .eyebrow, .hero-split .hero-photo { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
html.intro-on .hero-split .hero-logo, html.intro-on .hero-split h1, html.intro-on .hero-split .eyebrow { opacity: 0; transform: translateY(14px); }
html.intro-on .hero-split .hero-photo { opacity: 0; transform: translateY(18px) scale(.985); }
html.intro-on.intro-reveal .hero-split .hero-logo, html.intro-on.intro-reveal .hero-split h1, html.intro-on.intro-reveal .hero-split .eyebrow, html.intro-on.intro-reveal .hero-split .hero-photo { opacity: 1; transform: none; }
html.intro-on.intro-reveal .hero-split h1 { transition-delay: .1s; }
html.intro-on.intro-reveal .hero-split .eyebrow { transition-delay: .2s; }
html.intro-on.intro-reveal .hero-split .hero-photo { transition-delay: .15s; }

/* ---------- Jobs: Find a Job, posting age, match results ---------- */
.jobs-cta { display: flex; gap: var(--s-3); align-items: flex-start; flex-wrap: wrap; }
.jobs-cta .btn { min-width: 168px; }
.jobs-cta .admin-slot { align-items: center; }
.toolbar.toolbar-jobs { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 700px) { .toolbar.toolbar-jobs { grid-template-columns: 1fr; } .jobs-cta { width: 100%; } .jobs-cta .btn { width: 100%; } .jobs-cta > .admin-slot { width: 100%; } }
.job-age { margin: 0; color: var(--muted); font-size: 15px; white-space: nowrap; }
.job-match { margin: 0; justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--tint-teal); color: var(--teal-deep); font-size: 14px; font-weight: 600; white-space: nowrap; }
.job-row.has-match { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .9fr) auto; }
@media (max-width: 700px) {
  .job-age, .job-match { grid-column: 1; }
  .job-match { justify-self: start; }
}

.find { border-top: 0; padding-block: var(--s-4) 0; }
.find[hidden] { display: none; }
.find-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-soft); }
.find-close { position: absolute; top: 18px; right: 24px; font-size: 14px; color: var(--muted); text-decoration: none; }
.find-close:hover { color: var(--ink); text-decoration: underline; }
.find-step[hidden] { display: none; }
.find-step h2 { font-size: clamp(26px, 3vw, 34px); outline: none; }
.find-lead { color: var(--muted); max-width: 62ch; margin-top: var(--s-1); }
.find-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-1); padding-block: var(--s-4); }
.find-center .find-lead { margin-inline: auto; }
.dropzone { margin-top: var(--s-3); display: flex; flex-direction: column; align-items: center; gap: var(--s-1); padding: var(--s-5) var(--s-3); text-align: center; cursor: pointer; background: var(--tint-mist); border: 2px dashed #B9C4E4; border-radius: var(--r-card); transition: border-color .3s ease, background-color .3s ease; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-over { border-color: var(--teal); background: #EAF7F5; }
.dropzone.has-file { border-style: solid; border-color: var(--teal); background: #F2FBF9; }
.dz-icon { margin-bottom: 4px; }
.dz-main { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.dz-sub { color: var(--muted); font-size: 15px; }
.dz-link { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.dz-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2); margin-top: var(--s-1); padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.dz-file[hidden] { display: none; }
.dz-name { font-weight: 600; overflow-wrap: anywhere; max-width: 36ch; }
.dz-size { color: var(--muted); }
.find-privacy { margin-top: var(--s-3); padding-left: 14px; border-left: 3px solid var(--teal); max-width: 72ch; font-size: 14px; color: var(--muted); }
.find-error { margin-top: var(--s-2); color: var(--danger); font-weight: 500; }
.find-error[hidden] { display: none; }
#match-btn { margin-top: var(--s-3); }
.btn:disabled, .btn:disabled:hover { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.find-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.find-center .find-actions { justify-content: center; }
.find .job-head { margin-top: var(--s-4); }

.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--tint-mist); border-top-color: var(--navy); animation: find-spin .9s linear infinite; }
@keyframes find-spin { to { transform: rotate(360deg); } }
.tick { overflow: visible; animation: find-pop .55s cubic-bezier(.2, .7, .2, 1) both; }
.tick-ring { fill: none; stroke: #1F9D55; stroke-width: 5; stroke-dasharray: 214; stroke-dashoffset: 214; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); animation: find-draw .7s cubic-bezier(.4, 0, .2, 1) forwards; }
.tick-mark { fill: none; stroke: #1F9D55; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: find-draw .45s .55s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes find-draw { to { stroke-dashoffset: 0; } }
@keyframes find-pop { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
.match-loader { position: relative; width: 168px; height: 34px; overflow: hidden; margin-bottom: var(--s-1); }
.match-loader i { position: absolute; left: 0; width: 84px; height: 11px; border-radius: 6px; background: var(--orange); }
.match-loader i:first-child { top: 4px; animation: find-bar-r 1.7s cubic-bezier(.65, 0, .35, 1) infinite; }
.match-loader i:last-child { top: 19px; animation: find-bar-l 1.7s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes find-bar-r { from { transform: translateX(-90px); } to { transform: translateX(172px); } }
@keyframes find-bar-l { from { transform: translateX(172px); } to { transform: translateX(-90px); } }
.none-mark { margin-bottom: var(--s-1); }
@media (prefers-reduced-motion: reduce) {
  .tick-ring, .tick-mark { stroke-dashoffset: 0; }
  .tick { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .find-card { padding: var(--s-3); }
  .find .job-row { grid-template-columns: minmax(0, 1fr); padding: var(--s-3) var(--s-2); }
  .find .jobs-rows .job-row .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; }
  .find-actions .btn { width: 100%; }
  .dropzone { padding: var(--s-4) var(--s-2); }
}

/* ---------- Admin polish: PIN gate, publishing controls, jobs table ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.admin-hero { position: relative; }
.a-signout { position: absolute; top: clamp(16px, 2.4vw, 28px); right: clamp(16px, 2.4vw, 28px); }
.a-signout[hidden] { display: none; }
.a-tips { margin: var(--s-2) 0 0; padding-left: 20px; max-width: 62ch; color: var(--muted); display: grid; gap: 6px; }
.gate-title { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; color: var(--ink); line-height: 1.3; }
.admin-card label.gate-title { font-size: clamp(20px, 2.2vw, 24px); color: var(--ink); }
.otp-label.gate-title { margin-bottom: var(--s-1); }
.a-sect { display: grid; gap: 0; margin-bottom: var(--s-2); }
.a-sect .a-msg { margin: 6px 0 0; }
#a-gate-pin .a-msg { margin: 8px 0 var(--s-1); }
.otp.bad input, .otp.bad input:focus { border-color: #B42318; background: #FEF3F2; box-shadow: 0 0 0 1px #B42318; }
.a-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-1); padding-block: var(--s-3); }
.a-done h2 { color: #1F7A45; }
.a-publish { margin-top: var(--s-1); }
.a-publish .btn { display: inline-flex; align-items: center; gap: 8px; }
.a-sched { display: flex; gap: var(--s-2); align-items: flex-end; flex-wrap: wrap; padding: var(--s-2) var(--s-3); background: var(--tint-mist); border: 1px solid var(--line); border-radius: 14px; }
.a-sched[hidden], .a-ask[hidden], .a-table-wrap[hidden], .a-done[hidden] { display: none; }
.a-sched label { flex: 1 1 220px; }
.a-ask { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.a-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.a-tab { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.a-tab:hover { color: var(--ink); }
.a-tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--orange); }
.a-count { font-weight: 400; color: var(--muted); }
.a-table-wrap { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.a-table th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.a-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.a-table td:first-child strong { display: block; margin-bottom: 4px; }
.a-table .a-acts { flex-wrap: nowrap; }
.a-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); color: var(--muted); font-size: 15px; }
.a-pager .btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) {
  .a-table thead { display: none; }
  .a-table, .a-table tbody, .a-table tr, .a-table td { display: block; width: 100%; }
  .a-table tr { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
  .a-table td { border: 0; padding: 4px 0; }
  .a-table td[data-label]:not([data-label=""]):not([data-label="Job"])::before { content: attr(data-label) ": "; color: var(--muted); }
  .a-table .a-acts { flex-wrap: wrap; margin-top: 6px; }
  .a-tab { padding: 10px 10px; }
}

.find-step[data-step="upload"] .find-lead { max-width: none; }

/* ---------- Admin: one-line tip, equal card widths, search, schedule pop-up ---------- */
.a-tips { max-width: none; }
@media (min-width: 900px) { .a-tips li { white-space: nowrap; } }
#a-app .admin-card { max-width: none; }
#a-search { width: 100%; }
.sched-back { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--s-2); background: rgba(15, 23, 42, .45); }
.sched-back[hidden] { display: none; }
.sched { position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--r-panel, 24px); padding: var(--s-3); box-shadow: 0 24px 60px rgba(15, 23, 42, .3); display: grid; gap: var(--s-2); }
.sched h3 { margin: 0; font-size: 22px; }
.sched-x { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.sched-pick { margin: 0; padding: 10px 14px; background: var(--tint-mist); border-radius: 12px; font-weight: 600; color: var(--navy); text-align: center; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 20px; cursor: pointer; }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow span { font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-grid button, .time-col button { border: 0; background: none; border-radius: 10px; height: 38px; font: inherit; color: var(--ink); cursor: pointer; }
.cal-grid button:hover:not(:disabled), .time-col button:hover { background: var(--tint-mist); }
.cal-grid button:disabled { color: #B5BCCB; cursor: not-allowed; }
.cal-grid button.today { box-shadow: inset 0 0 0 1px var(--orange); }
.cal-grid button.on, .time-col button.on { background: var(--navy); color: #fff; }
.time-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-1); }
.time-col { display: grid; align-content: start; gap: 4px; max-height: 232px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.sched .btn { width: 100%; justify-content: center; }
.sched .link-btn { justify-self: center; margin-top: var(--s-1); }
.sched .a-msg { min-height: 0; margin: 0; text-align: center; }

/* ---------- Spacing rhythm: one scale for every page ---------- */
:root { --sec: clamp(40px, 5.2vw, 72px); }
section { padding-block: var(--sec); }
.intro { padding-top: var(--sec); }
.page-hero, .page-hero.hero-carded { padding-top: clamp(36px, 4.6vw, 64px); padding-bottom: clamp(24px, 3vw, 40px); }
.listing-first { padding-top: clamp(36px, 4.6vw, 64px); }
@media (max-width: 700px) { section { padding-block: var(--sec); } }

/* ---------- Share, back link, recruiter note ---------- */
.share-btn { display: inline-flex; align-items: center; gap: 8px; }
.share-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.back-link:hover { color: var(--accent-deep, var(--navy)); text-decoration: underline; text-underline-offset: 4px; }
.recruiter-note { text-align: center; }
.recruiter-note h3 { margin-bottom: var(--s-1); }
.recruiter-note p { color: var(--muted); }
.recruiter-note a { color: var(--navy); }

/* ---------- Admin sign-in: PIN spacing, green on success, loading circle ---------- */
#a-gate-pin h2 { margin-bottom: var(--s-3); }

/* ---------- Insights heading without a card ---------- */
.plain-head { margin-bottom: var(--s-4); max-width: 940px; }
.plain-head .lead { max-width: 60ch; }
.plain-head h1 { line-height: 1.1; }

/* ---------- Admin PIN: instant, smooth feedback ---------- */
.otp input { transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease, opacity .25s ease; }
.otp input.filled { background: #FFF1E6; border-color: #F2B07A; }
.otp.bad input, .otp.bad input:focus { border-color: #B42318; background: #FEF3F2; }
#a-gate-pin { position: relative; }
#a-gate-pin .form-note, #a-gate-pin h2 { transition: opacity .3s ease; }
#a-gate-pin.signing-in .form-note { opacity: 0; pointer-events: none; }
.pin-orb { position: absolute; width: 76px; height: 76px; margin: -38px 0 0 -38px; opacity: 0; pointer-events: none; }
.pin-orb svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pin-orb circle, .pin-orb path { fill: none; stroke: #FF6A00; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.pin-orb .ring-track { stroke-width: 4; opacity: 0; }
.pin-orb .ring-arc { stroke-width: 4; stroke-dasharray: 232 45; transform-origin: 50% 50%; animation: find-spin var(--spin, .95s) linear infinite; transition: stroke .35s ease, stroke-dasharray .45s cubic-bezier(.32, .72, 0, 1); }
.pin-orb .ring-full { display: none; }
.pin-orb .check { stroke: #34C759; stroke-width: 6; stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset var(--tick, .55s) cubic-bezier(.32, .72, 0, 1) var(--tick-delay, .34s); }
.pin-orb.ok .ring-arc { stroke: #34C759; stroke-dasharray: 277 0; }   /* the same ring turns green and closes its gap */
.pin-orb.done .check { stroke-dashoffset: 0; }
.a-pin-slot { position: relative; min-height: 64px; display: flex; align-items: center; }
.a-pin-slot .a-msg { margin: 0; }
#a-app:not([hidden]) { animation: a-app-in .3s ease both; }
@keyframes a-app-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #a-app:not([hidden]) { animation: none; } }

/* ---------- Home: split hero (A) and full-width image band (B) ----------
   A, desktop only: the hero is two halves edge to edge, a deep-navy panel with the tagline and the photo filling the other half.
   B, all sizes: the "Every open seat" message is a full-width band over a photo (assets/cta-band.jpg; until it is uploaded the band is navy). */
.intro .wrap { max-width: 860px; }
.intro .lead { margin: 0; }
.cta-band { position: relative; isolation: isolate; margin-inline: calc(-1 * max(var(--s-3), env(safe-area-inset-left, 0px))); background: linear-gradient(135deg, #24469F, var(--night) 70%); color: #FFFFFF; overflow: hidden; padding: clamp(72px, 10vw, 140px) max(var(--s-3), env(safe-area-inset-left, 0px)); }
.cta-band-img { object-position: 50% 45%; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 22, 58, .88), rgba(11, 22, 58, .55)); }
.cta-band-inner { max-width: 1120px; margin-inline: auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.cta-band-inner > * { max-width: 680px; }
.cta-band .eyebrow { color: #CFF7F1; margin: 0; }
.cta-band strong { display: block; font-family: var(--serif); font-size: clamp(30px, 4.2vw, 52px); font-weight: 600; line-height: 1.12; color: #FFFFFF; }
.cta-band p:not(.eyebrow) { color: var(--night-muted); margin: 0; font-size: 18px; }
.cta-band .hero-actions { margin-top: var(--s-2); }
.cta-band .btn-white:hover { border-color: var(--orange); }
@keyframes swap-dark { 0%, 22% { color: #FFFFFF; } 33.3%, 55% { color: #14B8A6; } 66.6%, 88% { color: #FF6A00; } 100% { color: #FFFFFF; } }
@media (min-width: 801px) {
  .hero-full.hero-split {
    max-width: none; margin-inline: calc(-1 * max(var(--s-3), env(safe-area-inset-left, 0px)));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: stretch; padding: 0;
    min-height: min(calc(100svh - 80px), 760px); background: var(--night); color: #FFFFFF;
  }
  .hero-split .hero-center { --hero-fs: clamp(34px, 4.3vw, 58px); justify-content: center; padding: clamp(40px, 6vw, 96px) clamp(28px, 5vw, 88px); }
  .hero-split .hero-logo { filter: brightness(0) invert(1); }
  .hero-split h1 { color: #FFFFFF; }
  .hero-split .swap { animation-name: swap-dark; }
  .hero-split .eyebrow { color: var(--night-muted); }
  .hero-photo { aspect-ratio: auto; max-height: none; height: 100%; min-height: 380px; border-radius: 0; box-shadow: none; }
}
@media (min-width: 801px) and (prefers-reduced-motion: reduce) { .hero-split .swap { animation: none; color: #14B8A6; } }

/* Home hero: the introduction sits under the tagline */
.hero-split .hero-lead { margin: var(--s-3) 0 0; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--night-muted); }
@media (max-width: 800px) { .hero-split .hero-lead { color: var(--muted); font-size: 17px; } }

/* ---------- Home motion ----------
   Hero: the introduction line settles in with the tagline (after the opening sequence).
   Band: it widens from slightly inset to the full screen width as it arrives (--e), the photo drifts slower than the page (--b),
   and the text rises in one line after another. Scripted motion only runs when the visitor has not asked for reduced motion. */
.hero-split .hero-lead { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
html.intro-on .hero-split .hero-lead { opacity: 0; transform: translateY(14px); }
html.intro-on.intro-reveal .hero-split .hero-lead { opacity: 1; transform: none; transition-delay: .18s; }
.home-motion .cta-band-img { top: -9%; height: 118%; transform: translate3d(0, calc((.5 - var(--b, .5)) * 60px), 0) scale(calc(1.14 - var(--b, .5) * .12)); will-change: transform; }
.home-motion .cta-band-inner > * { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.home-motion .cta-band:not(.in) .cta-band-inner > * { opacity: 0; transform: translateY(26px); }
.home-motion .cta-band.in .cta-band-inner > :nth-child(2) { transition-delay: .1s; }
.home-motion .cta-band.in .cta-band-inner > :nth-child(3) { transition-delay: .2s; }
.home-motion .cta-band.in .cta-band-inner > :nth-child(4) { transition-delay: .3s; }
.opening-mid { position: absolute; left: 0; right: 0; background: var(--bg); }

/* Buttons never lift: on hover or keyboard focus they get a thin orange border with a soft orange glow instead */
.btn:not(:disabled):hover, .btn:not(:disabled):focus-visible {
  transform: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 0 10px 1px rgba(255, 106, 0, .45);
}

/* ---------- Type hierarchy for the split hero (A) and the photo band (B) ----------
   Same ladder in both, each step clearly smaller than the one above:
   headline (A larger than B) > body 19px > label 12px capitals. Logo is dropped from A on desktop (the top bar already carries it). */
@media (min-width: 801px) {
  .hero-split .hero-logo { display: none; }
  .hero-split .hero-center { --hero-fs: clamp(40px, 4.8vw, 64px); }
  .hero-split .eyebrow { order: -1; margin: 0 0 var(--s-3); font-size: 12px; letter-spacing: .16em; color: #CFF7F1; }
  .hero-split h1 { line-height: 1.08; }
  .hero-split .hero-lead { margin-top: var(--s-4); font-size: 19px; line-height: 1.65; max-width: 29em; }
}
.cta-band .eyebrow { font-size: 12px; letter-spacing: .16em; }
.cta-band strong { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.15; }
.cta-band-inner > strong { max-width: 780px; }
.cta-band p:not(.eyebrow) { font-size: 19px; line-height: 1.65; max-width: 640px; }
.cta-band-inner { gap: var(--s-3); }
.cta-band .hero-actions { margin-top: var(--s-3); }

/* ---------- Motion, third pass: a plain dissolve ----------
   Hero (desktop): once the bars part, the whole hero (text and photo) dissolves in together. Nothing moves, nothing wipes.
   Photo band: the text dissolves in when the band arrives; the photo only settles slowly with the scroll. */
@media (min-width: 801px) {
  html.intro-on main .hero-split .hero-center, html.intro-on main .hero-split .hero-photo { opacity: 0; transform: none; transition: opacity 1.1s ease; }
  html.intro-on.intro-reveal main .hero-split .hero-center, html.intro-on.intro-reveal main .hero-split .hero-photo { opacity: 1; transform: none; transition-delay: .1s; }
  html.intro-on main .hero-split .hero-center > * { opacity: 1; transform: none; transition: none; }
}
.home-motion .cta-band-inner > * { transition: opacity 1s ease; }
.home-motion .cta-band:not(.in) .cta-band-inner > * { opacity: 0; transform: none; }
.home-motion .cta-band.in .cta-band-inner > * { transition-delay: .15s; }
.hero-split h1 .ln { display: block; }

/* Footer: brand (logo, tagline, copyright), then Explore (pages), then Get in touch (how to reach us).
   Spacing: logo > 16px > tagline > 24px > copyright; each column's heading sits 20px above its list, rows 12px apart. */
footer.site-foot { padding-block: var(--s-5); }
footer.site-foot .foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-5); align-items: start; justify-content: stretch; }
footer.site-foot .foot-brand p { margin: 0; }
footer.site-foot .foot-brand img { margin-bottom: 16px; }
footer.site-foot .foot-brand .foot-tag { font-family: var(--serif); font-size: 19px; line-height: 1.3; color: #FFFFFF; }
footer.site-foot .foot-brand .copy { margin-top: 24px; font-size: 13px; line-height: 1.5; color: #94A0C4; }
footer.site-foot .foot-col h2 { margin: 6px 0 20px; font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #5EEAD4; text-wrap: wrap; }
footer.site-foot .foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
footer.site-foot .foot-col li { margin: 0; line-height: 1.4; }
@media (max-width: 800px) { footer.site-foot .foot { grid-template-columns: 1fr; gap: var(--s-4); } footer.site-foot .foot-col h2 { margin-top: 0; } }

/* ---------- Home hero on phones: same design as desktop, stacked ----------
   A navy block with the label, tagline and introduction, then the photo edge to edge underneath; the same plain dissolve. */
@media (max-width: 800px) {
  .hero-full.hero-split {
    margin-inline: calc(-1 * max(var(--s-3), env(safe-area-inset-left, 0px))); gap: 0; padding: 0;
    background: var(--night); color: #FFFFFF;
  }
  .hero-split .hero-center { --hero-fs: clamp(36px, 11vw, 52px); padding: clamp(36px, 9vw, 52px) max(var(--s-3), env(safe-area-inset-left, 0px)) clamp(32px, 8vw, 44px); }
  .hero-split .hero-logo { display: none; }
  .hero-split .eyebrow { order: -1; margin: 0 0 var(--s-2); font-size: 11px; letter-spacing: .14em; color: #CFF7F1; white-space: normal; }
  .hero-split h1 { color: #FFFFFF; line-height: 1.08; }
  .hero-split .swap { animation-name: swap-dark; }
  .hero-split .hero-lead { margin-top: var(--s-3); color: var(--night-muted); font-size: 17px; line-height: 1.6; max-width: none; }
  .hero-photo { aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none; }
  html.intro-on main .hero-split .hero-center, html.intro-on main .hero-split .hero-photo { opacity: 0; transform: none; transition: opacity 1.1s ease; }
  html.intro-on.intro-reveal main .hero-split .hero-center, html.intro-on.intro-reveal main .hero-split .hero-photo { opacity: 1; transform: none; transition-delay: .1s; }
  html.intro-on main .hero-split .hero-center > * { opacity: 1; transform: none; transition: none; }
  .cta-band { padding-block: clamp(56px, 14vw, 80px); }
  .cta-band .hero-actions { flex-wrap: nowrap; gap: var(--s-1); }
  .cta-band .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 var(--s-2); white-space: nowrap; }
}

/* Contact form: character count under the message box */
.char-count { display: block; margin-top: 6px; text-align: right; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.char-count.near { color: var(--orange); }

/* Contact message: the line under the box always keeps its height, so showing or hiding the red warning never moves the Send button */
.msg-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-2); min-height: 44px; margin-top: 6px; }
.msg-foot .field-error { flex: 1 1 auto; margin: 0; line-height: 1.4; }
.msg-foot .char-count { flex: 0 0 auto; margin: 0 0 0 auto; line-height: 1.4; text-align: right; }
#message::placeholder { color: var(--muted); opacity: .55; }

/* Main page headings (Services, About, Jobs, Insights, Contact): large but not oversized, and on one line on desktop */
h1.pt { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.1; }
@media (min-width: 801px) { h1.pt { white-space: nowrap; } }

/* the admin entry: the footer tagline itself is the link. It looks and behaves like plain text; keyboard focus still shows an outline */
footer.site-foot .foot-quiet { color: inherit; text-decoration: none; cursor: default; }
footer.site-foot .foot-quiet:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
#a-urls { min-height: 120px; }
.a-sub { margin: var(--s-4) 0 var(--s-1); font-size: 20px; }
#a-insight-card .a-msg { margin-bottom: 0; }
