/* Real content, kept separate from the approved visual-study styles. */

.site-header { top: 0; }
.hero { height: 100svh; }
.hero-description { max-width: 410px; }
.hero-links { flex-wrap: wrap; }

/* The scene count follows the catalogue. Each still has one scroll chapter. */
.story-enhanced .scenes {
  height: calc(var(--scene-count, 4) * 100svh + 120svh);
}
.photo-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin-top: 28px;
  color: #e1e1d4;
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.6;
}
.scene-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  margin-top: 28px;
  padding-block: 7px;
  border-bottom: 1px solid #d5ba9780;
  color: #f3eee5;
  font-size: 14px;
  font-weight: 600;
}
.scene-link:hover { border-color: #f3eee5; }
.scene-link .inline-arrow { transition: transform 200ms ease; }
.scene-link:hover .inline-arrow { transform: translate(2px, -2px); }
.story-enhanced .photo-section.is-current .photo-copy {
  pointer-events: auto;
}
.story-enhanced .is-current .photo-copy > p:not(.eyebrow) {
  transition-delay: 330ms;
}
.story-enhanced .is-current .photo-copy > .scene-link {
  transition-delay: 390ms;
}

.card-copy h3 { overflow-wrap: anywhere; }
.card-copy > p.card-meta {
  margin-top: 15px;
  font-size: 11px;
  color: var(--accent);
}

/* A source-led reading panel gives the case study its own quiet focal point. */
.experience-layout { align-items: stretch; }
.experience-stage {
  display: flex;
  min-height: 440px;
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  perspective: none;
}
.experience-stage .stage-guides {
  inset: 22px;
  border-color: var(--line);
  opacity: .45;
  pointer-events: none;
}
.experience-stage .stage-guides::before,
.experience-stage .stage-guides::after { display: none; }
.case-content {
  position: relative;
  width: 100%;
  padding: 52px 48px 105px;
}
.case-kicker {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.case-panel h3 {
  max-width: 480px;
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.15;
  letter-spacing: -.04em;
}
.case-panel p:not(.case-kicker) {
  margin-top: 22px;
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.case-source {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-top: 23px;
  color: var(--text);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
}
.case-source:hover { text-decoration-color: var(--accent); }
.experience-stage .stage-caption {
  inset-inline: 48px;
  bottom: 32px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.experience-stage .stage-caption > span:first-child { color: var(--accent); }
#about .feature-copy > p:not(.eyebrow) { font-size: 18px; }
/* Writing: a short, separate entrance after Work. */
.writing-shelf { border-top: 1px solid var(--line); }
.writing-shelf .section-heading { margin-bottom: 28px; }
.writing-shelf-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.writing-shelf-list li { padding-top: 18px; border-top: 1px solid var(--line); }
.writing-shelf-title { display: inline-flex; min-height: 44px; align-items: center; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.writing-shelf-title:hover { color: var(--accent); }
.writing-shelf-form { margin: 4px 0 0; color: var(--accent); font-size: 11px; letter-spacing: .08em; }
.writing-shelf-list li > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
@media (max-width: 1100px) { .writing-shelf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .writing-shelf-list { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
/* Personal artifacts live in About: each entrance names the original and its contemporary reconstruction. */
/* The portrait beside the short background; it stacks above the text on phones without dominating the section. */
#about .about-person { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 22px; }
#about .about-person .about-text > p:first-child { margin-top: 0; }
#about .about-portrait { margin: 0; }
#about .about-portrait img { display: block; width: 136px; height: auto; aspect-ratio: 8 / 9; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 640px) {
  #about .about-person { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #about .about-portrait img { width: 104px; }
}
#about .about-entrances { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
#about .about-entrances .eyebrow { margin: 0 0 6px; font-size: 10px; }
#about .about-entrances ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#about .about-entrances li { padding-block: 14px; border-bottom: 1px solid var(--line); }
#about .about-entrance-title { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
#about .about-entrance-title:hover { color: var(--accent); }
#about .about-entrances li p { margin: 2px 0 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
#about .about-entrance-action { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; color: var(--accent); }
#about .about-entrance-action .inline-arrow { width: 16px; height: 16px; }

/* An editorial index: the work stays readable before any interaction. */
.work-index .section-heading { margin-bottom: 50px; }
.work-index .section-heading > p { font-size: 20px; }
.work-tools {
  --js-display: grid;
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 1.5fr);
  align-items: end;
  gap: 30px 48px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
#work-search-form { margin: 0; }
.work-search-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
#work-search {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--text);
  font: 400 15px Manrope, Arial, sans-serif;
  line-height: 1.5;
}
#work-search::placeholder { color: var(--muted); opacity: .85; }
#work-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.work-filters {
  --js-display: flex;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.work-filters button {
  min-height: 44px;
  padding: 10px 9px;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  transition: color 180ms ease, border-color 180ms ease;
}
.work-filters button:hover { color: var(--text); }
.work-filters button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--text);
}
.work-results-count {
  min-height: 18px;
  margin-block: 24px 30px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 32px;
}
.work-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.work-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-bottom: 23px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.work-card-top > :last-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.work-card h3 { font-size: 27px; line-height: 1.2; letter-spacing: -.035em; }
.work-title {
  display: inline;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-wrap: balance;
}
.work-title:hover { color: var(--accent); }
.work-description {
  margin-top: 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.work-idea { margin-block: 23px 22px; }
.work-idea small,
.work-idea > span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.work-idea p { color: var(--text); font-size: 14px; line-height: 1.8; }
.work-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 4px;
}
.work-card-actions button,
.work-card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.work-card-actions button:hover,
.work-card-actions a:hover { color: var(--text); }
.work-card-actions .inline-arrow { width: 14px; height: 14px; }
#work-empty {
  padding: 48px 0;
  color: var(--muted);
  font-size: 16px;
}
#work-more {
  --js-display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 45px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
#work-more:hover { background: var(--surface); border-color: var(--accent); }

/* The project copy, rather than a second large illustration, leads the dialog. */
.collection-dialog .detail-visual { height: 100px; border-radius: 4px; }
.collection-dialog .detail-visual img { object-position: center 52%; }
/* Quick view shows a Work cover whole, in its original colours. */
.collection-dialog .detail-visual.detail-visual-contain { height: auto; aspect-ratio: 16 / 9; background: #dddbd5; }
.collection-dialog .detail-visual.detail-visual-contain img { object-fit: contain; }
.collection-dialog h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
.collection-dialog #detail-status {
  margin-top: 13px;
  color: var(--accent);
  font-size: 11px;
}
.detail-idea-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-idea-block h3 {
  color: var(--accent);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.collection-dialog .detail-idea-block #detail-idea { margin-top: 12px; color: var(--text); }
.collection-dialog #detail-note { margin-top: 24px; font-size: 13px; line-height: 1.75; }
.collection-dialog #detail-link { margin-top: 28px; }
#contact p:not(.eyebrow) { max-width: 620px; }
#contact p:not(.eyebrow) + p { margin-top: 14px; }
.index-links a { font-size: 26px; padding-block: 17px; }

/* Controls are progressive enhancement. Static readers get the whole index. */
.js-only { display: none; }
body.catalogue-ready .js-only { display: var(--js-display, block); }
[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 30px; }
  .work-tools { grid-template-columns: 1fr; gap: 20px; }
  #work-search-form { max-width: 460px; }
  .work-filters { justify-content: flex-start; margin-left: -9px; }
  .case-content { padding: 42px 35px 105px; }
  .experience-stage .stage-caption { inset-inline: 35px; }
}

@media (max-width: 760px) {
  .site-header { top: 0; }
  .hero { height: 100svh; }
  /* Keep the longest contact-heading word inside narrow emergence masks. */
  .closing h2 { font-size: clamp(56px, 16vw, 76px); }
  .hero-description { max-width: 330px; font-size: 15px; }
  .photo-copy > p:not(.eyebrow) { margin-top: 25px; font-size: 17px; line-height: 1.65; }
  .photo-copy .eyebrow { max-width: 320px; }
  .photo-copy .eyebrow::before { width: 20px; margin-right: 10px; }
  .scene-link { margin-top: 24px; font-size: 13px; }
  .card-copy h3 { font-size: 31px; }
  .experience-stage { min-height: 420px; }
  .case-content { padding: 38px 28px 100px; }
  .case-kicker { margin-bottom: 20px; font-size: 9px; }
  .case-panel h3 { font-size: 30px; }
  .case-panel p:not(.case-kicker) { margin-top: 20px; font-size: 16px; line-height: 1.7; }
  .case-source { margin-top: 19px; font-size: 11px; }
  .experience-stage .stage-guides { inset: 13px; }
  .experience-stage .stage-caption { inset-inline: 28px; bottom: 27px; }
  #about .feature-copy > p:not(.eyebrow) { font-size: 17px; }
  .work-index .section-heading { margin-bottom: 35px; }
  .work-index .section-heading > p { font-size: 18px; }
  .work-tools { gap: 16px; padding-bottom: 22px; }
  #work-search-form { max-width: none; }
  .work-filters { gap: 3px 5px; }
  .work-filters button { padding-inline: 9px; font-size: 11px; }
  .work-results-count { margin-block: 20px 24px; }
  .work-grid { grid-template-columns: 1fr; gap: 26px; }
  .work-card { padding-top: 23px; }
  .work-card-top { margin-bottom: 19px; }
  .work-card h3 { font-size: 28px; }
  .work-description, .work-idea p { font-size: 15px; line-height: 1.75; }
  .work-idea { margin-block: 22px 16px; }
  #work-more { margin-top: 32px; }
  .collection-dialog .dialog-shell { padding: 24px; }
  .collection-dialog h2 { margin-top: 24px; }
  .collection-dialog p:not(.eyebrow) { font-size: 16px; line-height: 1.75; }
  .index-links a { font-size: 23px; padding-block: 16px; }
}

@media (max-width: 380px) {
  .case-content { padding-inline: 24px; }
  .case-panel h3 { font-size: 27px; }
  .experience-stage .stage-caption { inset-inline: 24px; }
  .work-card-top { column-gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-link .inline-arrow, .work-filters button { transition: none; }
  .scene-link:hover .inline-arrow { transform: none; }
}
.motion-paused .scene-link .inline-arrow,
.motion-paused .work-filters button { transition: none; }
.motion-paused .scene-link:hover .inline-arrow { transform: none; }
