/* =========================================================
   PI | Corporate Services
   Central stylesheet for all pages
   ========================================================= */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --purple: #562853;        /* main background */
  --purple-dark: #3a1936;   /* footer, number tiles */
  --purple-ink: #1f0b1d;
  --teal: #38b6ab;
  --white: #ffffff;
  --text-on-dark: rgba(255, 255, 255, 0.9);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --container: 1400px;      /* content width, gutters come on top */
  --gutter: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--white);
  background: var(--purple);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--white); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[id] { scroll-margin-top: 110px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

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

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--teal); color: var(--purple-ink); padding: 10px 16px;
  font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(58, 25, 54, 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.logo { display: inline-flex; margin-top: 36px; margin-bottom: 20px; transition: margin 0.4s var(--ease); }
.logo img { height: 84px; width: auto; transition: height 0.4s var(--ease); }
.site-header.is-scrolled .logo { margin-top: 14px; margin-bottom: 14px; }
.site-header.is-scrolled .logo img { height: 56px; }

.header-right { display: flex; align-items: flex-start; gap: clamp(24px, 4vw, 60px); }
.main-nav { margin-top: 48px; transition: margin 0.4s var(--ease); }
.site-header.is-scrolled .main-nav { margin-top: 30px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.6vw, 24px); }
.main-nav a {
  position: relative; display: inline-block; padding: 4px 0;
  font-family: var(--font-display); font-size: 0.875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--teal); text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* "Let's start" tab hanging from the top edge */
.start-tab {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 122px; height: 134px; padding: 16px 12px 24px;
  background: var(--teal); color: var(--white); text-decoration: none;
  border-radius: 0 0 14px 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.15;
  text-transform: uppercase;
  transition: height 0.4s var(--ease), font-size 0.4s var(--ease), background-color 0.3s, color 0.3s;
}
.start-tab:hover { background: var(--white); color: var(--purple); }
.site-header.is-scrolled .start-tab { height: 84px; font-size: 1.125rem; }

.nav-toggle {
  display: none; margin-top: 30px; width: 48px; height: 48px; padding: 0;
  border: 1.5px solid rgba(56, 182, 171, 0.6); background: transparent; color: var(--teal);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle:hover { border-color: var(--teal); }
/* Hamburger: lines slide to the centre first, then rotate into a cross (and back) */
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle span { transition: background-color 0.15s 0.2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  transition: top 0.2s 0.2s var(--ease), transform 0.25s 0s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; transition-delay: 0s; }
.nav-open .nav-toggle span::before,
.nav-open .nav-toggle span::after { top: 0; transition: top 0.2s 0s var(--ease), transform 0.3s 0.2s var(--ease); }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 220px 0 0; }
/* Photo multiplied onto the purple, as in the design (Multiply blend mode),
   fading out into the purple at the bottom. */
.hero { background: var(--purple); }
.hero__media {
  position: absolute; inset: 0 0 auto 0; height: 880px; z-index: -2; overflow: hidden;
  background: var(--purple);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.hero__photo { position: absolute; inset: 0; background: var(--purple); transform-origin: 50% 30%; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  filter: grayscale(1); mix-blend-mode: multiply;
  transform-origin: 50% 40%; will-change: transform;
}
.motion-ready .hero__content > *,
.motion-ready .page-intro__content > *,
.motion-ready [data-intro] > * { opacity: 0; }
.hero__content { max-width: 680px; margin-left: clamp(0px, 26vw, 380px); }
.hero h1 { font-size: clamp(2.75rem, 6vw, 5.375rem); line-height: 1.12; margin-bottom: clamp(40px, 6vw, 80px); }
.hero__lead { max-width: 650px; color: var(--text-on-dark); margin-bottom: 44px; }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  min-width: 232px; min-height: 46px; padding: 0 30px 0 20px;
  background: var(--teal); color: var(--purple-dark); text-decoration: none;
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}
.btn svg { width: 10px; height: 12px; transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--white); color: var(--purple); }
.btn:hover svg { transform: translateX(5px); }

.discover {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: max-content; margin: clamp(56px, 7vw, 96px) auto 0; padding-bottom: 16px; /* room for the nudge, the hero clips overflow */
  color: var(--teal); text-decoration: none; font-size: 1rem; text-transform: uppercase;
}
.discover svg { width: 40px; height: 92px; overflow: visible; animation: discover-nudge 2.4s ease-in-out infinite; }
.discover:hover { color: var(--white); }
@keyframes discover-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ---------- Principles ---------- */
.principles-section { padding: clamp(80px, 9vw, 110px) 0 clamp(120px, 20vw, 320px); text-align: center; }
.principles-section h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.1; color: var(--teal); margin-bottom: clamp(48px, 6vw, 80px); }
.principles {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1120px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px;
}
.principle a { display: flex; flex-direction: column; align-items: center; gap: 44px; text-decoration: none; color: var(--teal); }
.principle__num {
  display: flex; align-items: center; justify-content: center;
  width: 138px; height: 138px;
  background: var(--purple-dark); border: 1px solid var(--teal);
  font-family: var(--font-display); font-weight: 800; font-size: 4.5rem; line-height: 1; color: var(--teal);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.principle h3 { font-size: 1.25rem; line-height: 1.45; color: var(--teal); max-width: 220px; transition: color 0.3s; }
.principle a:hover .principle__num { background: var(--teal); color: var(--purple-dark); transform: translateY(-6px); }
.principle a:hover h3 { color: var(--white); }

/* ---------- Content page intro (About, ...) ---------- */
.page-intro {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 220px 0 clamp(300px, 34vw, 500px);
  background: var(--purple);
}
.page-intro__content { max-width: 720px; margin-left: clamp(0px, 26vw, 380px); }
.page-intro h1 { font-size: clamp(2.75rem, 6vw, 5.375rem); line-height: 1.12; margin-bottom: clamp(40px, 6vw, 80px); }
.page-intro__content p { color: var(--text-on-dark); }
.page-intro__content p.lead { color: var(--teal); }
.page-intro__content p + p { margin-top: 1.9em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: clamp(48px, 6vw, 80px); }

/* Photo at the bottom of a page, multiplied onto the purple and fading in from the top */
.page-media {
  position: absolute; inset: auto 0 0 0; height: clamp(420px, 44vw, 680px); z-index: -1;
  overflow: hidden; background: var(--purple);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
}
.page-media__photo { position: absolute; inset: 0; background: var(--purple); will-change: transform; }
.page-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  filter: grayscale(1); mix-blend-mode: multiply;
}

/* ---------- Light pages (5 Principles, ...) ---------- */
.theme-light { background: var(--white); color: var(--purple-dark); }
.logo-on-light { display: none; }
.theme-light .logo-on-light { display: block; }
.theme-light .logo-on-dark { display: none; }
.theme-light.nav-open .logo-on-light { display: none; }
.theme-light.nav-open .logo-on-dark { display: block; }
.theme-light .site-header.is-scrolled { background: rgba(255, 255, 255, 0.9); box-shadow: 0 1px 0 rgba(58, 25, 54, 0.08); }
.theme-light .main-nav a:hover, .theme-light .main-nav a[aria-current="page"] { color: var(--purple-dark); }
.theme-light .start-tab:hover { background: var(--purple-dark); color: var(--white); }
.theme-light .btn:hover { background: var(--purple-dark); color: var(--white); }

/* ---------- 5 Principles page ---------- */
.pr-top { padding: 200px 0 clamp(72px, 9vw, 120px); }
.pr-top__grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 22vw, 320px); gap: 40px; align-items: start; }
.pr-title { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 1.05; color: var(--purple-dark); margin-bottom: clamp(48px, 6vw, 72px); }
.pr-list { list-style: none; margin: 0; padding: 0 0 0 clamp(0px, 11vw, 160px); display: grid; gap: clamp(64px, 8vw, 104px); }
.pr-item { display: grid; grid-template-columns: var(--num-col) minmax(0, 1fr); column-gap: var(--num-gap); max-width: 740px; }
.pr-item, .pr-band { --num-col: clamp(68px, 7.5vw, 108px); --num-gap: clamp(16px, 2vw, 28px); }
/* Outlined numbers: heavy grotesk with a flag "1", drawn as a teal contour like the design */
.pr-num {
  font-family: "Figtree", var(--font-display); font-weight: 800; font-size: clamp(5.25rem, 11vw, 10rem); line-height: 1; margin-top: -0.1em;
  color: transparent; -webkit-text-stroke: 2px var(--teal); text-align: center;
}
.pr-item h2 { font-size: clamp(1.75rem, 3.1vw, 2.75rem); line-height: 1.06; color: var(--purple-dark); margin-bottom: 22px; }
.pr-item p { color: rgba(58, 25, 54, 0.88); font-size: 1rem; line-height: 1.85; }
.pr-item p + p { margin-top: 1.6em; }
.pr-illus { margin: 0; }
.pr-illus img { width: 100%; height: auto; will-change: transform; }
.pr-band { background: #ebe4eb; padding: clamp(80px, 9vw, 120px) 0 clamp(96px, 11vw, 150px); }
.pr-band__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.pr-band .pr-list { padding-left: 0; }
.pr-band .btn-row { margin-top: clamp(48px, 5vw, 64px); padding-left: calc(var(--num-col) + var(--num-gap)); }
.pr-illus--team { max-width: 470px; }

/* ---------- Services page ---------- */
.content-col { max-width: 760px; margin-left: clamp(0px, 26vw - 12px, 380px); }
.illus { margin: 0; }
.illus img { width: 100%; height: auto; will-change: transform; }
.illus-svg { display: block; width: 100%; height: auto; overflow: visible; will-change: transform; }
.sv-top { padding: 200px 0 clamp(64px, 7vw, 96px); }
.sv-top__grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 19vw, 280px); gap: 40px; align-items: start; }
.sv-title { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 1.05; color: var(--teal); margin-bottom: clamp(40px, 5vw, 64px); }
.sv-top h2 { font-size: clamp(1.75rem, 3.1vw, 2.75rem); line-height: 1.08; color: var(--teal); margin-bottom: 28px; }
.sv-lead { color: #1d8a80; max-width: 640px; }
.sv-band { background: #ebe4eb; padding: clamp(56px, 6vw, 80px) 0 clamp(72px, 8vw, 110px); }
.sv-service + .sv-service { margin-top: clamp(48px, 5vw, 64px); }
.sv-service h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.1; color: var(--purple-dark); margin-bottom: 12px; }
.sv-service p, .sv-service li { color: rgba(58, 25, 54, 0.88); font-size: 1rem; line-height: 1.8; }
.sv-service p + p, .sv-service p + ul, .sv-service ul + p { margin-top: 1.2em; }
.sv-service ul { margin: 0; padding-left: 1.15em; }
.sv-service li::marker { color: var(--teal); }
.sv-band .btn-row { margin-top: clamp(56px, 6vw, 80px); }
.sv-connect { padding: clamp(80px, 9vw, 120px) 0 clamp(96px, 10vw, 140px); }
.sv-connect .content-col { margin-left: clamp(0px, 23vw - 12px, 340px); }
.sv-connect h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.08; color: var(--purple-dark); margin-bottom: 24px; }
.sv-connect p { color: rgba(58, 25, 54, 0.88); max-width: 600px; }
.sv-connect .btn-row { margin-top: 32px; }
.illus--international { max-width: 780px; margin-top: clamp(56px, 6vw, 80px); }

/* ---------- Team overview ---------- */
.team-top { padding: 220px 0 clamp(64px, 8vw, 120px); }
.team-top .content-col h1 { font-size: clamp(2.75rem, 6vw, 5.375rem); line-height: 1.08; margin-bottom: clamp(32px, 4vw, 48px); }
.team-top .content-col p { color: var(--text-on-dark); max-width: 620px; }
.team-grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1140px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 34px);
}
.team-card { position: relative; height: 100%; background: var(--teal); color: var(--purple-ink); padding: clamp(20px, 2.6vw, 36px) clamp(20px, 2.6vw, 36px) clamp(28px, 3vw, 44px); }
.team-card__photo { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #e6e3e6; margin: 0 0 22px; }
@property --hz { syntax: "<number>"; inherits: false; initial-value: 1; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(var(--zoom, 1) * var(--hz))); transition: --hz 0.8s var(--ease); }
.team-card__hover {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: clamp(18px, 2vw, 28px);
  background: rgba(31, 11, 29, 0.86); color: var(--white);
  font-size: 0.9375rem; line-height: 1.6;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.team-card__hover p { margin: 0; transform: translateY(12px); transition: transform 0.6s var(--ease); }
.team-card__more {
  display: inline-flex; align-items: center; gap: 10px; color: var(--teal);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transform: translateY(12px); transition: transform 0.6s 0.05s var(--ease);
}
.team-card__more svg { width: 10px; height: 12px; }
.team-card h2 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.25; margin: 0; }
.team-card__role { margin: 2px 0 18px; font-size: 1.0625rem; }
.team-card__mail { position: relative; z-index: 2; color: var(--purple-ink); text-decoration: none; font-size: 1.0625rem; }
.team-card__mail:hover { color: var(--white); }
/* whole card clickable, e-mail link stays on top */
.team-card__link { color: inherit; text-decoration: none; }
.team-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.team-card:hover .team-card__hover, .team-card:focus-within .team-card__hover { opacity: 1; }
.team-card:hover .team-card__hover p, .team-card:hover .team-card__more,
.team-card:focus-within .team-card__hover p, .team-card:focus-within .team-card__more { transform: none; }
.team-card:hover .team-card__photo img { --hz: 1.05; }
.team-bottom { padding: clamp(64px, 7vw, 100px) 0 clamp(80px, 9vw, 120px); }

/* ---------- Team member detail ---------- */
.member { padding: 220px 0 clamp(80px, 9vw, 130px); }
.member__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: start; }
.member__text { grid-column: 1 / span 8; max-width: 760px; }
.member__aside { grid-column: 9 / span 4; }
.member__back { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(8px, 1vw, 16px); color: var(--teal); text-decoration: none; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.member__back svg { width: 10px; height: 12px; transform: rotate(180deg); transition: transform 0.35s var(--ease); }
.member__back:hover svg { transform: rotate(180deg) translateX(5px); }
.member h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.05; margin-bottom: 12px; }
.member__text .member__role { color: var(--teal); font-size: 1.25rem; font-weight: 600; margin-bottom: clamp(32px, 4vw, 48px); }
.member__text p { color: var(--text-on-dark); }
.member__text p + p { margin-top: 1.2em; }
.member__photo { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: #e6e3e6; border: clamp(12px, 1.4vw, 20px) solid var(--teal); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__contact { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.member__contact a { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.member__contact a:hover { color: var(--teal); }
.member__contact .icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: var(--white); flex-shrink: 0; }
.member__contact .icon svg { width: 18px; height: 18px; }

/* ---------- Careers (uses the page intro) ---------- */
.page-intro__content h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.1; margin: clamp(48px, 5vw, 64px) 0 20px; }
.page-intro__content .job-meta { color: var(--white); font-weight: 600; margin-bottom: 1.4em; }
.page-intro__content p + p.job-meta { margin-top: 0; }

/* ---------- Vacancy detail ---------- */
.job__text .job-meta { color: var(--white); font-weight: 600; margin-bottom: clamp(24px, 3vw, 36px); }
.job__text .lead { color: var(--teal); font-size: 1.1875rem; }
.job__text h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.1; margin: clamp(44px, 5vw, 60px) 0 16px; }
.job__text ul { margin: 1em 0 0; padding-left: 1.15em; color: var(--text-on-dark); }
.job__text li { margin-bottom: 0.35em; }
.job__text li::marker { color: var(--teal); }
.job__text a { color: var(--teal); }
.job__text a:hover { color: var(--white); }
.job__text .btn-row { margin-top: clamp(40px, 5vw, 56px); }
.job__text .btn { color: var(--purple-dark); }
.job .member__aside { align-self: stretch; }
.job-card { position: sticky; top: 130px; background: var(--teal); color: var(--purple-ink); padding: clamp(24px, 2.6vw, 36px); }
.job-card h2 { font-size: 1.375rem; line-height: 1.2; margin-bottom: 20px; color: var(--purple-ink); }
.job-card dl { margin: 0 0 28px; display: grid; gap: 14px; }
.job-card dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple-dark); opacity: 0.75; }
.job-card dd { margin: 2px 0 0; font-size: 1rem; line-height: 1.5; }
.job-card dd a { color: var(--purple-ink); }
.job-card .btn { width: 100%; background: var(--purple-dark); color: var(--white); }
.job-card .btn:hover { background: var(--white); color: var(--purple-dark); }

/* ---------- Contact page ---------- */
.contact-top { padding: 220px 0 clamp(48px, 6vw, 80px); }
.contact-top h1 { font-size: clamp(2.75rem, 6vw, 5.375rem); line-height: 1.08; margin-bottom: clamp(32px, 4vw, 48px); }
.contact-top p { color: var(--text-on-dark); }
.contact-top p.lead { color: var(--teal); }
.contact-main { padding: 0 0 clamp(96px, 10vw, 140px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.contact-item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 22px 24px; background: rgba(31, 11, 29, 0.35); border: 1px solid rgba(56, 182, 171, 0.35);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.contact-item:hover { border-color: var(--teal); background: rgba(31, 11, 29, 0.55); }
.contact-item .icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: var(--white); }
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item__label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
.contact-item address, .contact-item a { font-style: normal; color: var(--white); text-decoration: none; font-size: 1.0625rem; line-height: 1.6; }
.contact-item a:hover { color: var(--teal); }

/* Map: loads Google Maps only after a click (no third-party cookies before consent) */
.map { position: relative; min-height: 420px; overflow: hidden; background: var(--purple-dark); border: clamp(10px, 1.2vw, 16px) solid var(--teal); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.85); }
.map::after { content: ""; position: absolute; inset: 0; background: var(--purple); mix-blend-mode: multiply; opacity: 0.18; pointer-events: none; }
.map__consent {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 16px;
  padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(58, 25, 54, 0) 35%, rgba(31, 11, 29, 0.72) 100%), url("../assets/img/hero-meeting-960.webp") center / cover;
}
.map__consent p { margin: 0; max-width: 420px; color: var(--text-on-dark); font-size: 0.9375rem; }
.map__consent .map__title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; color: var(--white); }
.map__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.map__actions .btn { cursor: pointer; border: 0; }
.map__link { color: var(--teal); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.map__link:hover { color: var(--white); }
.map.is-loaded .map__consent { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: flex; align-items: center; padding: 200px 0 120px; }
.notfound .code { font-family: "Figtree", var(--font-display); font-weight: 800; font-size: clamp(6rem, 16vw, 12rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--teal); margin-bottom: 16px; }
.notfound h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 20px; }
.notfound p { color: var(--text-on-dark); margin-bottom: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-dark); padding: 64px 0 56px; font-size: 1rem; line-height: 1.7; }
.footer-inner { position: relative; display: flex; align-items: flex-start; gap: 36px; }
.footer-logo img { height: 92px; width: auto; }
.site-footer address { font-style: normal; color: var(--text-on-dark); }
.site-footer address a { color: var(--text-on-dark); text-decoration: none; }
.site-footer address a:hover { color: var(--teal); }
.footer-social {
  position: absolute; right: 0; bottom: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.footer-social:hover { background: var(--white); color: var(--purple); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

/* Footer bottom bar: copyright and legal links */
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem; color: rgba(255, 255, 255, 0.6);
}
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-legal a { color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--teal); }

/* ---------- Legal pages (privacy, responsible disclosure) ---------- */
.legal { padding: 220px 0 clamp(96px, 10vw, 140px); }
.legal h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.06; margin-bottom: clamp(24px, 3vw, 36px); }
.legal .lead { color: var(--teal); font-size: 1.25rem; font-weight: 600; }
.legal p, .legal li { color: var(--text-on-dark); }
.legal h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; margin: clamp(40px, 4.5vw, 56px) 0 14px; }
.legal ul { margin: 1em 0 0; padding-left: 1.15em; }
.legal li { margin-bottom: 0.5em; }
.legal li::marker { color: var(--teal); }
.legal a { color: var(--teal); }
.legal a:hover { color: var(--white); }
.legal .closing { margin-top: 1.6em; }
.legal .updated { margin-top: clamp(40px, 5vw, 56px); font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Responsive ---------- */
/* Between tablet and desktop the nav gets tight: drop "Contact",
   the "Let's start" tab already leads to contact. */
@media (min-width: 981px) and (max-width: 1199px) {
  .main-nav .nav-contact { display: none; }
}
@media (max-width: 1100px) {
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: 0.8125rem; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .start-tab { display: none; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    background: var(--purple-dark);
    display: flex; align-items: center; padding: 120px var(--gutter) 48px;
    /* opens as a circle growing from the menu button */
    clip-path: circle(0px at calc(100% - var(--gutter) - 24px) 54px);
    visibility: hidden;
    transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s 0.55s;
  }
  .site-header.is-scrolled .main-nav { margin-top: 0; }
  .nav-open .main-nav {
    clip-path: circle(150vmax at calc(100% - var(--gutter) - 24px) 54px);
    visibility: visible;
    transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s;
  }
  /* a fixed menu must not be trapped by the scrolled header's backdrop blur */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; box-shadow: none; }
  .main-nav ul { flex-direction: column; gap: 10px; }
  .main-nav li { opacity: 0; transform: translateY(28px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
  .nav-open .main-nav li { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .nav-open .main-nav li:nth-child(1) { transition-delay: 0.22s; }
  .nav-open .main-nav li:nth-child(2) { transition-delay: 0.28s; }
  .nav-open .main-nav li:nth-child(3) { transition-delay: 0.34s; }
  .nav-open .main-nav li:nth-child(4) { transition-delay: 0.40s; }
  .nav-open .main-nav li:nth-child(5) { transition-delay: 0.46s; }
  .nav-open .main-nav li:nth-child(6) { transition-delay: 0.52s; }
  .nav-open .main-nav li:nth-child(7) { transition-delay: 0.60s; }
  .main-nav a { font-size: clamp(1.5rem, 6vw, 2.25rem); font-weight: 800; }
  .main-nav .nav-cta { display: block; margin-top: 20px; }
  .main-nav .nav-cta a { color: var(--white); background: var(--teal); padding: 12px 22px; font-size: 1.125rem; }
  .main-nav .nav-cta a::after { display: none; }
  .logo img { height: 64px; }
  .logo { margin-top: 22px; }
  .hero { padding-top: 170px; }
  .hero__content { margin-left: 0; }
  .page-intro { padding-top: 170px; }
  .page-intro__content { margin-left: 0; }
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .theme-light .main-nav a:hover, .theme-light .main-nav a[aria-current="page"] { color: var(--white); }
  .theme-light.nav-open .nav-toggle { color: var(--teal); }
  .pr-top { padding-top: 160px; }
  .pr-top__grid, .pr-band__grid { grid-template-columns: 1fr; }
  .pr-list { padding-left: 0; }
  .pr-illus--presenter { max-width: 200px; justify-self: end; margin-top: -24px; }
  .pr-illus--team { max-width: 340px; }
}
@media (max-width: 980px) {
  .sv-top { padding-top: 160px; }
  .sv-top__grid { grid-template-columns: 1fr; }
  .content-col, .sv-connect .content-col { margin-left: 0; }
  .illus--lightbulb { max-width: 160px; justify-self: end; order: -1; margin-bottom: -40px; }
}
@media (max-width: 980px) {
  .team-top, .member { padding-top: 170px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member__text, .member__aside { grid-column: 1 / -1; }
  .member__aside { max-width: 420px; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}
/* touch screens have no hover: the whole card is tappable */
@media (hover: none) {
  .team-card__hover { display: none; }
}
@media (max-width: 980px) {
  .contact-top { padding-top: 170px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .job-card { position: static; }
  .legal { padding-top: 170px; }
}
@media (min-width: 981px) { .main-nav .nav-cta { display: none; } }
@media (max-width: 640px) {
  .hero__media { height: 760px; }
  .btn-row .btn { flex: 1 1 100%; }
  .pr-item, .pr-band { --num-col: 58px; --num-gap: 14px; }
  .pr-num { font-size: 4.75rem; -webkit-text-stroke-width: 1.5px; }
  .pr-band .btn-row { padding-left: 0; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .principle a { gap: 24px; }
  .principle__num { width: 112px; height: 112px; font-size: 3.5rem; }
  .principle h3 { font-size: 1.0625rem; }
  .principle:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-inner { flex-direction: column; gap: 24px; padding-left: 0; }
  .footer-logo img { height: 72px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .discover svg { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
