:root {
  color-scheme: light;
  --paper: #fffdfb;
  --soft: #f5f1ed;
  --ink: #181818;
  --muted: #66615e;
  --line: #dedbd7;
  --red: #db001b;
  --on-red: #fffdfb;
  --header: rgb(255 253 251 / 96%);
  --dialog-shadow: rgb(55 40 38 / 18%);
  --focus: #db001b;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171717;
  --soft: #222222;
  --ink: #f6f2ee;
  --muted: #bdb7b2;
  --line: #3b3937;
  --red: #f12a42;
  --on-red: #fff8f6;
  --header: rgb(23 23 23 / 96%);
  --dialog-shadow: rgb(0 0 0 / 42%);
  --focus: #ff5b6d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

section[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

select option {
  color: #181818;
  background: #fffdfb;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: #181818;
  transform: translateY(-150%);
}

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

.page-shell {
  width: min(100% - 8vw, 1680px);
  margin-inline: auto;
}

.announcement {
  min-height: 34px;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.announcement p {
  margin: 0;
}

.announcement a {
  color: var(--red);
  margin-left: .75rem;
  border-bottom: 1px solid currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 80px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(150px, .55fr);
  align-items: center;
  gap: 28px;
  padding: 0 3.2vw;
  background: var(--header);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: min-height 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  min-height: 72px;
  border-color: var(--line);
}

.wordmark {
  justify-self: start;
  color: var(--red);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 300;
  letter-spacing: .38em;
  line-height: 1;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.5vw, 50px);
  white-space: nowrap;
}

.primary-nav a,
.header-contact {
  position: relative;
  font-size: 14px;
  letter-spacing: .12em;
}

.primary-nav a::after,
.header-contact::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after,
.header-contact:hover::after,
.header-contact:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Interior pages */

.page-kicker {
  margin: 0 0 28px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-lead {
  max-width: 650px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.55;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(48px, 8vw, 140px);
  align-items: center;
  min-height: calc(100dvh - 114px);
  padding-block: clamp(64px, 6vw, 96px);
}

.page-hero h1,
.editorial-intro h1,
.method-hero h1,
.about-hero h1,
.contact-hero h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 88px);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .98;
}

.page-hero-media {
  height: min(70dvh, 760px);
  margin: 0;
  overflow: hidden;
  background: var(--soft);
}

.page-hero-media img,
.about-hero figure img,
.contact-hero figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-jump {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-jump a {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 20px;
  border-right: 1px solid var(--line);
  font-size: 15px;
}

.section-jump a:last-child {
  border-right: 0;
}

.section-jump a:hover {
  color: var(--red);
}

.section-jump span,
.service-number,
.process-number,
.principle-grid article > p:first-child,
.expect-grid article > p:first-child {
  color: var(--red);
  font-size: 12px;
  letter-spacing: .12em;
}

.service-list {
  padding-block: clamp(80px, 10vw, 160px);
}

.service-row {
  display: grid;
  grid-template-columns: 70px minmax(260px, .75fr) 1.25fr;
  gap: clamp(28px, 5vw, 90px);
  padding: clamp(48px, 6vw, 86px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row h2,
.process-list h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 66px);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1;
}

.service-copy > p {
  max-width: 690px;
  margin: 0 0 34px;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.5;
}

.service-copy dl,
.case-facts dl {
  margin: 0;
}

.service-copy dl > div,
.case-facts dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.service-copy dt,
.case-facts dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
}

.service-copy dd,
.case-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.wide-cta {
  margin-bottom: clamp(90px, 12vw, 180px);
  padding: clamp(60px, 7vw, 110px);
  background: var(--soft);
}

.wide-cta > p {
  margin: 0 0 22px;
  color: var(--red);
}

.wide-cta h2,
.evidence-note h2,
.method-overview h2,
.manifesto h2,
.about-split h2,
.brief-heading h2 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 88px);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: 1;
}

.editorial-intro {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(50px, 10vw, 160px);
  align-items: end;
  min-height: 70dvh;
  padding-block: clamp(80px, 10vw, 160px);
}

.editorial-intro > .page-kicker {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

.editorial-intro > div p {
  color: var(--muted);
  line-height: 1.65;
}

.case-study {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(50px, 8vw, 140px);
  align-items: start;
  padding-block: clamp(90px, 10vw, 160px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.case-study-reverse .case-media {
  order: 2;
}

.case-media {
  height: min(74dvh, 780px);
  margin: 0;
  overflow: hidden;
  background: var(--soft);
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-heading h2 {
  margin: 24px 0;
  font-size: clamp(48px, 5.3vw, 86px);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: .98;
}

.case-heading > p:last-child {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

.case-facts {
  margin-top: 56px;
}

.evidence-note {
  padding-block: clamp(100px, 12vw, 190px);
}

.evidence-note-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 70px;
  align-items: end;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.evidence-note-grid > p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.evidence-note-grid .dark-link {
  margin-top: 0;
}

.method-hero {
  position: relative;
  min-height: calc(100dvh - 114px);
  margin: 0 16px;
  overflow: hidden;
  color: #fff;
}

.method-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-hero-copy {
  position: relative;
  z-index: 2;
  padding-top: clamp(90px, 10vw, 150px);
}

.method-hero-copy .page-kicker {
  color: #fff;
}

.method-hero-copy > p:last-child {
  max-width: 640px;
  margin: 34px 0 0;
  font-size: 18px;
}

.method-overview {
  display: grid;
  grid-template-columns: 1.1fr .65fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
  padding-block: clamp(100px, 12vw, 190px);
}

.method-overview > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-list article {
  display: grid;
  grid-template-columns: 70px .7fr 1fr;
  gap: clamp(30px, 6vw, 100px);
  padding: clamp(52px, 7vw, 100px) 0;
  border-bottom: 1px solid var(--line);
}

.process-list article > div:last-child h3 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 400;
}

.process-list article > div:last-child > p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.process-list ul,
.about-split ul {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.process-list li,
.about-split li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.about-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  min-height: calc(100dvh - 114px);
  padding-block: clamp(64px, 6vw, 96px);
}

.about-hero figure {
  height: min(72dvh, 780px);
  margin: 0;
  overflow: hidden;
}

.manifesto {
  display: grid;
  grid-template-columns: .4fr 1.2fr;
  gap: clamp(50px, 9vw, 150px);
  padding-block: clamp(100px, 12vw, 190px);
  border-top: 1px solid var(--line);
}

.manifesto > div > p {
  max-width: 770px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.principles {
  padding-block: clamp(80px, 10vw, 160px);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-grid article {
  min-height: 330px;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.principle-grid article:last-child {
  border-right: 0;
}

.principle-grid h3 {
  margin: 70px 0 18px;
  font-size: 24px;
  font-weight: 400;
}

.principle-grid article > p:last-child {
  color: var(--muted);
  font-size: 15px;
}

.about-split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 9vw, 150px);
  align-items: center;
  padding-block: clamp(100px, 12vw, 190px);
}

.about-split figure {
  height: min(76dvh, 800px);
  margin: 0;
  overflow: hidden;
}

.about-split figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-split li {
  font-size: 17px;
}

.fine-print {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(50px, 9vw, 150px);
  align-items: center;
  min-height: 76dvh;
  padding-block: clamp(64px, 6vw, 96px);
}

.contact-hero figure {
  height: min(64dvh, 690px);
  margin: 0;
  overflow: hidden;
}

.brief-section {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(50px, 8vw, 130px);
  padding-block: clamp(100px, 12vw, 190px);
  border-top: 1px solid var(--line);
}

.brief-heading > p:last-child {
  max-width: 520px;
  margin-top: 34px;
  color: var(--muted);
}

.project-form-full {
  max-width: none;
  margin-top: 0;
}

.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 30px 0;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.form-options legend {
  float: left;
  width: 100%;
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: .05em;
}

.form-options label {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  margin: 0;
  letter-spacing: 0;
}

.form-options input {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--red);
}

.contact-expect {
  padding-bottom: clamp(100px, 12vw, 190px);
}

.public-contact {
  padding-block: clamp(80px, 10vw, 150px);
  border-top: 1px solid var(--line);
}

.public-contact > h2 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 72px);
  font-weight: 300;
  letter-spacing: -.04em;
}

.public-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.public-contact-grid article {
  min-height: 220px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.public-contact-grid article:last-child {
  border-right: 0;
}

.public-contact-grid h3 {
  margin: 0 0 50px;
  font-size: 14px;
  font-weight: 500;
}

.public-contact-grid p,
.public-contact-grid a {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.wechat-qr {
  width: 160px;
  height: 160px;
  margin-top: 22px;
  object-fit: contain;
  background: #fff;
}

.expect-title {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 72px);
  font-weight: 300;
  letter-spacing: -.04em;
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.expect-grid article {
  min-height: 300px;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.expect-grid article:last-child {
  border-right: 0;
}

.expect-grid h2 {
  margin: 70px 0 18px;
  font-size: 28px;
  font-weight: 400;
}

.expect-grid article > p:last-child {
  color: var(--muted);
  font-size: 15px;
}

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
}

.theme-icon {
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.menu-toggle {
  align-content: center;
  gap: 8px;
}

.menu-toggle span {
  width: 34px;
  height: 1px;
  background: currentColor;
  transition: transform 220ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100dvh - 114px);
  max-height: 960px;
  margin: 0 16px;
  overflow: hidden;
  color: #fff;
  background: #3e2c21;
}

.hero > img,
.media-feature > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.16, 1, .3, 1);
}

.hero:hover > img,
.media-feature:hover > img {
  transform: scale(1.018);
}

.hero-shade,
.media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 58%) 0%, rgb(0 0 0 / 18%) 58%, rgb(0 0 0 / 8%) 100%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 12%;
  left: 5.2%;
  max-width: 700px;
}

.hero-copy > p,
.media-copy > p {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hero h1,
.media-copy h2 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 104px);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: .98;
}

.light-link,
.dark-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-width: 178px;
  margin-top: 46px;
  padding: 0 0 12px;
  border-bottom: 1px solid currentColor;
  font-size: 18px;
}

.light-link span,
.dark-link span {
  margin-left: auto;
  transition: transform 220ms ease;
}

.light-link:hover span,
.dark-link:hover span {
  transform: translateX(6px);
}

.floating-cta {
  position: absolute;
  right: 3.2%;
  bottom: 0;
  z-index: 3;
  min-width: 230px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 28px;
  color: var(--on-red);
  background: var(--red);
  font-size: 18px;
  transition: transform 180ms ease;
}

.floating-cta:active,
.submit-button:active {
  transform: scale(.985);
}

.project-section,
.capability-section {
  padding-block: clamp(90px, 11vw, 180px);
}

.section-intro {
  margin-bottom: clamp(52px, 6vw, 92px);
}

.section-intro h2 {
  max-width: 900px;
  margin: 0;
  color: var(--red);
  font-size: clamp(38px, 4.4vw, 72px);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.section-intro p {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: .9fr .92fr 1.28fr;
  align-items: start;
  gap: clamp(28px, 4.2vw, 76px);
}

.project-card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.project-card-square {
  margin-top: 68px;
}

.image-frame {
  display: block;
  overflow: hidden;
  background: var(--soft);
}

.project-card-tall .image-frame {
  aspect-ratio: 4 / 5;
}

.project-card-square .image-frame {
  aspect-ratio: 1 / 1;
}

.project-card-wide .image-frame {
  aspect-ratio: 6 / 5;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.16, 1, .3, 1);
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.035);
}

.project-title {
  display: block;
  margin-top: 16px;
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 400;
  line-height: 1.2;
}

.media-feature {
  position: relative;
  min-height: 78dvh;
  max-height: 940px;
  margin: 0 16px;
  overflow: hidden;
  color: #fff;
  background: #243223;
}

.media-copy {
  position: absolute;
  z-index: 2;
  top: 11%;
  left: 5.2%;
  max-width: 820px;
}

.media-copy h2 {
  font-size: clamp(44px, 5vw, 82px);
}

.evidence-section {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(54px, 8vw, 140px);
  align-items: center;
  padding-block: clamp(100px, 12vw, 190px);
}

.evidence-image {
  height: min(720px, 72vw);
  overflow: hidden;
}

.evidence-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-label,
.dialog-type {
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.evidence-copy h2,
.contact-form-wrap h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(42px, 4.3vw, 72px);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1.03;
}

.evidence-list {
  margin-top: 52px;
}

.evidence-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-list h3,
.evidence-list p {
  margin: 0;
}

.evidence-list h3 {
  font-size: 18px;
  font-weight: 500;
}

.evidence-list p {
  color: var(--muted);
  font-size: 15px;
}

.dark-link {
  color: var(--ink);
}

.capability-section {
  overflow: hidden;
}

.capability-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 28vw);
  gap: clamp(24px, 3.2vw, 56px);
  padding: 0 4vw 34px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--red) var(--soft);
  scrollbar-width: thin;
}

.capability-item {
  scroll-snap-align: start;
}

.capability-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.capability-item h3 {
  margin: 18px 0 5px;
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 400;
}

.capability-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 760px;
  margin-bottom: clamp(90px, 10vw, 160px);
  background: var(--soft);
}

.contact-form-wrap {
  padding: clamp(42px, 6vw, 96px);
}

.project-form {
  max-width: 760px;
  margin-top: 54px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-form label {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: .05em;
}

.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-size: 17px;
}

.project-form textarea {
  resize: vertical;
}

.project-form input::placeholder,
.project-form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  outline: 0;
  border-color: var(--red);
}

.project-form [aria-invalid="true"] {
  border-color: var(--red);
}

.submit-button {
  min-width: 230px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 10px;
  padding: 0 24px;
  color: var(--on-red);
  background: var(--red);
  cursor: pointer;
  transition: transform 180ms ease;
}

.submit-button:disabled {
  cursor: wait;
  opacity: .62;
}

.form-note {
  max-width: 480px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-result {
  margin-top: 24px;
  padding: 18px;
  border-left: 3px solid var(--red);
  background: var(--paper);
  font-size: 15px;
}

.form-result[data-state="success"],
.admin-feedback[data-state="success"] {
  border-color: #217346;
}

.form-result[data-state="error"],
.admin-feedback[data-state="error"] {
  border-color: var(--red);
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.project-form .consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 680px;
  margin: 26px 0 10px;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
}

.consent-check input,
.publish-check input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.consent-check a {
  color: var(--red);
  border-bottom: 1px solid currentColor;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-filters button {
  min-height: 58px;
  padding: 0 24px;
  color: var(--ink);
  background: transparent;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.case-filters button[aria-pressed="true"] {
  color: var(--on-red);
  background: var(--red);
}

[data-case][hidden] {
  display: none;
}

.case-detail {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(50px, 8vw, 140px);
  align-items: start;
  padding-block: clamp(70px, 8vw, 130px);
}

.case-detail-media {
  position: sticky;
  top: 100px;
  height: min(76dvh, 800px);
  margin: 0;
  overflow: hidden;
  background: var(--soft);
}

.case-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-detail-copy h1,
.case-detail-error h1,
.admin-hero h1,
.legal-page > h1 {
  margin: 26px 0 0;
  font-size: clamp(48px, 5.4vw, 88px);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: 1;
}

.case-detail-facts {
  margin: 64px 0 0;
}

.case-detail-facts > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.case-detail-facts dt {
  font-weight: 700;
}

.case-detail-facts dd {
  margin: 0;
  color: var(--muted);
}

.case-detail-loading,
.case-detail-error {
  grid-column: 1 / -1;
  min-height: 54dvh;
}

.legal-page {
  max-width: 1080px;
  padding-block: clamp(80px, 10vw, 160px);
}

.legal-page section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-page section:first-of-type {
  margin-top: 90px;
}

.legal-page section h2,
.legal-page section p {
  margin: 0;
}

.legal-page section h2 {
  font-size: 20px;
  font-weight: 500;
}

.legal-page section p,
.legal-note {
  color: var(--muted);
  line-height: 1.7;
}

.legal-note {
  margin-top: 46px;
  padding: 24px;
  border-left: 3px solid var(--red);
  background: var(--soft);
}

.admin-hero {
  min-height: 58dvh;
  padding-block: clamp(80px, 10vw, 150px);
}

.admin-session {
  display: flex;
  scroll-margin-top: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, var(--red));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-session p { margin: 0; }

.admin-session p:first-child { font-weight: 600; }

.admin-session-dot {
  display: inline-block;
  width: .65rem;
  height: .65rem;
  margin-right: .55rem;
  border-radius: 50%;
  background: #16803b;
}

.admin-hero > p:last-child {
  max-width: 680px;
  margin-top: 34px;
  color: var(--muted);
}

.admin-login,
.admin-section {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(50px, 8vw, 130px);
  padding-block: clamp(70px, 9vw, 140px);
  border-top: 1px solid var(--line);
}

.admin-login h2,
.admin-section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 66px);
  font-weight: 300;
  letter-spacing: -.04em;
}

.admin-login p,
.admin-section-heading > p:last-child {
  max-width: 580px;
  color: var(--muted);
}

.admin-form,
.admin-login form {
  min-width: 0;
}

.admin-form fieldset {
  margin: 0 0 48px;
  padding: 0;
  border: 0;
}

.admin-form legend {
  width: 100%;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
}

.admin-form label,
.admin-login label {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: .04em;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-login input {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form .publish-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.credential-note {
  padding: 26px !important;
  background: var(--soft);
}

.credential-note p {
  margin: 0;
  color: var(--muted);
}

code {
  padding: 2px 5px;
  background: var(--soft);
  font-family: Consolas, monospace;
  font-size: .9em;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.text-button {
  min-height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

.admin-feedback {
  min-height: 28px;
  margin-top: 24px;
  padding-left: 14px;
  border-left: 3px solid transparent;
}

.admin-records {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
}

.admin-records article {
  padding: 26px;
  background: var(--soft);
}

.admin-records h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

.admin-records p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.client-project-records {
  grid-column: 1 / -1;
  display: grid;
  gap: 24px;
  margin-top: 34px;
}

.client-project-card {
  display: grid;
  grid-template-columns: minmax(230px, .55fr) minmax(0, 1.45fr);
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line);
}

.client-project-card header h3 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 350;
  letter-spacing: -.035em;
}

.client-project-facts {
  padding: 24px;
  background: var(--soft);
}

.client-project-facts h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.client-project-facts p {
  margin: 9px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.client-project-card > .admin-actions {
  grid-column: 2;
}

.hermes-task-state.is-delivered {
  color: #16803b;
  border-color: #16803b;
}

.hermes-status {
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hermes-status[data-state="complete"]::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #16803b;
}

.hermes-boundary {
  display: grid;
  gap: 7px;
  margin: 8px 0 30px;
  padding: 22px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hermes-boundary strong {
  color: var(--ink);
  font-size: 14px;
}

.hermes-records {
  grid-column: 1 / -1;
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.hermes-records > .admin-records {
  grid-column: auto;
}

.hermes-task-card {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid var(--line);
}

.hermes-task-card > header {
  align-self: start;
}

.hermes-task-card > .admin-records,
.hermes-task-card > .text-button,
.hermes-task-card > .hermes-error {
  grid-column: 1;
}

.hermes-task-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hermes-task-card h3 {
  margin: 0 0 24px;
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 350;
  letter-spacing: -.03em;
}

.hermes-task-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.hermes-task-state.is-running,
.hermes-task-state.is-queued {
  color: var(--red);
  border-color: var(--red);
}

.hermes-task-state.is-completed {
  color: #16803b;
  border-color: #16803b;
}

.hermes-output {
  grid-column: 2;
  grid-row: 1 / span 4;
  min-width: 0;
}

.hermes-output h4 {
  margin: 28px 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
}

.hermes-output ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.hermes-output li + li {
  margin-top: 8px;
}

.hermes-overview {
  margin: 0 0 28px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.35;
}

.hermes-output pre {
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  font: 14px/1.7 Consolas, monospace;
}

.hermes-evidence,
.hermes-usage,
.hermes-review-note,
.hermes-error {
  padding: 16px;
  border-left: 3px solid var(--red);
  background: var(--soft);
  color: var(--muted);
  line-height: 1.6;
}

.hermes-usage {
  border-left-color: var(--ink);
  font-size: 13px;
}

.hermes-review {
  grid-column: 2;
}

.hermes-review textarea {
  width: 100%;
  min-height: 96px;
  margin-bottom: 18px;
  padding: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  resize: vertical;
}

.rd-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(460px, 1.14fr);
  min-height: calc(100dvh - 140px);
  padding-top: clamp(40px, 6vw, 92px);
  padding-bottom: clamp(54px, 7vw, 110px);
}

.rd-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(30px, 6vw, 100px);
}

.rd-hero h1 {
  max-width: 780px;
  margin: 24px 0 30px;
  color: var(--red);
  font-size: clamp(48px, 6.6vw, 112px);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .98;
}

.rd-hero .page-lead {
  max-width: 620px;
}

.rd-hero-media {
  min-height: 620px;
  margin: 0;
  overflow: hidden;
}

.rd-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.rd-hero-actions .submit-button {
  text-decoration: none;
}

.rd-process {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(44px, 8vw, 140px);
  padding-top: clamp(80px, 10vw, 150px);
  padding-bottom: clamp(80px, 10vw, 150px);
  border-top: 1px solid var(--line);
}

.rd-process h2,
.rd-section-heading h2 {
  margin: 22px 0 0;
  font-size: clamp(42px, 5.4vw, 88px);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: 1;
}

.rd-process ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rd-process li {
  display: grid;
  grid-template-columns: 48px minmax(150px, .55fr) 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.rd-process li span {
  color: var(--red);
  font-size: 12px;
}

.rd-process li strong {
  font-weight: 500;
}

.rd-process li p {
  margin: 0;
  color: var(--muted);
}

.rd-workspace,
.rd-query {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
  gap: clamp(48px, 9vw, 150px);
  padding-top: clamp(80px, 10vw, 150px);
  padding-bottom: clamp(80px, 10vw, 150px);
  border-top: 1px solid var(--line);
}

.rd-workspace {
  background: var(--soft);
}

.rd-section-heading > p:last-child {
  max-width: 490px;
  margin: 32px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.rd-form {
  max-width: 900px;
}

.rd-form label {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  letter-spacing: .05em;
}

.rd-form input,
.rd-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-size: 17px;
}

.rd-form textarea {
  resize: vertical;
}

.rd-form input::placeholder,
.rd-form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.rd-form input:focus,
.rd-form textarea:focus,
.rd-form [aria-invalid="true"] {
  outline: 0;
  border-color: var(--red);
}

.rd-form .consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 28px 0 12px;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
}

.rd-form .consent-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.rd-created-result p:first-child {
  margin-top: 0;
}

.rd-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  align-items: end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.rd-credentials p {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.rd-credentials strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rd-query-form {
  max-width: 680px;
}

.rd-project-result {
  margin-top: 54px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.rd-project-result > header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px 28px;
}

.rd-project-result > header .page-kicker,
.rd-project-result > header h2 {
  grid-column: 1;
}

.rd-project-result > header h2 {
  margin: 4px 0 0;
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 300;
  letter-spacing: -.04em;
}

.rd-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 12px 16px;
  color: var(--red);
  border: 1px solid var(--red);
}

.rd-updated,
.rd-waiting-note,
.rd-batch-basis {
  color: var(--muted);
}

.rd-waiting-note {
  max-width: 720px;
  margin: 36px 0 0;
  padding: 22px;
  border-left: 3px solid var(--red);
  background: var(--soft);
  line-height: 1.7;
}

.rd-sop {
  margin-top: 48px;
}

.rd-sop > h2 {
  margin: 0 0 18px;
  color: var(--red);
  font-size: clamp(32px, 4.5vw, 70px);
  font-weight: 300;
  letter-spacing: -.04em;
}

.rd-sop section {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) 1fr;
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.rd-sop section h3 {
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
}

.rd-sop ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.rd-sop li + li {
  margin-top: 9px;
}

.rd-sop pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  font: 14px/1.7 Consolas, monospace;
}

.compact-button {
  min-width: 190px;
  min-height: 52px;
}

.contact-image {
  min-height: 100%;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  padding-block: clamp(80px, 10vw, 150px);
}

.footer-wordmark {
  margin: 0 0 44px;
  color: var(--red);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: .4em;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-top: 74px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-links a {
  width: fit-content;
  font-size: 18px;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bottom {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.project-dialog {
  width: min(980px, calc(100% - 34px));
  max-height: 86dvh;
  padding: clamp(34px, 5vw, 74px);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 34px 100px var(--dialog-shadow);
}

.project-dialog::backdrop {
  background: rgb(0 0 0 / 58%);
  backdrop-filter: blur(3px);
}

.dialog-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(42px, 7vw, 100px);
}

.dialog-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 300;
  line-height: 1.03;
}

.dialog-summary {
  margin: 24px 0 0;
  color: var(--muted);
}

.dialog-detail {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.dialog-detail h3,
.dialog-detail p {
  margin: 0;
}

.dialog-detail h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.dialog-detail p {
  color: var(--muted);
  font-size: 15px;
}

.dialog-close {
  min-width: 116px;
  min-height: 48px;
  margin-top: 42px;
  color: var(--on-red);
  background: var(--red);
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: hero-enter 700ms cubic-bezier(.16, 1, .3, 1) both;
  }

  .hero > img {
    animation: hero-image-enter 900ms cubic-bezier(.16, 1, .3, 1) both;
  }

  @keyframes hero-enter {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes hero-image-enter {
    from { opacity: .65; transform: scale(1.035); }
    to { opacity: 1; transform: scale(1); }
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    min-height: calc(100dvh - 80px);
    display: none;
    align-content: start;
    padding: 42px 5vw;
    background: var(--paper);
    border-top: 1px solid var(--line);
  }

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

  .primary-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -.02em;
  }

  .site-header.is-scrolled .primary-nav {
    top: 72px;
    min-height: calc(100dvh - 72px);
  }

  .header-contact {
    display: none;
  }

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

  .section-jump a:nth-child(3) {
    border-right: 0;
  }

  .section-jump a:nth-child(n+4) {
    border-top: 1px solid var(--line);
  }

  .method-overview {
    grid-template-columns: 1.45fr .75fr;
  }

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

  .principle-grid article:nth-child(2) {
    border-right: 0;
  }

  .principle-grid article:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .rd-hero {
    grid-template-columns: 1fr 1fr;
  }

  .rd-process,
  .rd-workspace,
  .rd-query {
    gap: 54px;
  }
}

@media (max-width: 767px) {
  section[id] {
    scroll-margin-top: 72px;
  }

  body {
    font-size: 16px;
  }

  .page-shell {
    width: min(100% - 32px, 1680px);
  }

  .announcement {
    min-height: 30px;
    font-size: 10px;
  }

  .announcement a {
    margin-left: .4rem;
  }

  .site-header,
  .site-header.is-scrolled {
    min-height: 72px;
    padding: 0 16px;
  }

  .wordmark {
    font-size: 22px;
    letter-spacing: .28em;
  }

  .header-tools {
    gap: 4px;
  }

  .primary-nav,
  .site-header.is-scrolled .primary-nav {
    top: 72px;
    min-height: calc(100dvh - 72px);
  }

  .theme-toggle,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .menu-toggle span {
    width: 27px;
  }

  .hero {
    min-height: 72dvh;
    margin: 0 8px;
  }

  .hero > img {
    object-position: 58% center;
  }

  .hero-shade,
  .media-shade {
    background: linear-gradient(90deg, rgb(0 0 0 / 62%), rgb(0 0 0 / 18%));
  }

  .hero-copy {
    top: 11%;
    right: 22px;
    left: 22px;
  }

  .hero-copy > p,
  .media-copy > p {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1;
  }

  .light-link,
  .dark-link {
    margin-top: 34px;
    font-size: 16px;
  }

  .floating-cta {
    right: 0;
    min-width: 182px;
    min-height: 58px;
    padding: 0 20px;
    font-size: 15px;
  }

  .project-section,
  .capability-section {
    padding-block: 82px;
  }

  .section-intro {
    margin-bottom: 42px;
  }

  .section-intro h2 {
    font-size: 39px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .project-card-square {
    margin-top: 0;
  }

  .project-card .image-frame {
    aspect-ratio: 4 / 3;
  }

  .project-title {
    font-size: 20px;
  }

  .media-feature {
    min-height: 70dvh;
    margin: 0 8px;
  }

  .media-feature > img {
    object-position: 54% center;
  }

  .media-copy {
    top: 10%;
    right: 24px;
    left: 24px;
  }

  .media-copy h2 {
    font-size: 40px;
  }

  .evidence-section {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-block: 88px;
  }

  .evidence-image {
    height: 112vw;
  }

  .evidence-copy h2,
  .contact-form-wrap h2,
  .site-footer h2 {
    font-size: 40px;
  }

  .evidence-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .capability-track {
    grid-auto-columns: 78vw;
    padding-inline: 16px;
  }

  .contact-section {
    width: 100%;
    grid-template-columns: 1fr;
    margin-bottom: 90px;
  }

  .contact-form-wrap {
    padding: 60px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-image {
    min-height: 420px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-block: 82px;
  }

  .footer-links {
    padding-top: 0;
    gap: 30px;
  }

  .footer-links a {
    font-size: 16px;
  }

  .footer-bottom {
    min-height: 160px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .footer-bottom p {
    margin: 0;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .page-hero,
  .about-hero,
  .contact-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 64px 86px;
  }

  .page-hero h1,
  .editorial-intro h1,
  .method-hero h1,
  .about-hero h1,
  .contact-hero h1 {
    font-size: 45px;
    line-height: 1;
  }

  .page-hero-media,
  .about-hero figure,
  .contact-hero figure {
    height: 112vw;
    max-height: 620px;
  }

  .section-jump {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .section-jump a,
  .section-jump a:nth-child(3) {
    min-height: 88px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .section-jump a:nth-child(even) {
    border-right: 0;
  }

  .service-row,
  .process-list article {
    grid-template-columns: 44px 1fr;
    gap: 24px;
  }

  .service-copy,
  .process-list article > div:last-child {
    grid-column: 2;
  }

  .service-copy dl > div,
  .case-facts dl > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .wide-cta {
    width: 100%;
    padding: 60px 20px;
  }

  .wide-cta h2,
  .evidence-note h2,
  .method-overview h2,
  .manifesto h2,
  .about-split h2,
  .brief-heading h2 {
    font-size: 42px;
  }

  .editorial-intro {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 70px 90px;
  }

  .editorial-intro > .page-kicker {
    margin-bottom: -10px;
  }

  .case-study,
  .case-study-reverse {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .case-study-reverse .case-media {
    order: 0;
  }

  .case-media {
    height: 108vw;
    max-height: 650px;
  }

  .case-heading h2 {
    font-size: 48px;
  }

  .evidence-note-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .evidence-note-grid .dark-link {
    margin-top: 34px;
  }

  .method-hero {
    min-height: 76dvh;
    margin: 0 8px;
  }

  .method-hero-copy {
    padding-top: 74px;
  }

  .method-overview,
  .manifesto,
  .about-split,
  .brief-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .method-overview > p:last-child {
    grid-column: auto;
  }

  .principle-grid,
  .expect-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid article,
  .principle-grid article:nth-child(2),
  .expect-grid article {
    min-height: 260px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .principle-grid article:first-child,
  .expect-grid article:first-child {
    border-top: 0;
  }

  .about-split figure {
    height: 116vw;
  }

  .brief-section {
    width: 100%;
    padding: 80px 20px;
  }

  .form-options {
    display: grid;
  }

  .case-filters {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .case-detail,
  .admin-login,
  .admin-section {
    grid-template-columns: 1fr;
  }

  .case-detail-media {
    position: static;
    height: 112vw;
  }

  .case-detail-facts > div,
  .legal-page section {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-records {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .hermes-records {
    grid-column: auto;
  }

  .hermes-task-card {
    grid-template-columns: 1fr;
  }

  .client-project-card {
    grid-template-columns: 1fr;
  }

  .client-project-card > .admin-actions {
    grid-column: 1;
    align-items: stretch;
    flex-direction: column;
  }

  .client-project-card > .admin-actions > * {
    width: 100%;
  }

  .hermes-task-card > .admin-records,
  .hermes-task-card > .text-button,
  .hermes-task-card > .hermes-error,
  .hermes-output,
  .hermes-review {
    grid-column: 1;
    grid-row: auto;
  }

  .hermes-task-card .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hermes-task-card .admin-actions button {
    width: 100%;
  }

  .public-contact-grid {
    grid-template-columns: 1fr;
  }

  .public-contact-grid article {
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .legal-page section:first-of-type {
    margin-top: 60px;
  }

  .rd-hero,
  .rd-process,
  .rd-workspace,
  .rd-query {
    grid-template-columns: 1fr;
  }

  .rd-hero {
    padding-top: 58px;
  }

  .rd-hero-copy {
    padding-right: 0;
  }

  .rd-hero h1 {
    font-size: 48px;
  }

  .rd-hero-media {
    min-height: 0;
    height: 112vw;
    max-height: 620px;
  }

  .rd-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rd-hero-actions .submit-button {
    width: 100%;
  }

  .rd-process ol {
    margin-top: 10px;
  }

  .rd-process li {
    grid-template-columns: 38px 1fr;
  }

  .rd-process li p {
    grid-column: 2;
  }

  .rd-workspace {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .rd-credentials,
  .rd-project-result > header,
  .rd-sop section {
    grid-template-columns: 1fr;
  }

  .rd-status,
  .rd-project-result > header .page-kicker,
  .rd-project-result > header h2 {
    grid-column: 1;
    grid-row: auto;
  }

  .rd-status {
    justify-self: start;
  }

  .rd-sop section {
    gap: 14px;
  }
}

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

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

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .project-dialog::backdrop {
    backdrop-filter: none;
  }
}

/* Paid HERMES food R&D */
.hermes-food-stage {
  position: relative;
  min-height: calc(100dvh - 128px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(48px, 7vw, 110px) 4vw;
  isolation: isolate;
}

.hermes-food-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/thai-ingredients.webp") center 58% / cover no-repeat;
}

.hermes-food-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 34%);
}

.hermes-food-shell {
  width: min(1180px, 100%);
}

.paid-access-panel,
.hermes-food-panel {
  color: #181818;
  background: #fffdfb;
  border: 1px solid rgb(255 255 255 / 70%);
  box-shadow: 0 22px 80px rgb(0 0 0 / 26%);
}

.paid-access-panel {
  width: min(560px, 100%);
  padding: clamp(32px, 5vw, 68px);
}

.paid-access-panel h1 {
  margin: 18px 0 22px;
  color: #db001b;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: 1;
}

.paid-access-panel > p:not(.page-kicker, .paid-access-help) {
  max-width: 420px;
  color: #66615e;
}

.paid-access-form {
  margin-top: 36px;
}

.paid-access-form label,
.hermes-food-form label {
  display: grid;
  gap: 10px;
  color: #181818;
  font-size: 14px;
}

.paid-access-form input,
.hermes-food-form input,
.hermes-food-form textarea {
  width: 100%;
  padding: 14px 0;
  color: #181818;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #777;
  border-radius: 0;
  outline: 0;
  resize: vertical;
}

.paid-access-form input:focus,
.hermes-food-form input:focus,
.hermes-food-form textarea:focus,
.hermes-food-form [aria-invalid="true"] {
  border-color: #db001b;
}

.paid-access-form input::placeholder,
.hermes-food-form input::placeholder,
.hermes-food-form textarea::placeholder {
  color: #777;
  opacity: 1;
}

.paid-access-form .submit-button {
  width: 100%;
  margin-top: 28px;
}

.paid-access-help {
  margin: 28px 0 0;
  color: #66615e;
  font-size: 14px;
}

.paid-access-help a {
  color: #db001b;
  border-bottom: 1px solid currentColor;
}

.hermes-food-panel {
  padding: clamp(28px, 4vw, 56px);
}

.hermes-food-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 40px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid #dedbd7;
}

.hermes-food-brand {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.6vw, 49px);
  line-height: 1.05;
}

.hermes-food-brand span {
  margin-right: .28em;
  color: #db001b;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: 400;
  letter-spacing: .16em;
}

.hermes-food-ps {
  justify-self: end;
  max-width: 410px;
  margin: 4px 0 0;
  color: #db001b;
  font-size: 13px;
  line-height: 1.55;
}

.paid-session-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 0 4px;
  color: #66615e;
  font-size: 12px;
}

.paid-session-bar .text-button {
  color: #181818;
  background: transparent;
}

.hermes-food-main {
  margin-top: 10px;
}

.hermes-food-main textarea {
  min-height: 92px;
  font-size: 18px;
}

.hermes-food-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 7vw, 80px);
  margin-top: 18px;
}

.hermes-generate-button {
  display: flex;
  justify-content: space-between;
  width: min(470px, 100%);
  margin: 26px auto 0;
}

.hermes-output-note {
  margin: 18px 0 0;
  color: #66615e;
  text-align: center;
  font-size: 13px;
}

.hermes-food-form .admin-feedback {
  text-align: center;
}

.paid-sop-section {
  display: grid;
  grid-template-columns: minmax(250px, .55fr) minmax(0, 1.45fr);
  gap: clamp(48px, 8vw, 130px);
  padding-top: clamp(76px, 9vw, 130px);
  padding-bottom: clamp(76px, 9vw, 130px);
}

.paid-sop-result {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.paid-sop-result > h2 {
  margin: 0 0 14px;
  color: var(--red);
  font-size: clamp(36px, 4.8vw, 72px);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1;
}

.paid-sop-result section {
  display: grid;
  grid-template-columns: minmax(130px, .28fr) 1fr;
  gap: 28px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.paid-sop-result section h3 {
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
}

.paid-sop-result ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.paid-sop-result li + li {
  margin-top: 8px;
}

.admin-field-note {
  align-self: end;
  min-height: 54px;
  padding: 14px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.paid-code-once {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  border: 2px solid var(--red);
}

.paid-code-once code {
  color: var(--red);
  font-size: 20px;
  letter-spacing: .08em;
}

.paid-access-records {
  margin-top: 44px;
}

.payment-access-section {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: clamp(56px, 9vw, 150px);
  padding-top: clamp(88px, 10vw, 150px);
  padding-bottom: clamp(88px, 10vw, 150px);
}

.payment-access-intro h2 {
  margin: 18px 0 28px;
  color: var(--red);
  font-size: clamp(44px, 5.8vw, 86px);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .98;
}

.payment-access-intro > p:not(.page-kicker) {
  max-width: 560px;
  color: var(--muted);
}

.payment-plan {
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
}

.payment-plan div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.payment-plan dt {
  color: var(--muted);
  font-size: 13px;
}

.payment-plan dd {
  margin: 0;
}

.payment-access-card {
  padding: clamp(28px, 4vw, 54px);
  color: #181818;
  background: #f5f1ed;
}

.payment-plan-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.payment-plan-picker legend {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  color: #181818;
  font-size: 13px;
}

.payment-plan-picker label {
  display: block;
  margin: 0;
  cursor: pointer;
}

.payment-plan-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.payment-plan-picker span {
  display: grid;
  min-height: 132px;
  align-content: space-between;
  gap: 8px;
  padding: 16px;
  background: #fffdfb;
  border: 1px solid #c9c5c1;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.payment-plan-picker strong {
  font-size: 14px;
  font-weight: 500;
}

.payment-plan-picker b {
  color: var(--red);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -.04em;
}

.payment-plan-picker small {
  color: #66615e;
  font-size: 12px;
}

.payment-plan-picker input:checked + span {
  color: #fff;
  background: #181818;
  border-color: #181818;
}

.payment-plan-picker input:checked + span b,
.payment-plan-picker input:checked + span small {
  color: #fff;
}

.payment-plan-picker input:focus-visible + span {
  outline: 3px solid rgba(219, 0, 27, .28);
  outline-offset: 3px;
}

.payment-method-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.payment-method-picker legend {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  color: #181818;
  font-size: 13px;
}

.payment-method-picker label {
  display: block;
  margin: 0;
  cursor: pointer;
}

.payment-method-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.payment-method-picker span {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 10px 14px;
  background: #fffdfb;
  border: 1px solid #c9c5c1;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.payment-method-picker input:checked + span {
  color: #fff;
  background: #181818;
  border-color: #181818;
}

.payment-method-picker input:focus-visible + span {
  outline: 3px solid rgba(219, 0, 27, .28);
  outline-offset: 3px;
}

.payment-qr-wrap {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 24px;
  background: #fffdfb;
}

.payment-qr-wrap img {
  width: min(380px, 100%);
  max-height: 540px;
  object-fit: contain;
}

.payment-qr-wrap p {
  margin: 0;
  color: #66615e;
}

.payment-instructions {
  margin: 24px 0 30px;
  color: #66615e;
}

.payment-qr-caption {
  margin: 14px 0 0;
  color: #181818;
  font-size: 13px;
  text-align: center;
}

.payment-order-form > label,
.payment-order-form .form-row > label {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
}

.payment-order-form input:not([type="radio"]),
.payment-order-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 0;
  color: #181818;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #181818;
  border-radius: 0;
}

.payment-order-form input[type="file"] {
  padding: 12px;
  background: #fffdfb;
  border: 1px solid #dedbd7;
}

.payment-order-form label > span {
  color: #66615e;
  font-size: 12px;
}

.payment-order-form .submit-button {
  width: 100%;
}

.payment-order-success {
  margin-top: 20px;
  padding: 18px;
  color: #181818;
  background: #fffdfb;
  border-left: 3px solid #16803b;
}

@media (max-width: 760px) {
  .hermes-food-stage {
    min-height: calc(100dvh - 112px);
    padding: 30px 18px;
  }

  .hermes-food-heading,
  .hermes-food-fields,
  .payment-access-section,
  .paid-sop-section,
  .paid-sop-result section {
    grid-template-columns: 1fr;
  }

  .hermes-food-heading {
    gap: 18px;
  }

  .hermes-food-ps {
    justify-self: start;
  }

  .hermes-food-brand span {
    display: block;
    margin: 0 0 8px;
  }

  .paid-sop-result section {
    gap: 12px;
  }

  .paid-code-once {
    grid-template-columns: 1fr;
  }

  .payment-plan-picker {
    grid-template-columns: 1fr;
  }

  .payment-plan-picker span {
    min-height: 94px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .payment-plan-picker small {
    grid-column: 1 / -1;
  }

  .payment-qr-wrap {
    min-height: 300px;
    padding: 16px;
  }
}

/* Production disclosure, case/SOP archive and order lookup */
.case-list-loading,
.case-empty {
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(72px, 11vw, 150px);
}

.case-empty h2 {
  max-width: 760px;
  margin: 18px 0;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.04;
}

.case-empty > p:not(.page-kicker) {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
}

.case-type {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.public-sop {
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(70px, 10vw, 130px);
  border-top: 1px solid var(--line);
}

.public-sop > header {
  max-width: 900px;
  margin-bottom: 54px;
}

.public-sop > header h2 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 400;
  line-height: 1.04;
}

.public-sop-section {
  display: grid;
  grid-template-columns: minmax(190px, .45fr) minmax(0, 1.55fr);
  gap: 36px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.public-sop-section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.public-sop-section ol {
  margin: 0;
  padding-left: 22px;
}

.public-sop-section li {
  padding: 0 0 14px 8px;
  color: var(--muted);
  line-height: 1.65;
}

.business-disclosure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.business-disclosure dl {
  margin: 0;
}

.business-disclosure dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.business-disclosure dt {
  color: var(--muted);
}

.business-disclosure dd {
  margin: 0;
}

.business-license-image {
  width: 100%;
  height: auto;
  background: #f3f0eb;
}

.business-disclosure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.legal-page ul {
  max-width: 860px;
  margin: 0;
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.payment-status-form {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid #d8d4cf;
}

.payment-status-form h3,
.payment-status-form p {
  margin: 0 0 12px;
}

.payment-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.payment-status-row button {
  min-height: 52px;
  padding: 0 24px;
  color: #fff;
  background: #181818;
  border: 0;
  cursor: pointer;
}

.footer-bottom [data-legal-links] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 760px) {
  .public-sop-section,
  .business-disclosure,
  .business-disclosure dl div,
  .payment-status-row {
    grid-template-columns: 1fr;
  }

  .business-disclosure {
    gap: 42px;
  }
}
