:root {
  color-scheme: light;
  --ink: #1c1c1c;
  --muted: #5e5e5e;
  --faint: #8a8a8a;
  --line: #e6e6e6;
  --paper: #ffffff;
  --wash: #f4f5f6;
  --navy: #2c3642;
  --teal: #0f766e;
  --teal-soft: #e5f4f2;
  --teal-btn: #0f766e;
  --teal-btn-text: #fff;
  --teal-hover: #0c615b;
  --sand: #9a7040;
  --sand-soft: #f6f0e4;
  --blue-soft: #e8eef6;
  --page-bg: #f7f6f3;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-link: #3a3a3a;
  --soft-text: #3f3f3f;
  --skills-text: #3a3a3a;
  --em: #333;
  --link: #333;
  --chip: #fff;
  --icon-blue: #2c5278;
  --btn-line-bg: #fff;
  --btn-line-border: #d5d5d5;
  --btn-line-hover: #9a9a9a;
  --rule: #d0d0d0;
  --featured-bg: #fff;
  --featured-btn: var(--navy);
  --featured-btn-text: #fff;
  --featured-btn-hover: #1d252e;
  --box-hover: #fff;
  --shadow: 0 18px 44px rgba(24, 28, 34, 0.12);
  --icon-shade: 0 8px 16px rgba(24, 28, 34, 0.18), 0 2px 4px rgba(24, 28, 34, 0.1);
  --about-teal: #d3efe8;
  --about-sand: #f4e3c4;
  --about-blue: #d5e3f3;
  --about-shade: 0 14px 32px rgba(28, 32, 38, 0.1);
  --spotlight: rgb(44 54 66 / 0.12);
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --page: 1080px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f1ea;
  --muted: #b9b4aa;
  --faint: #8e8980;
  --line: rgba(255, 255, 255, 0.1);
  --paper: #1b2027;
  --wash: #242b34;
  --navy: #d7dde4;
  --teal: #7ddecf;
  --teal-soft: #17332f;
  --teal-btn: #14b8a6;
  --teal-btn-text: #042421;
  --teal-hover: #5eead4;
  --sand: #e4c08a;
  --sand-soft: #2e281d;
  --blue-soft: #1c2836;
  --page-bg: #12161c;
  --nav-bg: rgba(18, 22, 28, 0.9);
  --nav-link: #d9d4cb;
  --soft-text: #d4cfc6;
  --skills-text: #d4cfc6;
  --em: #eeeae3;
  --link: #e7e2da;
  --chip: #10141a;
  --icon-blue: #a9c7e4;
  --btn-line-bg: transparent;
  --btn-line-border: rgba(255, 255, 255, 0.18);
  --btn-line-hover: rgba(255, 255, 255, 0.42);
  --rule: rgba(255, 255, 255, 0.16);
  --featured-bg: #1e252e;
  --featured-btn: #f4f1ea;
  --featured-btn-text: #14181e;
  --featured-btn-hover: #fff;
  --box-hover: #232a33;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --icon-shade: 0 8px 16px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.28);
  --about-teal: #1e4540;
  --about-sand: #3d3424;
  --about-blue: #27364c;
  --about-shade: 0 14px 32px rgba(0, 0, 0, 0.4);
  --spotlight: rgb(255 255 255 / 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  transition: background 0.25s ease, color 0.25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.35rem 0.6rem;
}
.skip:focus { top: 0.6rem; }

.wrap {
  width: min(var(--page), calc(100% - 3rem));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-inner {
  width: min(var(--page), calc(100% - 3rem));
  margin: 0 auto;
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--teal); color: var(--teal); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.nav-links a {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--nav-link);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.is-active { border-bottom-color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 26%);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}
.hero-copy {
  container-type: inline-size;
  min-width: 0;
}
.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0.25rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--featured-bg);
}
.hero-facts li { padding: 0.8rem 0; }
.hero-facts li + li { border-top: 1px solid var(--line); }
.hero-facts strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--teal);
}
.hero-facts span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(1.85rem, 6.35cqi, 3.05rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}
.hero .intro {
  max-width: 62ch;
  margin-top: 0.95rem;
  color: var(--soft-text);
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.72rem 1.05rem;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.28s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn.is-magnet,
.project .more.is-magnet { transition: background 0.2s ease, border-color 0.2s ease; }
.btn-dark {
  background: var(--teal-btn);
  color: var(--teal-btn-text);
}
.btn-dark:hover { background: var(--teal-hover); }
.btn-line {
  background: var(--btn-line-bg);
  border-color: var(--btn-line-border);
  color: var(--ink);
}
.btn-line:hover { border-color: var(--btn-line-hover); }
.btn svg { width: 1rem; height: 1rem; }
.hero .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.meta svg { width: 1rem; height: 1rem; color: var(--teal); }
.rule {
  width: 1px;
  height: 1rem;
  background: var(--rule);
}
#about { padding-top: 0.35rem; }
#about h2 { margin-bottom: 1rem; }
.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.about-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.about-logo {
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
  border-radius: 4px;
  object-fit: cover;
}
.about-logo.is-qut {
  object-fit: contain;
  object-position: center;
  background: #003c72;
  object-view-box: inset(7% 2% 48% 2%);
}
.about-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--featured-bg);
}
.about-card::before {
  content: "";
  display: block;
  width: 1.25rem;
  margin-bottom: 0.75rem;
  border-top: 2px solid color-mix(in srgb, var(--teal) 62%, var(--line));
}
.about-points h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.about-points p {
  color: var(--soft-text);
  font-size: 0.98rem;
  line-height: 1.6;
}

section { padding: 3.2rem 0 1rem; scroll-margin-top: 5rem; }
h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.projects-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  margin-inline: -1rem;
}
@media (min-width: 1180px) {
  .projects-carousel { margin-inline: -2.75rem; }
}
.projects-carousel > button,
.case-nav {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--featured-bg);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.projects-carousel > button { transition: border-color 0.22s ease, color 0.22s ease; }
.projects-carousel > button:hover { border-color: var(--teal); color: var(--teal); }
.projects-carousel > button[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.projects-window {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.projects {
  display: flex;
  gap: 1.6rem;
  align-items: stretch;
}
.project {
  flex: 0 0 calc((100% - 1.6rem) / 2);
  min-width: 0;
  scroll-snap-align: start;
}
.shot {
  border-radius: 6px;
  overflow: hidden;
  background: var(--wash);
  aspect-ratio: 16 / 10;
}
.shot svg,
.shot img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.shot-budget {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.45rem;
  padding: 1.5rem;
  background: var(--teal-soft);
  color: var(--teal);
}
.shot-budget span { font-family: var(--mono); }
.shot-budget strong {
  max-width: 18ch;
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  line-height: 1.1;
}
.project h3 {
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.project p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.project .project-category {
  margin-top: 0.9rem;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.75rem;
}
.project-category + h3 { margin-top: 0.4rem; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin-top: 0.8rem;
}
.tags li {
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--teal);
}
.more:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.project {
  display: flex;
  flex-direction: column;
  background: var(--featured-bg);
  border-radius: 12px;
  padding: 0.85rem 0.85rem 1.15rem;
  box-shadow: var(--shadow);
}
.project .tags { margin-bottom: 0.85rem; }
.project .more {
  margin-top: auto;
  align-self: flex-start;
  background: var(--featured-btn);
  color: var(--featured-btn-text);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  transition: transform 0.28s ease, background 0.2s ease;
}
.project .more:hover { background: var(--featured-btn-hover); text-decoration: none; }

.case,
.case-light {
  border: 0;
  background: var(--featured-bg);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.case:not([open]),
.case-light:not([open]) { display: none; }
.case[open] {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: min(1160px, calc(100% - 2.5rem));
  height: fit-content;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
}
.case[open].is-shown {
  opacity: 1;
  transition: opacity 0.26s ease;
}
.case::backdrop,
.case-light::backdrop { background: rgba(18, 22, 28, 0.52); }
.case-bar {
  display: flex;
  flex: none;
  justify-content: flex-end;
  padding: 0.7rem 0.7rem 0;
}
.case-close {
  display: grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--featured-bg);
  color: var(--ink);
  cursor: pointer;
}
.case-close svg { width: 1rem; height: 1rem; }
.case-close:hover { border-color: var(--teal); color: var(--teal); }
.case-scroll {
  overflow: auto;
  min-height: 0;
  padding: 0.2rem 1.6rem 1.6rem;
}
.case h3 {
  margin: 0.3rem 0 0;
  max-width: 40rem;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.case-summary {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.case-block {
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.case-section-heading {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(0.55rem, 2vw, 1rem);
  margin: 0 0 clamp(0.9rem, 2vw, 1.25rem);
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
}
.case-section-number {
  color: var(--teal);
  font-family: var(--mono);
  font-weight: 700;
}
[data-theme="dark"] .case-section-heading {
  color: #fff;
}
.case-overview p { color: var(--soft-text); font-size: 1rem; }
.case-overview p + p { margin-top: 0.55rem; }
.case-lead { margin-top: 0.9rem; color: var(--ink); }
.case-lead strong { font-weight: 700; }
.case-questions {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: question;
}
.case-questions li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--soft-text);
  font-size: 1rem;
}
.case-questions li + li { margin-top: 0.3rem; }
.case-questions li::before {
  counter-increment: question;
  content: counter(question) ".";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-family: var(--mono);
  font-weight: 600;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.5rem;
}
.case-grid article {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.65rem;
  align-items: start;
}
.case-grid.is-split { gap: 0.85rem; }
.case-grid.is-split article {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.case-grid.is-split article:nth-child(1),
.case-grid.is-split article:nth-child(4) { grid-column: 1 / -1; }
.case-grid.is-split article:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
}
.case-grid svg { width: 1.35rem; height: 1.35rem; margin-top: 0.1rem; color: var(--teal); }
.case-sources {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}
.case-sources li {
  color: var(--muted);
  font-size: 0.94rem;
}
.case-sources li + li { margin-top: 0.45rem; }
.case-sources strong { color: var(--ink); font-weight: 600; }
.case-grid h5,
.case-findings h5 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.case-grid p,
.case-findings p,
.case-note,
.case-caption {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.case-gallery { display: flex; flex-direction: column; align-items: center; }
.case-switch,
.case-caption { width: min(720px, 100%); }
.case-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.case-zoom {
  display: block;
  width: auto;
  max-width: 100%;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.case-zoom img {
  display: block;
  width: auto;
  max-width: min(720px, 100%);
  max-height: 380px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.case-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.case-prev { left: 0.6rem; }
.case-next { right: 0.6rem; }
.case-nav:hover,
.case-switch button:hover { border-color: var(--teal); color: var(--teal); }
.case-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.case-switch button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.32rem 0.65rem;
  cursor: pointer;
}
.case-switch button[aria-selected="true"] {
  border-color: var(--teal);
  color: var(--teal);
}
.case-caption { margin-top: 0.55rem; }
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem 1rem;
  margin: 0 0 1rem;
}
.case-metrics div { border-top: 1px solid var(--line); padding-top: 0.4rem; }
.case-metrics dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.case-metrics dd {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.case-findings { list-style: none; margin: 0; padding: 0; }
.case-findings li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem;
  padding: 0.75rem 0;
}
.case-findings span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding-top: 0.15rem;
}
.case-findings.is-insights li {
  gap: 0.85rem;
  padding: 1.15rem 0 0;
}
.case-findings.is-insights li:first-child { padding-top: 0.15rem; }
.case-findings.is-insights li + li {
  margin-top: 1.15rem;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}
.case-findings.is-insights h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.case-action-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-findings.is-insights .case-shows {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.case-action {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--teal-soft);
  transition: background 0.22s ease, border-color 0.22s ease;
}
.case-action:hover {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  background: color-mix(in srgb, var(--teal) 14%, var(--featured-bg));
}
.case-action-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--teal);
}
.case-action-label svg { width: 0.9rem; height: 0.9rem; }
.case-findings.is-insights .case-action p:last-child {
  margin: 0.35rem 0 0;
  color: var(--soft-text);
  font-size: 0.94rem;
}
.case-note { max-width: 44rem; margin-top: 0.8rem; }
.case-visuals .case-visuals-note { max-width: none; }
.case-links { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.case-links a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.case-links a:hover { border-color: var(--teal); color: var(--teal); }
.case-light {
  width: min(1100px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  border-radius: 12px;
  background: var(--page-bg);
}
.case-light .case-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--page-bg);
}
.case-light-content { padding: 0.45rem 0.8rem 0.8rem; }
.case-light img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
}
.case-light p { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.92rem; }

.case-business-copy { color: var(--soft-text); }
.case-business-copy + .case-business-copy { margin-top: 0.55rem; }
.case-bms-outcome h5 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.case-bms-outcome-summary {
  padding: 0.75rem 1rem;
  border-left: 2px solid color-mix(in srgb, var(--teal) 60%, var(--line));
  background: var(--featured-bg);
}
.case-bms-outcome-group { margin-top: 1.35rem; }
.case-bms-handover-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}
.case-bms-handover-list > li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.case-bms-handover-list svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  color: var(--teal);
}
@media (max-width: 520px) {
  .case-bms-handover-list { grid-template-columns: 1fr; }
}
.case-bms-overview-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
}
.case-bms-overview-details > div {
  padding-top: 0.65rem;
  border-top: 1px solid var(--teal);
  border-color: color-mix(in srgb, var(--teal) 42%, var(--line));
}
.case-bms-overview-details dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-bms-overview-details dd {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-size: 1rem;
}
.case-visuals-metrics .case-bms-overview-details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .case-bms-overview-details { grid-template-columns: 1fr; }
  .case-visuals-metrics .case-bms-overview-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}
.case-bms-delivery h5,
.case-overview .case-bms-delivery-group > h5 {
  margin: 0;
  font-size: 1rem;
}
.case-bms-sprint-summary,
.case-bms-sprint-cycle,
.case-bms-delivery-rows {
  padding: 0;
  list-style: none;
}
.case-bms-sprint-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}
.case-bms-sprint-cadence {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.case-bms-sprint-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin: 0.4rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.87rem;
}
.case-bms-sprint-cycle {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.55rem;
  margin: 0 auto;
}
.case-bms-sprint-cycle > li {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--featured-bg);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}
.case-bms-sprint-marker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  color: var(--teal);
  font: 600 0.73rem var(--mono);
}
.case-bms-sprint-marker svg,
.case-bms-sprint-loop svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: var(--teal);
}
.case-bms-sprint-loop {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0.65rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.case-bms-delivery-group { margin-top: 1.5rem; }
.case-bms-delivery-rows { margin: 0.55rem 0 0; }
.case-bms-delivery-rows > li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.case-bms-delivery-rows svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  color: var(--teal);
}
.case-bms-delivery-rows h6 {
  margin: 0 0 0.2rem;
  font-size: 0.94rem;
}
@media (max-width: 640px) {
  .case-bms-sprint-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  .case-bms-sprint-cycle { grid-template-columns: 1fr; }
}
.case-business-contributions {
  margin: 1rem 0 0;
  padding-left: 1.6rem;
}
.case-business-contributions > li {
  padding: 0.75rem 0 0.75rem 0.35rem;
  border-top: 1px solid var(--line);
}
.case-business-contributions > li::marker {
  color: var(--teal);
  font-family: var(--mono);
}
.case-business-contributions h5 { margin: 0 0 0.35rem; font-size: 1rem; }
.case-business-contributions ul {
  padding-left: 1.15rem;
  color: var(--soft-text);
}
.case-business-contributions ul li + li { margin-top: 0.2rem; }
.case-bms-workflow {
  --workflow-gap: 1rem;
  --workflow-accent: color-mix(in srgb, var(--teal) 42%, var(--line));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--workflow-gap);
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.case-bms-workflow > li {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-top-color: var(--workflow-accent);
  border-radius: 8px;
}
.case-bms-workflow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.65rem;
  left: calc(100% + 1px);
  width: var(--workflow-gap);
  border-top: 1px solid var(--workflow-accent);
}
.case-bms-workflow-marker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--teal);
  font: 700 0.8rem var(--mono);
}
.case-bms-workflow-marker svg {
  width: 1.2rem;
  height: 1.2rem;
}
.case-bms-workflow h5 {
  margin: 0.65rem 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}
.case-preparation-highlights { margin-top: 1.5rem; }
.case-preparation-highlights h5 { margin: 0; font-size: 1rem; }
.case-preparation-highlights .case-bms-overview-details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.65rem;
}
.case-preparation-highlights dd { font-weight: 700; }
.case-preparation-highlights .case-note { max-width: none; }
.case-methodology-grid .case-bms-workflow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.case-methodology-grid .case-bms-workflow > li {
  background: var(--featured-bg);
  border-top-color: var(--line);
}
.case-methodology-grid .case-bms-workflow > li:not(:last-child)::after { content: none; }
.case-methodology-grid .case-bms-workflow p { color: var(--muted); }
[data-theme="dark"] .case-methodology-grid .case-bms-workflow h5 { color: #fff; }
.case-methodology-grid .case-preparation-highlights {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}
.case-methodology-grid .case-preparation-highlights .case-bms-overview-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  margin-top: 0;
}
.case-methodology-grid .case-bms-overview-details > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.2rem;
  padding-top: 0;
  border: 0;
}
.case-methodology-grid .case-bms-overview-details dd {
  margin: 0;
  color: var(--teal);
  font-size: 1.25rem;
}
@media (max-width: 600px) {
  .case-methodology-grid .case-bms-workflow { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .case-preparation-highlights .case-bms-overview-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.case-bms-featured-screens {
  margin: 1.25rem 0 0;
  font-size: 1rem;
}
.case-bms-carousel { margin-top: 0.65rem; }
.case-bms-carousel .case-frame {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(10rem, 48vw, 31rem);
  background: var(--page-bg);
}
.case-bms-carousel .case-zoom {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0.5rem clamp(2.6rem, 6vw, 3.5rem);
}
.case-bms-carousel .case-zoom[hidden] { display: none; }
.case-bms-carousel .case-zoom img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.case-bms-carousel .case-prev { left: 0.35rem; }
.case-bms-carousel .case-next { right: 0.35rem; }
.case-bms-screen-placeholder {
  margin: 0 3rem;
  color: var(--muted);
  text-align: center;
}
.case-bms-screen-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.35rem, 2vw, 0.85rem);
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0.5rem clamp(2.8rem, 6vw, 3.5rem);
}
.case-bms-screen-comparison[hidden] { display: none; }
.case-bms-comparison-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--featured-bg);
  text-align: center;
}
.case-bms-comparison-label {
  padding: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
}
.case-bms-comparison-placeholder {
  align-self: center;
  padding: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.case-bms-comparison-panel .case-zoom { padding: 0.3rem; }
.case-bms-carousel .case-switch {
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin-top: 0.45rem;
}
.case-bms-screen-counter {
  margin-right: 0.45rem;
  color: var(--muted);
  font: 0.8rem var(--mono);
  font-variant-numeric: tabular-nums;
}
.case-bms-carousel .case-switch button {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
}
.case-bms-carousel .case-switch button::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.case-bms-carousel .case-switch button[aria-current="true"]::before {
  color: var(--teal);
  background: currentColor;
}
.case-bms-screen-description h6 {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  text-align: center;
}
.case-bms-screen-description .case-caption {
  margin-top: 0.25rem;
  color: var(--soft-text);
}
.case-bms-carousel:is([aria-labelledby="bms-project-artefacts"], [aria-labelledby="bms-project-management-evidence"], [aria-labelledby="bms-featured-screens"]) .case-bms-screen-description {
  width: 100%;
  text-align: center;
}
.case-bms-carousel:is([aria-labelledby="bms-project-artefacts"], [aria-labelledby="bms-project-management-evidence"], [aria-labelledby="bms-featured-screens"]) .case-caption {
  margin-inline: auto;
}
@media (max-width: 900px) {
  .case-bms-workflow { grid-template-columns: 1fr; }
  .case-bms-workflow > li:not(:last-child)::after {
    top: calc(100% + 1px);
    left: 1.6rem;
    width: 0;
    height: var(--workflow-gap);
    border-top: 0;
    border-left: 1px solid var(--workflow-accent);
  }
}
.case-bms-carousel .case-switch[hidden] { display: none; }
.case-light.is-fullscreen {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border-radius: 0;
  overflow: auto;
}
.case-light.is-fullscreen img { max-height: calc(100dvh - 7rem); background: transparent; }

.skills-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.skills-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.skills-tabs button:hover,
.skills-tabs button[aria-selected="true"] {
  border-color: var(--teal);
  color: var(--teal);
}
.skills-tabs button[aria-selected="true"] { background: var(--teal-soft); }
.skills-tabs button:focus-visible,
.skills:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.business-skills .skills { grid-template-columns: minmax(0, 1fr); }
.skills[hidden] { display: none; }
.skills-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.skills-card:hover { border-color: color-mix(in srgb, var(--teal) 42%, var(--line)); }
.skills h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
}
.skills h3 svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--teal);
}
.skills .tags { margin-top: 0.6rem; }
.skills .tags li { overflow-wrap: anywhere; }

:is(.data-skills, .business-skills) .skills-card {
  min-width: 0;
  background: var(--featured-bg);
}
:is(.data-skills, .business-skills) .skills-card:hover { border-color: var(--teal); }
:is(.data-skills, .business-skills) .skills-card h3 {
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] :is(.data-skills, .business-skills) .skills-card h3 { color: #fff; }
.business-skills .skills-card h3 {
  align-items: baseline;
  justify-content: flex-start;
}
.data-skills-number,
.business-skills-number {
  flex: none;
  color: var(--teal);
  font: 600 0.75rem/1.5 var(--mono);
}
.data-skills-wide { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .data-skills .skills { grid-template-rows: 1fr 1fr auto; }
}

.timeline {
  --rail: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0 0 1.6rem;
}
.timeline-item {
  position: relative;
  padding-left: 1.75rem;
}
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: var(--rail);
  top: 1.47rem;
  bottom: -1.47rem;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}
.timeline-item::after {
  content: "";
  position: absolute;
  left: var(--rail);
  top: 1.12rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--page-bg);
  transform: translateX(-50%);
  z-index: 1;
}
.timeline article {
  background: var(--featured-bg);
  box-shadow: var(--shadow);
  padding: 0.9rem 1.1rem 1rem;
  margin-bottom: 1.15rem;
}
.timeline-item:last-child article { margin-bottom: 0; }
.role-head { display: flow-root; }
.role-when {
  float: right;
  margin: 0.2rem 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
}
.timeline strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.timeline em {
  display: block;
  font-style: normal;
  color: var(--em);
  font-weight: 600;
  font-size: 0.95rem;
}
.timeline p { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }
.timeline ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.timeline ul li {
  position: relative;
  padding-left: 1.15rem;
}
.timeline ul li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-family: var(--mono);
  font-weight: 600;
}
.timeline ul li + li { margin-top: 0.3rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.6rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.socials { display: flex; gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--link);
  font-size: 0.95rem;
}
.socials a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.socials svg { width: 1rem; height: 1rem; }
.note {
  width: min(var(--page), calc(100% - 3rem));
  margin: 0.8rem auto 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.box {
  position: relative;
  border-radius: 12px;
  transition: transform 0.35s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.box.is-tilting { transition: box-shadow 0.25s ease, background 0.25s ease; }
.box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    460px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--spotlight),
    transparent 58%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
}
.box:hover {
  background: var(--box-hover);
  box-shadow: var(--shadow);
}
.box:hover::after { opacity: 1; }

@media (max-width: 860px) {
  .hero, .about-points, .skills, .case-grid, .case-metrics { grid-template-columns: 1fr; }
  .project { flex-basis: 100%; }
  .case[open] {
    width: calc(100% - 0.8rem);
    max-height: calc(100% - 0.8rem);
    border-radius: 12px;
  }
  .case-scroll { padding: 0.1rem 1rem 1.15rem; }
  .case-findings.is-insights li { gap: 0.55rem; }
  .case-findings.is-insights h5 { font-size: 0.98rem; }
  .case-action { padding: 0.65rem 0.7rem; }
  .projects-carousel > button,
  .case-nav { width: 2.6rem; height: 2.6rem; }
  .timeline .role-head strong { font-size: 1.02rem; }
  .role-when { font-size: 0.7rem; margin-left: 0.55rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.65rem); }
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.7rem;
    padding: 0.85rem 0;
  }
  .nav-end { display: contents; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; gap: 0.7rem; }
  .nav-links a { font-size: 0.9rem; }
  .nav-tools { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .box { transform: none; }
  .box, body, .case[open], .case-zoom img, .case-grid.is-split article, .case-action, .projects { transition: none; }
  .case[open] { opacity: 1; }
}
