/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  background: #fff;
}

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

a:hover {
  opacity: 0.75;
}

.work-tile:hover,
.work-tile:focus-visible {
  opacity: 1;
}

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

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.nav__link--active {
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.branding {
  text-align: right;
}

.branding__name {
  margin: 0;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.work-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: 100%;
  padding: 0.35rem 1.5rem 1.5rem;
  background: #fff;
}

.work-toolbar__label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #6b6b6b;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.work-filters__btn {
  margin: 0;
  padding: 0 0 0.15rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}

.work-filters__btn:hover,
.work-filters__btn:focus-visible {
  color: #111;
  outline: none;
  border-bottom-color: #ccc;
}

.work-filters__btn[aria-pressed="true"] {
  border-bottom-color: #111;
  font-weight: 600;
}

.work-empty {
  margin: 0;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  text-transform: none;
}

/* Work index — 2-up full-bleed grid, no gutter (Kirk-style) */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#work {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-content: start;
}

.work-grid__item {
  margin: 0;
  min-width: 0;
}

.work-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0a0a0a;
  /* Half the viewport each — wide cinematic frame; adjust to 4/3 if you prefer */
  aspect-ratio: 3 / 2;
  text-decoration: none;
  color: #fff;
}

.work-tile--loading .work-tile__img {
  opacity: 0.5;
  filter: blur(0.5px);
}

.work-tile__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.work-tile--no-thumb .work-tile__img {
  opacity: 0;
}

.work-tile--no-thumb .work-tile__media {
  background: linear-gradient(145deg, #2a2a2a 0%, #0a0a0a 100%);
}

.work-tile--no-thumb .work-tile__media::after {
  content: "add thumb";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  pointer-events: none;
}

.work-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

.work-tile:hover .work-tile__img,
.work-tile:focus-visible .work-tile__img {
  transform: scale(1.04);
}

.work-tile:hover,
.work-tile:focus-visible {
  opacity: 1;
}

.work-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem;
  text-align: center;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.work-tile:hover .work-tile__overlay,
.work-tile:focus-visible .work-tile__overlay {
  opacity: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.work-tile__kicker {
  font-size: clamp(0.7rem, 1.1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  max-width: 22em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.work-tile__tags {
  font-size: 0.62rem;
  font-weight: 400;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Courier New", monospace;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  text-transform: lowercase;
  max-width: 28em;
}

@media (hover: none) and (pointer: coarse) {
  .work-tile__overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}

/* Text page (About) */
.page--text .text-main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.page--text .text-main h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.page--text .text-main p {
  margin: 0 0 1rem;
}

.text-main__lead {
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 1.25rem !important;
}

.page--text .text-main__list {
  margin: 0 0 1.25rem 1rem;
  padding: 0;
  line-height: 1.55;
  color: #333;
}

.page--text .text-main__list li {
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.75rem;
  background: #fff;
  border-top: 1px solid #eee;
}

.site-footer__contact {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: #6b6b6b;
  text-transform: none;
}

.site-footer__contact a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.social {
  list-style: none;
  display: flex;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: none;
}

.social__link {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.social__link:hover,
.social__link:focus-visible {
  background: #111;
  color: #fff;
  opacity: 1;
}

/* Project case study (detail) */
#work[hidden] {
  display: none;
}

.project-detail[hidden] {
  display: none;
}

.project-detail {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-detail__inner {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 0;
  min-height: 50vh;
  border-top: 1px solid #eee;
  flex: 1;
  align-items: start;
}

.project-detail__left {
  padding: 1.5rem 1.5rem 2.5rem;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-detail__navrow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0.35rem 0.5rem;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.25rem;
}

.project-detail__case-pager {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-detail__case-pager[hidden] {
  display: none;
}

.project-detail__case-pager:first-child {
  justify-self: start;
  text-align: left;
}

.project-detail__case-pager:last-child {
  justify-self: end;
  text-align: right;
}

.project-detail__case-pager:hover,
.project-detail__case-pager:focus-visible {
  opacity: 1;
}

.project-detail__back {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 0;
  text-transform: uppercase;
  opacity: 0.85;
  justify-self: center;
  text-align: center;
}

.project-detail__back:hover,
.project-detail__back:focus-visible {
  opacity: 1;
}

.project-detail__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.5;
  max-width: 20em;
  text-transform: uppercase;
  color: #111;
}

.project-detail__body {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #333;
  text-transform: none;
  white-space: pre-line;
}

.project-detail__body--html {
  white-space: normal;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
}

.project-detail__body--html p {
  margin: 0 0 1em;
}

.project-detail__body--html p:last-child {
  margin-bottom: 0;
}

/* Case study: meta lines (awards, press) — tight single line spacing, same size as body */
.project-detail__body--html .case-study-line {
  font-size: 0.72rem;
  line-height: 1.15;
  margin: 0 0 0.08em;
  color: #333;
  letter-spacing: 0.02em;
  font-weight: 400;
}

/* Extra space after recognition / meta block, before first narrative or section */
.project-detail__body--html p.case-study-line + p:not(.case-study-line) {
  margin-top: 1.35em;
}

.project-detail__body--html p.case-study-sect,
.project-detail__body--html p.case-study-sect--meta {
  margin: 1.9em 0 0.4em;
  font-size: 0.72rem;
  color: #111;
  letter-spacing: 0.02em;
}

/* After a run of .case-study-line, ensure space before the first *Insight* / *Idea* block */
.project-detail__body--html p.case-study-line + p.case-study-sect,
.project-detail__body--html p.case-study-line + p.case-study-sect--meta {
  margin-top: 2.2em;
}

.project-detail__body--html p.case-study-sect i,
.project-detail__body--html p.case-study-sect--meta i {
  font-style: italic;
}

.project-detail__body--html a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.project-detail__body--html a:hover,
.project-detail__body--html a:focus-visible {
  opacity: 0.8;
}

.project-detail__body--html .project-detail__recognition {
  font-size: 0.64rem;
  line-height: 1.5;
  color: #5a5a5a;
  margin-bottom: 1.1em;
}

.project-detail__body--html .project-embed {
  margin: 0.9em 0 1.1em;
  width: 100%;
  max-width: 100%;
}

.project-detail__body--html .project-embed__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 2px;
  overflow: hidden;
}

.project-detail__body--html .project-embed__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-detail__awards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #5a5a5a;
  text-transform: none;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.project-detail__right {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-width: 0;
  background: #fafafa;
  width: 100%;
}

.project-stage-wrap {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 1.25rem 1.25rem 0 0;
  flex: 0 0 auto;
}

.project-stage__pre {
  margin: 0 0 0.55rem;
  padding: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.35;
}

.project-stage__pre[hidden] {
  display: none;
}

.project-stage-nav {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: flex;
  gap: 0.25rem;
}

.project-stage-nav__btn {
  width: 2rem;
  height: 2rem;
  margin: 0;
  border: 1px solid #111;
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  padding: 0 0 0.1rem 0.05rem;
}

.project-stage-nav__btn:hover,
.project-stage-nav__btn:focus-visible {
  background: #111;
  color: #fff;
  outline: none;
}

.project-stage {
  position: relative;
  width: 100%;
  background: #0a0a0a;
  aspect-ratio: 16 / 9;
}

.project-stage--print-layout {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  background: transparent;
}

.project-print-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 0.5rem;
}

.project-print-sect {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.project-print-sect__title {
  margin: 0 0 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  text-align: center;
  width: 100%;
}

.project-print-single {
  margin-bottom: 0.85rem;
}

.project-print-single:last-child {
  margin-bottom: 0;
}

.project-print-slide__asset {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(88vh, 900px);
  object-fit: contain;
  margin: 0 auto;
  background: #e8e8e8;
  vertical-align: top;
}

.project-print-carousel {
  width: 100%;
}

.project-print-carousel__viewport {
  margin-bottom: 0.5rem;
}

.project-print-carousel__pad {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
}

.project-print-carousel__pad > .project-print-slide__iframe,
.project-print-carousel__pad > .project-print-slide__asset.project-print-slide__asset--video,
.project-print-carousel__pad > .project-print-slide__asset {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-print-carousel__strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.5rem, 1fr));
  gap: 0.35rem;
  padding: 0 0 0.25rem;
  max-width: 100%;
}

.project-print-carousel__thumb {
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 2px;
  cursor: pointer;
  background: #111;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 16 / 9;
  opacity: 0.75;
  transition: opacity 0.12s ease, border-color 0.12s ease;
}

.project-print-carousel__thumb:hover,
.project-print-carousel__thumb:focus-visible {
  opacity: 1;
  outline: none;
  border-color: #111;
}

.project-print-carousel__thumb--active {
  opacity: 1;
  border-color: #111;
  box-shadow: inset 0 0 0 2px #111;
}

.project-print-carousel__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-print-carousel__thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 2.5rem;
  font-size: 0.75rem;
  color: #ccc;
  background: #222;
}

.project-print-slide-error {
  padding: 1rem;
  font-size: 0.65rem;
  color: #999;
}

.project-stage__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #999;
  font-size: 0.65rem;
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.project-password-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 1.25rem 1.75rem;
  background: #0a0a0a;
  color: #e6e6e6;
  text-align: center;
}

.project-password-gate__lede {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #ccc;
}

.project-password-gate__form {
  width: 100%;
  max-width: 17rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.project-password-gate__label {
  flex: 1 0 100%;
  text-align: left;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
}

.project-password-gate__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.75rem;
  border: 1px solid #333;
  border-radius: 2px;
  background: #161616;
  color: #eee;
}

.project-password-gate__input:focus {
  outline: 2px solid #555;
  outline-offset: 1px;
}

.project-password-gate__submit {
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #555;
  border-radius: 2px;
  background: #1a1a1a;
  color: #eee;
}

.project-password-gate__submit:hover,
.project-password-gate__submit:focus-visible {
  background: #242424;
  border-color: #777;
}

.project-password-gate__error {
  flex: 1 0 100%;
  margin: 0.25rem 0 0;
  font-size: 0.65rem;
  color: #e88;
  text-transform: none;
}

.project-password-gate__error[hidden] {
  display: none !important;
}

.project-frame {
  position: absolute;
  inset: 0;
}

.project-frame__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-frame__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0a0a;
}

.project-figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.project-figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.35rem;
  padding: 0 1.25rem 1.5rem 1.25rem;
  max-height: 14rem;
  overflow-y: auto;
}

.project-thumbs[hidden] {
  display: none;
}

.project-stills {
  width: 100%;
  padding: 1.75rem 1.25rem 2rem 0;
  margin-top: 0;
  border-top: 1px solid #e8e8e8;
  flex: 0 0 auto;
}

.project-stills[hidden] {
  display: none;
}

.project-stills__label {
  margin: 0.5rem 0 0.9rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
}

.project-stills__section {
  margin: 0 0 0.35rem;
  width: 100%;
}

.project-stills__section:not(:first-child) {
  margin-top: 2.5rem;
}

.project-stills__section-title {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.35;
}

.project-stills__subsection {
  margin: 1.7rem 0 0.25rem;
  width: 100%;
}

.project-stills__subsection-title {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
  line-height: 1.35;
}

/* Dream Phone TECH block in rail — same band as stills section titles (Build, etc.) */
.project-rail-extra .project-stills__section--in-rail {
  margin: 1.5rem 0 0.35rem;
  width: 100%;
}

.project-rail-extra .project-stills__section--in-rail + p.phone-tech-h {
  margin-top: 0.4rem;
}

.project-rail-extra .project-detail__body--html p + p.phone-tech-h {
  margin-top: 2.4em;
}

.project-stills__grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.project-stills__item {
  margin: 0;
  min-width: 0;
  width: 100%;
  background: #e8e8e8;
  overflow: hidden;
  border-radius: 2px;
  line-height: 0;
}

.project-stills__item--embed {
  background: #111;
}

.project-stills__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 2px;
  overflow: hidden;
}

.project-stills__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-stills__img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  vertical-align: top;
  object-fit: contain;
  background: #111;
}

.project-stills__empty {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.5;
  color: #777;
  text-transform: none;
  letter-spacing: 0.02em;
}

.project-stills__empty code {
  font-size: 0.6rem;
  background: #eee;
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

/* Extra right-column embeds (below stills) — see detail.railHTML in projects.js */
.project-rail-extra {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 1.25rem 1.75rem 0;
  margin: 0;
}

.project-rail-extra .project-embed {
  margin: 0.75em 0 0;
  width: 100%;
  max-width: 100%;
}

.project-rail-extra .project-embed:first-child {
  margin-top: 0.35em;
}

.project-rail-extra .project-embed__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 2px;
  overflow: hidden;
}

.project-rail-extra .project-embed__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-rail-extra .project-rail-h {
  margin: 2.2em 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
}

.project-rail-extra .project-rail-h:first-child {
  margin-top: 1.75rem;
}

/* Native audio playlist (detail.audioPlaylist) */
.project-rail-extra .project-audio .project-rail-h:first-child {
  margin-top: 1.75rem;
}

.project-rail-extra .project-audio__el {
  display: block;
  width: 100%;
  margin: 0.35rem 0 0.65rem;
  max-height: 2.5rem;
}

.project-rail-extra .project-audio__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-rail-extra .project-audio__track {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem 0.6rem 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: left;
  color: #111;
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.project-rail-extra .project-audio__track:hover {
  background: #ececec;
  border-color: #c8c8c8;
}

.project-rail-extra .project-audio__track.is-active {
  background: #e8e8e8;
  border-color: #111;
  box-shadow: inset 3px 0 0 0 #111;
}

.project-rail-extra .project-rail__figure {
  margin: 0 0 0.6rem;
  line-height: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #e8e8e8;
}

.project-rail-extra .project-rail__figure img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.project-rail-extra .project-rail__linkline {
  margin: 0 0 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: none;
}

.project-rail-extra .project-rail__linkline a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.project-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid transparent;
  background: #111;
  cursor: pointer;
  overflow: hidden;
}

.project-thumb--active {
  border-color: #111;
}

.project-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6rem;
  opacity: 0.7;
}

/* Single column on small screens */
@media (max-width: 700px) {
  body {
    font-size: calc(0.75rem + 1.33px);
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-toolbar {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .branding {
    text-align: left;
    width: 100%;
  }

  .site-header {
    flex-direction: column;
  }

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

  .project-detail__left {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  /* ~1pt larger body copy on small screens (rem is from root) */
  .project-detail__title {
    font-size: calc(0.72rem + 1.33px);
  }

  .project-detail__body--html,
  .project-detail__body--html .case-study-line,
  .project-detail__body--html p.case-study-sect,
  .project-detail__body--html p.case-study-sect--meta {
    font-size: calc(0.72rem + 1.33px);
  }

  .project-detail__body--html p {
    /* paragraphs inherit; explicit for clarity with calc */
    font-size: inherit;
  }
}

body.about-page {
  text-transform: none;
  letter-spacing: 0.02em;
}

body.about-page .about-article {
  font-size: 0.875rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

body.about-page .about-article strong {
  font-weight: 600;
}

.home-intro {
  padding: 0 1.5rem 1.5rem;
  max-width: 42rem;
  margin: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.875rem;
  line-height: 1.65;
}

.home-intro p {
  margin: 0;
}

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

.home-intro a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.home-intro a:hover {
  opacity: 0.75;
}
