/* AMEL website styles
   One typeface (Manrope), one type scale, mostly white. Plum only in the hero and footer.
   Pink-to-coral is used for small touches: icons, bullets, rules and hover states. */
:root {
  --pink: #F8509B;
  --coral: #FE7179;
  --crimson: #A0051C;
  --crimson-dark: #7A0415;
  --plum: #260A18;
  --ink: #22111A;
  --ink-soft: #5E4A55;
  --white: #FFFFFF;
  --blush: #FDF5F7;
  --line: #EDE0E5;
  --grad: linear-gradient(135deg, var(--pink), var(--coral));
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 72rem;
  --header-h: 4rem;

  /* type scale */
  --fs-hero: clamp(2rem, 3.8vw, 2.75rem);
  --fs-h1: 2.25rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.125rem;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.9rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--fs-body)/1.7 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--crimson); text-underline-offset: 0.2em; }
a:hover { color: var(--crimson-dark); }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

h1, h2, h3 { font-family: var(--font); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--plum); color: #fff;
  padding: 0.7rem 1rem; border-radius: 0.5rem; font: 600 0.95rem var(--font); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer; font: 600 0.95rem/1 var(--font); padding: 0.8rem 1.3rem;
  border-radius: 999px; background: var(--plum); color: #fff; border: 1.5px solid var(--plum); text-decoration: none;
}
.btn:hover { background: #3A1027; border-color: #3A1027; color: #fff; }
.btn.grad { background: var(--grad); border-color: transparent; color: var(--ink); }
.btn.grad:hover { filter: brightness(1.06); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--plum); }
.btn.ghost:hover { background: var(--plum); color: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn.ghost-light:hover { background: #fff; color: var(--plum); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font: 700 1.15rem var(--font); letter-spacing: 0.06em; }
.brand-text span { display: none; font: 500 0.7rem/1.3 var(--font); color: var(--ink-soft); max-width: 14rem; }
@media (min-width: 72rem) { .brand-text span { display: block; } }

.nav-toggle {
  display: none; font: 600 0.9rem var(--font); color: var(--ink); cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem;
}
.nav > ul { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav a, .nav button {
  font: 500 0.95rem var(--font); color: var(--ink); text-decoration: none; background: none; border: 0;
  padding: 0.5rem 0.8rem; border-radius: 0.5rem; cursor: pointer; white-space: nowrap;
}
.nav a:hover, .nav button:hover { color: var(--crimson); background: var(--blush); }
.nav [aria-current="page"], .nav button.current {
  color: var(--crimson); text-decoration: underline; text-decoration-color: var(--pink);
  text-decoration-thickness: 2px; text-underline-offset: 0.5em;
}
.has-sub { position: relative; }
.has-sub > button::after {
  content: ""; display: inline-block; width: 0.34em; height: 0.34em; margin-left: 0.45em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.18em) rotate(45deg);
}
.sub {
  display: none; position: absolute; left: 0; top: 100%; min-width: 14rem; margin: 0; padding: 0.4rem;
  list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 0.8rem;
  box-shadow: 0 20px 36px -22px rgba(38, 10, 24, 0.4);
}
.has-sub:hover > .sub, .has-sub > button[aria-expanded="true"] + .sub { display: block; }
.sub a { display: block; }

@media (max-width: 59.99rem) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
    border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--header-h)); overflow: auto; padding: 0.4rem 1.5rem 1.2rem;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav button { padding: 0.65rem 0.3rem; }
  .has-sub > button { width: 100%; text-align: left; font-weight: 600; pointer-events: none; }
  .has-sub > button::after { display: none; }
  .sub { display: block; position: static; border: 0; box-shadow: none; background: none; padding: 0 0 0.3rem 0.9rem; }
}

/* Sections */
.section { padding: clamp(2.6rem, 5.5vw, 4.5rem) 0; }
.section.tint { background: var(--blush); }
.split { display: grid; gap: 1.2rem 3rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 2fr; } }
.split > h2 { margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.65; }
.prose-wide { max-width: 44rem; }
.muted { color: var(--ink-soft); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(55% 80% at 90% 10%, rgba(248, 80, 155, 0.3), transparent 62%),
    radial-gradient(50% 70% at 60% 110%, rgba(254, 113, 121, 0.22), transparent 62%),
    var(--plum);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.hero h1 { font-size: var(--fs-hero); line-height: 1.15; letter-spacing: -0.025em; color: #fff; margin-bottom: 0.55em; }
.hero .lead { max-width: 30rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 1.6rem; }
.field {
  position: relative; height: clamp(240px, 30vw, 360px);
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%);
}
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.field-cap { font: 400 0.85rem/1.5 var(--font); color: rgba(255, 255, 255, 0.65); max-width: 30rem; margin: 0.6rem 0 0; }

/* Research tiles */
.tiles { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 36rem) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile:last-child { grid-column: 1 / -1; } }
@media (min-width: 56rem) {
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .tile, .tile:last-child { grid-column: span 2; }
  .tile:nth-child(n + 4) { grid-column: span 3; }
}
.tile {
  display: block; padding: 1.5rem; border-radius: 1rem; background: var(--white); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover { border-color: var(--pink); box-shadow: 0 14px 28px -20px rgba(160, 5, 28, 0.5); color: var(--ink); }
.tile:hover h3 { color: var(--crimson); }
.tile .art { height: 3.4rem; margin-bottom: 1rem; color: var(--ink); }
.tile .art svg { height: 100%; width: auto; }
.tile h3 { margin: 0 0 0.3rem; }
.tile p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); }

/* Signal path (kept slim) */
.path-cap { margin: 1.6rem 0 0; font-size: var(--fs-small); color: var(--ink-soft); }
.flow { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; max-width: 44rem; }
.flow li { position: relative; padding: 0 0 0.9rem 1.8rem; font: 500 0.9rem/1.35 var(--font); }
.flow li::before {
  content: ""; position: absolute; z-index: 1; left: 0; top: 0.2rem; width: 0.85rem; height: 0.85rem;
  border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--pink);
}
.flow li::after { content: ""; position: absolute; left: calc(0.425rem - 1px); top: 1.15rem; bottom: -0.15rem; width: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
@media (min-width: 48rem) {
  .flow { grid-template-columns: repeat(6, 1fr); max-width: none; }
  .flow li { padding: 1.7rem 0.8rem 0 0; }
  .flow li::before { left: 0; top: 0; }
  .flow li::after { left: 1.1rem; right: 0; top: calc(0.425rem - 1px); bottom: auto; width: auto; height: 2px; }
}

/* Link rows (homepage news) */
.rows { list-style: none; margin: 1.2rem 0 1.5rem; padding: 0; max-width: 40rem; }
.rows li { border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows a { display: block; padding: 0.9rem 0; font: 600 1rem/1.4 var(--font); text-decoration: none; color: var(--ink); }
.rows a small { display: block; font: 400 var(--fs-small)/1.5 var(--font); color: var(--ink-soft); margin-top: 0.1rem; }
.rows a:hover { color: var(--crimson); }

.vision { font: 500 clamp(1.25rem, 2.2vw, 1.55rem)/1.5 var(--font); letter-spacing: -0.01em; max-width: 40rem; margin: 0; }

/* Inner page header (slim) */
.page-head { background: var(--blush); border-bottom: 1px solid var(--line); padding: clamp(1.8rem, 4vw, 2.8rem) 0; }
.page-head h1 { margin: 0 0 0.3em; }
.page-head .lede { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-soft); max-width: 40rem; margin: 0; }

/* Inner page body */
.page-body { padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(2.4rem, 5vw, 4rem); }
.page-col { max-width: 50rem; }
.two { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .two { grid-template-columns: minmax(0, 1fr) 15rem; gap: 4rem; } }
.aside h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.6rem; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li { border-top: 1px solid var(--line); }
.aside li:last-child { border-bottom: 1px solid var(--line); }
.aside a { display: block; padding: 0.6rem 0; font: 500 0.95rem var(--font); text-decoration: none; }
.aside a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.aside p { font-size: 0.95rem; margin-bottom: 0.4rem; }

.sub-h { font-size: 1.25rem; margin: 2.2rem 0 0.8rem; }
.sub-h.first { margin-top: 0; }
.block { padding-top: 2.6rem; }
.block:first-child { padding-top: 0; }
.block > h2 { margin-bottom: 1rem; }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.jump a, .yearnav a {
  font: 500 0.9rem var(--font); text-decoration: none; padding: 0.3rem 0.85rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
}
.jump a:hover, .yearnav a:hover { border-color: var(--pink); color: var(--crimson); }
.yearnav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }

.entries { list-style: none; margin: 0; padding: 0; }
.entries li { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.entries h3 { margin-bottom: 0.15rem; }
.entries .meta { font-size: var(--fs-small); color: var(--ink-soft); margin: 0 0 0.4rem; }
.entries p { margin-bottom: 0.35em; }
.entries .links a { font-weight: 600; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem 2rem; }
@media (min-width: 40rem) { .list { grid-template-columns: 1fr 1fr; } .list.one { grid-template-columns: 1fr; } }
.list li { position: relative; padding-left: 1.3rem; line-height: 1.5; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--grad); }

.yr { font-size: 1.125rem; margin: 1.8rem 0 0.2rem; }
.yearnav + .yr { margin-top: 1rem; }
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.pubs p { margin: 0; }
.pubs .t { font: 600 1rem/1.45 var(--font); margin-bottom: 0.2rem; }
.pubs .t a { color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 1.5px; }
.pubs .t a:hover { color: var(--crimson); }
.pubs .a, .pubs .v { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-soft); }

.empty { background: var(--blush); border: 1px solid var(--line); border-radius: 1rem; padding: 1.6rem; max-width: 36rem; }
.cta-band { background: var(--blush); border-top: 1px solid var(--line); padding: 1.6rem 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta-inner p { margin: 0; color: var(--ink-soft); }
.cta-inner strong { color: var(--ink); font-weight: 600; }

/* Contact form */
.form { display: grid; gap: 1rem; max-width: 32rem; }
.form label { display: grid; gap: 0.3rem; font: 600 0.92rem var(--font); }
.form input, .form textarea {
  font: 400 1rem/1.5 var(--font); color: var(--ink); background: var(--white);
  border: 1px solid #CDB7C1; border-radius: 0.6rem; padding: 0.7rem 0.9rem; width: 100%;
}
.form textarea { min-height: 8.5rem; resize: vertical; }
.form .hint { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }

/* Footer (simple) */
.site-footer { background: var(--plum); color: #D9C4CE; padding: 2.6rem 0 1.6rem; font: 400 0.95rem/1.6 var(--font); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-top { display: grid; gap: 1.8rem; }
@media (min-width: 48rem) { .foot-top { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; } }
.foot-brand strong { display: block; font: 700 1.2rem var(--font); letter-spacing: 0.06em; color: #fff; margin-bottom: 0.3rem; }
.foot-brand p { margin: 0; max-width: 20rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.25rem; }
.foot-contact p { margin: 0 0 0.5rem; }
.foot-base { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.85rem; color: #B99AA9; }

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
