/*
 * Minimal pass, loaded after the page stylesheets. Same structure, new skin:
 * a warm off-white page, near-black text, one typeface (Inter) with weight
 * doing the hierarchy, hairline rules and generous space instead of boxes,
 * and a single muted accent. Photos and the ASCII flowers carry the colour.
 */
:root {
  --bg: #f7f5f1;
  --bg-2: #ffffff;
  --ink: #161513;
  --text: #1f1d1a;
  --text-dim: #6b6660;
  --rule: rgba(22, 21, 19, 0.10);
  --rule-strong: rgba(22, 21, 19, 0.24);
  --accent: #2d5bff;
  --aqua: #2d5bff;             /* the map's controls read this token */
  --pink: #c8325a;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Inter", system-ui, sans-serif;
  --mono: "Inter", system-ui, sans-serif;
  --ui-fg: var(--text);
}
html, body, .projects-page, .travel-page { background: var(--bg); color: var(--text); overflow-x: hidden; }
.ascii-hero, .projects-page, .travel-page { background: var(--bg); }
.ascii-hero::before, .projects-hero::before, .travel-hero::before { display: none; }
.exhibit, .exhibit__shade { display: none; }
::selection { background: rgba(45, 91, 255, 0.18); }

/* ---------- type */
.placard__title, .projects-title, .about__title, .travel__title, .project-card__title {
  font-family: var(--sans); font-weight: 600; font-style: normal; letter-spacing: -0.03em; text-transform: none; color: var(--ink); text-shadow: none;
}
.placard__title { font-size: clamp(44px, 5.6vw, 84px); line-height: 1; }
.projects-title { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; }
.travel__title { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; }
.project-card__title { font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -0.015em; }
.placard__role, .placard__list, .projects-lead, .travel__intro, .about__text, .project-card__desc, .project-card__points, .project-card__teaser, .site-foot__text, .placard__menu a, .tool-tree__desc, .project-card__links, .project-card__tags span {
  font-family: var(--sans); font-weight: 400; letter-spacing: 0; text-transform: none;
}
.placard__role { font-size: clamp(15px, 1.2vw, 17px); color: var(--text-dim); }
.placard__role a { color: var(--text); border-bottom: 1px solid var(--rule-strong); text-decoration: none; }
.placard__role a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.placard__dot { color: var(--text-dim); }
.placard__list { font-size: clamp(14px, 1.05vw, 15.5px); line-height: 1.55; color: var(--text-dim); }
.placard__list strong { font-weight: 600; color: var(--ink); }
.placard__list a { color: var(--ink); border-bottom: 1px solid var(--rule-strong); text-decoration: none; }
.placard__list a:hover { color: var(--accent); border-bottom-color: var(--accent); }
/* labels: small, medium weight, dim */
.placard__eyebrow, .project-card__meta, .placard__summary-title, .travel__list-title, .project-card__role {
  font: 500 12px/1.4 var(--sans); letter-spacing: 0.02em; text-transform: none; color: var(--text-dim); text-shadow: none;
}
.placard__eyebrow::before { content: none; }
.placard__eyebrow { margin-bottom: 10px; }

/* ---------- avatar */
.placard__avatar { border: 1px solid var(--rule-strong); box-shadow: none; background: var(--bg-2); animation: none; }

/* ---------- Currently / Previously: ruled lists, no boxes */
.placard__orgs { gap: 28px; }
.org-panel, .org-panel--then { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; clip-path: none; }
.org-panel::before { display: none; }
.org-panel .placard__summary-title, .org-panel--then .placard__summary-title {
  display: block; margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px solid var(--ink); color: var(--ink); font-weight: 600; text-shadow: none;
}
.org-panel .placard__summary-title::before { content: none; }
.org-icon { background: var(--bg-2); border: 1px solid var(--rule); box-shadow: none; border-radius: 4px; padding: 2px; }
.placard__list li { margin: 10px 0; }

/* ---------- nav: text links with a rule above, the first one filled */
.ascii-hero .placard__nav { margin-top: 150px; gap: 6px; border-top: 1px solid var(--rule); padding-top: 14px; }
.projects-hero__nav, .travel__nav, .site-foot__nav { margin-top: 0; gap: 6px; }
.placard__nav a, .placard__contact-toggle, .placard__nav a.is-lit, .placard__nav a.is-fading {
  padding: 9px 14px; border: 1px solid transparent; border-radius: 999px; clip-path: none;
  background: none; box-shadow: none; text-shadow: none; animation: none; filter: none; transform: none;
  font: 500 14px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.placard__nav a:hover, .placard__contact-toggle:hover, .placard__contact-toggle[aria-expanded="true"] { background: rgba(22, 21, 19, 0.06); color: var(--ink); box-shadow: none; transform: none; }
.placard__nav-item:first-child a { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.placard__nav-item:first-child a:hover { background: #000; color: #fff; }
.placard__nav-icon { width: 14px; height: 14px; filter: none; }
.placard__caret { width: 11px; height: 11px; }
.placard__menu {
  min-width: 280px; padding: 6px; border: 1px solid var(--rule); border-radius: 12px; clip-path: none;
  background: var(--bg-2); box-shadow: 0 12px 40px rgba(22, 21, 19, 0.12);
}
.placard__nav .placard__menu a, .placard__nav .placard__menu a + a { margin: 0; padding: 10px 12px; border: 0; border-radius: 8px; background: none; font: 400 14px/1.3 var(--sans); color: var(--text); }
.placard__nav .placard__menu a:hover { background: rgba(22, 21, 19, 0.06); }
.placard__nav .placard__menu a small { font: 500 11px/1 var(--sans); color: var(--accent); }

/* ---------- flowers: on a light page the ASCII reads better slightly darker and more saturated */
/* the clips are black-backed: invert + hue-rotate makes that white, and multiply drops the white into the
   page. The placard is its own compositing layer, so it needs the page colour itself for the blend to work. */
.landing { background: var(--bg); }
.sprout { bottom: 72%; mix-blend-mode: multiply; filter: invert(1) hue-rotate(180deg) brightness(1.08) contrast(1.25) saturate(1.6); transition: filter 900ms ease; }
.placard__nav-item:nth-child(1) .sprout { width: 170px; transform: translateX(-32%) rotate(-4deg); }
.placard__nav-item:nth-child(2) .sprout { width: 150px; transform: translateX(-50%) rotate(2deg); }
.placard__nav-item:nth-child(3) .sprout { width: 82px; bottom: 62%; }
.placard__nav-item:nth-child(4) .sprout { width: 150px; transform: translateX(-52%) rotate(-2deg); }
.placard__nav-item:nth-child(5) .sprout { width: 160px; transform: translateX(-50%) rotate(3deg); }
.placard__nav-item:nth-child(6) .sprout { width: 190px; transform: translateX(-50%) rotate(-3deg); }
.sprout.is-blooming { filter: invert(1) hue-rotate(180deg) brightness(1.08) contrast(1.4) saturate(2); }
.placard__nav a.is-lit { background: rgba(22, 21, 19, 0.08); transition-duration: 600ms; }
.placard__nav-item:first-child a.is-lit { background: #000; }
.placard__nav a.is-fading { transition-duration: 1400ms; }

/* ---------- footer */
.site-foot { border-top: 1px solid var(--rule); }
.site-foot__text { font-size: 12.5px; line-height: 1.6; color: var(--text-dim); opacity: 1; }

/* ---------- projects page */
.projects-hero__nav, .travel__nav { margin-bottom: 36px; }
.projects-lead { color: var(--text-dim); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }
.projects-cta a {
  padding: 10px 16px; min-height: 0; border: 1px solid var(--ink); border-radius: 999px; clip-path: none;
  background: var(--ink); box-shadow: none; font: 500 14px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--bg);
}
.projects-cta a:hover { background: #000; color: #fff; box-shadow: none; }
.showreel__stage { border: 1px solid var(--rule); border-radius: 10px; clip-path: none; box-shadow: none; background: #000; }
.projects-head { border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 44px; }
.projects-grid { gap: 44px 36px; counter-reset: card; }
.project-card, .project-card:hover { border: 0; border-radius: 0; clip-path: none; background: none; box-shadow: none; transform: none; overflow: visible; }
.project-card::after { display: none; }
.project-card__thumb { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #000; }
.project-card__thumb .project-card__media { transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.project-card:hover .project-card__thumb .project-card__media { transform: scale(1.02); filter: none; }
.project-card__thumb::after, .project-card__open-hint { display: none; }
.project-card__media { border-radius: 0; border-bottom: 0; background: #000; }
.project-card__body, .project-card .project-card__body { padding: 14px 2px 0; counter-increment: card; }
.project-card__meta::before { content: counter(card, decimal-leading-zero) "  ·  "; }
.project-card__title { margin-top: 6px; }
.project-card__teaser { color: var(--text-dim); font-size: 14.5px; line-height: 1.5; }
.project-card__more { margin-top: 10px; font: 500 14px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.project-card:hover .project-card__more { color: var(--accent); }
.project-card__tags { gap: 6px; }
.project-card__tags span { padding: 4px 9px; border: 1px solid var(--rule); border-radius: 999px; font-size: 12px; color: var(--text-dim); background: var(--bg-2); }
.project-card__role { margin-top: 6px; }
.project-card__points { font-size: 15.5px; line-height: 1.6; color: var(--text); }
.project-card__points li::marker { color: var(--text-dim); }
.project-card__points b { color: var(--ink); font-weight: 600; }
.project-card__points a, .project-card__desc a { color: var(--accent); border-bottom: 1px solid rgba(45, 91, 255, 0.35); text-decoration: none; }
.project-card__links { font-size: 14px; font-weight: 500; }
.project-card__links a { color: var(--ink); border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; }
.project-card__links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.project-dialog { border: 1px solid var(--rule); border-radius: 14px; clip-path: none; background: var(--bg-2); color: var(--text); box-shadow: 0 30px 80px rgba(22, 21, 19, 0.25); }
.project-dialog::backdrop { background: rgba(247, 245, 241, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.project-dialog__media { background: #000; }
.project-dialog__media .project-card__media { border-bottom: 1px solid var(--rule); }
.project-dialog__body .project-card__title { font-size: clamp(26px, 2.8vw, 36px); }
.project-dialog__close { border: 1px solid var(--rule-strong); border-radius: 50%; background: var(--bg-2); color: var(--ink); box-shadow: none; }
.project-dialog__close:hover { border-color: var(--ink); }
.tool-tree { border-color: var(--rule); background: var(--bg); border-radius: 10px; }
.tool-tree summary { color: var(--ink); border-radius: 10px; }
.tool-tree__name, .tool-tree li::before, .tool-tree li { color: var(--text); border-color: var(--rule-strong); }
.tool-tree__desc { color: var(--text-dim); }
.tool-tree__folder { background: var(--rule); }
.figure text, .figure .figure__ticks text { fill: var(--text-dim); }
.figure .figure__title { fill: var(--ink); }
.figure .figure__bars rect { fill: rgba(45, 91, 255, 0.55); stroke: var(--accent); filter: none; }
.figure .figure__axis { stroke: var(--rule-strong); }
.project-card__media--figure { background: var(--bg-2); }

/* ---------- about page */
.travel { border: 1px solid var(--rule); border-radius: 12px; clip-path: none; box-shadow: none; }
.travel__open-label, .travel__close, .travel__zoom button {
  border-radius: 999px; box-shadow: none; border: 1px solid var(--rule-strong); background: var(--bg-2); color: var(--ink);
  font: 500 13px/1 var(--sans); letter-spacing: 0; text-transform: none;
}
.travel__open-label:hover, .travel__close:hover { border-color: var(--ink); }
.travel__list { background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 35%, transparent); }
.travel__list-title { color: #fff; }
.travel__list button { border-radius: 999px; box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.3); background: none; color: #fff; font: 500 12.5px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.travel__list button:hover, .travel__list button[aria-current="true"] { border-color: #fff; }
.travel__intro, .about__text { color: var(--text-dim); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }
.place { background: var(--bg-2); color: var(--text); border-color: var(--rule); box-shadow: 0 20px 60px rgba(22, 21, 19, 0.2); }
.place__title { color: var(--ink); }
.place__close { color: var(--ink); background: rgba(22, 21, 19, 0.06); }

/* ---------- phones */
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  /* two columns of full-width buttons; the tall row gap is the space each flower grows into */
  .ascii-hero .placard__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 62px 10px; margin-top: 96px; padding-top: 0; border-top: 0; width: 100%; }
  .ascii-hero .placard__nav-item { width: 100%; }
  .ascii-hero .placard__nav a, .ascii-hero .placard__contact-toggle { width: 100%; min-height: 44px; justify-content: center; letter-spacing: 0; padding-inline: 10px; }
  .ascii-hero .placard__nav-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ascii-hero .placard__nav-item .sprout { width: 118px; bottom: 58%; }
  .ascii-hero .placard__nav-item:nth-child(3) .sprout { width: 54px; bottom: 50%; }
  .ascii-hero .placard__nav-item:nth-child(6) .sprout { width: 130px; }
  .placard__menu { width: 100%; min-width: 0; }
  .projects-grid { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { .sprout, .sprout.is-blooming { transition: none; } }
