/* AI4HU landing: warm, characterful, human-first.
   On top of MonsterUI defaults. Mobile-first. No em dashes. */

@import url('https://fonts.bunny.net/css?family=fraunces:400,700,800|inter:400,500,600,700|caveat:400,700&display=swap');

:root {
  --cream:       #faf6ed;
  --cream-soft:  #f3ecd9;
  --ink:         #2a1f1a;
  --ink-muted:   #7a6d5e;
  --sun:         #e8753b;
  --sun-soft:    #fde2c6;
  --sky:         #3d6f95;
  --sky-soft:    #d6e3ee;
  --leaf:        #7a9863;
  --leaf-soft:   #dbe8cf;
  --card:        #ffffff;
  --border:      #e6dbc4;
  --radius:      18px;
  --maxw:        1080px;
  --shadow-sm:   0 1px 2px rgba(42,31,26,.06);
  --shadow-md:   0 4px 16px rgba(42,31,26,.08), 0 1px 2px rgba(42,31,26,.05);
  --shadow-lg:   0 14px 36px rgba(42,31,26,.12), 0 2px 6px rgba(42,31,26,.06);
  /* Role tokens: components use these; themes swap ONLY these (palette above stays fixed) */
  --bg:          var(--cream);
  --bg-soft:     var(--cream-soft);
  --fg:          var(--ink);
  --fg-muted:    var(--ink-muted);
  --surface:     var(--card);
  --line:        var(--border);
  --link:        var(--sky);
  --link-hover:  var(--sun);
  --accent:      var(--sun);
  --accent-hover: #d6622e;
  --accent-band: var(--sun-soft);
  --focus:       var(--sky);
  --error:       #b3401e;
  --field-line:  var(--line);  /* form control borders; the minimal palette overrides with an AA value */
}

/* Dark role values, applied twice: system preference (unless forced light), and forced dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #211a15;
    --bg-soft:     #2b231c;
    --fg:          #f0e9dc;
    --fg-muted:    #b3a692;
    --surface:     #2d251e;
    --line:        #4a3e32;
    --link:        #82b4d8;
    --accent-band: rgba(232,117,59,.32);
    --error:       #ff9a70;
  }
}
:root[data-theme="dark"] {
  --bg:          #211a15;
  --bg-soft:     #2b231c;
  --fg:          #f0e9dc;
  --fg-muted:    #b3a692;
  --surface:     #2d251e;
  --line:        #4a3e32;
  --link:        #82b4d8;
  --accent-band: rgba(232,117,59,.32);
  --error:       #ff9a70;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 88% 8%,  rgba(232,117,59,.20), transparent 38%),
    radial-gradient(circle at 6%  92%, rgba(61,111,149,.16), transparent 40%),
    radial-gradient(circle at 50% 55%, rgba(122,152,99,.07), transparent 70%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, .wordmark, .footer-brand {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  letter-spacing: -.022em;
  color: var(--fg);
}

a { color: var(--link); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--link-hover); }

/* Minimal (contact) page: neutral gray + logo-teal theme over the warm defaults */
.site-minimal {
  --bg:           #f4f6f7;
  --bg-soft:      #e9edef;
  --fg:           #24292d;
  --fg-muted:     #64707a;
  --surface:      #ffffff;
  --line:         #d5dde1;
  --link:         #0a7f94;
  --link-hover:   #0a9fb8;
  --accent:       #0a7f94;   /* submit fill: the logo teal (--focus) fails AA behind white text */
  --accent-hover: #086c7e;
  --accent-band:  #c6e8ef;
  --focus:        #0a9fb8;   /* the logo teal, kept for focus rings and checkboxes */
  --field-line:   #76909d;   /* 3.1:1 against the field fill, WCAG 1.4.11 */
  --header-teal:  #d8edf2;
  background: var(--bg);
  background-image: radial-gradient(circle at 88% 0%, rgba(10,159,184,.10), transparent 42%);
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-minimal {
    --bg:           #15191c;
    --bg-soft:      #1d2327;
    --fg:           #e7ecee;
    --fg-muted:     #93a0a9;
    --surface:      #1e262b;
    --line:         #333f47;
    --link:         #56c5d8;
    --link-hover:   #7dd5e4;
    --accent:       #0d7f92;
    --accent-hover: #0b7285;
    --accent-band:  rgba(15,169,195,.3);
    --focus:        #35bdd4;
    --field-line:   #5e7483;
    --header-teal:  #16333b;
  }
}
:root[data-theme="dark"] .site-minimal {
  --bg:           #15191c;
  --bg-soft:      #1d2327;
  --fg:           #e7ecee;
  --fg-muted:     #93a0a9;
  --surface:      #1e262b;
  --line:         #333f47;
  --link:         #56c5d8;
  --link-hover:   #7dd5e4;
  --accent:       #0d7f92;
  --accent-hover: #0b7285;
  --accent-band:  rgba(15,169,195,.3);
  --focus:        #35bdd4;
  --field-line:   #5e7483;
  --header-teal:  #16333b;
}

/* Minimal header: short, discrete, full-bleed gray fading to light teal on the right */
.site-minimal .site-header {
  max-width: none;               /* cover 100% of the top, not just the content column */
  margin: 0;
  padding: .2rem .9rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--bg-soft) 35%, var(--header-teal));
}
.site-minimal .logo {
  height: 30px;
  width: 30px;
  padding: 3px;
  border-radius: 7px;
  border-width: 1.5px;
  background: #ffffff;           /* black-ink logo stays visible in dark mode */
}
.site-minimal .header-tools { gap: .4rem; align-items: center; }
/* Both controls: identical fixed 28px height, no intrinsic padding, flex-centered content */
.site-minimal .theme-btn, .site-minimal .lang-toggle {
  height: 28px;
  margin: 0;
  border: 1.5px solid var(--line);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.site-minimal .theme-btn { width: 28px; font-size: .85rem; padding: 0; justify-content: center; }
.site-minimal .lang-toggle { padding: 0 2px; gap: 0; }
.site-minimal .lang-toggle a {
  padding: 0 5px;
  font-size: .9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 25px;   /* fills the 28px toggle: keeps each flag a 24px+ tap target */
}
.site-minimal .lang-toggle a.active { background: var(--accent-band); }
.site-minimal .content-section { padding: 2.2rem 1.75rem; }

/* One sheet: heading left, robots right, form below; centered and a bit wider */
.site-minimal .newsletter-form, .site-minimal .nl-thanks { max-width: 780px; margin: 0 auto; }
.site-minimal .newsletter-form { position: relative; --bots-w: 150px; }
.form-head { margin-bottom: .4rem; }
.form-heading { margin: 0; font-size: 1.65rem; }
/* Out of flow in the top-right corner, so they push nothing down. They must not cover anything
   either: the name field stops short of them (see #nl-name below). */
.form-bots {
  position: absolute;
  top: 1.5rem;
  right: 1.9rem;
  width: var(--bots-w);
  pointer-events: none;
}
.site-minimal #nl-name { max-width: calc(100% - var(--bots-w) - 1rem); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-bots { filter: invert(1); }  /* black-ink bots stay visible on the dark card */
}
:root[data-theme="dark"] .form-bots { filter: invert(1); }
:root[data-theme="light"] .form-bots { filter: none; }

/* Header */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px dashed var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--fg);
  font-weight: 700;
}
.brand:hover { color: var(--fg); }
.logo {
  height: 48px;
  width: 48px;
  display: block;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.brand:hover .logo { transform: rotate(-6deg) scale(1.04); }
.wordmark { font-size: 1.35rem; }

.nav-anchors { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.nav-anchors a {
  color: var(--fg);
  font-weight: 500;
  position: relative;
  padding: 0 2px 2px;
  z-index: 0;
}
.nav-anchors a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 9px;
  background: var(--accent-band);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.nav-anchors a:hover { color: var(--fg); }
.nav-anchors a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 3px 6px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
}
.lang-toggle a {
  color: var(--fg-muted);
  padding: 3px 10px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.lang-toggle a:hover { color: var(--fg); }
.lang-toggle a.active {
  background: var(--fg);
  color: var(--bg);
}
.lang-toggle span { color: var(--line); }

.header-tools { display: inline-flex; align-items: center; gap: .5rem; }
.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--fg);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.theme-btn:hover { background: var(--bg-soft); transform: translateY(-1px); }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .15s;
}
.social-btn:hover { background: var(--bg-soft); color: var(--fg); transform: translateY(-1px); }
.social-row {
  display: flex;
  gap: .6rem;
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 2px dashed var(--line);
}

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5.5rem 1.75rem 3rem;
  text-align: center;
  position: relative;
}
.hero::before {
  /* tiny sun decoration up-right */
  content: '';
  position: absolute;
  top: 1.2rem;
  right: 8%;
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 50% 50%, var(--sun) 30%, transparent 33%),
              conic-gradient(from 0deg,
                transparent 0 14deg, var(--sun) 14deg 22deg,
                transparent 22deg 59deg, var(--sun) 59deg 67deg,
                transparent 67deg 104deg, var(--sun) 104deg 112deg,
                transparent 112deg 149deg, var(--sun) 149deg 157deg,
                transparent 157deg 194deg, var(--sun) 194deg 202deg,
                transparent 202deg 239deg, var(--sun) 239deg 247deg,
                transparent 247deg 284deg, var(--sun) 284deg 292deg,
                transparent 292deg 329deg, var(--sun) 329deg 337deg,
                transparent 337deg 360deg);
  opacity: .85;
  pointer-events: none;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tagline {
  font-size: clamp(2.2rem, 6.2vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -.035em;
  position: relative;
  display: inline-block;
  max-width: 16ch;
}
.tagline::after {
  content: '';
  display: block;
  width: 78%;
  height: 16px;
  margin: 1.2rem auto 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'><path d='M3 9 Q 32 2, 62 8 T 124 8 T 188 7 T 237 8' stroke='%23e8753b' stroke-width='4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Content sections */
.content-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 1.75rem;
  scroll-margin-top: 1rem;
}
.content-inner h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin: 0 0 1.4rem;
  display: inline-block;
  position: relative;
  z-index: 0;
}
.content-inner h2::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: .35rem;
  height: 14px;
  background: var(--accent-band);
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-.6deg);
}
.content-inner h3 {
  font-size: 1.4rem;
  margin: 0 0 .6rem;
  letter-spacing: -.012em;
}
.content-inner p { margin: .8rem 0; }
.content-inner a {
  font-weight: 600;
  border-bottom: 2px dotted currentColor;
  padding-bottom: 1px;
}
.content-inner a:hover { border-bottom-style: solid; }

/* Events Gantt chart -------------------------------------------------- */
.events-intro {
  margin: 0 0 1.4rem;
  color: var(--ink-muted);
  max-width: 60ch;
}

/* Controls bar */
.gantt-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: .9rem;
}
.gantt-btn, .gantt-btn-zoom {
  display: inline-block;
  padding: .35rem .85rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background .18s, color .18s, transform .15s;
}
.gantt-btn:hover, .gantt-btn-zoom:hover {
  background: var(--cream-soft);
  color: var(--ink);
  transform: translateY(-1px);
}
.gantt-btn-recenter {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.gantt-btn-recenter:hover { background: #463328; color: var(--cream); }
.gantt-zoom {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}
.gantt-zoom .gantt-btn-zoom {
  border: none;
  padding: .25rem .7rem;
  font-size: 1.05rem;
}
.gantt-zoom-label {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-muted);
  padding: 0 .35rem;
  white-space: nowrap;
}

/* Scroll wrapper for mobile */
.gantt-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.gantt-scroll::-webkit-scrollbar { height: 8px; }
.gantt-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Chart grid */
.gantt {
  --label-width: 150px;
  --row-height: 28px;
  display: grid;
  grid-template-columns: var(--label-width) 1fr;
  min-width: 720px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: visible;
  position: relative;
}

/* Header: must use display:contents so corner + month-row become grid items of .gantt */
.gantt-header { display: contents; }
.gantt-corner {
  grid-column: 1; grid-row: 1;
  background: var(--cream-soft);
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius) 0 0 0;
}
.gantt-month-row {
  grid-column: 2; grid-row: 1;
  position: relative;
  height: 40px;
  background: var(--cream-soft);
  border-bottom: 2px solid var(--border);
  border-radius: 0 var(--radius) 0 0;
}
.gantt-month {
  position: absolute;
  top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-muted);
  pointer-events: none;
}

/* Body: lanes ----------------------------------------------------- */
.gantt-body { display: contents; }

/* Overlay: dividers + today line, spans all lanes vertically */
.gantt-overlay {
  grid-column: 2;
  grid-row: 2 / -1;
  position: relative;
  pointer-events: none;
  z-index: 0;
}
.gantt-divider {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background-image: linear-gradient(to bottom, var(--border) 50%, transparent 0);
  background-size: 1px 6px;
  background-repeat: repeat-y;
}
.gantt-today-line {
  position: absolute;
  top: -8px; bottom: -8px;
  width: 2px;
  background: var(--sun);
  border-radius: 1px;
  opacity: .85;
  box-shadow: 0 0 8px rgba(232,117,59,.4);
}
.gantt-today-line::before {
  content: 'today';
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sun);
  background: var(--cream-soft);
  padding: 0 6px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Each lane */
.gantt-lane { display: contents; }

.gantt-lane-label {
  grid-column: 1;
  padding: .6rem .85rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  background: var(--card);
  border-right: 2px solid var(--border);
  border-bottom: 1px dashed var(--border);
  border-left: 5px solid var(--lane-color, var(--ink));
  display: flex;
  align-items: center;
  min-height: calc(var(--n-sub, 1) * var(--row-height) + 16px);
}
.gantt-lane:last-child .gantt-lane-label { border-bottom: none; border-radius: 0 0 0 var(--radius); }

.gantt-lane-track {
  grid-column: 2;
  position: relative;
  height: calc(var(--n-sub, 1) * var(--row-height) + 16px);
  background: linear-gradient(to right, transparent, transparent);
  border-bottom: 1px dashed var(--border);
  z-index: 1;
}
.gantt-lane:last-child .gantt-lane-track { border-bottom: none; border-radius: 0 0 var(--radius) 0; }

/* Empty lane: faint placeholder */
.gantt-lane.is-empty .gantt-lane-track::after {
  content: '';
  position: absolute;
  inset: 50% 12px auto;
  height: 2px;
  background-image: linear-gradient(to right, var(--border) 40%, transparent 0);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  transform: translateY(-1px);
  opacity: .6;
}

/* Bars: always show title at-a-glance, with min-width so even punctual events read clearly */
.gantt-bar {
  position: absolute;
  top: calc(var(--sub, 0) * var(--row-height) + 8px);
  min-width: 110px;             /* readable label without hover */
  height: calc(var(--row-height) - 8px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 .8rem;
  font-size: .82rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  box-shadow: var(--shadow-sm);
  cursor: help;
  overflow: visible;            /* let title overflow narrow bars */
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
  z-index: 2;
}
.gantt-bar:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  z-index: 50;
}
.gantt-bar-title { overflow: hidden; text-overflow: ellipsis; }
.gantt-bar.status-past     { background: linear-gradient(180deg, #c2b39d, #a99880); }
.gantt-bar.status-active   { background: linear-gradient(180deg, #94b27d, var(--leaf)); }
.gantt-bar.status-upcoming { background: linear-gradient(180deg, #5a8aae, var(--sky)); }

/* Point events: pill anchored AT the date with a small left tab indicating the precise day */
.gantt-bar.is-point {
  border-left: 4px solid rgba(255,255,255,.9);
  padding-left: .55rem;
  box-shadow: -1px 1px 0 rgba(0,0,0,.12), var(--shadow-sm);
}
.gantt-bar.is-point::before {
  /* small notch dropping from the left edge to the lane base, marking the exact date */
  content: '';
  position: absolute;
  left: -2px;
  top: 100%;
  width: 4px;
  height: 6px;
  background: rgba(0,0,0,.3);
  border-radius: 0 0 2px 2px;
}

/* Tooltip on hover */
.gantt-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  max-width: 320px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  padding: .9rem 1rem;
  font-size: .88rem;
  font-weight: 400;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 100;
  white-space: normal;
  line-height: 1.45;
}
.gantt-tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 18px;
  border: 7px solid transparent;
  border-top-color: var(--ink);
}
.gantt-bar:hover .gantt-tip,
.gantt-bar:focus-within .gantt-tip { display: block; }

.gantt-tip-title { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1rem; margin-bottom: .25rem; }
.gantt-tip-date  { font-family: 'Caveat', cursive; font-weight: 700; color: var(--sun); font-size: 1.05rem; margin-bottom: .4rem; }
.gantt-tip-desc  { color: var(--cream); opacity: .92; font-size: .85rem; margin-bottom: .5rem; }
.gantt-tip-pdf {
  display: inline-block;
  background: var(--sun);
  color: white;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .8rem;
  text-decoration: none;
  border-bottom: none;
}
.gantt-tip-pdf:hover { background: #d6622e; color: white; border-bottom: none; }

/* Project + event cards */
.project-card, .event-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.7rem 1.9rem;
  margin: 1.4rem 0;
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s ease;
}
.project-card:hover, .event-card:hover {
  transform: translateY(-3px) rotate(-.35deg);
  box-shadow: var(--shadow-lg);
}
.project-card::before, .event-card::before {
  /* corner color stripe by status */
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 90px;
  height: 6px;
  background: var(--sun);
  border-radius: 0 0 6px 0;
}
.project-card[data-status="active"]::before,
.event-card[data-status="active"]::before     { background: var(--leaf); }
.event-card[data-status="past"]::before        { background: #b8a991; }
.event-card[data-status="upcoming"]::before    { background: var(--sky); }

.project-card h3, .event-card h3 {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

/* Grouped project grid */
.projects-intro, .project-group-blurb {
  margin: 0 0 1.2rem;
  color: var(--fg-muted);
  max-width: 62ch;
}
.project-group { margin: 2.2rem 0 0; }
.project-group-label {
  font-size: 1.45rem;
  margin: 0 0 .3rem;
}
.project-group-blurb { margin-bottom: .9rem; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
.project-grid .project-card { margin: 0; padding: 1.35rem 1.5rem; }
.project-card h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  letter-spacing: -.022em;
  color: var(--fg);
  font-size: 1.15rem;
  margin: 0 0 .45rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}
.project-desc { margin: 0; font-size: .93rem; color: var(--fg-muted); }
.project-media img { max-width: 100%; border-radius: 10px; display: block; margin-bottom: .8rem; }

/* Card corner stripe by project status (default: --sun, set in ::before above) */
.project-card[data-status="live"]::before     { background: var(--leaf); }
.project-card[data-status="early"]::before    { background: var(--sun); }
.project-card[data-status="spike"]::before    { background: var(--sky); }
.project-card[data-status="parked"]::before,
.project-card[data-status="archived"]::before { background: #b8a991; }

/* Sticker-style status badges */
.badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--fg);
  border: 1.5px solid var(--line);
  vertical-align: middle;
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow-sm);
}
.badge-active   { background: var(--leaf-soft); color: #2f4d28; border-color: #b6cdaa; }
.badge-coming   { background: var(--sun-soft);  color: #6b3411; border-color: #f1b483; }
.badge-upcoming { background: var(--sky-soft);  color: #1a3b56; border-color: #a8c2d6; }
.badge-past     { background: #ebe6db;          color: #5a4f44; border-color: #d2c8b6; }

/* Data-driven status badges (status-{value}); unknown values keep the default .badge look */
.badge.status-live     { background: var(--leaf-soft); color: #2f4d28; border-color: #b6cdaa; }
.badge.status-active   { background: var(--leaf-soft); color: #2f4d28; border-color: #b6cdaa; }
.badge.status-early    { background: var(--sun-soft);  color: #6b3411; border-color: #f1b483; }
.badge.status-spike    { background: var(--sky-soft);  color: #1a3b56; border-color: #a8c2d6; }
.badge.status-parked   { background: #ebe6db;          color: #5a4f44; border-color: #d2c8b6; }
.badge.status-archived { background: #ebe6db;          color: #5a4f44; border-color: #d2c8b6; }

/* Newsletter */
.newsletter-intro { margin: 0 0 1.4rem; color: var(--fg-muted); max-width: 62ch; }
.newsletter-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  gap: 2rem;
  align-items: start;
}
.newsletter-bots {
  width: 100%;
  max-width: 300px;
  margin-top: 1rem;
  background: var(--cream);  /* fixed light chip: the bots are black ink, keep them visible in dark mode */
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.newsletter-form {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.7rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.newsletter-form label { font-weight: 600; font-size: .92rem; }
.newsletter-form input[type="text"], .newsletter-form input[type="email"],
.newsletter-form input:not([type]), .newsletter-form select {
  width: 100%;
  padding: .55rem .8rem;
  border: 2px solid var(--field-line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  margin-bottom: .5rem;
}
.newsletter-form input:focus, .newsletter-form select:focus {
  outline: none;
  border-color: var(--focus);
}
.newsletter-form input[type="checkbox"] { accent-color: var(--focus); }
.newsletter-form fieldset.interests {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: .8rem 1rem 1rem;
  margin: .4rem 0 .6rem;
}
.newsletter-form legend { font-weight: 700; padding: 0 .4rem; }
.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .25rem .8rem;
  margin-bottom: .5rem;
}
.interest-opt {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 500 !important;
  cursor: pointer;
}
.interest-other { display: flex; align-items: center; gap: .6rem; }
/* Detailed (numbered pilot) list: one column, description text, checkbox aligned to first line */
.interest-grid-detailed { grid-template-columns: 1fr; gap: .45rem; }
.interest-grid-detailed .interest-opt { align-items: flex-start; }
.interest-grid-detailed .interest-opt input { margin-top: .3rem; flex-shrink: 0; }
.interest-desc { color: var(--fg-muted); font-weight: 400; font-size: .88rem; }
#nl-message-wrap { margin-top: .7rem; }
#nl-message-wrap textarea {
  width: 100%;
  padding: .55rem .8rem;
  border: 2px solid var(--field-line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  resize: vertical;
}
#nl-message-wrap textarea:focus { outline: none; border-color: var(--focus); }
#nl-message-wrap .interest-other { margin-bottom: .6rem; }
.interest-other input { margin-bottom: 0 !important; }
.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-weight: 500 !important;
  font-size: .88rem !important;
  color: var(--fg-muted);
  margin: .4rem 0 0;
  cursor: pointer;
}
.consent-row input { margin-top: .25rem; flex-shrink: 0; }
.privacy-link { margin: .2rem 0 .6rem; font-size: .85rem; }
.nl-submit {
  align-self: flex-start;
  padding: .65rem 1.7rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .18s, transform .15s;
}
.nl-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }
.form-error { color: var(--error); font-size: .85rem; margin: -.2rem 0 .4rem; font-weight: 600; }
.req { color: var(--error); margin-left: .15rem; }
.required-note { margin: 0 0 .3rem; font-size: .8rem; color: var(--fg-muted); }
.newsletter-form [aria-invalid="true"],
.newsletter-form [aria-invalid="true"]:focus { border-color: var(--error); }
/* Own rule: browsers without :user-invalid must not drop the aria-invalid styling above */
.newsletter-form input:user-invalid, .newsletter-form textarea:user-invalid { border-color: var(--error); }
.nl-thanks {
  background: var(--leaf-soft);
  border: 2px solid #b6cdaa;
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  color: #2f4d28;  /* fixed light chip: keep dark text in both themes */
}
.nl-thanks h3 { margin: 0 0 .4rem; color: #2f4d28; }
.nl-thanks p { margin: 0; }
/* Honeypot: off-screen for humans, present for bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* Footer */
.site-footer {
  max-width: var(--maxw);
  margin: 4rem auto 0;
  padding: 2.5rem 1.75rem 3.5rem;
  border-top: 2px dashed var(--line);
  text-align: center;
}
.footer-brand { font-size: 1.25rem; margin: 0; }
.footer-note {
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  font-weight: 700;
  font-style: normal;
  color: var(--sun);
  margin: .1rem 0 .8rem;
}
.footer-meta { margin: 0; color: var(--fg-muted); font-size: .92rem; }

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { padding: 1.2rem 1.25rem; }
  .nav-anchors { gap: 1rem; font-size: .95rem; width: 100%; justify-content: center; order: 3; }
  .header-tools { order: 2; }
  .hero { padding: 3.5rem 1.25rem 2rem; }
  .hero::before { width: 44px; height: 44px; right: 6%; top: .8rem; }
  .content-section { padding: 2.5rem 1.25rem; }
  .project-card, .event-card { padding: 1.3rem 1.4rem; }
  .tagline::after { width: 84%; }
  /* Gantt: tighter labels, narrower controls; horizontal scroll already on */
  .gantt { --label-width: 110px; }
  .gantt-lane-label { font-size: .82rem; padding: .5rem .6rem; }
  .gantt-controls { font-size: .82rem; gap: .35rem; }
  .gantt-btn, .gantt-btn-zoom { padding: .3rem .65rem; }
  .gantt-zoom { margin-left: 0; flex: 1 0 100%; justify-content: center; margin-top: .35rem; }
  .newsletter-wrap { grid-template-columns: 1fr; }
  .newsletter-bots { max-width: 200px; margin: 0 auto; }
  /* Narrow screens: back into the flow beside the heading. Absolute placement collides with the
     longer FR heading and with the name input once the card is this narrow. */
  .form-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
  .form-heading { font-size: 1.3rem; }
  .form-bots { position: static; width: 84px; margin-left: auto; }  /* wraps under a long heading, stays right */
  .site-minimal #nl-name { max-width: none; }  /* in flow here, so nothing to dodge */
  .form-two-col { grid-template-columns: 1fr; gap: 0; }
}

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