/* home.css — index.html */

/* Opening scene: the screen is a window and the scroll lifts the blind (blind.js).
   Static (no JS, reduced motion): the blind rests half raised, headline on the fabric,
   the room and the second line below it. Live: the section is taller, the stage sticks
   under the header and --lift (0 to 1) raises the blind; --after brings in the second line. */
.blind { position: relative; }
.blind__stage { position: relative; height: calc(100svh - 4.5rem); min-height: 34rem; max-height: 62rem; overflow: hidden; isolation: isolate; background: #d8d4cd; }
.blind--live { height: 250vh; }
.blind--live .blind__stage { position: sticky; top: 4.5rem; }
.blind__room, .blind__room img { position: absolute; inset: 0; width: 100%; height: 100%; }
.blind__room img { object-fit: cover; object-position: 50% 55%; transform-origin: 50% 60%; transform: scale(calc(1.07 - .07 * var(--lift, .5))); filter: brightness(calc(.68 + .32 * var(--lift, .5))); }
.blind__light { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 62% 28%, rgba(255, 246, 226, .5), rgba(255, 246, 226, 0) 70%); opacity: var(--lift, .5); }
.blind__after { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(1.25rem, 4vh, 3rem); max-width: 31rem; padding: var(--s5) var(--s6) var(--s6); border-radius: var(--r-md); background: color-mix(in srgb, var(--bg) 90%, transparent); color: var(--ink); box-shadow: 0 12px 40px rgba(0, 0, 0, .12); opacity: var(--after, 1); transform: translateY(calc((1 - var(--after, 1)) * 1.5rem)); }
.blind__line { max-width: none; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.blind__sub { margin-top: var(--s3); max-width: none; color: var(--ink-soft); }
.blind__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s5); max-width: none; }
.blind__sheer { position: absolute; z-index: 2; top: 0; right: 0; height: 100%; width: auto; max-width: 34%; object-fit: cover; object-position: 100% 50%; mix-blend-mode: screen; opacity: .8; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); transform: translateX(calc((1 - var(--lift, .5)) * 30%)); }
.blind__shade { position: absolute; inset: 0; z-index: 4; transform: translateY(calc(var(--lift, .5) * -100%)); }
.blind__fabric { position: absolute; inset: 0; background: #d3cfc8 url(../../images/scenes/fabric.webp) center / cover; box-shadow: inset 0 -3rem 3rem -2.5rem rgba(0, 0, 0, .18); }
.blind__text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1.75rem, 6vh, 4rem); color: #171717; }
.blind__text h1 { max-width: 13ch; font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: #171717; }
.blind__lede { margin-top: var(--s4); max-width: 30rem; font-size: var(--t-md); line-height: 1.5; color: #2b2a28; }
.blind__hem { position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: linear-gradient(#45423e, #1f1e1c); box-shadow: 0 10px 22px rgba(0, 0, 0, .3); }
.blind__cassette { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 12px; background: linear-gradient(#f6f4f0, #d6d2cb); box-shadow: 0 2px 6px rgba(0, 0, 0, .16); }
.blind--live .blind__shade, .blind--live .blind__room img, .blind--live .blind__sheer, .blind--live .blind__after { will-change: transform; }
@media (max-width: 699px) {
  .blind--live { height: 210vh; }
  .blind__sheer { max-width: 42%; opacity: .65; }
  .blind__after { right: var(--gutter); padding: var(--s4) var(--s5) var(--s5); }
  .blind__text { bottom: 1.5rem; }
}
/* Static composition: no room for the card under a half-raised blind on short screens */
.blind:not(.blind--live) .blind__stage { min-height: 40rem; }

/* Materials: three editorial spreads, picture and text alternate sides */
.materials { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.materials__head { max-width: 40rem; }
.materials__head h2 { font-size: var(--t-xl); line-height: 1.1; }
.materials__head p { margin-top: var(--s4); color: var(--ink-soft); }
.spread { display: grid; gap: var(--s6) var(--col-gap); align-items: center; margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
@media (min-width: 900px) {
  .spread { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .spread__pic { grid-column: 1 / span 5; }
  .spread__text { grid-column: 7 / span 5; }
  .spread--flip .spread__pic { grid-column: 8 / -1; grid-row: 1; }
  .spread--flip .spread__text { grid-column: 2 / span 5; grid-row: 1; }
}
.spread__pic { margin: 0; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 5; background: var(--surface-2); }
.spread__pic img { width: 100%; height: 112%; object-fit: cover; transform: translateY(calc(var(--depth, 0) * 1px - 6%)); }
.spread__text h3 { font-size: var(--t-lg); line-height: 1.15; }
.spread__text p { margin-top: var(--s4); }
.spread__meta { color: var(--ink-soft); font-size: var(--t-xs); }

/* Real installations: the photo strip with a short heading */
.work-strip { padding-top: var(--s7); }
.work-strip__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s6); }
.work-strip__head h2 { font-size: var(--t-lg); }
.work-strip .marquee { margin-top: var(--s4); }

/* Photo marquee: a strip of installation photos that drifts left, can be dragged, and coasts.
   The white curves above and below match the page colour in both themes. JS: marquee.js */
.marquee { position: relative; margin-top: var(--s6); padding-block: var(--s4); overflow: hidden; }
.marquee__mask { position: absolute; left: 0; right: 0; z-index: 2; width: 100%; height: clamp(56px, 3rem + 3vw, 100px); fill: var(--bg); pointer-events: none; }
.marquee__mask--top { top: 0; }
.marquee__mask--bottom { bottom: 0; }
.marquee__viewport { overflow-x: auto; scrollbar-width: none; }           /* without JS: swipe to scroll */
.marquee__viewport::-webkit-scrollbar { display: none; }
.js .marquee__viewport { overflow: hidden; cursor: grab; touch-action: pan-y; }
.js .marquee__viewport.is-dragging { cursor: grabbing; }
.marquee__track { display: flex; width: max-content; gap: clamp(.75rem, .5rem + .6vw, 1rem); padding: var(--s4) 0; list-style: none; user-select: none; -webkit-user-select: none; will-change: transform; }
.marquee__item { flex-shrink: 0; max-width: none; width: clamp(15rem, 11rem + 9vw, 20rem); aspect-ratio: 5 / 8; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); }
.marquee__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.marquee__pause { position: absolute; left: 50%; transform: translateX(-50%); bottom: var(--s2); z-index: 3; min-height: 36px; padding: var(--s1) var(--s4); border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); color: var(--ink); font-size: var(--t-xs); }
.marquee__pause:hover { border-color: var(--ink); }

/* Under the strip: one paragraph and two underlined links */
.hero-after { max-width: 42rem; margin-inline: auto; padding: var(--s2) var(--gutter) var(--s4); text-align: center; }
.hero-after p { max-width: none; font-size: var(--t-md); line-height: 1.6; }
.hero-after__links { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4) var(--s7); margin-top: var(--s6); }
@media (min-width: 640px) { .hero-after__links { flex-direction: row; } }

/* Categories: same order on every card; two per row on phones to keep the page short */
.cats .card__body { padding-top: var(--s3); }
@media (max-width: 599px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cats .card { padding: var(--s2); } }

/* About: photo left (5), text right (7) */
@media (min-width: 900px) { .about { align-items: center; } .about__pic { grid-column: 1 / span 5; } .about__text { grid-column: 7 / -1; } }
.about__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.about__text > * + * { margin-top: var(--s5); }
.about__cards { display: grid; gap: var(--gap); }
@media (min-width: 600px) { .about__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about__cards .panel { padding: var(--pad); }
.about__cards h3 { font-size: var(--t-sm); }
.about__cards p { margin-top: var(--s1) !important; }

.work .item__pic { aspect-ratio: 4 / 5; }

/* Client circles */
.circles { list-style: none; padding: 0; display: grid; gap: var(--s6) var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
@media (min-width: 600px) { .circles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .circles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.circles li { max-width: none; }
.circles img { width: min(100%, 9.5rem); aspect-ratio: 1; margin: 0 auto; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); }
.circles span { display: block; margin-top: var(--s3); font-weight: 400; }

/* Let's talk + FAQ */
@media (min-width: 900px) { .talk > :first-child { grid-column: 1 / span 6; } .talk > :last-child { grid-column: 7 / -1; } }
.faq-title { font-size: var(--t-lg); margin-bottom: var(--s5); }
