/* Lydia Dye — rebuilt from the Squarespace site (layout measured at 1440 px wide). */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(/fonts/archivo.woff2) format("woff2");
}
@font-face {
  font-family: "Archivo"; font-style: italic; font-weight: 200 700; font-display: swap;
  src: url(/fonts/archivo-italic.woff2) format("woff2");
}
:root {
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ink: #111;          /* headings, menu */
  --text: #4a4a4a;      /* body text */
  --muted: #9a9a9a;     /* current menu item, small print */
  --line: #e6e6e6;
  --edge: 50px;         /* page margin */
  --side: 285px;        /* where the content column starts */
  --pad: 17px;          /* space around every block */
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 15px/1.6 var(--font); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--side);
  padding: var(--edge) 0 var(--edge) var(--edge); overflow-y: auto;
}
.logo { display: block; width: 150px; transition: opacity .2s; }
.logo:hover { opacity: .85; }
.logo img { width: 150px; }
.menu-toggle { display: none; }
.sidebar nav ul { list-style: none; margin: 34px 0 0; padding: 0; }
.sidebar nav a {
  position: relative; display: inline-block; padding: 4px 0; text-decoration: none;
  font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--ink); transition: color .2s;
}
.sidebar nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.sidebar nav a:hover::after { transform: scaleX(1); }
.sidebar nav a[aria-current] { color: var(--muted); }
.sidebar nav a[aria-current]::after { transform: scaleX(1); }
.info { margin-top: 56px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.info p { margin: 0 0 4px; }
.foot { display: none; }

/* ---------- content grid ---------- */
.content { margin-left: var(--side); max-width: 916px; padding: calc(var(--edge) - var(--pad)) 0 var(--edge); }
.row { display: flex; }
.col { flex: 0 0 calc(var(--span) / 12 * 100%); min-width: 0; }
.block { display: block; margin: 0; padding: var(--pad); }

/* text blocks */
.text { max-width: 640px; }
.text h1, .text h2, .text h3 { color: var(--ink); font-weight: 600; margin: 0 0 .5em; letter-spacing: -.015em; }
.text h1 { font-size: 40px; line-height: 1.1; }
.text h2 { font-size: 28px; line-height: 1.2; margin-top: .4em; }
.text h3 { font-size: 20px; line-height: 1.3; font-weight: 500; }
.text h1 strong, .text h2 strong, .text h3 strong { font-weight: inherit; }
.text p { margin: 0 0 1em; }
.text p:last-child { margin-bottom: 0; }
.text p strong { color: var(--ink); font-weight: 600; }
.text a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: #bbb; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.text a:hover { text-decoration-color: currentColor; }

/* back link (project pages) */
.back {
  display: inline-block; margin: var(--pad) var(--pad) 0; font-size: 13px; font-weight: 500;
  color: var(--muted); text-decoration: none; letter-spacing: .02em; transition: color .2s;
}
.back:hover { color: var(--ink); }

/* images: a frame with the crop Squarespace used (--ratio = height / width) */
.frame { display: block; position: relative; height: 0; padding-bottom: var(--ratio); overflow: hidden; background: #f2f2f2; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.zoom { display: block; cursor: zoom-in; }

/* photos fade in as they arrive (only when JS can mark them loaded) */
.js main img[loading="lazy"] { opacity: 0; transition: opacity .7s var(--ease); }
.js main img[loading="lazy"].is-loaded { opacity: 1; }

/* poster: photo with the project name on top, links to the project */
.poster {
  display: block; position: relative; height: 0; padding-bottom: var(--ratio); overflow: hidden;
  color: #fff; text-decoration: none; background: #1a1a1a; container-type: inline-size;
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .7s var(--ease); }
.poster::after {
  content: ""; position: absolute; inset: 0; transition: opacity .4s;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.28), rgba(0,0,0,.08) 70%);
}
.poster:hover img { transform: scale(1.035); }
.poster:hover::after { opacity: .7; }
.poster__text {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 6%;
  text-shadow: 0 1px 24px rgba(0,0,0,.25);
}
.poster__title { font-size: min(10.5cqw, 120px); font-weight: 500; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.poster__sub { margin-top: .7em; font-size: max(13px, min(2.6cqw, 26px)); font-weight: 300; line-height: 1.35; letter-spacing: .01em; text-wrap: balance; max-width: 34em; }

/* galleries */
.gallery--grid { display: grid; grid-template-columns: repeat(var(--per-row), 1fr); gap: var(--gap); }
.gallery--stacked { display: grid; gap: 0; }
.zoom .frame img, .gallery--stacked img { transition: opacity .7s var(--ease), filter .3s; }
.zoom:hover img { filter: brightness(.94); }

/* video */
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

/* previous / next project */
.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px var(--pad) 0;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.pager a { text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.pager a span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pager a:hover { opacity: .6; }
.pager__next { text-align: right; justify-self: end; }
.pager__prev span::before { content: "← "; }
.pager__next span::after { content: " →"; }

/* contact form */
.contact { display: grid; gap: 18px; color: var(--ink); max-width: 640px; margin-top: 30px; }
.contact h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.015em; }
.contact label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact input, .contact textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%; padding: 12px 14px;
  background: #fafafa; border: 1px solid #d0d0d0; border-radius: 0; transition: border-color .2s, background .2s;
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.contact textarea { resize: vertical; }
.contact button {
  justify-self: start; font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--ink); border: 0; padding: 18px 36px; cursor: pointer; transition: background .2s;
}
.contact button:hover { background: #444; }
.contact__note { margin: 0; }

/* 404 */
.missing { padding-top: 60px; }

/* ---------- cover page ---------- */
.cover { display: flex; height: 100vh; height: 100dvh; overflow: hidden; background: #050608; }
.cover__logo { flex: 1 1 50%; position: relative; background: #050608; }
.cover__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cover__photos { flex: 1 1 50%; position: relative; overflow: hidden; background: #111; }
.slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 7s linear;
}
.slides img.is-on { opacity: 1; transform: scale(1); }
.cover__photos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 45%); pointer-events: none; }
.cover__nav {
  position: absolute; z-index: 1; left: 60px; right: 60px; bottom: 60px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.button {
  display: inline-block; padding: 18px 26px; background: #000; color: #fff; text-decoration: none;
  font: 600 15px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.button:hover { background: #fff; color: #000; }
.cover__about { flex-basis: 100%; margin-top: 6px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .04em; opacity: .85; }
.cover__about:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- photo viewer ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 30; background: rgba(8, 8, 8, .97);
  display: flex; align-items: center; justify-content: center; touch-action: pan-y;
  animation: fade .25s ease both;
}
.lightbox img {
  max-width: calc(100vw - 160px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px);
  width: auto; height: auto; object-fit: contain; transition: opacity .25s;
}
.lightbox img.is-loading { opacity: .3; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .7;
  font: 300 44px/1 var(--font); padding: 16px 22px; transition: opacity .2s;
}
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: max(10px, env(safe-area-inset-top)); right: 10px; font-size: 38px !important; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom));
  text-align: center; color: #bbb; font-size: 13px; letter-spacing: .1em;
}
@keyframes fade { from { opacity: 0; } }

/* ---------- phones and small windows ---------- */
@media (max-width: 800px) {
  :root { --edge: 20px; --pad: 10px; }
  body { font-size: 16px; }
  .sidebar {
    position: sticky; top: 0; z-index: 10; width: auto; bottom: auto; overflow: visible;
    display: flex; align-items: center; justify-content: space-between;
    padding: calc(10px + env(safe-area-inset-top)) var(--edge) 10px;
  }
  /* the frosted bar is its own layer: a backdrop-filter on .sidebar would trap the fixed menu inside it */
  .sidebar::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
  }
  .sidebar.scrolled::before { border-bottom-color: var(--line); }
  .logo { position: relative; z-index: 2; }
  .logo, .logo img { width: 72px; }
  .menu-toggle {
    display: flex; align-items: center; gap: 10px; font: 500 15px/1 var(--font); color: var(--ink);
    background: none; border: 0; padding: 12px 0 12px 16px; cursor: pointer; position: relative; z-index: 2;
  }
  .menu-toggle::after {
    content: ""; width: 18px; height: 8px; border-top: 1.5px solid; border-bottom: 1.5px solid; transition: transform .3s var(--ease), height .3s var(--ease);
  }
  .sidebar.open .menu-toggle::after { height: 0; border-bottom: 0; transform: rotate(0); }
  .sidebar nav {
    position: fixed; inset: 0; z-index: 1; background: #fff; display: flex; flex-direction: column; justify-content: center;
    padding: 90px 28px calc(40px + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
  }
  .sidebar.open nav { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
  .sidebar nav ul { margin: 0; }
  .sidebar nav a { font-size: 34px; font-weight: 500; letter-spacing: -.02em; padding: 6px 0; }
  .sidebar nav a::after { display: none; }
  .info { margin-top: 40px; font-size: 14px; }
  .content { margin-left: 0; padding: 4px 10px 30px; }
  .row { flex-direction: column; }
  .col { flex-basis: auto; }
  .text h1 { font-size: 32px; }
  .text h2 { font-size: 24px; }
  .contact__row { grid-template-columns: 1fr; }
  .gallery--grid { --gap: 8px !important; gap: var(--gap); }
  .pager a { font-size: 18px; }
  .foot { display: block; padding: 24px var(--edge) calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
  .foot p { margin: 0 0 4px; }
  .lightbox img { max-width: 100vw; }
  .lightbox__prev, .lightbox__next { display: none; }

  .cover { flex-direction: column; }
  .cover__logo { flex: 0 0 42%; }
  .cover__photos { flex: 1 1 auto; }
  .cover__nav { left: var(--edge); right: var(--edge); bottom: calc(28px + env(safe-area-inset-bottom)); justify-content: center; }
  .cover__about { text-align: center; }
  .button { font-size: 13px; padding: 16px 20px; }
}
@media (min-width: 801px) and (max-height: 640px) {
  .info { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
