/* Self-hosted fonts (latin), so no request to Google Fonts */
@font-face { font-family: Oswald; font-style: normal; font-weight: 200 700; font-display: swap; src: url(../fonts/oswald-latin.woff2) format("woff2"); }
@font-face { font-family: Abel; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/abel-latin-400.woff2) format("woff2"); }

/* Site layer on top of the Webflow export: replaces webflow.js behaviour with plain CSS/JS
   (mobile menu, lightbox, hover effects, fade-ins). Keep it small and dependency free. */

html { scroll-behavior: smooth; }
@view-transition { navigation: auto; }   /* soft cross-fade between pages (Chrome/Safari) */

/* ---------- page load: gentle fade, no spinner ---------- */
@keyframes sdb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body { animation: sdb-fade .5s ease both; }

/* ---------- scroll reveal (class added by site.js) ---------- */
.w-mod-js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.6,.2,1); transition-delay: var(--d, 0s); }
.w-mod-js .reveal.in { opacity: 1; transform: none; }

/* ---------- lazy images fade in once loaded ---------- */
.lazy-bg { background-color: #f1f1f1; transition: opacity .6s ease, filter .2s, background-color .6s; }
.lazy-bg:not(.loaded) { background-image: none !important; }
.w-mod-js img.fade { opacity: 0; transition: opacity .6s ease, filter .2s; }
.w-mod-js img.fade.loaded { opacity: 1; }

/* ---------- project / artwork cards: the original Webflow hover, in CSS ---------- */
.portfolio-card-overlay { opacity: 0; transform: scale(0); transition: transform .5s ease-out, opacity .5s ease-out; }
.portfolio-card:hover .portfolio-card-overlay,
.portfolio-card:focus-within .portfolio-card-overlay { opacity: .65; transform: scale(1); }
.plus-icon-link { transition: transform .5s ease; }
.portfolio-card:hover .plus-icon-link, .portfolio-card:focus-within .plus-icon-link { transform: rotate(130deg); }
@media (hover: none) {            /* touch screens: no hover, so show a name caption along the bottom; the whole card is tappable (see site.js) */
  .portfolio-card { position: relative; display: flex; align-items: flex-end; }
  .portfolio-card-overlay { position: static; inset: auto; width: 100%; opacity: 1; transform: none; background: rgba(255,255,255,.88); padding: 10px 12px; border: 0; }
  .portfolio-card-link-block { width: 100%; height: auto; }
  .portfolio-card-title { margin: 0; font-size: 15px; line-height: 1.2; }
  .plus-icon-link { display: none; }
}

/* ---------- buttons and links: small refinements ---------- */
.button, .button-custom { transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.button:hover, .button-custom:hover { transform: translateY(-1px); }
.nav-link { position: relative; }
@media (min-width: 768px) {
  .nav-link::after { content: ""; position: absolute; left: 0; right: 20px; bottom: 17px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
  .nav-link:hover::after, .nav-link.w--current::after { transform: scaleX(1); }
}
a:focus-visible, button:focus-visible, .w-nav-button:focus-visible { outline: 2px solid #4e71c2; outline-offset: 3px; }
img { max-width: 100%; height: auto; }

/* ---------- mobile menu (replaces Webflow's slide-in overlay) ---------- */
@media (max-width: 767px) {
  .w-nav { position: relative; }
  .w-nav-menu.is-open {
    display: flex !important; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0; width: auto; margin: 0 !important;
    padding: 6px 0 10px; background: rgba(24,24,24,.96); z-index: 1000;
    animation: sdb-menu .3s ease both;
  }
  .w-nav-menu.is-open .nav-link { color: #fff; border-bottom: 1px solid rgba(255,255,255,.18); padding: 14px 24px; width: 100%; text-align: left; }
  .w-nav-menu.is-open .nav-link::after { display: none; }
  .w-nav-button { position: relative; z-index: 1001; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 999; animation: sdb-fade .3s ease both; }
}
@keyframes sdb-menu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes sdb-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- lightbox (replaces Webflow's) ---------- */
.lb { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,.92); opacity: 0; transition: opacity .3s ease; }
.lb.on { opacity: 1; }
.lb img { max-width: 94vw; max-height: 88vh; object-fit: contain; opacity: 0; transform: scale(.985); transition: opacity .35s ease, transform .35s ease; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lb img.ready { opacity: 1; transform: none; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 300 38px/1 Abel, sans-serif; padding: 14px 18px; opacity: .75; transition: opacity .2s; }
.lb button:hover { opacity: 1; }
.lb .lb-close { top: 6px; right: 6px; }
.lb .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #fff; opacity: .6; font: 14px Abel, sans-serif; letter-spacing: 2px; }
.lb-lock { overflow: hidden; }

/* ---------- forms ---------- */
.w-form-done, .w-form-fail { display: none; }
.w-form-done.show, .w-form-fail.show { display: block; }
form .hp { position: absolute; left: -9999px; }

/* ---------- finishing touches (kept deliberately quiet) ---------- */
/* titles settle: letters start slightly wider and tighten as they fade in */
@keyframes sdb-settle { from { opacity: 0; letter-spacing: .16em; } }
.hero-heading, .year-heading, .hero-subheading { animation: sdb-settle .9s cubic-bezier(.2,.6,.2,1) both; }
.name-text { animation: sdb-settle 1s cubic-bezier(.2,.6,.2,1) both; }

/* main artwork photo unveils softly */
@keyframes sdb-unveil { from { clip-path: inset(0 0 100% 0); transform: scale(1.04); } to { clip-path: inset(0); transform: none; } }
.primary-image { animation: sdb-unveil 1.1s cubic-bezier(.2,.6,.2,1) both; }

/* divider lines draw in from the left as they scroll into view */
.w-mod-js .draw { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.6,.2,1); }
.w-mod-js .draw.in { transform: none; }

/* gallery year covers: slightly muted, bloom to full colour on hover */
@media (hover: hover) {
  .portfolio-card.light-hover { filter: saturate(.78); }
  .portfolio-card.light-hover:hover { filter: saturate(1); }
}

/* text links in written content: underline brightens on hover */
.w-richtext a:not(.w-button):not(.button), .link-item-description a {
  text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,.25);
  transition: text-decoration-color .3s ease, color .3s ease;
}
.w-richtext a:not(.w-button):not(.button):hover, .link-item-description a:hover { text-decoration-color: currentColor; }

/* home hero drifts slowly as you scroll (set by site.js) */
.fullscreen-image { background-position-y: var(--hero-y, 50%); }

/* "View" cursor over photos that open full size (mouse only) */
.cursor-view { position: fixed; left: 0; top: 0; z-index: 1500; pointer-events: none; width: 66px; height: 66px; margin: -33px 0 0 -33px;
  border-radius: 50%; background: rgba(255,255,255,.92); color: #2e2e2e; display: flex; align-items: center; justify-content: center;
  font: 13px/1 Abel, sans-serif; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: scale(.6);
  transition: opacity .25s ease, transform .25s ease; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.cursor-view.on { opacity: 1; transform: scale(1); }
.has-cursor-view, .has-cursor-view * { cursor: none !important; }

/* ---------- reduced motion: respect the visitor ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .w-mod-js .reveal { opacity: 1; transform: none; }
}

/* Visually hidden text for search engines, screen readers and AI crawlers */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
