/* RLG Therapeutics. Light, navy and green, one bold move: the dotted world map. */
:root {
  --navy: #0b2a6b;
  --ink: #0d1b3e;
  --text: #3e4c6b;
  --muted: #5e6b8a;
  --green: #0a8a4c;
  --green-dark: #07703d;
  --blue: #1f6fbf;
  --bg: #f7fafe;
  --paper: #ffffff;
  --tint: #eaf1fa;
  --green-tint: #e4f3ea;
  --line: #d9e3f1;
  --dot: #bccce5;

  --r-europe: #0b2a6b;
  --r-latam: #1f6fbf;
  --r-africa: #138a4b;
  --r-gcc: #d4991c;
  --r-cis: #14a0a8;
  --r-sea: #e4573d;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: -0.03em; line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--text); max-width: 60ch; }
.small { font-size: .92rem; color: var(--muted); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.tint { background: var(--tint); }
.rule-top { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 60; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 13px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { color: var(--green-dark); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.nav-mobile-only { display: none; }
.bar-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; color: var(--ink); }
.menu-btn svg { margin: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 10px; border: 1.5px solid transparent; font: 600 .98rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-quiet { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-quiet:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--tint); }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-line-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 84px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.hero h1 { max-width: 15ch; }
.certs { border-left: 3px solid var(--green); padding: 4px 0 4px 22px; }
.certs h2 { font-size: 1rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: .8rem; }
.certs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.certs li { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.certs li svg { flex-shrink: 0; color: var(--green); }
.certs li.more { font-family: var(--body); font-weight: 500; font-size: .95rem; color: var(--muted); }

/* ---------- World map ---------- */
.mapband { padding-top: clamp(8px, 2vw, 24px); padding-bottom: clamp(28px, 5vw, 56px); }
.worldmap { width: 100%; height: auto; overflow: visible; }
.worldmap .d { fill: none; stroke-linecap: round; stroke-width: 4.6; stroke: var(--dot); }
.worldmap .d.europe { stroke: var(--r-europe); }
.worldmap .d.latam { stroke: var(--r-latam); }
.worldmap .d.africa { stroke: var(--r-africa); }
.worldmap .d.gcc { stroke: var(--r-gcc); }
.worldmap .d.cis { stroke: var(--r-cis); }
.worldmap .d.sea { stroke: var(--r-sea); }
.worldmap .arc { fill: none; stroke-width: 2.2; stroke-linecap: round; opacity: .9; }
.worldmap .arc.europe { stroke: var(--r-europe); }
.worldmap .arc.latam { stroke: var(--r-latam); }
.worldmap .arc.africa { stroke: var(--r-africa); }
.worldmap .arc.gcc { stroke: var(--r-gcc); }
.worldmap .arc.cis { stroke: var(--r-cis); }
.worldmap .arc.sea { stroke: var(--r-sea); }
.worldmap .anchor { stroke: #fff; stroke-width: 3; }
.worldmap .anchor.europe { fill: var(--r-europe); } .worldmap .anchor.latam { fill: var(--r-latam); }
.worldmap .anchor.africa { fill: var(--r-africa); } .worldmap .anchor.gcc { fill: var(--r-gcc); }
.worldmap .anchor.cis { fill: var(--r-cis); } .worldmap .anchor.sea { fill: var(--r-sea); }
.worldmap .hub { fill: var(--green); stroke: #fff; stroke-width: 4; }
.worldmap .hub-halo { fill: var(--green); opacity: .18; }
.worldmap .pill { fill: #fff; stroke-width: 2.4; }
.worldmap .pill.europe { stroke: var(--r-europe); } .worldmap .pill.latam { stroke: var(--r-latam); }
.worldmap .pill.africa { stroke: var(--r-africa); } .worldmap .pill.gcc { stroke: var(--r-gcc); }
.worldmap .pill.cis { stroke: var(--r-cis); } .worldmap .pill.sea { stroke: var(--r-sea); }
.worldmap .pilltext { font: 600 21px var(--body); fill: var(--ink); }
.worldmap .pillkey.europe { fill: var(--r-europe); } .worldmap .pillkey.latam { fill: var(--r-latam); }
.worldmap .pillkey.africa { fill: var(--r-africa); } .worldmap .pillkey.gcc { fill: var(--r-gcc); }
.worldmap .pillkey.cis { fill: var(--r-cis); } .worldmap .pillkey.sea { fill: var(--r-sea); }
.worldmap[data-active] .d:not(.is-active), .worldmap[data-active] .arc:not(.is-active), .worldmap[data-active] .anchor:not(.is-active), .worldmap[data-active] .mark:not(.is-active) { opacity: .16; }
.worldmap[data-active] .d.is-active { stroke-width: 5.6; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
.worldmap .arc { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.7s cubic-bezier(.3,.6,.3,1) backwards; }
.worldmap .arc:nth-of-type(1) { animation-delay: .25s; } .worldmap .arc:nth-of-type(2) { animation-delay: .45s; }
.worldmap .arc:nth-of-type(3) { animation-delay: .65s; } .worldmap .arc:nth-of-type(4) { animation-delay: .85s; }
.worldmap .arc:nth-of-type(5) { animation-delay: 1.05s; } .worldmap .arc:nth-of-type(6) { animation-delay: 1.25s; }
.worldmap .mark { animation: pop .5s ease-out 1.6s backwards; }
@media (prefers-reduced-motion: reduce) { .worldmap .arc, .worldmap .mark { animation: none; } html { scroll-behavior: auto; } }

.legend { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.legend button { display: inline-flex; align-items: center; gap: 9px; font: 600 .95rem/1 var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.legend button:hover, .legend button[aria-pressed="true"] { border-color: var(--ink); }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.legend .origin { display: inline-flex; align-items: center; gap: 9px; font: 500 .92rem/1 var(--body); color: var(--muted); padding: 10px 6px; }
.map-labels { display: block; }
@media (max-width: 820px) { .worldmap .pillgroup { display: none; } }

/* ---------- Pillars / columns ---------- */
.cols { display: grid; gap: clamp(24px, 4vw, 56px); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-rule { border-top: 3px solid var(--navy); padding-top: 20px; }
.col-rule:nth-child(2) { border-color: var(--blue); }
.col-rule:nth-child(3) { border-color: var(--green); }
.col-rule p { margin: 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin: 0; }

/* ---------- Offering tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 20px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--navy); box-shadow: 0 10px 28px -16px rgba(11,42,107,.35); }
.tile .art { background: var(--tint); border-radius: 10px; aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 16px; }
.tile .art svg { width: 78%; height: auto; }
.tile h3 { margin: 0 6px 6px; }
.tile p { margin: 0 6px 14px; font-size: .96rem; line-height: 1.55; }
.tile .go { margin: auto 6px 0; font-weight: 600; color: var(--green-dark); font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* ---------- Offerings page detail rows ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); align-items: start; }
.offer:first-of-type { border-top: 0; }
.offer .art { background: var(--tint); border-radius: 14px; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.offer .art svg { width: 76%; height: auto; }
.offer h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.tags li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; color: var(--ink); }
.note { background: var(--green-tint); border-radius: 12px; padding: 16px 20px; color: var(--ink); font-size: .98rem; max-width: 70ch; }
.note p { margin: 0; }

/* ---------- Models ---------- */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.model { padding: 6px clamp(18px, 3vw, 40px); border-left: 1px solid var(--line); }
.model:first-child { padding-left: 0; border-left: 0; }
.model:last-child { padding-right: 0; }
.model p { margin: 0 0 .8em; }
.model ul { margin: 0; padding-left: 1.1em; }
.model li { margin-bottom: .45em; }
.model h3 span { display: block; font-family: var(--body); font-weight: 500; font-size: .95rem; letter-spacing: 0; color: var(--muted); margin-top: 4px; }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(44px, 7vw, 92px) clamp(32px, 5vw, 56px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 18ch; }
.page-head .lead { margin: 0; }

/* ---------- About ---------- */
.statement { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); max-width: 30ch; margin: 0; text-wrap: balance; }
.statement-label { font-weight: 600; color: var(--green-dark); margin-bottom: .6rem; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; }
.values div { padding: 20px 0; border-top: 1px solid var(--line); }
.values dt { font-family: var(--display); font-weight: 650; color: var(--ink); font-size: 1.2rem; margin-bottom: 4px; }
.values dd { margin: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--green); line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: 1.12rem; margin-bottom: .35em; }
.steps p { margin: 0; font-size: .98rem; }

/* ---------- Quality ---------- */
.accred { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.accred li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.accred strong { display: block; font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.02em; color: var(--navy); line-height: 1.1; margin-bottom: 6px; }
.accred span { color: var(--muted); font-size: .96rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checklist svg { color: var(--green); margin-top: 3px; }
.checklist strong { color: var(--ink); }

/* ---------- Markets page ---------- */
.region-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.region-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.region-list h3 { display: flex; align-items: center; gap: 10px; margin-bottom: .3em; }
.region-list h3 i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.region-list p { margin: 0 0 .5em; font-size: .98rem; }
.region-list a { font-weight: 600; color: var(--green-dark); text-underline-offset: 4px; }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #dbe5f7; }
.cta h2 { color: #fff; max-width: 22ch; }
.cta p { max-width: 56ch; margin: 0; }
.cta .actions { margin-top: 1.6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.details { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0; }
.details li { padding: 16px 0; border-top: 1px solid var(--line); }
.details li:last-child { border-bottom: 1px solid var(--line); }
.details .k { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 2px; }
.details a, .details span.v { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.details a:hover { color: var(--green-dark); text-decoration: underline; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); }
.form-card h2 { font-size: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b4c5e0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(31,111,191,.35); border-color: var(--blue); }
.consent { font-size: .9rem; color: var(--muted); margin: 4px 0 18px; }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status.ok { color: var(--green-dark); }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }

/* ---------- Dialog ---------- */
dialog.gate { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--text); background: var(--paper); box-shadow: 0 30px 80px -20px rgba(11,42,107,.5); }
dialog.gate::backdrop { background: rgba(11,42,107,.5); backdrop-filter: blur(3px); }
.gate-inner { padding: clamp(22px, 4vw, 34px); position: relative; }
.gate h2 { font-size: 1.55rem; padding-right: 36px; }
.gate .x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tint); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.gate .x:hover { background: var(--line); }
.gate .success[hidden], .gate form[hidden] { display: none; }
.gate .ready { display: grid; gap: 14px; justify-items: start; }
.gate-pop { animation: gatepop .22s ease-out; }
@keyframes gatepop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gate-pop { animation: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px) 28px; font-size: .98rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); }
.foot-grid img { height: 64px; width: auto; margin-bottom: 14px; }
.foot-grid h2 { font-family: var(--body); font-size: .95rem; font-weight: 700; letter-spacing: 0; color: var(--ink); margin-bottom: .7em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--navy); text-decoration: underline; }
.foot-grid button { background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.foot-grid button:hover { color: var(--navy); text-decoration: underline; }
.foot-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.foot-base a { color: var(--muted); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .accred { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 20px var(--gutter); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--green-dark); }
  .bar-actions { display: none; }
  .nav-mobile-only { display: block; }
  .menu-btn { display: grid; }
  .hero-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer .art { max-width: 420px; }
  .models { grid-template-columns: minmax(0, 1fr); }
  .model, .model:first-child, .model:last-child { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .model:first-child { border-top: 0; padding-top: 0; }
}
@media (max-width: 760px) {
  .cols-3, .cols-2, .values, .region-list { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .col-rule { padding-bottom: 6px; }
}
@media (max-width: 560px) {
  .tiles, .steps, .accred, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 46px; }
  .actions .btn { flex: 1 1 100%; }
}
