/* =========================================================================
   METRO INC. — Monochrome Gallery
   Palette derived from the logo: black wordmark on ivory. No colour accent;
   warmth comes from the photography. Editorial B&W, gallery discipline.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Ink — the logo is pure black */
  --black:     #0F0E0C;
  --ink:       #16130F;
  --ink-soft:  #57524A;
  --ink-faint: #8E8880;

  /* Dark surfaces */
  --charcoal:  #17150F;
  --graphite:  #221E16;

  /* Light surfaces */
  --paper:     #F5F3EE;   /* near-white gallery ivory (cooler than kraft cream) */
  --white:     #FFFFFF;
  --stone:     #E9E6DF;

  /* On dark */
  --on-dark:       #F1EFE8;
  --on-dark-soft:  #ABA69C;
  --on-dark-faint: #726D63;

  /* Lines */
  --line-light: rgba(22, 19, 15, 0.14);
  --line-dark:  rgba(241, 239, 232, 0.16);

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1300px;
  --pad:  clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* =========================================================================
   Layout primitives
   ========================================================================= */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(72px, 11vw, 158px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 92px); }

.section--dark  { background: var(--charcoal); color: var(--on-dark); }
.section--light { background: var(--paper); color: var(--ink); }
.section--stone { background: var(--stone); color: var(--ink); }

/* =========================================================================
   Type
   ========================================================================= */
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
  margin: 0;
}
.display--xl { font-size: clamp(3rem, 9vw, 7.8rem); }
.display--l  { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.display--m  { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.display em  { font-style: italic; font-weight: 400; }

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.36;
  letter-spacing: -0.01em;
  margin: 0;
}

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

/* Eyebrow — spec label */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  margin: 0 0 clamp(20px, 3vw, 32px);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.55; }
.section--dark .eyebrow { color: var(--on-dark); }

.figno {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.section--dark .figno { color: var(--on-dark-faint); }

/* =========================================================================
   Top bar — light, gallery style, black wordmark
   ========================================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.topbar__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--pad);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 38px); }
.nav a {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  padding-block: 8px;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-light);
  border-radius: 2px;
  color: var(--ink);
  width: 44px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 80px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-light);
    padding: 8px var(--pad) 22px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { width: 100%; padding: 15px 0; font-size: 1rem; border-bottom: 1px solid var(--line-light); }
  .nav a::after { display: none; }
}

/* =========================================================================
   Buttons & links
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--mono);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 2px; border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-2px); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: #000; }
.btn--outline { border-color: var(--line-light); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { border-color: var(--line-dark); color: var(--on-dark); }
.btn--light:hover { border-color: var(--on-dark); background: rgba(241,239,232,0.06); }
.btn--onlight { background: var(--paper); color: var(--ink); }
.btn--onlight:hover { background: var(--white); }

.tlink {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 3px;
  border-bottom: 1px solid var(--line-light);
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.section--dark .tlink { color: var(--on-dark); border-color: var(--line-dark); }
.tlink:hover { gap: 1em; border-color: currentColor; }

/* =========================================================================
   Media hero — full-bleed photograph
   ========================================================================= */
.hero-media {
  position: relative;
  min-height: clamp(540px, 84vh, 840px);
  display: flex; align-items: flex-end;
  color: var(--on-dark);
  overflow: hidden;
}
.hero-media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(13,11,9,0.88) 0%, rgba(13,11,9,0.66) 34%, rgba(13,11,9,0.28) 62%, rgba(13,11,9,0.06) 100%),
    linear-gradient(180deg, rgba(13,11,9,0.34) 0%, rgba(13,11,9,0.04) 30%, rgba(13,11,9,0.30) 70%, rgba(13,11,9,0.60) 100%);
}
.hero-media__inner .display,
.hero-media__inner .lede,
.hero-media__inner .eyebrow { text-shadow: 0 1px 26px rgba(0,0,0,0.32); }
.hero-media .eyebrow { color: var(--on-dark); }
.hero-media .eyebrow::before { opacity: 0.85; }
.hero-media__meta dt { color: #D8D2C6; }
.hero-media__inner {
  position: relative;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 0 var(--pad) clamp(46px, 7vw, 92px);
}
.hero-media .eyebrow { color: var(--on-dark); }
.hero-media__meta {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  margin-top: clamp(24px, 4vw, 40px); padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}
.hero-media__meta div { display: flex; flex-direction: column; gap: 3px; }
.hero-media__meta dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); }
.hero-media__meta dd { margin: 0; font-size: 0.95rem; }

/* Text hero (interior pages without a photo behind) */
.hero-lead { }
.hero-lead__meta {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  margin-top: clamp(24px, 4vw, 40px); padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}
.hero-lead__meta div { display: flex; flex-direction: column; gap: 3px; }
.hero-lead__meta dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-faint); }
.hero-lead__meta dd { margin: 0; font-size: 0.95rem; }

/* =========================================================================
   Image frame
   ========================================================================= */
.imgframe { position: relative; overflow: hidden; background: var(--stone); }
.imgframe img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.imgframe:hover img { transform: scale(1.035); }
.imgframe--tall  { aspect-ratio: 4 / 5; }
.imgframe--wide  { aspect-ratio: 16 / 10; }
.imgframe--sq    { aspect-ratio: 1 / 1; }

/* Caption row (mono, under a framed figure) */
.caprow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 14px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.section--dark .caprow { color: var(--on-dark-faint); }
.caprow b { color: var(--ink); font-weight: 500; }
.section--dark .caprow b { color: var(--on-dark); }

/* =========================================================================
   Split — image + text
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 82px); align-items: center; }
.split--flip .split__media { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .split--flip .split__media { order: 0; }
}

/* Section header */
.head { max-width: 72ch; }
.head .display { margin-bottom: 20px; }

/* =========================================================================
   Grids
   ========================================================================= */
.grid { display: grid; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

/* =========================================================================
   Cards — white, photographic
   ========================================================================= */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-light);
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(15,14,12,0.5); }
.card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__index {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); background: rgba(15,14,12,0.55); padding: 5px 9px; border-radius: 2px;
  backdrop-filter: blur(2px);
}
.card__body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; color: var(--ink); line-height: 1.05; }
.card__desc { color: var(--ink-soft); font-size: 0.96rem; margin: 0; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line-light); padding: 5px 9px; border-radius: 2px;
}

/* =========================================================================
   Ledger — ruled value/process rows
   ========================================================================= */
.ledger { border-top: 1px solid var(--line-light); }
.section--dark .ledger { border-top-color: var(--line-dark); }
.ledger__row {
  display: grid;
  grid-template-columns: 92px 1fr minmax(0, 46ch);
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line-light);
  align-items: baseline;
  transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.section--dark .ledger__row { border-bottom-color: var(--line-dark); }
.ledger__row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.section--dark .ledger__row:hover { background: rgba(241,239,232,0.04); }
.ledger__no { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--ink-faint); }
.section--dark .ledger__no { color: var(--on-dark-faint); }
.ledger__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.08; margin: 0; }
.ledger__body { color: var(--ink-soft); margin: 0; }
.section--dark .ledger__body { color: var(--on-dark-soft); }
@media (max-width: 760px) {
  .ledger__row { grid-template-columns: 46px 1fr; }
  .ledger__body { grid-column: 1 / -1; }
}

/* =========================================================================
   Stats
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat dt { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.stat dd { margin: 10px 0 0; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.section--dark .stat dd { color: var(--on-dark-soft); }

/* =========================================================================
   Framed plate figure (factory / map)
   ========================================================================= */
.plate-fig { background: var(--white); border: 1px solid var(--line-light); padding: clamp(12px, 1.6vw, 20px); }
.section--dark .plate-fig { background: var(--graphite); border-color: var(--line-dark); }
.plate-fig img { width: 100%; height: auto; display: block; }
.plate-fig figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-light);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
}
.section--dark .plate-fig figcaption { border-top-color: var(--line-dark); color: var(--on-dark-faint); }
.plate-fig figcaption b { color: var(--ink); font-weight: 500; }
.section--dark .plate-fig figcaption b { color: var(--on-dark); }

/* =========================================================================
   Marquee strip
   ========================================================================= */
.strip { border-block: 1px solid var(--line-dark); overflow: hidden; padding-block: 22px; }
.strip__track { display: flex; gap: 56px; white-space: nowrap; width: max-content; animation: drift 40s linear infinite; }
.strip__track span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--on-dark-soft);
  display: inline-flex; align-items: center; gap: 56px;
}
.strip__track span::after { content: "—"; font-style: normal; color: var(--on-dark-faint); }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.channel { border-top: 1px solid var(--line-dark); padding: 20px 0; display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: baseline; }
.channel:last-of-type { border-bottom: 1px solid var(--line-dark); }
.channel dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-faint); margin: 0; }
.channel dd { margin: 0; }
.channel dd a { font-size: 1.05rem; transition: color 0.3s var(--ease); }
.channel dd a:hover { color: var(--on-dark-soft); }
.channel dd span { display: block; }

.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.field label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem; color: var(--on-dark);
  background: transparent; border: 1px solid var(--line-dark); border-radius: 2px; padding: 14px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--on-dark); background: rgba(241,239,232,0.05); }
.field textarea { resize: vertical; min-height: 130px; }
.field ::placeholder { color: var(--on-dark-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
select option { color: #111; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--black); color: var(--on-dark); padding-top: clamp(60px, 8vw, 104px); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 7vw, 80px); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand img { height: 54px; width: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer__brand p { max-width: 34ch; color: var(--on-dark-soft); }
.fcol h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 18px; font-weight: 500; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fcol a { color: var(--on-dark-soft); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.fcol a:hover { color: var(--on-dark); }
.footer__base {
  border-top: 1px solid var(--line-dark); padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--on-dark-faint); text-transform: uppercase;
}

/* =========================================================================
   Reveal
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Utilities */
.mt-s { margin-top: 20px; }
.mt-m { margin-top: clamp(28px, 4vw, 44px); }
.mt-l { margin-top: clamp(40px, 6vw, 72px); }
.cluster { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.muted { color: var(--ink-soft); }
.section--dark .muted { color: var(--on-dark-soft); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
