:root {
  --film: 0;
  --ink: #292b2f;
  --ink-soft: #55585e;
  --paper: #ffffff;
  --soft: #f3f4f5;
  --soft-strong: #e7e8ea;
  --header: #70737a;
  --header-deep: #62656b;
  --muted: #6f7278;
  --line: #d8dadd;
  --red: #e30613;
  --red-deep: #b8000b;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 900px;
  font-size: 5rem;
  font-weight: 680;
}

h2 {
  font-size: 3.2rem;
  font-weight: 650;
}

h3 {
  font-size: 1.55rem;
  font-weight: 650;
}

h4 {
  font-size: 1.08rem;
  font-weight: 720;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 30px rgba(41, 43, 47, 0.16);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.8rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(112, 115, 122, 0.94);
  color: white;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  background: rgba(98, 101, 107, 0.97);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 260px;
  min-width: 190px;
}

.brand img {
  width: 248px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.55rem, 1vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 610;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
}

.process-action { margin-top: 2rem; }

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 1px;
  margin: 0.3rem auto;
  background: currentColor;
  transition: transform 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.2rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.2rem) rotate(-45deg);
}

.scroll-film {
  position: relative;
  min-height: 100svh;
  background: var(--paper);
}

.film-stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 9rem max(1.25rem, calc((100vw - var(--max)) / 2)) 5.2rem;
}

.film-media,
.film-intro,
.film-video,
.film-grid {
  position: absolute;
  inset: 0;
}

.film-media {
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
}

.film-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: saturate(0.94) contrast(0.98);
  will-change: opacity;
  transition: opacity 320ms ease;
}

.film-intro {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 900ms ease;
}

.film-stage.is-started .film-intro {
  opacity: 0;
}

.film-video.is-active {
  opacity: 1;
}

.film-image-a {
  opacity: calc(0.72 - var(--film) * 0.56);
}

.film-image-b {
  opacity: calc(0.16 + var(--film) * 0.8);
  clip-path: inset(0 calc((1 - var(--film)) * 60%) 0 0);
}

.film-media::before,
.film-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.film-media::before {
  z-index: 2;
  background: #ffffff;
  opacity: 0.42;
  transition: opacity 900ms ease;
}

.film-stage.is-started .film-media::before {
  opacity: 0;
}

.film-media::after {
  z-index: 3;
  background: radial-gradient(ellipse 62% 72% at 17% 73%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 34%, rgba(255, 255, 255, 0.28) 63%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 420ms ease;
}

.film-stage.has-copy .film-media::after {
  opacity: 1;
}

.film-grid {
  opacity: calc(var(--film) * 0.54);
  background-image:
    linear-gradient(rgba(112, 115, 122, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 115, 122, 0.13) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  mask-image: linear-gradient(90deg, transparent, #292b2f 38%, #292b2f 88%, transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  pointer-events: none;
}

.film-copy {
  grid-area: 1 / 1;
  align-self: end;
  opacity: 0;
  transform: translateY(1.5rem);
  will-change: opacity, transform;
  transition: opacity 420ms ease, transform 420ms ease;
}

.film-copy.is-visible {
  opacity: 1;
  transform: none;
}

.eyebrow,
.section-label,
.work-card span,
.service-number,
.process-list > li > span,
.portfolio-kicker,
.legal-content h2 {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 760;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin-top: 1rem;
}

.hero-copy h2 {
  max-width: 900px;
  font-size: 5rem;
  font-weight: 680;
}

.film-word {
  color: var(--red);
}

.hero-lead {
  max-width: 640px;
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.82rem 1.15rem;
  font-weight: 720;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-deep);
}

.button-ghost {
  border-color: #b9bbc0;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.button-whatsapp {
  gap: 0.55rem;
}

.button-whatsapp img {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
  border-color: #25d366;
  color: #167a3b;
}

.privacy-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 300;
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
  margin: 0 auto;
  padding: 1.15rem;
  border: 1px solid #c9cbd0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 70px rgba(41, 43, 47, 0.2);
  backdrop-filter: blur(18px);
}

.privacy-notice[hidden] {
  display: none;
}

.privacy-notice h2 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.privacy-notice p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-notice a {
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.privacy-notice .button {
  min-width: 8.2rem;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.privacy-actions .button {
  flex: 1 1 10.5rem;
}

.film-status {
  position: absolute;
  right: max(1.25rem, calc((100vw - var(--max)) / 2));
  bottom: 2.2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.film-progress {
  display: block;
  width: 7rem;
  height: 2px;
  background: #c8cace;
}

.film-progress i {
  display: block;
  width: calc(var(--film) * 100%);
  height: 100%;
  background: var(--red);
}

.film-skip,
.film-sound,
.film-replay {
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 1px solid rgba(111, 114, 120, 0.55);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.film-skip:hover,
.film-skip:focus-visible,
.film-sound:hover,
.film-sound:focus-visible,
.film-replay:hover,
.film-replay:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.film-replay[hidden] {
  display: none;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--red);
}

.signal-band p {
  min-height: 4.25rem;
  display: grid;
  place-items: center;
  padding: 0.65rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
  font-size: 0.86rem;
  font-weight: 690;
  text-align: center;
}

.signal-band p:last-child {
  border-right: 0;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8rem 1.25rem;
}

.intro {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  gap: 5rem;
  margin-top: 1.4rem;
  align-items: end;
}

.intro-grid p,
.section-heading > p,
.studio-copy p,
.detail-grid p,
.service-summary,
.process-list p,
.portfolio-intro p,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.intro-visual {
  overflow: hidden;
  background: white;
}

.intro-visual img {
  width: 100%;
  height: clamp(150px, 19.4vw, 310px);
  object-fit: cover;
  object-position: center;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.7rem;
}

.section-heading h2 {
  max-width: 800px;
  margin-top: 0.7rem;
}

.section-heading > p {
  max-width: 360px;
}

.clients {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  background: var(--soft);
}

.clients .section-heading {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
}

.client-marquee {
  overflow-x: auto;
  margin-top: 3rem;
  background: white;
}

.client-marquee.is-ready {
  overflow: hidden;
}

.client-track {
  display: flex;
  width: max-content;
}

.client-marquee.is-ready .client-track {
  animation: client-marquee-ltr 54s linear infinite;
  will-change: transform;
}

.client-marquee:hover .client-track {
  animation-play-state: paused;
}

.client-row {
  display: flex;
  flex: none;
  gap: 1.25rem;
  padding: 0 0.625rem;
}

.client-logo {
  width: clamp(160px, 14vw, 220px);
  height: 8rem;
  flex: none;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: white;
}

.client-logo img {
  width: auto;
  max-width: 82%;
  max-height: 58px;
  opacity: 0.82;
  transition: opacity 180ms ease, transform 180ms ease;
}

.client-logo:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

@keyframes client-marquee-ltr {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.service-list {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(250px, 0.85fr) minmax(280px, 1fr) auto;
  gap: 2rem;
  align-items: center;
  min-height: 9.5rem;
  padding: 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease;
}

.service-row:hover {
  background: var(--soft);
}

.service-row::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  content: "";
  transform: scaleY(0);
  transition: transform 180ms ease;
}

.service-row:hover::before {
  transform: scaleY(1);
}

.service-row h3 {
  font-size: 1.8rem;
}

.service-link {
  color: var(--red);
  font-weight: 760;
  white-space: nowrap;
}

.system-story {
  min-height: 155vh;
  background: var(--soft);
  color: var(--ink);
}

.story-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: 4.5rem;
  align-items: center;
  padding: 6rem 1.25rem;
}

.story-copy h2 {
  margin-top: 1rem;
}

.workflow-panel {
  min-height: 500px;
  border: 1px solid #cfd1d4;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(63, 66, 72, 0.13);
  padding: 1.25rem;
}

.workflow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.workflow-top span {
  color: var(--muted);
}

.workflow-top strong {
  color: var(--red);
}

.workflow-line {
  position: relative;
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.workflow-line::before {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), #8a8d92);
  content: "";
  transform: scaleX(calc(0.22 + var(--film) * 0.78));
  transform-origin: left;
}

.node {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 4.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-weight: 720;
  transform: translateY(calc((1 - var(--film)) * 14px));
}

.node-b,
.node-c,
.node-d {
  opacity: calc(0.38 + var(--film) * 0.62);
}

.workflow-output {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.workflow-output p {
  min-height: 4rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem;
  background: var(--soft);
  color: var(--ink-soft);
}

.work {
  padding-bottom: 5rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.work-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft-strong);
  color: white;
}

.work-card-large {
  grid-row: span 2;
  min-height: 700px;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.work-card:hover img {
  transform: scale(1.035);
}

.work-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(54, 56, 61, 0.82));
  content: "";
}

.work-card > div {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
}

.work-card h3 {
  margin-top: 0.35rem;
}

.work-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.4rem;
}

.studio {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: center;
  padding-top: 5rem;
}

.studio-image {
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.studio-image img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center;
}

.studio-copy h2 {
  margin-top: 1rem;
}

.studio-copy p:last-of-type {
  max-width: 590px;
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.profile-grid li {
  min-height: 5.4rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-grid li:nth-child(odd) {
  padding-right: 1rem;
}

.profile-grid li:nth-child(even) {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.studio-headline span {
  display: block;
}

.profile-grid .profile-mark {
  width: 0.85rem;
  height: 0.38rem;
  display: block;
  background: var(--red);
}

.profile-grid strong {
  line-height: 1.25;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.process-list li {
  min-height: 17rem;
  padding: 1.25rem;
  background: var(--paper);
}

.process-list h3 {
  margin-top: 4rem;
}

.process-list p {
  margin-top: 1rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding: 7rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.contact h2 {
  max-width: 800px;
  margin-top: 0.8rem;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: var(--header-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 1.2rem;
  color: white;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ff8790;
}

.page-hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 10rem max(1.25rem, calc((100vw - var(--max)) / 2)) 6rem;
  background: var(--soft);
}

.page-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 40%, rgba(255, 255, 255, 0.42) 72%, rgba(255, 255, 255, 0.2)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.05) 58%);
  content: "";
}

.page-hero > div {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.page-hero h1 {
  margin-top: 1rem;
}

.page-hero p:last-child,
.page-hero p.hero-lead {
  max-width: 620px;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.16rem;
}

.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-portrait > img {
  object-position: 72% 28%;
}

.page-hero.automation-hero::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.64) 0%, rgba(255, 255, 255, 0.38) 34%, rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0) 72%);
}

.page-hero.car-wrap-hero::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.91) 0%, rgba(255, 255, 255, 0.7) 34%, rgba(255, 255, 255, 0.1) 58%, rgba(255, 255, 255, 0) 74%);
}

.page-hero.integration-hero::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 32%, rgba(255, 255, 255, 0.16) 56%, rgba(255, 255, 255, 0.02) 74%);
}

.page-hero.webdesign-hero::after {
  background: radial-gradient(ellipse 58% 72% at 16% 72%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 34%, rgba(255, 255, 255, 0.28) 62%, rgba(255, 255, 255, 0) 100%);
}

.webdesign-hero > div {
  max-width: 700px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.95), 0 0 36px rgba(255, 255, 255, 0.72);
}

.webdesign-hero > img {
  object-position: center;
}

.integration-hero > div {
  max-width: 650px;
}

.integration-hero > img {
  object-position: center;
}

.automation-hero > img {
  object-position: center;
}

.automation-headline span {
  display: block;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-grid article {
  min-height: 20rem;
  padding: 1.5rem;
  background: var(--paper);
}

.detail-grid h2 {
  font-size: 2rem;
}

.detail-grid p {
  margin-top: 1rem;
}

.result-band {
  width: 100%;
  background: var(--red);
  color: white;
}

.result-metric {
  margin: 0;
  color: white;
  letter-spacing: 0;
}

.integration-result-band {
  padding: 1.3rem max(1.25rem, calc((100vw - var(--max)) / 2));
}

.integration-result-band .result-metric {
  width: 100%;
  max-width: none;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.automation-result-band {
  display: grid;
  grid-template-columns: minmax(410px, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: center;
  padding: 3.5rem max(1.25rem, calc((100vw - var(--max)) / 2));
}

.automation-result-band .result-metric strong {
  display: block;
  color: white;
  font-size: 3.4rem;
  font-weight: 760;
  line-height: 0.95;
  white-space: nowrap;
}

.automation-result-band .result-metric span {
  display: block;
  margin: 0.4rem 0;
  color: white;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1;
}

.automation-result-band h2 {
  font-size: 2rem;
}

.automation-result-band > div > p {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.86);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.automation-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.automation-topic-grid article {
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--line);
}

.automation-topic-grid article:nth-child(even) {
  padding-right: 0;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.automation-topic-grid h3 {
  max-width: 28rem;
  font-size: 1.45rem;
}

.automation-topic-grid p {
  max-width: 36rem;
  margin-top: 0.85rem;
  color: var(--muted);
}

.automation-disclosure {
  padding-top: 0;
}

.automation-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.automation-details summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 0;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.automation-details summary::-webkit-details-marker {
  display: none;
}

.automation-details summary strong {
  font-size: 1.15rem;
}

.automation-details-toggle {
  color: var(--red);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.automation-details[open] .automation-details-toggle {
  transform: rotate(45deg);
}

.automation-details-content {
  padding: 3.5rem 0 2rem;
}

.reference-card {
  min-height: 21rem;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.reference-card > span {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 760;
}

.reference-card h3 {
  margin-top: 3.5rem;
  font-size: 1.7rem;
}

.reference-card p {
  margin-top: 1rem;
  color: var(--muted);
}

.reference-card strong {
  display: block;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.app-showcase {
  padding-top: 0;
}

.app-showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.app-showcase-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.app-showcase-item-wide {
  grid-column: span 3;
}

.app-showcase-item-tall {
  grid-column: span 2;
}

.app-showcase-item img {
  width: 100%;
  object-fit: cover;
}

.app-showcase-item-wide img {
  aspect-ratio: 16 / 9;
}

.app-showcase-item-tall img {
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: var(--soft);
}

.app-showcase-item figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 1rem;
}

.app-showcase-item figcaption span {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

.solution-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.solution-link {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 180ms ease, background 180ms ease;
}

.solution-link:hover,
.solution-link:focus-visible {
  border-color: var(--red);
  background: var(--soft);
}

.solution-link span {
  color: var(--red);
  font-weight: 760;
}

.portfolio-hero {
  min-height: 78svh;
}

.portfolio-hero > img {
  object-position: center;
}

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.65fr);
  gap: 5rem;
  align-items: end;
}

.portfolio-intro h2 {
  margin-top: 0.8rem;
}

.portfolio-intro p {
  font-size: 1.08rem;
}

.portfolio-intro .portfolio-kicker,
.portfolio-copy .portfolio-kicker {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 760;
  text-transform: uppercase;
}

.portfolio-nav {
  position: sticky;
  top: 68px;
  z-index: 20;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.portfolio-nav a {
  padding: 1rem 1.2rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.portfolio-nav a:hover,
.portfolio-nav a:focus-visible {
  border-color: var(--red);
  color: var(--ink);
}

.portfolio-section {
  scroll-margin-top: 130px;
}

.portfolio-section + .portfolio-section {
  border-top: 1px solid var(--line);
}

.portfolio-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.portfolio-copy h2 {
  margin-top: 0.65rem;
}

.portfolio-copy p {
  color: var(--muted);
}

.ai-note {
  padding-left: 1.2rem;
  border-left: 3px solid var(--red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid-illustrations {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid-design {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid-car {
  grid-template-columns: minmax(0, 1fr);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.gallery-media {
  position: relative;
  overflow: hidden;
}

.gallery-media > img:first-child {
  width: 100%;
  aspect-ratio: 3 / 4.6;
  object-fit: cover;
  transition: transform 500ms ease, filter 300ms ease;
}

.gallery-grid-illustrations .gallery-media > img:first-child {
  aspect-ratio: 4 / 5;
}

.gallery-grid-illustrations .gallery-media > img.image-contain {
  object-fit: contain;
  background: var(--soft);
}

.gallery-grid-illustrations .gallery-item figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 0.3rem;
  min-height: 5.8rem;
}

.gallery-grid-illustrations .gallery-item figcaption span {
  text-align: left;
}

.gallery-grid-design .gallery-media > img:first-child {
  aspect-ratio: 1 / 1;
}

.gallery-grid-car .gallery-media > img:first-child {
  aspect-ratio: 16 / 9;
}

.gallery-trigger:hover .gallery-media > img:first-child,
.gallery-trigger:focus-visible .gallery-media > img:first-child {
  transform: scale(1.025);
  filter: saturate(1.06);
}

.ai-stamp {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 118px;
  height: auto;
  filter: drop-shadow(0 2px 9px rgba(41, 43, 47, 0.18));
  pointer-events: none;
}

.media-label {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.48rem 0.62rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 2px 9px rgba(41, 43, 47, 0.18);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.media-label-modified {
  border-left: 3px solid var(--red);
}

.media-label-photo {
  background: rgba(41, 43, 47, 0.86);
  color: white;
}

.gallery-item figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-top: 0;
  background: white;
}

.gallery-item figcaption strong {
  font-size: 0.98rem;
}

.gallery-item figcaption span {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.lightbox {
  width: min(1050px, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(41, 43, 47, 0.28);
}

.lightbox::backdrop {
  background: rgba(74, 77, 83, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  max-height: calc(100svh - 2rem);
}

.lightbox-image-wrap {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: var(--soft);
}

.lightbox-image-wrap img {
  max-height: calc(100svh - 2rem);
  width: auto;
}

.lightbox-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem;
}

.lightbox-close {
  align-self: flex-end;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-copy p {
  color: var(--muted);
}

.legal-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10rem 1.25rem 4rem;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin-top: 0.7rem;
  hyphens: auto;
  overflow-wrap: break-word;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 1.25rem 8rem;
}

.legal-content section + section {
  margin-top: 3rem;
}

.legal-content h2 {
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.legal-content p + p,
.legal-content ul + p,
.legal-content p + ul {
  margin-top: 0.9rem;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-content a {
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.contact-page-intro {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 1.25rem;
}

.contact-page-hero {
  padding-top: 8rem;
  padding-bottom: 2.5rem;
}

.contact-page-hero h1 {
  font-size: 4rem;
}

.contact-page-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 6rem);
}

.contact-page-layout h2 {
  margin-bottom: 1.4rem;
  font-size: 1.8rem;
}

.contact-page-address {
  font-size: 1.15rem;
  font-style: normal;
  line-height: 1.9;
}

.contact-page-address a {
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.contact-page-actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.legal-note {
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--red);
  background: var(--soft);
}

@media (max-width: 1150px) {
  .site-header {
    min-height: 70px;
    padding: 0.7rem 1rem;
  }

  .site-header.is-scrolled {
    min-height: 64px;
  }

  .brand {
    flex-basis: 210px;
  }

  .brand img {
    width: 205px;
  }

  .menu-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: 4.8rem;
    display: grid;
    gap: 0;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    background: rgba(98, 101, 107, 0.99);
    box-shadow: 0 22px 60px rgba(41, 43, 47, 0.2);
    color: white;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    white-space: normal;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.9rem;
  }
}

@media (max-width: 1080px) {
  h1,
  .hero-copy h2 {
    font-size: 4.15rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .service-row {
    grid-template-columns: 54px minmax(230px, 0.8fr) minmax(240px, 1fr) auto;
    gap: 1.25rem;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-sticky,
  .studio {
    grid-template-columns: 1fr;
  }

  .story-sticky {
    align-content: center;
  }

  .workflow-panel {
    min-height: 430px;
  }
}

@media (max-width: 820px) {
  .contact-page-hero h1 {
    font-size: 3rem;
  }

  .contact-page-layout {
    grid-template-columns: 1fr;
  }

  h1,
  .hero-copy h2 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: 1.28rem;
  }

  .film-stage {
    min-height: 100svh;
    padding: 7.5rem 1rem 4.6rem;
  }

  .film-video {
    object-position: 61% center;
  }

  .film-media::after {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.76)),
      linear-gradient(0deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.36) 58%, rgba(255, 255, 255, 0.76));
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .film-status {
    left: 1rem;
    right: 1rem;
    bottom: 1.25rem;
    gap: 0.45rem;
    font-size: 0.72rem;
  }

  .film-progress {
    width: 3.25rem;
  }

  .signal-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-band p {
    min-height: 4rem;
  }

  .section {
    padding: 5.5rem 1rem;
  }

  .intro-grid,
  .section-heading,
  .work-grid,
  .contact,
  .portfolio-intro,
  .portfolio-copy {
    display: block;
  }

  .section-heading > p,
  .intro-grid p,
  .portfolio-intro p,
  .portfolio-copy > p {
    margin-top: 1.25rem;
  }

  .privacy-notice,
  .result-band {
    grid-template-columns: 1fr;
  }

  .integration-result-band .result-metric {
    font-size: 1.1rem;
  }

  .automation-result-band {
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .privacy-notice .button {
    justify-self: start;
  }

  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-showcase-item-wide {
    grid-column: span 6;
  }

  .app-showcase-item-tall {
    grid-column: span 3;
  }

  .service-row {
    grid-template-columns: 46px 1fr auto;
    gap: 1rem;
    min-height: 11rem;
  }

  .service-row h3 {
    font-size: 1.4rem;
  }

  .service-summary {
    grid-column: 2 / -1;
    max-width: 560px;
  }

  .story-sticky {
    min-height: auto;
    position: relative;
    padding: 5.5rem 1rem;
  }

  .workflow-panel {
    min-height: 380px;
    margin-top: 2rem;
  }

  .workflow-line,
  .workflow-output {
    grid-template-columns: 1fr;
  }

  .workflow-line {
    min-height: auto;
    gap: 0.8rem;
    padding: 1.2rem 0;
  }

  .workflow-line::before {
    left: 50%;
    right: auto;
    top: 8%;
    bottom: 8%;
    width: 2px;
    height: auto;
    transform: scaleY(calc(0.22 + var(--film) * 0.78));
    transform-origin: top;
  }

  .work-card,
  .work-card-large {
    min-height: 390px;
    margin-top: 1rem;
  }

  .contact-actions {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-top: 0.9rem;
  }

  .page-hero {
    min-height: 76svh;
    padding: 8.5rem 1rem 4.5rem;
  }

  .page-hero::after {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.75)),
      linear-gradient(0deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.35) 62%);
  }

  .detail-grid,
  .gallery-grid,
  .gallery-grid-illustrations,
  .gallery-grid-design {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-nav {
    top: 64px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .portfolio-nav a {
    flex: 0 0 auto;
  }

  .lightbox-frame {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .lightbox-image-wrap img {
    max-height: calc(100svh - 10rem);
  }

  .lightbox-copy {
    min-height: 8rem;
  }
}

@media (max-width: 520px) {
  h1,
  .hero-copy h2 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .brand {
    flex-basis: 175px;
    min-width: 165px;
  }

  .brand img {
    width: 172px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .service-row {
    grid-template-columns: 38px 1fr;
  }

  .service-link {
    grid-column: 2;
  }

  .detail-grid,
  .gallery-grid,
  .gallery-grid-illustrations,
  .gallery-grid-design,
  .process-list {
    grid-template-columns: 1fr;
  }

  .reference-grid,
  .solution-links {
    grid-template-columns: 1fr;
  }

  .automation-topic-grid {
    grid-template-columns: 1fr;
  }

  .automation-topic-grid article,
  .automation-topic-grid article:nth-child(even) {
    padding: 1.5rem 0;
    border-left: 0;
  }

  .integration-result-band .result-metric {
    font-size: 0.72rem;
  }

  .automation-result-band .result-metric strong {
    font-size: 2.5rem;
  }

  .automation-result-band h2 {
    font-size: 1.65rem;
  }

  .app-showcase-item-tall {
    grid-column: span 6;
  }

  .client-logo {
    width: 150px;
    height: 6.75rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid li:nth-child(odd),
  .profile-grid li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .reference-card {
    min-height: 18rem;
  }

  .detail-grid article {
    min-height: 15rem;
  }

  .gallery-item figcaption {
    min-height: 4.4rem;
  }

  .site-footer nav {
    display: grid;
  }
}

@media (max-width: 380px) {
  .integration-result-band .result-metric {
    font-size: 0.6rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  .scroll-film {
    min-height: 100svh;
  }

  .film-stage {
    position: relative;
  }

  .film-video,
  .film-copy {
    opacity: 0 !important;
  }

  .film-video-1,
  .film-copy-1,
  .film-media::after {
    opacity: 1 !important;
  }

  .film-copy-1 {
    transform: none !important;
  }

  .film-status {
    display: none;
  }

  .client-marquee.is-ready {
    overflow-x: auto;
  }

  .client-marquee.is-ready .client-track {
    animation: none;
  }

  .client-row[aria-hidden="true"] {
    display: none;
  }
}
