/* JDLO homepage v4: phone first. No pinned or scroll-jacked sections; the work is shown once,
   as six motion tiles recorded frame by frame from the live sites. */

.v4-flag { position: relative; z-index: 2; margin: 0; padding: .375rem var(--pad); background: var(--ink); color: #fff; font-size: .75rem; letter-spacing: 0; }

/* ---------- Hero ---------- */
.h4-hero { padding: calc(var(--header-h, 3.5rem) + 1.25rem) var(--pad) 0; }
.h4-name { margin: 0; font-weight: 600; font-size: 4.75rem; line-height: .9; letter-spacing: -.06em; }
.h4-hero__side { margin-top: 1.25rem; }
.h4-line { margin: 0; font-size: 1.1875rem; line-height: 1.35; letter-spacing: -.015em; max-width: 30ch; }
.h4-ctas { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.h4-photo { margin: 2rem calc(-1 * var(--pad)) 0; }
.h4-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Work: the six tiles ---------- */
.h4-work { padding: 4rem var(--pad) 1rem; }
.h4-work__head h2 { margin: 0; font-size: 2.625rem; line-height: .98; font-weight: 600; letter-spacing: -.05em; }
.h4-work__head p { margin: .875rem 0 0; color: var(--grey); font-size: 1.0625rem; line-height: 1.45; max-width: 34ch; }
.h4-tiles { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 2.75rem; }
.h4-tile a { display: block; color: inherit; text-decoration: none; }
.h4-tile__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #111; margin-inline: calc(-1 * var(--pad)); }
.h4-tile__media img, .h4-tile__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.h4-tile__media video { opacity: 0; transition: opacity .3s; }
.h4-tile__media video.is-on { opacity: 1; }
.h4-tile__text { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .375rem 1rem; padding-top: 1rem; }
.h4-tile__text h3 { margin: 0; font-size: 1.875rem; line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.h4-tile__go { font-size: .9375rem; white-space: nowrap; }
.h4-tile__text p { grid-column: 1 / -1; margin: 0; color: var(--grey); font-size: 1rem; line-height: 1.45; }
.h4-tile a:hover .h4-tile__go, .h4-tile a:focus-visible .h4-tile__go { text-decoration: underline; text-underline-offset: .2em; }
.h4-more { margin: 2.5rem 0 0; font-size: 1rem; }

/* ---------- Photos: a strip you swipe yourself (no scroll-jacking) ---------- */
.h4-photos { padding: 4rem 0 1rem; }
.h4-photos__head { padding-inline: var(--pad); }
.h4-photos__head h2 { margin: 0; font-size: 2.625rem; line-height: .98; font-weight: 600; letter-spacing: -.05em; }
.h4-photos__head p { margin: .75rem 0 0; color: var(--grey); font-size: 1rem; }
.h4-strip { display: flex; gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 1.5rem var(--pad) .5rem; scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.h4-strip::-webkit-scrollbar { display: none; }
.h4-strip figure { flex: 0 0 80%; margin: 0; scroll-snap-align: start; }
.h4-strip img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.h4-strip figcaption { padding-top: .5rem; color: var(--grey); font-size: .875rem; }
.h4-strip:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- Contact ---------- */
.h4-contact { padding: 4.5rem var(--pad) 2rem; }
.h4-contact__grid { display: grid; grid-template-columns: 1fr 34%; gap: 1rem; align-items: end; }
.h4-contact__title { margin: 0; font-size: 2.875rem; line-height: .95; font-weight: 600; letter-spacing: -.055em; }
.h4-contact__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.h4-contact__line { margin: 1.5rem 0 1.25rem; font-size: 1.0625rem; line-height: 1.45; max-width: 32ch; }
.h4-contact .btn--big { font-size: 1.125rem; padding: 1rem 1.5rem; }
.h4-contact .site-foot { padding: 0; border: 0; margin-top: 4rem; }
.h4-contact .site-foot__row { margin-top: 0; }

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .h4-hero { padding-top: calc(var(--header-h, 4rem) + 3rem); }
  .h4-hero__text { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: end; }
  .h4-name { font-size: 12rem; line-height: .82; }
  .h4-hero__side { margin: 0 0 1.25rem; }
  .h4-line { font-size: 1.5rem; }
  .h4-photo { margin: 3rem 0 0; }
  .h4-photo img { aspect-ratio: 3 / 2; }
  .h4-work { padding-top: 8rem; }
  .h4-work__head { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: end; }
  .h4-work__head h2 { font-size: 5.5rem; }
  .h4-work__head p { margin: 0; font-size: 1.25rem; }
  .h4-tiles { grid-template-columns: 1fr 1fr; gap: 4.5rem 2rem; margin-top: 4rem; }
  .h4-tile__media { aspect-ratio: 16 / 10; margin-inline: 0; }
  .h4-tile__media img, .h4-tile__media video { object-position: center; }
  .h4-tile__text h3 { font-size: 2.25rem; }
  .h4-tile__text p { font-size: 1.0625rem; max-width: 40ch; }
  .h4-photos { padding-top: 8rem; }
  .h4-photos__head { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: end; }
  .h4-photos__head h2 { font-size: 5.5rem; }
  .h4-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; overflow: visible; padding-top: 3rem; }
  .h4-strip figure { flex: none; }
  .h4-strip img { aspect-ratio: 3 / 2; }
  .h4-contact { padding-top: 9rem; }
  .h4-contact__grid { grid-template-columns: 1.35fr 1fr; gap: 3rem; }
  .h4-contact__title { font-size: 7rem; }
  .h4-contact__photo { justify-self: end; width: 70%; }
  .h4-contact__line { font-size: 1.375rem; }
  .h4-contact .btn--big { font-size: 1.375rem; padding: 1.375rem 2.25rem; }
  .h4-contact .site-foot { margin-top: 7rem; }
}

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

/* ---------- iPhone audit fixes (WebKit, 2026-10-15): V-01 face on first screen, V-02 44px targets,
   V-05 notch padding, V-07 contact headline. ---------- */
@media (max-width: 1023px) {
  .h4-hero { padding-top: 1.25rem; }
  .h4-photo { margin-top: 1.5rem; }
  .h4-photo img { aspect-ratio: 3 / 2; object-position: 50% 28%; }
  .head__name, .head__nav .link { display: inline-block; padding-block: 13px; margin-block: -13px; }
  .h4-ctas .link, .h4-more .link { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .h4-contact__title { font-size: clamp(2.25rem, 10vw, 3rem); text-wrap: balance; }
}
.head, .h4-hero, .h4-work, .h4-photos__head, section.h4-more, .h4-contact {
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}

/* ---------- Camera roll (JP liked the live film strip): a film band whose frames slide sideways
   as the section passes, tied to scroll position but never pinned, so the page keeps scrolling.
   Browsers without scroll-driven animations (and reduced motion) keep the native swipe strip. ---------- */
.h4-photos { overflow: clip; }
.h4-strip {
  background-color: #0a0a0a;
  background-image:
    repeating-linear-gradient(90deg, #ece6d6 0 10px, transparent 10px 26px),
    repeating-linear-gradient(90deg, #ece6d6 0 10px, transparent 10px 26px);
  background-size: 100% 7px, 100% 7px;
  background-position: 0 9px, 0 calc(100% - 9px);
  background-repeat: repeat-x;
  padding-block: 26px 10px;
  margin-top: 1.5rem;
}
.h4-strip figcaption { color: #b8b3a8; padding-bottom: 14px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) and (pointer: fine) {
    .h4-strip.is-roll { width: max-content; overflow: visible; scroll-snap-type: none; animation: h4-roll linear both; animation-timeline: view(); animation-range: entry 10% exit 90%; }
    @keyframes h4-roll { from { transform: translateX(0); } to { transform: translateX(calc(-100% + 100vw)); } }
  }
}
@media (min-width: 1024px) {
  .h4-strip.is-roll { display: flex; }
  .h4-strip.is-roll figure { flex: 0 0 30vw; width: 30vw; }
  .h4-strip.is-roll img { aspect-ratio: 3 / 2; }
}

/* R6 interim navigation, scoped to the new section so the existing work paragraph stays intact. */
section.h4-more { margin: 0; padding: 4.5rem var(--pad) 1rem; }
section.h4-more h2 { margin: 0; font-size: 2.625rem; line-height: .98; font-weight: 600; letter-spacing: -.05em; }
.h4-index { display: grid; gap: 1.75rem; margin-top: 2rem; }
.h4-index a { display: block; color: inherit; text-decoration: none; padding-block: .25rem; }
.h4-index__name { display: block; font-size: 3.25rem; line-height: .95; font-weight: 600; letter-spacing: -.055em; }
.h4-index__line { display: block; margin-top: .5rem; color: var(--grey); font-size: 1rem; line-height: 1.45; max-width: 34ch; }
.h4-index a:hover .h4-index__name,
.h4-index a:focus-visible .h4-index__name { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.h4-index a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (min-width: 1024px) {
  section.h4-more { padding-top: 8rem; display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: start; }
  section.h4-more h2 { font-size: 5.5rem; }
  .h4-index { margin-top: 0; gap: 2.5rem; }
  .h4-index__name { font-size: 5rem; }
  .h4-index__line { font-size: 1.125rem; }
}
section.h4-more { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }

/* CHECK2 Open 3 (10/17): "See the work" in the hero gets a 44 px tall hit area at desktop too; the line stays under the words. */
@media (min-width: 1024px) {
  .h4-ctas .link { display: inline-flex; align-items: center; min-height: 44px; }
  .h4-ctas .link::after { bottom: 9px; }
}
