/* ==========================================================================
   SAIDALJ.COM — Page compositions
   Every major section is built as its own layout. No repeated card template.
   ========================================================================== */

/* ==========================================================================
   HOME
   ========================================================================== */

/* ---------- Hero: asymmetric editorial portal ---------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--d-fg);
  padding-top: calc(var(--header-h) + var(--s-7));
  padding-bottom: var(--s-6);
  overflow: hidden;
  isolation: isolate;
}
.hero__ground {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 52% at 68% 32%, rgba(46, 127, 117, .30), transparent 68%),
    radial-gradient(46% 46% at 8% 88%, rgba(193, 135, 63, .12), transparent 70%),
    linear-gradient(160deg, #16221F 0%, #131C1B 55%, #101917 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.hero__eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ochre-l);
  margin-bottom: var(--s-4);
}
.hero__title {
  color: var(--d-fg);
  margin-bottom: var(--s-3);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 144;
  font-weight: 400;
}
.hero__role {
  font-size: clamp(1rem, .88rem + .55vw, 1.45rem);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ochre-l);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--d-rule);
  max-width: 30ch;
}
.hero__lead { color: var(--d-fg-soft); max-width: 52ch; }
.hero__actions { margin-top: var(--s-5); }

.hero__plate {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  position: relative;
}
.hero__plate::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(217, 169, 97, .22);
  pointer-events: none; border-radius: 2px;
}
.hero__plate img {
  width: 100%; height: auto; display: block;
  border-radius: 2px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3) var(--gutter);
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--d-rule);
}
.hero__fact dt {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ochre); margin-bottom: .5rem;
}
.hero__fact dd { margin: 0; font-size: var(--t-small); color: var(--d-fg-soft); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero__plate { justify-self: center; max-width: 340px; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .hero__facts { grid-template-columns: 1fr; }
  /* sized for a portrait photograph rather than a decorative plate */
  .hero__plate { max-width: 300px; }
}
@media (max-width: 340px) { .hero__plate { max-width: 250px; } }

/* ---------- Introduction -------------------------------------------------- */
.intro__head { grid-column: 1 / span 5; }
.intro__body { grid-column: 7 / span 6; }
@media (max-width: 1000px) {
  .intro__head { grid-column: 1 / -1; }
  .intro__body { grid-column: 1 / -1; }
}

/* ---------- Chronology strip --------------------------------------------- */
.chrono__head { max-width: 42ch; margin-bottom: var(--s-6); }
.chrono__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5) var(--gutter);
  counter-reset: chrono;
}
.chrono__step {
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule-strong);
  position: relative;
}
.chrono__step::before {
  content: ''; position: absolute; top: -4px; left: 0;
  width: 8px; height: 8px; background: var(--ochre);
  clip-path: polygon(50% 0, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0 50%, 15% 15%);
}
.chrono__year {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1; letter-spacing: -.02em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 120;
  color: var(--zellige);
  margin-bottom: .55rem;
}
.chrono__step h3 { margin-bottom: .5rem; }
@media (max-width: 1000px) { .chrono__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .chrono__track { grid-template-columns: 1fr; } }

/* ---------- Split screen -------------------------------------------------- */
.split__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split__plate { position: relative; }
.split__plate img { width: 100%; height: auto; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule); }
@media (max-width: 900px) {
  .split__inner { grid-template-columns: 1fr; }
  .split__plate { max-width: 380px; }
}

/* ---------- Figures ------------------------------------------------------- */
.figures__head { max-width: 46ch; margin-bottom: var(--s-6); }
.figures__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-5) var(--gutter);
}
.figures__cell {
  grid-column: span 2;
  padding-top: var(--s-4);
  border-top: 1px solid var(--d-rule);
}
.figures__cell--lg  { grid-column: span 3; }
.figures__cell--wide{ grid-column: span 3; }
@media (max-width: 900px) {
  .figures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures__cell, .figures__cell--lg, .figures__cell--wide { grid-column: span 1; }
}
@media (max-width: 520px) {
  .figures__grid { grid-template-columns: 1fr; }
}

/* ---------- Context: full-bleed banner with legible panel ---------------- */
.context {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
  padding-block: 0;
}
.context__bleed {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.context::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11, 24, 22, .95) 0%, rgba(11, 24, 22, .88) 46%, rgba(11, 24, 22, .55) 100%);
}
.context__inner { padding-block: var(--s-8); }
.context__panel { max-width: 60ch; }

/* ---------- Perspective --------------------------------------------------- */
.perspective__inner {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.perspective__statement { position: sticky; top: calc(var(--header-h) + 2rem); }
.perspective__list { display: flex; flex-direction: column; gap: var(--s-5); }
.perspective__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.perspective__item:last-child { border-bottom: 0; padding-bottom: 0; }
.perspective__idx {
  grid-row: span 2;
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  color: var(--ochre-ink); padding-top: .45rem;
}
.perspective__item h3 { margin-bottom: .55rem; }
.perspective__item p { color: var(--fg-soft); max-width: 62ch; }
@media (max-width: 900px) {
  .perspective__inner { grid-template-columns: 1fr; }
  .perspective__statement { position: static; }
}
@media (max-width: 520px) {
  .perspective__item { grid-template-columns: 1fr; gap: .5rem; }
  .perspective__idx { grid-row: auto; padding-top: 0; }
}

/* ---------- Legacy immersive band ---------------------------------------- */
.legacy {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.legacy__bleed {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; opacity: .85;
}
.legacy::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 22, 21, .82) 0%, rgba(13, 22, 21, .90) 60%, rgba(13, 22, 21, .96) 100%);
}
.legacy__text { max-width: 62ch; }

/* ---------- Image story --------------------------------------------------- */
.story__head { max-width: 54ch; margin-bottom: var(--s-6); }
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: var(--s-5) var(--gutter);
  align-items: start;
}
.story__item--tall { grid-row: span 2; }
@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__item--tall { grid-row: auto; }
}

/* ---------- Gallery preview ---------------------------------------------- */
.preview__head {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--s-6);
}
.preview__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}
.preview__cell {
  display: block; position: relative; overflow: hidden;
  border-radius: 2px; background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--rule);
  aspect-ratio: 3 / 4;
}
.preview__cell img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .8s var(--ease-out), opacity .4s var(--ease);
}
.preview__cell:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .preview__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Contact CTA --------------------------------------------------- */
.cta-band { background: var(--zellige); overflow: hidden; }
.cta-band__ground { opacity: .5; }
.cta-band::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15, 44, 41, .92), rgba(15, 44, 41, .72));
}
.cta-band__inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: var(--s-5);
  align-items: center; justify-content: space-between;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ==========================================================================
   ABOUT — editorial biography
   ========================================================================== */
.page-head--about { background: var(--paper-2); }

.bio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.bio__aside { position: sticky; top: calc(var(--header-h) + 2rem); display: flex; flex-direction: column; gap: var(--s-5); }
.bio__plate img { width: 100%; height: auto; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule); }
.bio__body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.1em;
  line-height: .82;
  padding: .06em .14em 0 0;
  color: var(--zellige);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 144;
}
@media (max-width: 900px) {
  .bio { grid-template-columns: 1fr; }
  .bio__aside { position: static; max-width: 420px; }
}

/* ==========================================================================
   EARLY LIFE — annotated historical narrative
   ========================================================================== */
.page-head--early { background: #EFE7D8; }
.page-head--early .eyebrow { color: var(--clay); }
.page-head--early .eyebrow::before { background: var(--clay); }

.annot {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.annot__main > * + * { margin-top: 1.15em; }
.annot__main p { color: var(--fg-soft); max-width: 68ch; }
.annot__main h3 { margin-top: 1.9em; }
.annot__notes { display: flex; flex-direction: column; gap: var(--s-5); position: sticky; top: calc(var(--header-h) + 2rem); }
.note {
  padding: var(--s-4);
  background: var(--paper);
  border-left: 2px solid var(--ochre);
}
.note h3, .note h4 { margin-bottom: .5rem; }
.note p { font-size: var(--t-small); color: var(--fg-mute); line-height: 1.6; }
@media (max-width: 900px) {
  .annot { grid-template-columns: 1fr; }
  .annot__notes { position: static; }
}

/* ==========================================================================
   BUSINESS JOURNEY — vertical timeline
   ========================================================================== */
.page-head--journey { background: var(--ink); color: var(--d-fg); }

.tl { position: relative; margin-top: var(--s-6); }
.tl::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: var(--rule-strong);
}
.tl__item {
  position: relative;
  padding-left: clamp(2.25rem, 5vw, 4.5rem);
  padding-bottom: var(--s-7);
}
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: ''; position: absolute; left: -5px; top: .55rem;
  width: 11px; height: 11px; background: var(--ochre);
  clip-path: polygon(50% 0, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0 50%, 15% 15%);
}
.tl__year {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3.1rem);
  line-height: 1; letter-spacing: -.028em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 144;
  color: var(--zellige);
  margin-bottom: .7rem;
}
.tl__item h3 { margin-bottom: .7rem; }
.tl__item p { color: var(--fg-soft); max-width: 66ch; }
.tl__item p + p { margin-top: .9em; }
.tl__tag {
  display: inline-block; margin-top: var(--s-3);
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--zellige);
  padding: .35rem .7rem;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  border-radius: 2px;
}

/* ==========================================================================
   LEADERSHIP — large typography
   ========================================================================== */
.page-head--leadership { background: #2C2219; color: var(--d-fg); }

.doctrine { display: flex; flex-direction: column; gap: var(--s-8); }
.doctrine__item {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.doctrine__lead h3 {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3rem);
  line-height: 1.08; letter-spacing: -.025em;
}
.doctrine__num {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: .22em; color: var(--ochre-ink);
  display: block; margin-bottom: var(--s-3);
}
.doctrine__body p { color: var(--fg-soft); max-width: 66ch; }
.doctrine__body p + p { margin-top: 1.05em; }
@media (max-width: 820px) { .doctrine__item { grid-template-columns: 1fr; } }

/* ==========================================================================
   BUSINESS INTERESTS — sector portfolio
   ========================================================================== */
.sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--gutter);
}
.sector {
  display: flex; flex-direction: column;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
  border-radius: 2px;
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
.sector:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.sector__plate { background: var(--paper-2); }
.sector__plate img { width: 100%; height: auto; display: block; }
.sector__body { padding: var(--s-4); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.sector__kicker {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ochre-ink);
}
.sector__body p { color: var(--fg-soft); font-size: var(--t-small); }
.sector__names {
  margin-top: auto; padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: var(--t-small); color: var(--fg-mute);
}
.sector__names strong { color: var(--fg); font-weight: 600; }

/* ==========================================================================
   ACHIEVEMENTS — data composition
   ========================================================================== */
.page-head--achievements { background: var(--ink); color: var(--d-fg); }

.record { border-top: 1px solid var(--rule); }
.record__row {
  display: grid;
  grid-template-columns: minmax(90px, 12%) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-2) var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background-color .3s var(--ease);
}
.record__row:hover { background: rgba(29, 91, 84, .04); }
.record__year {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem);
  line-height: 1.1; letter-spacing: -.02em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 120;
  color: var(--zellige);
}
.record__what { font-weight: 600; }
.record__note { color: var(--fg-mute); font-size: var(--t-small); }
@media (max-width: 760px) {
  .record__row { grid-template-columns: 1fr; gap: .35rem; padding: var(--s-3) 0; }
}

.honours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gutter);
}
.honour {
  padding: var(--s-4);
  box-shadow: inset 0 0 0 1px var(--d-rule);
  border-radius: 2px;
  display: flex; flex-direction: column; gap: .6rem;
}
.honour__mark { width: 26px; height: 26px; color: var(--ochre-l); }
.honour__mark svg { width: 100%; height: 100%; }
.honour h3 { font-size: var(--t-h4); font-family: var(--font-sans); font-weight: 600; }
.honour p { font-size: var(--t-small); color: var(--d-fg-mute); }

/* ==========================================================================
   VISION — immersive storytelling
   ========================================================================== */
.page-head--vision { background: #123430; color: var(--d-fg); }

.vision-act { position: relative; overflow: hidden; isolation: isolate; }
.vision-act__bleed {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.vision-act::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 30, 28, .88), rgba(12, 30, 28, .94));
}
.vision-act__inner { max-width: 64ch; }
.vision-act__figure {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.6rem + 5vw, 6rem);
  line-height: .95; letter-spacing: -.035em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 144;
  color: var(--ochre-l);
  margin-bottom: var(--s-4);
}

/* ==========================================================================
   MEDIA — editorial press index
   ========================================================================== */
.press { border-top: 1px solid var(--rule); }
.press__item {
  display: grid;
  grid-template-columns: minmax(0, .32fr) minmax(0, 1fr);
  gap: var(--s-2) var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--rule);
}
.press__outlet {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--zellige);
}
.press__meta { display: block; margin-top: .45rem; color: var(--fg-mute); letter-spacing: .1em; }
.press__item h3 { margin-bottom: .6rem; }
.press__item p { color: var(--fg-soft); max-width: 66ch; }
@media (max-width: 760px) { .press__item { grid-template-columns: 1fr; } }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.page-head--gallery { background: var(--ink); color: var(--d-fg); }

.gal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.gal__item { margin: 0; }

/* Photographs vary in aspect ratio and resolution, so they get a denser
   auto-filling track and align to the top of their row rather than stretching. */
/* Multi-column rather than grid: the photographs vary in aspect ratio, and a
   grid row would be forced to the height of its tallest cell, leaving holes. */
.gal--photo {
  display: block;
  columns: 4 240px;
  column-gap: var(--gutter);
}
.gal--photo .gal__item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: var(--gutter);
}
@media (max-width: 1100px) { .gal--photo { columns: 3 220px; } }
@media (max-width: 760px)  { .gal--photo { columns: 2 200px; } }
@media (max-width: 460px)  { .gal--photo { columns: 1; } }
.gal__btn--photo { background: var(--ink-2); cursor: zoom-in; }
.gal__btn--photo img { width: 100%; height: auto; display: block; }
.gal__btn {
  display: block; width: 100%; padding: 0;
  position: relative; overflow: hidden;
  border-radius: 2px; background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--d-rule);
  cursor: zoom-in;
}
.gal__btn img {
  width: 100%; height: auto; display: block;
  transition: transform .8s var(--ease-out);
}
.gal__btn:hover img { transform: scale(1.035); }
.gal__btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 20, 19, .5));
  opacity: 0; transition: opacity .4s var(--ease);
}
.gal__btn:hover::after { opacity: 1; }
.gal__item figcaption { margin-top: var(--s-3); }
/* The plate captions now sit on a light band and the photo captions on a dark
   one, so this has to follow its surface rather than assume dark. */
.gal__item figcaption strong { color: var(--fg); display: block; margin-bottom: .25rem; font-weight: 600; }
.on-dark .gal__item figcaption strong { color: var(--d-fg); }
@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gal { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(9, 16, 15, .96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-3) var(--s-5);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.lightbox[data-open='true'] { opacity: 1; }
.lightbox__bar {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--d-fg-mute);
}
.lightbox__count { font-size: var(--t-small); letter-spacing: .14em; }
.lightbox__close, .lightbox__nav {
  width: 46px; height: 46px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--d-fg); border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--d-rule);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--ochre); color: var(--ink); }
.lightbox__stage {
  grid-column: 2; grid-row: 2;
  margin: 0; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-3);
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - 12rem);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox__stage figcaption {
  color: var(--d-fg-soft); font-size: var(--t-small);
  text-align: center; max-width: 60ch;
}
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .lightbox__stage { grid-column: 1; grid-row: 2; }
  .lightbox__nav--prev { grid-column: 1; grid-row: 3; justify-self: start; }
  .lightbox__nav--next { grid-column: 1; grid-row: 3; justify-self: end; }
  .lightbox__stage img { max-height: calc(100vh - 14rem); }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.page-head--contact { background: #123430; color: var(--d-fg); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-lines { display: flex; flex-direction: column; gap: var(--s-5); }
.contact-line { padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.contact-line dt {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: .7rem;
}
.contact-line dd { margin: 0; }
.contact-line__value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 1.5vw, 2.15rem);
  line-height: 1.15; letter-spacing: -.022em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 120;
  color: var(--fg);
  display: inline-block;
  transition: color .3s var(--ease);
  word-break: break-word;
}
/* Phone and email are data, not display copy: the serif '@' and '+'
   read poorly at a glance, so the actionable lines use the sans face. */
a.contact-line__value {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.15rem, .98rem + .95vw, 1.65rem);
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: .12em;
}
a.contact-line__value:hover { color: var(--ochre); border-color: var(--ochre); }
.contact__plate img { width: 100%; height: auto; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact__plate { max-width: 400px; }
}

/* ==========================================================================
   Shared page furniture
   ========================================================================== */
.pagenav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-5);
}
.pagenav__link { display: flex; flex-direction: column; gap: .4rem; }
.pagenav__link--next { text-align: right; align-items: flex-end; }
.pagenav__kicker {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--fg-mute);
}
.pagenav__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem);
  letter-spacing: -.02em; line-height: 1.2;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 110;
  transition: color .3s var(--ease);
}
.pagenav__link:hover .pagenav__title { color: var(--ochre); }
@media (max-width: 520px) {
  .pagenav { grid-template-columns: 1fr; gap: var(--s-4); }
  .pagenav__link--next { text-align: left; align-items: flex-start; }
}
