:root {
  --ink: #231D19;
  --paper: #F4F1EA;
  --red: #C0392B;
  --muted: #9A9286;
  --line: #3E362E;
  --panel: #2B241F;
  --deep-muted: #6B6259;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sym: cubic-bezier(0.45, 0, 0.55, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "IBM Plex Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--paper);
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

button {
  font: inherit;
}

em {
  color: var(--red);
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#about,
#services,
#process,
#faq,
#showreel,
#contact {
  scroll-margin-top: 70px;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}

.preloader__bg {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 1;
  transition: opacity 1.2s var(--ease-sym);
}

.preloader__square {
  position: absolute;
  width: 72px;
  height: 72px;
  background: var(--paper);
  box-sizing: border-box;
  transform: scale(0);
  opacity: 1;
  transition-property: left, top, width, height, transform, opacity;
  transition-duration: 0.9s;
  transition-timing-function: var(--ease-sym);
}

.preloader__square--1 {
  left: calc(50% - 76px);
  top: calc(50% - 76px);
}

.preloader__square--2 {
  left: calc(50% + 4px);
  top: calc(50% - 76px);
  transition-delay: 0.05s;
}

.preloader__square--3 {
  left: calc(50% - 76px);
  top: calc(50% + 4px);
  transition-delay: 0.1s;
}

.preloader__square--4 {
  left: calc(50% + 4px);
  top: calc(50% + 4px);
  transition-delay: 0.15s;
}

.preloader.is-in .preloader__square,
.preloader.is-fill .preloader__square,
.preloader.is-corners .preloader__square,
.preloader.is-open .preloader__square {
  transform: scale(1);
}

.preloader.is-fill .preloader__square,
.preloader.is-corners .preloader__square,
.preloader.is-open .preloader__square {
  width: calc(50% - 24px);
  height: calc(50% - 24px);
}

.preloader.is-fill .preloader__square--1 {
  left: 12px;
  top: 12px;
}

.preloader.is-fill .preloader__square--2 {
  left: calc(50% + 12px);
  top: 12px;
}

.preloader.is-fill .preloader__square--3 {
  left: 12px;
  top: calc(50% + 12px);
}

.preloader.is-fill .preloader__square--4 {
  left: calc(50% + 12px);
  top: calc(50% + 12px);
}

.preloader.is-corners .preloader__square,
.preloader.is-open .preloader__square {
  width: 50.5%;
  height: 50.5%;
  transition-duration: 1s;
}

.preloader.is-corners .preloader__bg,
.preloader.is-open .preloader__bg {
  opacity: 0;
}

.preloader.is-corners .preloader__square--1,
.preloader.is-open .preloader__square--1 {
  left: -52%;
  top: -52%;
}

.preloader.is-corners .preloader__square--2,
.preloader.is-open .preloader__square--2 {
  left: 102%;
  top: -52%;
}

.preloader.is-corners .preloader__square--3,
.preloader.is-open .preloader__square--3 {
  left: -52%;
  top: 102%;
}

.preloader.is-corners .preloader__square--4,
.preloader.is-open .preloader__square--4 {
  left: 102%;
  top: 102%;
}

.preloader.is-open .preloader__square {
  opacity: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  mix-blend-mode: difference;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 22px 40px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  flex: none;
}

.brand-mark,
.placeholder-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.brand-mark {
  gap: 2px;
  width: 14px;
  height: 14px;
}

.brand-mark--white {
  width: 16px;
  height: 16px;
}

.brand-mark span {
  background: var(--paper);
}

.brand-mark--white span {
  background: #FFFFFF;
}

.brand-word {
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #FFFFFF;
}

.brand-word span {
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.nav-links a {
  color: #FFFFFF;
}

.hero {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px 40px 24px;
  position: relative;
  overflow-x: hidden;
}

.hero__spacer {
  flex: 1;
}

.hero__inner {
  width: min(72vw, 900px);
  margin: 0 auto;
}

.hero-title {
  margin: 0;
  text-align: center;
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(62px, 10.9vw, 205px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.drift {
  will-change: transform;
}

.drift--left {
  display: block;
  transform: translateX(-0.35em);
}

.drift--right {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.35em;
  transform: translateX(0.35em);
}

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

.hero-kicker {
  margin-top: 36px;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--muted);
}

.hero-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.section,
.showreel {
  max-width: 1440px;
  margin: 0 auto;
  padding: 110px 40px;
}

.showreel {
  max-width: 1600px;
  padding: 120px 40px 40px;
  overflow: hidden;
}

.about {
  padding: 130px 40px 110px;
}

.section-center-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-kicker,
.section-rule {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.section-rule {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.section-title {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.about-title {
  margin-top: 56px;
  max-width: 1120px;
}

.services-title {
  margin: 56px 0 64px;
  max-width: 900px;
}

.process-title {
  margin: 56px 0 72px;
}

.underline-red {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
  text-decoration-skip-ink: none;
}

.fan-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  height: 660px;
  position: relative;
}

.fan-card {
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.fan-card--1 {
  width: 285px;
  height: 475px;
  transform: rotate(-7deg) translateY(40px);
  z-index: 1;
}

.fan-card--2 {
  width: 300px;
  height: 515px;
  transform: rotate(-3.5deg) translateY(12px);
  margin-left: -44px;
  z-index: 2;
}

.fan-card--3 {
  width: 325px;
  height: 565px;
  transform: translateY(-10px);
  margin-left: -44px;
  z-index: 3;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55);
}

.fan-card--4 {
  width: 300px;
  height: 515px;
  transform: rotate(3.5deg) translateY(12px);
  margin-left: -44px;
  z-index: 2;
}

.fan-card--5 {
  width: 285px;
  height: 475px;
  transform: rotate(7deg) translateY(40px);
  margin-left: -44px;
  z-index: 1;
}

.carousel-dots {
  display: none;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.placeholder-mark {
  width: 54px;
  height: 54px;
  gap: 7px;
}

.placeholder-mark span {
  background: var(--line);
}

.placeholder-caption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
  gap: 64px;
  margin-top: 72px;
  align-items: end;
}

.about-media {
  height: 460px;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel);
}

.copy-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}

.copy-stack p,
.process-card p,
.feature-card p,
.faq-panel p {
  margin: 0;
  color: var(--muted);
}

.copy-stack p {
  font-size: 17px;
  line-height: 1.75;
}

.mono-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper);
  margin-top: 8px;
}

.accordion-group {
  border-top: 1px solid var(--line);
}

.service-item,
.faq-item {
  border-bottom: 1px solid var(--line);
}

.service-trigger,
.faq-trigger {
  width: 100%;
  color: var(--paper);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.service-trigger {
  padding: 40px 8px;
  display: grid;
  grid-template-columns: 72px 1fr 1.15fr 40px;
  gap: 32px;
  align-items: baseline;
}

.service-trigger:hover {
  background: var(--panel);
}

.service-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.service-title {
  font-family: "Newsreader", serif;
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 500;
}

.service-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.accordion-icon {
  justify-self: end;
  color: var(--red);
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}

.faq .accordion-panel {
  transition-duration: 0.45s;
}

.accordion-panel > div {
  overflow: hidden;
}

.accordion-panel__inner {
  opacity: 0;
  transition: opacity 0.45s ease 0.1s;
}

.faq .accordion-panel__inner {
  transition: opacity 0.4s ease 0.08s;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-item.is-open .accordion-panel__inner {
  opacity: 1;
}

.service-panel {
  padding: 8px 8px 48px 104px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.feature-card span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red);
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px 64px;
}

.process-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.process-card span {
  font-family: "Poppins", sans-serif;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--red);
}

.process-card h3 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 24px;
  font-weight: 500;
}

.process-card p {
  font-size: 15px;
  line-height: 1.7;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.6fr);
  gap: 64px;
  margin-top: 56px;
}

.faq-list {
  border-top: 0;
}

.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-family: "Newsreader", serif;
  font-size: 21px;
  font-weight: 500;
}

.faq-trigger .accordion-icon {
  font-size: 22px;
}

.faq-panel p {
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  max-width: 640px;
}

.contact {
  scroll-margin-top: 70px;
  border-top: 1px solid var(--line);
  padding: 140px 40px 60px;
}

.contact__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.contact-title {
  margin: 40px 0 0;
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(48px, 8.5vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.contact-title span {
  color: var(--red);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
}

.cta {
  background: var(--red);
  color: var(--paper);
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 22px 40px;
  display: inline-block;
}

.cta:hover {
  background: var(--paper);
  color: var(--ink);
}

.contact-row span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 360px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 120px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.footer-brand span span {
  font-weight: 400;
}

.footer-brand span span + span {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--paper);
}

.copyright {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--deep-muted);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .site-nav {
    padding: 20px;
  }

  .nav-links {
    gap: 18px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .hero {
    padding: 92px 24px 22px;
  }

  .hero__inner {
    width: min(86vw, 720px);
  }

  .section,
  .showreel {
    padding: 86px 24px;
  }

  .showreel {
    max-width: none;
    padding-bottom: 36px;
    overflow: visible;
  }

  .fan-wrap {
    justify-content: flex-start;
    align-items: stretch;
    height: auto;
    margin: 40px -24px 0;
    padding: 0 calc(50vw - min(39vw, 170px)) 18px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc(50vw - min(39vw, 170px));
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .fan-wrap::-webkit-scrollbar {
    display: none;
  }

  .fan-card,
  .fan-card--1,
  .fan-card--2,
  .fan-card--3,
  .fan-card--4,
  .fan-card--5 {
    width: min(78vw, 340px);
    height: auto;
    aspect-ratio: 300 / 515;
    margin-left: 0;
    transform: none !important;
    opacity: 1 !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .fan-card + .fan-card {
    margin-left: 18px;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
  }

  .carousel-dots button {
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-dots button::after {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--line);
  }

  .carousel-dots button.is-active::after {
    background: var(--red);
  }

  .about {
    padding: 92px 24px 86px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-media {
    height: 320px;
  }

  .process-grid {
    gap: 38px 32px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact {
    padding: 100px 24px 44px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    position: static;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 16px 14px;
    background: var(--ink);
    mix-blend-mode: normal;
  }

  .brand-word {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .nav-links {
    flex: none;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .hero {
    min-height: 92vh;
    padding: 40px 20px 20px;
  }

  .hero__inner {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(40px, 13vw, 88px);
  }

  .drift--left,
  .drift--right {
    transform: none !important;
  }

  .drift--right {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .hero-strip {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .hero-strip span:nth-child(2) {
    display: none;
  }

  .section,
  .showreel,
  .about {
    padding-left: 20px;
    padding-right: 20px;
  }

  .fan-wrap {
    margin-left: -20px;
    margin-right: -20px;
  }

  .section-title {
    font-size: clamp(32px, 10vw, 46px);
  }

  .service-trigger {
    grid-template-columns: 52px 1fr 32px;
    gap: 12px;
    padding: 30px 0;
  }

  .service-desc {
    grid-column: 2 / 4;
    font-size: 14px;
  }

  .service-num,
  .service-title {
    grid-row: 1;
  }

  .service-trigger .accordion-icon {
    grid-row: 1;
    grid-column: 3;
  }

  .service-panel {
    padding: 0 0 38px;
  }

  .feature-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .faq-trigger {
    font-size: 19px;
    gap: 18px;
  }

  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-row {
    align-items: flex-start;
  }

  .cta {
    width: 100%;
    text-align: center;
    padding: 20px 24px;
  }

  .site-footer {
    margin-top: 84px;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 375px) {
  .brand-word > span {
    display: none;
  }
}
