/* ============================================================
   Mad Connected, LLC — site styles
   Design tokens live in :root. Change colors/fonts here.
   ============================================================ */

:root {
  --cream:        #f5eee6;   /* main background */
  --cream-deep:   #f0e6da;   /* tinted statement sections */
  --cream-card:   #f8f2ea;   /* cards on tinted panels */
  --ink:          #221d1a;   /* near-black text */
  --ink-soft:     #4c443f;   /* body text */
  --maroon:       #7d2440;   /* buttons, accents */
  --maroon-bright:#8e2c44;   /* eyebrow text, dots */
  --orange:       #c78657;   /* warm motion and highlight accent */
  --champagne:    #d8bf86;   /* premium gold light effects */
  --champagne-pale:#f4e7c6;  /* pale metallic highlight */
  --line:         #cbb9a6;   /* hairline rules */

  --serif: "Playfair Display", "Georgia", serif;
  --sans:  "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

section { scroll-margin-top: 90px; }

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.container.narrow { width: min(760px, 92vw); }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--maroon-bright);
  margin-bottom: 1.1rem;
}

.eyebrow.underlined { padding-bottom: 0.7rem; position: relative; }
.eyebrow.underlined::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 3.2em; height: 1px; background: var(--maroon);
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  color: var(--ink);
}

.display em { font-style: italic; font-weight: 400; }

.dot { color: var(--maroon-bright); }

.center { text-align: center; }
.center.eyebrow::after { left: 50%; transform: translateX(-50%); }

.section-sub {
  margin-top: 1.2rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.rule {
  display: block;
  width: 56px; height: 2px;
  background: var(--maroon);
  margin: 1.6rem 0;
}
.rule-center { margin-inline: auto; }
.rule.small { width: 34px; height: 1px; margin: 0.9rem auto; }

.thin-rule {
  border: none; border-top: 1px solid var(--maroon);
  opacity: 0.55; margin: 2.2rem auto 2.6rem; width: 100%;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 2.2em;
  border: 1px solid var(--maroon);
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -35% auto -35% -55%;
  width: 38%;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, #ffffff 42%, transparent),
    color-mix(in srgb, var(--orange) 24%, transparent),
    transparent
  );
}

.btn-solid { background: var(--maroon); color: #f7efe7; }
.btn-solid:hover {
  background: #641d34;
  border-color: #641d34;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--maroon) 24%, transparent);
}

.btn-outline { background: transparent; color: var(--maroon); }
.btn-outline:hover {
  background: var(--maroon);
  color: #f7efe7;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--maroon) 20%, transparent);
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
}

.header-inner {
  width: min(1240px, 94vw);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 62px; width: auto;
  transform-origin: center;
}

.main-nav { display: flex; align-items: center; gap: 2.1rem; }

.main-nav a:not(.btn) {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.main-nav a:not(.btn):hover { color: var(--maroon-bright); }

.nav-cta { margin-left: 0.6rem; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 34px;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span {
  display: block; height: 2px; width: 26px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- hero ---------- */

.hero { padding-block: 4.5rem 5.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1.1;
  color: var(--ink);
}

.hero h1 .hero-line {
  display: inline-block;
}

.hero h1 em { font-weight: 400; }

.hero h1 .hero-purpose {
  color: var(--maroon);
  font-size: 0.74em;
  letter-spacing: -0.02em;
}

.hero h1 .hero-connect {
  position: relative;
  display: inline-block;
  color: var(--maroon-bright);
}

.hero h1 .hero-connect::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 0.06em;
  opacity: 0.7;
  transform: scaleX(0.38);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--maroon), var(--orange));
}

.hero .lede {
  max-width: 36em;
  margin-bottom: 1.8rem;
}

.hero-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.hero-media::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: clamp(8px, 1vw, 14px);
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--champagne) 68%, transparent);
  box-shadow:
    inset 0 0 34px color-mix(in srgb, var(--champagne-pale) 12%, transparent),
    0 0 0 1px color-mix(in srgb, #ffffff 20%, transparent);
}

.hero-media::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -35% -70%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-42%, 0, 0) rotate(12deg);
  background: linear-gradient(
    105deg,
    transparent 43%,
    color-mix(in srgb, var(--champagne) 16%, transparent) 47%,
    color-mix(in srgb, #ffffff 42%, transparent) 50%,
    color-mix(in srgb, var(--champagne-pale) 22%, transparent) 53%,
    transparent 57%
  );
  mix-blend-mode: screen;
}

/* ---------- statement panels ---------- */

.statement {
  position: relative;
  text-align: center;
  padding-block: 6.5rem;
  overflow: hidden;
}

.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 50%, color-mix(in srgb, var(--maroon) 7%, transparent), transparent 28%),
    radial-gradient(circle at 92% 50%, color-mix(in srgb, var(--orange) 9%, transparent), transparent 28%);
}

.statement::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -55% -70%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-34%, 0, 0) rotate(-5deg);
  background:
    linear-gradient(
      112deg,
      transparent 43%,
      color-mix(in srgb, var(--orange) 18%, transparent) 47%,
      color-mix(in srgb, #ffffff 38%, transparent) 49.5%,
      color-mix(in srgb, var(--orange) 24%, transparent) 52%,
      transparent 56%
    ),
    linear-gradient(
      118deg,
      transparent 58%,
      color-mix(in srgb, var(--maroon) 12%, transparent) 60%,
      color-mix(in srgb, var(--orange) 16%, transparent) 61%,
      transparent 63%
    );
  filter: blur(1px);
}

.statement.tinted {
  background:
    radial-gradient(ellipse at 20% 15%, color-mix(in srgb, #ffffff 45%, transparent), transparent 55%),
    var(--cream-deep);
}

.statement .container {
  position: relative;
  z-index: 1;
  width: min(980px, 92vw);
  padding: clamp(2.8rem, 5vw, 4.2rem) clamp(1.5rem, 6vw, 5rem);
  border: 1px solid color-mix(in srgb, var(--maroon) 28%, transparent);
  background:
    linear-gradient(
      112deg,
      transparent 37%,
      color-mix(in srgb, var(--orange) 8%, transparent) 47%,
      color-mix(in srgb, #ffffff 24%, transparent) 50%,
      color-mix(in srgb, var(--orange) 10%, transparent) 53%,
      transparent 63%
    ),
    linear-gradient(135deg,
      color-mix(in srgb, #ffffff 52%, transparent),
      color-mix(in srgb, var(--cream-card) 72%, transparent));
  background-position: -180% 0, 0 0;
  background-size: 220% 100%, 100% 100%;
  background-repeat: no-repeat;
  box-shadow:
    0 24px 60px color-mix(in srgb, var(--maroon) 10%, transparent),
    inset 0 0 0 5px color-mix(in srgb, #ffffff 28%, transparent);
}

.statement .container::before,
.statement .container::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  pointer-events: none;
}

.statement .container::before {
  top: 12px;
  left: 12px;
  border-top: 3px solid var(--maroon);
  border-left: 3px solid var(--maroon);
}

.statement .container::after {
  right: 12px;
  bottom: 12px;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
}

.statement .display {
  font-size: clamp(2.3rem, 5vw, 4rem);
  text-shadow: 0 12px 32px color-mix(in srgb, var(--maroon) 10%, transparent);
}

.statement .rule-center { margin-top: 2.2rem; }

/* ---------- services ---------- */

.services {
  background: var(--cream-deep);
  padding-block: 5.5rem;
}

.service-grid {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.service-card {
  background: var(--cream-card);
  padding: 2rem 1.1rem;
  text-align: center;
}

.service-icon svg {
  width: 44px; height: 44px;
  margin-inline: auto;
  display: block;
  fill: none;
  stroke: var(--maroon);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.5;
}

.service-card p { font-size: 0.82rem; line-height: 1.65; }

.services-footer {
  width: min(900px, 100%);
  margin: 3rem auto 0;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2.7rem;
  align-items: center;
  text-align: center;
}

.pull-quote {
  width: min(760px, 100%);
  text-align: center;
}

.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.pull-quote cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon-bright);
}

.pull-quote cite::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  margin-right: 0.7rem;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--maroon), var(--orange));
}

.services-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.05rem;
  text-align: center;
}

.logo-mark {
  height: 64px;
  width: auto;
}

.services-cta .logo-mark { height: 104px; }

.services-cta-copy .eyebrow { margin-bottom: 0.3rem; line-height: 1.7; }
.services-cta-copy p { font-size: 0.92rem; }

/* ---------- portfolio ---------- */

.portfolio { padding-block: 5.5rem; }

.work-grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.6rem;
}

.work-item {
  padding-top: 0;
}

.work-thumb {
  aspect-ratio: 5 / 2.2;
  position: relative;
  background: var(--maroon);
  border: 2px solid var(--maroon);
  padding: 5px;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--maroon) 24%, transparent);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.work-thumb img {
  width: 100%; height: 100%;
  position: relative;
  z-index: 1;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.03);
}

.work-thumb::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgb(125 36 64 / 18%),
      transparent 46%,
      rgb(199 134 87 / 15%)
    );
  mix-blend-mode: color;
}

.work-thumb-logo img {
  object-fit: contain;
}

.work-thumb-dark img {
  background: #050505;
}

.work-thumb-light img {
  background: #ffffff;
}

.work-thumb-donell img {
  object-position: center 46%;
}

.work-thumb-rodney img {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(90deg, #292929, #555555 52%, #303030);
}

.work-thumb-case img {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(90deg, #f3f3f3, #ffffff 52%, #f1f1f1);
}

@media (hover: hover) and (pointer: fine) {
  .work-item:hover .work-thumb {
    transform: translate3d(-2px, -2px, 0);
    box-shadow: 11px 11px 0 color-mix(in srgb, var(--maroon) 28%, transparent);
  }
}

.work-item h3 {
  margin-top: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
}

.work-tags {
  margin-top: 0.7rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- about ---------- */

.about {
  background: var(--cream-deep);
  padding-block: 5.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 4rem;
  align-items: center;
}

.about-media img { width: 100%; height: auto; border-radius: 6px; }

.about-copy p + p { margin-top: 1.1rem; }

.about-copy .display { margin-bottom: 1.4rem; }

.about-copy > p:not(.eyebrow):not(.about-keyword) {
  font-size: 0.96rem;
  line-height: 1.72;
}

.about-keyword {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  letter-spacing: 0.015em;
  color: var(--maroon-bright);
  margin-top: 1.3rem !important;
}

.stats {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 1.6rem;
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.stat-words {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.3;
}

.stat-label {
  margin-top: 0.7rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon-bright);
}

/* ---------- clients ---------- */

.clients { padding-block: 5.5rem; }

.client-columns {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.client-columns ul {
  list-style: none;
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

.client-columns ul:first-child { border-left: none; padding-left: 0; }

.client-columns li {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  padding-block: 0.35rem;
}

.client-columns a {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.client-columns a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.14em;
  left: 0;
  height: 1px;
  opacity: 0.75;
  transform: scaleX(0);
  transform-origin: right center;
  background: linear-gradient(90deg, var(--maroon), var(--champagne));
  transition: transform 0.3s ease;
}

.client-columns a:hover,
.client-columns a:focus-visible {
  color: var(--maroon);
  transform: translateX(3px);
}

.client-columns a:hover::after,
.client-columns a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.client-columns a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--champagne) 75%, var(--maroon));
  outline-offset: 4px;
}

.clients-more {
  margin-top: 2.5rem;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--maroon-bright);
}

/* ---------- collage ---------- */

.collage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream-deep);
}

.collage > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.collage-spotlights {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.collage-spotlight {
  --spotlight-size: 23%;
  position: absolute;
  left: var(--spotlight-x);
  top: var(--spotlight-y);
  width: var(--spotlight-size);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(
      circle at 45% 40%,
      rgb(255 255 255 / 52%) 0%,
      rgb(255 255 255 / 34%) 30%,
      rgb(255 255 255 / 14%) 58%,
      transparent 78%
    );
  box-shadow: 0 0 clamp(18px, 3.5vw, 58px) rgb(255 255 255 / 16%);
  filter: blur(0.35px);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(0.72);
  transform-origin: center;
}

.collage-spotlight::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: inherit;
  background: radial-gradient(
    circle at center,
    rgb(255 255 255 / 20%),
    transparent 68%
  );
  box-shadow: inset 0 0 clamp(14px, 2vw, 34px) rgb(255 255 255 / 12%);
}

.collage-spotlight-1 {
  --spotlight-delay: 0s;
  --spotlight-x: 12%;
  --spotlight-y: 14%;
  --spotlight-size: 22%;
}

.collage-spotlight-2 {
  --spotlight-delay: 2.2s;
  --spotlight-x: 37%;
  --spotlight-y: 14%;
  --spotlight-size: 22%;
}

.collage-spotlight-3 {
  --spotlight-delay: 4.4s;
  --spotlight-x: 64%;
  --spotlight-y: 14%;
  --spotlight-size: 23%;
}

.collage-spotlight-4 {
  --spotlight-delay: 6.6s;
  --spotlight-x: 89%;
  --spotlight-y: 15%;
  --spotlight-size: 21%;
}

.collage-spotlight-5 {
  --spotlight-delay: 8.8s;
  --spotlight-x: 14%;
  --spotlight-y: 48%;
  --spotlight-size: 26%;
}

.collage-spotlight-6 {
  --spotlight-delay: 11s;
  --spotlight-x: 86%;
  --spotlight-y: 45%;
  --spotlight-size: 25%;
}

.collage-spotlight-7 {
  --spotlight-delay: 13.2s;
  --spotlight-x: 16%;
  --spotlight-y: 82%;
  --spotlight-size: 27%;
}

.collage-spotlight-8 {
  --spotlight-delay: 15.4s;
  --spotlight-x: 50%;
  --spotlight-y: 87%;
  --spotlight-size: 23%;
}

.collage-spotlight-9 {
  --spotlight-delay: 17.6s;
  --spotlight-x: 84%;
  --spotlight-y: 81%;
  --spotlight-size: 26%;
}

.collage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: clamp(4px, 0.55vw, 9px) solid
    color-mix(in srgb, #ffffff 34%, transparent);
  box-shadow:
    inset 0 0 70px rgb(255 255 255 / 7%),
    inset 0 0 0 1px rgb(255 255 255 / 26%);
}

@media (prefers-reduced-motion: no-preference) {
  .collage.is-spotlight-active .collage-spotlight,
  .collage:has(> img.is-visible) .collage-spotlight {
    animation: collage-spotlight 19.8s ease-in-out var(--spotlight-delay) infinite;
  }
}

@keyframes collage-spotlight {
  0%,
  2% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  3.5%,
  8.5% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1);
  }

  11%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* ---------- collaborate ---------- */

.collaborate {
  background: var(--cream-deep);
  padding-block: 5.5rem;
}

.collab-grid {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.collab-col {
  text-align: center;
  padding-inline: 2.4rem;
  border-left: 1px solid var(--line);
}

.collab-col:first-child { border-left: none; }

.collab-num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--maroon-bright);
  margin-bottom: 1.2rem;
}

.collab-col h3 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.25;
}

.collab-tags {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon-bright);
  line-height: 2;
  margin-bottom: 1.1rem;
}

.collab-col > p:last-child { font-size: 0.92rem; }

/* ---------- contact ---------- */

.contact { padding-block: 5.5rem 6rem; }

.center-block { margin-inline: auto; margin-bottom: 1.6rem; height: 74px; width: auto; }

#contact-form { text-align: left; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.field { margin-bottom: 1.4rem; }

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.req { color: var(--maroon-bright); }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-soft);
  padding: 0.45em 0.1em;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--maroon);
}

.form-actions {
  margin-top: 1rem;
  display: flex; gap: 1.2rem; align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.form-status {
  margin-top: 1.4rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--maroon-bright);
}

.form-status.is-error {
  color: #9b1c1c;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  text-align: center;
}

.footer-logo {
  height: 94px; width: auto;
  margin-inline: auto;
  transform-origin: center;
}

.social {
  margin-top: 1.4rem;
  display: flex; gap: 1.3rem; justify-content: center;
}

.social svg {
  width: 22px; height: 22px;
  fill: var(--ink);
  transition: fill 0.2s ease;
}

.social a:hover svg { fill: var(--maroon-bright); }

.footer-contact { margin-top: 1.2rem; }

.footer-contact a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.footer-contact a:hover { color: var(--maroon-bright); }

.footer-legal {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---------- background music ---------- */

.music-toggle {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--maroon) 42%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--maroon) 13%, transparent);
  color: var(--maroon);
  font: 600 0.64rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--maroon);
  box-shadow: 0 13px 34px color-mix(in srgb, var(--maroon) 19%, transparent);
}

.music-toggle:focus-visible {
  outline: 2px solid var(--maroon-bright);
  outline-offset: 3px;
}

.music-toggle.is-playing {
  border-color: color-mix(in srgb, var(--maroon-bright) 70%, transparent);
  box-shadow:
    0 10px 30px color-mix(in srgb, var(--maroon) 17%, transparent),
    0 0 18px color-mix(in srgb, var(--orange) 20%, transparent);
}

.music-equalizer {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 15px;
  height: 14px;
}

.music-equalizer span {
  width: 3px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--maroon), var(--orange));
  transform-origin: center bottom;
}

@media (prefers-reduced-motion: no-preference) {
  .music-toggle.is-playing .music-equalizer span {
    animation: music-bar 0.9s ease-in-out infinite alternate;
  }

  .music-toggle.is-playing .music-equalizer span:nth-child(2) {
    animation-delay: -0.45s;
    animation-duration: 0.72s;
  }

  .music-toggle.is-playing .music-equalizer span:nth-child(3) {
    animation-delay: -0.2s;
    animation-duration: 1.05s;
  }
}

@keyframes music-bar {
  0% { transform: scaleY(0.65); }
  100% { transform: scaleY(2.35); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .services-cta { justify-content: center; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 2rem; }
}

@media (max-width: 820px) {
  .brand img { height: 58px; }

  .main-nav {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
    padding-block: 0.6rem 1.2rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 0.8rem 0; }
  .nav-cta { margin: 0.8rem 0 0; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { padding-block: 3rem 3.5rem; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media { max-width: 440px; }
  .statement { padding-block: 4.5rem; }
  .statement .container {
    width: min(92vw, 680px);
    padding: 3rem clamp(1.6rem, 7vw, 3.2rem);
  }
  .statement .container::before,
  .statement .container::after {
    width: 46px;
    height: 46px;
  }
  .services-cta .logo-mark { height: 92px; }
  .footer-logo { height: 86px; }

  .collab-grid { grid-template-columns: 1fr; gap: 3rem; }
  .collab-col { border-left: none; padding-inline: 0; }

  .client-columns { grid-template-columns: 1fr; gap: 0; }
  .client-columns ul { border-left: none; padding-left: 0; }
  .clients-more { text-align: center; }
}

/* Responsive scroll motion is enabled by JavaScript only when appropriate. */
@media (prefers-reduced-motion: no-preference) {
  .hero-media.is-visible::after {
    animation: hero-collage-glint 9.5s cubic-bezier(0.4, 0, 0.2, 1) 0.9s infinite;
  }

  @keyframes hero-collage-glint {
    0%,
    12% {
      opacity: 0;
      transform: translate3d(-42%, 0, 0) rotate(12deg);
    }

    20% {
      opacity: 0.78;
    }

    34% {
      opacity: 0;
      transform: translate3d(42%, 0, 0) rotate(12deg);
    }

    100% {
      opacity: 0;
      transform: translate3d(42%, 0, 0) rotate(12deg);
    }
  }

  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1 .hero-purpose {
      color: transparent;
      background: linear-gradient(
        105deg,
        var(--maroon) 12%,
        var(--orange) 42%,
        var(--maroon-bright) 68%,
        var(--maroon) 88%
      );
      background-size: 220% auto;
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: hero-purpose-color 6.8s ease-in-out infinite;
    }
  }

  .hero h1 .hero-connect {
    animation: hero-connect-glow 4.8s ease-in-out infinite;
  }

  .hero h1 .hero-connect::after {
    animation: hero-connect-line 4.8s ease-in-out infinite;
  }

  @keyframes hero-purpose-color {
    0%, 100% { background-position: 100% center; }
    50% { background-position: 0% center; }
  }

  @keyframes hero-connect-glow {
    0%, 100% {
      text-shadow: 0 0 0 color-mix(in srgb, var(--orange) 0%, transparent);
    }
    50% {
      text-shadow: 0 10px 24px color-mix(in srgb, var(--orange) 22%, transparent);
    }
  }

  @keyframes hero-connect-line {
    0%, 100% {
      opacity: 0.42;
      transform: scaleX(0.38);
    }
    50% {
      opacity: 0.92;
      transform: scaleX(1);
    }
  }

  .statement::before {
    animation: statement-ambient-glow 9s ease-in-out infinite alternate;
  }

  .statement::after {
    animation: statement-light-zap 6.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-play-state: paused;
  }

  .statement .container {
    animation: statement-panel-glint 6.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-play-state: paused;
  }

  .statement.is-motion-active::after,
  .statement.is-motion-active .container {
    animation-play-state: running;
  }

  .btn {
    --button-delay: 0s;
    animation: button-invitation 5.8s var(--button-delay) ease-in-out infinite;
  }

  .btn::after {
    animation: button-sheen 5.8s var(--button-delay) ease-in-out infinite;
  }

  .nav-cta { --button-delay: 0.65s; }
  .hero .btn { --button-delay: 1.8s; }
  .services .btn { --button-delay: 3s; }
  .contact .btn { --button-delay: 4.15s; }

  @keyframes statement-ambient-glow {
    0% {
      opacity: 0.55;
      transform: translate3d(-1.5%, 0, 0) scale(1.02);
    }
    100% {
      opacity: 1;
      transform: translate3d(1.5%, -1%, 0) scale(1.08);
    }
  }

  @keyframes statement-light-zap {
    0%, 8% {
      opacity: 0;
      transform: translate3d(-34%, 0, 0) rotate(-5deg);
    }
    15% {
      opacity: 0.24;
    }
    34% {
      opacity: 0.48;
    }
    58%, 100% {
      opacity: 0;
      transform: translate3d(34%, 0, 0) rotate(-5deg);
    }
  }

  @keyframes statement-panel-glint {
    0%, 8% {
      background-position: -180% 0, 0 0;
    }
    58%, 100% {
      background-position: 180% 0, 0 0;
    }
  }

  @keyframes button-invitation {
    0%, 68%, 100% {
      box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 0%, transparent);
    }
    76% {
      box-shadow:
        0 0 0 4px color-mix(in srgb, var(--orange) 14%, transparent),
        0 10px 28px color-mix(in srgb, var(--maroon) 24%, transparent);
    }
    86% {
      box-shadow:
        0 0 0 8px color-mix(in srgb, var(--orange) 0%, transparent),
        0 6px 18px color-mix(in srgb, var(--maroon) 13%, transparent);
    }
  }

  @keyframes button-sheen {
    0%, 68% {
      left: -55%;
      opacity: 0;
    }
    72% {
      opacity: 0.82;
    }
    88% {
      left: 122%;
      opacity: 0.62;
    }
    92%, 100% {
      left: 122%;
      opacity: 0;
    }
  }

  .brand img {
    animation: logo-breathe 5.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }

  .footer-logo {
    animation: logo-breathe 5.8s 0.7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }

  @keyframes logo-breathe {
    0%, 100% {
      transform: translateY(0) scale(1);
      filter: drop-shadow(0 0 0 transparent);
    }
    50% {
      transform: translateY(-3px) scale(1.035);
      filter: drop-shadow(0 9px 10px color-mix(in srgb, var(--maroon) 18%, transparent));
    }
  }

  .scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 100;
    width: 100%;
    height: 3px;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--maroon), var(--orange));
    box-shadow: 0 0 10px color-mix(in srgb, var(--maroon) 45%, transparent);
    will-change: transform;
  }
}

@media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  .desktop-scroll-effects .scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 38px, 0) scale(0.992);
    transition:
      opacity 0.82s cubic-bezier(0.2, 0.75, 0.25, 1),
      transform 0.82s cubic-bezier(0.2, 0.75, 0.25, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .desktop-scroll-effects .scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .desktop-scroll-effects .service-card.scroll-reveal {
    transform: translate3d(0, 44px, 0) scale(0.965);
  }

  .desktop-scroll-effects .service-card.scroll-reveal.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .desktop-scroll-effects .statement .scroll-reveal {
    transform: translate3d(0, 46px, 0) scale(0.96);
  }

  .desktop-scroll-effects .statement .scroll-reveal.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .desktop-scroll-effects .scroll-reveal.scroll-photo-fade {
    opacity: 0;
    transform: none;
    transition: opacity 1s ease;
    transition-delay: 0ms;
    will-change: opacity;
  }

  .desktop-scroll-effects .scroll-reveal.scroll-photo-fade.is-visible {
    opacity: 1;
    transform: none;
  }

  .desktop-scroll-effects .work-thumb {
    isolation: isolate;
  }

  .desktop-scroll-effects .work-item.scroll-reveal .work-thumb img {
    transform: scale(1.055);
    transition: transform 1.15s cubic-bezier(0.2, 0.75, 0.25, 1);
  }

  .desktop-scroll-effects .work-item.scroll-reveal.is-visible .work-thumb img {
    transform: scale(1);
  }
}

@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .mobile-scroll-effects .scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.985);
    transition:
      opacity 0.72s cubic-bezier(0.2, 0.75, 0.25, 1),
      transform 0.72s cubic-bezier(0.2, 0.75, 0.25, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .mobile-scroll-effects .scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .mobile-scroll-effects .service-card.scroll-reveal {
    transform: translate3d(0, 32px, 0) scale(0.95);
  }

  .mobile-scroll-effects .service-card.scroll-reveal.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .mobile-scroll-effects .statement .scroll-reveal {
    transform: translate3d(0, 34px, 0) scale(0.965);
  }

  .mobile-scroll-effects .statement .scroll-reveal.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .mobile-scroll-effects .scroll-reveal.scroll-photo-fade {
    opacity: 0;
    transform: none;
    transition: opacity 0.85s ease;
    transition-delay: 0ms;
    will-change: opacity;
  }

  .mobile-scroll-effects .scroll-reveal.scroll-photo-fade.is-visible {
    opacity: 1;
    transform: none;
  }

  .mobile-scroll-effects .work-thumb {
    isolation: isolate;
  }

  .mobile-scroll-effects .work-item.scroll-reveal .work-thumb img {
    transform: scale(1.08);
    transition: transform 1.05s cubic-bezier(0.2, 0.75, 0.25, 1);
  }

  .mobile-scroll-effects .work-item.scroll-reveal.is-visible .work-thumb img {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .brand img { height: 56px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .work-thumb {
    border-width: 2px;
    padding: 4px;
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--maroon) 22%, transparent);
  }
  .work-thumb::after { inset: 6px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-logo { height: 84px; }
  .music-toggle {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    min-height: 40px;
    padding: 0.58rem 0.75rem;
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
