:root {
  --paper: #f6f4ee;
  --paper-strong: #fffefa;
  --ink: #171c1a;
  --muted: #626966;
  --line: #d9d8d0;
  --line-strong: #b9bcb4;
  --green: #174a3d;
  --green-dark: #0d322a;
  --green-soft: #e5eee9;
  --orange: #c7642f;
  --orange-soft: #f6e9df;
  --blue-soft: #e9eef3;
  --radius: 20px;
  --shadow: 0 22px 60px rgba(19, 40, 33, 0.1);
  --display: "STSong", "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --body: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  background:
    linear-gradient(rgba(23, 74, 61, 0.032) 1px, transparent 1px) 0 0 / 100% 64px,
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0 auto 0 0;
  width: 5px;
  z-index: 80;
  content: "";
  background: var(--green);
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  background: var(--green-dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid rgba(185, 188, 180, 0.7);
  background: rgba(246, 244, 238, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-family: var(--display);
  font-size: 15px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav {
  position: fixed;
  inset: 68px 18px auto;
  display: none;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a,
.site-nav button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav button:hover,
.site-nav button:focus-visible {
  color: var(--green);
  background: var(--green-soft);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-strong);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  width: 18px;
  height: 1.5px;
  display: block;
  background: var(--ink);
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4.5px);
}

.hero {
  padding: 78px 0 64px;
}

.hero-grid {
  display: grid;
  gap: 54px;
}

.eyebrow,
.section-kicker,
.case-kicker {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 8.2vw, 78px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero-role {
  margin: 24px 0 0;
  color: var(--green);
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 750;
  line-height: 1.35;
}

.hero-copy {
  max-width: 710px;
  margin: 24px 0 0;
  color: #414744;
  font-size: clamp(17px, 3.8vw, 22px);
  line-height: 1.85;
}

.hero-actions,
.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--green);
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(23, 74, 61, 0.18);
}

.button.secondary {
  background: transparent;
}

.button.placeholder {
  border-color: var(--line-strong);
  color: var(--muted);
  background: var(--paper-strong);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.chip {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4e5551;
  background: rgba(255, 254, 250, 0.72);
  font-size: 13px;
}

.hero-dossier {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.hero-dossier::before {
  position: absolute;
  top: -10px;
  right: 24px;
  width: 84px;
  height: 20px;
  content: "";
  background: rgba(199, 100, 47, 0.2);
  transform: rotate(3deg);
}

.dossier-label {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.metric-list > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.metric-list dt {
  color: var(--green);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.metric-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.metric-list dd strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 16px;
}

.proof-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  color: #684c3b;
  background: var(--orange-soft);
  font-size: 13px;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 8vw, 58px);
  line-height: 1.12;
}

.section-head p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 22px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-strong);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #e4e8e3;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.018);
}

.project-body {
  padding: 24px;
}

.project-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--green);
}

.status.caution {
  color: #7a482a;
  background: var(--orange-soft);
}

.status.caution::before {
  background: var(--orange);
}

.project-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.25;
}

.project-intro {
  margin: 14px 0 0;
  color: var(--muted);
}

.project-role {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.project-role span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--green);
  font-weight: 800;
}

.project-link::after {
  content: "↗";
  transition: transform 180ms ease;
}

.project-link:hover::after {
  transform: translate(3px, -3px);
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  counter-reset: process;
  list-style: none;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  counter-increment: process;
}

.process-list li::before {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  content: counter(process, decimal-leading-zero);
  font-size: 11px;
  font-weight: 800;
}

.process-list strong {
  display: block;
  margin-bottom: 4px;
}

.process-list span {
  color: var(--muted);
  font-size: 14px;
}

.method-note {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #33443e;
  background: var(--green-soft);
}

.capability-grid {
  display: grid;
  gap: 14px;
}

.capability-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.74);
}

.capability-card .cap-number {
  color: var(--orange);
  font-family: var(--display);
  font-size: 32px;
}

.capability-card h3 {
  margin: 14px 0 12px;
  font-family: var(--display);
  font-size: 27px;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: #474e4a;
}

.tool-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-panel {
  display: grid;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius);
  color: #f8f4ea;
  background: var(--green-dark);
}

.contact-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 9vw, 62px);
  line-height: 1.1;
}

.contact-panel p {
  max-width: 620px;
  margin: 16px 0 0;
  color: #cbdad4;
}

.contact-list {
  display: grid;
  margin: 0;
  padding: 0 8px 0 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-list span {
  color: #aac1b8;
  font-size: 13px;
}

.contact-list strong {
  display: block;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 14px;
}

.contact-list a {
  min-width: 0;
  color: inherit;
}

.contact-list a:hover strong,
.contact-list a:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

/* Homepage semantic aliases */
.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

body > .site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: max(18px, calc((100vw - 1180px) / 2));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button-small {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 13px;
}

.button-outline {
  color: var(--green);
  background: transparent;
}

.hero > .hero-copy {
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.hero h1 > .hero-line {
  display: block;
}

.hero h1 > .hero-line-main {
  color: var(--ink);
}

.hero h1 > .hero-line-accent {
  color: var(--green);
}

.hero-phrase {
  display: inline-block;
  white-space: nowrap;
}

.hero-intro {
  max-width: 710px;
  margin: 24px 0 0;
  color: #414744;
  font-size: clamp(17px, 3.8vw, 22px);
  line-height: 1.85;
}

.hero-proof {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.hero-proof::before {
  position: absolute;
  top: -10px;
  right: 24px;
  width: 84px;
  height: 20px;
  content: "";
  background: rgba(199, 100, 47, 0.2);
  transform: rotate(3deg);
}

.proof-index,
.project-type,
.capability-index {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-proof dl {
  display: grid;
  margin: 0;
}

.hero-proof dl > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.hero-proof dt {
  color: var(--green);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
}

.hero-proof dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-proof > p:last-child {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  color: #684c3b;
  background: var(--orange-soft);
  font-size: 13px;
}

.section-block {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 8vw, 58px);
  line-height: 1.12;
}

.section-heading > p:last-child {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  gap: 22px;
}

.project-content {
  padding: 24px;
}

.project-number {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(13, 50, 42, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-card .project-media {
  position: relative;
  display: block;
}

.project-content h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.25;
}

.project-content > p:not(.project-type) {
  color: var(--muted);
}

.project-meta {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-meta dt {
  color: var(--muted);
  font-size: 11px;
}

.project-meta dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  color: var(--green);
  font-weight: 800;
}

.exploration-section {
  padding-top: 64px;
}

.exploration-heading {
  margin-bottom: 28px;
}

.exploration-heading h2 {
  font-size: clamp(34px, 7vw, 50px);
}

.exploration-grid {
  display: grid;
  gap: 14px;
}

.exploration-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--green);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.exploration-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.exploration-meta strong {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(23, 79, 64, 0.22);
  border-radius: 999px;
  color: var(--green);
  background: rgba(237, 243, 239, 0.7);
  font-size: 11px;
  letter-spacing: 0;
}

.exploration-card h3 {
  margin: 38px 0 12px;
  font-family: var(--display);
  font-size: clamp(25px, 5.5vw, 31px);
  line-height: 1.25;
}

.exploration-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.method-section {
  background: rgba(229, 238, 233, 0.45);
}

.process-list li > span {
  display: none;
}

.process-list li > div,
.process-list li > strong {
  grid-column: 2;
}

.process-list li > p {
  grid-column: 2;
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.capability-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-card li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: #474e4a;
}

.contact-section {
  width: auto;
  margin-inline: max(18px, calc((100vw - 1180px) / 2));
  border: 0;
  border-radius: var(--radius);
  color: #f8f4ea;
  background: var(--green-dark);
}

.contact-section .section-shell {
  width: 100%;
}

.contact-inner {
  display: grid;
  gap: 28px;
}

.contact-inner h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 9vw, 62px);
  line-height: 1.1;
}

.contact-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.contact-list button span {
  color: #aac1b8;
  font-size: 13px;
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

.site-footer p {
  margin: 0;
}

.hero.section-shell {
  display: grid;
  gap: 54px;
}

@media (min-width: 720px) {
  .section-shell,
  .site-footer {
    width: min(1180px, calc(100% - 72px));
  }

  .project-content {
    padding: 34px;
  }

  .project-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
}

@media (min-width: 960px) {
  .hero.section-shell {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.62fr);
    align-items: end;
    gap: 70px;
  }

  .section-heading {
    grid-template-columns: 1fr 0.8fr;
    align-items: end;
  }

  .section-heading .eyebrow {
    grid-column: 1 / -1;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
  }

  .exploration-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-card-featured .project-media {
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

/* Case pages */
.case-hero {
  padding: 58px 0 46px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb:hover {
  color: var(--green);
}

.case-title-grid {
  display: grid;
  gap: 30px;
}

.case-title h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 10vw, 82px);
  line-height: 1.07;
  letter-spacing: -0.04em;
}

.case-summary {
  max-width: 770px;
  margin: 24px 0 0;
  color: #424a46;
  font-size: clamp(17px, 4vw, 21px);
}

.case-meta {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.case-meta > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.case-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.case-cover {
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #dde4df;
  box-shadow: var(--shadow);
}

.case-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-cover figcaption,
.media-caption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-strong);
  font-size: 12px;
}

.case-content {
  border-top: 1px solid var(--line);
}

.case-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.case-section-grid {
  display: grid;
  gap: 24px;
}

.case-section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-section-label b {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
}

.case-section-body h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.2;
}

.case-section-body h3 {
  margin: 28px 0 12px;
  font-size: 18px;
}

.case-section-body > p {
  max-width: 820px;
  margin: 0 0 18px;
  color: #444b47;
}

.fact-grid,
.responsibility-grid,
.evidence-grid,
.boundary-grid,
.app-boundary-grid {
  display: grid;
  gap: 14px;
}

.fact-card,
.responsibility-card,
.evidence-card,
.boundary-card,
.app-boundary-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 254, 250, 0.75);
}

.fact-card span,
.responsibility-card span,
.evidence-card span,
.app-boundary-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-card strong,
.responsibility-card strong,
.evidence-card strong,
.app-boundary-card strong {
  display: block;
  margin: 10px 0 7px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.35;
}

.fact-card p,
.responsibility-card p,
.evidence-card p,
.app-boundary-card p,
.boundary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.responsibility-card.primary-duty {
  border-color: rgba(23, 74, 61, 0.35);
  background: var(--green-soft);
}

.responsibility-card.excluded-duty {
  border-color: rgba(199, 100, 47, 0.32);
  background: var(--orange-soft);
}

.responsibility-boundary {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.58);
}

.responsibility-boundary summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  color: var(--green);
  font-weight: 780;
  cursor: pointer;
  list-style: none;
}

.responsibility-boundary summary::-webkit-details-marker {
  display: none;
}

.responsibility-boundary summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  content: "+";
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  transform: translateY(-50%);
}

.responsibility-boundary[open] summary::after {
  content: "−";
}

.responsibility-boundary-content {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.responsibility-boundary-content strong {
  display: block;
  margin-top: 16px;
  font-family: var(--display);
  font-size: 20px;
}

.responsibility-boundary-content ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.responsibility-boundary-content li {
  margin: 7px 0;
  color: var(--muted);
  font-size: 14px;
}

.responsibility-card ul,
.boundary-card ul,
.implementation-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.responsibility-card li,
.boundary-card li,
.implementation-list li {
  margin: 8px 0;
}

.decision-table {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.decision-row {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: var(--paper-strong);
}

.decision-row:first-child {
  border-top: 0;
}

.decision-row b {
  color: var(--green);
}

.decision-row span {
  color: var(--muted);
  font-size: 14px;
}

.flow {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.flow-step {
  position: relative;
  padding: 15px 16px 15px 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
  font-size: 14px;
}

.flow-step::before {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  content: attr(data-step);
  font-size: 10px;
  font-weight: 800;
  transform: translateY(-50%);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0d1814;
  box-shadow: var(--shadow);
}

.video-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #15241f;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: opacity 180ms ease, transform 500ms ease;
}

.video-cover:hover img {
  opacity: 0.72;
  transform: scale(1.012);
}

.play-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: white;
  background: rgba(13, 50, 42, 0.86);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
}

.play-mark::after {
  margin-left: 4px;
  content: "▶";
  font-size: 23px;
}

.video-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: white;
  background: rgba(13, 24, 20, 0.78);
  font-size: 12px;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0f0d;
}

.gallery {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-strong);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.evidence-card {
  position: relative;
  padding-top: 50px;
}

.evidence-card::before {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--line-strong);
  content: "EVIDENCE";
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.boundary-card {
  border-color: rgba(199, 100, 47, 0.32);
  background: var(--orange-soft);
}

.learning-quote {
  margin: 0;
  padding: 28px 0 0;
  border-top: 3px solid var(--green);
  font-family: var(--display);
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.5;
}

.case-next {
  padding: 44px 0 70px;
}

.case-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.case-next span {
  color: var(--muted);
  font-size: 12px;
}

.case-next strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 5vw, 32px);
}

.boundary-visual {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.boundary-visual .bridge {
  padding: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.app-boundary-card small {
  display: block;
  margin-top: 14px;
  color: var(--orange);
  font-weight: 750;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.not-found {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 50px 0;
}

.not-found h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(70px, 24vw, 160px);
  color: var(--green);
}

.not-found p {
  margin: 0 0 24px;
  color: var(--muted);
}

@media (min-width: 720px) {
  .container {
    width: min(1180px, calc(100% - 72px));
  }

  .hero {
    padding: 82px 0 72px;
  }

  .project-body,
  .contact-panel {
    padding: 34px;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 28px;
  }

  .capability-grid,
  .fact-grid,
  .evidence-grid,
  .boundary-grid,
  .app-boundary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .responsibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .decision-row {
    grid-template-columns: 180px 1fr;
    gap: 20px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery figure:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
  }

  .flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a,
  .site-nav button {
    width: auto;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.62fr);
    align-items: end;
    gap: 70px;
  }

  .hero h1 {
    font-size: clamp(58px, 4.6vw, 66px);
  }

  .section-head {
    grid-template-columns: 1fr 0.8fr;
    align-items: end;
  }

  .project-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
  }

  .project-card:first-child .project-media {
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .capability-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-title-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: end;
    gap: 70px;
  }

  .case-section {
    padding: 76px 0;
  }

  .case-section-grid {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 52px;
  }

  .fact-grid,
  .evidence-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .boundary-visual {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }

  .boundary-visual .bridge {
    display: grid;
    place-items: center;
    max-width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .case-actions,
  .video-cover {
    display: none !important;
  }

  body {
    background: white;
  }

  .section,
  .case-section {
    break-inside: avoid;
  }
}
