/* WAAR: one stylesheet for every page. One paper colour, one ink, one pair of fonts, one card, one footer.
   Pictures carry their own colour; the page around them never changes. */
:root {
  color-scheme: light;
  --paper: #f2efe9;
  --card: #e8e3da;
  --ink: #141412;
  --soft: #6b675f;
  --line: #d9d4ca;
  --gutter: clamp(20px, 4vw, 56px);
  --wide: 1360px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(242,239,233,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
               border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; }
.mark { font-family: var(--serif); font-weight: 500; letter-spacing: .32em; font-size: 15px; text-decoration: none; }
.nav-wide { display: flex; gap: 28px; font-size: 13px; }
.nav-wide a, .nav-small a { text-decoration: none; color: var(--soft); }
.nav-wide a:hover, .nav-wide a[aria-current] { color: var(--ink); }
.nav-wide a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-small { display: none; position: relative; }
.nav-small summary { list-style: none; cursor: pointer; font-size: 13px; padding: 10px 0 10px 12px; }
.nav-small summary::-webkit-details-marker { display: none; }
.nav-small summary::after { content: " +"; }
.nav-small[open] summary::after { content: " \2212"; }
.nav-small nav { position: fixed; left: 0; right: 0; top: calc(64px + env(safe-area-inset-top, 0px)); background: var(--paper); border-bottom: 1px solid var(--line);
                 display: grid; padding: 4px var(--gutter) 18px; overflow-y: auto; overscroll-behavior: contain;
                 max-height: calc(100vh - 64px - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px)); }
.nav-small nav a { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; color: var(--ink); padding: 12px 0; border-top: 1px solid var(--line); }
.nav-small nav a:first-child { border-top: 0; }
.nav-small nav a[aria-current] { font-style: italic; }
@media (max-width: 760px) { .nav-wide { display: none; } .nav-small { display: block; } }

/* Type */
.kicker { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .95; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.1; }
.lede { margin: 0; font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 54ch; }
.soft { color: var(--soft); }
p { margin: 0; }
.prose { display: grid; gap: 14px; max-width: 56ch; }

/* Page opening: same on every inner page */
.page-head { padding: clamp(48px, 9vh, 104px) 0 clamp(36px, 6vh, 64px); }
.page-head .wrap { display: grid; gap: 22px; }

/* Sections */
.section { padding: clamp(56px, 10vh, 112px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: clamp(28px, 5vh, 48px); }
.section-head p { max-width: 46ch; color: var(--soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .media { order: -1; } }

/* The one card. A frame of the same colour and shape, the object sitting in it, then number, name, line. */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.cards.c2 { --cols: 2; } .cards.c3 { --cols: 3; } .cards.c6 { --cols: 6; }
@media (max-width: 1080px) { .cards, .cards.c3 { --cols: 2; } .cards.c6 { --cols: 3; } }
@media (max-width: 560px) { .cards.c2 { --cols: 1; } .cards.c6 { --cols: 2; } }
.card { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.frame { position: relative; aspect-ratio: 4 / 5; background: var(--card); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; }
.frame.wide { aspect-ratio: 4 / 3; }
.frame img, .frame svg { display: block; }
.frame .fit { max-width: 72%; max-height: 80%; width: auto; height: auto; object-fit: contain; }
.frame svg.fit { width: 100%; height: auto; max-width: 92%; max-height: 92%; }
.frame .art { width: auto; height: auto; object-fit: contain; max-width: 66%; max-height: 74%; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 18px 36px -18px rgba(0,0,0,.45); }
.frame .paper { mix-blend-mode: multiply; }
.frame .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .frame img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.card:hover .frame img { transform: scale(1.03); }
.meta { display: grid; gap: 6px; }
.meta .n { font-size: 12px; letter-spacing: .14em; color: var(--soft); }
.meta h3 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.meta h3 .arr { font-family: var(--sans); font-size: 16px; color: var(--soft); transition: transform .3s; }
a.card:hover .meta h3 .arr { transform: translateX(4px); color: var(--ink); }
.meta p { color: var(--soft); font-size: 15px; max-width: 40ch; }

/* "More from WAAR": lighter frames; on a phone a short list with a small picture. */
.cards.c3 .frame { aspect-ratio: 4 / 3; }
@media (max-width: 560px) {
  .cards.c3 { --cols: 1; gap: 0; border-top: 1px solid var(--line); }
  .cards.c3 .card { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cards.c3 .frame { aspect-ratio: 1; }
}

/* Lists of facts */
.facts { list-style: none; margin: 0; padding: 0; display: grid; max-width: 56ch; font-size: 15px; }
.facts li { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-weight: 500; color: var(--soft); }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* Numbered rows (services) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: 4em minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px clamp(16px, 3vw, 48px); padding: clamp(20px, 3vh, 32px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows .n { font-size: 12px; letter-spacing: .14em; color: var(--soft); }
.rows p { color: var(--soft); max-width: 56ch; }
@media (max-width: 760px) { .rows li { grid-template-columns: 3em minmax(0, 1fr); } .rows li p { grid-column: 2; } }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); border-radius: 999px; padding: .7em 1.3em; text-decoration: none; font-size: 14px;
       transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.quiet { border-color: var(--line); }

/* Photo strips: equal tiles in a row; a swipe row on a phone */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.strip img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 760px) { .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; } .strip img { width: 72vw; flex: 0 0 auto; scroll-snap-align: start; } }
.caption { margin-top: 14px; font-size: 12px; color: var(--soft); }

/* Footer: the same contact block at the end of every page */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(64px, 12vh, 128px) 0 0; }
.site-footer .wrap { display: grid; gap: 24px; }
.site-footer .kicker { color: #a9a49b; }
.site-footer :focus-visible { outline-color: var(--paper); }
.site-footer h2 { font-size: clamp(2.2rem, 5.4vw, 4.8rem); line-height: .95; max-width: 17ch; }
.site-footer .btn { border-color: rgba(242,239,233,.6); justify-self: start; font-size: 15px; }
.site-footer .btn:hover { background: var(--paper); color: var(--ink); }
.site-footer ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
.site-footer li { display: grid; gap: 4px; align-content: start; border-top: 1px solid rgba(242,239,233,.22); padding-top: 12px; font-size: 15px; }
.site-footer li b { font-weight: 500; }
.site-footer li span, .site-footer li a { color: #a9a49b; text-decoration: none; }
.site-footer li a:hover { color: var(--paper); }
.site-footer .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(48px, 8vh, 88px); padding: 22px 0 calc(28px + env(safe-area-inset-bottom, 0px));
                     border-top: 1px solid rgba(242,239,233,.22); font-size: 12px; color: #a9a49b; }
.site-footer .base a { color: var(--paper); }
@media (max-width: 760px) { .site-footer ul { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card .frame img, .meta h3 .arr { transition: none; } }

/* Living pictures (assets/waar.js): every picture is a stage you move across. */
.scene { display: block; width: 100%; height: 100%; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.page-head .head-text { gap: 22px; }
.stage-hero { margin: 0; width: min(100%, 500px); justify-self: end; }
.stage-hero .frame { aspect-ratio: 4 / 5; }
.stage-hero .scene { cursor: pointer; }
.hint { text-align: center; }
.hint .h-touch { display: none; }
@media (hover: none), (pointer: coarse) { .hint .h-fine { display: none; } .hint .h-touch { display: inline; } }
@media (max-width: 860px) { .page-head .media { order: 0; } .stage-hero { justify-self: stretch; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hint { display: none; } .stage-hero .scene { cursor: auto; } }
