/* VSHD Design — minimalist gallery system
   ----------------------------------------------------------------------- */

:root {
  /* Palette — gallery white default */
  --paper: #FFFFFF;
  --bone: #F5F4F1;
  --line: #E5E3DE;
  --line-strong: #D4D1CB;
  --ink: #15161A;
  --ink-soft: #2A2B30;
  --graphite: #666766;
  --muted: #8E8B85;
  --accent: #9A8C78; /* warm stone */
  --paper-dark: #0E0F12;
  --bone-dark: #1A1B1F;

  /* Type */
  --font-sans: "DM Sans", -apple-system, system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;

  /* Rhythm */
  --pad-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 12vw, 180px);
  --hairline: 1px;

  /* Focus */
  --focus: var(--ink);
}

/* RTL-specific tweaks */
:root[dir="rtl"] {
  --font-sans: "DM Sans", "Noto Kufi Arabic", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }

/* ---- Type primitives ---------------------------------------------------- */
.h-display {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(38px, 6.4vw, 96px);
  letter-spacing: -0.022em;
  line-height: 1.02;
  text-wrap: balance;
}
.h-display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h-section {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 52px);
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
}
.h-section em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.h-eyebrow,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--graphite);
}
.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 60ch;
}
.cap {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ---- Container --------------------------------------------------------- */
.container {
  padding-inline: var(--pad-x);
}

.hairline {
  height: 1px;
  background: var(--line);
  width: 100%;
  border: 0;
}

/* ---- Buttons / CTA ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--light {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arrow { width: 14px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after {
  content: "";
  position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform .45s cubic-bezier(.7,0,.2,1);
}
.link-underline:hover::after {
  transform-origin: left;
  transform: scaleX(0);
}

/* ---- Nav --------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: background .4s ease, color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav--dark { color: #fff; }
.nav--solid {
  background: var(--paper);
  border-bottom-color: var(--line);
}
.nav--dark.nav--solid {
  background: var(--paper-dark);
  border-bottom-color: rgba(255,255,255,.08);
}
.nav__logo {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.32em;
  /* echo the condensed wordmark with extreme tracking */
  transform: scaleY(1.6);
  transform-origin: center;
  display: inline-block;
}
.nav__center {
  display: flex;
  gap: clamp(18px, 2.6vw, 38px);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__center a { opacity: .8; transition: opacity .25s ease; position: relative; }
.nav__center a:hover { opacity: 1; }
.nav__center a.is-active { opacity: 1; }
.nav__center a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor;
}
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__lang {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.nav__lang button {
  opacity: .55;
  transition: opacity .25s;
}
.nav__lang button.is-active { opacity: 1; }
.nav__lang span { opacity: .3; }
.nav__cta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid currentColor;
  transition: background .3s, color .3s;
}
.nav--dark .nav__cta { border-color: rgba(255,255,255,.5); }
.nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav--dark .nav__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }

@media (max-width: 860px) {
  .nav__center { display: none; }
}

/* ---- Hero rotator (home) ---------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  background: var(--paper-dark);
  color: #fff;
  overflow: hidden;
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 9s ease;
}
.hero__slide.is-active .hero__img { transform: scale(1.0); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 60%, rgba(0,0,0,.55) 100%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* extra left padding clears the vertical "VSHD · Est. 2007…" corner mark */
  padding: 0 var(--pad-x) 88px calc(var(--pad-x) + 56px);
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero__overlay { padding-left: var(--pad-x); }
}
.hero__caption {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.hero__title {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(34px, 4.4vw, 64px);
  letter-spacing: -0.022em;
  line-height: 1.0;
  margin: 0 0 18px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.hero__meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: .85;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero__progress {
  position: absolute;
  bottom: 36px; left: var(--pad-x); right: var(--pad-x);
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.hero__progress button {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.25);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.hero__progress button::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--p, 0%);
  background: #fff;
}
.hero__corner {
  position: absolute;
  top: 50%; left: var(--pad-x);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  transform-origin: center;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: .55;
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero__corner { display: none; }
}

/* ---- Section scaffolding ---------------------------------------------- */
.section {
  padding: var(--section-y) 0;
}
.section--bone { background: var(--bone); }
.section--dark {
  background: var(--paper-dark);
  color: #EEEDE8;
}
.section--dark .eyebrow,
.section--dark .cap { color: rgba(255,255,255,.55); }
.section--dark .lede { color: rgba(255,255,255,.78); }
.section--dark .hairline { background: rgba(255,255,255,.12); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 0 var(--pad-x);
  margin-bottom: 64px;
  align-items: end;
}
.section__head--single { display: block; }
@media (max-width: 860px) {
  .section__head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Selected work strip --------------------------------------------- */
.work-grid {
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
  align-items: end;
}
.work-tile {
  cursor: pointer;
  display: block;
  position: relative;
}
.work-tile__frame {
  overflow: hidden;
  background: var(--bone);
  position: relative;
}
.work-tile__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1), filter .6s ease;
}
.work-tile:hover .work-tile__frame img { transform: scale(1.04); }
.work-tile__meta {
  display: flex; justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
}
.work-tile__meta .cap { color: var(--muted); }

.work-tile--01 { grid-column: 1 / span 7; }
.work-tile--01 .work-tile__frame { aspect-ratio: 16 / 11; }
.work-tile--02 { grid-column: 9 / span 4; padding-bottom: 60px; }
.work-tile--02 .work-tile__frame { aspect-ratio: 3 / 4; }
.work-tile--03 { grid-column: 2 / span 4; padding-top: 60px; }
.work-tile--03 .work-tile__frame { aspect-ratio: 4 / 5; }
.work-tile--04 { grid-column: 7 / span 6; }
.work-tile--04 .work-tile__frame { aspect-ratio: 16 / 10; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; gap: 56px; }
  .work-tile { grid-column: 1 / -1 !important; padding: 0 !important; }
  .work-tile__frame { aspect-ratio: 4 / 3 !important; }
}

/* ---- Approach (dark inverted section) ---------------------------------- */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 0 var(--pad-x);
  align-items: start;
}
@media (max-width: 900px) { .approach { grid-template-columns: 1fr; gap: 48px; } }

.pillar-list {
  display: grid;
  gap: 0;
}
.pillar {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  align-items: start;
}
.pillar:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.pillar__num { font-size: 11px; letter-spacing: 0.2em; opacity: .55; padding-top: 6px; }
.pillar__title {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 300;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
}
.pillar__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.pillar__body { font-size: 14px; line-height: 1.6; opacity: .72; max-width: 50ch; }

/* ---- Sectors strip ----------------------------------------------------- */
.sectors-strip {
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sector-cell {
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .3s ease;
  cursor: pointer;
}
.sector-cell:last-child { border-right: none; }
.sector-cell:hover { background: var(--bone); }
.sector-cell__num { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }
.sector-cell__name { font-size: 14px; font-weight: 400; }
.sector-cell__count { font-family: var(--font-serif); font-style: italic; color: var(--graphite); font-size: 14px; }

@media (max-width: 900px) {
  .sectors-strip { grid-template-columns: repeat(2, 1fr); }
  .sector-cell { border-bottom: 1px solid var(--line); }
  .sector-cell:nth-child(even) { border-right: none; }
}

/* ---- Awards strip ----------------------------------------------------- */
.awards {
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
@media (max-width: 900px) { .awards { grid-template-columns: 1fr; gap: 32px; } }

.awards__list { display: flex; flex-direction: column; }
.award-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.award-row:last-child { border-bottom: 1px solid var(--line); }
.award-row__year { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--graphite); }
.award-row__title {
  font-size: 15px; font-weight: 400; line-height: 1.4;
}
.award-row__title small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.award-row__issuer { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---- Footer / CTA band ------------------------------------------------- */
.cta-band {
  position: relative;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

.footer {
  background: var(--paper-dark);
  color: rgba(255,255,255,.7);
  padding: 96px var(--pad-x) 36px;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  margin: 0 0 18px;
}
.footer p, .footer a { font-size: 14px; color: rgba(255,255,255,.78); }
.footer__big {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(28px, 3vw, 44px);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 20ch;
}
.footer__big em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* ---- Projects index ---------------------------------------------------- */
.page-head {
  padding: 168px var(--pad-x) 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .page-head { grid-template-columns: 1fr; gap: 24px; padding-top: 140px; } }
.page-head__count {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(38px, 5vw, 64px);
  color: var(--graphite);
  font-weight: 400;
  line-height: 1;
}

.sector-filter {
  display: flex;
  gap: 0;
  padding: 24px var(--pad-x);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 64px;
  background: var(--paper);
  z-index: 20;
  overflow-x: auto;
  scrollbar-width: none;
}
.sector-filter::-webkit-scrollbar { display: none; }
.sector-filter button {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 20px 8px 0;
  margin-right: 20px;
  color: var(--muted);
  position: relative;
  transition: color .25s ease;
  white-space: nowrap;
}
.sector-filter button:hover { color: var(--ink); }
.sector-filter button.is-active { color: var(--ink); }
.sector-filter button .ct {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  margin-left: 4px;
  opacity: .8;
}

.projects-grid {
  padding: 64px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 80px 32px;
}
.proj-card {
  cursor: pointer;
  display: block;
}
.proj-card__frame {
  position: relative;
  overflow: hidden;
  background: var(--bone);
  aspect-ratio: 4 / 3;
}
.proj-card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.proj-card:hover .proj-card__frame img { transform: scale(1.04); }
.proj-card__num {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  color: #fff;
  font-size: 16px;
  text-shadow: 0 0 12px rgba(0,0,0,.3);
}
.proj-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  gap: 16px;
}
.proj-card__title { font-size: 15px; font-weight: 400; line-height: 1.3; }
.proj-card__sub { font-size: 12px; color: var(--muted); margin-top: 2px; letter-spacing: 0.04em; }
.proj-card__sector { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--graphite); }

.proj-card--wide { grid-column: span 8; }
.proj-card--wide .proj-card__frame { aspect-ratio: 16 / 10; }
.proj-card--narrow { grid-column: span 4; }
.proj-card--narrow .proj-card__frame { aspect-ratio: 3 / 4; }
.proj-card--default { grid-column: span 6; }

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; gap: 48px; }
  .proj-card { grid-column: 1 / -1 !important; }
  .proj-card__frame { aspect-ratio: 4 / 3 !important; }
}

/* ---- Case study ------------------------------------------------------- */
.cs-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.cs-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cs-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.6));
}
.cs-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) 96px;
}
.cs-hero__eyebrow {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: .85; margin-bottom: 24px;
}
.cs-hero__title {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(46px, 7vw, 110px);
  letter-spacing: -0.025em;
  line-height: .98;
  margin: 0;
  max-width: 14ch;
}
.cs-hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.cs-metabar {
  padding: 40px var(--pad-x);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}
.cs-metabar__item .cap { margin-bottom: 6px; display: block; }
.cs-metabar__item div { font-size: 14px; }
@media (max-width: 900px) {
  .cs-metabar { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.cs-narrative {
  padding: var(--section-y) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .cs-narrative { grid-template-columns: 1fr; gap: 32px; } }
.cs-narrative__h em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.cs-narrative__body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1.4em;
  max-width: 60ch;
}
.cs-narrative__body p:first-child::first-letter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3.2em;
  float: left;
  line-height: .9;
  padding-right: 12px;
  padding-top: 4px;
  font-weight: 400;
  color: var(--ink);
}

.cs-pullquote {
  padding: var(--section-y) var(--pad-x);
  background: var(--bone);
  text-align: center;
}
.cs-pullquote blockquote {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(28px, 3.6vw, 50px);
  letter-spacing: -0.018em;
  line-height: 1.18;
  max-width: 22ch;
  margin: 0 auto;
  text-wrap: balance;
}
.cs-pullquote blockquote em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.cs-pullquote .cap { margin-top: 32px; display: inline-block; }

.cs-gallery {
  padding: var(--section-y) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 24px;
}
.cs-gallery figure { margin: 0; cursor: zoom-in; }
.cs-gallery figure .frame {
  overflow: hidden;
  background: var(--bone);
  position: relative;
}
.cs-gallery figure .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.cs-gallery figure:hover .frame img { transform: scale(1.04); }
.cs-gallery figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
}
.cs-gallery figcaption .num { font-family: var(--font-serif); font-style: italic; }

.cs-g--01 { grid-column: 1 / span 8; }
.cs-g--01 .frame { aspect-ratio: 16 / 10; }
.cs-g--02 { grid-column: 9 / span 4; padding-top: 80px; }
.cs-g--02 .frame { aspect-ratio: 3 / 4; }
.cs-g--03 { grid-column: 2 / span 5; }
.cs-g--03 .frame { aspect-ratio: 4 / 5; }
.cs-g--04 { grid-column: 7 / span 6; padding-top: 60px; }
.cs-g--04 .frame { aspect-ratio: 4 / 3; }

@media (max-width: 900px) {
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-gallery figure { grid-column: 1 / -1 !important; padding-top: 0 !important; }
  .cs-gallery figure .frame { aspect-ratio: 4 / 3 !important; }
}

.cs-credits {
  padding: 60px var(--pad-x);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .cs-credits { grid-template-columns: 1fr 1fr; } }
.cs-credits .cap { margin-bottom: 4px; display: block; }
.cs-credits div { font-size: 13px; }

.cs-nextprev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.cs-nextprev a {
  padding: 60px var(--pad-x);
  display: flex; flex-direction: column; gap: 8px;
  transition: background .3s ease;
  cursor: pointer;
}
.cs-nextprev a:hover { background: var(--bone); }
.cs-nextprev a + a { border-left: 1px solid var(--line); }
.cs-nextprev .cap { color: var(--muted); }
.cs-nextprev .name { font-size: clamp(20px, 2vw, 28px); font-weight: 300; letter-spacing: -0.01em; }
.cs-nextprev .name em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ---- Enquiry slide-over panel ----------------------------------------- */
.scrim {
  position: fixed; inset: 0;
  background: rgba(15,16,18,.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.enquiry {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(640px, 96vw);
  background: var(--paper);
  z-index: 101;
  transform: translateX(100%);
  transition: transform .55s cubic-bezier(.7,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 40px rgba(0,0,0,.06);
}
.enquiry.is-open { transform: translateX(0); }
.enquiry__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid var(--line);
}
.enquiry__title { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--graphite); }
.enquiry__close {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-flex; gap: 12px; align-items: center;
}
.enquiry__close::before {
  content: ""; width: 14px; height: 14px; position: relative; display: inline-block;
  background:
    linear-gradient(45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%);
}
.enquiry__body {
  flex: 1;
  overflow-y: auto;
  padding: 48px 40px;
}
.enquiry__h {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 200;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 18ch;
}
.enquiry__h em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.enquiry__lede { color: var(--ink-soft); font-size: 15px; margin: 0 0 40px; max-width: 44ch; }

.enq-field { margin-bottom: 24px; }
.enq-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.enq-field input,
.enq-field select,
.enq-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font: inherit;
  font-size: 15px;
  background: transparent;
  outline: none;
  transition: border-color .25s ease;
  color: var(--ink);
}
.enq-field input:focus,
.enq-field select:focus,
.enq-field textarea:focus { border-bottom-color: var(--ink); }
.enq-field textarea { resize: none; min-height: 90px; }

.enq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .enq-row { grid-template-columns: 1fr; } }

.enq-channels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 24px;
  gap: 0;
}
.enq-channels a {
  padding: 16px 0;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.enq-channels a:last-child { border-right: 0; }
.enq-channels a strong { font-weight: 400; color: var(--ink); font-size: 13px; letter-spacing: 0.06em; text-transform: none; }
.enq-channels a:hover { color: var(--ink); }

.enquiry__foot {
  padding: 24px 40px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.enquiry__foot .cap { color: var(--muted); }

@media (max-width: 600px) {
  .enquiry__head, .enquiry__body, .enquiry__foot { padding-left: 24px; padding-right: 24px; }
}

/* ---- Lightbox --------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8,8,10,.92);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lightbox__close {
  position: absolute; top: 24px; right: 24px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex; gap: 12px; align-items: center;
}
.lightbox__close::after {
  content: ""; width: 14px; height: 14px; position: relative; display: inline-block;
  background:
    linear-gradient(45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%);
}

/* ---- Misc ------------------------------------------------------------- */
.spacer-line {
  height: 1px;
  background: var(--line);
  margin: 0 var(--pad-x);
}

/* RTL flip handful of things */
:root[dir="rtl"] .nav__logo { transform: scaleY(1.6); }
:root[dir="rtl"] .hero__corner { writing-mode: vertical-lr; left: auto; right: var(--pad-x); }

/* Fade-in on view */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .9s cubic-bezier(.2,.6,.2,1) both; }
