/* =============================================================
   arosMAB — antibody–drug conjugates · Uppsala
   Placeholder one-page site. All copy is lorem ipsum; all
   pipeline/address data is fictional sample data.
   ============================================================= */

/* ---- Tokens ------------------------------------------------- */
:root {
  /* colour */
  --ink: #0a1f3a;          /* dark navy — technology section    */
  --ink-2: #071528;        /* deeper navy — footer / gradients  */
  --ink-soft: #12294a;     /* raised panel on navy              */
  --paper: #e9eef3;        /* cool light page background        */
  --card: #ffffff;         /* hero / about cards                */
  --text: #10202f;         /* body text on light                */
  --muted: #566572;        /* secondary text on light           */
  --muted-navy: #9db1c6;   /* secondary text on navy            */
  --line: #d4dde5;         /* hairlines on light                */
  --line-navy: rgba(255, 255, 255, 0.14);
  --payload: #e0913e;      /* warm amber  — payload / warhead   */
  --payload-2: #f2c98c;    /* light amber                       */
  --antibody: #4e93c4;     /* molecular blue — antibody         */

  /* type */
  --font-display: "Familjen Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-label: var(--font-body); /* labels / data — sans, not mono */

  /* metrics */
  --radius-card: 44px;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p,
figure,
ol {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 10px 10px;
  font: 500 0.85rem/1 var(--font-label);
  z-index: 20;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

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

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font: 500 0.95rem/1 var(--font-body);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}
.btn--solid {
  background: var(--ink);
  color: #fff;
}
.btn--solid:hover {
  background: var(--payload);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* =============================================================
   SECTION 1 — HERO
   ============================================================= */
.hero {
  position: relative;
  z-index: 2;
  background: var(--card);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.hero__bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand__mark {
  width: 44px;
  height: 24px;
  overflow: visible;
}
.brand__mark path,
.brand__mark line {
  stroke: var(--antibody);
  fill: none;
  stroke-linecap: round;
}
.brand__mark rect {
  fill: var(--payload);
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__word strong {
  font-weight: 700;
}
.brand__img {
  height: 56px;
  width: auto;
}

.nav {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1.75rem);
  flex-wrap: wrap;
  justify-content: flex-end;
  font: 500 0.95rem/1 var(--font-body);
}
.nav a {
  position: relative;
  padding: 0.4rem 0.2rem;
  color: var(--text);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--payload);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after {
  transform: scaleX(1);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(2rem, 5vw, 4rem);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.hero__lead {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Image slots ------------------------------------------------- */
.img-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 11px,
    rgba(78, 147, 196, 0.06) 11px,
    rgba(78, 147, 196, 0.06) 12px
  );
  color: var(--muted);
  text-align: center;
}
.img-slot__tag {
  font: 500 0.66rem/1 var(--font-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--antibody);
}
.img-slot__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
}
.img-slot__dim {
  font: 400 0.78rem/1 var(--font-label);
}
.img-slot--hero {
  aspect-ratio: 1 / 1;
  width: 100%;
}
.hero__media {
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(10deg);
}
.hero__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: rotate(-10deg) scale(1.2);
}

/* =============================================================
   SECTION 2 — TECHNOLOGY
   ============================================================= */
.technology {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--radius-card) * -1);
  padding-top: calc(var(--radius-card) + clamp(4rem, 8vw, 7rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(120% 80% at 85% 0%, #123056 0%, transparent 55%),
    var(--ink);
  color: #eaf1f8;
}

.tech__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.tech__media {
  display: flex;
  justify-content: center;
}
.tech__media-frame {
  max-width: 320px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card);
  padding: 5%;
}
.tech__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.tech__copy {
  max-width: 55ch;
}
.technology .section__title {
  color: #fff;
}
.tech__lead {
  color: var(--muted-navy);
  margin-top: 1.1rem;
}

/* =============================================================
   SECTION 3 — PIPELINE
   ============================================================= */
.pipeline {
  background: var(--paper);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.pipeline__head {
  max-width: 60ch;
}

.pl-scroll {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow-x: auto;
}
.pl-table {
  min-width: 720px;
  border-top: 1px solid var(--line);
}
.pl-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.pl-row--head {
  padding-block: 0.9rem;
}
.pl-row--head .pl-label {
  font: 400 0.82rem/1.3 var(--font-label);
  color: var(--muted);
}

.pl-phases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  font: 400 0.82rem/1.3 var(--font-label);
  color: var(--muted);
  text-align: center;
}

.pl-code {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pl-ind {
  display: block;
  font: 400 0.82rem/1.3 var(--font-label);
  color: var(--muted);
  margin-top: 0.25rem;
}

/* the track: reused conjugate motif = phase progress */
.pl-track {
  position: relative;
  height: 26px;
}
.pl-line,
.pl-fill {
  position: absolute;
  top: 50%;
  height: 3px;
  border-radius: 3px;
  transform: translateY(-50%);
}
.pl-line {
  left: 10%;
  right: 10%;
  background: var(--line);
}
.pl-fill {
  left: 10%;
  width: calc((var(--reach) - 1) * 20%);
  background: linear-gradient(90deg, var(--antibody), var(--payload));
}
.pl-nodes {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  place-items: center;
}
.pl-nodes i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 0 0 4px var(--paper);
}
/* current phase = payload node (amber square) */
.pl-row[style*="--reach: 1"] .pl-nodes i:nth-child(1),
.pl-row[style*="--reach: 2"] .pl-nodes i:nth-child(2),
.pl-row[style*="--reach: 3"] .pl-nodes i:nth-child(3),
.pl-row[style*="--reach: 4"] .pl-nodes i:nth-child(4),
.pl-row[style*="--reach: 5"] .pl-nodes i:nth-child(5) {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: var(--payload);
  border-color: var(--payload);
}
/* colour the passed nodes amber/blue up to reach */
.pl-row[style*="--reach: 2"] .pl-nodes i:nth-child(1),
.pl-row[style*="--reach: 3"] .pl-nodes i:nth-child(-n + 2),
.pl-row[style*="--reach: 4"] .pl-nodes i:nth-child(-n + 3),
.pl-row[style*="--reach: 5"] .pl-nodes i:nth-child(-n + 4) {
  border-color: var(--antibody);
  background: var(--antibody);
}

/* =============================================================
   SECTION 4 — ABOUT
   ============================================================= */
.about {
  background: var(--card);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__copy p {
  color: var(--muted);
  margin-top: 1.1rem;
  max-width: 46ch;
}
.about__address {
  font-style: normal;
  font-family: var(--font-label);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  margin-top: 1.6rem;
  padding-left: 1rem;
  border-left: 2px solid var(--payload);
}
.about__map iframe {
  width: 100%;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: saturate(0.9);
}

/* =============================================================
   SECTION 5 — FOOTER
   ============================================================= */
.footer {
  background: var(--ink-2);
  color: #dce6f0;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-navy);
}
.footer__eu-logo {
  display: block;
  width: 320px;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font: 500 0.95rem/1 var(--font-body);
}
.footer__nav a {
  position: relative;
  color: #dce6f0;
  padding: 0.4rem 0.2rem;
}
.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--payload);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.footer__nav a:hover::after {
  transform: scaleX(1);
}
.footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
}
.brand__img--sm {
  height: 40px;
}
.footer__fine {
  font: 400 0.8rem/1 var(--font-label);
  color: var(--muted-navy);
}

/* =============================================================
   MOTION
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 860px) {
  .hero__bar {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1rem;
  }
  .nav {
    justify-content: flex-start;
  }
  .hero__grid,
  .about__grid {
    grid-template-columns: 1fr;
  }
  .hero__media {
    max-width: 320px;
    width: 100%;
    margin-inline: auto;
  }
  .tech__grid {
    grid-template-columns: 1fr;
  }
  .tech__media {
    max-width: 340px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
