/* ============================================================
   M22 CORE — shared brand foundation for all four M22 sites
   Change brand-level things HERE, once. Sites inherit it.
   ============================================================ */

/* ── BRAND TOKENS ── */
:root {
  /* Color */
  --blue:        #1788C9;
  --blue-dark:   #1272A8;
  --blue-wash:   #E9F2F9;
  --black:       #101820;
  --charcoal:    #1D2D3D;
  --cream:       #F2F4F6;
  --stone:       #EDEEF0;
  --white:       #FFFFFF;

  --ink:         #101820;          /* primary text on light */
  --ink-soft:    #4A5763;          /* secondary text on light */
  --ink-faint:   #8A949C;          /* labels / meta on light */
  --on-dark:     rgba(255,255,255,0.92);
  --on-dark-soft:rgba(255,255,255,0.55);
  --on-dark-faint:rgba(255,255,255,0.40);

  --line:        rgba(16,24,32,0.10);   /* hairline on light */
  --line-dark:   rgba(255,255,255,0.10); /* hairline on dark */

  /* Type */
  --display: 'Barlow Condensed', system-ui, sans-serif;
  --body:    'Barlow', system-ui, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: 0.72rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --fs-h2:      clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-h1:      clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);

  /* Rhythm */
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 4px;
  --radius-lg: 8px;

  --nav-h: 64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }

/* ── TYPOGRAPHY ── */
.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
}
h1.display { font-size: var(--fs-h1); }
h2.display { font-size: var(--fs-h2); }
h3.display { font-size: var(--fs-h3); letter-spacing: 0.02em; }
.accent { color: var(--blue); }
.title-accent { font-style: italic; color: var(--blue); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}
.eyebrow--center { justify-content: center; }

.lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}
.muted { color: var(--ink-soft); }

/* ── BUTTONS ── */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 60px; padding: 0 2.6rem; font-size: 1.05rem; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { background: transparent; --btn-fg: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn--on-dark.btn--ghost {
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px var(--on-dark-faint);
}
.btn--on-dark.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; background: transparent; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.textlink span { transition: transform .18s ease; }
.textlink:hover span { transform: translateX(4px); }

/* ── PHOTO PLACEHOLDER ──
   Real photography is not in yet. These are deliberate, sized
   slots. The label IS the shoot list. Drop a real image in by
   replacing the .photo block with <img> at the same ratio. */
.photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(135deg,
      rgba(16,24,32,0.022) 0 2px, transparent 2px 11px),
    var(--stone);
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--wide   { aspect-ratio: 16 / 9; }
.photo--hero   { aspect-ratio: 5 / 4; }
.photo--tall   { aspect-ratio: 3 / 4; }
.photo--square { aspect-ratio: 1 / 1; }
.photo__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(255,255,255,0.78);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}
.photo__note {
  max-width: 78%;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}
.photo--dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.03) 0 2px, transparent 2px 11px),
    var(--charcoal);
  border-color: var(--line-dark);
  color: var(--on-dark-soft);
}
.photo--dark .photo__tag { background: rgba(16,24,32,0.55); }

/* ── FORM PRIMITIVES ── */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.0625rem;
  outline: none;
  transition: border-color .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A949C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus { border-color: var(--blue); }

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--black);
  color: var(--on-dark-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer a { transition: color .18s ease; }
.site-footer a:hover { color: #fff; }
.site-footer__top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__brand-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer__brand-name span { color: var(--blue); }
.site-footer__tagline { margin-top: 0.6rem; max-width: 30ch; line-height: 1.7; }
.site-footer__col h4 {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 1rem;
}
.site-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--on-dark-faint);
  line-height: 1.7;
}
@media (min-width: 720px) {
  .site-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
