/* Editorial identity shared by the register, case files and career record. */
body[data-identity="editorial"] {
  --ground: #112933;
  --night: #0c222b;
  --chalk: #f0f0e7;
  --muted: #c1cfd0;
  --copper: #e2b9a2;
  --editorial-paper: #edece1;
  --editorial-line: #6a848c;
  --file-panel: #183641;
  --file-rule: #54717a;
  --file-measure: 62ch;
  --file-ease: cubic-bezier(.2,.75,.3,1);
}

[data-identity] .identity {
  background: var(--night);
  border-color: #44616c;
}
[data-identity] .identity nav :is(a,button):hover {
  background-color: #1a3944;
}
[data-identity] .identity nav [aria-current] {
  background: #1a3944;
  border-color: var(--copper);
}
[data-identity] .intro {
  border-color: var(--editorial-line);
}
.portfolio-home[data-identity] .intro .opening-art img {
  object-position: 61% 57%;
}
[data-identity] .intro h1 em { color: var(--copper); }
[data-identity] .topline p, [data-identity] .row-category {
  letter-spacing: .085em;
}
[data-identity] .opening-cue {
  padding-inline-end: 16px;
  border-bottom: 1px solid var(--copper);
}
[data-identity] .work-label {
  align-items: end;
  gap: 20px 40px;
  padding-top: clamp(16px, 2.7vw, 42px);
}
[data-identity] .work-label h2 { text-wrap: balance; }
[data-identity] .pathway-note { max-width: var(--file-measure); }
[data-identity] .pathways { background: transparent; border-color: var(--editorial-line); }
[data-identity] .pathways button:not([aria-pressed="true"]) { background: transparent; }
[data-identity] .pathways button:not([aria-pressed="true"]):hover { background: var(--file-panel); }

[data-identity] .register > .project-row .project-heading { padding-block: 24px 12px; }
[data-identity] .register > .project-row .project-summary { padding-block: 15px 0; }
[data-identity] .register > .project-row .project-action {
  gap: 12px;
  margin-top: 11px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--copper);
  text-underline-offset: 4px;
}
[data-identity] .project-row:is(:hover,:focus-within) .project-action {
  text-decoration: underline;
}
[data-identity] .project-row .project-action span {
  display: inline-block;
  transition: translate 230ms var(--file-ease);
}
[data-identity] .project-row:is(:hover,:focus-within) .project-action span { translate: 4px -2px; }
[data-identity] .register > .project-row .project-heading h3 { text-wrap: balance; }
[data-identity] .register > .project-row:first-child {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  column-gap: clamp(25px, 4vw, 62px);
}
[data-identity] .register > .project-row:first-child .project-heading { padding-top: clamp(24px, 3vw, 44px); }
[data-identity] .register > .project-row:first-child .project-art { min-height: 360px; }
[data-identity] .register > .project-row:not(:first-child) .project-art { align-self: stretch; }
[data-identity] .register .evidence-cover {
  background: #d7d9cc;
}
[data-identity] .register .digital-art { background: #c6d1cb; }
[data-identity] .register .custom-art { background: #d9d1c2; }
[data-identity] .editorial-folio {
  --photo-anchor: 50% 49%;
}
[data-identity] .art-service-bay { --photo-anchor: 55% 51%; }
[data-identity] .editorial-folio figcaption {
  padding-block: 9px 4px;
  border-top: 1px solid #5a757e;
}
[data-identity] .editorial-crop { isolation: isolate; }
[data-identity] .ownership-index {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-content: center;
  gap: 0 22px;
  padding: clamp(14px, 2.2vw, 30px);
  background: #142f3a;
  color: var(--chalk);
  counter-reset: model;
}
[data-identity] .ownership-index span {
  counter-increment: model;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--file-rule);
  font: 520 clamp(17px,2vw,27px)/1.1 var(--display);
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
[data-identity] .ownership-index span::before {
  content: counter(model, decimal-leading-zero);
  font: 10px/1.2 var(--sans);
  letter-spacing: .1em;
  color: var(--copper);
}
[data-identity] .ownership-index::after { display: none; }

[data-identity] .work-exit { border-top: 1px solid var(--editorial-line); padding-block: 23px 0; }
[data-identity] .chapter-entry {
  --photo-anchor: 58% 51%;
  min-height: clamp(315px, 33vw, 460px);
  margin-top: clamp(28px, 3.8vw, 56px);
}
[data-identity] .chapter-entry::after {
  background: linear-gradient(0deg,#0c222b 0%,#0c222bef 26%,#0c222b65 75%,#0c222b1c);
}
[data-identity] .chapter-image { overflow: hidden; }
[data-identity] .chapter-image img { filter: saturate(.52); }
[data-identity] .career-map { border-bottom-color: var(--file-rule); }
[data-identity] .career-plane { opacity: .13; }
[data-identity] .job h3 { font-family: var(--display); letter-spacing: -.04em; }
[data-identity] .qualifications { margin-bottom: 0; }
[data-identity] #contact { border-top: 0; }
[data-identity] #contact .footer-resumes a {
  background: transparent;
  border-color: var(--editorial-line);
}
[data-identity] #contact .footer-resumes a:hover { background: var(--file-panel); }

.case-page[data-identity] .case-header {
  padding-bottom: 12px;
  border-bottom-color: var(--editorial-line);
}
.case-page[data-identity] .case-header h1 {
  margin-block: 12px 17px;
  text-wrap: balance;
}
.case-page[data-identity] .back-link {
  color: var(--copper);
  margin-bottom: 9px;
}
.case-page[data-identity] .case-lead { margin-bottom: 19px; }
.case-page[data-identity] .case-meta { padding-top: 15px; border-color: var(--editorial-line); }
.case-page[data-identity] .case-sections { margin-top: 10px; gap: 0 18px; }
.case-page[data-identity] .case-sections a {
  position: relative;
  border-bottom: 0;
}
.case-page[data-identity] .case-sections a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 1px;
  background: var(--copper);
}
.case-page[data-identity] .case-header-split .editorial-folio {
  padding-top: 0;
  align-self: center;
}
.case-page[data-identity] .case-header-split .editorial-crop {
  flex: none;
  aspect-ratio: 1.09;
  min-height: 0;
}
.case-page[data-identity] .case-header-split .editorial-image { inset: 0; }
.case-page[data-identity] .case-hero {
  border: 0;
  margin-top: clamp(20px, 3vw, 40px);
  background: var(--night);
}
.case-page[data-identity] .hero-heading {
  padding: 17px clamp(16px, 2.3vw, 28px);
  border-bottom: 1px solid var(--file-rule);
}
.case-page[data-identity] .case-hero > figcaption {
  border-color: var(--file-rule);
}
.case-page[data-identity] :is(.delivery-title,.step-content,.record-reading,.ownership-composition,.ownership-composition>.step-controls) {
  background-color: var(--file-panel);
}
.case-page[data-identity] .record-reading .review-route span {
  border-width: 0 0 1px;
  padding: 6px 0;
}
.case-page[data-identity] .record-reading .review-route b {
  color: var(--copper);
}
.case-page[data-identity] .record-reading .amount-comparison span {
  border-width: 1px 0 0;
  background: transparent;
  padding: 8px 0;
}
.case-page[data-identity] .reading-surface {
  border: 0;
  margin-top: clamp(32px, 5vw, 74px);
  padding-top: clamp(19px, 3vw, 43px);
  padding-bottom: clamp(25px, 4vw, 58px);
}
.case-page[data-identity] .case-story { grid-template-columns: minmax(105px,.27fr) minmax(0,1fr); }
.case-page[data-identity] .case-story h2 {
  color: #3a565e;
  letter-spacing: .085em;
}
.case-page[data-identity] .case-story h3 {
  font-family: var(--display);
  font-weight: 550;
}
.case-page[data-identity] .story-copy p { max-width: 68ch; }
.case-page[data-identity] .case-return { color: var(--copper); }
.case-page[data-identity] .next-case strong { transition: color 200ms var(--file-ease); }
.case-page[data-identity] .next-case:is(:hover,:focus-visible) strong { color: var(--copper); }

/* Section rules and photographic depth use native scrolling and stop during the reading beat. */
[data-editorial-motion="reading"], [data-editorial-motion="exhibit"],
[data-editorial-motion="image"], [data-editorial-motion="chapter"] { position: relative; }
[data-editorial-motion="reading"]::before,
[data-editorial-motion="exhibit"]::before,
[data-editorial-motion="image"] .editorial-crop::before,
[data-editorial-motion="chapter"] .chapter-image::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 2px;
  background: var(--copper);
  pointer-events: none;
  transform-origin: left center;
}
[data-editorial-motion="reading"]::before { background: #9b6d59; }
[data-editorial-motion="chapter"] .chapter-image::after { background: #be947f; }
[data-editorial-motion="image"] .editorial-crop::before { height: 1px; background: #edcfb9; }

@supports ((animation-timeline: view()) and (animation-range: entry 0% entry 100%)) {
  @media (prefers-reduced-motion: no-preference) {
    html[data-motion="full"] [data-editorial-motion] {
      view-timeline-name: --editorial-scene;
      view-timeline-axis: block;
    }
    html[data-motion="full"] [data-editorial-motion="reading"]::before,
    html[data-motion="full"] [data-editorial-motion="exhibit"]::before,
    html[data-motion="full"] [data-editorial-motion="image"] .editorial-crop::before,
    html[data-motion="full"] [data-editorial-motion="chapter"] .chapter-image::after {
      animation: editorial-rule linear both;
      animation-timeline: --editorial-scene;
      animation-range: entry 0% cover 40%;
    }
    html[data-motion="full"] [data-editorial-motion="image"] .editorial-crop img {
      animation: editorial-plate linear both;
      animation-timeline: --editorial-scene;
      animation-range: entry 0% entry 100%;
    }
    html[data-motion="full"] [data-editorial-motion="chapter"] .chapter-image img {
      animation: editorial-chapter linear both;
      animation-timeline: --editorial-scene;
      animation-range: entry 0% entry 100%;
    }
    html[data-motion="full"] [data-editorial-motion="opening"] .opening-art img {
      animation: editorial-departure linear both;
      animation-timeline: --editorial-scene;
      animation-range: exit 0% exit 83%;
    }
  }
}
@keyframes editorial-rule {
  0% { transform: scaleX(.08); }
  84%,100% { transform: scaleX(1); }
}
@keyframes editorial-plate {
  0% { transform: scale(1.145) translateX(4%); }
  86%,100% { transform: scale(1); }
}
@keyframes editorial-chapter {
  0% { transform: scale(1.16) translateY(6%); }
  88%,100% { transform: scale(1.025); }
}
@keyframes editorial-departure {
  from { scale: 1; }
  to { scale: 1.15; }
}
@media (max-width: 900px) {
  [data-identity] .register > .project-row:nth-child(n+4) .project-summary { padding-top: 15px; }
}
@media (max-width: 760px) {
  .case-page[data-identity] .case-header-split .editorial-folio { margin-top: 11px; }
  .case-page[data-identity] .case-header-split .editorial-crop {
    aspect-ratio: auto;
    height: clamp(155px,44vw,280px);
  }
  .case-page[data-identity] .case-story { grid-template-columns: minmax(0,1fr); gap: 8px; }
}
@media (max-width: 600px) {
  [data-identity] .work-label { align-items: start; }
  [data-identity] .register > .project-row:first-child .project-art { min-height: 0; }
  [data-identity] .register > .project-row .project-heading { padding-block: 18px 8px; }
  [data-identity] .register > .project-row:first-child .project-heading { padding-top: 21px; }
  [data-identity] .register > .project-row .project-action { margin-top: 8px; }
  [data-identity] .chapter-entry { min-height: 320px; }
  .case-page[data-identity] .case-header h1 { text-wrap: initial; }
  .case-page[data-identity] .case-sections { gap: 0 12px; }
  [data-identity] .ownership-index { aspect-ratio: 1.6; }
}
html[data-motion="reduce"] [data-identity] .project-action span,
html[data-motion="reduce"] [data-identity] .next-case strong {
  translate: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-identity] .project-action span,
  [data-identity] .next-case strong { translate: none; transition: none; }
}
@media print {
  [data-editorial-motion]::before { display: none !important; }
}
