/* site.css — page content styles, shared by the public site and the editor.
   --u = 1% of the page width (set by JS). .is-mobile switches the phone layout. */

.site {
  --u: 1vw;
  position: relative;
  width: 100%;
  background: #fff;
  color: #000;
  font-family: Verdana, Geneva, sans-serif;
}

.s {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* ── Hero ── */
.s-hero { display: grid; place-items: center; }
.hero-h1 {
  font-family: 'Arial Black', Gadget, sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, calc(var(--u) * 7), 5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.is-mobile .hero-h1 { font-size: 2.5rem; letter-spacing: -.01em; }

/* ── Collage ── */
.s-collage { z-index: 2; }
.it { position: absolute; will-change: transform, opacity; transition: opacity .4s ease; }
.it-img { width: 100%; height: 100%; overflow: hidden; }
.it-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ov { position: absolute; opacity: 0; pointer-events: none; z-index: 20; }
.ov-right  { left: calc(100% + 16px); top: 50%; transform: translateY(-50%); }
.ov-left   { right: calc(100% + 16px); top: 50%; transform: translateY(-50%); }
.ov-bottom { top: calc(100% + 14px); left: 0; }
.ov-top    { bottom: calc(100% + 14px); left: 0; }
.ov-in { font-size: .65rem; line-height: 1.8; width: calc(var(--u) * 25); white-space: normal; }
.ov-in b {
  display: block;
  font-family: 'Arial Black', Gadget, sans-serif;
  font-size: 1.1rem; font-weight: 400;
  margin-bottom: .25rem;
}
.is-mobile .ov { display: none; }

.s-collage.has-hover .it:not(.is-hov) { opacity: 0; }
.s-collage .it.is-hov { z-index: 999 !important; }
.it.is-hov .ov { opacity: 1; }

/* ── Text block ── */
.s-text { padding: calc(var(--u) * 7) 3rem; }
.tx { white-space: pre-wrap; overflow-wrap: break-word; }
.tx.sz-l {
  font-family: 'Arial Black', Gadget, sans-serif;
  font-size: clamp(1.2rem, calc(var(--u) * 2.2), 2rem);
  line-height: 1.55;
  max-width: calc(var(--u) * 72);
}
.tx.sz-m { font-size: clamp(.85rem, calc(var(--u) * 1.15), 1.05rem); line-height: 1.85; max-width: 60ch; }
.tx.al-center { margin-inline: auto; text-align: center; }
.is-mobile .s-text { padding: calc(var(--u) * 16) 1.5rem; }
.is-mobile .tx.sz-l { font-size: 1.15rem; max-width: none; }

/* ── Project slider ── */
.s-slider { padding: 5rem 3rem 2rem; display: flex; }
.sl-layout { display: flex; gap: 3rem; flex: 1; min-height: 0; min-width: 0; }
.sl-view { flex: 1; overflow: hidden; position: relative; min-width: 0; }
.sl-track { display: flex; height: 100%; transition: transform .25s linear; }
.sl-card { flex: 0 0 100%; height: 100%; }
.sl-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sl-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: none; border: 0; padding: 1rem; color: inherit;
  transition: opacity .2s;
}
.sl-btn:hover { opacity: .5; }
.sl-btn svg { display: block; width: 2.6rem; height: 4rem; stroke: currentColor; stroke-width: 1; fill: none; }
.sl-prev { left: 0; }
.sl-next { right: 0; }
.sl-info { width: min(28rem, calc(var(--u) * 32)); flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; }
.sl-info b { font-family: 'Arial Black', Gadget, sans-serif; font-weight: 400; font-size: 1.1rem; margin-bottom: .25rem; }
.sl-info p { font-size: 1rem; line-height: 1.8; }
.is-mobile .s-slider { padding: 4rem 1.5rem 2rem; }
.is-mobile .sl-layout { flex-direction: column; gap: 1.2rem; }
.is-mobile .sl-view { flex: none; height: calc(var(--u) * 70); }
.is-mobile .sl-info { width: 100%; justify-content: flex-start; }
.is-mobile .sl-info b { font-size: .9rem; }
.is-mobile .sl-info p { font-size: .62rem; }

/* ── Footer ── */
.s-footer { padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.f-logo { font-family: 'Arial Black', Gadget, sans-serif; font-size: 5rem; line-height: 1; }
.f-about {
  font-family: 'Arial Black', Gadget, sans-serif;
  font-size: clamp(1.4rem, calc(var(--u) * 2.2), 2rem);
  line-height: 1.55; margin-top: 2rem;
  max-width: calc(var(--u) * 72);
}
.f-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1rem;
  font-size: .6rem; letter-spacing: .1em; line-height: 2.2; opacity: .6;
}
.f-bottom a { color: inherit; text-decoration: none; transition: opacity .2s; }
.f-bottom a:hover { opacity: .6; }
.f-right { text-align: right; }
.is-mobile .s-footer { padding: 1.5rem; }
.is-mobile .f-logo { font-size: 2.2rem; }
.is-mobile .f-about { font-size: 1.15rem; max-width: none; }
.is-mobile .f-bottom { font-size: .62rem; }
