/* Inount Creative — Editorial Monochrome */

:root {
  --brand-bg: #fafafa;
  --brand-fg: #18181b;
  --brand-accent: #e11d48;
  --border: rgba(24, 24, 27, 0.1);
  --border-soft: rgba(24, 24, 27, 0.05);
  --muted: rgba(24, 24, 27, 0.6);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--brand-bg);
  color: var(--brand-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background: var(--brand-fg);
  color: var(--brand-bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem;
  mix-blend-mode: difference;
  color: var(--brand-bg);
}
@media (min-width: 1024px) {
  .nav {
    padding: 1.5rem 3rem;
  }
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.nav__links {
  display: none;
  gap: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}
.nav__links a:hover {
  opacity: 0.6;
}
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
@media (min-width: 768px) {
  .nav__burger {
    display: none;
  }
}
.nav__burger span {
  height: 1px;
  background: currentColor;
  display: block;
}

/* Mobile nav overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--brand-fg);
  color: var(--brand-bg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.nav__mobile.is-open {
  display: flex;
}
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- LAYOUT ---------- */
.section {
  padding: 5rem 1.5rem;
}
@media (min-width: 1024px) {
  .section {
    padding: 6rem 3rem;
  }
}
.container {
  max-width: 1536px;
  margin: 0 auto;
}

/* ---------- HERO ---------- */
.hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.88;
  font-size: clamp(3rem, 13vw, 11rem);
  text-wrap: balance;
  margin-bottom: 3rem;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
}
.hero__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
}
@media (min-width: 1024px) {
  .hero__row {
    grid-template-columns: 4fr 8fr;
  }
}
.hero__lede {
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 48ch;
  text-wrap: pretty;
}
.hero__cta-wrap {
  display: flex;
  justify-content: flex-start;
}
@media (min-width: 1024px) {
  .hero__cta-wrap {
    justify-content: flex-end;
  }
}

/* ---------- PILL BUTTON ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  background: var(--brand-fg);
  color: var(--brand-bg);
  border-radius: 999px;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  box-shadow: inset 0 0 0 1px var(--brand-fg);
  transition: background 0.25s ease, color 0.25s ease;
}
.pill:hover {
  background: transparent;
  color: var(--brand-fg);
}
.pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--brand-bg);
  color: var(--brand-fg);
  border-radius: 999px;
  margin-right: 0.5rem;
}
.pill__icon svg {
  width: 1rem;
  height: 1rem;
}
.pill__label {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding-right: 0.5rem;
}

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  padding: 3rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 6rem);
  text-transform: uppercase;
  padding: 0 2rem;
  white-space: nowrap;
}
.marquee__item--outline {
  -webkit-text-stroke: 1px var(--brand-fg);
  color: transparent;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- SERVICES GRID ---------- */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}
@media (min-width: 768px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* ---------- CASE STUDY ---------- */
.case {
  padding: 0 1.5rem 6rem;
}
@media (min-width: 1024px) { .case { padding: 0 3rem 8rem; } }
.case__inner {
  max-width: 1536px;
  margin: 0 auto;
}
.case__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: min(0.8vw, 12px);
  margin-bottom: 4rem;
}
.case__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 4rem;
}
@media (min-width: 1024px) {
  .case__grid { grid-template-columns: 3fr 9fr; }
}
.case__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.5;
  margin-bottom: 0.75rem;
  display: block;
}
.case__block + .case__block { margin-top: 3rem; }
.case__h {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.case__p {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 68ch;
  opacity: 0.82;
  text-wrap: pretty;
}
.case__p + .case__p { margin-top: 1rem; }
.case__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 2rem 0;
}
@media (min-width: 768px) {
  .case__stats { grid-template-columns: repeat(4, 1fr); }
}
.case__stat {
  background: var(--brand-bg);
  padding: 1.75rem;
}
.case__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand-accent);
}
.case__stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.6;
}
.case__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .case__list { grid-template-columns: repeat(2, 1fr); } }
.case__list li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.95rem;
}
.case__list li::before {
  content: counter(li, decimal-leading-zero);
  counter-increment: li;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--brand-accent);
}
.case__list { counter-reset: li; }
.case__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}
.case__cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 1rem 1.5rem;
  border: 1px solid var(--brand-fg);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.case__cta a:first-child {
  background: var(--brand-fg);
  color: var(--brand-bg);
}
.case__cta a:first-child:hover { background: transparent; color: var(--brand-fg); }
.case__cta a:last-child:hover { background: var(--brand-fg); color: var(--brand-bg); }

.case__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.6;
}
.case__back:hover { opacity: 1; }
.service {
  padding: 2.5rem;
  border: 1px solid var(--border);
  background: var(--brand-bg);
}
.service__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--brand-accent);
  margin-bottom: 2rem;
}
.service__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.service__body {
  font-size: 0.95rem;
  max-width: 35ch;
  opacity: 0.8;
  text-wrap: pretty;
}

/* ---------- VISION SURFACE ---------- */
.vision {
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .vision {
    padding: 0 3rem;
  }
}
.vision__img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: min(1vw, 12px);
  outline: 1px solid var(--border-soft);
  outline-offset: -1px;
  margin-bottom: 6rem;
}

/* ---------- LABS ---------- */
.labs {
  background: var(--brand-fg);
  color: var(--brand-bg);
}
.labs__header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .labs__header {
    flex-direction: row;
    align-items: flex-end;
  }
}
.labs__eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.5;
  margin-bottom: 1rem;
}
.labs__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.labs__sub {
  font-size: 1rem;
  opacity: 0.7;
  max-width: 40ch;
}
.lab-card {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid rgba(250, 250, 250, 0.1);
  transition: background 0.25s ease;
  cursor: pointer;
}
.lab-card:hover {
  background: rgba(250, 250, 250, 0.05);
}
@media (min-width: 768px) {
  .lab-card {
    flex-direction: row;
  }
}
.lab-card__media,
.lab-card__body {
  width: 100%;
}
@media (min-width: 768px) {
  .lab-card__media,
  .lab-card__body { width: 50%; }
}
.lab-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  outline: 1px solid rgba(255,255,255,0.05);
  outline-offset: -1px;
}
.lab-card__tag {
  display: block;
  color: var(--brand-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}
.lab-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2rem);
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.lab-card__copy {
  font-size: 0.95rem;
  max-width: 40ch;
  opacity: 0.7;
  line-height: 1.6;
  text-wrap: pretty;
  margin-bottom: 1.5rem;
}
.lab-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: gap 0.25s ease;
}
.lab-card:hover .lab-card__more {
  gap: 1rem;
}

/* ---------- CONTACT ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 2rem;
}
.contact__title em {
  color: var(--brand-accent);
  font-style: italic;
}
.contact__copy {
  font-size: 1rem;
  max-width: 40ch;
  margin-bottom: 3rem;
}
.contact__list {
  list-style: none;
}
.contact__list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact__list-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.4;
}
.contact__list-value { font-size: 1.125rem; }

.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  font-family: inherit;
  font-size: 1.125rem;
  color: inherit;
  resize: none;
  transition: border-color 0.25s ease;
}
.form__input:focus {
  outline: none;
  border-color: var(--brand-fg);
}
.form__input::placeholder { color: var(--muted); }
.form__submit {
  width: 100%;
  padding: 1.5rem;
  background: var(--brand-fg);
  color: var(--brand-bg);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  box-shadow: 0 0 0 1px var(--brand-fg), 0 0 0 3px var(--brand-bg);
  transition: background 0.25s ease;
}
.form__submit:hover { background: #27272a; }

/* ---------- FOOTER ---------- */
.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border-soft);
}
@media (min-width: 1024px) {
  .footer {
    padding: 3rem 3rem;
  }
}
.footer__inner {
  max-width: 1536px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; }
}
.footer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer__col {
    align-items: flex-start;
  }
}
.footer__logo {
  display: flex;
  align-items: center;
}
.footer__logo img {
  display: block;
}
.footer__meta {
  display: flex;
  gap: 2rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.5;
}
.footer__socials { display: flex; gap: 1rem; }
.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow 0.25s ease;
}
.footer__social:hover {
  box-shadow: inset 0 0 0 1px var(--brand-fg);
}
.footer__social svg { width: 1rem; height: 1rem; fill: currentColor; }

/* ---------- SECTION HEADER (Labs page) ---------- */
.page-header {
  padding: 9rem 1.5rem 4rem;
}
@media (min-width: 1024px) {
  .page-header { padding: 10rem 3rem 5rem; }
}
.page-header__eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-accent);
  margin-bottom: 1.5rem;
}
.page-header__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.page-header__copy {
  margin-top: 2rem;
  max-width: 60ch;
  font-size: 1.125rem;
  line-height: 1.55;
  opacity: 0.75;
}

/* ---------- PROJECT (Labs detail) ---------- */
.project {
  padding: 4rem 1.5rem 6rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .project { padding: 5rem 3rem 8rem; }
}
.project__grid {
  max-width: 1536px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .project__grid {
    grid-template-columns: 4fr 8fr;
  }
}
.project__meta { display: flex; flex-direction: column; gap: 1.5rem; }
.project__index {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.22em;
  opacity: 0.5;
}
.project__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project__tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.project__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
  border-radius: min(0.8vw, 10px);
  margin-bottom: 2rem;
}
.project__desc {
  font-size: 1.0625rem;
  max-width: 65ch;
  opacity: 0.8;
  line-height: 1.65;
  text-wrap: pretty;
}

/* upcoming */
.upcoming {
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .upcoming { padding: 8rem 3rem; }
}
.upcoming__inner {
  max-width: 1536px;
  margin: 0 auto;
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .upcoming__inner { grid-template-columns: repeat(2, 1fr); }
}
.upcoming__cell {
  padding: 3rem;
  border: 1px dashed var(--border);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.4;
}
