:root {
  --board: #e4e2da;
  --sheet: #f1efe9;
  --ink: #1e2321;
  --graphite: #5c625d;
  --line: #b6b4aa;
  --line-soft: #cfcdc4;
  --signal: #a33628;
  --rail: 286px;
  --outer: 14px;
  --pad: clamp(22px, 3.2vw, 54px);
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--board);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--board);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
summary {
  font: inherit;
}

::selection {
  color: var(--sheet);
  background: var(--signal);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 12px;
  color: var(--sheet);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.drawing-set {
  min-height: 100svh;
  padding: var(--outer);
}

.sheet-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  align-items: stretch;
  min-height: calc(100svh - (var(--outer) * 2));
  border: 1.5px solid var(--ink);
  background: var(--sheet);
}

.sheet-main {
  min-width: 0;
  padding: var(--pad);
  background: var(--sheet);
}

.title-block {
  position: sticky;
  top: var(--outer);
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  height: calc(100svh - (var(--outer) * 2) - 3px);
  border-left: 1px solid var(--ink);
  background: var(--sheet);
  view-transition-name: site-rail;
}

.rail-identity {
  position: relative;
  padding: 24px 20px;
  border-bottom: 1px solid var(--ink);
}

.rail-identity a {
  text-decoration: none;
}

.rail-name {
  display: block;
  max-width: 7ch;
  font-size: 2rem;
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.rail-portrait {
  position: absolute;
  top: 7px;
  right: 14px;
  display: block;
  width: 92px;
  height: 96px;
  object-fit: cover;
  object-position: 50% 18%;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.sheet-index-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-bottom: 1px solid var(--ink);
}

.sheet-index-wrap summary {
  display: none;
}

.sheet-index-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.sheet-index-title {
  margin: 0;
  padding: 15px 20px 10px;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet-index {
  flex: 1;
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  min-height: 0;
}

.sheet-index a {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  align-content: center;
  min-height: 0;
  padding: clamp(9px, 1.5svh, 15px) 20px;
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.sheet-index a::before {
  position: absolute;
  top: -1px;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 220ms var(--ease);
}

.sheet-index a:hover,
.sheet-index a:focus-visible,
.sheet-index a[aria-current="page"] {
  background: #e5e2d9;
}

.sheet-index a:hover::before,
.sheet-index a:focus-visible::before,
.sheet-index a[aria-current="page"]::before {
  transform: scaleY(1);
  transform-origin: top;
}

.sheet-index a[aria-current="page"] .index-code {
  color: var(--signal);
}

.index-code {
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.69rem;
  line-height: 1;
}

.index-name {
  font-size: 0.85rem;
  font-weight: 590;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.index-kind {
  grid-column: 2;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.61rem;
}

.rail-utility {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--ink);
  border-bottom: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.contact-trigger {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  background: transparent;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.contact-trigger:hover,
.contact-trigger:focus-visible {
  color: var(--sheet);
  background: var(--ink);
}

.rail-issue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ink);
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.63rem;
}

.rail-issue span:last-child {
  text-align: right;
}

.rail-sheet {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 92px;
  padding: 16px 20px 18px;
}

.rail-sheet span:first-child {
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.rail-sheet-number {
  font-family: var(--mono);
  font-size: 2rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

/* Cover */

.cover-main {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(100svh - (var(--outer) * 2) - 3px);
  overflow: hidden;
}

.cover-stage {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  gap: clamp(44px, 7svh, 80px);
  width: min(100%, 920px);
  margin-inline: auto;
  padding: clamp(44px, 8svh, 90px) 0 clamp(62px, 10svh, 110px);
}

.cover-intro {
  align-self: center;
  max-width: 50rem;
  margin: 0 clamp(16px, 2.4vw, 36px);
  font-size: clamp(1.1rem, 1.65vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.6;
}

.cover-intro strong {
  font-weight: 600;
}

.cover-register {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cover-mark {
  --mark-size: clamp(72px, 7.2vw, 112px);
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.cover-mark:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 6px;
}

.cover-mark-petroot {
  --mark-size: clamp(90px, 8.8vw, 136px);
}

.cover-mark-enso {
  --mark-size: clamp(88px, 8.4vw, 128px);
}

.cover-mark-hampton {
  --mark-size: clamp(88px, 8vw, 122px);
}

.cover-mark-consulting {
  --mark-size: clamp(88px, 8.2vw, 126px);
}

.cover-mark-art {
  display: grid;
  height: clamp(110px, 10vw, 152px);
  margin-bottom: 26px;
  opacity: 0.38;
  place-items: center;
  transition:
    color 220ms ease,
    opacity 220ms ease;
}

.cover-logo {
  display: block;
  width: var(--mark-size);
  height: var(--mark-size);
}

.cover-logo-beckett {
  width: auto;
  height: calc(var(--mark-size) * 0.9);
  fill: currentColor;
}

.cover-logo-image {
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  transition: filter 220ms ease;
  user-select: none;
}

.cover-logo-document {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2.4;
}

.document-pen {
  fill: var(--sheet);
}

.document-pen-tip {
  fill: currentColor;
  stroke: none;
}

.cover-mark-code {
  position: relative;
  display: block;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1;
  text-align: center;
  transition:
    color 220ms ease,
    border-color 220ms ease;
}

.cover-mark-code::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 1px;
  height: 14px;
  background: var(--line);
  content: "";
  transition: background-color 220ms ease;
}

.cover-mark:hover .cover-mark-art,
.cover-mark:focus-visible .cover-mark-art,
.cover-mark.is-active .cover-mark-art {
  color: var(--ink);
  opacity: 1;
}

.cover-mark:hover .cover-logo-image,
.cover-mark:focus-visible .cover-logo-image,
.cover-mark.is-active .cover-logo-image {
  filter: brightness(0) saturate(100%);
}

/* Contact */

body.contact-open {
  overflow: hidden;
}

.contact-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--sheet);
}

.contact-dialog::backdrop {
  background: rgba(30, 35, 33, 0.58);
}

.contact-dialog-panel {
  padding: clamp(24px, 5vw, 44px);
}

.contact-dialog-header {
  display: flex;
  gap: 24px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.contact-dialog-kicker,
.contact-field label {
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-dialog-title {
  margin: 6px 0 0;
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 570;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.contact-dialog-close {
  padding: 0;
  border: 0;
  color: var(--graphite);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-field {
  display: grid;
  gap: 7px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.contact-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-note {
  margin: -2px 0 0;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.62rem;
}

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

.contact-form-status {
  min-height: 1.4em;
  margin: -4px 0 0;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.contact-form-status[data-state="success"] {
  color: #356342;
}

.contact-form-status[data-state="error"] {
  color: var(--signal);
}

.contact-submit {
  justify-self: start;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  color: var(--sheet);
  background: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  color: var(--ink);
  background: transparent;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.cover-roles {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 18px 0 2px;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.cover-roles li {
  padding: 0 18px;
  font-size: clamp(1.35rem, 2.4vw, 2.55rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1;
  text-align: center;
}

.cover-roles li + li {
  border-left: 1px solid var(--line);
}

/* Shared project sheets */

.project-main {
  padding-bottom: clamp(70px, 8vw, 130px);
}

.project-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}

.project-title {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 6.2rem);
  font-weight: 570;
  letter-spacing: -0.07em;
  line-height: 0.92;
  text-wrap: balance;
}

.project-meta {
  min-width: 190px;
  color: var(--graphite);
  font-size: clamp(1.1rem, 1.65vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.6;
  text-align: right;
}

.hero-figure {
  margin: clamp(28px, 4vw, 58px) 0 0;
}

.hero-media {
  position: relative;
  height: clamp(360px, 55vw, 780px);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #d8d6cf;
}

.portfolio-hero-image,
.project-photo {
  display: block;
  width: 100%;
  height: auto;
}

.photo-hero-media {
  height: auto;
  aspect-ratio: auto;
}

.hero-award {
  position: absolute;
  z-index: 2;
  top: 0;
  left: clamp(12px, 2.2%, 24px);
  display: block;
  width: clamp(72px, 13%, 142px);
  height: auto;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.figure-caption {
  display: none !important;
  gap: 24px;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.63rem;
  line-height: 1.45;
}

.figure-caption span:last-child {
  text-align: right;
}

.project-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: clamp(42px, 8vw, 120px);
  margin-top: clamp(56px, 7vw, 110px);
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.project-details-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(38px, 5vw, 68px);
  padding-top: 0;
  border-top: 0;
}

.project-details-layout .project-overview {
  max-width: none;
}

.project-overview-columns {
  columns: 1;
}

.project-overview-columns p {
  break-inside: avoid;
  max-width: none;
  margin: 0 0 1.35em;
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
  line-height: 1.6;
}

.project-overview-columns p:last-child {
  margin-bottom: 0;
}

.overview-capability-list {
  break-inside: avoid;
  margin: 0 0 1.5em;
  padding-left: 1.2em;
}

.overview-capability-list li {
  margin-bottom: 0.52em;
  padding-left: 0.25em;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.project-details-layout .project-data {
  max-width: none;
}

.project-details-layout .data-table caption {
  padding-bottom: 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.4vw, 3.5rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: none;
}

.project-details-layout .data-table tbody {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px clamp(28px, 4vw, 58px);
  padding: clamp(28px, 4vw, 46px);
  background: #ebe7de;
}

.project-details-layout .landscape-details-table tbody {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.project-details-layout .data-table tr {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
}

.project-details-layout .data-table tr.details-wide {
  grid-column: 1 / -1;
  padding-top: 24px;
}

.project-details-layout .data-table th,
.project-details-layout .data-table td {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
}

.project-details-layout .data-table th {
  margin-bottom: 12px;
  color: var(--signal);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.project-details-layout .data-table td {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .project-details-layout .data-table tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-details-layout .data-table tr {
    grid-column: auto !important;
    grid-row: auto !important;
    padding: 0 !important;
    border: 0;
  }

  .project-details-layout .data-table tr.details-wide {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  .project-overview-columns {
    columns: 1;
    column-rule: 0;
  }

  .project-details-layout .data-table tbody {
    grid-template-columns: 1fr;
  }

  .project-details-layout .landscape-details-table tbody {
    grid-template-columns: 1fr !important;
  }

  .project-details-layout .data-table tr {
    grid-column: 1 !important;
  }
}

.project-overview {
  max-width: 720px;
}

.project-overview h2,
.sheet-section h2 {
  margin: 0 0 22px;
  font-size: clamp(1.9rem, 3.4vw, 3.5rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1.04;
  text-wrap: balance;
}

.project-overview p,
.sheet-section > p {
  max-width: 67ch;
  margin: 0 0 1.15em;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.project-overview .project-overview-columns p {
  max-width: none;
}

.data-table,
.engagement-table,
.systems-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.45;
}

.data-table caption,
.engagement-table caption,
.systems-table caption {
  padding-bottom: 10px;
  color: var(--graphite);
  font-weight: 500;
  text-align: left;
  text-transform: uppercase;
}

.data-table th,
.data-table td,
.engagement-table th,
.engagement-table td,
.systems-table th,
.systems-table td {
  padding: 10px 10px 10px 0;
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
  text-align: left;
}

.data-table th {
  width: 34%;
  color: var(--graphite);
  font-weight: 400;
}

.engagement-table thead th,
.systems-table thead th {
  color: var(--graphite);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sheet-section {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 0;
  border-top: 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.media-grid figure {
  margin: 0;
}

.media-grid .wide {
  grid-column: span 8;
}

.media-grid .narrow {
  grid-column: span 4;
}

.media-grid .half {
  grid-column: span 6;
}

.media-box {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #d8d6cf;
}

.project-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(40px, 7vw, 100px);
  margin-top: clamp(56px, 7vw, 100px);
  padding: clamp(24px, 3vw, 34px) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.project-brief-copy {
  max-width: 760px;
}

.project-brief h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1;
}

.project-brief p {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
}

.project-facts {
  align-self: end;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.45;
}

.project-facts > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}

.project-facts > div:first-child {
  border-top: 0;
}

.project-facts dt {
  color: var(--graphite);
}

.project-facts dd {
  margin: 0;
}

.mixed-gallery {
  margin-top: clamp(72px, 9vw, 132px);
}

.project-photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 16px) 12px;
  align-items: start;
}

.project-photo-grid.is-masonry {
  grid-auto-flow: dense;
  grid-auto-rows: 8px;
}

.project-photo-grid.stable-gallery {
  grid-auto-flow: row;
  align-items: start;
}

.stable-gallery .photo-frame {
  width: 100%;
}

.stable-gallery .photo-lightbox-trigger {
  height: 100%;
}

.stable-gallery .project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stable-gallery .photo-span-4 .photo-frame {
  aspect-ratio: 3 / 4;
}

.stable-gallery .photo-span-5 .photo-frame,
.stable-gallery .photo-span-6 .photo-frame {
  aspect-ratio: 4 / 3;
}

.stable-gallery .photo-span-7 .photo-frame {
  aspect-ratio: 16 / 9;
}

.stable-gallery .photo-span-8 .photo-frame {
  aspect-ratio: 3 / 2;
}

.stable-gallery .photo-span-12 .photo-frame {
  aspect-ratio: 16 / 9;
}

.photo-figure {
  min-width: 0;
  margin: 0;
}

.photo-span-4 {
  grid-column: span 4;
}

.photo-span-5 {
  grid-column: span 5;
}

.photo-span-6 {
  grid-column: span 6;
}

.photo-span-7 {
  grid-column: span 7;
}

.photo-span-8 {
  grid-column: span 8;
}

.photo-span-12 {
  grid-column: span 12;
}

.photo-frame {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #d8d6cf;
}

.photo-lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  appearance: none;
}

.photo-lightbox-trigger::after {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(241, 239, 233, 0.82);
  color: var(--sheet);
  background: rgba(30, 35, 33, 0.76);
  content: "+";
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease;
}

.photo-lightbox-trigger:hover::after,
.photo-lightbox-trigger:focus-visible::after {
  color: var(--sheet);
  background: var(--signal);
}

.photo-lightbox-trigger:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -2px;
}

body.lightbox-open {
  overflow: hidden;
}

.photo-lightbox {
  width: calc(100vw - 32px);
  max-width: 1600px;
  height: calc(100svh - 32px);
  max-height: 1100px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--sheet);
  background: transparent;
}

.photo-lightbox::backdrop {
  background: rgba(18, 21, 20, 0.9);
  backdrop-filter: blur(4px);
}

.photo-lightbox-panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(241, 239, 233, 0.55);
  background: #151817;
}

.photo-lightbox-stage {
  position: absolute;
  inset: clamp(48px, 5vw, 76px);
  display: grid;
  overflow: hidden;
  padding: 0;
  place-items: center;
}

.photo-lightbox-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
}

.photo-lightbox-caption {
  display: none;
}

.photo-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(241, 239, 233, 0.72);
  color: var(--sheet);
  background: rgba(21, 24, 23, 0.82);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.67rem;
}

.photo-lightbox-close:hover,
.photo-lightbox-close:focus-visible {
  background: var(--signal);
}

.placeholder-note {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  padding: 6px 8px;
  color: var(--sheet);
  background: rgba(30, 35, 33, 0.82);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.diptych-photo {
  position: absolute;
  inset: 0;
  background-image: var(--image);
  background-repeat: no-repeat;
  background-size: 200% auto;
}

.diptych-photo.process {
  background-position: left var(--focus, center);
}

.diptych-photo.result {
  background-position: right var(--focus, center);
}

.sheet-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: clamp(90px, 13vw, 190px);
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.sheet-navigation a {
  text-underline-offset: 4px;
}

.sheet-navigation a:last-child {
  justify-self: end;
  text-align: right;
}

/* Beckett memory flow */

.memory-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(30px, 7vw, 110px);
}

.memory-heading h2,
.memory-heading p {
  margin: 0;
}

.memory-heading p {
  max-width: 63ch;
  font-size: clamp(0.92rem, 1.15vw, 1.06rem);
  line-height: 1.65;
}

.platform-memory-flow {
  margin: 30px 0 0;
  border: 1px solid var(--ink);
  background: #f7f4ec;
}

.platform-memory-flow article {
  display: grid;
  min-height: 150px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1.3fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding: clamp(26px, 3.6vw, 42px);
}

.platform-memory-flow h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.platform-memory-flow p {
  max-width: 44ch;
  margin: 0;
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  line-height: 1.55;
}

.platform-memory-flow i {
  display: grid;
  min-height: 54px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--signal);
  background: #dedbd3;
  font-family: var(--mono);
  font-style: normal;
  place-items: center;
}

.platform-memory-flow i {
  font-size: 0;
}

.platform-memory-flow i::after {
  content: "↓";
  font-size: 1rem;
}

.platform-memory-flow figcaption {
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

/* Beckett platform architecture */

.architecture-heading {
  display: block;
}

.architecture-heading h2,
.architecture-heading p {
  margin: 0;
}

.architecture-heading p {
  max-width: 58ch;
  font-size: clamp(0.92rem, 1.15vw, 1.06rem);
  line-height: 1.65;
}

.architecture-figure {
  margin: clamp(24px, 3vw, 38px) 0 0;
  padding: 0;
  border: 1px solid var(--ink);
  background: #ebe7de;
}

.architecture-figure > :not(figcaption) {
  border-right: 0;
  border-left: 0;
}

.architecture-layer {
  display: block;
  margin: 0;
  padding: clamp(28px, 4vw, 46px);
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
}

.architecture-layer h3 {
  margin: 0 0 clamp(24px, 3vw, 34px);
  padding: 0;
  border: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.architecture-nodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.architecture-nodes article {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 3vw, 38px);
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: transparent;
}

.architecture-nodes article:first-child {
  padding-left: 0;
}

.architecture-nodes article:last-child {
  padding-right: 0;
  border-right: 0;
}

.architecture-nodes strong {
  display: block;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.architecture-nodes p {
  max-width: 32ch;
  margin: 14px 0 0;
  color: var(--graphite);
  font-size: clamp(0.84rem, 1.05vw, 1rem);
  line-height: 1.48;
}

.architecture-core {
  color: var(--ink);
  background: transparent;
}

.architecture-core h3 {
  color: var(--ink);
}

.architecture-core .architecture-nodes article {
  min-height: 112px;
  border-color: rgba(38, 42, 36, 0.24);
  background: transparent;
}

.architecture-core .architecture-nodes p {
  color: var(--graphite);
}

.architecture-flow {
  display: grid;
  min-height: 82px;
  justify-items: center;
  align-content: center;
  gap: 7px;
  padding: 14px 24px;
  border: 0;
  background: transparent;
  font-size: clamp(0.8rem, 1vw, 0.94rem);
  line-height: 1.4;
  text-align: center;
}

.architecture-flow span {
  max-width: 54ch;
}

.architecture-flow b {
  color: var(--signal);
  font-size: 1rem;
  font-weight: 400;
}

.architecture-foundation {
  border-bottom: 0;
}

.architecture-operations {
  margin-top: 0;
  padding-top: clamp(28px, 4vw, 46px);
  border-top: 1px solid var(--ink);
  border-bottom: 0;
  background: transparent;
}

.architecture-operations .architecture-nodes article {
  display: flex;
  min-height: 92px;
  padding: 0 clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line-soft);
  background: transparent;
}

.architecture-operations .architecture-nodes article:first-child {
  padding-left: 0;
}

.architecture-operations .architecture-nodes article:last-child {
  padding-right: 0;
  border-right: 0;
}

.architecture-operations .architecture-nodes strong {
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.architecture-operations .architecture-nodes p {
  margin-top: 14px;
  font-size: clamp(0.84rem, 1.05vw, 1rem);
}

/* Beckett capability atlas */

.breadth-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1fr);
  align-items: end;
  gap: clamp(30px, 7vw, 110px);
}

.breadth-heading h2,
.breadth-heading p {
  margin: 0;
}

.breadth-board {
  margin-top: 30px;
  border: 1px solid var(--ink);
  background: #eee9df;
}

.capability-atlas {
  display: grid;
  grid-template-columns:
    minmax(190px, 0.82fr) 42px
    minmax(220px, 0.92fr) 42px
    minmax(290px, 1.25fr);
  min-height: 440px;
}

.atlas-zone {
  padding: clamp(22px, 3vw, 34px);
}

.atlas-title {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-token-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
}

.atlas-token {
  display: flex;
  min-height: 58px;
  align-items: flex-end;
  padding: 10px;
  border: 1px solid rgba(38, 42, 36, 0.55);
  background: rgba(252, 250, 245, 0.64);
  font-family: var(--mono);
  font-size: 0.61rem;
  line-height: 1.3;
}

.atlas-token:nth-child(2),
.atlas-token:nth-child(5) {
  background: rgba(182, 90, 54, 0.1);
}

.atlas-token:nth-child(3) {
  transform: translateY(7px);
}

.atlas-token.token-wide {
  grid-column: span 2;
}

.atlas-arrow {
  display: grid;
  border-right: 1px solid rgba(38, 42, 36, 0.32);
  border-left: 1px solid rgba(38, 42, 36, 0.32);
  color: #b65a36;
  place-items: center;
}

.atlas-arrow i {
  display: none;
}

.atlas-arrow span {
  font-family: var(--mono);
  font-size: 1.1rem;
}

.atlas-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
  color: #f3eee3;
  background:
    radial-gradient(circle at 80% 20%, rgba(182, 90, 54, 0.3), transparent 34%),
    #17201e;
}

.atlas-center-label {
  margin-bottom: clamp(36px, 6vw, 76px);
  color: #df8c67;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.atlas-center strong {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  font-weight: 560;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.atlas-center p {
  max-width: 27em;
  margin: 28px 0 0;
  color: rgba(243, 238, 227, 0.72);
  font-size: 0.8rem;
}

.atlas-surfaces {
  display: flex;
  flex-direction: column;
}

.atlas-surface-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(38, 42, 36, 0.28);
}

.atlas-surface-row:first-of-type {
  border-top-color: var(--ink);
}

.atlas-surface-row > span {
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.atlas-surface-row p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.4;
}

.breadth-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.breadth-scenarios article {
  min-height: 170px;
  padding: 22px;
  border-right: 1px solid var(--ink);
}

.breadth-scenarios article:last-child {
  border-right: 0;
}

.breadth-scenarios span {
  display: block;
  margin-bottom: 30px;
  color: #9b482c;
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.breadth-scenarios p {
  max-width: 34em;
  margin: 0;
  font-size: 0.82rem;
}

/* Digital product evidence */

.beckett-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 250px));
  justify-content: center;
  align-items: end;
  gap: clamp(14px, 2.2vw, 30px);
  padding: clamp(48px, 6vw, 88px) clamp(22px, 3.5vw, 54px) 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  /* Beckett 2.0: white canvas with flat collection tiles and geometric cutouts. */
  background: url("assets/beckett-tiles.svg") center / cover no-repeat, #fff;
}

.beckett-mobile-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dcdcdc;
  border-bottom: 0;
  border-radius: clamp(12px, 1.5vw, 22px) clamp(12px, 1.5vw, 22px) 0 0;
  background: #fff;
  box-shadow: 0 24px 54px rgba(41, 41, 41, 0.16);
}

.beckett-mobile-shot:nth-child(odd) {
  margin-bottom: -14%;
}

.beckett-mobile-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.digital-artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.artifact-card {
  display: flex;
  min-height: 570px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #e7e2d8;
}

.artifact-card h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
}

.artifact-card-copy {
  padding: 18px;
}

.artifact-card-copy p {
  margin-bottom: 0;
}

.artifact-media {
  position: relative;
  height: 410px;
  flex: 0 0 410px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(rgba(23, 32, 30, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 30, 0.055) 1px, transparent 1px),
    #efe9de;
  background-size: 26px 26px, 26px 26px, auto;
}

.artifact-media img {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(82%, 360px);
  height: auto;
  transform: translateX(-50%);
  box-shadow: 0 18px 36px rgba(27, 25, 22, 0.18);
}

.artifact-media-context img {
  top: -26px;
}

.memory-system {
  display: grid;
  height: 410px;
  flex: 0 0 410px;
  place-content: center;
  padding: 26px;
  border-bottom: 1px solid var(--ink);
  color: #f3eee3;
  background:
    radial-gradient(circle at 50% 50%, rgba(182, 90, 54, 0.2), transparent 42%),
    #17201e;
}

.memory-node {
  width: min(100%, 250px);
  padding: 14px 16px;
  border: 1px solid rgba(243, 238, 227, 0.5);
  background: rgba(23, 32, 30, 0.82);
}

.memory-node span {
  display: block;
  margin-bottom: 5px;
  color: #df8c67;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-node strong {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 560;
}

.memory-node-center {
  transform: translateX(13px);
  border-color: #df8c67;
}

.memory-connector {
  width: 1px;
  height: 22px;
  margin: 0 auto;
  background: rgba(243, 238, 227, 0.5);
}

.petroot-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  align-items: flex-end;
  gap: clamp(14px, 2vw, 28px);
  height: auto;
  padding: clamp(28px, 4vw, 52px) clamp(22px, 3.5vw, 54px) 0;
  overflow: hidden;
  /* PetRoot Rootcut: warm paper with flat, cut-paper sage hills. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'%3E%3Cpath d='M0 118C230 36 430 58 640 108S1010 168 1200 64V400H0Z' fill='%23E3E9D9'/%3E%3Cpath d='M0 262C250 196 520 226 770 258S1090 252 1200 214V400H0Z' fill='%23D9E2CC'/%3E%3C/svg%3E")
      bottom / 100% 48% no-repeat,
    #f4f3ec;
}

.petroot-screen {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border: 1px solid rgba(29, 27, 20, 0.22);
  border-bottom: 0;
  border-radius: clamp(12px, 1.5vw, 22px) clamp(12px, 1.5vw, 22px) 0 0;
  background: #f4f3ec;
  box-shadow: 0 20px 42px rgba(29, 27, 20, 0.12);
}

.petroot-details {
  margin-top: clamp(26px, 3vw, 44px);
}

.petroot-architecture-heading {
  display: block;
  margin-bottom: clamp(24px, 3vw, 38px);
}

.petroot-architecture-heading h2,
.petroot-architecture-heading p {
  margin: 0;
}

.petroot-architecture-heading p {
  max-width: 52ch;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  line-height: 1.55;
}

.petroot-system-map {
  padding: clamp(34px, 5vw, 72px);
  border: 1px solid var(--ink);
  background: #ebe7de;
}

.petroot-system-stage {
  display: grid;
  grid-template-columns: clamp(145px, 17vw, 220px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.petroot-system-stage h3,
.petroot-system-foundation h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.petroot-stage-nodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.petroot-stage-nodes article {
  min-width: 0;
  min-height: 128px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--ink);
  background: var(--paper);
}

.petroot-system-map article strong,
.petroot-api-node strong {
  display: block;
  margin-bottom: 9px;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 560;
  letter-spacing: -0.025em;
}

.petroot-system-map article span,
.petroot-api-node span {
  display: block;
  color: var(--graphite);
  font-size: clamp(0.84rem, 1.05vw, 1rem);
  line-height: 1.48;
}

.petroot-system-connector {
  display: grid;
  grid-template-columns: clamp(145px, 17vw, 220px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  height: 58px;
}

.petroot-system-connector span {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 1.2rem;
}

.petroot-api-node {
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid var(--ink);
  background: var(--paper);
}

.petroot-system-foundation {
  display: grid;
  grid-template-columns: clamp(145px, 17vw, 220px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  margin-top: clamp(38px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 38px);
  border-top: 1px solid var(--ink);
}

.petroot-system-foundation > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.petroot-system-foundation span {
  color: var(--graphite);
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  line-height: 1.45;
}

.petroot-system-foundation strong {
  display: block;
  color: var(--ink);
  font-weight: 560;
}

.petroot-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  margin-top: 28px;
}

.petroot-feature {
  min-width: 0;
  margin: 0;
}

.petroot-feature-media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 12px 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #e8e5dc;
}

.petroot-feature-media img {
  display: block;
  width: min(100%, 300px);
  height: auto;
  max-width: 100%;
}

.petroot-research-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.petroot-research-stats > div {
  padding: clamp(18px, 2.5vw, 28px);
  border-right: 1px solid var(--ink);
}

.petroot-research-stats > div:last-child {
  border-right: 0;
}

.petroot-research-stats dt {
  font-size: clamp(2rem, 4vw, 4.1rem);
  font-weight: 560;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.petroot-research-stats dd {
  margin: 12px 0 0;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.petroot-flow-label {
  margin: clamp(38px, 5vw, 68px) 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--ink);
}

.process-step {
  position: relative;
  min-height: 210px;
  padding: 22px;
  border-right: 1px solid var(--ink);
}

.process-step:last-child {
  border-right: 0;
}

.process-step span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.process-step h3 {
  margin: 45px 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
  font-weight: 560;
  letter-spacing: -0.05em;
}

.process-step p {
  margin: 0;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.68rem;
}

/* Consulting */

.consulting-logo-field {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(80px, 1fr);
  gap: clamp(18px, 2.5vw, 34px) clamp(26px, 4vw, 58px);
  min-height: 0;
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #e8e5dc;
}

.consulting-logo {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 82px;
}

.consulting-logo img {
  display: block;
  width: min(100%, 180px);
  height: 70px;
  object-fit: contain;
  object-position: center;
}

.consulting-logo-meta img,
.consulting-logo-facebook img {
  filter: invert(30%) sepia(99%) saturate(3010%) hue-rotate(208deg) brightness(101%) contrast(109%);
}

.consulting-logo-forrester img {
  filter: brightness(0);
}

.specimen-index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 52px);
  border-right: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.specimen-index strong {
  color: var(--signal);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.1em;
  line-height: 0.8;
}

.specimen-copy {
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 90px);
}

.specimen-copy blockquote {
  max-width: 28ch;
  margin: 0;
  font-size: clamp(1.8rem, 3.7vw, 4rem);
  font-weight: 470;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.specimen-copy cite {
  display: block;
  margin-top: 24px;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-style: normal;
}

/* Hampton West systems diagram */

.systems-diagram {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: clamp(20px, 3vw, 44px);
  border: 1px solid var(--ink);
  background: #e9e6de;
}

.systems-diagram rect,
.systems-diagram path,
.systems-diagram line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}

.systems-diagram text {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}

.systems-diagram .accent-text {
  fill: var(--signal);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: sheet-out 140ms ease both;
}

::view-transition-new(root) {
  animation: sheet-in 220ms ease both;
}

::view-transition-group(site-rail),
::view-transition-old(site-rail),
::view-transition-new(site-rail) {
  animation: none;
}

@keyframes sheet-out {
  to { opacity: 0; }
}

@keyframes sheet-in {
  from { opacity: 0; }
}

@media (min-width: 901px) and (max-height: 820px) {
  .rail-identity {
    padding: 16px 18px;
  }

  .rail-name {
    font-size: 1.7rem;
  }

  .rail-portrait {
    top: 4px;
    right: 12px;
    width: 70px;
    height: 74px;
  }

  .sheet-index-title {
    padding: 10px 18px 7px;
  }

  .sheet-index a {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 18px;
  }

  .rail-utility {
    gap: 4px;
    padding: 10px 18px;
  }

  .rail-issue {
    padding: 8px 18px;
  }

  .rail-sheet {
    min-height: 66px;
    padding: 12px 18px;
  }

  .rail-sheet-number {
    font-size: 1.7rem;
  }

  .cover-stage {
    gap: clamp(28px, 5svh, 42px);
    padding-block: clamp(24px, 5svh, 40px) clamp(40px, 7svh, 58px);
  }
}

@media (max-width: 900px) {
  :root {
    --outer: 8px;
  }

  .sheet-frame {
    display: flex;
    flex-direction: column;
  }

  .title-block {
    position: relative;
    top: auto;
    order: -1;
    height: auto;
    border-bottom: 1px solid var(--ink);
    border-left: 0;
  }

  .rail-identity {
    display: block;
    padding: 14px 16px;
  }

  .rail-name {
    max-width: none;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    line-height: 1;
  }

  .sheet-index-wrap {
    display: block;
    flex: none;
  }

  .sheet-index-content {
    position: static;
    display: block;
  }

  html:not(.navigation-ready) .sheet-index-wrap > :not(summary) {
    display: none;
  }

  .sheet-index {
    grid-template-rows: none;
  }

  .sheet-index-wrap summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line-soft);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.65rem;
    list-style: none;
  }

  .sheet-index-wrap summary::-webkit-details-marker {
    display: none;
  }

  .sheet-index-wrap summary::after {
    content: "+";
    color: var(--signal);
    font-size: 1rem;
  }

  .sheet-index-wrap[open] summary::after {
    content: "×";
  }

  .sheet-index-title {
    display: none;
  }

  .sheet-index a {
    min-height: 48px;
    padding: 12px 16px;
  }

  .rail-issue {
    display: none;
  }

  .rail-utility {
    padding: 12px 16px 14px;
    border-top: 1px solid var(--ink);
    border-bottom: 0;
  }

  .rail-sheet {
    position: absolute;
    top: 13px;
    right: 16px;
    z-index: 3;
    display: none;
  }

  .sheet-main {
    padding: clamp(22px, 5vw, 38px);
  }

  .cover-main {
    min-height: calc(100svh - 100px);
  }

  .cover-stage {
    gap: 68px;
    padding: clamp(40px, 7svh, 70px) 0 64px;
  }

  .cover-intro {
    margin-inline: 16px;
    font-size: clamp(1.1rem, 2.7vw, 1.45rem);
  }

  .rail-portrait {
    top: 4px;
    right: 16px;
    width: 38px;
    height: 38px;
  }

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

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

  .project-facts {
    max-width: 620px;
  }

  .project-data {
    max-width: 620px;
  }

  .memory-heading,
  .architecture-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .architecture-heading p {
    max-width: 680px;
  }

  .memory-heading p {
    max-width: 680px;
  }

  .breadth-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .breadth-heading p {
    max-width: 680px;
  }

  .capability-atlas {
    grid-template-columns: 1fr;
  }

  .atlas-arrow {
    min-height: 46px;
    border-top: 1px solid rgba(38, 42, 36, 0.32);
    border-right: 0;
    border-bottom: 1px solid rgba(38, 42, 36, 0.32);
    border-left: 0;
  }

  .atlas-arrow span {
    transform: rotate(90deg);
  }

  .atlas-center {
    min-height: 330px;
  }

  .atlas-center-label {
    margin-bottom: 48px;
  }

  .digital-artifact-grid {
    grid-template-columns: 1fr;
  }

  .artifact-card {
    min-height: 240px;
  }

  .petroot-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 12px;
  }
}

@media (max-width: 760px) {
  .project-photo-grid.stable-gallery {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .stable-gallery .photo-figure {
    grid-column: 1;
  }

  .stable-gallery .photo-frame {
    aspect-ratio: auto !important;
  }

  .stable-gallery .photo-lightbox-trigger,
  .stable-gallery .project-photo {
    height: auto;
  }

  .stable-gallery .project-photo {
    object-fit: contain;
  }

  .project-photo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 10px;
  }

  .photo-span-4,
  .photo-span-5 {
    grid-column: span 2;
  }

  .photo-span-6,
  .photo-span-7,
  .photo-span-8 {
    grid-column: span 4;
  }

  .photo-span-12 {
    grid-column: span 6;
  }

  .mixed-gallery .figure-caption {
    display: grid;
    gap: 3px;
  }

  .mixed-gallery .figure-caption span:last-child {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .cover-stage {
    gap: 40px;
    padding: 30px 0 42px;
  }

  .cover-intro {
    margin: 0;
    font-size: clamp(1.05rem, 4.8vw, 1.25rem);
  }

  .cover-register {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 28px;
  }

  .cover-mark {
    --mark-size: clamp(66px, 16vw, 92px);
    grid-column: span 2;
  }

  .cover-mark:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .cover-mark:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .cover-mark-art {
    height: 100px;
    margin-bottom: 15px;
  }

  .cover-roles {
    padding-top: 14px;
  }

  .cover-roles li {
    padding: 0 8px;
    font-size: clamp(1rem, 5.2vw, 1.35rem);
  }

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

  .project-title {
    font-size: clamp(2.45rem, 11vw, 4.6rem);
    line-height: 0.96;
  }

  .project-meta {
    min-width: 0;
    text-align: left;
  }

  .hero-media {
    height: 62svh;
  }

  .beckett-showcase {
    gap: 10px;
    padding: 36px 14px 0;
  }

  .beckett-mobile-shot {
    border-radius: 12px 12px 0 0;
  }

  .atlas-token-field,
  .breadth-scenarios {
    grid-template-columns: 1fr;
  }

  .atlas-token.token-wide {
    grid-column: auto;
  }

  .atlas-token:nth-child(3) {
    transform: none;
  }

  .atlas-surface-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .breadth-scenarios article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .breadth-scenarios article:last-child {
    border-bottom: 0;
  }

  .artifact-media,
  .memory-system {
    height: 380px;
    flex-basis: 380px;
  }

  .photo-hero-media {
    height: auto;
    aspect-ratio: auto;
  }

  .figure-caption {
    display: grid;
    gap: 3px;
  }

  .figure-caption span:last-child {
    text-align: left;
  }

  .media-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
  }

  .photo-span-4,
  .photo-span-5 {
    grid-column: span 1;
  }

  .photo-span-6,
  .photo-span-7,
  .photo-span-8,
  .photo-span-12 {
    grid-column: span 2;
  }

  .media-grid .wide,
  .media-grid .narrow,
  .media-grid .half {
    grid-column: auto;
  }

  .media-box {
    min-height: 430px;
  }

  .diptych-photo {
    background-size: auto 100%;
  }

  .digital-artifact-grid,
  .process-flow {
    grid-template-columns: 1fr;
  }

  .platform-memory-flow {
    display: block;
  }

  .platform-memory-flow article {
    min-height: 210px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
  }

  .platform-memory-flow i {
    min-height: 44px;
    border-top: 1px solid var(--ink);
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    border-left: 0;
    font-size: 0;
  }

  .platform-memory-flow i::after {
    content: "↓";
    font-size: 1rem;
  }

  .architecture-nodes {
    grid-template-columns: 1fr;
  }

  .architecture-figure {
    padding: 0;
  }

  .architecture-layer {
    padding: 26px 20px;
  }

  .architecture-core {
    padding: 24px 20px;
  }

  .architecture-connector {
    grid-template-columns: 1fr;
    height: 48px;
  }

  .architecture-connector span {
    grid-column: 1;
  }

  .architecture-nodes article {
    min-height: 0;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .architecture-operations .architecture-nodes article {
    min-height: 0;
    padding: 22px 0;
  }

  .architecture-nodes article:last-child,
  .architecture-operations .architecture-nodes article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .architecture-nodes article:first-child,
  .architecture-operations .architecture-nodes article:first-child {
    padding-top: 0;
  }


  .process-step {
    min-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .petroot-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: flex-end;
    height: auto;
    min-height: 0;
    gap: 14px;
    padding: 24px 18px;
  }

  .petroot-screen {
    width: 100%;
    max-height: none;
    border-bottom: 1px solid rgba(29, 27, 20, 0.22);
    border-radius: 16px;
  }

  .petroot-architecture-heading,
  .petroot-system-map {
    grid-template-columns: 1fr;
  }

  .petroot-architecture-heading {
    gap: 18px;
  }

  .petroot-system-map {
    padding: 26px 20px;
  }

  .petroot-system-stage,
  .petroot-system-foundation {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .petroot-stage-nodes,
  .petroot-system-foundation > div {
    grid-template-columns: 1fr;
  }

  .petroot-stage-nodes article {
    min-height: 0;
  }

  .petroot-system-connector {
    grid-template-columns: 1fr;
    height: 48px;
  }

  .petroot-system-connector span {
    grid-column: 1;
  }

  .petroot-feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .petroot-feature-media {
    padding-top: 18px;
  }

  .petroot-feature-media img {
    width: min(100%, 320px);
  }

  .petroot-research-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .petroot-research-stats > div:nth-child(2) {
    border-right: 0;
  }

  .petroot-research-stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }

  .consulting-logo-field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 74px;
    gap: 12px 20px;
    padding: 20px 18px;
  }

  .consulting-logo {
    min-height: 0;
  }

  .consulting-logo img {
    width: min(100%, 138px);
    height: 58px;
  }

  .consulting-logo-forrester {
    grid-column: 1 / -1;
  }

  .engagement-table,
  .engagement-table thead,
  .engagement-table tbody,
  .engagement-table tr,
  .engagement-table th,
  .engagement-table td,
  .systems-table,
  .systems-table thead,
  .systems-table tbody,
  .systems-table tr,
  .systems-table th,
  .systems-table td {
    display: block;
  }

  .engagement-table thead,
  .systems-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .engagement-table tr,
  .systems-table tr {
    padding: 12px 0;
    border-top: 1px solid var(--line-soft);
  }

  .engagement-table td,
  .systems-table td {
    padding: 4px 0;
    border: 0;
  }

  .engagement-table td:first-child,
  .systems-table td:first-child {
    color: var(--signal);
  }

  .sheet-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .sheet-navigation a:nth-child(2) {
    display: none;
  }
}

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

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

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

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