/* =====================================================================
   Three Spheres — Company Profile (one-pager)
   Brand tokens distilled from 3S Branding Guidelines/03-Design-System
   ===================================================================== */

@font-face { font-family: "Museo"; src: url("../fonts/Museo-100.woff2") format("woff2"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo"; src: url("../fonts/Museo-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo"; src: url("../fonts/Museo-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo"; src: url("../fonts/Museo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo"; src: url("../fonts/Museo-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --c-red:        #A4060C;
  --c-red-deep:   #8B0509;
  --c-red-bright: #C20F16;
  --c-ink:        #1A1A1A;
  --c-text:       #333333;
  --c-muted:      #6B6B6B;
  --c-faint:      #B5B5B5;
  --c-off-white:  #F5F5F5;
  --c-light:      #EAEAEA;
  --c-white:      #FFFFFF;

  --font-display: "Museo", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-y: clamp(72px, 10vh, 144px);

  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection { background: var(--c-red); color: #fff; }

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

/* ---------------- Layout primitives ---------------- */

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

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-red);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--c-ink);
  margin: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

h3 {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--c-text);
  max-width: 60ch;
  margin: 0;
}

/* ---------------- Top nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.nav__logo {
  height: 28px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  color: rgba(245, 245, 245, 0.78);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 220ms var(--ease-out-quart);
}

.nav__link:hover { color: #fff; }

.nav__cta {
  background: var(--c-red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background 220ms var(--ease-out-quart), transform 220ms var(--ease-out-quart);
}

.nav__cta:hover {
  background: var(--c-red-deep);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav__links .nav__link:not(.nav__cta) { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 4px;
  transition: background 220ms var(--ease-out-quart),
              color 220ms var(--ease-out-quart),
              border-color 220ms var(--ease-out-quart),
              transform 220ms var(--ease-out-quart);
  cursor: pointer;
}

.btn--primary {
  background: var(--c-red);
  color: #fff;
}
.btn--primary:hover { background: var(--c-red-deep); transform: translateY(-1px); }

.btn--ghost-light {
  background: transparent;
  color: var(--c-off-white);
  border: 1px solid rgba(245, 245, 245, 0.30);
}
.btn--ghost-light:hover { border-color: var(--c-off-white); }

.btn--ghost-dark {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid rgba(26, 26, 26, 0.20);
}
.btn--ghost-dark:hover { border-color: var(--c-ink); }

.btn .arrow { transition: transform 220ms var(--ease-out-quart); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------------- Hero — full-bleed cinematic ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--c-off-white);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.04) saturate(0.92) brightness(0.9);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,26,26,0.35) 0%, rgba(26,26,26,0.55) 55%, rgba(26,26,26,0.92) 100%),
    linear-gradient(90deg, rgba(26,26,26,0.5) 0%, rgba(26,26,26,0.1) 60%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(64px, 9vh, 120px);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.hero__copy { max-width: 52%; }
@media (max-width: 880px) { .hero__copy { max-width: 100%; } }

.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.7);
  margin: 0 0 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero__eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--c-red-bright);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.hero__title .accent {
  color: var(--c-red-bright);
}

.hero__lede {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.88);
  max-width: 54ch;
  margin: 0 0 44px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__caption {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(64px, 9vh, 120px);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(245, 245, 245, 0.65);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__caption::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-red-bright);
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroBob 2.4s var(--ease-out-quart) infinite;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(245,245,245,0.5), transparent);
}

@keyframes heroBob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50%      { transform: translate(-50%, 6px); opacity: 0.85; }
}

@media (max-width: 720px) {
  .hero { min-height: 92vh; }
  .hero__caption { display: none; }
}

/* ---------------- Trusted-by strip ---------------- */

.trusted {
  background: var(--c-ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px var(--gutter);
}

.trusted__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 40px;
}

.trusted__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.5);
  margin-right: 12px;
}

.trusted__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trusted__list li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(245, 245, 245, 0.78);
}

/* ---------------- Section ---------------- */

.section {
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section--quiet { background: var(--c-off-white); }
.section--dark  { background: var(--c-ink); color: var(--c-off-white); }
.section--dark h2 { color: #fff; }

/* Atmospheric background image layer for any section.
   Place as: <div class="section__bg" aria-hidden="true"><img …/></div> */
.section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Tone defaults for atmospheric bg */
.section__bg--quiet img {
  opacity: 0.10;
  filter: grayscale(0.4) contrast(1.05) saturate(0.85);
  mix-blend-mode: multiply;
}

.section__bg--dark img {
  opacity: 0.22;
  filter: grayscale(0.3) contrast(1.1) saturate(0.85);
}

.section__bg--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.55), rgba(26,26,26,0.85));
}

.section__bg--red img {
  opacity: 0.18;
  filter: grayscale(0.6) contrast(1.1);
  mix-blend-mode: multiply;
}

.section > .container,
.section > .questions__inner {
  position: relative;
  z-index: 2;
}

/* ---------------- Who we serve ---------------- */

.serve__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}

.serve__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-light);
  border-top: 1px solid var(--c-light);
  border-bottom: 1px solid var(--c-light);
}

.serve__cell {
  background: var(--c-off-white);
  padding: 36px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

.serve__cell .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-red);
  letter-spacing: 0.1em;
}

.serve__cell h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.serve__cell p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  margin: 0;
}

@media (max-width: 980px) {
  .serve__head { grid-template-columns: 1fr; gap: 32px; }
  .serve__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .serve__grid { grid-template-columns: 1fr; }
}

/* ---------------- Engagement models ---------------- */

.engage__head {
  margin-bottom: 64px;
  max-width: 880px;
}

.engage__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-light);
  border: 1px solid var(--c-light);
}

.engage__col {
  background: var(--c-white);
  padding: 40px 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
  position: relative;
  transition: background 220ms var(--ease-out-quart);
}

.engage__col:hover { background: var(--c-off-white); }

.engage__col .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-red);
  letter-spacing: 0.1em;
}

.engage__col h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

.engage__col .desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  margin: 0;
}

.engage__col ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  border-top: 1px solid var(--c-light);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.engage__col ul li {
  font-size: 14px;
  letter-spacing: 0.005em;
  color: var(--c-text);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.engage__col ul li::before {
  content: "·";
  color: var(--c-red);
  font-weight: 700;
  font-size: 18px;
  line-height: 0;
}

.engage__col .specialty-flag {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--c-red);
  text-transform: uppercase;
}

.engage__note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--c-muted);
  letter-spacing: 0.01em;
}

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

/* ---------------- Photo band (full-bleed thin) ---------------- */

.photoband {
  position: relative;
  width: 100%;
  height: clamp(200px, 28vh, 360px);
  overflow: hidden;
  background: var(--c-ink);
}

.photoband img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: contrast(1.05) saturate(0.95);
}

.photoband::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.0), rgba(26,26,26,0.35));
  pointer-events: none;
}

.photoband__caption {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  color: rgba(245,245,245,0.85);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.photoband__caption::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--c-red-bright);
}

/* ---------------- Featured work ---------------- */

.work__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work__tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--c-ink);
}

.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms var(--ease-out-quart);
}

.work__tile:hover .work__media img { transform: scale(1.03); }

.work__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(164, 6, 12, 0);
  transition: background 360ms var(--ease-out-quart);
}

.work__tile:hover .work__media::after { background: rgba(164, 6, 12, 0.08); }

.work__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work__client {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--c-ink);
  letter-spacing: -0.005em;
}

.work__role {
  font-size: 14px;
  color: var(--c-muted);
  letter-spacing: 0.01em;
}

.work__more {
  margin-top: 48px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 880px) {
  .work__head { grid-template-columns: 1fr; gap: 24px; }
  .work__grid { grid-template-columns: 1fr; }
}

/* ---------------- 3 Questions (dark band) ---------------- */

.questions {
  padding: clamp(96px, 14vh, 160px) var(--gutter);
  background: var(--c-ink);
  color: var(--c-off-white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.questions__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.7fr 2fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.questions__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.55);
  padding-top: 24px;
}

.questions__label::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--c-red);
  margin-bottom: 16px;
}

.questions__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.questions__list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
}

.questions__list li .q {
  color: var(--c-red-bright);
  font-weight: 300;
  margin-right: 16px;
  display: inline-block;
  width: 1.2em;
}

.questions__caption {
  margin-top: 40px;
  font-size: 15px;
  color: rgba(245,245,245,0.65);
  letter-spacing: 0.01em;
}

@media (max-width: 880px) {
  .questions__inner { grid-template-columns: 1fr; gap: 32px; }
  .questions__label { padding-top: 0; }
}

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

.stats {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--c-light);
  padding-top: 40px;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}

.stat__num .plus { color: var(--c-red); font-weight: 700; }

.stat__label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--c-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 880px) {
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .stats__grid { grid-template-columns: 1fr; }
}

/* ---------------- About / philosophy block ---------------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--c-light);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__copy p {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--c-text);
  margin: 0 0 18px;
  max-width: 55ch;
}

.about__copy p:last-child { margin-bottom: 0; }

@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 5 / 4; }
}

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

.contact {
  background: var(--c-red);
  color: #fff;
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.contact h2 {
  color: #fff;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 16px;
  max-width: 16ch;
}

.contact p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 40ch;
  margin: 0;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact .btn--white {
  background: #fff;
  color: var(--c-red);
  align-self: flex-start;
}
.contact .btn--white:hover { background: var(--c-off-white); transform: translateY(-1px); }

.contact__details {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__details a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}

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

.footer {
  background: var(--c-ink);
  color: rgba(245,245,245,0.7);
  padding: 56px var(--gutter) 40px;
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer__brand img { height: 32px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; max-width: 36ch; color: rgba(245,245,245,0.6); margin: 0; }

.footer h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.55);
  margin: 0 0 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer ul a { font-size: 14px; color: rgba(245,245,245,0.78); transition: color 220ms var(--ease-out-quart); }
.footer ul a:hover { color: var(--c-red-bright); }

.footer__base {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245,245,245,0.45);
}

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__base { flex-direction: column; gap: 12px; }
}

/* ---------------- Reveal-on-scroll (progressive enhancement) ---------------- */
/* Default: visible. Only hide when JS marks <html> as js-on. */

html.js-on .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms var(--ease-out-quart), transform 620ms var(--ease-out-quart);
}

html.js-on .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js-on .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   POLISH PASS — frontend-design
   Refined-minimal direction. Cinematic motion. Brand-locked.
   ===================================================================== */

/* ---------- Scroll progress bar (top of viewport) ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: rgba(255,255,255,0.04);
}
.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-red-bright) 100%);
  transition: width 80ms linear;
  will-change: width;
}

/* ---------- Film-grain overlay (hero) ---------- */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Hero entrance (staggered) ---------- */
html.js-on .hero__eyebrow,
html.js-on .hero__title,
html.js-on .hero__lede,
html.js-on .hero__ctas,
html.js-on .hero__scroll {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 820ms var(--ease-out-quart) forwards;
}
html.js-on .hero__eyebrow { animation-delay: 80ms; }
html.js-on .hero__title   { animation-delay: 220ms; }
html.js-on .hero__lede    { animation-delay: 480ms; }
html.js-on .hero__ctas    { animation-delay: 660ms; }
html.js-on .hero__scroll  { animation-delay: 1100ms; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* The .accent in hero title gets a delayed underline reveal */
.hero__title .accent {
  position: relative;
  display: inline-block;
}
.hero__title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 0.08em;
  background: var(--c-red-bright);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 820ms var(--ease-out-quart) 1200ms;
  opacity: 0.55;
}
html.js-on .hero__title.is-in .accent::after,
html.js-on .hero.is-loaded .hero__title .accent::after { transform: scaleX(1); }

/* ---------- Reveal stagger for children ---------- */
html.js-on .reveal[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms var(--ease-out-quart), transform 620ms var(--ease-out-quart);
}
html.js-on .reveal[data-stagger].is-in > * { opacity: 1; transform: translateY(0); }
html.js-on .reveal[data-stagger].is-in > *:nth-child(1) { transition-delay: 60ms; }
html.js-on .reveal[data-stagger].is-in > *:nth-child(2) { transition-delay: 160ms; }
html.js-on .reveal[data-stagger].is-in > *:nth-child(3) { transition-delay: 260ms; }
html.js-on .reveal[data-stagger].is-in > *:nth-child(4) { transition-delay: 360ms; }
html.js-on .reveal[data-stagger].is-in > *:nth-child(5) { transition-delay: 460ms; }
html.js-on .reveal[data-stagger].is-in > *:nth-child(6) { transition-delay: 560ms; }

/* ---------- Parallax (subtle scroll-tied translate) ---------- */
.hero__bg img,
.section__bg img {
  will-change: transform;
  transition: transform 80ms linear;
}
html.js-on [data-parallax] {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

/* ---------- Trusted-by refinement (red dot separators) ---------- */
.trusted__list { gap: 12px 0; align-items: center; }
.trusted__list li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  color: rgba(245,245,245,0.85);
  transition: color 220ms var(--ease-out-quart);
}
.trusted__list li::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--c-red);
  opacity: 0.6;
}
.trusted__list li:last-child::after { display: none; }
.trusted__list li:hover { color: #fff; }

/* ---------- Section eyebrows: confident numeric prefix ---------- */
[data-snum]::before {
  content: attr(data-snum);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--c-red);
  margin-right: 14px;
  vertical-align: 0.1em;
}

/* ---------- Hero CTAs — magnetic + refined ---------- */
.btn {
  will-change: transform;
  transition: background 320ms var(--ease-out-quart),
              color 320ms var(--ease-out-quart),
              border-color 320ms var(--ease-out-quart),
              transform 320ms var(--ease-out-quart),
              box-shadow 320ms var(--ease-out-quart);
}
.btn--primary { box-shadow: 0 8px 24px -10px rgba(164,6,12,0.6); }
.btn--primary:hover { box-shadow: 0 12px 32px -8px rgba(164,6,12,0.7); }
html.js-on .btn--magnetic { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }

/* ---------- Work tiles polish ---------- */
.work__tile { transition: transform 620ms var(--ease-out-quart); }
.work__tile:hover { transform: translateY(-6px); }
.work__media { box-shadow: 0 12px 36px -16px rgba(0,0,0,0.35); transition: box-shadow 620ms var(--ease-out-quart); }
.work__tile:hover .work__media { box-shadow: 0 24px 48px -16px rgba(0,0,0,0.45); }
.work__tile:hover .work__media img { transform: scale(1.05); filter: contrast(1.04); }
.work__client { transition: color 320ms var(--ease-out-quart); }
.work__tile:hover .work__client { color: var(--c-red); }

/* ---------- Engagement column refinement ---------- */
.engage__col {
  transition: background 320ms var(--ease-out-quart), transform 620ms var(--ease-out-quart);
  border-top: 2px solid transparent;
  margin-top: -2px;
}
.engage__col:hover { transform: translateY(-4px); border-top-color: var(--c-red); }

/* ---------- Serve cells refinement ---------- */
.serve__cell {
  transition: background 320ms var(--ease-out-quart), transform 620ms var(--ease-out-quart);
  border-top: 2px solid transparent;
  margin-top: -2px;
}
.serve__cell:hover { background: #FAFAFA; transform: translateY(-3px); border-top-color: var(--c-red); }

/* ---------- Questions refinement: red ampersand bullets, glow on hover ---------- */
.questions__list li {
  transition: color 320ms var(--ease-out-quart), transform 620ms var(--ease-out-quart);
}
.questions__list li:hover { color: #fff; transform: translateX(8px); }
.questions__list li:hover .q { color: var(--c-red); }

/* ---------- Stats: tighten + add subtle hover ---------- */
.stat__num { transition: transform 620ms var(--ease-out-quart); display: inline-block; }
.stats__grid > div:hover .stat__num { transform: translateY(-2px); }

/* ---------- Nav: hairline reveal on scroll ---------- */
.nav {
  transition: background 320ms var(--ease-out-quart), border-color 320ms var(--ease-out-quart);
}
.nav.is-scrolled {
  background: rgba(26,26,26,0.96);
  border-bottom-color: rgba(255,255,255,0.1);
}

/* ---------- Photoband — slight scroll-tied scale and parallax ---------- */
.photoband { isolation: isolate; }
.photoband img { transition: transform 1.2s var(--ease-out-quart); }

/* ---------- Subtle hairline accent under section headings ---------- */
.section h2 { position: relative; }

/* ---------- Section breathing room ---------- */
.section { padding-block: clamp(96px, 12vh, 168px); }

/* ---------- Focus visibility refined ---------- */
:focus-visible {
  outline: 2px solid var(--c-red-bright);
  outline-offset: 4px;
  border-radius: 3px;
}

/* ---------- Reduce motion fallback ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js-on .hero__eyebrow,
  html.js-on .hero__title,
  html.js-on .hero__lede,
  html.js-on .hero__ctas,
  html.js-on .hero__scroll,
  html.js-on .reveal[data-stagger] > * { opacity: 1; transform: none; animation: none; transition: none; }
  html.js-on [data-parallax] { transform: none; }
  .scroll-progress::after { transition: none; }
}
