/* ============================================================
   Teva Pharmaceuticals — clinical editorial design system
   Palette: deep ink-teal ground, porcelain surfaces, aqua signal
   Type: Fraunces (display) / Archivo (text)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* ink family */
  --ink:        #071c25;
  --ink-800:    #0b2a37;
  --ink-700:    #103c4c;
  --ink-500:    #2c5766;
  --slate:      #4d6f7c;
  --slate-soft: #7d99a3;

  /* light family */
  --porcelain:  #eef3f3;
  --porcelain-2:#e3ecec;
  --surface:    #ffffff;
  --hairline:   #d4e1e2;
  --hairline-2: #c2d4d6;

  /* signal */
  --teal:       #0c6b74;
  --teal-700:   #095159;
  --teal-300:   #3fb6b0;
  --aqua:       #57d9cd;
  --mint:       #d5eae7;
  --amber:      #b98432;

  /* semantic */
  --bg:         var(--porcelain);
  --fg:         var(--ink-800);
  --muted:      var(--slate);

  /* structure */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(7, 28, 37, .06), 0 2px 8px rgba(7, 28, 37, .04);
  --shadow-md: 0 2px 4px rgba(7, 28, 37, .05), 0 12px 28px -10px rgba(7, 28, 37, .18);
  --shadow-lg: 0 4px 8px rgba(7, 28, 37, .06), 0 28px 60px -22px rgba(7, 28, 37, .32);

  --maxw: 1220px;
  --gutter: clamp(20px, 5vw, 56px);

  --ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-text: "Archivo", "Helvetica Neue", Helvetica, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--ff-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--teal-300);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Language switching ---------- */
html[data-lang="en"] [data-t="fr"] { display: none !important; }
html[data-lang="fr"] [data-t="en"] { display: none !important; }

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 40;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: .98;
  letter-spacing: -.03em;
}
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; }

.lede {
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 62ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--light { color: var(--aqua); }

.prose p { margin-block: 0 1.1em; max-width: 68ch; text-wrap: pretty; }
.prose h3 { margin-block: 2.2em .55em; }
.prose h4 {
  font-family: var(--ff-text);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-block: 2em .5em;
}
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.1em; max-width: 68ch; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--teal-300); }
.prose strong { font-weight: 650; color: var(--ink); }
.prose em { font-style: italic; }

.mono {
  font-family: var(--ff-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------- 5. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 900px; }

.section { padding-block: clamp(64px, 8vw, 118px); position: relative; }
.section--tight { padding-block: clamp(44px, 5vw, 72px); }
.section--dark { background: var(--ink); color: var(--porcelain); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede { color: #b9d2d4; }
.section--paper { background: var(--surface); }

.section__head { max-width: 66ch; margin-bottom: clamp(32px, 4vw, 54px); }
.section__head .eyebrow { margin-bottom: 18px; }
.section__head h2 { margin-bottom: .45em; }

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--hairline-2), transparent);
  border: 0;
}

/* ---------- 6. Atmosphere: grain + molecular lattice ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lattice {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='96' viewBox='0 0 84 96'%3E%3Cg fill='none' stroke='%233fb6b0' stroke-width='1'%3E%3Cpath d='M42 0 L63 12 L63 36 L42 48 L21 36 L21 12 Z'/%3E%3Cpath d='M42 48 L63 60 L63 84 L42 96 L21 84 L21 60 Z'/%3E%3Cpath d='M63 12 L84 0 M63 36 L84 48 M21 12 L0 0 M21 36 L0 48 M63 60 L84 48 M63 84 L84 96 M21 60 L0 48 M21 84 L0 96'/%3E%3C/g%3E%3Cg fill='%233fb6b0'%3E%3Ccircle cx='42' cy='0' r='2'/%3E%3Ccircle cx='63' cy='12' r='2'/%3E%3Ccircle cx='63' cy='36' r='2'/%3E%3Ccircle cx='42' cy='48' r='2'/%3E%3Ccircle cx='21' cy='36' r='2'/%3E%3Ccircle cx='21' cy='12' r='2'/%3E%3Ccircle cx='63' cy='60' r='2'/%3E%3Ccircle cx='63' cy='84' r='2'/%3E%3Ccircle cx='42' cy='96' r='2'/%3E%3Ccircle cx='21' cy='84' r='2'/%3E%3Ccircle cx='21' cy='60' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 96px;
}
.lattice--faint { opacity: .16; }
.lattice--mask {
  -webkit-mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 68%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ---------- 7. Buttons ---------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: 15px 28px;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s;
  box-shadow: 0 1px 2px rgba(7, 28, 37, .1);
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 160% at 20% 0%, rgba(255, 255, 255, .26), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-800);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
}
.btn--ghost:hover { --btn-bg: rgba(12, 107, 116, .06); box-shadow: inset 0 0 0 1px var(--teal-300); }
.btn--onDark {
  --btn-bg: rgba(255, 255, 255, .07);
  --btn-fg: #eaf6f6;
  box-shadow: inset 0 0 0 1px rgba(87, 217, 205, .34);
  backdrop-filter: blur(6px);
}
.btn--onDark:hover { --btn-bg: rgba(87, 217, 205, .16); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .01em;
}
.link-arrow svg { transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 8. Language gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--ink);
  overflow: hidden;
}
.gate__bg { position: absolute; inset: 0; }
.gate__bg .lattice { opacity: .2; }
.gate__bg .glow--a {
  width: 720px; height: 720px;
  top: -260px; right: -180px;
  background: radial-gradient(circle, rgba(63, 182, 176, .5), transparent 65%);
}
.gate__bg .glow--b {
  width: 620px; height: 620px;
  bottom: -280px; left: -160px;
  background: radial-gradient(circle, rgba(12, 107, 116, .55), transparent 68%);
}

.gate__inner {
  position: relative;
  width: min(680px, 100%);
  text-align: center;
  color: #eaf6f6;
  animation: gate-in 1s var(--ease-out) both;
}
@keyframes gate-in {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.gate__crest { display: grid; place-items: center; margin-bottom: 34px; }
.gate__crest svg { width: 62px; height: 62px; }

.gate__brand {
  font-family: var(--ff-text);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 26px;
}
.gate__title {
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  color: #fff;
  line-height: 1.04;
  margin-bottom: 18px;
}
.gate__title span { display: block; }
.gate__title span + span { color: #9fd8d3; font-style: italic; }
.gate__sub span[lang="fr"] { color: #7d9ea3; font-style: italic; }
.gate__foot span[lang="fr"] { font-style: italic; }
.gate__sub {
  color: #9db9bd;
  font-size: 1.02rem;
  max-width: 46ch;
  margin: 0 auto 42px;
}

.gate__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 520px;
  margin-inline: auto;
}
@media (max-width: 520px) { .gate__choices { grid-template-columns: 1fr; } }

.lang-btn {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 24px 20px 22px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px rgba(157, 216, 211, .22);
  text-align: left;
  overflow: hidden;
  transition: transform .4s var(--ease-out), background-color .3s, box-shadow .3s;
}
.lang-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(87, 217, 205, .18), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
}
.lang-btn:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(87, 217, 205, .6); }
.lang-btn:hover::before { opacity: 1; }
.lang-btn__code {
  position: relative;
  font-family: var(--ff-display);
  font-size: 2.1rem;
  line-height: 1;
  color: #fff;
}
.lang-btn__name {
  position: relative;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fb6ba;
}
.lang-btn__go {
  position: absolute;
  right: 20px; bottom: 22px;
  color: var(--aqua);
  opacity: 0;
  transform: translateX(-6px);
  transition: all .4s var(--ease-out);
}
.lang-btn:hover .lang-btn__go { opacity: 1; transform: none; }

.gate__foot {
  margin-top: 38px;
  font-size: .78rem;
  letter-spacing: .08em;
  color: #6f9198;
}

body.gate-open { overflow: hidden; }
.gate.is-leaving {
  animation: gate-out .7s var(--ease) forwards;
  pointer-events: none;
}
@keyframes gate-out {
  to { opacity: 0; transform: scale(1.04); visibility: hidden; }
}

/* ---------- 9. Header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(238, 243, 243, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.masthead.is-stuck {
  border-bottom-color: var(--hairline);
  box-shadow: 0 8px 24px -18px rgba(7, 28, 37, .5);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 74px;
  padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { flex: none; width: 34px; height: 34px; }
.brand__text { display: grid; line-height: 1.05; }
.brand__name {
  font-family: var(--ff-display);
  font-size: 1.16rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand__sub {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

.mainnav { display: flex; gap: clamp(8px, 1.6vw, 26px); margin-left: auto; }
.mainnav a {
  position: relative;
  padding: 8px 2px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-500);
  transition: color .25s;
}
.mainnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease-out);
}
.mainnav a:hover { color: var(--ink); }
.mainnav a:hover::after, .mainnav a[aria-current="page"]::after { transform: scaleX(1); }
.mainnav a[aria-current="page"] { color: var(--teal); }

.masthead__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mainnav + .masthead__tools { margin-left: 0; }

.langswitch {
  display: inline-flex;
  padding: 3px;
  border-radius: 100px;
  background: var(--porcelain-2);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.langswitch button {
  padding: 6px 13px;
  border-radius: 100px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--slate);
  transition: color .25s, background-color .25s, box-shadow .25s;
}
.langswitch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.navtoggle { display: none; width: 42px; height: 42px; place-items: center; border-radius: 50%; }
.navtoggle span, .navtoggle span::before, .navtoggle span::after {
  content: "";
  display: block;
  width: 19px; height: 1.6px;
  background: var(--ink-700);
  transition: transform .35s var(--ease-out), opacity .2s;
}
.navtoggle span::before { transform: translateY(-6px); }
.navtoggle span::after { transform: translateY(4.4px); }
.navtoggle[aria-expanded="true"] span { background: transparent; }
.navtoggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.navtoggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(0); }

@media (max-width: 900px) {
  .navtoggle { display: grid; }
  .mainnav {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 10px var(--gutter) 26px;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all .35s var(--ease-out);
  }
  .mainnav.is-open { transform: none; opacity: 1; visibility: visible; }
  .mainnav a { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 1rem; }
  .mainnav a::after { display: none; }
}

/* ---------- 10. Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #dcecec;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 82% 8%, rgba(63, 182, 176, .22), transparent 60%),
    radial-gradient(70% 60% at 8% 92%, rgba(12, 107, 116, .5), transparent 62%),
    linear-gradient(168deg, #0a2731 0%, #071c25 52%, #05161d 100%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(72px, 10vw, 130px);
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__copy > * { animation: rise .9s var(--ease-out) both; }
.hero__copy > *:nth-child(1) { animation-delay: .05s; }
.hero__copy > *:nth-child(2) { animation-delay: .14s; }
.hero__copy > *:nth-child(3) { animation-delay: .23s; }
.hero__copy > *:nth-child(4) { animation-delay: .32s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero__title { color: #fff; margin-block: 20px .5em; }
.hero__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  color: var(--aqua);
}
.hero__lede { color: #a8c6c9; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: 30px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px rgba(157, 216, 211, .18);
  backdrop-filter: blur(10px);
  animation: rise 1s var(--ease-out) .38s both;
  overflow: hidden;
}
.hero__panel .lattice { opacity: .12; }
.hero__panel h3 {
  position: relative;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 22px;
}
.stat-row { position: relative; display: grid; gap: 2px; }
.stat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(157, 216, 211, .16);
}
.stat:first-child { border-top: 0; }
.stat__num {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  color: var(--aqua);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: .84rem; color: #93b3b7; line-height: 1.4; }

/* animated pulse line */
.pulse {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 74px;
  opacity: .5;
  pointer-events: none;
}
.pulse svg { width: 200%; height: 100%; animation: pulse-scroll 26s linear infinite; }
@keyframes pulse-scroll { to { transform: translateX(-50%); } }
.pulse path {
  fill: none;
  stroke: var(--teal-300);
  stroke-width: 1.4;
  stroke-linecap: round;
}

/* ---------- 11. Page banner (sub-pages) ---------- */
.banner {
  position: relative;
  background: var(--ink);
  color: #cfe4e5;
  overflow: hidden;
  isolation: isolate;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 120% at 88% 0%, rgba(63, 182, 176, .2), transparent 58%),
    linear-gradient(160deg, #0a2731, #061a22);
}
.banner__inner {
  position: relative;
  padding-block: clamp(56px, 8vw, 96px);
  display: grid;
  gap: 18px;
  max-width: 74ch;
}
.banner h1 { color: #fff; }
.banner .lede { color: #a8c6c9; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  letter-spacing: .04em;
  color: #7fa2a8;
}
.crumbs a { color: #9fd8d3; transition: color .25s; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }

/* ---------- 12. Cards & grids ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  overflow: hidden;
}
a.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--aqua));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
a.card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--hairline-2), var(--shadow-md); }
a.card:hover::before { transform: scaleX(1); }

.card__icon { width: 40px; height: 40px; color: var(--teal); }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }

.card--dark {
  background: var(--ink-800);
  box-shadow: inset 0 0 0 1px rgba(157, 216, 211, .16);
}
.card--dark h3 { color: #fff; }
.card--dark p { color: #a3c0c4; }

/* index-numbered list card */
.card__index {
  font-family: var(--ff-display);
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--slate-soft);
}

/* ---------- 13. Person cards ---------- */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.person {
  position: relative;
  display: grid;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
a.person:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--hairline-2), var(--shadow-md); }
.person__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-700), var(--ink));
}
.person__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform .8s var(--ease-out);
}
a.person:hover .person__media img { transform: scale(1.045); }
.person__body { padding: 24px 26px 26px; display: grid; gap: 6px; }
.person__role {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
}
.person__name { font-size: 1.5rem; }
.person__blurb { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.person .link-arrow { margin-top: 10px; }

/* portrait hero on bio pages */
.bio {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } }
.bio__portrait {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-700);
}
.bio__portrait img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: center 18%; }
.bio__portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(7, 28, 37, .55));
  pointer-events: none;
}
.bio__facts {
  margin-top: 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  overflow: hidden;
}
.bio__facts div {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--hairline);
  font-size: .86rem;
}
.bio__facts div:first-child { border-top: 0; }
.bio__facts dt { color: var(--slate-soft); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.bio__facts dd { margin: 0; color: var(--ink-700); font-weight: 500; }

.pullquote {
  margin: 40px 0;
  padding: 30px 34px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--mint), #eaf5f3);
  box-shadow: inset 0 0 0 1px rgba(12, 107, 116, .14);
}
.pullquote p {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.32;
  color: var(--ink);
  font-style: italic;
  max-width: none;
  margin: 0;
}
.pullquote footer { margin-top: 14px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }

/* ---------- 14. Feature / product blocks ---------- */
.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4.5vw, 68px);
  align-items: center;
}
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } }
.feature--rev .feature__media { order: 2; }
@media (max-width: 880px) { .feature--rev .feature__media { order: 0; } }

.feature__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-700);
}
.feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.feature__media:hover img { transform: scale(1.03); }
.feature__tag {
  position: absolute;
  top: 18px; left: 18px;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(7, 28, 37, .62);
  backdrop-filter: blur(8px);
  color: #d9f2ef;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.feature__body h2 { margin-bottom: .35em; }
.feature__body h2 em { font-style: italic; font-variation-settings: "SOFT" 60, "WONK" 1; }
.feature__body .btn, .feature__body .link-arrow { margin-top: 22px; }

figure { margin: 0; }
figcaption {
  margin-top: 10px;
  font-size: .74rem;
  line-height: 1.45;
  color: var(--slate-soft);
}
figcaption a { text-decoration: underline; text-underline-offset: 2px; }

.figure-wide { margin: 36px 0; }
.figure-wide img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

/* ---------- 15. Data tables ---------- */
.datatable {
  margin: 26px 0 32px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  overflow: hidden;
}
.datatable table { font-size: .9rem; }
.datatable caption {
  padding: 16px 20px;
  text-align: left;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--porcelain);
  border-bottom: 1px solid var(--hairline);
}
.datatable th, .datatable td {
  padding: 13px 20px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.datatable thead th {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  background: #f7fafa;
}
.datatable tbody tr:last-child td { border-bottom: 0; }
.datatable tbody tr:hover td { background: #f6fbfb; }
.datatable td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.datatable tfoot td {
  font-weight: 700;
  color: var(--ink);
  background: var(--porcelain);
  border-bottom: 0;
}
@media (max-width: 620px) {
  .datatable { overflow-x: auto; }
  .datatable table { min-width: 520px; }
}

/* ---------- 16. Timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; margin-top: 10px; }
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px; left: 7px;
  width: 1px;
  background: linear-gradient(var(--teal-300), var(--hairline));
}
.tl-item { position: relative; padding: 0 0 34px 40px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--teal);
  transition: box-shadow .3s, transform .3s;
}
.tl-item:hover::before { box-shadow: inset 0 0 0 5px var(--teal); transform: scale(1.1); }
.tl-item__year {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.tl-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.tl-item p { color: var(--muted); font-size: .92rem; max-width: 62ch; }

/* ---------- 17. Partner / supplier ---------- */
.partner {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px 26px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
a.partner:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--teal-300), var(--shadow-md); }
.partner__top { display: flex; align-items: center; gap: 14px; }
.partner__initials {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), var(--ink-700));
  color: #d9f2ef;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.partner__id { display: grid; gap: 2px; }
.partner__name { font-family: var(--ff-display); font-size: 1.25rem; color: var(--ink); line-height: 1.1; }
.partner__meta { font-size: .78rem; color: var(--slate-soft); letter-spacing: .04em; }
.partner__desc { font-size: .93rem; color: var(--muted); }
.partner__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.partner__stat span {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.partner__stat small {
  display: block;
  margin-top: 5px;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.partner--lead {
  background: linear-gradient(158deg, #ffffff, #f2f9f8);
  box-shadow: inset 0 0 0 1px var(--teal-300), var(--shadow-md);
}
.partner--lead .partner__initials { background: linear-gradient(145deg, var(--aqua), var(--teal)); color: #05262a; }
.flagchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--mint);
  color: var(--teal-700);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- 18. Callout ---------- */
.callout {
  display: grid;
  gap: 10px;
  padding: 22px 26px;
  border-radius: var(--r-md);
  background: #f4f9f9;
  box-shadow: inset 0 0 0 1px var(--hairline);
  border-left: 3px solid var(--teal-300);
}
.callout h4 { margin-top: 0 !important; }
.callout p { font-size: .9rem; color: var(--ink-500); margin: 0; }

/* ---------- 19. Article layout ---------- */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 270px);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 940px) { .article { grid-template-columns: 1fr; } }
.article__rail { position: sticky; top: 104px; display: grid; gap: 20px; }
@media (max-width: 940px) { .article__rail { position: static; } }
.rail-box {
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.rail-box h4 {
  font-family: var(--ff-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.rail-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rail-box li { font-size: .88rem; }
.rail-box a { color: var(--ink-500); transition: color .25s; }
.rail-box a:hover { color: var(--teal); }
.rail-box dl { display: grid; gap: 11px; margin: 0; }
.rail-box dt { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-soft); }
.rail-box dd { margin: 2px 0 0; font-size: .9rem; color: var(--ink-700); font-weight: 500; }

/* ---------- 20. Footer ---------- */
.site-foot {
  position: relative;
  background: var(--ink);
  color: #93b3b7;
  overflow: hidden;
}
.site-foot .lattice { opacity: .1; }
.site-foot__top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(48px, 6vw, 78px) 44px;
}
@media (max-width: 880px) { .site-foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-foot__top { grid-template-columns: 1fr; } }

.site-foot h4 {
  font-family: var(--ff-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 16px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-foot a { font-size: .9rem; color: #b8d2d5; transition: color .25s; }
.site-foot a:hover { color: #fff; }
.site-foot__brand .brand__name { color: #fff; }
.site-foot__brand .brand__sub { color: var(--aqua); }
.site-foot__blurb { margin-top: 16px; font-size: .88rem; max-width: 38ch; color: #86a6ab; }

.site-foot__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  padding-block: 22px 30px;
  border-top: 1px solid rgba(157, 216, 211, .14);
  font-size: .78rem;
  color: #6f9198;
}

/* ---------- 21. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal-stagger > * { opacity: 0; transform: translateY(24px); }
.reveal-stagger.is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: .02s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .09s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .23s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .3s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .37s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- 22. Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -60px; left: 16px; z-index: 300;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--teal); color: #fff; font-size: .85rem; font-weight: 600;
  transition: top .25s;
}
.skip:focus { top: 0; }
.stack { display: grid; }
.stack-sm { gap: 10px; }
.stack-md { gap: 20px; }
.stack-lg { gap: 34px; }
.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 54px); }
.hidden { display: none !important; }

/* ---------- 23. Header refinements ---------- */
@media (max-width: 900px) {
  .masthead__tools { margin-left: auto; }
  .brand__sub { display: none; }
}

/* two-up media strip */
.media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 34px 0;
}
.media-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

/* chip row */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 13px;
  border-radius: 100px;
  background: var(--porcelain-2);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: .78rem;
  color: var(--ink-500);
  letter-spacing: .01em;
}
.section--dark .chips li,
.hero .chips li { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(157,216,211,.2); color: #b9d2d4; }

/* credits */
.credits { font-size: .74rem; color: var(--slate-soft); line-height: 1.6; }
.credits a { text-decoration: underline; text-underline-offset: 2px; }


/* ---------- 24. Contact Styles & Badges ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-block: 28px 48px;
}
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--teal-300), var(--shadow-md);
}
.contact-card__role {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
.contact-card__name {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.15;
}
.contact-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.contact-card__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .94rem;
  color: var(--ink-700);
}
.contact-card__item svg {
  flex: none;
  color: var(--teal);
  width: 18px;
  height: 18px;
}
.contact-card__item a {
  color: var(--ink-700);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
  word-break: break-word;
}
.contact-card__item a:hover {
  color: var(--teal);
}

/* Supplier portrait avatars */
.partner__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--teal-300);
  box-shadow: var(--shadow-sm);
  flex: none;
}

/* ---------- 25. Mobile Fluidity & Touch Enhancements ---------- */
@media (max-width: 900px) {
  :root {
    --gutter: 20px;
  }
  body {
    font-size: 16px;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
  }
  .display {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }
  .h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.5rem);
  }
  .h2 {
    font-size: clamp(1.5rem, 5.2vw, 2rem);
  }
  .lede {
    font-size: 1.05rem;
  }
  .section {
    padding-block: clamp(42px, 7vw, 68px);
  }
  .section--tight {
    padding-block: clamp(32px, 5vw, 48px);
  }
  .card, .partner, .contact-card {
    padding: 22px 20px;
  }
  .btn {
    padding: 13px 22px;
    width: 100%;
    justify-content: center;
  }
  .hero__cta {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .mainnav {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .mainnav a {
    padding: 14px 4px;
    font-size: 1.05rem;
    font-weight: 600;
  }
  .bio {
    gap: 24px;
  }
  .bio__portrait img {
    aspect-ratio: 16 / 11;
  }
  .feature__media img {
    aspect-ratio: 16 / 11;
  }
}
