/* ================= Artmus — main stylesheet =================
   Brand system from the Artmus catalogue:
   cream ground, black ink, wide architectural caps (Ablation),
   Neue Montreal body. Stand-in webfonts (Syncopate / Inter) load
   until the licensed brand fonts are dropped into static/fonts/. */

/* Brand fonts — files go in static/fonts/ when available */
@font-face {
  font-family: "Ablation";
  src: url("/fonts/Ablation-Bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/NeueMontreal-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/NeueMontreal-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --bg: #ffffff;          /* white, matching artmus.art */
  --ink: #111111;
  --grey: #6b6b6b;
  --hairline: rgba(17, 17, 17, .16);
  --max: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --display: "Ablation", "Archivo", "Arial", sans-serif;
  --body: "Neue Montreal", "Figtree", "Helvetica Neue", Helvetica, sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Archivo carries a width axis — expand it wherever the display face is used */
.page-title, .section-title, .work-artist, .contact-name,
.form-title, .artist-list a, .logo-word {
  font-variation-settings: "wdth" 125;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .55; transition: opacity .18s ease; }

/* ---------- Fixed header: hides scrolling down, returns scrolling up ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: transform .35s ease, background .3s ease, border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.site-header.hidden { transform: translateY(-100%); }
/* Header is always opaque so page content can never show through it */

.logo { display: flex; align-items: center; }
.logo-img, .site-header .logo img {
  height: 30px !important;
  width: auto !important;
  max-width: 240px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.site-nav { display: flex; gap: 34px; }
.site-nav a {
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-bottom: 3px;
}
.site-nav a.active { border-bottom: 1px solid var(--ink); }
.nav-toggle, .nav-burger { display: none; }

/* ---------- Layout ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--header-h) var(--pad) 60px;
}
.bleed {  /* full-width section escaping the container */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.page-title {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 34px 0 36px;
}
.section-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 90px 0 34px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.section-title.first-section {
  margin-top: 10px; padding-top: 0; border-top: 0;
}
.subsection-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--grey);
  margin: 46px 0 26px;
}
.subsection-title:first-of-type { margin-top: 0; }

/* ---------- Hero landing ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));   /* fallback */
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
  text-align: center;
  padding: 90px 0 60px;
}
.hero-logo { width: min(620px, 72vw); height: auto; }

/* Shorter logo screen, so the artwork below is visible on landing */
.hero-compact {
  min-height: 62vh; min-height: 62svh;
  padding-top: 40px; padding-bottom: 40px;
}
.hero-compact .hero-logo { width: min(460px, 62vw); }

/* ---------- Highlights carousel (edge to edge, full height) ---------- */
.carousel { position: relative; padding: 0 0 4vh; }
.carousel-track {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  max-height: 1000px;
}
.carousel-slide {
  position: absolute; inset: 0;
  display: block;
  opacity: 0; transition: opacity .8s ease;
  pointer-events: none;
}
.carousel-slide.is-active { opacity: 1; pointer-events: auto; }
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;          /* fills the screen, no white margins */
  object-position: center;
}
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 90px var(--pad) 32px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.carousel-caption .carousel-label { color: rgba(255,255,255,.85); }
.carousel-label {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-size: 10.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--grey);
}
.carousel-title { font-size: 15.5px; letter-spacing: .02em; max-width: 620px; }
.carousel-btn {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: none; border: 0;
  font-size: 44px; line-height: 1;
  color: #fff; cursor: pointer;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  padding: 12px 22px; opacity: .8; z-index: 2;
}
.carousel-btn:hover { opacity: 1; }
.carousel-btn.prev { left: 6px; }
.carousel-btn.next { right: 6px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
.grid .card.reveal { transition-delay: calc(var(--d, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Grids & cards (uniform tiles) ---------- */
.grid {
  display: grid;
  gap: 56px 36px;
  grid-template-columns: repeat(3, 1fr);
}
.card { display: flex; flex-direction: column; align-items: flex-start; }
.card-link { display: block; width: 100%; }
.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;      /* every tile the same shape */
  overflow: hidden;
  background: #f4f4f4;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;         /* fills the tile — no ragged edges */
  object-position: center;
  transition: transform .6s ease;
}
.card:hover .card-img img { transform: scale(1.03); }
.card-caption {
  display: block;
  margin-top: 16px;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.6;
}
.btn-small {
  margin-top: 16px;
  padding: 9px 22px;
  font-size: 11px;
  letter-spacing: .16em;
}

/* ---------- Homepage intro ---------- */
.intro { max-width: 700px; margin: 90px auto 0; text-align: center; }
.intro p { margin: 0 0 18px; }

/* ---------- Featured stage: full-width slider with neighbours peeking ---------- */
.featured.bleed { padding: 0 0 20px; }
.featured-title {
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
  padding-left: var(--pad); padding-right: var(--pad);
}
.stage { position: relative; overflow: hidden; padding: 10px 0 0; }
.stage-track {
  display: flex; align-items: center;
  gap: clamp(16px, 3vw, 48px);
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.stage-item {
  flex: 0 0 auto;
  width: clamp(240px, 46vw, 760px);
  height: min(60vh, 620px);
  display: flex; align-items: center; justify-content: center;
  opacity: .38;
  transition: opacity .5s ease;
}
.stage-item img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.stage-item.is-active { opacity: 1; }
.stage-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  font-size: 40px; line-height: 1; color: var(--ink);
  padding: 12px 20px; opacity: .5; z-index: 3;
}
.stage-btn:hover { opacity: 1; }
.stage-btn.prev { left: 8px; }
.stage-btn.next { right: 8px; }
.stage-meta { text-align: center; margin-top: 26px; }
.stage-caption { margin: 0; font-size: 15px; }
.stage-caption strong { font-weight: 500; }
.stage-caption em { font-style: italic; }
.stage-enquire { margin-top: 18px; }

/* ---------- Thank you / 404 ---------- */
.message-page {
  max-width: 620px;
  margin: 8vh auto 12vh;
  text-align: center;
}
.message-lead { font-size: 17px; margin: 0 0 14px; }
.message-note { color: var(--grey); margin: 0; }
.message-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 30px;
}
.message-actions .btn { margin-top: 0; }

/* ---------- View all ---------- */
.view-all { text-align: center; margin-top: 44px; }

/* ---------- Social ---------- */
.social-card { max-width: 700px; }
.social-card p { margin: 0 0 8px; color: var(--grey); }

/* ---------- Artwork detail ---------- */
.breadcrumb {
  margin: 30px 0 34px;
  font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--grey);
}
.work {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  gap: 64px;
  align-items: start;
}
.work-figure { margin: 0; }
.work-figure img { max-height: 76vh; width: auto; max-width: 100%; }
.work-artist {
  font-family: var(--display);
  font-size: 21px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 10px;
}
.work-title { font-size: 16px; margin: 0 0 24px; }
.work-meta { margin: 0 0 5px; font-size: 14px; color: var(--grey); }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-block;
  margin-top: 26px;
  padding: 12px 36px;
  border: 1px solid var(--ink);
  font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer; list-style: none;
  user-select: none;
  background: transparent;
  font-family: var(--body);
}
.enquire summary::-webkit-details-marker { display: none; }
.enquire[open] .btn, .btn:hover { background: var(--ink); color: var(--bg); }
.enquire-form { margin-top: 24px; max-width: 440px; }
.enquire-form label {
  display: block; margin-bottom: 14px;
  font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--grey);
}
.enquire-form input, .enquire-form textarea {
  display: block; width: 100%;
  margin-top: 6px; padding: 11px 13px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .5);
  font: inherit; font-size: 14px; color: var(--ink);
}
.enquire-form input:focus, .enquire-form textarea:focus {
  outline: none; border-color: var(--ink);
}
.btn-solid { background: var(--ink); color: var(--bg); }
.form-title {
  font-family: var(--display);
  font-size: 14px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  margin: 0 0 22px;
}

/* ---------- Artists index ---------- */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 28px;
  margin-bottom: 40px;
}
.artist-card { position: relative; }
.artist-card-img {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden;
  background: transparent;
}
.artist-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .6s ease;
}
.artist-card:hover .artist-card-img img { transform: scale(1.03); }
.artist-card-initials {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-size: 30px; font-weight: 700;
  letter-spacing: .1em; color: var(--grey);
}
.artist-bell {
  position: absolute; top: 6px; right: 6px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--hairline);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.artist-bell svg { width: 19px; height: 19px; }
.artist-bell:hover { background: var(--ink); color: #fff; border-color: var(--ink); opacity: 1; }
.artist-card-name {
  display: block;
  margin-top: 15px;
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-size: 13.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.4;
}
.artist-card-count {
  margin: 5px 0 0;
  font-size: 13px; color: var(--grey);
}
.artist-sub { margin: -24px 0 32px; color: var(--grey); }
.artist-bio { max-width: 720px; }
.artist-head.has-portrait {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 56px; align-items: start;
  margin-bottom: 20px;
}
.artist-portrait { margin: 34px 0 0; }
.artist-portrait img {
  width: 100%; height: auto;
  background: transparent;   /* cut-out portraits keep their transparency */
}
.artist-pager {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 80px; padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- Artist "More" links ---------- */
.more-links { margin: 30px 0 6px; }
.more-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-size: 13px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  margin: 0 0 14px;
}
.more-link {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 10px;
  font-size: 15px;
}
.more-link svg { width: 19px; height: 19px; flex: 0 0 19px; }
.more-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Get updates ---------- */
.subscribe-inline { margin-top: 30px; }
.subscribe-inline summary::-webkit-details-marker { display: none; }
.btn-bell {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 6px;
  border-color: var(--hairline);
  text-transform: none;
  letter-spacing: .04em;
  font-size: 14px;
  padding: 11px 20px;
}
.btn-bell svg { width: 17px; height: 17px; }
.btn-bell:hover, .subscribe-inline[open] .btn-bell {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.subscribe-note { font-size: 14px; color: var(--grey); margin: 0 0 16px; }

/* ---------- Homepage subscribe band ---------- */
.subscribe-band {
  background: #f6f5f3;
  padding: clamp(56px, 8vw, 96px) var(--pad);
  margin-top: 90px;
}
.subscribe-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.subscribe-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 700; line-height: 1.28;
  margin: 0 0 18px;
}
.subscribe-sub { margin: 0 0 30px; color: var(--grey); }
.subscribe-form {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap;
}
.subscribe-form input {
  flex: 1 1 300px; max-width: 380px;
  padding: 13px 16px;
  border: 1px solid var(--hairline);
  background: #fff;
  font: inherit; font-size: 15px; color: var(--ink);
}
.subscribe-form input:focus { outline: none; border-color: var(--ink); }
.subscribe-form .btn { margin-top: 0; padding: 13px 30px; }
.subscribe-fine { margin: 20px 0 0; font-size: 12px; color: var(--grey); }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px; align-items: start;
}
.contact-visual {
  display: flex; justify-content: center;
  position: sticky; top: calc(var(--header-h) + 30px);
  padding-top: 10px;
}
.contact-blue-logo { width: min(560px, 100%); height: auto; }
.radio-row { border: 0; padding: 0; margin: 4px 0 10px; }
.radio-row legend {
  font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--grey);
  margin-bottom: 8px;
}
.radio { display: inline-flex !important; align-items: center; gap: 7px;
  margin-right: 26px; text-transform: none !important;
  font-size: 14px !important; color: var(--ink) !important;
  letter-spacing: 0 !important; }
.radio input { width: auto; margin: 0; accent-color: var(--ink); }
.fine-print { font-size: 12px; color: var(--grey); line-height: 1.6; margin: 14px 0 0; }
.contact-name {
  font-family: var(--display);
  font-size: 17px; font-weight: 700;
  letter-spacing: .26em; margin: 0 0 16px;
}
.contact-details p { margin: 0 0 8px; }

/* ---------- Glossary ---------- */
.glossary-intro { max-width: 720px; color: var(--grey); }
.glossary { margin: 0; }
.glossary-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid; grid-template-columns: 260px 1fr; gap: 30px;
}
.glossary-item dt {
  font-weight: 500;
  letter-spacing: .04em;
}
.glossary-item dd { margin: 0; max-width: 720px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 60px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 34px var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  font-size: 13px; color: var(--grey);
}
.footer-logo { display: flex; align-items: center; }
.footer-copy { margin: 0; }

/* ---------- Social icon buttons ---------- */
.social-icons { display: flex; gap: 12px; align-items: center; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #9a9a9a;
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.social-icon svg { width: 20px; height: 20px; display: block; }
.social-icon:hover { background: var(--ink); opacity: 1; }
.contact-icons { margin-top: 20px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
  .work { grid-template-columns: 1fr; gap: 36px; }
  .contact-layout { grid-template-columns: 1fr; gap: 54px; }
  .artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; }
  .glossary-item { grid-template-columns: 1fr; gap: 8px; }
  .artist-head.has-portrait { grid-template-columns: 1fr; gap: 8px; }
  .artist-portrait { max-width: 320px; }
}
@media (max-width: 640px) {
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 6px; z-index: 60;
  }
  .nav-burger span { width: 22px; height: 1.5px; background: var(--ink); display: block; }
  .site-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); z-index: 55;
    flex-direction: column; gap: 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }
  .site-nav a { padding: 16px var(--pad); border-bottom: 1px solid var(--hairline); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .grid { grid-template-columns: 1fr; }
  .artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .artist-card-name { font-size: 12px; }
  .carousel-track { height: 62vh; height: 62svh; }
  .footer-inner { flex-direction: column; }
}
