/* ============================================================
   Max Argyle — maxargyle.art
   Gallery-grade, restrained. The work supplies the colour.
   ============================================================ */

:root {
  --bg: #f6f4ef;
  --ink: #17161b;
  --muted: #6c675e;
  --hairline: #e4ded3;
  --accent: #8a6a3b;
  --dark: #141318;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.wordmark {
  font-family: var(--serif); font-size: 21px; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--muted); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); transition: color .25s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; top: 0; flex-direction: column; justify-content: center;
    align-items: center; gap: 34px; background: var(--bg);
    opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: -1;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 14px; }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 92vh; min-height: 540px; overflow: hidden; background: #2ba5b9; }
.hero picture, .hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,14,18,.52) 0%, rgba(15,14,18,.08) 42%, transparent 65%);
}
.hero-text {
  position: absolute; left: 0; right: 0; bottom: clamp(36px, 8vh, 88px); z-index: 2;
  color: #fdfdfb; text-align: left;
}
.hero-text h1 {
  font-size: clamp(42px, 7.5vw, 96px); line-height: 1.02; letter-spacing: .02em; font-weight: 500;
}
.hero-text p {
  margin-top: 14px; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .82;
}
.hero-text .hero-trust {
  margin-top: 22px; font-size: 10.5px; letter-spacing: .24em; opacity: .8; font-weight: 500;
}
.hero-scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 3;
  color: rgba(255,255,255,.72); font-size: 9.5px; letter-spacing: .3em; text-align: center;
  line-height: 1.9; animation: heroNudge 2.6s ease-in-out infinite;
}
@keyframes heroNudge { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }
.hero-credit {
  position: absolute; right: 18px; bottom: 14px; z-index: 2; color: #fff; opacity: .55;
  font-size: 10.5px; letter-spacing: .08em;
}

.nav-links a[href="#enquire"] { border: 1px solid currentColor; padding: 9px 18px; }

/* ---------- Statement ---------- */
.statement { padding: clamp(72px, 12vh, 130px) 0; }
.statement p {
  font-family: var(--serif); font-size: clamp(24px, 3.2vw, 36px); line-height: 1.4;
  max-width: 21em; color: var(--ink);
}
.statement p em { color: var(--accent); font-style: italic; }

/* ---------- Section headers ---------- */
.section { padding: clamp(84px, 12vh, 150px) 0; }
.section-head { margin-bottom: clamp(32px, 5vh, 56px); }
.kicker {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; }
.section-head .lede { margin-top: 16px; max-width: 56ch; color: #5d584f; font-size: 17.5px; line-height: 1.9; }

/* ---------- Gallery (masonry) ---------- */
.masonry { column-count: 3; column-gap: 26px; }
@media (max-width: 1080px) { .masonry { column-count: 2; } }
@media (max-width: 640px)  { .masonry { column-count: 1; } }

.card {
  break-inside: avoid; margin-bottom: 26px; cursor: pointer; position: relative;
  border: 0; background: none; width: 100%; text-align: left; font: inherit; color: inherit;
  display: block;
}
.card .ph {
  position: relative; overflow: hidden; background: var(--ph, #dedad2);
}
.card img {
  width: 100%; transition: transform 1.1s cubic-bezier(.2,.6,.2,1), opacity .6s ease;
}
.card:hover img, .card:focus-visible img { transform: scale(1.025); }
.card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 2px 0; }
.card .t { font-family: var(--serif); font-size: 19px; letter-spacing: .01em; }
.card .t .tri { color: var(--muted); font-size: 13px; font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; }
.card .p {
  font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink);
  letter-spacing: .02em; white-space: nowrap;
}
.card .t.sold-t { font-style: italic; color: var(--muted); font-size: 17px; }
.sold-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #b0523f; margin-right: 9px; vertical-align: 2px;
}
.card.is-sold .p { text-decoration: none; opacity: .75; }
.card.is-sold img { filter: saturate(.62) contrast(.98); opacity: .86; }
.card.is-sold:hover img, .card.is-sold:focus-visible img { filter: none; opacity: 1; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Triptychs lead full-width */
.masonry .card.wide { column-span: all; margin-bottom: 34px; }
.card.wide figcaption { padding-top: 14px; }
.card.wide .t { font-size: 24px; }

/* ---------- Banner ---------- */
.banner { position: relative; height: 62vh; min-height: 380px; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner .banner-label {
  position: absolute; left: var(--pad); bottom: 26px; color: #fff;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .85;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

/* ---------- Surface strip ---------- */
.surface { background: var(--dark); color: #efece5; }
.surface .kicker { color: #c9a86a; }
.surface .section-head .lede { color: #a49f95; }
.surface-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
@media (max-width: 1080px) { .surface-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .surface-grid { grid-template-columns: repeat(2, 1fr); } }
.surface-grid figure { margin: 0; position: relative; }
.su-chip {
  position: absolute; top: 10px; left: 10px; z-index: 3; cursor: pointer;
  background: rgba(20,19,24,.72); color: #efece5; border: 1px solid rgba(255,255,255,.22);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 11px;
  backdrop-filter: blur(4px); transition: background .2s;
}
.su-chip:hover { background: rgba(47,111,106,.85); }
.surface-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; height: 100%; display: block; }
.surface-grid figure.big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 640px) { .surface-grid figure.big { grid-column: span 2; grid-row: span 2; } }
.surface-grid img { transition: opacity .3s ease; }
.surface-grid figure:hover img { opacity: .88; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }
.why-lede {
  font-family: var(--serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3;
  color: var(--ink); max-width: 17em;
}
.why-copy p { margin-bottom: 1.2em; max-width: 54ch; color: #3f3c36; }

/* ---------- Objects ---------- */
.objects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1080px) { .objects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .objects-grid { grid-template-columns: 1fr; } }
.obj-card[data-obj] { cursor: pointer; }
.obj-card[data-obj]:hover img { opacity: .9; }
.obj-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: opacity .25s; }
.obj-card.land img { aspect-ratio: 4/3; }
.obj-card figcaption { padding: 12px 2px 0; }
.obj-card .t { font-family: var(--serif); font-size: 19px; display: block; }
.obj-card .m { font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.films-row { display: block; margin-top: 52px; }
.films-row figure {
  max-width: 1040px; margin: 0 auto; background: var(--ink); padding: 18px 18px 8px;
}
.films-row figure video { width: 100%; display: block; background: #000; }
.films-row figcaption { color: #cfc9bd; padding: 12px 4px; font-size: 13px; letter-spacing: .04em; }
.films-row figcaption { padding: 12px 2px 0; font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.obj-cta { text-align: center; margin-top: 48px; }
.obj-cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 22px; }

/* ---------- In the studio now ---------- */
.now .now-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 30vw, 400px);
  gap: 18px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory;
}
.now .now-strip figure { scroll-snap-align: start; }
.now .now-strip img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.now .now-strip figcaption { font-size: 11.5px; color: var(--muted); padding-top: 8px; letter-spacing: .05em; }
.now-video { margin-top: 34px; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .now-video { grid-template-columns: 1fr; } }
.now-video video { width: 100%; display: block; }
.now-video .nv-copy p { color: var(--muted); max-width: 44ch; margin-bottom: 1.1em; }
.now-video .nv-copy a { color: var(--accent); }

/* ---------- Shown & collected ---------- */
.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1080px) { .company-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .company-grid { grid-template-columns: 1fr; } }
.company-grid img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.company-grid figcaption { padding: 10px 2px 0; font-size: 12px; color: var(--muted); letter-spacing: .05em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid .portrait-col img { width: 100%; }
.about-grid .portrait-col figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }
.about-copy p { margin-bottom: 1.2em; max-width: 58ch; }
.about-copy .placement {
  margin-top: 28px; padding: 20px 24px; border-left: 2px solid var(--accent);
  background: #f0ede5; font-size: 14px; color: #4d493f;
}
.about-copy .draft-note { font-size: 12px; color: #a09a8e; font-style: italic; }
.studio-fig { margin-top: 34px; }
.studio-fig figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- Follow (dark) ---------- */
.follow { background: var(--dark); color: #efece5; text-align: center; }
.follow .kicker { color: #8fc0ba; }
.follow h2 { font-size: clamp(30px, 4vw, 48px); }
.follow p { color: #a49f95; max-width: 46ch; margin: 16px auto 34px; }
.follow-form { display: flex; gap: 0; max-width: 460px; margin: 0 auto; }
.follow-form input {
  flex: 1; padding: 15px 18px; font: inherit; font-size: 14px;
  background: #1f1e25; border: 1px solid #3a3843; border-right: 0; color: #efece5;
  outline: none;
}
.follow-form input:focus { border-color: #8fc0ba; }
.follow-form button {
  padding: 15px 26px; font: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--accent); color: #fdfdfb; border: 0; cursor: pointer; transition: background .25s;
}
.follow-form button:hover { background: #3a837d; }
.follow small { display: block; margin-top: 16px; color: #6f6a62; font-size: 11.5px; }

/* ---------- Enquire ---------- */
.enquire { text-align: center; }
.enquire h2 { font-size: clamp(30px, 4vw, 48px); }
.enquire p { color: var(--muted); max-width: 48ch; margin: 16px auto 30px; }
#lb-share {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px;
}
#lb-share.copied { color: var(--muted); text-decoration: none; cursor: default; }
.email-direct { font-size: 13px; margin-top: 14px; }
.email-direct a { color: var(--accent); }
.buying {
  margin: 56px auto 0; max-width: 64ch; text-align: left;
  border-top: 1px solid var(--hairline); padding-top: 36px;
}
.buying h3 {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; font-weight: 600;
}
.buying p { max-width: none; margin: 0 0 14px; font-size: 15px; line-height: 1.75; }
.btn {
  display: inline-block; padding: 15px 34px; text-decoration: none;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink); transition: background .25s, color .25s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline); padding: 48px 0 56px;
  color: var(--muted); font-size: 13px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-name { font-family: var(--serif); font-size: 23px; color: var(--ink); margin-bottom: 8px; }
.foot-brand p { max-width: 36ch; line-height: 1.75; margin: 0; }
.foot-kicker { letter-spacing: .16em; font-size: 10.5px; text-transform: uppercase; margin-bottom: 10px; color: var(--muted); }
.foot-col a, .foot-col .foot-soft { display: block; line-height: 2.15; }
.foot-soft { color: var(--muted); }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: color-mix(in srgb, var(--bg) 96%, #fff);
}
.lb.open { display: grid; grid-template-columns: 1fr minmax(280px, 360px); }
@media (max-width: 900px) { .lb.open { grid-template-columns: 1fr; grid-template-rows: 1fr auto; overflow-y: auto; } }

.lb-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 4vw, 56px); overflow: hidden; min-height: 0;
}
@media (max-width: 900px) { .lb-stage { min-height: 58vh; } }
.lb-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 18px 60px rgba(23,22,27,.18);
  cursor: zoom-in; transition: transform .35s ease;
}
.lb-stage video {
  width: min(100%, 900px); max-height: 100%;
  box-shadow: 0 18px 60px rgba(23,22,27,.18);
  background: #000;
}
.lb-thumb .play-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.6);
  pointer-events: none;
}
.lb-stage.zoomed { overflow: auto; display: block; }
.lb-stage.zoomed img {
  max-width: none; max-height: none; cursor: zoom-out; box-shadow: none; margin: 0 auto;
}
.lb-meta {
  border-left: 1px solid var(--hairline); padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; overflow-y: auto;
}
@media (max-width: 900px) { .lb-meta { border-left: 0; border-top: 1px solid var(--hairline); } }
.lb-meta .kicker { margin-bottom: 4px; }
.lb-meta h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; margin-bottom: 10px; }
.lb-meta dl { margin: 10px 0 22px; }
.lb-meta dt { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.lb-meta dd { font-size: 14.5px; margin-top: 2px; }
.lb-meta .price { font-family: var(--serif); font-size: 27px; margin: 4px 0 18px; }
.lb-actions { display: flex; flex-direction: column; gap: 10px; }
.lb-actions .btn { text-align: center; }
.lb-actions .ask { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 6px; }
.lb-actions .ask a { color: var(--accent); }
.lb-close {
  position: absolute; top: 16px; right: 20px; z-index: 5; background: none; border: 0;
  font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); opacity: .6; padding: 8px;
}
.lb-close:hover { opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: none; border: 0; cursor: pointer; font-size: 34px; color: var(--ink);
  opacity: .38; padding: 14px; transition: opacity .2s; user-select: none;
}
.lb-nav:hover { opacity: .9; }
.lb-prev { left: 6px; } .lb-next { right: 6px; }
@media (max-width: 900px) { .lb-nav { top: 32vh; } }
.lb-hint { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: .7; }
@media (max-width: 900px) { .lb-hint { display: none; } }
#lb-thumbs {
  position: absolute; bottom: 34px; left: 0; right: 0; display: none;
  justify-content: center; gap: 10px; z-index: 6; flex-wrap: wrap; padding: 0 60px;
}
.lb-thumb {
  position: relative;
  width: 58px; height: 58px; padding: 0; border: 1px solid var(--hairline); background: #fff;
  cursor: pointer; opacity: .72; transition: opacity .2s, border-color .2s; overflow: hidden;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb.on, .lb-thumb:hover { opacity: 1; border-color: var(--accent); }
@media (max-width: 900px) { #lb-thumbs { bottom: 10px; } .lb-thumb { width: 48px; height: 48px; } }
.objects .soon a { color: var(--accent); }

body.lb-locked { overflow: hidden; }

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: var(--bg);
  padding: 10px 16px; font-size: 13px;
}
.skip:focus { left: 12px; top: 12px; }
