:root {
  --bg: #fff;
  --ink: #111;
  --muted: #777;
  --accent: #E09600;
  --gap: 12px;
  --gutter: 32px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.lb-open { overflow: hidden; }

/* ---------- Header / menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .96);
}
.logo { display: block; flex-shrink: 0; }
/* The original Squarespace logo, used as a cutout so it can change colour on hover. */
.logo-mark {
  display: block; width: 248px; height: 15.5px; background-color: #e6e6e6;
  -webkit-mask: url(/assets/logo-line.png) left center / contain no-repeat;
  mask: url(/assets/logo-line.png) left center / contain no-repeat;
  transition: background-color .15s;
}
.logo:hover .logo-mark { background-color: var(--accent); }
nav ul { list-style: none; margin: 0; padding: 0; }
nav > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
nav a, nav button {
  font: inherit; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer;
  transition: color .15s;
}
nav a[aria-current], .has-sub.active > button { color: var(--ink); }
nav a:hover, nav button:hover, .has-sub:hover > button, main a:hover { color: var(--accent); }
nav button::after { content: ""; display: inline-block; margin-left: 6px; width: 5px; height: 5px;
  border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-3px) rotate(45deg); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: -16px; min-width: 180px; padding: 10px 16px;
  background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 6px 0; }
.menu-toggle { display: none; }

/* ---------- Thumbnail grid (masonry, 5 across) ---------- */
main { padding: 8px var(--gutter) 64px; }
.grid { display: flex; gap: var(--gap); align-items: flex-start; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.thumb {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: #f2f2f2; overflow: hidden;
}
.thumb img, .thumb video { display: block; width: 100%; height: auto; transition: opacity .4s; opacity: 0; }
.thumb img.loaded, .thumb video.loaded { opacity: 1; }
.thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(255, 255, 255, .99);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.lightbox[hidden] { display: none; }
.lightbox.visible { opacity: 1; }
.lb-stage { margin: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 56px 60px; }
.lb-stage img, .lb-stage video {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
  transition: opacity .15s ease;
}
.lightbox.fading .lb-stage img, .lightbox.fading .lb-stage video, .lightbox.fading .lb-name { opacity: 0; }
.lightbox button {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  opacity: .6; transition: opacity .15s;
}
.lightbox button:focus { outline: none; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; color: var(--accent); }
.lightbox svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lb-close { top: 12px; right: 16px; }
.lb-close { z-index: 3; }

/* Hover zones over the whole viewer: left third = previous, middle = back to thumbnails,
   right third = next. Each shows the orange cursor from the original site. */
.lb-zone { position: absolute; top: 0; bottom: 0; z-index: 1; }
.lb-zone-prev { left: 0; width: 40%; cursor: url(/assets/cursors/left.svg) 0 25, w-resize; }
.lb-zone-grid { left: 40%; width: 20%; cursor: url(/assets/cursors/grid.svg) 25 25, pointer; }
.lb-zone-next { right: 0; width: 40%; cursor: url(/assets/cursors/right.svg) 24 25, e-resize; }

/* On-screen arrows only for touch screens, where there is no cursor. */
.lb-prev, .lb-next { display: none !important; }
.lb-prev svg, .lb-next svg { width: 22px; height: 44px; fill: var(--accent); stroke: none; }
@media (hover: none) {
  .lb-zone { display: none; }
  .lb-prev, .lb-next { display: grid !important; opacity: 1; top: 50%; transform: translateY(-50%); }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
}

.lb-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 0 32px 18px;
}
.lb-name { font-size: 14px; color: var(--ink); transition: opacity .15s ease; }
.lb-count { font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-left: auto; }

/* ---------- Text pages ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; max-width: 1200px; margin: 40px auto; align-items: start; }
.about figcaption { font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: .05em; }
.about-text { max-width: 560px; font-size: 16px; }
.about h2, .text-page h1 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 36px 0 8px; }
.text-page { max-width: 640px; margin: 64px auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 20px; --gap: 10px; }
  .site-header { flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  nav > ul { justify-content: flex-start; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --gap: 8px; --header-h: 60px; }
  .site-header { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  .menu-toggle {
    display: block; font: inherit; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--ink);
  }
  nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 16px var(--gutter) 40px;
    overflow-y: auto; display: none;
  }
  body.nav-open nav { display: block; }
  body.nav-open { overflow: hidden; }
  nav > ul { flex-direction: column; gap: 0; }
  nav a, nav button { font-size: 13px; padding: 10px 0; display: block; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 16px; }
  nav button::after { display: none; }
  .about { grid-template-columns: 1fr; gap: 24px; margin-top: 16px; }
  .lb-stage { padding: 56px 12px; }
  .lb-caption { padding: 0 16px 16px; }
}

/* ---------- Contact form ---------- */
.contact-form { margin-top: 36px; display: grid; gap: 20px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label {
  display: grid; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: #fff; border: 0; border-bottom: 1px solid #ccc; border-radius: 0; padding: 8px 0;
  -webkit-appearance: none; appearance: none; transition: border-color .15s;
}
.contact-form textarea { border: 1px solid #ccc; padding: 10px 12px; resize: vertical; }
.contact-form select { cursor: pointer; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form .invalid { border-color: #c0392b; }
.contact-form button {
  justify-self: start; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: var(--ink); border: 0; padding: 14px 36px; cursor: pointer; transition: opacity .15s;
}
.contact-form button:hover { background: var(--accent); }
.contact-form button:disabled { opacity: .4; cursor: default; }
.form-status { margin: 0; font-size: 14px; min-height: 1.6em; }
.form-status.error { color: #c0392b; }
.contact-form.sent > :not(.form-status) { display: none; }
.contact-form.sent .form-status { font-size: 18px; }
@media (max-width: 760px) { .contact-form .row { grid-template-columns: 1fr; } }
