:root {
  --ink: #0f0e0c;
  --ink-2: #1a1815;
  --bone: #f4efe7;
  --sand: #e6d8c3;
  --clay: #c4562c;
  --clay-hi: #e57a48;
  --rust: #8f3b1d;
  --sky: #2b2a3a;
  --muted: #8b8478;
  --line: rgba(244, 239, 231, .14);
  --line-dark: rgba(15, 14, 12, .12);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.025em; line-height: 1.02; }
h2 { font-size: clamp(40px, 6vw, 84px); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay-hi); margin: 0 0 22px; font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; background: var(--bone); color: var(--ink); }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-hi); }
.btn-ghost { color: var(--bone); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-ghost-dark { color: var(--ink); border: 1px solid var(--line-dark); margin-top: 12px; }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-light { background: var(--bone); color: var(--ink); }
.btn-outline-light { color: var(--bone); border: 1px solid rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; }

/* ---------- Nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--clay-hi); transform-origin: 0 50%; transform: scaleX(0); }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(15, 14, 12, .72);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; }
/* Michael's single-colour logo used as a stencil, filled with the site palette:
   red-rock mountains over cream lettering. */
.logo {
  display: block; aspect-ratio: 2400 / 1452; height: 76px;
  -webkit-mask: var(--logo-src) center / contain no-repeat;
          mask: var(--logo-src) center / contain no-repeat;
  --logo-src: url("../img/ifc-logo-mask.png");
}
.brand-logo { background: linear-gradient(180deg, var(--clay-hi) 0 55.5%, var(--bone) 55.5%); transition: height .4s; }
.nav.is-solid .brand-logo { height: 56px; }
.footer-logo { height: 68px; background: var(--bone); }
.footer { align-items: center; }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: rgba(244,239,231,.75); }
.nav-links a:hover { color: var(--bone); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 640px; overflow: hidden;
  display: grid; place-items: center; text-align: center;
}
.hero { background: var(--ink); }
.hero-media { position: absolute; inset: 0; overflow: hidden; will-change: transform, opacity; }
.hero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform-origin: 50% 60%; will-change: transform;
}
/* Darkens the sky for headline contrast and warms the rock toward the brand palette */
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,10,9,.72) 0%, rgba(12,10,9,.35) 38%, rgba(12,10,9,.1) 60%, rgba(12,10,9,.55) 88%, var(--ink) 100%),
    linear-gradient(0deg, rgba(196,86,44,.18), rgba(43,36,54,.35));
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 100%; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,14,12,0) 0%, var(--ink) 45%);
  transform: translateY(100%); will-change: transform;
}
/* Static film grain: one composited layer, never animated */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-copy {
  position: relative; z-index: 2; align-self: stretch; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: max(140px, 17vh) var(--gutter) max(84px, 11vh); will-change: transform;
}
.hero-title { font-size: clamp(54px, 9vw, 144px); line-height: .94; letter-spacing: -.045em; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
.hero-title em { color: var(--sand); }
.btn-ghost { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(15,14,12,.25); }
.hero-sub { max-width: 560px; margin: 0 auto 26px; font-size: clamp(17px, 1.6vw, 21px); color: rgba(244,239,231,.85); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: rgba(244,239,231,.6);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue span { width: 1px; height: 42px; background: linear-gradient(var(--bone), transparent); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Statement ---------- */
.statement { padding: 24vh var(--gutter); max-width: 1240px; margin: 0 auto; }
.statement-text {
  margin: 0; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.12; letter-spacing: -.03em; font-weight: 500;
}
.statement-text em { color: var(--clay-hi); }

/* ---------- Scan ---------- */
.scan { background: var(--bone); color: var(--ink); }
.scan-inner {
  height: 100vh; min-height: 640px; display: grid; grid-template-columns: 1fr 1.35fr;
  align-items: center; gap: 4vw; padding: 80px var(--gutter) 40px; max-width: 1440px; margin: 0 auto;
}
.scan-steps { position: relative; min-height: 300px; }
.scan-step { position: absolute; inset: 0 0 auto 0; }
.scan-step .num { font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--clay); }
.scan-step h2 { font-size: clamp(36px, 4.4vw, 64px); margin: 10px 0 18px; }
.scan-step h2 em {
  font-family: var(--sans); font-style: normal; font-weight: 600;
  letter-spacing: -.035em; color: var(--clay);
}
.scan-step p { color: #5d574e; max-width: 440px; margin: 0; }
.scan-meter { height: 2px; background: var(--line-dark); max-width: 440px; margin-top: 24px; }
.scan-meter span { display: block; height: 100%; background: var(--clay); transform-origin: 0 50%; transform: scaleX(0); }
.scan-stage { position: relative; aspect-ratio: 800 / 520; width: 100%; }
.house { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.draw { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.draw.thin { stroke-width: 1.4; opacity: .55; }
.draw.pipe { stroke: #2f6f9f; stroke-dasharray: 2 0; stroke-width: 3; }
.beam {
  position: absolute; top: -4%; bottom: -4%; left: 0; width: 18%;
  background: linear-gradient(90deg, transparent, rgba(196,86,44,.0) 20%, rgba(196,86,44,.18) 85%, var(--clay) 100%);
  border-right: 2px solid var(--clay); opacity: 0; pointer-events: none; will-change: transform;
}
.thermal { position: absolute; inset: 0; opacity: 0; border-radius: 12px; overflow: hidden; filter: blur(22px); }
.thermal .hot, .thermal .cold { position: absolute; border-radius: 50%; }
.thermal .h1 { left: 22%; top: 50%; width: 26%; height: 34%; background: #ff5a1f; }
.thermal .h2 { left: 38%; top: 22%; width: 26%; height: 22%; background: #ffb21f; }
.thermal .c1 { left: 60%; top: 62%; width: 22%; height: 26%; background: #3b6dff; }
.callout {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 8px; transform: translate(-7px, -50%);
  font-size: 13px; font-weight: 500; white-space: nowrap; pointer-events: none;
}
.callout i { width: 14px; height: 14px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 5px rgba(196,86,44,.2); flex: none; }
.callout span { background: var(--ink); color: var(--bone); padding: 6px 11px; border-radius: 999px; }
.scan-tag {
  position: absolute; right: 0; top: -36px; display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.modes { display: grid; }
.modes b { grid-area: 1 / 1; font-weight: 600; }
.modes .m2 { opacity: 0; color: var(--clay-hi); }
@media (min-width: 961px) { .area { min-height: 100vh; display: grid; align-items: center; } }
.scan-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Services ---------- */
.services { background: var(--ink); overflow: hidden; }
.services-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 56px; padding: 110px 0 60px; }
.services-head { padding: 0 var(--gutter); }
.services-track { display: flex; gap: 22px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.svc {
  position: relative; width: min(420px, 78vw); min-height: 440px; padding: 34px;
  border-radius: 28px; background: var(--ink-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
}
.svc::after {
  content: ""; position: absolute; right: -30%; bottom: -40%; width: 90%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(196,86,44,.32), transparent 65%); pointer-events: none;
}
.svc-num { font-family: var(--serif); font-size: 64px; color: var(--clay-hi); line-height: 1; }
.svc h3 { font-size: 34px; margin: auto 0 14px; }
.svc p { color: rgba(244,239,231,.68); margin: 0 0 22px; }
.svc-tag { align-self: flex-start; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.svc-cta { background: var(--clay); border-color: transparent; justify-content: flex-end; }
.svc-cta::after { display: none; }
.svc-cta p { color: rgba(255,255,255,.85); }
.svc-cta .btn-primary { background: var(--ink); align-self: flex-start; }

/* ---------- Checklist ---------- */
.checklist { background: var(--sand); color: var(--ink); padding: 18vh 0; }
.checklist-head { max-width: 800px; margin-bottom: 56px; }
.checklist .eyebrow, .process .eyebrow, .area .eyebrow { color: var(--clay); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  padding: 16px 24px; border-radius: 999px; background: var(--bone); border: 1px solid var(--line-dark);
  font-size: clamp(16px, 1.6vw, 21px); font-weight: 500; will-change: transform;
}
.chips li:nth-child(4n+1) { background: var(--ink); color: var(--bone); }

/* ---------- Trust ---------- */
.trust { padding: 18vh 0 0; background: var(--ink); }
.trust-title { max-width: 960px; }
.trust-title em { color: var(--sand); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 80px 0; border-top: 1px solid var(--line); padding-top: 40px; }
.stat b { display: block; font-size: clamp(56px, 7vw, 104px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stat span { color: var(--muted); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, #1f1c18, #141210); }
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { margin: 0; color: rgba(244,239,231,.66); font-size: 15px; }
.marquee { margin-top: 14vh; padding: 40px 0; border-top: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.marquee-track img {
  height: 120px; width: auto; padding: 14px 18px; border-radius: 22px;
  background: radial-gradient(circle at 50% 40%, rgba(244,239,231,.16), rgba(244,239,231,.04) 70%);
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.marquee-track img:hover { transform: translateY(-6px) scale(1.06); }

/* ---------- Process ---------- */
.process { background: var(--bone); color: var(--ink); padding: 18vh 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 80px; }
.steps-line { position: absolute; top: 28px; left: 28px; right: 28px; height: 2px; background: var(--line-dark); }
.steps-line span { display: block; height: 100%; background: var(--clay); transform-origin: 0 50%; transform: scaleX(0); }
.step { position: relative; }
.step > span {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--bone); font-family: var(--serif); font-size: 26px; margin-bottom: 28px;
}
.step h3 { font-size: 30px; margin-bottom: 10px; }
.step p { color: #5d574e; margin: 0; max-width: 340px; }

/* ---------- Area ---------- */
.area { background: var(--sand); color: var(--ink); padding: 14vh 0; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.area-copy p:not(.eyebrow) { color: #4f493f; max-width: 460px; font-size: 19px; margin: 26px 0; }
.map { width: 100%; max-height: 80vh; overflow: visible; }
.route-bg { fill: none; stroke: rgba(15,14,12,.12); stroke-width: 14; stroke-linecap: round; }
.route { fill: none; stroke: var(--clay); stroke-width: 5; stroke-linecap: round; }
.city circle { fill: var(--ink); stroke: var(--sand); stroke-width: 4; }
.city circle.home { fill: var(--clay); }
.city text { font-family: var(--sans); font-size: 19px; font-weight: 600; fill: var(--ink); }
.city .hq { font-weight: 400; fill: var(--clay); font-family: var(--serif); font-style: italic; }

/* ---------- About ---------- */
.about { background: var(--ink); padding: 18vh 0; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6vw; align-items: center; }
.about-badge {
  aspect-ratio: 4 / 5; border-radius: 32px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 80% 10%, #e57a48 0%, #8f3b1d 45%, #2a140d 100%);
}
.monogram { font-family: var(--serif); font-size: clamp(120px, 14vw, 200px); line-height: .8; color: var(--bone); }
.about-badge ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.about-badge li { border-top: 1px solid rgba(255,255,255,.25); padding-top: 10px; font-weight: 500; }
.about-copy .lead { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -.015em; margin: 26px 0 20px; }
.about-copy p { color: rgba(244,239,231,.72); max-width: 620px; }
.about-copy blockquote { margin: 40px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 42px); color: var(--sand); line-height: 1.15; }

/* ---------- CTA ---------- */
.cta { background: var(--clay); color: #fff; }
.cta-inner { min-height: 88vh; display: grid; place-content: center; text-align: center; gap: 44px; padding: 0 var(--gutter); }
.cta-title { font-size: clamp(48px, 8.4vw, 132px); letter-spacing: -.045em; line-height: .96; }
.footer {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px var(--gutter); border-top: 1px solid rgba(255,255,255,.25); font-size: 14px; color: rgba(255,255,255,.8);
}
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .brand-logo { height: 52px; }
  .nav.is-solid .brand-logo { height: 42px; }
  .scan-inner { grid-template-columns: 1fr; height: auto; min-height: 100vh; gap: 40px; padding-top: 100px; align-content: center; }
  .scan-steps { min-height: 260px; }
  .callout { font-size: 10px; }
  .callout span { padding: 4px 8px; }
  .stats, .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps-line { display: none; }
  .area-grid, .about-grid { grid-template-columns: 1fr; }
  .map { max-height: 60vh; }
  .about-badge { aspect-ratio: auto; min-height: 340px; }
}
@media (max-width: 960px) and (max-height: 900px) {
  .scan-steps { min-height: 300px; }
}
@media (max-width: 600px) {
  .stats { gap: 32px 16px; }
  .cards { grid-template-columns: 1fr; }
  .services-track { flex-direction: column; width: auto; }
  .svc { width: 100%; min-height: 320px; }
  .callout:nth-of-type(n) span { display: none; }
  .hero-photo { object-position: 27% 30%; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span, .scan-tag .dot { animation: none; }
}
