/* About page — portrait-led career story and photography ticker. */
body[data-page="about"] {
  background: #0a0a0a;
}

body[data-page="about"] main {
  overflow: clip;
}

.about-story {
  padding-top: clamp(7rem, 10vw, 9rem);
  border-top: 0;
}

.about-narrative h1 {
  max-width: none;
  margin: 1.25rem 0 0;
  font-size: clamp(2.5rem, 3.85vw, 4.35rem);
  font-weight: 470;
  letter-spacing: -.055em;
  line-height: .98;
}

.about-narrative > p:not(.eyebrow) {
  max-width: 44rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.about-narrative > .eyebrow {
  color: currentColor;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  opacity: .56;
}

.career-item h2 {
  max-width: none;
  margin: 0 0 .6rem;
  font-size: clamp(1.6rem, 2.4vw, 2.8rem);
  font-weight: 480;
  letter-spacing: -.04em;
}

/* Systems thinking and selected earlier work */
.about-practice {
  --about-content: 1280px;
  --about-gutter: clamp(1.25rem, 4.6vw, 5.5rem);
  --about-heading-indent: clamp(6rem, 8vw, 7.75rem);
  --about-shell-width: min(var(--about-content), calc(100vw - (var(--about-gutter) * 2)));
  --about-copy-width: calc(var(--about-shell-width) - var(--about-heading-indent));
  --about-section-space: clamp(6rem, 9vw, 9rem);
  --about-heading-gap: clamp(3rem, 6vw, 5.5rem);
  --about-h2-size: clamp(2.5rem, 3.85vw, 4.35rem);
  --about-body-size: 1.08rem;
  --about-light-bg: #f4f4f2;
  --about-light-text: #17181b;
  --about-dark-bg: #0d0e11;
  padding: 0;
  color: #f1f0eb;
  border-top: 1px solid rgba(255,255,255,.12);
  background: var(--about-dark-bg);
}

.about-practice > .shell {
  width: var(--about-shell-width);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.about-chapter-intro,
.about-work-intro,
.about-project__header {
  display: block;
  width: var(--about-copy-width);
  margin-inline: auto;
  color: var(--about-light-text);
  background: var(--about-light-bg);
  box-shadow: 0 0 0 100vmax var(--about-light-bg);
  clip-path: inset(0 -100vmax);
}

.about-chapter-intro {
  padding-block: var(--about-section-space) var(--about-heading-gap);
}

.about-chapter-intro .eyebrow,
.about-work-intro .eyebrow,
.about-project__index {
  margin: 0;
  color: currentColor;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.35;
  opacity: .56;
  text-transform: uppercase;
}

.about-chapter-intro h2,
.about-work-intro h2,
.about-project__copy h3 {
  max-width: none;
  margin: 1.25rem 0 0;
  font-size: var(--about-h2-size);
  font-weight: 470;
  letter-spacing: -.055em;
  line-height: .98;
}

.about-chapter-intro > p:not(.eyebrow),
.about-work-intro > p:not(.eyebrow),
.about-project__copy > p {
  max-width: 44rem;
  margin: 1.6rem 0 0;
  color: currentColor;
  font-size: var(--about-body-size);
  line-height: 1.6;
  opacity: .62;
}

.about-thinking-grid,
.about-project__gallery {
  display: block;
  margin: 0;
}

.about-editorial-media {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100vw;
  min-width: 0;
  min-height: 100svh;
  margin: 0 0 0 calc(50% - 50vw);
  padding-block: clamp(2rem, 4vh, 3rem);
  flex-direction: column;
  justify-content: center;
  overflow: clip;
}

.about-editorial-media--light {
  color: var(--about-light-text);
  background: var(--about-light-bg);
}

.about-editorial-media--dark {
  color: #f1f0eb;
  background: var(--about-dark-bg);
}

.about-editorial-media img,
.about-editorial-media figcaption {
  position: relative;
  z-index: 1;
  width: var(--about-copy-width);
  margin-left: calc((100vw - var(--about-copy-width)) / 2);
}

.about-editorial-media img {
  display: block;
  height: auto;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.about-editorial-media figcaption {
  padding-top: .8rem;
  color: currentColor;
  font-size: .72rem;
  letter-spacing: .08em;
  line-height: 1.45;
  opacity: .46;
  text-transform: uppercase;
}

.about-work-intro {
  padding-block: var(--about-section-space) var(--about-heading-gap);
  border-top: 1px solid rgba(23,24,27,.14);
}

.about-project-list { margin: 0; }

.about-project {
  border-top: 0;
}

.about-project__header {
  padding-block: var(--about-section-space) var(--about-heading-gap);
  border-top: 1px solid rgba(23,24,27,.14);
}

.about-project__role {
  display: grid;
  max-width: 48rem;
  margin: 2.25rem 0 0;
  padding-top: 1.1rem;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(23,24,27,.12);
}

.about-project__role dt,
.about-project__role dd {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .07em;
  line-height: 1.5;
}

.about-project__role dt {
  color: rgba(23,24,27,.44);
  text-transform: uppercase;
}

.about-project__role dd { color: rgba(23,24,27,.72); }

.about-section-meta {
  display: block;
  border: 0;
}

.about-section-meta h2 {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
}

.about-section-meta > p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.6;
}

/* Original photography: complete frames, consistent height, quiet captions. */
.about-photo {
  --photo-gap: clamp(12px, 1.1vw, 20px);
  --photo-height: clamp(400px, 36vw, 560px);
  --photo-gutter: max(var(--pad), calc((100vw - 1600px) / 2 + var(--pad)));
  padding: 4.85rem 0 6.25rem;
  color: #f1f0eb;
  background: #111;
  scroll-margin-top: 5rem;
}
.about-section-meta--dark { color: var(--muted); }
.about-photo .about-section-meta h2 {
  color: #f1f0eb;
  font-size: clamp(.85rem, 1.05vw, 1rem);
}
.about-photo .about-section-meta > p { max-width: 45rem; }
.about-photo__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.7rem;
}
.about-photo__categories {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0;
  color: #b2b2b0;
  font-size: .72rem;
  letter-spacing: .025em;
  line-height: 1.6;
}
.about-photo__categories > [aria-hidden] { color: #61615f; }
.about-photo__controls { display: flex; gap: .5rem; flex-shrink: 0; }
.about-photo__controls[hidden] { display: none; }
.about-photo__controls button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 10px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #222;
  color: #c8c8c6;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.about-photo__controls button:is(:hover, :focus-visible) { background: #363636; color: #fff; }
.about-photo__controls button:disabled { opacity: .35; cursor: default; }
.about-photo__controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.about-photo__viewport {
  width: 100%;
  margin-top: 1.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x pan-y;
}
.about-photo__viewport::-webkit-scrollbar { display: none; }
.about-photo__viewport:focus-visible { outline: 1px solid #aaa; outline-offset: 6px; }
.about-photo__viewport.is-dragging { cursor: grabbing; user-select: none; }
.about-photo__track {
  display: flex;
  width: max-content;
  gap: var(--photo-gap);
  padding-inline: var(--photo-gutter);
}
.about-photo__group { display: flex; gap: var(--photo-gap); }
.about-photo__card {
  flex: 0 0 auto;
  width: calc(var(--photo-height) * var(--photo-ratio));
  margin: 0;
}
.about-photo__card img {
  display: block;
  width: 100%;
  height: var(--photo-height);
  object-fit: contain;
  background: #151515;
  border: 0;
  border-radius: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.about-photo__card figcaption {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding: 1rem 0 0;
  color: #b2b2b0;
  font-size: .7rem;
  line-height: 1.5;
  letter-spacing: .025em;
}

body[data-page="about"] .site-footer {
  padding-top: clamp(4.5rem, 8vw, 7rem);
}

body[data-page="about"] .footer-cta {
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

body[data-page="about"] .footer-cta h2 {
  max-width: 9ch;
  font-size: clamp(3.25rem, 4.2vw, 5.5rem);
  line-height: .86;
}

@media (max-width: 809px) {
  .about-practice {
    --about-gutter: 1.25rem;
    --about-heading-indent: 0rem;
    --about-section-space: 5rem;
    --about-heading-gap: 3rem;
    --about-h2-size: clamp(2.35rem, 10vw, 3.35rem);
  }

  .about-chapter-intro,
  .about-work-intro,
  .about-project__header {
    width: 100%;
    margin-left: 0;
  }

  .about-project__role {
    grid-template-columns: 1fr;
    gap: .45rem;
  }

  .about-editorial-media {
    min-height: 100svh;
    padding-block: 3rem;
  }

  .about-editorial-media img,
  .about-editorial-media figcaption {
    width: var(--about-shell-width);
    margin-left: calc((100vw - var(--about-shell-width)) / 2);
  }

  .about-photo {
    padding-bottom: 4.5rem;
  }

  body[data-page="about"] .footer-cta h2 {
    font-size: clamp(3.25rem, 14vw, 4.5rem);
  }

  .about-photo { --photo-height: min(104vw, 560px); }
  .about-photo__toolbar { gap: 1rem; align-items: flex-end; }
  .about-photo__categories { display: block; max-width: 14rem; }
  .about-photo__categories span { display: block; }
  .about-photo__categories > [aria-hidden] { display: none; }
  .about-photo__controls { gap: .25rem; }
  .about-photo__controls button { width: 36px; height: 36px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-photo__controls button { transition: none; }
}

/* Smart Home 01–03 share the existing evidence layout and type scale. */
.showcase-project--smart .smart-stage--paired {
  display: grid;
  grid-template-columns: minmax(12.5rem, .42fr) minmax(0, 1.58fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.showcase-project--smart .smart-stage--paired .smart-stage__header {
  position: sticky;
  top: 7rem;
  display: block;
  min-width: 0;
  margin-bottom: 0;
}

.showcase-project--smart .smart-stage--paired .smart-stage__header > span {
  display: block;
  margin-bottom: 2rem;
  padding-top: 0;
}

.showcase-project--smart .smart-stage--paired .smart-stage__header h4 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  line-height: 1.08;
}

.showcase-project--smart .smart-stage--paired .smart-stage__header p {
  margin-top: 1rem;
  font-size: .96rem;
  line-height: 1.6;
}

.showcase-project--smart .smart-stage--paired .smart-structure {
  width: min(100%, 38rem);
  margin-inline: auto;
}

.showcase-project--smart .smart-stage--paired .smart-core {
  width: 100%;
  margin: 0;
}

@media (max-width: 980px) {
  .showcase-project--smart .smart-stage--paired {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .showcase-project--smart .smart-stage--paired .smart-stage__header {
    position: static;
    max-width: 36rem;
  }
}

@media (max-width: 720px) {
  .showcase-project--smart .smart-stage--paired {
    gap: 2.25rem;
  }

  .showcase-project--smart .smart-stage--paired .smart-stage__header > span {
    margin-bottom: 1.35rem;
  }

  .showcase-project--smart .smart-stage--paired .smart-stage__header h4 {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }
}
