/* ==========================================================================
   NODO — plantilla maestra de la agencia
   Tokens, layout y componentes. Sin build. Sin dependencias.
   ========================================================================== */

:root {
  --bg: #f1ede4;
  --ink: #141312;
  --accent: #ff4a1c;
  --accent-ink: #1c0d07;
  --accent-text: #b7320c;
  --deep: #141312;
  --deep-ink: #f3efe6;

  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --line-soft: color-mix(in srgb, var(--ink) 8%, transparent);
  --surface: color-mix(in srgb, var(--ink) 5%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 62%, var(--bg));
  --deep-line: color-mix(in srgb, var(--deep-ink) 18%, transparent);
  --deep-muted: color-mix(in srgb, var(--deep-ink) 62%, var(--deep));

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --pad: clamp(20px, 5vw, 72px);
  --radius: 20px;
  --head-h: 78px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

body.is-locked,
body.is-loading {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

img {
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: calc(var(--head-h) + 24px);
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip:focus-visible {
  transform: none;
}

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

.wrap {
  width: calc(100% - (var(--pad) * 2));
  max-width: 1440px;
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(84px, 10vw, 150px);
}

.section--light {
  background: var(--bg);
  color: var(--ink);
}

.section--surface {
  background: var(--surface);
  color: var(--ink);
}

.section--deep {
  background: var(--deep);
  color: var(--deep-ink);
  --line: var(--deep-line);
  --line-soft: color-mix(in srgb, var(--deep-ink) 9%, transparent);
  --muted: var(--deep-muted);
  --surface: color-mix(in srgb, var(--deep-ink) 7%, var(--deep));
}

/* Type ------------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--accent-text);
}

.section--deep .display em,
.lab .display em {
  color: var(--accent);
}

.display--xl {
  font-size: clamp(2.9rem, 6.8vw, 7rem);
  line-height: 0.94;
}

.display--right {
  text-align: right;
  margin-left: auto;
  max-width: 15ch;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head .display {
  margin-top: 18px;
  max-width: 20ch;
}

.section-head--deep .kicker {
  color: var(--deep-muted);
}

.section-head__aside {
  margin-top: 24px;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}

.section-head--split .section-head__aside {
  margin-top: 0;
  justify-self: end;
  max-width: 36ch;
}

.section-head__aside p {
  margin-bottom: 16px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--accent-text);
  border-color: var(--accent-text);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn span {
  transition: transform 0.35s var(--ease);
}

.btn:hover span {
  transform: translate(2px, -2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn--small {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 12px;
}

.btn--outline {
  border-color: var(--line);
}

.btn--outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--solid {
  background: var(--ink);
  color: var(--bg);
}

.btn--solid:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--full {
  width: 100%;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  font-size: 22px;
  line-height: 1;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.icon-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Header ----------------------------------------------------------------- */

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  padding-block: 16px;
  color: var(--ink);
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease),
    color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-head.is-scrolled {
  padding-block: 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}

.site-head__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--accent);
  transition: transform 0.7s var(--ease);
}

.logo__mark svg {
  width: 100%;
  height: 100%;
}

.logo:hover .logo__mark {
  transform: rotate(90deg);
}

.logo__text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.logo__suffix {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

.nav__list {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.nav__list a {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__list a:hover {
  color: var(--ink);
}

.nav__list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.cart-btn svg {
  width: 19px;
  height: 19px;
}

.cart-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.cart-btn__count {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.burger span:first-child { top: 17px; }
.burger span:last-child { top: 23px; }

.menu-open .burger span:first-child { top: 20px; transform: translateX(-50%) rotate(45deg); }
.menu-open .burger span:last-child { top: 20px; transform: translateX(-50%) rotate(-45deg); }

.menu-open .site-head {
  color: var(--deep-ink);
}

.menu-open .site-head.is-scrolled {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}

.menu-open .site-head .logo__suffix,
.menu-open .site-head .nav__list a {
  color: var(--deep-muted);
}

.menu-open .site-head .cart-btn,
.menu-open .site-head .burger {
  border-color: var(--deep-line);
}

/* Mobile menu ------------------------------------------------------------ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--head-h) + 40px) var(--pad) 40px;
  background: var(--deep);
  color: var(--deep-ink);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.6s var(--ease), visibility 0.6s;
}

.mobile-menu.is-open {
  transform: none;
  visibility: visible;
}

.mobile-menu__list a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--deep-line);
}

.mobile-menu__list a:hover {
  color: var(--accent);
}

.mobile-menu__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--deep-muted);
}

.mobile-menu__foot a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--head-h) + clamp(32px, 6vw, 64px));
  padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--bg);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -28%;
  right: -12%;
  width: clamp(420px, 62vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 64%);
  opacity: 0.2;
  filter: blur(48px);
  pointer-events: none;
  animation: float 14s var(--ease-in-out) infinite alternate;
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 5%, 0) scale(1.08); }
}

.hero__eyebrow {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.hero__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 11.5vw, 11.5rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero__title .line__inner {
  display: block;
  transform: translateY(112%);
  transition: transform 1.1s var(--ease);
}

.hero__title .line:nth-child(2) .line__inner { transition-delay: 0.08s; }
.hero__title .line:nth-child(3) .line__inner { transition-delay: 0.16s; }

.is-ready .hero__title .line__inner {
  transform: none;
}

.hero__title em {
  font-style: italic;
  color: var(--accent-text);
}

.hero__meta {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 6vw, 100px);
  margin-top: clamp(36px, 5vw, 64px);
  align-items: end;
}

.hero__lead {
  max-width: 40ch;
  font-size: clamp(1.02rem, 1.35vw, 1.24rem);
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 82%, var(--bg));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero__aside {
  justify-self: end;
  max-width: 360px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hero__note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.hero__stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__stats dd {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__gallery {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.05fr;
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(40px, 6vw, 76px);
  align-items: start;
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  height: clamp(250px, 30vw, 410px);
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--c1), var(--c2));
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease),
    box-shadow 0.5s var(--ease);
}

.hero-card:nth-child(2) {
  height: clamp(210px, 25vw, 340px);
  margin-top: clamp(18px, 4vw, 56px);
}

.hero-card:nth-child(3) {
  height: clamp(270px, 32vw, 430px);
}

.is-ready .hero-card {
  opacity: 1;
  transform: none;
}

.is-ready .hero-card:nth-child(1) { transition-delay: 0.35s; }
.is-ready .hero-card:nth-child(2) { transition-delay: 0.45s; }
.is-ready .hero-card:nth-child(3) { transition-delay: 0.55s; }

.hero-card:hover {
  box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--ink) 45%, transparent);
}

.hero-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card__top span:last-child {
  opacity: 0.72;
}

.hero-card__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-card__arrow {
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 50%;
  font-size: 14px;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.hero-card:hover .hero-card__arrow {
  opacity: 1;
  transform: none;
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 30px;
  background: var(--line);
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(-100%);
  animation: scroll-line 2.2s var(--ease-in-out) infinite;
}

@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

.hero__avail {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Marquee ---------------------------------------------------------------- */

.marquee-band {
  padding-block: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-block: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1;
  white-space: nowrap;
}

.marquee__sep {
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Manifesto -------------------------------------------------------------- */

.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) minmax(0, 2.25fr);
  gap: clamp(32px, 6vw, 96px);
}

.manifesto__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.manifesto__index {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.manifesto__body .display {
  max-width: 19ch;
}

.manifesto__text {
  max-width: 56ch;
  margin-top: 28px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stats dt {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.stats dd {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Services accordion ----------------------------------------------------- */

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

.acc-item {
  border-top: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}

.acc-item.is-open {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.acc-btn {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  width: 100%;
  padding: clamp(20px, 2.6vw, 30px) 8px;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
}

.acc-n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.acc-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: font-style 0.3s var(--ease), color 0.3s var(--ease);
}

.acc-btn:hover .acc-title {
  font-style: italic;
  color: var(--accent-text);
}

.acc-plus {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease),
    color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.acc-plus::before,
.acc-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.acc-plus::before { width: 12px; height: 1.5px; }
.acc-plus::after { width: 1.5px; height: 12px; }

.acc-item.is-open .acc-plus {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: rotate(135deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

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

.acc-panel__inner {
  overflow: hidden;
}

.acc-body {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  padding: 0 8px clamp(24px, 3vw, 34px);
}

.acc-desc {
  max-width: 60ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.acc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Works ------------------------------------------------------------------ */

.works {
  overflow: hidden;
}

.works__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px);
  padding-bottom: clamp(40px, 7vw, 100px);
}

.work {
  display: block;
}

.work:nth-child(even) {
  margin-top: clamp(36px, 8vw, 120px);
}

.work__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: clamp(16px, 2vw, 26px);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--c1), var(--c2));
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--c1) 40%, transparent));
  opacity: 0.5;
  pointer-events: none;
}

.work__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work__top span:last-child {
  opacity: 0.7;
}

.work__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.work__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  transition: transform 0.5s var(--ease);
}

.work:hover .work__title {
  transform: translateY(-4px);
}

.work__cta {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  border-radius: 50%;
  font-size: 15px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.work:hover .work__cta {
  background: currentColor;
  transform: rotate(45deg);
}

.work:hover .work__cta span {
  color: var(--c1);
}

.work__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: start;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.work__blurb {
  max-width: 48ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.work__tags {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.work__demo {
  justify-self: end;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* Motifs (shared by hero cards, works and products) ---------------------- */

.motif-orb::before,
.motif-grid::before,
.motif-star::before,
.motif-arch::before,
.motif-hex::before,
.motif-wave::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.motif-orb::before {
  width: 78%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--c2) 85%, #fff), transparent 62%);
  opacity: 0.75;
  transform: translate(-50%, -50%);
  transition: transform 0.8s var(--ease);
}

.motif-grid::before {
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, currentColor 16%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, currentColor 16%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 72%);
  opacity: 0.8;
}

.motif-star::before {
  width: 62%;
  aspect-ratio: 1;
  top: 46%;
  left: 50%;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px color-mix(in srgb, currentColor 8%, transparent),
    0 0 0 54px color-mix(in srgb, currentColor 5%, transparent);
  transform: translate(-50%, -50%);
  transition: transform 0.8s var(--ease);
}

.motif-arch::before {
  width: 58%;
  height: 82%;
  right: -6%;
  bottom: -10%;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, currentColor 10%, transparent));
}

.motif-hex::before {
  inset: -10%;
  background-image: radial-gradient(circle at 50% 50%, color-mix(in srgb, currentColor 26%, transparent) 0 2px, transparent 2.5px);
  background-size: 26px 26px;
  transform: rotate(8deg);
  opacity: 0.9;
}

.motif-wave::before {
  width: 120%;
  aspect-ratio: 1;
  top: 8%;
  left: -10%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, currentColor 24%, transparent) 0 1px,
    transparent 1px 18px
  );
  opacity: 0.7;
}

.hero-card:hover .motif-orb::before,
.work:hover .motif-orb::before {
  transform: translate(-50%, -50%) scale(1.12);
}

.hero-card:hover .motif-star::before,
.work:hover .motif-star::before {
  transform: translate(-50%, -50%) rotate(18deg) scale(1.06);
}

/* Lab -------------------------------------------------------------------- */

.lab {
  position: relative;
  min-height: clamp(560px, 82vh, 900px);
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--deep-ink);
  overflow: hidden;
  isolation: isolate;
}

.lab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--deep) 55%, transparent) 0%, transparent 62%);
  pointer-events: none;
}

#lab-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.lab__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: clamp(80px, 12vw, 140px);
  pointer-events: none;
}

.lab__content .kicker {
  color: var(--deep-muted);
  justify-content: center;
}

.lab__content .display {
  margin-top: 20px;
  color: var(--deep-ink);
}

.lab__content .display em {
  color: var(--accent);
}

.lab__text {
  max-width: 54ch;
  margin: 24px auto 0;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  color: var(--deep-muted);
}

.lab__hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 36px;
  padding: 9px 16px;
  border: 1px solid var(--deep-line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-muted);
}

.lab__hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s infinite;
}

/* Theming ---------------------------------------------------------------- */

.theming__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
}

.theming__text {
  max-width: 46ch;
  margin-top: 26px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: var(--muted);
}

.theming__panel {
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.theming__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.theming__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.theming__active {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
}

.swatches {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.swatch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.swatch:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ink) 40%, transparent);
}

.swatch[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.swatch__dots {
  display: flex;
  padding-left: 8px;
}

.swatch__dot {
  width: 24px;
  height: 24px;
  margin-left: -8px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.swatch__name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.swatch__note {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.swatch__check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.swatch[aria-pressed="true"] .swatch__check {
  opacity: 1;
  transform: none;
}

.theming__hint {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

/* Shop ------------------------------------------------------------------- */

.shop .section-head__aside {
  color: var(--muted);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 34px);
}

.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--c1), var(--c2));
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.product__tag {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product__name {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 9ch;
}

.product__info {
  padding-top: 16px;
}

.product__desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.product__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product__price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.add-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.add-btn span {
  font-size: 14px;
  line-height: 1;
}

.shop__note {
  margin-top: 28px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

/* Process ---------------------------------------------------------------- */

.process__stack {
  display: grid;
  gap: 16px;
}

.step {
  position: sticky;
  top: calc(var(--head-h) + 18px + (var(--i) * 14px));
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(150px, 0.55fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(22px, 3vw, 38px);
  border-radius: var(--radius);
  background: var(--deep-ink);
  color: var(--deep);
  box-shadow: 0 -14px 40px -20px rgba(0, 0, 0, 0.4);
}

.step__n {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.step__role {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--deep) 55%, var(--deep-ink));
}

.step__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.step__desc {
  margin-top: 12px;
  max-width: 52ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--deep) 68%, var(--deep-ink));
}

.step__output {
  justify-self: end;
  align-self: end;
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--deep) 22%, transparent);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: color-mix(in srgb, var(--deep) 75%, var(--deep-ink));
}

/* Contact ---------------------------------------------------------------- */

.contact {
  background: var(--accent);
  color: var(--accent-ink);
  padding-block: clamp(84px, 10vw, 140px);
  --line: color-mix(in srgb, var(--accent-ink) 32%, transparent);
  --muted: color-mix(in srgb, var(--accent-ink) 78%, var(--accent));
}

.contact .kicker {
  color: color-mix(in srgb, var(--accent-ink) 82%, var(--accent));
}

.contact .kicker::before {
  background: currentColor;
}

.contact .display em {
  color: var(--accent-ink);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.contact__text {
  max-width: 42ch;
  margin-top: 26px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: color-mix(in srgb, var(--accent-ink) 86%, var(--accent));
}

.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
}

.contact__direct a {
  width: max-content;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: -0.01em;
  transition: border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.contact__direct a:hover {
  border-color: currentColor;
  opacity: 0.8;
}

.form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-ink) 80%, var(--accent));
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--accent-ink);
  font-size: 15px;
  transition: border-color 0.3s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 74px;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field select option {
  background: var(--bg);
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--accent-ink) 55%, transparent);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-ink);
}

.field.has-error input,
.field.has-error textarea {
  border-color: color-mix(in srgb, #fff 80%, var(--accent));
}

.field__error {
  min-height: 14px;
  font-size: 10.5px;
  color: color-mix(in srgb, #fff 92%, var(--accent));
}

.form .btn {
  margin-top: 4px;
  background: var(--ink);
  color: var(--bg);
}

.form .btn:hover {
  background: var(--bg);
  color: var(--ink);
}

.form__note {
  font-size: 10.5px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--accent-ink) 65%, var(--accent));
}

.form__success {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
}

.form__success a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.footer {
  background: var(--deep);
  color: var(--deep-ink);
  padding-top: clamp(60px, 8vw, 100px);
  overflow: hidden;
  --muted: var(--deep-muted);
  --line: var(--deep-line);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: end;
  padding-bottom: clamp(40px, 6vw, 70px);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 0.72;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--deep-ink) 42%, transparent);
  user-select: none;
}

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

.footer__label {
  margin-bottom: 12px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-muted);
}

.footer__cols li {
  margin-bottom: 7px;
}

.footer__cols a,
.footer__cols span {
  font-size: 12.5px;
  color: color-mix(in srgb, var(--deep-ink) 84%, var(--deep));
}

.footer__cols a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.footer__cols a:hover {
  border-color: currentColor;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px 34px;
  border-top: 1px solid var(--deep-line);
  font-size: 10.5px;
  color: var(--deep-muted);
}

.footer__up {
  transition: color 0.3s var(--ease);
}

.footer__up:hover {
  color: var(--accent);
}

/* Cart ------------------------------------------------------------------- */

.cart {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
}

.cart.is-open {
  visibility: visible;
  pointer-events: auto;
}

.cart__overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--deep) 55%, transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.cart.is-open .cart__overlay {
  opacity: 1;
}

.cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  background: var(--bg);
  color: var(--ink);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.4);
  transform: translateX(102%);
  transition: transform 0.55s var(--ease);
}

.cart.is-open .cart__panel {
  transform: none;
}

.cart__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.cart__head h2 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px 20px;
}

.cart__empty {
  padding: 40px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.cart__items {
  display: grid;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.cart-item__thumb {
  width: 64px;
  height: 76px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--c1), var(--c2));
}

.cart-item__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.cart-item__price {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  font-size: 13px;
  line-height: 1;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.qty-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.cart-item__qty span {
  min-width: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.cart-item__remove {
  display: inline-block;
  align-self: start;
  margin-top: 8px;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cart-item__remove:hover {
  color: var(--accent-text);
  border-color: var(--accent-text);
}

.cart-item__line {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
}

.cart__foot {
  padding: 20px 24px 26px;
  border-top: 1px solid var(--line);
}

.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.cart__total span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart__total strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
}

.cart__note {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--muted);
}

.cart__foot .btn {
  margin-top: 16px;
}

.cart__demo {
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--accent);
}

/* Toast ------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 400;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Preloader -------------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px var(--pad);
  background: var(--deep);
  color: var(--deep-ink);
  transition: transform 0.9s var(--ease);
}

.preloader.is-done {
  transform: translateY(-101%);
}

.preloader__brand {
  margin-block: auto;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--deep-ink);
}

.preloader__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--deep-line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-muted);
}

.preloader__bar {
  height: 2px;
  margin-top: 10px;
  background: var(--deep-line);
  overflow: hidden;
}

.preloader__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.08s linear;
}

/* Cursor + grain --------------------------------------------------------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  pointer-events: none;
  display: none;
  mix-blend-mode: difference;
}

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor__dot {
  width: 7px;
  height: 7px;
  background: #fff;
}

.cursor__ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.cursor.is-hover .cursor__ring {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.12);
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor .work,
body.has-cursor .swatch {
  cursor: none;
}

body.has-cursor input,
body.has-cursor textarea,
body.has-cursor select {
  cursor: auto;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* Reveal ----------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Noscript --------------------------------------------------------------- */

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 500;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .site-head__inner {
    grid-template-columns: 1fr auto;
  }

  .site-head__actions .btn--outline {
    display: none;
  }

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

  .hero__aside {
    justify-self: start;
    max-width: 460px;
  }

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

  .work:nth-child(even) {
    margin-top: 0;
  }

  .work__cover {
    aspect-ratio: 16 / 11;
  }

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

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

  .footer__top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer__brand {
    font-size: clamp(4.5rem, 22vw, 12rem);
  }
}

@media (max-width: 860px) {
  .section-head--split {
    grid-template-columns: 1fr;
  }

  .section-head--split .section-head__aside {
    justify-self: start;
    max-width: 48ch;
  }

  .display--right {
    text-align: left;
    margin-left: 0;
  }

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

  .manifesto__side {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }

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

  .products .product:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 9px);
  }

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

  .hero-card:nth-child(3) {
    display: none;
  }

  .step {
    position: static;
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .step__output {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  :root {
    --head-h: 66px;
    --pad: 20px;
  }

  .logo__suffix {
    display: none;
  }

  .hero__title {
    font-size: clamp(3rem, 15.5vw, 5rem);
  }

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

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

  .hero-card,
  .hero-card:nth-child(2),
  .hero-card:nth-child(3) {
    height: 62vw;
    min-height: 210px;
    max-height: 300px;
    margin-top: 0;
  }

  .hero-card:nth-child(3) {
    display: flex;
  }

  .hero__foot {
    align-items: flex-start;
  }

  .scroll-cue span:first-child {
    display: none;
  }

  .manifesto__side {
    flex-direction: column;
    gap: 12px;
  }

  .acc-btn {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .acc-body {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .stats {
    gap: 14px;
  }

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

  .products .product:last-child {
    max-width: none;
  }

  .theming__panel {
    padding: 16px;
  }

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

  .footer__cols > div:last-child {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step__output {
    grid-column: 1;
    justify-self: start;
  }

  .contact__direct a {
    font-size: 1.25rem;
  }

  .cart__panel {
    width: 100%;
  }

  .toast {
    white-space: normal;
    width: calc(100% - 40px);
    text-align: center;
  }
}

/* Reduced motion --------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .marquee__track {
    animation: none;
    transform: none;
  }

  .preloader {
    display: none;
  }

  [data-reveal],
  .hero-card {
    opacity: 1;
    transform: none;
  }

  .hero__title .line__inner {
    transform: none;
  }

  .cursor {
    display: none !important;
  }
}
