/* ==========================================================================
   Maaroc Pte Ltd — design system
   --------------------------------------------------------------------------
   Register: the contract document itself. White stock, petrol-ink drawing
   colour, hairline rules, a margin rail carrying mono labels the way a marked
   -up contract carries clause references. The FIDIC book colours are used as a
   coding system for courses, never as UI chrome.
   ========================================================================== */

/* ---------- tokens ------------------------------------------------------- */
:root {
  --ink:        #12202e;
  --ink-2:      #1d3245;
  --ink-3:      #33485c;
  --paper:      #ffffff;
  --wash:       #eef2f5;
  --wash-2:     #f7f9fb;
  --rule:       #c9d4dc;
  --rule-soft:  #e3e9ee;
  --muted:      #56646f;
  --accent:     #b3271e;
  --accent-dk:  #8d1d16;

  /* FIDIC book colours — chips only */
  --bk-red:     #b3271e;
  --bk-yellow:  #d9a21b;
  --bk-silver:  #8a949c;
  --bk-gold:    #c08a2e;
  --bk-green:   #2f6b4f;

  --ff-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ff-body:    "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --shell:      78rem;
  --gutter:     clamp(1.25rem, 5vw, 4rem);
  --rail:       11.5rem;
  --pad-section: clamp(4rem, 8.5vw, 7.5rem);

  --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; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- utilities ---------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
}
.skip:focus { left: 0; }

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.measure { max-width: 42rem; }

/* ---------- top bar ------------------------------------------------------ */
.topbar {
  background: var(--ink);
  color: #b9c7d3;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.topbar__in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  padding-block: 0.5rem;
}
.topbar__addr { display: flex; align-items: center; gap: 0.55rem; }
.topbar__addr svg { flex: none; opacity: 0.7; }
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #b9c7d3;
  transition: color 0.2s var(--ease);
}
.topbar__link:hover { color: #fff; }

/* ---------- masthead ----------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

/* Wordmark — set, not drawn. An image model cannot hold lettering, and a
   contracts firm's mark should read as type anyway. */
.brand { display: inline-flex; align-items: baseline; gap: 0.5rem; text-decoration: none; }
.brand__name {
  font-family: var(--ff-display);
  font-size: 1.62rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink);
}
.brand__rule { width: 1px; height: 1.1rem; background: var(--accent); align-self: center; }
.brand__sub {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 0.35rem; list-style: none; }
.nav__link {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink-2);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }

.nav__cta {
  margin-left: 0.6rem;
  padding: 0.62rem 1.15rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.nav__cta:hover { background: var(--accent); }

.burger {
  display: none;
  padding: 0.6rem;
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); }
.burger span + span { margin-top: 5px; }

@media (max-width: 62rem) {
  .burger { display: block; }

  /* Anchored to the masthead, not the viewport. `position: fixed` cannot be
     used here: the masthead's backdrop-filter makes it the containing block
     for fixed descendants, which left the closed panel peeking on screen.
     visibility also keeps the closed menu out of the tab order. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0s linear 0.3s;
    box-shadow: 0 18px 40px -24px rgba(18, 32, 46, 0.5);
  }
  .nav[data-open="true"] {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0s;
  }
  .nav__link { padding: 0.9rem 0; font-size: 1rem; border-bottom: 1px solid var(--rule-soft); }
  .nav__link::after { left: 0; right: 0; bottom: 0; }
  .nav__cta { margin: 1rem 0 0; text-align: center; padding: 0.9rem; }
}

/* ---------- hero --------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(190deg, rgba(18, 32, 46, 0.86) 0%, rgba(18, 32, 46, 0.5) 42%, rgba(18, 32, 46, 0.92) 100%);
}
.hero__in { position: relative; padding-block: clamp(5rem, 13vw, 10rem) clamp(3rem, 6vw, 5rem); }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.6rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9fb3c4;
}
.hero__eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--accent); }

.hero__title {
  max-width: 19ch;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: #fff;
}
.hero__title em { font-style: italic; color: #f0c9c6; }

.hero__text { max-width: 36rem; margin-top: 1.75rem; color: #c8d5df; font-size: clamp(1rem, 1.5vw, 1.14rem); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* The thesis strip: the books we teach, in their own colours. */
.books {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
}
.books__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #a9bccd;
}
.books__chip { width: 0.6rem; height: 0.6rem; flex: none; }

/* page (non-home) hero */
.hero--page .hero__in { padding-block: clamp(4rem, 10vw, 7rem) clamp(2.5rem, 5vw, 4rem); }
.hero--page .hero__title { max-width: 22ch; font-size: clamp(2.2rem, 5vw, 3.9rem); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.9rem 0 0;
  list-style: none;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8ea3b5;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* ---------- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn svg { flex: none; transition: transform 0.24s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-dk); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--accent); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn--line { border-color: var(--rule); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- section scaffold -------------------------------------------- */
.section { padding-block: var(--pad-section); }
.section--wash { background: var(--wash-2); }
.section--ink { background: var(--ink); color: #c8d5df; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section + .section--wash,
.section--wash + .section { border-top: 1px solid var(--rule-soft); }

/* The margin rail — a contract's own marginalia, carrying the section mark. */
.railed { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); }
@media (min-width: 60rem) {
  .railed { grid-template-columns: var(--rail) minmax(0, 1fr); }
}
.railed__mark {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 2px solid var(--accent);
  padding-top: 0.7rem;
}
.section--ink .railed__mark { color: #8ea3b5; }

.section__title {
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  max-width: 20ch;
  margin-bottom: 1.25rem;
}
.section__title--wide { max-width: 26ch; }

/* ---------- grids -------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-left { grid-template-columns: 1.15fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.15fr; }
}

.figure { position: relative; }
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.figure--tall img { aspect-ratio: 4 / 5; }
.figure__note {
  margin-top: 0.85rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- course cards ------------------------------------------------- */
.course {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  text-decoration: none;
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.course:hover {
  border-color: var(--rule);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -30px rgba(18, 32, 46, 0.55);
}
.course__media { overflow: hidden; }
.course__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.course:hover .course__media img { transform: scale(1.04); }

.course__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.65rem; }
.course__ref {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.course__title {
  margin: 0.75rem 0 0.9rem;
  font-size: 1.3rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.course__text { margin: 0 0 1.35rem; font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.course__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.course__go { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent); }
.course:hover .course__go svg { transform: translateX(3px); }
.course__go svg { transition: transform 0.24s var(--ease); }

/* book chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.5rem 0.22rem 0.4rem;
  border: 1px solid var(--rule-soft);
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip__dot { width: 0.5rem; height: 0.5rem; flex: none; }

/* ---------- clause list (the signature) ---------------------------------- */
.syllabus { display: grid; gap: 0; }

.day {
  border-top: 1px solid var(--rule);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}
.day:last-child { border-bottom: 1px solid var(--rule); }

.day__grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
@media (min-width: 60rem) {
  .day__grid { grid-template-columns: var(--rail) minmax(0, 1fr); }
}
.day__mark {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (min-width: 60rem) {
  .day__mark { position: sticky; top: 7rem; align-self: start; }
}
.day__mark b { display: block; font-weight: 500; }
.day__mark span { display: block; margin-top: 0.3rem; color: var(--muted); letter-spacing: 0.1em; }

.session + .session { margin-top: 2.1rem; }
.session__title {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.clauses { list-style: none; }
.clauses li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.1rem 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.95rem;
  color: var(--ink-2);
}
@media (min-width: 40rem) {
  .clauses li { grid-template-columns: 6.5rem minmax(0, 1fr); align-items: baseline; }
}
.clauses .ref {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
}
.clauses .ref--none { color: var(--muted); }

/* ---------- facts / stats ------------------------------------------------ */
.facts { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--rule); }
@media (min-width: 46rem) {
  .facts { grid-auto-flow: column; grid-auto-columns: 1fr; }
}
.facts li { padding: 1.5rem 0 1.4rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 46rem) {
  .facts li { border-bottom: 0; padding-inline: 0 1.5rem; }
  .facts li + li { border-left: 1px solid var(--rule); padding-inline: 1.5rem; }
}
.facts b {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.facts b sup { font-size: 0.4em; vertical-align: super; color: var(--accent); margin-left: 0.1em; }
.facts span {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--ink .facts { border-color: rgba(255, 255, 255, 0.2); }
.section--ink .facts li { border-color: rgba(255, 255, 255, 0.2); }
.section--ink .facts b { color: #fff; }
.section--ink .facts span { color: #8ea3b5; }

/* ---------- ticked list -------------------------------------------------- */
.ticks { list-style: none; display: grid; gap: 0.95rem; }
.ticks li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  font-size: 0.98rem;
  color: var(--ink-2);
}
.ticks svg { margin-top: 0.35rem; color: var(--accent); }

/* ---------- capability / sector cards ------------------------------------ */
.cap { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.cap__title { font-size: 1.22rem; margin-bottom: 0.7rem; }
.cap__list { list-style: none; display: grid; gap: 0.5rem; font-size: 0.93rem; color: var(--muted); }
.cap__list li { padding-left: 1rem; position: relative; }
.cap__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 1px;
  background: var(--accent);
}

.sector { position: relative; }
.sector img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sector__body { padding-top: 1.1rem; border-top: 1px solid var(--rule); margin-top: 1.1rem; }
.sector__name { font-size: 1.15rem; margin-bottom: 0.35rem; }
.sector__note { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- gallery ------------------------------------------------------ */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.65s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(18, 32, 46, 0.88), transparent);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- people (monogram, never a generated face) -------------------- */
.person { display: grid; gap: 1.1rem; }
.person__mono {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--wash);
  border: 1px solid var(--rule);
  font-family: var(--ff-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.person__name { font-size: 1.15rem; margin-bottom: 0.3rem; }
.person__role { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.person__bio { margin-top: 0.85rem; font-size: 0.94rem; color: var(--muted); line-height: 1.62; }

.trainer { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 60rem) { .trainer { grid-template-columns: 1fr 1.3fr; } }
.trainer__card { background: var(--wash-2); border: 1px solid var(--rule-soft); padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.trainer__mono {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  margin-bottom: 1.5rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--ff-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
}
.creds { list-style: none; display: grid; gap: 0.6rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.creds li { font-family: var(--ff-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--ink-2); line-height: 1.5; }

/* ---------- quotes ------------------------------------------------------- */
.quotes { display: grid; gap: 0; }
@media (min-width: 52rem) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote { padding: clamp(1.75rem, 3.5vw, 2.5rem) 0; border-top: 1px solid var(--rule); }
@media (min-width: 52rem) {
  .quote { padding-inline: 0 clamp(1.75rem, 3.5vw, 2.5rem); }
  .quote:nth-child(even) { padding-inline: clamp(1.75rem, 3.5vw, 2.5rem) 0; border-left: 1px solid var(--rule); }
}
.quote__head { font-size: 1.12rem; margin-bottom: 0.85rem; }
.quote__text { font-size: 0.97rem; color: var(--muted); line-height: 1.68; }
.quote__by {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.quote__by span { display: block; color: var(--muted); margin-top: 0.2rem; }
.section--ink .quote { border-color: rgba(255, 255, 255, 0.18); }
.section--ink .quote__text { color: #a9bccd; }
.section--ink .quote__by { color: #fff; }
.section--ink .quote__by span { color: #8ea3b5; }

/* ---------- client roll -------------------------------------------------- */
.clients { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 40rem) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.clients li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.97rem;
  color: var(--ink-2);
}
@media (min-width: 40rem) {
  .clients li { padding-inline: 0 1.5rem; }
  .clients li:nth-child(n + 2) { border-left: 1px solid var(--rule-soft); padding-inline: 1.5rem; }
}
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .clients li:nth-child(odd) { border-left: 0; padding-inline: 0 1.5rem; }
}
@media (min-width: 64rem) {
  .clients li:nth-child(3n + 1) { border-left: 0; padding-inline: 0 1.5rem; }
}

/* ---------- call to action band ------------------------------------------ */
.cta {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
@media (min-width: 58rem) { .cta { grid-template-columns: 1.25fr auto; } }
.cta__title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 22ch; }
.cta__text { margin-top: 0.9rem; max-width: 38rem; }

/* ---------- contact / form ----------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }

.detail { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.detail + .detail { margin-top: 2rem; }
.detail__label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.detail__value { font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); }
.detail__value a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
.detail__value a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.detail__value ul { list-style: none; display: grid; gap: 0.4rem; }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: var(--ff-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 9rem; resize: vertical; }
.field--row { display: grid; gap: 1.25rem; }
@media (min-width: 34rem) { .field--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.form__note { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ---------- footer ------------------------------------------------------- */
.footer { background: var(--ink); color: #9fb3c4; padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.footer a { text-decoration: none; transition: color 0.2s var(--ease); }
.footer a:hover { color: #fff; }

.footer__top { display: grid; gap: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 58rem) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer .brand__name { color: #fff; }
.footer .brand__sub { color: #7d93a6; }
.footer__blurb { margin-top: 1.25rem; max-width: 30rem; font-size: 0.93rem; line-height: 1.65; }

.footer__h {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer__list { list-style: none; display: grid; gap: 0.65rem; font-size: 0.93rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #7d93a6;
}
.footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- motion ------------------------------------------------------- */
/* Scroll reveal is opt-in: site.js stamps `js-reveal` on <html> before anything
   is hidden. If the script fails to load — the exact fault that broke the old
   site — every section simply renders, rather than staying invisible forever. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

.hero__eyebrow, .hero__title, .hero__text, .hero__actions, .books, .crumbs { animation: rise 0.85s var(--ease) both; }
.hero__title  { animation-delay: 0.08s; }
.hero__text   { animation-delay: 0.16s; }
.hero__actions{ animation-delay: 0.24s; }
.books, .crumbs { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- print -------------------------------------------------------- */
@media print {
  .topbar, .masthead, .hero__media, .footer, .nav, .burger { display: none !important; }
  body { color: #000; }
  .hero { background: #fff; color: #000; }
  .hero__title { color: #000; }
}
