/* Owen Roper — homepage (v2, monochrome) */
:root {
  --ink: oklch(0.13 0 0);
  --paper: oklch(0.99 0 0);
  --hero-h: 100svh;
}

/* ---------- header: clear over the hero, solid white once past it ---------- */
.home .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; backdrop-filter: none; border-bottom: 1px solid transparent;
  color: var(--paper);
  transition: transform 0.55s var(--ease-out), background-color 0.4s, color 0.4s, border-color 0.4s;
}
.home .nav a:hover, .home .nav a.is-active { color: inherit; }
.home .nav .enquire { border-bottom-color: currentColor; }
.home .site-header.is-solid {
  background: color-mix(in oklab, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--ink); border-bottom-color: var(--border);
}
.home .site-header.is-scrolled { box-shadow: none; }
.home .scroll-progress { background: var(--paper); z-index: 61; transition: background-color 0.4s; }
.home.header-solid .scroll-progress { background: var(--ink); }

/* ---------- hero ---------- */
.hero2 {
  position: relative; min-height: var(--hero-h); overflow: hidden;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero2-photo { position: absolute; inset: 0; overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.7s var(--ease-io) 0.1s; }
.hero2-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%;
  scale: 1.3; transition: scale 2.6s var(--ease-out) 0.1s; will-change: translate, scale;
}
.hero2-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.25) 0%, rgb(0 0 0 / 0) 30%, rgb(0 0 0 / 0.15) 55%, rgb(0 0 0 / 0.85) 100%);
}
.is-loaded .hero2-photo { clip-path: inset(0 0 0 0); }
.is-loaded .hero2-photo img { scale: 1.06; }

.hero2-copy { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 28px; }
.hero2-kicker {
  display: flex; gap: 18px; font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  opacity: 0; translate: 0 14px; transition: opacity 0.9s var(--ease-out) 0.9s, translate 0.9s var(--ease-out) 0.9s;
}
.hero2-kicker span + span::before { content: "/"; margin-right: 18px; opacity: 0.5; }
.hero2-name {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(5.2rem, 31vw, 22rem); line-height: 0.8; letter-spacing: -0.01em;
}
.hero2-name .outline { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
@media (min-width: 768px) { .hero2-name .outline { -webkit-text-stroke-width: 2px; } }
.hero2-foot {
  margin-top: 28px; display: flex; flex-direction: column; gap: 22px;
  opacity: 0; translate: 0 14px; transition: opacity 0.9s var(--ease-out) 1.1s, translate 0.9s var(--ease-out) 1.1s;
}
.hero2-blurb { max-width: 34ch; font-family: var(--font-editorial); font-style: italic; font-size: 20px; line-height: 1.3; }
.hero2-cue { display: inline-flex; align-items: center; gap: 14px; font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.cue-line { position: relative; display: block; width: 64px; height: 1px; background: rgb(255 255 255 / 0.3); overflow: hidden; }
.cue-line::after {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  transform: translateX(-100%); animation: cue 2.2s var(--ease-io) 2s infinite;
}
@keyframes cue { 0% { transform: translateX(-100%); } 50% { transform: none; } 100% { transform: translateX(100%); } }
.hero2-count {
  display: none; position: absolute; z-index: 2; right: 20px; top: 50%;
  writing-mode: vertical-rl; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  opacity: 0; transition: opacity 1s var(--ease-out) 1.3s;
}
.hero2-count span { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: 0.04em; }
.is-loaded .hero2-kicker, .is-loaded .hero2-foot { opacity: 1; translate: 0 0; }
.is-loaded .hero2-count { opacity: 0.7; }

@media (min-width: 900px) {
  .hero2 { display: grid; grid-template-columns: 1fr 42%; align-items: end; }
  .hero2-photo { position: relative; grid-column: 2; grid-row: 1; height: var(--hero-h); inset: auto; }
  .hero2-photo::after { background: linear-gradient(90deg, rgb(0 0 0 / 0.35) 0%, rgb(0 0 0 / 0) 35%); }
  .hero2-copy { grid-column: 1 / -1; grid-row: 1; padding-bottom: 48px; }
  .hero2-name { font-size: clamp(9rem, 21vw, 24rem); }
  .hero2-foot { flex-direction: row; align-items: flex-end; justify-content: space-between; max-width: 54%; }
  .hero2-blurb { font-size: 26px; }
  .hero2-count { display: block; right: 40px; top: 120px; }
}

/* ---------- marquee ---------- */
.marquee { padding: 72px 0 24px; display: grid; gap: 12px; overflow: hidden; background: var(--paper); }
@media (min-width: 768px) { .marquee { padding: 120px 0 40px; gap: 20px; } }
.m-row { overflow: hidden; }
.m-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
@media (min-width: 768px) { .m-track { gap: 20px; } }
.m-cell { height: 150px; flex: none; overflow: hidden; }
@media (min-width: 768px) { .m-cell { height: 260px; } }
.m-cell img {
  height: 100%; width: auto; filter: grayscale(1) contrast(1.05);
  transition: filter 0.7s var(--ease-out), scale 0.9s var(--ease-out);
}
.m-cell:hover img { filter: none; scale: 1.04; }
.marquee { opacity: 0; transition: opacity 1.2s var(--ease-out) 0.4s; }
.is-loaded .marquee { opacity: 1; }

/* ---------- work ---------- */
.work { padding-top: 96px; padding-bottom: 120px; }
@media (min-width: 768px) { .work { padding-top: 140px; padding-bottom: 180px; } }
.work-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
@media (min-width: 768px) { .work-head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; } }
.work-title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(4.5rem, 14vw, 13rem); line-height: 0.8; }
.work-note { max-width: 30ch; font-family: var(--font-editorial); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--muted-foreground); }
@media (min-width: 768px) { .work-note { font-size: 22px; text-align: right; } }

.chips {
  position: sticky; top: var(--chips-top, 0px); z-index: 40;
  transition: top 0.55s var(--ease-out);
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -20px 40px; padding: 14px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { margin: 0 -40px 56px; padding: 16px 40px; gap: 10px; } }
.chip {
  flex: none; position: relative; overflow: hidden;
  padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.45s var(--ease-out);
}
.chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform 0.45s var(--ease-out);
}
.chip { isolation: isolate; }
.chip:hover::before, .chip.is-active::before { transform: none; }
.chip:hover, .chip.is-active { color: var(--paper); }
.chip sup { font-size: 8px; margin-left: 2px; opacity: 0.6; }

/* masonry: JS sets grid-row-end span from measured height */
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 4px; column-gap: 12px; align-items: start; }
@media (min-width: 768px) { .g-grid { grid-template-columns: repeat(3, 1fr); column-gap: 24px; } }
.g-grid > [hidden] { display: none; }

.g-head {
  grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between;
  padding: 36px 0 18px; border-top: 1px solid var(--ink);
}
.g-head:first-child { padding-top: 14px; }
.g-head h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 0.85; }
.g-head span { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--muted-foreground); }

.g-item { padding-bottom: 28px; min-width: 0; }
@media (min-width: 768px) { .g-item { padding-bottom: 40px; } }
.g-item .open { display: block; width: 100%; text-align: left; cursor: zoom-in; }
.g-frame { position: relative; overflow: hidden; background: var(--secondary); }
.g-frame img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out), filter 0.8s; }
.g-item .open:hover .g-frame img { scale: 1.045; }
.g-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--ink); transition: box-shadow 0.5s var(--ease-out);
}
.g-item .open:hover .g-frame::after { box-shadow: inset 0 0 0 6px var(--ink); }
.g-item .open:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; margin-top: 10px; }
.g-num { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted-foreground); }
.g-title { font-family: var(--font-editorial); font-style: italic; font-weight: 500; font-size: 17px; line-height: 1.15; }
.g-cat { grid-column: 2; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 3px; }
@media (min-width: 768px) { .g-title { font-size: 21px; } }

/* reveal: frame wipes open, photo settles, caption follows */
.g-frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-io); transition-delay: var(--delay, 0ms); }
.g-frame img { scale: 1.25; }
.g-item figcaption { opacity: 0; translate: 0 10px; transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out); transition-delay: calc(var(--delay, 0ms) + 350ms); }
.g-item.is-in .g-frame { clip-path: inset(0 0 0 0); }
.g-item.is-in .g-frame img { scale: 1; }
.g-item.is-in .open:hover .g-frame img { scale: 1.045; }
.g-item.is-in figcaption { opacity: 1; translate: 0 0; }
.g-head { opacity: 0; translate: 0 16px; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); }
.g-head.is-in { opacity: 1; translate: 0 0; }

/* ---------- about ---------- */
.about { padding-top: 120px; padding-bottom: 140px; border-top: 1px solid var(--ink); }
.about-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; } }
.about-label { font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.about-title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(4rem, 12vw, 11rem); line-height: 0.88; }
@media (min-width: 900px) {
  .about-label { grid-column: 1 / -1; }
  .about-title { grid-column: 1 / 7; }
  .about-body { grid-column: 8 / 13; }
}
.about .quote { font-family: var(--font-editorial); font-style: italic; font-size: 30px; line-height: 1.15; }
@media (min-width: 768px) { .about .quote { font-size: 40px; } }
.about .bio { margin-top: 22px; font-size: 15px; line-height: 1.6; color: var(--muted-foreground); max-width: 46ch; }
.about-list { list-style: none; margin-top: 36px; }
.about-list li {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.about-list li span + span { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--muted-foreground); font-size: 14px; }

/* ---------- footer ---------- */
.site-footer2 { background: var(--ink); color: var(--paper); padding-top: 110px; padding-bottom: 32px; }
.f-kicker { font-family: var(--font-editorial); font-style: italic; font-size: 22px; max-width: 30ch; opacity: 0.75; }
.f-cta {
  display: flex; align-items: center; gap: 0.15em; margin-top: 18px;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(5rem, 19vw, 19rem); line-height: 0.8;
}
.f-cta .arrow { font-family: var(--font-body); font-weight: 300; font-size: 0.5em; transition: transform 0.6s var(--ease-out); }
.f-cta:hover .arrow { transform: translateX(0.18em) rotate(-45deg); }
.f-cta .line > span { transition-delay: 0.1s; }
.f-cols {
  display: grid; gap: 22px; margin-top: 80px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.2);
  font-size: 11px; line-height: 1.7; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(255 255 255 / 0.65);
}
@media (min-width: 768px) { .f-cols { grid-template-columns: 1fr 1.4fr 1fr; } .f-cols .right { text-align: right; } }
.site-footer2 .footer-credit { margin-top: 40px; font-size: 11px; color: rgb(255 255 255 / 0.45); letter-spacing: 0.06em; }
.site-footer2 .footer-credit a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero2-photo, .hero2-photo img, .hero2-kicker, .hero2-foot, .hero2-count, .marquee,
  .g-frame, .g-frame img, .g-item figcaption, .g-head, .chip, .chip::before { transition: none !important; }
  .hero2-photo, .g-frame { clip-path: none !important; }
  .hero2-photo img, .g-frame img { scale: 1 !important; }
  .hero2-kicker, .hero2-foot, .g-item figcaption, .g-head, .marquee { opacity: 1 !important; translate: none !important; }
  .cue-line::after { animation: none; }
  .m-row { overflow-x: auto; }
}

.is-loaded .hero2-name .line > span { transform: none; clip-path: inset(-60% -10% -60% -10%); }
