/* Shared chalkboard base: fonts, tokens, board, engineering decor, reveal colours.
   Prepended to both site.css (launch pages) and styles.css (beta) at build time. */
/* Public Sans (SIL OFL 1.1, static/fonts/Public-Sans-OFL.txt): a publicly funded, neutral, accessible face. */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/public-sans-latin-wght-normal.woff2')
    format('woff2-variations');
}
:root {
  color-scheme: dark;
  /* Chalkboard: dark charcoal ground, chalk-white ink, amber accent for optimistic energy. */
  --paper: #101214;
  --board: #121516;
  --ink: #ece7d8;
  --muted: #aeab9f;
  --line: #3a3e40;
  --accent: #ffd166;
  --decor: #cfd3d6;
  font:
    17px/1.75 'Public Sans',
    system-ui,
    sans-serif;
  /* The board lives on the root element so the fixed decor layer (z-index: -1) paints above it. */
  background:
    radial-gradient(
      ellipse 70% 50% at 18% 8%,
      rgba(236, 231, 216, 0.045),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 45% at 85% 95%,
      rgba(255, 209, 102, 0.035),
      transparent 70%
    ),
    url('/chalk.svg') repeat,
    var(--board);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
}
/* ---- engineering decor: fixed, faint, behind everything; animated only when motion is allowed ---- */
.decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  color: var(--decor);
}
.decor svg {
  position: absolute;
  display: block;
}
.decor-circuit {
  top: -24px;
  right: -70px;
  width: min(48vw, 600px);
  opacity: 0.11;
}
.decor-gears {
  left: -80px;
  bottom: -60px;
  width: min(40vw, 440px);
  opacity: 0.11;
}
.decor-flow {
  right: 5vw;
  bottom: 9vh;
  width: min(30vw, 380px);
  opacity: 0.09;
}
@keyframes decor-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes decor-spin-back {
  to {
    transform: rotate(-360deg);
  }
}
@keyframes decor-pulse {
  from {
    stroke-dashoffset: 520;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  to {
    stroke-dashoffset: -40;
    opacity: 0;
  }
}
@keyframes decor-dash {
  to {
    stroke-dashoffset: -28;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .decor .gear-a {
    animation: decor-spin 140s linear infinite;
  }
  .decor .gear-b {
    animation: decor-spin-back 86s linear infinite;
  }
  .decor .gear-c {
    animation: decor-spin 62s linear infinite;
  }
  .decor .pulse {
    stroke-dasharray: 36 520;
    animation: decor-pulse 7s linear infinite;
  }
  .decor .flow-line {
    animation: decor-dash 2.4s linear infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .decor .pulse {
    display: none;
  }
}

.scroll-reveal-active .reveal-word {
  color: #8f8d84;
}
.scroll-reveal-active .reveal-word.is-read {
  color: var(--ink);
}
.scroll-reveal-active .reveal-word.is-current {
  color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal-active .reveal-word {
    color: var(--ink);
  }
}

@media (max-width: 720px) {
  .decor-flow {
    display: none;
  }
  .decor-circuit {
    width: 70vw;
    right: -30vw;
  }
  .decor-gears {
    width: 60vw;
    left: -30vw;
  }
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
.shell {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}
.site-header {
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.07em;
  text-decoration: none;
}
.brand span {
  color: var(--accent);
}
.header-note,
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}
main {
  padding: 72px 0 64px;
}
.eyebrow {
  margin: 0 0 24px;
}
h1 {
  font-size: clamp(52px, 8vw, 104px);
  line-height: 1.02;
  max-width: 10ch;
  letter-spacing: -0.065em;
  margin: 0 0 42px;
  font-weight: 800;
  text-wrap: balance;
}
.public-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.public-copy p {
  margin: 0 0 26px;
}
.public-copy p {
  font-size: 17px;
  line-height: 1.75;
}
.engineering-background .public-intro::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -40px;
  bottom: -32px;
  left: -130px;
  width: calc((100% - 60px) * 1.1 / 2.1 + 130px);
  background: url('/engineering-drawing.svg') top center / 100% auto no-repeat;
  opacity: 0.22;
}
.public-left,
.public-copy {
  min-width: 0;
}
.public-left {
  overflow: hidden;
  container-type: inline-size;
}
.public-left h1 {
  font-size: 12cqw;
  max-width: 100%;
  white-space: nowrap;
  letter-spacing: -0.055em;
  margin-bottom: 0;
}
/* Second headline line: amber, same size and weight as line 1 (one character shorter, so it fits wherever line 1 fits), inside the left column above the campus image. */
.public-left h1 .headline-second {
  display: block;
  color: var(--accent);
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.02;
  margin-top: 0.04em;
}
.home-campus {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 32px;
  border: 1px solid var(--line);
  filter: sepia(0.8) saturate(0.65);
}
.contact {
  margin-top: 40px;
  padding: 28px;
  background: var(--accent);
  color: var(--paper);
}
.contact h2 {
  font-size: 14px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact a {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 12px;
  color: var(--muted);
}
footer p {
  margin: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--accent);
  color: var(--paper);
  padding: 8px 16px;
  z-index: 2;
}
.skip-link:focus {
  top: 12px;
}
.private-notice {
  background: var(--accent);
  color: var(--paper);
  font-size: 12px;
  text-align: center;
  padding: 9px 16px;
}
.meeting h1 {
  max-width: 16ch;
  font-size: clamp(40px, 6vw, 72px);
}
.meeting main {
  max-width: 900px;
  margin: auto;
}
.meeting h2 {
  font-size: 30px;
  line-height: 1.3;
  margin: 48px 0 20px;
  letter-spacing: -0.025em;
}
.agenda ol {
  padding-left: 24px;
}
.agenda li {
  padding: 10px 0 10px 8px;
}
.meeting-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: #202527;
}
.meeting-details .eyebrow {
  display: block;
  color: var(--muted);
  margin: 0 0 6px;
}
.meeting-details strong {
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.02em;
}
.join-link {
  display: inline-block;
  padding: 14px 22px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.join-link:hover,
.join-link:focus-visible {
  text-decoration: underline;
}
.agenda em {
  font-style: normal;
  color: var(--muted);
  margin-left: 8px;
}
.agenda ul {
  margin: 8px 0 0;
  padding-left: 22px;
}
.agenda ul li {
  padding: 4px 0;
}
.resources-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 16px;
}
.resources-label-next {
  margin-top: 32px;
}
.doc-card {
  display: block;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: #1b2424;
  padding: 20px 22px;
  text-decoration: none;
}
.doc-card small {
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.doc-card h3 {
  font-size: 18px;
  margin: 8px 0 6px;
  line-height: 1.4;
}
.doc-card span {
  color: var(--muted);
  font-size: 15px;
}
.doc-card:hover,
.doc-card:focus-visible {
  background: #202628;
  border-color: var(--accent);
}
/* ---- What is KTU? one-pager page ---- */
.onepager-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--line);
  background: #101214;
  display: flex;
  align-items: flex-end;
}
.onepager-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(0.7) contrast(1.3) brightness(0.55) sepia(0.2);
}
.onepager-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(16, 18, 20, 0.15) 0%,
    rgba(16, 18, 20, 0) 35%,
    rgba(16, 18, 20, 0.75) 72%,
    #101214 100%
  );
}
.onepager-hero-text {
  position: relative;
  z-index: 1;
  padding: 120px 28px 24px;
}
.onepager-hero-text h1 {
  max-width: none;
  font-size: clamp(44px, 8vw, 88px);
  margin: 0 0 12px;
  text-shadow: 0 2px 24px rgba(16, 18, 20, 0.8);
}
.onepager-hero-text h1 em {
  font-style: normal;
  color: var(--accent);
}
.onepager-hero-text p {
  margin: 0;
  font-weight: 700;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(16, 18, 20, 0.9);
}
.onepager-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.onepager-stats .stat {
  border: 1px solid var(--line);
  background: #181b1e;
  padding: 20px 22px;
}
.onepager-stats .num {
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.onepager-stats .num small {
  font-size: 0.5em;
  letter-spacing: 0;
  margin-left: 4px;
}
.onepager-stats .what {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.5;
}
.onepager-stats .what span {
  color: var(--muted);
}
.onepager-quote {
  margin: 20px 0 0;
  padding: 22px 26px 20px;
  background: var(--accent);
  color: var(--paper);
}
.onepager-quote p {
  margin: 0;
  font-weight: 800;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.onepager-quote footer {
  display: block;
  border: 0;
  padding: 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}
.onepager-ask ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.onepager-ask li {
  position: relative;
  padding-left: 26px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}
.onepager-ask li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent);
}
.onepager-share .join-link {
  margin-bottom: 20px;
}
.onepager-body p {
  margin: 0 0 16px;
}
/* ---- Act page ---- */
.act h1 {
  max-width: 16ch;
  font-size: clamp(40px, 6.5vw, 84px);
}
.act-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.act-steps li {
  counter-increment: step;
  position: relative;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: #181b1e;
  padding: 22px 26px 24px 92px;
}
.act-steps li::before {
  content: counter(step);
  position: absolute;
  left: 28px;
  top: 18px;
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  color: var(--accent);
}
.act-steps h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
}
.act-steps p {
  margin: 0;
  color: var(--muted);
}
.act-steps .act-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.act-demands {
  margin-top: 44px;
}
.act-contact {
  margin-top: 40px;
}
/* ---- Save CET. From what? one-pager page ---- */
.issue-hero {
  min-height: 400px;
}
.issue-hero img {
  filter: none;
  object-position: 50% 45%;
}
.issue-hero .onepager-hero-text {
  padding-top: 160px;
}
.issue-hero .onepager-hero-text h1 {
  font-size: clamp(40px, 7.4vw, 80px);
  margin: 0;
}
.issue-lead {
  margin: 28px 0 0;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.6;
}
.issue-kinds .kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.kind {
  border: 1px solid var(--line);
  background: #181b1e;
  padding: 18px 20px 20px;
}
.kind small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kind-proposed {
  border-color: #e5322d;
}
.kind-proposed small {
  color: #ff6b66;
}
.kind-today small {
  color: var(--accent);
}
.kind h3 {
  margin: 6px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}
.kind p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.issue-timeline dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 22px;
}
.issue-timeline dt {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.issue-timeline dd {
  margin: 0;
}
.issue-status {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.issue-status b {
  color: var(--ink);
}
.issue-demands {
  margin-top: 28px;
  border: 2px solid var(--accent);
  background: #181b1e;
  padding: 22px 26px 24px;
}
.issue-demands h2 {
  color: var(--accent);
}
.issue-demands ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: demand;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.issue-demands li {
  counter-increment: demand;
  position: relative;
  padding-left: 40px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: var(--accent);
}
.issue-demands li::before {
  content: counter(demand);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.25;
}
.resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.resource-card {
  display: block;
  border: 1px solid var(--line);
  text-decoration: none;
  background: #1b2424;
}
.resource-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.resource-card .resource-copy {
  padding: 20px;
}
.resource-card h3 {
  font-size: 17px;
  margin: 8px 0;
  line-height: 1.7;
}
.resource-card small {
  font-weight: 700;
  color: var(--muted);
}
.resource-card:hover {
  background: #202628;
  border-color: var(--accent);
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq p {
  margin: 16px 0 0;
}
@media (prefers-reduced-motion: no-preference) {
  .public-intro {
    animation: arrive 0.7s ease-out both;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (max-width: 720px) {
  .shell {
    width: calc(100% - 40px);
  }
  main {
    padding-top: 42px;
  }
  .engineering-background .public-intro::before {
    display: none;
  }
  .public-intro,
  .resources {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .onepager-stats {
    grid-template-columns: 1fr;
  }
  .issue-kinds .kinds {
    grid-template-columns: 1fr;
  }
  .act-steps li {
    padding: 18px 18px 20px 62px;
  }
  .act-steps li::before {
    left: 18px;
    top: 16px;
    font-size: 28px;
  }
  .issue-timeline dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .issue-timeline dd {
    margin-bottom: 10px;
  }
  .issue-hero .onepager-hero-text {
    padding-top: 120px;
  }
  .onepager-hero-text {
    padding: 90px 20px 20px;
  }
  h1 {
    margin-bottom: 24px;
  }
  .header-note {
    font-size: 9px;
    max-width: 30ch;
    text-align: right;
  }
  footer {
    flex-direction: column;
    gap: 12px;
  }
}
@media print {
  .private-notice {
    color: #000;
    background: #fff;
  }
  .public-intro,
  .resources {
    display: block;
  }
}

.private-notice form {
  display: inline;
  margin-left: 20px;
}
.private-notice button {
  font: inherit;
  background: transparent;
  color: inherit;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}
