/* After the Sam Chick layout: one light geometric sans (Outfit) in spaced caps, black / mid-grey / white, photographs edge to edge. */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --grey: #999999;
  --light: #aaaaaa;
  --rule: #ececec;
  --font: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(18px, 2.9vw, 42px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }

/* ---------- Opening photograph ---------- */
.hero { position: relative; height: 100svh; min-height: 480px; overflow: hidden; background: #e9e7e2; color: #fff; transition: color .8s; }
.hero.dark-text { color: var(--ink); }
.hero.dark-text .hero-title { text-shadow: 0 0 24px rgba(255,255,255,.25); }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 1.6s ease, transform 8s ease-out; }
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero-title {
  position: absolute; left: 0; right: 0; top: 27%; margin: 0; padding: 0 var(--gut);
  text-align: center; text-transform: uppercase;
  font-weight: 200; font-size: clamp(22px, 2.6vw, 38px); letter-spacing: .22em; line-height: 1.3; text-indent: .22em;
  text-shadow: 0 0 24px rgba(0,0,0,.18);
  opacity: 0; animation: rise 1.4s .3s ease forwards;
}
.hero-down { position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%); padding: 10px; opacity: .9; }
.hero-down:hover { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 30px var(--gut) 34px; }
.brand { text-transform: uppercase; font-weight: 300; font-size: 19px; letter-spacing: .16em; line-height: 1.4; }
.brand span { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; text-transform: uppercase; font-weight: 300; font-size: 15px; letter-spacing: .16em; line-height: 1.3; }
.nav > a { color: #9a9a9a; transition: color .2s; }
.nav > a:hover, .nav > a.on { color: var(--ink); }
.icons { display: flex; align-items: center; gap: 12px; margin-left: 10px; }
.icons a { color: var(--ink); opacity: .85; display: grid; }
.icons a:hover { opacity: .5; }

/* ---------- Project grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0 var(--gut); }
.tile { position: relative; display: block; aspect-ratio: 5 / 3; overflow: hidden; background: #f1f0ed; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tile img.ready { opacity: 1; }
.tile .veil {
  position: absolute; inset: 0; padding: 18px 20px; color: #fff;
  background: var(--tint, rgba(17,17,17,.82));
  opacity: 0; transition: opacity .35s ease;
  text-transform: uppercase; font-size: 17px; font-weight: 300; letter-spacing: .12em; line-height: 1.35;
}
.tile .veil small { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .06em; opacity: .85; }
.tile:hover .veil, .tile:focus-visible .veil { opacity: 1; }
.tile:hover img { transform: scale(1.03); }
.tile[hidden] { display: none; }
.cap { display: none; }

.more { text-align: center; margin: 56px 0 0; text-transform: uppercase; font-weight: 300; font-size: 14px; letter-spacing: .18em; }
.more a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more a:hover { color: var(--grey); }

.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0 var(--gut) 26px; text-transform: uppercase; font-weight: 300; font-size: 13px; letter-spacing: .16em; }
.filters button { color: #9a9a9a; }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); }

/* ---------- Reading column (project, films) ---------- */
.column { width: min(820px, 100% - 2 * var(--gut)); margin: 30px auto 0; }
.column.wide { width: min(1180px, 100% - 2 * var(--gut)); }
.t-title { margin: 0 0 16px; font-size: 19px; font-weight: 400; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.t-body { color: #8c8c8c; font-size: 17px; font-weight: 300; line-height: 1.65; }
.t-body p { margin: 0 0 4px; }
p.t-body { margin: 0 0 1em; }
.t-body .k { color: var(--ink); }
.p-media { display: grid; gap: 22px; margin-top: 40px; }
.p-media img { width: 100%; height: auto; background: #f1f0ed; opacity: 0; transition: opacity .6s; }
.p-media img.ready { opacity: 1; }
.frame { position: relative; aspect-ratio: 16 / 9; background: #111; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-nav { display: flex; justify-content: space-between; gap: 24px; margin: 70px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); text-transform: uppercase; font-size: 13px; font-weight: 300; letter-spacing: .14em; }
.p-nav a { max-width: 48%; }
.p-nav a span { display: block; color: var(--light); font-size: 11px; letter-spacing: .08em; margin-bottom: 4px; }
.p-nav a:last-child { text-align: right; }
.p-nav a:hover { color: var(--grey); }

/* Films */
.film { margin: 0 0 90px; }
.film-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; text-transform: uppercase; }
.film-cap strong { font-size: 16px; font-weight: 400; letter-spacing: .14em; }
.film-cap span { color: var(--grey); font-size: 13px; font-weight: 300; letter-spacing: .14em; }

/* ---------- Info ---------- */
.info { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 90px); padding: 30px var(--gut) 0; max-width: 1400px; margin: 0 auto; align-items: start; }
.info-photo { margin: 0; position: sticky; top: 30px; }
.info-photo img { width: 100%; height: auto; background: #f1f0ed; filter: grayscale(1); }
.info-text { max-width: 620px; }
.facts { margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.facts dt { text-transform: uppercase; font-size: 12px; font-weight: 400; letter-spacing: .16em; color: var(--light); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.6; }
.facts a { border-bottom: 1px solid var(--rule); }
.facts a:hover { border-color: var(--ink); }
.enquiry { margin-top: 60px; display: grid; gap: 4px; }
.enquiry .row { display: grid; grid-template-columns: 11em 1fr; align-items: baseline; border-bottom: 1px solid var(--rule); }
.enquiry label { font-size: 12px; text-transform: uppercase; font-weight: 400; letter-spacing: .14em; color: var(--light); }
.enquiry input, .enquiry textarea { font: inherit; font-size: 15px; color: var(--ink); border: 0; background: transparent; padding: 14px 0; resize: vertical; border-radius: 0; }
.enquiry input:focus, .enquiry textarea:focus { outline: 0; }
.enquiry .row:focus-within { border-bottom-color: var(--ink); }
.enquiry button { justify-self: start; margin-top: 22px; background: var(--ink); color: #fff; padding: 13px 28px; text-transform: uppercase; font-size: 12px; font-weight: 400; letter-spacing: .18em; }
.enquiry button:hover { background: #333; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 8px 0 0; color: var(--grey); font-size: 14px; min-height: 1.4em; }

/* ---------- Footer ---------- */
.foot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 90px var(--gut) 50px; text-transform: uppercase; font-size: 12px; font-weight: 300; letter-spacing: .18em; color: #9a9a9a; }
.foot a:hover { color: var(--ink); }

/* ---------- Gallery ---------- */
.g-bar { display: flex; justify-content: flex-end; padding: 0 var(--gut) 22px; }
.g-bar button { text-transform: uppercase; font-size: 13px; font-weight: 300; letter-spacing: .16em; color: #9a9a9a; }
.g-bar button:hover { color: var(--ink); }
.gallery { columns: 3 280px; column-gap: 14px; padding: 0 var(--gut); }
.gallery button { display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; background: #f1f0ed; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; opacity: 0; transition: opacity .6s, filter .3s; }
.gallery img.ready { opacity: 1; }
.gallery button:hover img { filter: brightness(.88); }

.lb { position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.98); display: grid; grid-template-rows: auto 1fr auto; padding: 18px var(--gut) 22px; }
.lb[hidden] { display: none; }
.lb-img { grid-row: 2; justify-self: center; align-self: center; max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; }
.lb button, .lb a { text-transform: uppercase; font-size: 13px; font-weight: 300; letter-spacing: .16em; color: #9a9a9a; }
.lb button:hover, .lb a:hover { color: var(--ink); }
.lb-close { grid-row: 1; justify-self: end; padding: 6px 0 14px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); padding: 20px 6px; }
.lb-prev { left: var(--gut); }
.lb-next { right: var(--gut); }
.lb-cap { grid-row: 3; display: flex; justify-content: center; gap: 28px; padding-top: 16px; text-transform: uppercase; font-size: 13px; letter-spacing: .16em; }
.lb-cap a { border-bottom: 1px solid #ddd; }
body.locked { overflow: hidden; }
@media (max-width: 680px) {
  .gallery { columns: 2; column-gap: 8px; }
  .gallery button { margin-bottom: 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; padding: 6px 0; }
  .lb-cap { flex-direction: column; align-items: center; gap: 6px; padding-bottom: 34px; text-align: center; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info { grid-template-columns: 1fr; }
  .info-photo { position: static; max-width: 480px; }
}
@media (max-width: 680px) {
  .head { flex-direction: column; gap: 16px; padding-top: 24px; }
  .brand { font-size: 17px; }
  .nav { gap: 20px; font-size: 14px; flex-wrap: wrap; }
  .grid { grid-template-columns: 1fr; gap: 22px; }
  .facts { grid-template-columns: 1fr; }
  .enquiry .row { grid-template-columns: 1fr; padding-top: 10px; }
  .enquiry input, .enquiry textarea { padding-top: 4px; }
  .t-body { font-size: 16px; }
}
/* Touch screens have no hover: show the project name under each photo. */
@media (hover: none) {
  .tile { overflow: visible; margin-bottom: 34px; }
  .grid { gap: 0 10px; }
  .tile .veil { display: none; }
  .cap { display: block; position: absolute; left: 0; right: 0; top: 100%; padding-top: 8px; text-transform: uppercase; font-size: 12px; font-weight: 300; letter-spacing: .12em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides img, .tile img { transition: opacity .01s; transform: none !important; }
  .hero-title { animation: none; opacity: 1; }
}
