:root {
  --plaster: #ECEDEB;
  --paper: #F8F9F8;
  --graphite: #1C2023;
  --slate: #59626A;
  --rule: #D3D7D6;
  --blue: #2347D6;
  --blue-deep: #1A35A6;
  --blue-ink: #2347D6;
  --blue-wash: #E4EAFD;
  --sun: #FFC83D;
  --sun-soft: #FFE59A;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2rem;
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --radius-panel: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--graphite);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--graphite); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  background: var(--blue);
  -webkit-mask: url("/Media/logo_techpolicylabeu.png") center / contain no-repeat;
          mask: url("/Media/logo_techpolicylabeu.png") center / contain no-repeat;
}
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--slate); font-size: var(--step--1); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--graphite); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .6rem 1.25rem;
  border-radius: 999px; border: 1px solid var(--graphite);
  font: inherit; font-size: var(--step--1); font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn-solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-line { background: transparent; color: var(--graphite); }
.btn-line:hover { background: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 {
  margin: 0 0 1.5rem;
  font-size: var(--step-4);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero p.lede { margin: 0 0 2rem; font-size: var(--step-1); line-height: 1.5; color: var(--slate); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { border-radius: var(--radius-panel); width: 100%; aspect-ratio: 900 / 672; object-fit: cover; }

/* ---------- Tracker ---------- */
.tracker-section { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.tracker {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
  box-shadow: 0 1px 0 rgba(28,32,35,.04), 0 30px 60px -40px rgba(28,32,35,.35);
  overflow: hidden;
}
.tracker-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--rule);
}
.tracker-head h2 { margin: 0; font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; }
.tracker-head p { margin: 0; font-size: var(--step--1); color: var(--slate); }

.t-grid { display: grid; grid-template-columns: minmax(12rem, 1.1fr) 2fr minmax(13rem, 1.1fr); column-gap: 2rem; align-items: center; }
.t-labels { padding: .9rem clamp(1.25rem, 3vw, 2rem); font-size: var(--step--1); color: var(--slate); border-bottom: 1px solid var(--rule); }
.stages { position: relative; height: 1.5em; margin-inline: 7px; }
.stages span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.stages span:nth-child(1) { left: 0; transform: translateX(-7px); }
.stages span:nth-child(2) { left: 33.333%; }
.stages span:nth-child(3) { left: 66.667%; }
.stages span:nth-child(4) { left: 100%; transform: translateX(calc(-100% + 7px)); }

.t-list { list-style: none; margin: 0; padding: 0; }
.t-row { padding: 1.15rem clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--rule); }
.t-row:last-child { border-bottom: 0; }
.t-row .law { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.t-row a.law:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-row .what { display: block; font-size: var(--step--1); color: var(--slate); line-height: 1.4; }
.t-row .next { font-size: var(--step--1); line-height: 1.4; }
.t-row .next strong { display: block; font-weight: 600; }
.t-row .next span { color: var(--slate); }

.track { position: relative; height: 14px; }
.track::before {
  content: ""; position: absolute; left: 7px; right: 7px; top: 6px; height: 2px;
  background: repeating-linear-gradient(to right, var(--rule) 0 6px, transparent 6px 10px);
}
.track .done {
  position: absolute; left: 7px; top: 6px; height: 2px; background: var(--blue);
  width: calc((100% - 14px) * var(--p));
  transform-origin: left; animation: grow 1.1s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--i) * 90ms + 200ms);
}
.track .tick { position: absolute; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule); transform: translateX(-50%); left: calc(7px + (100% - 14px) * var(--k)); }
.track .tick.past { border-color: var(--blue); background: var(--blue); }
.track .now {
  position: absolute; top: 0; width: 14px; height: 14px; border-radius: 50%;
  left: calc(7px + (100% - 14px) * var(--p)); transform: translateX(-50%);
  background: var(--blue); box-shadow: 0 0 0 5px var(--sun-soft);
  animation: pop .4s ease-out both; animation-delay: calc(var(--i) * 90ms + 1.1s);
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: translateX(-50%) scale(0); } to { transform: translateX(-50%) scale(1); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.track .stage-inline { display: none; position: absolute; bottom: 20px; font-size: .75rem; color: var(--blue-ink); font-weight: 600; white-space: nowrap; left: calc(7px + (100% - 14px) * var(--p)); transform: translateX(calc(-1 * var(--p) * 100%)); }

/* ---------- Section headings ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.sec-head h2 { margin: 0; font-size: var(--step-3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.sec-head a { font-size: var(--step--1); font-weight: 600; color: var(--blue-ink); text-underline-offset: 3px; }

/* ---------- Research (home) ---------- */
.research { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.research-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4rem); }
.lead { border-top: 3px solid var(--blue); padding-top: 1.25rem; }
.meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: var(--step--1); color: var(--slate); margin: 0 0 .75rem; }
.meta .kind { color: var(--blue-ink); font-weight: 600; }
.lead h3 { margin: 0 0 1rem; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; max-width: 20ch; }
.lead h3 a, .others h3 a, .pub-list h2 a { text-decoration: none; }
.lead h3 a:hover, .others h3 a:hover, .pub-list h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lead p.sum { margin: 0; color: var(--slate); max-width: 56ch; }

.others { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--graphite); }
.others li { padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.others .meta { margin-bottom: .35rem; }
.others h3 { margin: 0; font-size: var(--step-1); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }

/* ---------- Topics ---------- */
.topics { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); }
.topic-list li { border-right: 1px solid var(--rule); }
.topic-list li:last-child { border-right: 0; }
.topic-list a { display: flex; flex-direction: column; padding: 1.25rem 1.25rem 1.5rem; text-decoration: none; height: 100%; }
.topic-list li:first-child a { padding-left: 0; }
.topic-list a:hover { background: var(--sun-soft); }
.topic-list strong { display: block; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.015em; margin-bottom: .35rem; }
.topic-list span { display: block; font-size: var(--step--1); color: var(--slate); line-height: 1.4; }
.topic-list em { font-style: normal; display: block; margin-top: auto; padding-top: .9rem; font-size: var(--step--1); color: var(--blue-ink); font-weight: 600; }

/* ---------- Publications list and topic pages ---------- */
.page-head { padding-block: clamp(2rem, 6vw, 4rem) 2rem; }
.page-head h1 { margin: 0 0 .75rem; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; }
.page-head p { margin: 0; color: var(--slate); font-size: var(--step-1); max-width: 48ch; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.filters a { text-decoration: none; font-size: var(--step--1); font-weight: 500; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--slate); }
.filters a:hover { border-color: var(--graphite); color: var(--graphite); }
.filters a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.pub-list { list-style: none; margin: 0 0 clamp(3.5rem, 8vw, 6rem); padding: 0; border-top: 1px solid var(--graphite); }
.pub-list li { display: grid; grid-template-columns: 14rem 1fr; gap: .5rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.pub-list .meta { flex-direction: column; gap: .15rem; margin: 0; }
.pub-list h2 { margin: 0 0 .4rem; font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; max-width: 32ch; }
.pub-list p { margin: 0; color: var(--slate); max-width: 64ch; }
.empty { padding-block: 2rem 5rem; color: var(--slate); }
.empty a { color: var(--blue-ink); font-weight: 600; }

/* ---------- Article ---------- */
.article { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.article-head { max-width: 52rem; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.article-head h1 { margin: 0 0 1.25rem; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.article-lede { margin: 0; font-size: var(--step-1); line-height: 1.5; color: var(--slate); max-width: 46ch; }
.article-image { margin: 0 0 2.5rem; max-width: 52rem; }
.article-image img { border-radius: var(--radius-panel); width: 100%; }

.prose { max-width: 40rem; font-size: 1.125rem; line-height: 1.68; }
.prose > * + * { margin-top: 1.25em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure { margin-bottom: 0; }
.prose h2 { margin: 2.2em 0 0; font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.prose h3 { margin: 1.8em 0 0; font-size: var(--step-1); line-height: 1.3; font-weight: 600; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--blue-ink); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--blue); color: var(--graphite); font-size: var(--step-1); line-height: 1.5; }
.prose img { border-radius: 12px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.5em; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }

.filed { max-width: 40rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--slate); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filed a { text-decoration: none; font-weight: 500; color: var(--graphite); padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--rule); }
.filed a:hover { border-color: var(--graphite); }
.more { padding-bottom: clamp(3.5rem, 8vw, 6rem); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; font-size: var(--step--1); color: var(--slate); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: var(--graphite); margin-bottom: .75rem; }
.site-footer p { margin: 0; max-width: 36ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; align-content: start; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--graphite); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .research-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .topic-list { grid-template-columns: repeat(2, 1fr); }
  .topic-list li { border-right: 0; border-bottom: 1px solid var(--rule); }
  .topic-list li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .topic-list li:nth-child(odd) a { padding-left: 0; }
  .brief-box { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr 1.6fr; row-gap: .9rem; }
  .t-grid .next { grid-column: 1 / -1; }
  .t-labels .next-label { display: none; }
  .pub-list li { grid-template-columns: 1fr; }
  .pub-list .meta { flex-direction: row; gap: .25rem 1.25rem; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .t-labels { display: none; }
  .t-grid { grid-template-columns: 1fr; }
  .track { margin-top: 1.4rem; }
  .t-row .track .stage-inline { display: block; }
  .topic-list { grid-template-columns: 1fr; }
  .topic-list li:nth-child(odd) { border-right: 0; }
  .topic-list a { padding-left: 0; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .brief-form .row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Hero identity: round logo with the name under it ---------- */
.hero-id { display: inline-flex; flex-direction: column; align-items: center; gap: .6rem; margin-bottom: 2rem; }
.hero-logo {
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 6px var(--sun), 0 18px 40px -18px rgba(35,71,214,.55);
  position: relative;
}
.hero-logo::after {
  content: ""; position: absolute; inset: 12px;
  background: var(--blue);
  -webkit-mask: url("/Media/logo_techpolicylabeu.png") center / contain no-repeat;
          mask: url("/Media/logo_techpolicylabeu.png") center / contain no-repeat;
}
.hero-name { font-weight: 700; font-size: var(--step-0); letter-spacing: -0.01em; color: var(--blue); }

/* ---------- About ---------- */
.about { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4rem); margin-bottom: 2.5rem; }
.about h2 { margin: 0 0 1rem; font-size: var(--step-3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.about h3 { margin: 0 0 1rem; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.015em; }
.about-grid p { margin: 0 0 1rem; max-width: 58ch; color: var(--slate); }
.about-grid p:first-of-type { color: var(--graphite); font-size: var(--step-1); line-height: 1.5; }
.do-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.do-list li { padding: .8rem 0 .8rem 1.4rem; border-bottom: 1px solid var(--rule); position: relative; }
.do-list li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.principles {
  list-style: none; margin: 0; padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.5rem;
  background: var(--blue); color: #fff; border-radius: var(--radius-panel);
}
.principles strong { display: block; color: var(--sun); font-size: var(--step-1); font-weight: 700; margin-bottom: .4rem; }
.principles span { display: block; color: #E4EAFD; line-height: 1.5; }

/* ---------- Weekly newsletter ---------- */
.weekly { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.weekly-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end;
  background: var(--sun); color: var(--graphite);
  border-radius: var(--radius-panel);
  padding: clamp(1.75rem, 5vw, 3.5rem);
}
.weekly-day { margin: 0 0 .5rem; font-weight: 700; color: var(--blue-deep); }
.weekly-box h2 { margin: 0 0 .75rem; font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.weekly-box p { margin: 0; max-width: 44ch; }
.weekly-form label { display: block; font-size: var(--step--1); font-weight: 600; margin-bottom: .5rem; }
.weekly-form .row { display: flex; gap: .5rem; }
.weekly-form input[type="email"] {
  flex: 1; min-width: 0; min-height: 48px; padding: .6rem 1.1rem;
  border-radius: 999px; border: 1px solid var(--graphite); background: #fff; color: var(--graphite); font: inherit;
}
.weekly-form .btn { background: var(--blue); border-color: var(--blue); color: #fff; min-height: 48px; }
.weekly-form .btn:hover { background: var(--blue-deep); }
.weekly-form .note { margin-top: .6rem; font-size: var(--step--1); color: #4A4220; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-card { background: var(--blue); color: #fff; border-radius: var(--radius-panel); padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact-card h2, .contact-form h2 { margin: 0 0 .75rem; font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; }
.contact-email { display: block; color: var(--sun); font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; margin-bottom: 1.5rem; word-break: break-word; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-card .btn-solid { background: var(--sun); border-color: var(--sun); color: var(--graphite); }
.contact-card .btn-solid:hover { background: #FFD666; border-color: #FFD666; }
.contact-card .btn-line { border-color: #fff; color: #fff; }
.contact-card .btn-line:hover { background: rgba(255,255,255,.12); }
.contact-card :focus-visible { outline-color: var(--sun); }
.copy-status { margin: .75rem 0 0; min-height: 1.5em; font-size: var(--step--1); color: #E4EAFD; }
.contact-form { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-panel); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: .4rem; }
.contact-form .form-hint { margin: 0 0 1rem; color: var(--slate); font-size: var(--step--1); }
.contact-form label { font-size: var(--step--1); font-weight: 600; margin-top: .6rem; }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--graphite); background: #fff;
  border: 1px solid var(--rule); border-radius: 12px; padding: .7rem .9rem; width: 100%;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form .btn { justify-self: start; margin-top: .6rem; }
.form-error { margin: .25rem 0 0; min-height: 1.2em; color: #B42318; font-size: var(--step--1); }

.soon { color: var(--slate); }
.soon em { font-style: normal; font-size: .75rem; margin-left: .35rem; padding: .1rem .5rem; border-radius: 999px; background: var(--sun-soft); color: var(--graphite); }

@media (max-width: 960px) {
  .about-grid, .weekly-box, .contact-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .weekly-form .row { flex-direction: column; }
}
