/* =========================================================
   PRIDE Consulting — Homepage styles
   ========================================================= */

:root {
  /* Palette */
  --ivory: #F5F3EC;
  --paper: #FFFFFF;
  --sand: #E6E1D3;
  --stone: #ECE8DC;
  --mint: #DCE9DF;
  --forest: #0E3B2C;
  --accent: #1E7A4A;
  --accent-light: #7FD1A2;
  --ink: #15201B;
  --muted: #4F5A54;
  --rule: #D9D5C9;
  --rule-strong: #C8C2B2;
  --ochre: #C9A45C;
  --navy: #1B2A3F;
  --night: #101814;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --max: 1248px;
  --gutter: 32px;
  --pad: clamp(20px, 6.6vw, 96px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 96px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

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

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 18px; background: var(--forest); color: #fff;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: var(--accent-light); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--light { color: var(--accent-light); }
.label--icon { display: inline-flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 2px;
  font-weight: 500; font-size: 15px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--accent); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--forest); font-weight: 600; min-height: 52px; }
.btn--light:hover { background: var(--accent-light); color: var(--forest); }

.btn svg, .link-arrow svg { transition: transform .2s; }
.btn:hover svg, .link-arrow:hover svg { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-weight: 600; font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.link-arrow--dark { color: var(--ink); }

.section { padding-block: var(--section); }
.section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 24px;
  align-items: end;
  margin-bottom: 64px;
}
.section__head > div { grid-column: span 6; display: flex; flex-direction: column; gap: 20px; }
.section__intro { grid-column: 8 / span 5; font-size: 18px; color: var(--muted); }
.section__head--row { display: flex; justify-content: space-between; margin-bottom: 40px; }

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--forest);
}
.section__title--light { color: #fff; }
.section__title em, .hero__title em, .collab__title em { font-style: italic; }

.icon {
  width: 36px; height: 36px;
  fill: none; stroke: var(--forest); stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Announcement ---------- */
.announce {
  background: var(--forest);
  color: #CFE3D6;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.announce__inner { min-height: 40px; display: flex; align-items: center; gap: 24px; }
.announce__text { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); flex-shrink: 0; }
.announce__links { display: flex; gap: 28px; }
.announce__links a { color: #CFE3D6; }
.announce__links a:hover { color: #fff; }
.announce__close {
  display: none;
  width: 36px; height: 36px; margin-right: -8px;
  align-items: center; justify-content: center;
  background: none; border: 0; color: #CFE3D6;
}
.announce.is-hidden { display: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--rule), 0 8px 24px -16px rgba(14, 59, 44, .35); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  font-family: var(--serif);
  font-size: 40px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--forest);
}
.brand__mark--light { color: #fff; font-size: 48px; }
.brand__dot { color: var(--accent); }
.brand__dot--light { color: var(--accent-light); }
.brand__rule { width: 1px; height: 32px; background: var(--rule); }
.brand__name { font-size: 12px; line-height: 1.35; color: var(--muted); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { position: relative; padding-block: 8px; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--accent); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--rule); border-radius: 2px;
}
.menu-toggle span { width: 20px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 56px;
  align-items: end;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 104px);
}
.hero__copy { grid-column: span 7; display: flex; flex-direction: column; gap: 36px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 5.9vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--forest);
}
.hero__lead { max-width: 600px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* One orchestrated load moment */
.js .hero__copy > *,
.js .feature { opacity: 0; transform: translateY(14px); }
.js.is-loaded .hero__copy > *,
.js.is-loaded .feature {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.js.is-loaded .hero__copy > *:nth-child(2) { transition-delay: .08s; }
.js.is-loaded .hero__copy > *:nth-child(3) { transition-delay: .16s; }
.js.is-loaded .hero__copy > *:nth-child(4) { transition-delay: .24s; }
.js.is-loaded .feature { transition-delay: .32s; }

.feature { grid-column: span 5; background: var(--paper); border: 1px solid var(--rule); }
.feature__cover {
  position: relative; overflow: hidden;
  min-height: 420px; padding: 36px;
  background: var(--forest); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
}
.feature__rings {
  position: absolute; right: -60px; top: -40px;
  width: 420px; height: 420px;
  color: var(--accent-light); opacity: .35;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.feature:hover .feature__rings { transform: rotate(18deg) scale(1.04); }
.feature__top {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #CFE3D6;
}
.tag { padding: 6px 10px; border: 1px solid var(--accent-light); color: var(--accent-light); }
.feature__title-wrap { position: relative; display: flex; flex-direction: column; gap: 16px; }
.feature__bar { width: 48px; height: 3px; background: var(--accent-light); }
.feature__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -0.01em;
}
.feature__meta {
  padding: 28px 36px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px;
}
.feature__meta > div { display: flex; flex-direction: column; gap: 4px; }
.feature__meta strong { font-size: 15px; font-weight: 600; }

/* ---------- Trust strip ---------- */
.trust {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 32px;
  flex-wrap: wrap;
  padding-block: 32px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.trust__list {
  display: flex; flex-wrap: wrap; gap: 12px 44px;
  font-family: var(--serif); font-size: 22px; color: #3A4640;
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.service {
  display: flex; flex-direction: column; gap: 22px;
  padding: 32px 28px 8px;
  border-right: 1px solid var(--rule);
}
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; border-right: 0; }
.service__num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.service h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; }
.service p { font-size: 15px; color: var(--muted); }

/* ---------- Themes ---------- */
.themes { background: var(--forest); color: #fff; padding-block: 120px; }
.themes__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.themes__intro { grid-column: span 4; display: flex; flex-direction: column; gap: 24px; }
.themes__intro > p:last-child { font-size: 17px; color: #CFE3D6; }
.themes__list {
  grid-column: 6 / span 7;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px;
  grid-auto-flow: column; grid-template-rows: repeat(5, auto);
  counter-reset: theme;
}
.themes__list li { counter-increment: theme; border-top: 1px solid #3C6656; }
.themes__list li:nth-child(5), .themes__list li:nth-child(10) { border-bottom: 1px solid #3C6656; }
.themes__list a {
  display: flex; align-items: baseline; gap: 20px;
  padding: 22px 0;
  font-family: var(--serif); font-size: 26px; line-height: 1.2;
  color: #fff;
  transition: color .2s, padding-left .25s;
}
.themes__list a::before {
  content: counter(theme, decimal-leading-zero);
  font-family: var(--mono); font-size: 12px; color: var(--accent-light);
  flex-shrink: 0;
}
.themes__list a:hover { color: var(--accent-light); padding-left: 8px; }

/* ---------- Publications ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  min-height: 40px; padding: 0 16px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }

.pubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; }
.pub { display: flex; flex-direction: column; gap: 18px; }
.pub[hidden] { display: none; }
.pub:hover { color: var(--ink); }
.pub__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: -12px; }
.pub__title { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.pub:hover .pub__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pubs__empty { color: var(--muted); padding-top: 24px; }

.cover {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.pub:hover .cover { transform: translateY(-4px); box-shadow: 0 18px 30px -20px rgba(14, 59, 44, .55); }
.cover__kicker { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.cover__title { position: relative; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.cover__art { position: absolute; fill: none; stroke: currentColor; }

.cover--sand   { background: var(--sand);   color: var(--forest); }
.cover--sand .cover__kicker { color: var(--muted); }
.cover--green  { background: var(--accent); color: #fff; }
.cover--green .cover__kicker { color: #E3F2E8; }
.cover--ink    { background: var(--ink);    color: #fff; }
.cover--ink .cover__kicker, .cover--ink .cover__art { color: var(--ochre); }
.cover--forest { background: var(--forest); color: #fff; }
.cover--forest .cover__kicker, .cover--forest .cover__art { color: var(--accent-light); }
.cover--mint   { background: var(--mint);   color: var(--forest); }
.cover--mint .cover__art { color: var(--accent); }
.cover--navy   { background: var(--navy);   color: #fff; }
.cover--navy .cover__kicker { color: #B9C6D8; }
.cover--navy .cover__art { color: var(--accent-light); }
.cover--ochre  { background: var(--ochre);  color: var(--ink); }
.cover--paper  { background: var(--paper);  color: var(--forest); border: 1px solid var(--rule); }
.cover--paper .cover__kicker { color: var(--muted); }

.cover__art--waves { left: 0; bottom: 0; width: 100%; height: 45%; stroke-width: .8; opacity: .5; }
.cover__art--rings { right: -80px; bottom: -80px; width: 300px; height: 300px; opacity: .35; }
.cover__art--bars  { left: 28px; top: 22%; width: 66%; stroke-width: 1.2; }
.cover__art--diag  { inset: 0; width: 100%; height: 100%; stroke-width: .8; opacity: .45; }
.cover__art--globe { right: 24px; top: 20%; width: 52%; }
.cover__art--line  { left: 0; bottom: 15%; width: 100%; height: 40%; stroke-width: 1.4; }
.cover__art--grid  { left: 28px; top: 21%; width: 60%; }
.cover__art--world { right: 28px; top: 19%; width: 46%; }

/* ---------- People ---------- */
.people { background: var(--paper); border-top: 1px solid var(--rule); padding-block: 120px 96px; }
.partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px var(--gutter); }
.partner { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.partner__photo {
  aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end;
  padding: 20px;
  overflow: hidden;
  position: relative;
}
/* Drop an <img> inside .partner__photo to replace the initials */
.partner__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.partner:hover .partner__photo img { filter: grayscale(0); }
.partner__photo span { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--forest); }
.partner__photo--sand { background: var(--sand); }
.partner__photo--mint { background: var(--mint); }
.partner figcaption { display: flex; flex-direction: column; gap: 6px; }
.partner strong { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.partner figcaption span { font-size: 14px; color: var(--muted); }

.team { padding-top: 88px; display: flex; flex-direction: column; gap: 24px; }
.team__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.team__head h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--forest); }
.team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
.team__grid li { padding: 20px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.team__grid li:nth-child(-n+4) { border-top-color: var(--ink); }
.team__grid strong { font-weight: 600; font-size: 16px; }
.team__grid span { font-size: 14px; color: var(--muted); }

/* ---------- Clients ---------- */
.clients { background: var(--stone); padding-block: 120px; }
.clients__grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong);
}
.clients__grid li {
  min-height: 120px; padding: 20px;
  border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--serif); font-size: 19px; line-height: 1.25;
  transition: background-color .2s;
}
.clients__grid li:not(.clients__cta):hover { background: rgba(255, 255, 255, .55); }
.clients__cta { padding: 0 !important; background: var(--forest); }
.clients__cta a {
  width: 100%; height: 100%; min-height: 120px; padding: 20px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 500;
}
.clients__cta a:hover { background: var(--accent); color: #fff; }
.clients__cta-text { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Collaborate / contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.collab {
  grid-column: span 6;
  background: var(--forest); color: #fff;
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 28px;
}
.collab > p:not(.eyebrow) { font-size: 17px; line-height: 1.65; color: #CFE3D6; }
.collab__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em;
}
.collab__title--dark { color: var(--forest); }
.collab__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
.collab__site { color: #fff; border-bottom: 1px solid var(--accent-light); padding-block: 12px 4px; }
.collab__site:hover { color: var(--accent-light); }

.contact__details { grid-column: 7 / span 6; padding: clamp(0px, 4vw, 56px) 0 0 clamp(0px, 2.2vw, 32px); display: flex; flex-direction: column; gap: 36px; }
.contact__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); }
.contact__col { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--ink); font-size: 17px; min-width: 0; }
.contact__col a { overflow-wrap: anywhere; }
.copy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy {
  min-height: 28px; padding: 0 10px;
  background: none; border: 1px solid var(--rule-strong); border-radius: 999px;
  font-size: 12px; color: var(--muted);
}
.copy:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #CBD3CE; padding-block: 88px 40px; }
.footer a { color: #CBD3CE; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.footer__brand { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.footer__brand p { max-width: 420px; font-size: 15px; line-height: 1.65; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #34413A; color: #fff;
  transition: border-color .2s, background-color .2s;
}
.socials a:hover { border-color: var(--accent-light); background: #1A2620; }
.footer__col { grid-column: span 3; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.footer__col:first-of-type { grid-column: 7 / span 3; }
.footer__col .label { padding-bottom: 6px; }
.footer__bottom {
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid #2A352F;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #9AA59F;
}
.footer__motto { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Floating UI ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--forest); color: #fff; border: 0; border-radius: 50%;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s, background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  padding: 12px 18px;
  background: var(--ink); color: #fff; font-size: 14px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 24px; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .service, .service:first-child, .service:last-child { padding: 32px 24px 24px 0; border-right: 0; }
  .service { border-bottom: 1px solid var(--rule); }
  .pubs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .clients__grid li:nth-child(17) { grid-column: span 3; }
}

@media (max-width: 1024px) {
  :root { --header-h: 76px; }

  .menu-toggle { display: flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--pad) 32px;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -24px rgba(14, 59, 44, .35);
    font-family: var(--serif); font-size: 26px; font-weight: 400;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 24px; min-height: 56px; font-family: var(--sans); font-size: 16px; }

  .brand__mark { font-size: 34px; }

  .hero__copy, .feature { grid-column: 1 / -1; }
  .section__head > div, .section__intro { grid-column: 1 / -1; }
  .themes__intro, .themes__list { grid-column: 1 / -1; }
  .collab, .contact__details { grid-column: 1 / -1; }
  .contact__details { padding: 0; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col:first-of-type { grid-column: span 6; }
}

@media (max-width: 760px) {
  .announce__links { display: none; }
  .announce__close { display: inline-flex; }
  .announce__text { font-size: 11px; }

  .brand__rule, .brand__name { display: none; }

  .hero__actions .btn { flex: 1 1 100%; }
  .feature__cover { min-height: 340px; padding: 28px; }
  .feature__meta { padding: 24px 28px; }

  .trust { flex-direction: column; align-items: flex-start; }
  .trust__list { gap: 8px 24px; font-size: 19px; }

  .section__head { margin-bottom: 40px; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section__intro { font-size: 17px; }

  .services { grid-template-columns: 1fr; }
  .service, .service:first-child, .service:last-child { padding: 28px 0; }

  .themes { padding-block: 80px; }
  .themes__list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .themes__list li:nth-child(5) { border-bottom: 0; }
  .themes__list a { font-size: 22px; padding: 18px 0; }

  .pubs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 40px; }
  .cover { padding: 18px; }
  .cover__title { font-size: 19px; }
  .pub__title { font-size: 17px; }

  .people { padding-block: 80px 64px; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .partner strong { font-size: 19px; }
  .partner__photo span { font-size: 40px; }
  .team { padding-top: 56px; }
  .team__grid { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .team__grid li:nth-child(-n+4) { border-top-color: var(--rule); }
  .team__grid li:nth-child(-n+2) { border-top-color: var(--ink); }

  .clients { padding-block: 80px; }
  .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients__grid li { min-height: 96px; font-size: 17px; }
  .clients__grid li:nth-child(17) { grid-column: auto; }

  .contact__cols { grid-template-columns: 1fr; }

  .footer { padding-block: 64px 32px; }
  .footer__col, .footer__col:first-of-type { grid-column: 1 / -1; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .hero__copy > *, .js .feature { opacity: 1; transform: none; }
}
