/* ============================================================
   METICULOUS IMAGE INC.
   Cinematic Dark design system
   Orange is a scalpel, not a paint roller.
   ============================================================ */

:root {
  --mi-orange: #E07B26;
  --mi-orange-bright: #F08A33;
  --mi-black: #0A0A0A;
  --mi-black-raised: #141414;
  --mi-black-raised-2: #181818;
  --mi-white: #F5F3EF;
  --mi-gray: #9A948C;
  --mi-line: rgba(224, 123, 38, 0.18);
  --mi-line-quiet: rgba(245, 243, 239, 0.08);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(64px, 10vw, 128px);
  --radius: 6px;
}

/* ---------- Reset ---------- */

*, *::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;
  background: var(--mi-black);
  color: var(--mi-white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.65;
}

img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 7.5vw, 88px); }
h2 { font-size: clamp(34px, 4.5vw, 56px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
h4 { font-size: clamp(20px, 2vw, 24px); }

p { margin: 0 0 1.2em; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--mi-white); text-decoration-color: var(--mi-line); text-underline-offset: 3px; }
a:hover { color: var(--mi-orange); }

:focus-visible {
  outline: 2px solid var(--mi-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--mi-orange); color: var(--mi-black); }

/* ---------- Film grain (quiet, fixed, non-animated) ---------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section-tight { padding-block: calc(var(--section-pad) * 0.6); }

.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mi-orange);
  display: block;
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(18px, 1.4vw + 12px, 22px);
  color: var(--mi-gray);
  max-width: 62ch;
}

.prose { max-width: 70ch; }
.prose p + p { margin-top: 1.1em; }
.muted { color: var(--mi-gray); }

/* The signature orange left border motif */
.accent-left {
  border-left: 3px solid var(--mi-orange);
  padding-left: clamp(18px, 3vw, 28px);
}

.rule { border: 0; border-top: 1px solid var(--mi-line); margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--mi-orange);
  color: var(--mi-black);
}
.btn-primary:hover { background: var(--mi-orange-bright); color: var(--mi-black); }

.btn-ghost {
  background: transparent;
  color: var(--mi-white);
  border-color: rgba(245, 243, 239, 0.28);
}
.btn-ghost:hover { border-color: var(--mi-orange); color: var(--mi-orange); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}

/* No backdrop-filter here: it would turn the fixed header into the containing
   block for the fixed full-screen mobile nav and break inset: 0. */
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(10, 10, 10, 0.94);
  border-bottom-color: var(--mi-line-quiet);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 150px; height: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }

.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mi-white);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:not(.btn):hover { color: var(--mi-orange); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--mi-orange); }

.site-nav .btn { padding: 11px 22px 10px; font-size: 15px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--mi-white);
  margin: 6px 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 49;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 90px 0 40px;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { font-size: 26px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--mi-orange);
  color: var(--mi-black);
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding-block: 120px clamp(56px, 9vw, 96px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--mi-black-raised);
}

.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* Embedded players cannot object-fit, so the iframe is oversized to a 16:9
   box that always covers the hero, then centered. pointer-events off keeps
   the hero text and buttons clickable and hides player chrome from clicks. */
.hero-media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Oversized well past cover so YouTube's title bar and watermark crop
     outside the visible hero. Harmless for the eventual Vimeo/MP4 swap. */
  width: max(116vw, 206svh);
  height: max(65.25vw, 116svh);
  max-width: none;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.35) 45%, rgba(10, 10, 10, 0.55) 100%);
}

.hero h1 { max-width: 13ch; }

.hero .lede { color: rgba(245, 243, 239, 0.82); margin-bottom: 34px; }

/* SEO subtitle rendered as an h2 but styled as body copy */
.hero .hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: initial;
}

/* ---------- Placeholder blocks (pending assets, staging only) ---------- */

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  background:
    repeating-linear-gradient(-45deg, rgba(224, 123, 38, 0.05) 0 14px, transparent 14px 28px),
    var(--mi-black-raised);
  border: 1px dashed rgba(224, 123, 38, 0.4);
  border-radius: var(--radius);
  color: var(--mi-gray);
  font-size: 15px;
  line-height: 1.5;
}

.placeholder strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mi-orange);
  margin-bottom: 6px;
}

.placeholder-media { aspect-ratio: 16 / 9; width: 100%; }

.hero-media .placeholder {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border-width: 0 0 1px;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: right;
  padding: 96px 28px 28px;
}

.hero-media .placeholder > div { max-width: 34ch; opacity: 0.75; }

/* ---------- Client logo band ---------- */

.logo-band { border-block: 1px solid var(--mi-line-quiet); }

.logo-band-label {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mi-gray);
  margin-bottom: 34px;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.logo-grid img {
  height: clamp(26px, 3.4vw, 40px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.62;
  transition: opacity 160ms ease;
}

.logo-grid img:hover { opacity: 1; }

/* ---------- Client logo wall ---------- */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 44px 36px;
  align-items: center;
  justify-items: center;
}

.logo-wall img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 160ms ease;
}

.logo-wall img:hover { opacity: 1; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.stat { border-left: 3px solid var(--mi-orange); padding-left: 22px; }

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  color: var(--mi-white);
  display: block;
}

.stat-label { color: var(--mi-gray); margin-top: 8px; display: block; max-width: 26ch; }

/* ---------- Cards / work grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.work-card {
  display: block;
  text-decoration: none;
  color: var(--mi-white);
  background: var(--mi-black-raised);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 200ms ease, background-color 200ms ease;
}

.work-card:hover { transform: scale(1.02); background: var(--mi-black-raised-2); color: var(--mi-white); }

.work-card-media {
  aspect-ratio: 16 / 9;
  background: var(--mi-black-raised-2);
  position: relative;
  overflow: hidden;
}

.work-card-media img { width: 100%; height: 100%; object-fit: cover; }

.work-card-body { padding: 20px 22px 24px; position: relative; }

.work-card-body::before {
  content: "";
  position: absolute;
  left: 0; top: 22px; bottom: 24px;
  width: 3px;
  background: var(--mi-orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 220ms ease;
}

.work-card:hover .work-card-body::before { transform: scaleY(1); }

.work-card h3 { margin-bottom: 4px; }
.work-card .meta { color: var(--mi-gray); font-size: 15px; }

/* ---------- Split lanes ---------- */

.lanes {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.lane {
  background: var(--mi-black-raised);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lane p { color: var(--mi-gray); }
.lane .lane-link { margin-top: auto; }

.lane-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mi-orange);
}
.lane-link:hover { color: var(--mi-orange-bright); }

/* ---------- Steps (how it works) ---------- */

.steps {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  counter-reset: step;
}

.step { counter-increment: step; }

.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: var(--mi-orange);
  display: block;
  line-height: 1;
  margin-bottom: 14px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--mi-gray); font-size: 16px; }

/* ---------- Founder strip ---------- */

.founder-strip {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  align-items: center;
}

.founder-strip .placeholder-media { aspect-ratio: 4 / 3; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--mi-black-raised);
  border-block: 1px solid var(--mi-line);
  text-align: center;
}

.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { margin-inline: auto; margin-bottom: 30px; }

/* ---------- Video facade embeds ---------- */

.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--mi-black-raised);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-facade-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.video-facade-btn img { width: 100%; height: 100%; object-fit: cover; }

.video-facade-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.25);
  transition: background-color 160ms ease;
}

.video-facade-btn:hover::after { background: rgba(10, 10, 10, 0.05); }

.video-facade-btn .play {
  position: absolute;
  z-index: 1;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  border: 2px solid var(--mi-orange);
  transition: background-color 160ms ease;
}

.video-facade-btn .play::before {
  content: "";
  position: absolute;
  left: 55%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--mi-orange);
}

.video-facade-btn:hover .play { background: var(--mi-black); }

.video-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  margin-top: 12px;
  color: var(--mi-white);
}

/* ---------- Quotes / callouts ---------- */

blockquote {
  margin: 0;
  border-left: 3px solid var(--mi-orange);
  padding-left: clamp(18px, 3vw, 28px);
  font-size: clamp(19px, 1.6vw + 12px, 24px);
  line-height: 1.5;
  color: var(--mi-white);
  max-width: 60ch;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-size: 16px;
  color: var(--mi-gray);
  margin-top: 14px;
}

/* ---------- Package cards (services) ---------- */

.packages {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  align-items: stretch;
}

.package {
  background: var(--mi-black-raised);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--mi-orange);
}

.package .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--mi-orange);
  display: block;
  margin-bottom: 4px;
}

.package .price small {
  font-size: 16px;
  font-weight: 600;
  color: var(--mi-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.package ul { list-style: none; margin: 18px 0 26px; padding: 0; color: var(--mi-gray); }
.package li { padding: 7px 0 7px 24px; position: relative; }
.package li::before { content: ""; position: absolute; left: 0; top: 16px; width: 12px; height: 2px; background: var(--mi-orange); }
.package .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

label .optional { color: var(--mi-gray); text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 400; }

input, select, textarea {
  font: inherit;
  color: var(--mi-white);
  background: var(--mi-black-raised);
  border: 1px solid rgba(245, 243, 239, 0.16);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--mi-orange);
  outline-offset: 0;
  border-color: var(--mi-orange);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E07B26' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

textarea { min-height: 150px; resize: vertical; }

/* Honeypot: hidden from humans, present for bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Contact details ---------- */

.contact-layout {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-details { display: grid; gap: 26px; }

.contact-details h3 { margin-bottom: 4px; }

.contact-details a { text-decoration: none; }

/* ---------- Case study ---------- */

.case-header { padding-top: clamp(140px, 18vw, 190px); }

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  color: var(--mi-gray);
  font-size: 15px;
  margin-top: 18px;
}

.case-meta strong {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mi-white);
  display: block;
  font-size: 14px;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--mi-line-quiet);
  padding-top: 34px;
}

.case-nav a { text-decoration: none; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Page intro (interior pages) ---------- */

.page-intro { padding-top: clamp(140px, 18vw, 200px); }

/* ---------- About page layout patterns ---------- */

/* Full-viewport-width block inside a normal flow */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.full-bleed .hero-reel { border-radius: 0; }

/* Two-image cinematic collage */
.collage { position: relative; padding-bottom: 14%; }

.collage img {
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  /* Uniform dark grade to match the BTS treatment */
  filter: contrast(0.92) brightness(0.94) sepia(0.12);
}

.collage picture:first-child img { width: 82%; }

.collage picture:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  display: block;
}

.collage picture:last-child img {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65);
  border: 3px solid var(--mi-black);
}

/* Section with a photographic background behind a dark overlay */
.bg-photo {
  background-size: cover;
  background-position: center;
}

.bg-photo .lane { background: rgba(16, 16, 16, 0.82); }

/* ---------- BTS strip ---------- */

.bts-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.bts-strip .placeholder { aspect-ratio: 3 / 2; }

.bts-grade {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  /* Uniform dark grade: lifted blacks, warm highlights */
  filter: contrast(0.92) brightness(0.94) sepia(0.12);
}

.bts-strip img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  /* Uniform dark grade: lifted blacks, warm highlights */
  filter: contrast(0.92) brightness(0.94) sepia(0.12);
}

.bts-strip figure { margin: 0; }

.bts-strip figcaption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--mi-gray);
  margin-top: 8px;
}

/* ---------- Footer ---------- */

.social-row { display: flex; gap: 16px; margin-top: 20px; }

.social-row a {
  color: var(--mi-gray);
  display: inline-flex;
  padding: 4px;
  transition: color 160ms ease;
}

.social-row a:hover { color: var(--mi-orange); }


.site-footer {
  border-top: 1px solid var(--mi-line-quiet);
  padding-block: clamp(48px, 7vw, 80px) 36px;
  color: var(--mi-gray);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  align-items: start;
  margin-bottom: 48px;
}

.footer-grid .brand img { width: 170px; }

.footer-col h4 {
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mi-white);
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--mi-gray); text-decoration: none; }
.footer-col a:hover { color: var(--mi-orange); }

.footer-legal {
  border-top: 1px solid var(--mi-line-quiet);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: space-between;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: left;
}

.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(90px, 18vw, 200px);
  line-height: 1;
  color: var(--mi-orange);
  display: block;
}

/* ---------- Scroll reveal (JS adds .js to html) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.is-in { transition: none; }
  .work-card, .work-card:hover { transform: none; }
  * { animation: none !important; }
}
