/* MCSE 2027 — conference website
   System: USEK navy as the anchor, white as the ground,
   six track colors as the only accents. One type family. */

:root {
  --navy: #094076;
  --navy-deep: #062c52;
  --ink: #0d2136;
  --text: #26323f;
  --muted: #5d6a78;
  --line: #dfe4ea;
  --wash: #f4f6f9;
  --off: #c9d1da;            /* an unlit segment of the mark */

  /* The six tracks */
  --k1: #2563c9;  /* Engineering and Technology */
  --k2: #7a4cc2;  /* Business and Circular Economy */
  --k3: #d1365f;  /* Health and Well-being */
  --k4: #c27a00;  /* Agriculture and Food Systems */
  --k5: #1f8a4c;  /* Environment, Climate Change and Natural Resources */
  --k6: #0e8f98;  /* Social Sustainability, Education and Governance */

  /* What each segment of the mark is painted with (overridden per use) */
  --c1: var(--k1); --c2: var(--k2); --c3: var(--k3);
  --c4: var(--k4); --c5: var(--k5); --c6: var(--k6);

  --font: "Instrument Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6;
  color: var(--text); background: #fff; -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--k1); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }

.mark { display: block; }
.label {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}

/* Six-color rule: the system in one line */
.six { display: flex; height: 6px; }
.six i { flex: 1; }
.six i:nth-child(1) { background: var(--k1); } .six i:nth-child(2) { background: var(--k2); }
.six i:nth-child(3) { background: var(--k3); } .six i:nth-child(4) { background: var(--k4); }
.six i:nth-child(5) { background: var(--k5); } .six i:nth-child(6) { background: var(--k6); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand img { height: 46px; width: auto; display: block; }
.brand-divider { width: 1px; height: 34px; background: rgba(255,255,255,.35); }
.brand .mark { width: 30px; height: 30px; --c1:#fff; --c2:#fff; --c3:#fff; --c4:#fff; --c5:#fff; --c6:#fff; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; line-height: 1; color: #fff; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 9px 13px; color: #e6edf5; text-decoration: none; font-size: .95rem; font-weight: 500; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 6px; padding: 8px 14px; font: 600 .95rem var(--font); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-deep); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 24px 16px; gap: 0; }
  .nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
}
@media (max-width: 420px) { .brand .mark { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(44px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.6vw, 5.4rem); letter-spacing: -.04em; line-height: .98; max-width: 13ch; color: var(--navy); }
.hero .tagline { font-size: clamp(1.1rem, 1.9vw, 1.4rem); color: var(--muted); margin: 26px 0 0; max-width: 34ch; }
.hero .mark { width: clamp(220px, 30vw, 400px); height: auto; aspect-ratio: 1; }
.when { margin: clamp(34px, 5vw, 56px) 0 0; padding-top: 26px; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; gap: 8px 56px; align-items: baseline; }
.when .date { font-size: clamp(1.7rem, 3.8vw, 3rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.when .place { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--text); font-weight: 500; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.btn {
  display: inline-block; padding: 16px 28px; border-radius: 999px; font: 600 1.05rem var(--font);
  text-decoration: none; background: var(--navy); color: #fff; border: 0; cursor: pointer;
}
.btn:hover { background: var(--navy-deep); color: #fff; }
.text-link { font-weight: 600; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero .mark { order: -1; width: 112px; }
}

/* ---------- Sections ---------- */
section { padding: clamp(60px, 9vw, 112px) 0; }
section.wash { background: var(--wash); }
.section-head { max-width: 820px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: 1.2rem; color: var(--text); margin: 20px 0 0; max-width: 62ch; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); }
.about-grid .big { font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.35; color: var(--ink); font-weight: 500; letter-spacing: -.015em; margin: 0; }
.objectives { list-style: none; margin: 0; padding: 0; counter-reset: o; border-top: 1px solid var(--line); }
.objectives li { counter-increment: o; display: grid; grid-template-columns: 2.2em 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.objectives li::before { content: counter(o, decimal-leading-zero); font-weight: 700; color: var(--muted); font-size: .85rem; padding-top: .15em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Tracks ---------- */
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.track { --k: var(--navy); background: #fff; padding: 30px 28px 32px; position: relative; }
.track::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--k); }
.track-top { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 22px; }
.track-num { font-size: 3rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--k); font-variant-numeric: tabular-nums; }
.track .mark { width: 54px; height: 54px; --c1: var(--off); --c2: var(--off); --c3: var(--off); --c4: var(--off); --c5: var(--off); --c6: var(--off); }
.track h3 { font-size: 1.45rem; min-height: 2.4em; }
.track .scope { margin: 14px 0 20px; color: var(--text); font-size: 1rem; }
.track ul { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: .95rem; }
.track li { position: relative; padding: 3px 0 3px 18px; }
.track li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--k); }
.t1 { --k: var(--k1); } .t1 .mark { --c1: var(--k1); }
.t2 { --k: var(--k2); } .t2 .mark { --c2: var(--k2); }
.t3 { --k: var(--k3); } .t3 .mark { --c3: var(--k3); }
.t4 { --k: var(--k4); } .t4 .mark { --c4: var(--k4); }
.t5 { --k: var(--k5); } .t5 .mark { --c5: var(--k5); }
.t6 { --k: var(--k6); } .t6 .mark { --c6: var(--k6); }
@media (max-width: 1000px) { .tracks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tracks { grid-template-columns: 1fr; } .track h3 { min-height: 0; } }

/* ---------- Program ---------- */
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.day { border-top: 2px solid var(--ink); padding-top: 20px; }
.day .dow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.day .num { font-size: clamp(3.4rem, 7vw, 5.4rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--navy); margin: 6px 0 2px; }
.day .month { font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.day ul { list-style: none; margin: 0; padding: 0; }
.day li { padding: 14px 0; border-top: 1px solid var(--line); }
.day .slot { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.day .dots { display: flex; gap: 5px; margin-top: 9px; }
.day .dots i { width: 12px; height: 12px; border-radius: 50%; }
.day .dots i:nth-child(1) { background: var(--k1); } .day .dots i:nth-child(2) { background: var(--k2); }
.day .dots i:nth-child(3) { background: var(--k3); } .day .dots i:nth-child(4) { background: var(--k4); }
.day .dots i:nth-child(5) { background: var(--k5); } .day .dots i:nth-child(6) { background: var(--k6); }
.day li.gala strong { color: var(--ink); font-size: 1.1rem; }
@media (max-width: 760px) { .days { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--off); }
.timeline li { position: relative; padding: 40px 20px 0 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--off);
}
.timeline li.confirmed::before { background: var(--navy); border-color: var(--navy); }
.timeline .t-title { display: block; font-weight: 700; color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }
.timeline .t-date { display: block; margin-top: 6px; color: var(--muted); font-size: .98rem; }
.timeline li.confirmed .t-date { color: var(--navy); font-weight: 700; }
.wash .timeline li::before { background: var(--wash); }
.wash .timeline li.confirmed::before { background: var(--navy); }
.timeline-note { margin: 36px 0 0; color: var(--muted); font-size: 1rem; max-width: 62ch; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 10px; right: auto; top: 0; bottom: 48px; width: 2px; height: auto; }
  .timeline li { padding: 0 0 30px 44px; }
  .timeline li:last-child { padding-bottom: 0; }
}

/* ---------- Get involved ---------- */
.involve { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.involve > div { background: #fff; padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.involve h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 14px; }
.involve p { flex: 1; }
.involve .btn { margin-top: 12px; }
@media (max-width: 760px) { .involve { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-email { font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; display: inline-block; margin: 26px 0 22px; word-break: break-word; }
.contact-block { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.contact-block .label { margin-bottom: 8px; }
form.contact { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--ink);
  border: 1px solid #aeb8c4; border-radius: 6px; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d5e0ec; padding: 48px 0 30px; font-size: .98rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.site-footer img { height: 84px; width: auto; display: block; margin-bottom: 14px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }
.footer-right { text-align: right; }
.footer-base { border-top: 1px solid rgba(255,255,255,.2); margin-top: 30px; padding-top: 18px; font-size: .88rem; color: #b4c4d6; }
@media (max-width: 640px) { .footer-right { text-align: left; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .hero-actions, form.contact { display: none; } }
