:root {
  --paper: #f4efe8;
  --ink: #1a1916;
  --muted: #5c574e;
  --line: #d4cdc2;
  --navy: #24344f;
  --navy-hover: #1a2740;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

.grain,
.scribble,
.map-mark,
.sec-index,
.card-index,
.ghost-word,
.spine,
.folio {
  display: none;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-switch {
  display: none;
}

.theme-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 10px;
  cursor: pointer;
}

.theme-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: #f7f4ee;
}

.portrait-frame {
  margin: 0;
}

.portrait-frame .portrait {
  width: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.wordmark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

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

.nav-cta {
  display: none;
}

.hero {
  padding: 120px 0 112px;
}

.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.hero h1 em {
  font-style: italic;
}

.lede {
  margin-top: 36px;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.fix-line {
  margin-top: 40px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.cta {
  display: inline-block;
  margin-top: 36px;
  background: var(--navy);
  color: #f7f4ee;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 2px;
}

.cta:hover {
  background: var(--navy-hover);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

section {
  padding: 112px 0;
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

#contact .kicker {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 40px;
  line-height: 1.15;
}

h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 40px;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: color-mix(in srgb, white 55%, var(--paper));
  border: 1px solid var(--line);
  padding: 36px 32px;
}

.card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.card p,
.not-item p,
.bio,
.contact-copy {
  color: var(--muted);
}

.not-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.not-item h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

[data-theme="classic"] .contact-layout {
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 48px;
  align-items: stretch;
}

[data-theme="classic"] .portrait-frame {
  position: relative;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

[data-theme="classic"] .portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 12%;
}

#why-this .bio {
  max-width: 42rem;
}

#why-this .cta,
.contact-body .cta {
  margin-top: 32px;
}

.contact-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.75rem;
  margin: 36px 0 12px;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.meta a {
  color: var(--navy);
}

.meta p + p {
  margin-top: 6px;
}

.reach {
  margin-top: 18px;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer {
  padding: 28px 0 48px;
  font-size: 0.8rem;
  color: var(--muted);
}

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

  .nav-cta {
    display: inline-block;
    margin-top: 0;
    padding: 12px 16px;
    font-size: 0.7rem;
  }

  .theme-switch button {
    padding: 8px 8px;
    font-size: 0.625rem;
  }

  .hero {
    padding: 72px 0 80px;
  }

  section {
    padding: 72px 0;
  }

  .offer-grid,
  .not-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: 32px;
  }

  [data-theme="classic"] .contact-layout {
    grid-template-columns: 1fr;
  }

  [data-theme="classic"] .portrait-frame {
    position: relative;
    max-width: 200px;
    height: 240px;
  }

  [data-theme="classic"] .portrait {
    position: absolute;
    max-height: none;
    aspect-ratio: auto;
  }

  .portrait {
    max-width: 360px;
  }
}

/* Atelier — type-first, serif/mono split, offset grid. No grain, numbers, or pill CTAs. */
[data-theme="atelier"] {
  --paper: #e8e3d6;
  --ink: #141311;
  --muted: #5c574e;
  --line: #c9c2b4;
  --navy: #2a3344;
  --navy-hover: #1c2430;
  --accent: #6f3a2c;
  --max: 1180px;
}

[data-theme="atelier"] body {
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.7;
}

[data-theme="atelier"] .nav {
  background: var(--paper);
  border-bottom: 0;
}

[data-theme="atelier"] .nav-inner {
  padding: 22px 0 8px;
  align-items: baseline;
}

[data-theme="atelier"] .wordmark {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.03em;
}

[data-theme="atelier"] .nav-links {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  gap: 22px;
}

[data-theme="atelier"] .nav-links a {
  color: var(--ink);
  opacity: 0.55;
}

[data-theme="atelier"] .nav-links a:hover {
  opacity: 1;
}

[data-theme="atelier"] .nav-links a::after {
  display: none;
}

[data-theme="atelier"] .theme-switch {
  border: 0;
  border-radius: 0;
  gap: 0;
  overflow: visible;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

[data-theme="atelier"] .theme-switch button {
  padding: 0 6px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.72rem;
  color: var(--ink);
  opacity: 0.4;
}

[data-theme="atelier"] .theme-switch button[aria-pressed="true"] {
  background: transparent;
  color: var(--ink);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="atelier"] .hero {
  position: relative;
  padding: 72px 0 108px;
  overflow: hidden;
}

[data-theme="atelier"] .ghost-word {
  display: block;
  position: absolute;
  left: -6%;
  top: -6%;
  z-index: 0;
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-style: italic;
  font-size: clamp(7rem, 22vw, 18rem);
  line-height: 0.75;
  letter-spacing: -0.06em;
  color: var(--ink);
  opacity: 0.055;
  pointer-events: none;
  white-space: nowrap;
  transform: translate3d(0, var(--ghost, 0px), 0);
}

[data-theme="atelier"] .hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  grid-template-areas:
    "title copy"
    "mark copy";
  column-gap: 48px;
  row-gap: 20px;
  align-items: end;
}

[data-theme="atelier"] .hero h1 {
  grid-area: title;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.03em;
  max-width: none;
  overflow: visible;
  transform: translate3d(0, var(--sy, 0px), 0);
  will-change: transform;
}

[data-theme="atelier"] .hero h1 > .mask:not(.hero-word) {
  max-width: 16ch;
}

[data-theme="atelier"] .hero-word {
  display: block;
  font-style: italic;
  font-size: clamp(3.2rem, 10vw, 7.4rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  margin: 0.04em 0 0.08em;
  color: var(--accent);
  width: max-content;
  max-width: none;
  white-space: nowrap;
  transform: scale(var(--sc, 1)) rotate(var(--rot, 0deg));
  transform-origin: left center;
}

[data-theme="atelier"] .map-mark {
  display: block;
  grid-area: mark;
  width: 210px;
  height: 48px;
  stroke: var(--ink);
  stroke-width: 1.1;
  margin-left: 2px;
  transform: translate3d(0, var(--sy, 0px), 0);
}

[data-theme="atelier"] .hero-copy {
  grid-area: copy;
  padding-top: 8px;
  border-left: 1px solid var(--line);
  padding-left: 36px;
}

[data-theme="atelier"] .lede {
  margin-top: 0;
  max-width: none;
  font-size: 1rem;
  color: var(--muted);
}

[data-theme="atelier"] .fix-line {
  margin-top: 28px;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.55rem;
  font-style: italic;
  letter-spacing: -0.02em;
  text-align: right;
}

[data-theme="atelier"] .cta {
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 5px;
  margin-top: 32px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="atelier"] .cta:hover {
  background: transparent;
  color: var(--ink);
  opacity: 0.5;
}

[data-theme="atelier"] .spine {
  display: block;
  position: fixed;
  left: 16px;
  top: 0;
  bottom: 0;
  z-index: 12;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

[data-theme="atelier"] .spine i {
  display: block;
  width: 1px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(var(--page, 0));
  transform-origin: top;
}

[data-theme="atelier"] .folio {
  display: block;
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 12;
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--accent);
  opacity: var(--folio, 0);
  pointer-events: none;
}

[data-theme="atelier"] .rule {
  width: 100%;
  max-width: none;
  border-top: 1px solid var(--line);
  transform: scaleX(var(--rule, 0));
  transform-origin: left center;
}

[data-theme="atelier"] section {
  padding: 108px 0;
  position: relative;
}

[data-theme="atelier"] #what-this-isnt {
  background: #ddd7c8;
}

[data-theme="atelier"] .kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  opacity: 0.45;
}

[data-theme="atelier"] #what-i-do .kicker {
  position: absolute;
  left: max(10px, calc((100vw - var(--max)) / 2 - 2.4rem));
  top: 112px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.18em;
  opacity: 0.55;
}

[data-theme="atelier"] h2 {
  font-family: Newsreader, Georgia, serif;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  margin-bottom: 56px;
  letter-spacing: -0.03em;
}

[data-theme="atelier"] .offer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-left: 36px;
}

[data-theme="atelier"] .offer-grid::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--ink);
}

[data-theme="atelier"] .card {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0 0 48px;
}

[data-theme="atelier"] .card:last-child {
  padding-bottom: 0;
}

[data-theme="atelier"] .card::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  background: var(--paper);
  border-radius: 50%;
}

[data-theme="atelier"] .card h3 {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  margin-bottom: 12px;
}

[data-theme="atelier"] .card p {
  max-width: 38rem;
}

[data-theme="atelier"] .not-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

[data-theme="atelier"] .not-item {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: transparent;
  border-left: 0;
}

[data-theme="atelier"] .not-item:last-child {
  border-bottom: 1px solid var(--line);
}

[data-theme="atelier"] .not-item h3 {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  font-style: italic;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

[data-theme="atelier"] .contact-layout {
  grid-template-columns: 0.72fr 1.28fr;
  gap: 56px;
  align-items: start;
}

[data-theme="atelier"] .portrait-frame {
  margin-top: 8px;
  position: relative;
}

[data-theme="atelier"] .portrait-frame::before {
  content: "";
  position: absolute;
  inset: 28px -22px -22px 22px;
  background: var(--navy);
  z-index: 0;
}

[data-theme="atelier"] .portrait-frame::after {
  display: none;
}

[data-theme="atelier"] .portrait {
  position: relative;
  z-index: 1;
  width: 92%;
  margin-left: 0;
  filter: none;
  aspect-ratio: 4 / 5;
}

[data-theme="atelier"] .contact-name {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.65rem;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 100%;
}

[data-theme="atelier"] #contact .kicker {
  font-family: Newsreader, Georgia, serif;
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  text-transform: none;
  opacity: 1;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 16ch;
}

[data-theme="atelier"] .contact-copy {
  max-width: 36rem;
  margin-bottom: 8px;
}

[data-theme="atelier"] .contact-id {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

[data-theme="atelier"] .meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
}

[data-theme="atelier"] .meta a {
  color: var(--ink);
}

[data-theme="atelier"] .reach {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0;
  font-size: 0.75rem;
  margin-top: 18px;
  max-width: 22rem;
}

@media (max-width: 860px) {
  [data-theme="atelier"] .hero .wrap,
  [data-theme="atelier"] .not-item {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  [data-theme="atelier"] .hero-copy {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }

  [data-theme="atelier"] .fix-line {
    text-align: left;
  }

  [data-theme="atelier"] .hero-word {
    margin-right: 0;
    font-size: clamp(2.8rem, 18vw, 5.2rem);
  }

  [data-theme="atelier"] .ghost-word {
    left: 0;
    top: 2%;
    font-size: clamp(2.6rem, 14vw, 5.5rem);
    letter-spacing: -0.04em;
  }

  [data-theme="atelier"] #what-i-do .kicker {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
  }

  [data-theme="atelier"] .contact-layout {
    grid-template-columns: 1fr;
  }

  [data-theme="atelier"] .hero h1,
  [data-theme="atelier"] .map-mark,
  [data-theme="atelier"] .hero-copy {
    grid-area: auto;
  }

  [data-theme="atelier"] .portrait {
    width: 100%;
    max-width: 360px;
    margin-left: 0;
  }

  [data-theme="atelier"] .not-item {
    gap: 10px;
    padding: 24px 0;
  }

  [data-theme="atelier"] .spine,
  [data-theme="atelier"] .folio {
    display: none;
  }
}

/* Motion — Atelier only. Line-mask type, SVG draw, blur-to-clarity, stagger. */
[data-theme="atelier"] .mask {
  display: block;
  overflow: hidden;
}

[data-theme="atelier"] .hero-word.mask {
  display: block;
  overflow: visible;
}

[data-theme="atelier"] .mask-inner {
  display: block;
  transform: translate3d(0, 115%, 0);
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="atelier"] .hero-word .mask-inner {
  width: max-content;
  white-space: nowrap;
}

[data-theme="atelier"].motion-on .mask:nth-of-type(1) .mask-inner {
  transform: none;
  transition-delay: 0.05s;
}

[data-theme="atelier"].motion-on .hero-word .mask-inner {
  transform: none;
  transition-delay: 0.22s;
}

[data-theme="atelier"].motion-on .mask:nth-of-type(2) .mask-inner {
  transform: none;
  transition-delay: 0.38s;
}

[data-theme="atelier"] .map-mark circle,
[data-theme="atelier"] .map-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill: none;
  transition: stroke-dashoffset 0.8s ease, fill 0.4s ease;
}

[data-theme="atelier"].motion-on .map-mark circle:nth-of-type(1) {
  stroke-dashoffset: 0;
  transition-delay: 0.7s;
}

[data-theme="atelier"].motion-on .map-mark path {
  stroke-dashoffset: 0;
  transition-delay: 0.95s;
}

[data-theme="atelier"].motion-on .map-mark circle:nth-of-type(2) {
  stroke-dashoffset: 0;
  fill: var(--accent);
  stroke: var(--accent);
  transition-delay: 1.1s;
}

[data-theme="atelier"].motion-on .map-mark circle:nth-of-type(3) {
  stroke-dashoffset: 0;
  transition-delay: 1.28s;
}

[data-theme="atelier"] .hero-copy {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}

[data-theme="atelier"] .hero-copy.is-in {
  opacity: 1;
  transform: translate3d(0, var(--sy, 0px), 0);
}

[data-theme="atelier"] .cta {
  position: relative;
  border-bottom: 0;
  padding-bottom: 6px;
  will-change: transform;
}

[data-theme="atelier"] .cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="atelier"].motion-on .cta::after,
[data-theme="atelier"] .cta:hover::after {
  transform: scaleX(1);
}

[data-theme="atelier"] .cta:hover {
  opacity: 1;
}

[data-theme="atelier"] .cta:hover::after {
  transform-origin: right;
  transform: scaleX(0);
  transition-duration: 0.4s;
}

[data-theme="atelier"] .offer-grid::before {
  transform: scaleY(var(--draw, 0));
  transform-origin: top;
}

[data-theme="atelier"] .card,
[data-theme="atelier"] .not-item,
[data-theme="atelier"] h2,
[data-theme="atelier"] .contact-name {
  opacity: 0;
}

[data-theme="atelier"] .card.is-in,
[data-theme="atelier"] h2.is-in {
  opacity: var(--op, 1);
  transform: translate3d(0, var(--sy, 0px), 0);
}

[data-theme="atelier"] .not-item.is-in {
  opacity: var(--op, 1);
  transform: translate3d(var(--sx, 0px), 0, 0);
}

[data-theme="atelier"] .contact-name.is-in {
  opacity: var(--op, 1);
  transform: translate3d(var(--sx, 0px), 0, 0);
}

[data-theme="atelier"] .portrait-frame {
  overflow: hidden;
}

[data-theme="atelier"] .portrait {
  filter: blur(14px);
  transform: translate3d(0, var(--shift, 0px), 0) scale(1.07);
  clip-path: inset(0 var(--wipe, 100%) 0 0);
  transition: filter 1.15s ease;
}

[data-theme="atelier"] .portrait-frame.is-in .portrait {
  filter: blur(0);
  transform: translate3d(0, var(--shift, 0px), 0) scale(1);
}

[data-theme="atelier"] .portrait-frame.is-in:hover .portrait {
  transform: translate3d(0, var(--shift, 0px), 0) scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="atelier"] .mask-inner,
  [data-theme="atelier"] .hero-copy,
  [data-theme="atelier"] .card,
  [data-theme="atelier"] .not-item,
  [data-theme="atelier"] h2,
  [data-theme="atelier"] .contact-name,
  [data-theme="atelier"] .portrait,
  [data-theme="atelier"] .offer-grid::before,
  [data-theme="atelier"] .cta::after {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
    clip-path: none !important;
    --page: 1 !important;
    --folio: 0 !important;
    --wipe: 0% !important;
    --sy: 0px !important;
    --sx: 0px !important;
    --sc: 1 !important;
    --rot: 0deg !important;
    --op: 1 !important;
    --draw: 1 !important;
    --rule: 1 !important;
  }
}

/* ——— Custom theme ——— */

.custom-hero {
  display: none;
}

[data-theme="custom"] {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #3a3a3a;
  --line: #d0d0d0;
  --navy: #0a0a0a;
  --navy-hover: #000;
  --custom-panel: #f5f5f5;
  /* Base rhythm between flush panels — tight, but room for shadow */
  --custom-section-gap: 36px;
  /* Half-height of straddling title/footer bars (Client Solutions) */
  --custom-straddle-clear: clamp(44px, 5.5vw, 56px);
  --custom-panel-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.06);
}

[data-theme="custom"] .custom-hero,
[data-theme="custom"] .custom-index,
[data-theme="custom"] .custom-why,
[data-theme="custom"] .custom-next,
[data-theme="custom"] .custom-block,
[data-theme="custom"] .custom-grey-slide,
[data-theme="custom"] .custom-split-slide,
[data-theme="custom"] .custom-plain-slide,
[data-theme="custom"] .custom-split-rev,
[data-theme="custom"] .custom-end-slide {
  padding: 0;
}

[data-theme="custom"] body {
  background: #ffffff;
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.75;
}

[data-theme="custom"] .nav {
  background: color-mix(in srgb, #ffffff 90%, transparent);
  border-bottom-color: #ddd;
}

[data-theme="custom"] .wordmark {
  font-family: "Futura PT", Futura, "Century Gothic", sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

[data-theme="custom"] .nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-theme="custom"] .theme-switch {
  border-color: #bbb;
}

[data-theme="custom"] .theme-switch button[aria-pressed="true"] {
  background: #111;
  color: #fff;
}

[data-theme="custom"] .cta {
  background: #111;
  border-radius: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

[data-theme="custom"] .cta:hover {
  background: #000;
}

[data-theme="custom"] .hero {
  padding: 40px 0 var(--custom-section-gap);
  overflow: visible;
}

[data-theme="custom"] .hero-default {
  display: none;
}

[data-theme="custom"] .custom-hero {
  display: block;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  overflow: visible;
}

[data-theme="custom"] .custom-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 960 / 460;
  min-height: 0;
  height: auto;
  background: var(--custom-panel);
  box-shadow: var(--custom-panel-shadow);
  overflow: visible;
  position: relative;
  animation: custom-panel-in 0.85s ease both;
}

[data-theme="custom"] .custom-message {
  background: var(--custom-panel);
  color: #1a1a1a;
  padding: clamp(36px, 5vw, 56px) clamp(36px, 4.5vw, 56px) clamp(32px, 4vw, 48px)
    clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  z-index: 1;
}

[data-theme="custom"] .custom-title {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0 0 34px;
  padding: 0;
  border: 0;
  line-height: 1.05;
  animation: custom-rise 0.7s ease 0.15s both;
}

[data-theme="custom"] .custom-message-cta {
  align-self: flex-start;
  margin: 22px 0 0;
  padding: 12px 22px;
  background: #0a0a0a;
  color: #fff;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(0.72rem, 1.1vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  animation: custom-rise 0.7s ease 0.4s both;
}

[data-theme="custom"] .custom-heading-bar {
  width: 6px;
  height: 74px;
  background: #111;
  flex-shrink: 0;
  margin-top: 4px;
}

[data-theme="custom"] .custom-heading-text {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: #1a1a1a;
}

[data-theme="custom"] .custom-title-our {
  display: block;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
}

[data-theme="custom"] .custom-title-message {
  display: block;
  font-weight: 500;
  font-size: clamp(2.25rem, 4.4vw, 2.95rem);
  margin-top: 2px;
}

[data-theme="custom"] .custom-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 23rem;
  animation: custom-rise 0.7s ease 0.32s both;
}

[data-theme="custom"] .custom-copy p {
  margin: 0 0 22px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.8125rem, 1.1vw, 0.84375rem);
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0;
  color: #3a3a3a;
  text-align: justify;
}

[data-theme="custom"] .custom-copy p:last-child {
  margin-bottom: 0;
}

[data-theme="custom"] .custom-aside {
  background: #0a0a0a;
  color: #fff;
  display: block;
  padding: 0;
  position: relative;
  min-height: 0;
  overflow: visible;
}

[data-theme="custom"] .custom-aside::before {
  display: none;
}

[data-theme="custom"] .custom-id {
  position: absolute;
  left: -14px;
  /* Avoid translateY(-50%) — half-pixel compositing leaves a hairline under the text */
  top: 0;
  bottom: 0;
  margin-top: auto;
  margin-bottom: auto;
  width: auto;
  max-width: 38%;
  height: fit-content;
  min-height: 72px;
  background: #0a0a0a;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  /* overhang 14px; pad the same so text lines up with the big black panel edge */
  padding: 18px 20px 18px 14px;
  z-index: 3;
  text-align: left;
  animation: custom-id-in 0.7s ease 0.4s both;
}

[data-theme="custom"] .custom-name {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

[data-theme="custom"] .custom-role {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0;
  opacity: 1;
}

[data-theme="custom"] .custom-photo {
  position: absolute;
  right: -18px;
  top: 50%;
  width: 62%;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  z-index: 2;
  overflow: hidden;
  background: #b9b9b9;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  transform: translateY(-50%);
  animation: custom-photo-in 0.9s ease 0.25s both;
}

[data-theme="custom"] .custom-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

@keyframes custom-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
    box-shadow: var(--custom-panel-shadow);
  }
}

@keyframes custom-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes custom-id-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes custom-photo-in {
  from {
    opacity: 0;
    transform: translate(14px, -50%);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@media (max-width: 900px) {
  [data-theme="custom"] .custom-panel {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  [data-theme="custom"] .custom-aside {
    min-height: 420px;
    aspect-ratio: 4 / 5;
  }

  [data-theme="custom"] .custom-aside::before {
    display: none;
  }

  [data-theme="custom"] .custom-id {
    left: 0;
    top: auto;
    bottom: 24px;
    transform: none;
    max-width: calc(100% - 64% - 20px);
    padding: 16px 18px;
    animation: custom-rise 0.7s ease 0.4s both;
  }

  [data-theme="custom"] .custom-photo {
    right: -12px;
    width: 64%;
  }
}

@media (max-width: 560px) {
  [data-theme="custom"] .hero {
    padding: 28px 0 40px;
  }

  [data-theme="custom"] .custom-hero {
    width: calc(100% - 24px);
  }

  [data-theme="custom"] .custom-message {
    padding: 32px 24px;
  }

  [data-theme="custom"] .custom-title {
    margin-bottom: 24px;
    gap: 14px;
  }

  [data-theme="custom"] .custom-heading-bar {
    height: 52px;
  }

  [data-theme="custom"] .custom-aside {
    min-height: 360px;
    aspect-ratio: 3 / 4;
  }

  [data-theme="custom"] .custom-id {
    left: 0;
    bottom: 16px;
    top: auto;
    transform: none;
    width: auto;
    max-width: calc(100% - 62% - 16px);
    height: auto;
    padding: 14px 16px;
    animation: custom-rise 0.7s ease 0.4s both;
  }

  [data-theme="custom"] .custom-photo {
    right: -10px;
    width: 62%;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="custom"] .custom-panel,
  [data-theme="custom"] .custom-title,
  [data-theme="custom"] .custom-copy,
  [data-theme="custom"] .custom-id,
  [data-theme="custom"] .custom-photo {
    animation: none !important;
  }
}

.custom-index {
  display: none;
}

[data-theme="custom"] .custom-index {
  display: block;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto var(--custom-section-gap);
  padding-right: 0;
  overflow: visible;
}

[data-theme="custom"] .custom-index-panel {
  position: relative;
  aspect-ratio: 960 / 460;
  min-height: 0;
  background: var(--custom-panel);
  box-shadow: var(--custom-panel-shadow);
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
  box-sizing: border-box;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: custom-panel-in 0.85s ease 0.12s both;
  container-type: inline-size;
  container-name: indexpanel;
}

[data-theme="custom"] .custom-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 28px);
  row-gap: clamp(36px, 5vw, 56px);
  flex: 0 0 auto;
  padding-right: 0;
}

[data-theme="custom"] .custom-index-item:nth-of-type(1),
[data-theme="custom"] .custom-index-item:nth-of-type(2),
[data-theme="custom"] .custom-index-item:nth-of-type(3) {
  grid-row: 1;
}

[data-theme="custom"] .custom-index-item:nth-of-type(1) { grid-column: 1; }
[data-theme="custom"] .custom-index-item:nth-of-type(2) { grid-column: 2; }
[data-theme="custom"] .custom-index-item:nth-of-type(3) { grid-column: 3; }

[data-theme="custom"] .custom-index-item:nth-of-type(4),
[data-theme="custom"] .custom-index-item:nth-of-type(5),
[data-theme="custom"] .custom-index-item:nth-of-type(6),
[data-theme="custom"] .custom-index-item:nth-of-type(7) {
  grid-row: 2;
}

[data-theme="custom"] .custom-index-item:nth-of-type(4) { grid-column: 1; }
[data-theme="custom"] .custom-index-item:nth-of-type(5) { grid-column: 2; }
[data-theme="custom"] .custom-index-item:nth-of-type(6) { grid-column: 3; }
[data-theme="custom"] .custom-index-item:nth-of-type(7) { grid-column: 4; }

[data-theme="custom"] .custom-index-item {
  max-width: 100%;
}

[data-theme="custom"] .custom-index-item h2 {
  margin: 0 0 18px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.3rem, 1.85vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.15;
  color: #111;
}

[data-theme="custom"] .custom-index-item p {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.8125rem, 1.1vw, 0.84375rem);
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: 0;
  color: #3a3a3a;
  text-align: justify;
  max-width: 12.25rem;
}

[data-theme="custom"] .custom-index-slot {
  grid-column: 4;
  grid-row: 1;
  position: relative;
  align-self: center;
  height: clamp(100px, 12.5vw, 120px);
  overflow: visible;
}

[data-theme="custom"] .custom-index-mark {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  /* Slot width + panel right padding + page margin to viewport edge */
  width: calc(100% + clamp(28px, 4vw, 48px) + (100vw - 100cqi) / 2);
  margin: 0;
  padding: 0;
  background: #000;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  overflow: visible;
  z-index: 2;
}

[data-theme="custom"] .custom-index-mark img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  [data-theme="custom"] .custom-index {
    padding-right: 0;
  }

  [data-theme="custom"] .custom-index-panel {
    aspect-ratio: auto;
    min-height: 420px;
  }

  [data-theme="custom"] .custom-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 0;
    padding-top: 72px;
  }

  [data-theme="custom"] .custom-index-item:nth-of-type(n) {
    grid-row: auto;
    grid-column: auto;
  }

  [data-theme="custom"] .custom-index-slot {
    grid-column: 1 / -1;
    grid-row: 1;
    height: clamp(72px, 16vw, 92px);
    margin-bottom: 8px;
  }

  [data-theme="custom"] .custom-index-mark {
    width: calc(100% + clamp(20px, 4vw, 28px) + (100vw - 100cqi) / 2);
  }
}

@media (max-width: 560px) {
  [data-theme="custom"] .custom-index {
    width: calc(100% - 24px);
    margin-bottom: var(--custom-section-gap);
  }

  [data-theme="custom"] .custom-index-panel {
    padding: 28px 20px 32px;
  }

  [data-theme="custom"] .custom-index-grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
    padding-top: 64px;
  }

  [data-theme="custom"] .custom-index-item p {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="custom"] .custom-index-panel {
    animation: none !important;
  }
}

/* ——— Custom: Why select ——— */

.custom-why {
  display: none;
}

[data-theme="custom"] .custom-why {
  display: block;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto var(--custom-section-gap);
}

[data-theme="custom"] .custom-why-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  aspect-ratio: 960 / 460;
  min-height: 0;
  background: var(--custom-panel);
  box-shadow: var(--custom-panel-shadow);
  overflow: visible;
  position: relative;
  animation: custom-panel-in 0.85s ease 0.08s both;
}

[data-theme="custom"] .custom-why-message {
  background: var(--custom-panel);
  color: #1a1a1a;
  padding: clamp(36px, 5vw, 56px) clamp(36px, 4.5vw, 56px) clamp(32px, 4vw, 48px)
    clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

[data-theme="custom"] .custom-why-title {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1.05;
}

[data-theme="custom"] .custom-why-heading-text {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: #1a1a1a;
}

[data-theme="custom"] .custom-why-line {
  display: block;
  font-weight: 400;
  font-size: clamp(1.65rem, 2.8vw, 2rem);
}

[data-theme="custom"] .custom-why-line-name {
  font-weight: 500;
  font-size: clamp(2.85rem, 5.6vw, 3.75rem);
  margin-top: 2px;
}

[data-theme="custom"] .custom-why-copy {
  margin-top: 28px;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

[data-theme="custom"] .custom-why-lede {
  margin: 0 0 22px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.8125rem, 1.1vw, 0.875rem);
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: 0;
  color: #3a3a3a;
  text-align: justify;
}

[data-theme="custom"] .custom-why-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

[data-theme="custom"] .custom-why-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

[data-theme="custom"] .custom-why-icon {
  flex: 0 0 auto;
  width: clamp(2.75rem, 3.8vw, 3.35rem);
  height: clamp(2.75rem, 3.8vw, 3.35rem);
  object-fit: contain;
  display: block;
  margin-top: 1px;
  border-radius: 50%;
}

[data-theme="custom"] .custom-why-point-body {
  min-width: 0;
  flex: 1 1 auto;
}

[data-theme="custom"] .custom-why-point h3 {
  margin: 0 0 6px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.15;
  color: #111;
}

[data-theme="custom"] .custom-why-point p {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: 0;
  color: #3a3a3a;
  text-align: justify;
}

[data-theme="custom"] .custom-why-aside {
  background: #0a0a0a;
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 36px);
}

[data-theme="custom"] .custom-why-aside::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 96px;
  background: #0a0a0a;
  z-index: 2;
}

[data-theme="custom"] .custom-why-photo {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

[data-theme="custom"] .custom-why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 900px) {
  [data-theme="custom"] .custom-why-panel {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  [data-theme="custom"] .custom-why-aside {
    min-height: 280px;
  }

  [data-theme="custom"] .custom-why-aside::before {
    display: none;
  }
}

@media (max-width: 560px) {
  [data-theme="custom"] .custom-why {
    width: calc(100% - 24px);
    margin-bottom: var(--custom-section-gap);
  }

  [data-theme="custom"] .custom-why-message {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="custom"] .custom-why-panel {
    animation: none !important;
  }
}

/* ——— Custom: Our Services ——— */

.custom-next {
  display: none;
}

[data-theme="custom"] .custom-next {
  display: block;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto var(--custom-section-gap);
}

[data-theme="custom"] .custom-next-panel {
  aspect-ratio: 960 / 460;
  min-height: 0;
  background: var(--custom-panel);
  box-shadow: var(--custom-panel-shadow);
  position: relative;
  padding: clamp(36px, 5vw, 56px) clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  animation: custom-panel-in 0.85s ease 0.1s both;
}

[data-theme="custom"] .custom-services-title {
  margin: 0 0 16px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.05;
  color: #1a1a1a;
}

[data-theme="custom"] .custom-services-title-our {
  display: block;
  font-weight: 400;
  font-size: clamp(2.45rem, 4.8vw, 3.25rem);
}

[data-theme="custom"] .custom-services-title-services {
  display: block;
  font-weight: 500;
  font-size: clamp(2.85rem, 5.6vw, 3.75rem);
  margin-top: 2px;
}

[data-theme="custom"] .custom-services-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  margin: 0 0 clamp(28px, 4vw, 40px);
}

[data-theme="custom"] .custom-services-lede {
  margin: 0;
  max-width: 42rem;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.8125rem, 1.1vw, 0.9rem);
  line-height: 1.55;
  font-weight: 300;
  color: #3a3a3a;
}

[data-theme="custom"] .custom-services-squares {
  position: static;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  flex-shrink: 0;
  padding-bottom: 0.15em;
}

[data-theme="custom"] .custom-services-squares span {
  display: block;
  width: clamp(10px, 1.1vw, 14px);
  height: clamp(10px, 1.1vw, 14px);
  background: #111;
}

[data-theme="custom"] .custom-services-squares span:nth-child(1) {
  background: #d8d8d8;
}

[data-theme="custom"] .custom-services-squares span:nth-child(2) {
  background: #b0b0b0;
}

[data-theme="custom"] .custom-services-squares span:nth-child(3) {
  background: #7a7a7a;
}

[data-theme="custom"] .custom-services-squares span:nth-child(4) {
  background: #3f3f3f;
}

[data-theme="custom"] .custom-services-squares span:nth-child(5) {
  background: #0a0a0a;
}

[data-theme="custom"] .custom-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 48px);
  row-gap: clamp(24px, 3.5vw, 36px);
  margin-top: auto;
}

[data-theme="custom"] .custom-services-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

[data-theme="custom"] .custom-services-icon {
  flex: 0 0 auto;
  width: clamp(3.25rem, 4.5vw, 4rem);
  height: clamp(3.25rem, 4.5vw, 4rem);
  object-fit: contain;
  display: block;
  margin-top: 1px;
  border-radius: 50%;
}

[data-theme="custom"] .custom-services-item-body {
  min-width: 0;
  flex: 1 1 auto;
}

[data-theme="custom"] .custom-services-item h3 {
  margin: 0 0 10px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.15;
  color: #111;
}

[data-theme="custom"] .custom-services-item p {
  margin: 0;
  max-width: 16rem;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  line-height: 1.45;
  font-weight: 300;
  color: #3a3a3a;
}

@media (max-width: 900px) {
  [data-theme="custom"] .custom-next-panel {
    aspect-ratio: auto;
    min-height: 0;
  }

  [data-theme="custom"] .custom-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  [data-theme="custom"] .custom-next {
    width: calc(100% - 24px);
    margin-bottom: var(--custom-section-gap);
  }

  [data-theme="custom"] .custom-next-panel {
    padding: 32px 24px;
  }

  [data-theme="custom"] .custom-services-grid {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  [data-theme="custom"] .custom-services-item p {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="custom"] .custom-next-panel {
    animation: none !important;
  }
}

/* ——— Custom: next grey panel (placeholder) ——— */

.custom-block {
  display: none;
}

[data-theme="custom"] .custom-block {
  display: block;
  width: min(1180px, calc(100% - 48px));
  /* Extra clearance: title straddles top edge, footer straddles bottom */
  margin: calc(var(--custom-section-gap) + var(--custom-straddle-clear)) auto;
  overflow: visible;
}

[data-theme="custom"] .custom-block-panel {
  --sol-grid: min(380px, 46%);
  --sol-side: clamp(28px, 4vw, 48px);
  --sol-num: clamp(72px, 14vw, 110px);
  --sol-copy-w: min(100%, 16.5rem);
  aspect-ratio: 960 / 460;
  min-height: 0;
  background: var(--custom-panel);
  box-shadow: var(--custom-panel-shadow);
  position: relative;
  overflow: visible;
  animation: custom-panel-in 0.85s ease 0.12s both;
}

[data-theme="custom"] .custom-solutions-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: clamp(1.15rem, 2.4vw, 1.65rem) clamp(3.5rem, 7vw, 5.5rem);
  background: #0a0a0a;
  color: #fff;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  z-index: 3;
}

[data-theme="custom"] .custom-solutions-footer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  margin: 0;
  padding: 0 clamp(3.5rem, 7vw, 5.5rem);
  height: clamp(28px, 4vw, 40px);
  background: #0a0a0a;
  color: transparent;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: clamp(28px, 4vw, 40px);
  white-space: nowrap;
  overflow: hidden;
  /* Hide the half that sits on the grey panel — only the tab below shows */
  clip-path: inset(50% 0 0 0);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

[data-theme="custom"] .custom-solutions-item {
  position: absolute;
  z-index: 2;
  width: calc((100% - var(--sol-grid)) / 2 - var(--sol-side));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
}

/* One shared column width for all four items */
[data-theme="custom"] .custom-solutions-copy {
  display: flex;
  flex-direction: column;
  width: var(--sol-copy-w);
  max-width: 100%;
}

[data-theme="custom"] .custom-solutions-item h3 {
  margin: 0 0 8px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.15;
  color: #111;
  text-align: left;
  width: 100%;
}

[data-theme="custom"] .custom-solutions-item-2 h3 {
  white-space: nowrap;
}

[data-theme="custom"] .custom-solutions-item-4 h3 {
  white-space: nowrap;
}

[data-theme="custom"] .custom-solutions-item p {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  line-height: 1.45;
  font-weight: 300;
  color: #3a3a3a;
  text-align: justify;
  width: 100%;
}

[data-theme="custom"] .custom-solutions-item-1 {
  left: var(--sol-side);
  top: calc(50% - var(--sol-grid) / 2 + var(--sol-grid) * 0.03);
  height: var(--sol-num);
}

[data-theme="custom"] .custom-solutions-item-2 {
  right: var(--sol-side);
  top: calc(50% - var(--sol-grid) / 2 + var(--sol-grid) * 0.03);
  height: var(--sol-num);
}

[data-theme="custom"] .custom-solutions-item-3 {
  left: var(--sol-side);
  bottom: calc(50% - var(--sol-grid) / 2 + var(--sol-grid) * 0.03);
  height: var(--sol-num);
}

[data-theme="custom"] .custom-solutions-item-4 {
  right: var(--sol-side);
  bottom: calc(50% - var(--sol-grid) / 2 + var(--sol-grid) * 0.03);
  height: var(--sol-num);
}

[data-theme="custom"] .custom-solutions-grid {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: var(--sol-grid);
  aspect-ratio: 1;
  margin: 0;
  gap: 0;
  overflow: visible;
}

[data-theme="custom"] .custom-solutions-shape {
  position: relative;
  width: 88%;
  height: 88%;
  background: #dedede;
  overflow: visible;
}

[data-theme="custom"] .custom-solutions-shape:nth-child(1) {
  justify-self: start;
  align-self: start;
  border-top-left-radius: 100%;
}

[data-theme="custom"] .custom-solutions-shape:nth-child(2) {
  justify-self: end;
  align-self: start;
  border-top-right-radius: 100%;
}

[data-theme="custom"] .custom-solutions-shape:nth-child(3) {
  justify-self: start;
  align-self: end;
  border-bottom-left-radius: 100%;
}

[data-theme="custom"] .custom-solutions-shape:nth-child(4) {
  justify-self: end;
  align-self: end;
  border-bottom-right-radius: 100%;
}

[data-theme="custom"] .custom-solutions-number {
  position: absolute;
  width: clamp(72px, 14vw, 110px);
  height: clamp(72px, 14vw, 110px);
  border: clamp(6px, 1.1vw, 10px) solid #000;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: #000;
}

[data-theme="custom"] .custom-solutions-shape:nth-child(1) .custom-solutions-number {
  top: 6%;
  left: -3%;
}

[data-theme="custom"] .custom-solutions-shape:nth-child(2) .custom-solutions-number {
  top: 6%;
  right: -3%;
}

[data-theme="custom"] .custom-solutions-shape:nth-child(3) .custom-solutions-number {
  bottom: 6%;
  left: -3%;
}

[data-theme="custom"] .custom-solutions-shape:nth-child(4) .custom-solutions-number {
  bottom: 6%;
  right: -3%;
}

/* Grey slide — Custom theme only; same size as Client Solutions */
.custom-grey-slide {
  display: none;
}

[data-theme="custom"] .custom-grey-slide {
  display: block;
  width: min(1180px, calc(100% - 48px));
  margin: var(--custom-section-gap) auto;
  overflow: visible;
}

[data-theme="custom"] .custom-grey-slide-panel {
  aspect-ratio: 960 / 460;
  min-height: 0;
  background: var(--custom-panel);
  box-shadow: var(--custom-panel-shadow);
  position: relative;
  overflow: visible;
  animation: custom-panel-in 0.85s ease 0.12s both;
}

[data-theme="custom"] .custom-analysis-title {
  position: absolute;
  top: clamp(18px, 3.2vw, 32px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: min(92%, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 28px);
  background: transparent;
  color: #0a0a0a;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  z-index: 3;
}

[data-theme="custom"] .custom-analysis-title::before,
[data-theme="custom"] .custom-analysis-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1em;
  background: #0a0a0a;
  min-width: clamp(48px, 10vw, 120px);
}

[data-theme="custom"] .custom-analysis-title-text {
  flex: 0 0 auto;
}

[data-theme="custom"] .custom-grey-slide-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Map stage matches SVG viewBox so --pin-x/--pin-y = % of the map art */
[data-theme="custom"] .custom-analysis-stage {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: min(90%, 980px);
  aspect-ratio: 1584 / 993;
  max-height: 78%;
  z-index: 2;
}

[data-theme="custom"] .custom-analysis-item {
  --num: clamp(44px, 6.5vw, 64px);
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  /* Anchor on the NUMBER center, text stacks below */
  transform: translate(-50%, calc(var(--num) / -2));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.1vw, 12px);
  width: min(42%, 15.5rem);
  box-sizing: border-box;
  text-align: center;
}

[data-theme="custom"] .custom-analysis-number {
  flex: 0 0 auto;
  width: var(--num);
  height: var(--num);
  border-radius: 50%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

[data-theme="custom"] .custom-analysis-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

[data-theme="custom"] .custom-analysis-item h3 {
  margin: 0 0 6px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #111;
  text-align: center;
}

[data-theme="custom"] .custom-analysis-item p {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.7rem, 0.95vw, 0.8rem);
  line-height: 1.4;
  font-weight: 300;
  color: #3a3a3a;
  text-align: center;
}

[data-theme="custom"] .custom-analysis-item-3 {
  width: min(46%, 17rem);
}

/* Item 1: copy under the pin, right edge aligned to number center */
[data-theme="custom"] .custom-analysis-item-1 {
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  width: min(48%, 17rem);
  transform: translate(calc(-100% + var(--num) / 2), calc(var(--num) / -2));
}

[data-theme="custom"] .custom-analysis-item-1 .custom-analysis-copy {
  align-items: flex-end;
  width: 100%;
  padding-right: calc(var(--num) / 2);
  box-sizing: border-box;
}

[data-theme="custom"] .custom-analysis-item-1 h3,
[data-theme="custom"] .custom-analysis-item-1 p {
  text-align: right;
}

/* Item 2: copy under the pin, left edge aligned to number center (hangs right) */
[data-theme="custom"] .custom-analysis-item-2 {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: min(48%, 17rem);
  transform: translate(calc(var(--num) / -2), calc(var(--num) / -2));
}

[data-theme="custom"] .custom-analysis-item-2 .custom-analysis-copy {
  align-items: flex-start;
  width: 100%;
  padding-left: calc(var(--num) / 2);
  box-sizing: border-box;
}

[data-theme="custom"] .custom-analysis-item-2 h3,
[data-theme="custom"] .custom-analysis-item-2 p {
  text-align: left;
}

/* Items 3–4: same as 2 — copy under pin, hangs right from number center */
[data-theme="custom"] .custom-analysis-item-3,
[data-theme="custom"] .custom-analysis-item-4 {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: min(48%, 17rem);
  transform: translate(calc(var(--num) / -2), calc(var(--num) / -2));
}

[data-theme="custom"] .custom-analysis-item-3 .custom-analysis-copy,
[data-theme="custom"] .custom-analysis-item-4 .custom-analysis-copy {
  align-items: flex-start;
  width: 100%;
  padding-left: calc(var(--num) / 2);
  box-sizing: border-box;
}

[data-theme="custom"] .custom-analysis-item-3 h3,
[data-theme="custom"] .custom-analysis-item-3 p,
[data-theme="custom"] .custom-analysis-item-4 h3,
[data-theme="custom"] .custom-analysis-item-4 p {
  text-align: left;
}

[data-theme="custom"] .custom-analysis-item-3 {
  width: min(52%, 18rem);
}

/* Empty split slide — same shell as Our Message (grey + black) */
.custom-split-slide {
  display: none;
}

[data-theme="custom"] .custom-split-slide {
  display: block;
  width: min(1180px, calc(100% - 48px));
  margin: var(--custom-section-gap) auto;
  overflow: visible;
}

[data-theme="custom"] .custom-split-slide-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  aspect-ratio: 960 / 460;
  min-height: 0;
  background: var(--custom-panel);
  box-shadow: var(--custom-panel-shadow);
  overflow: visible;
  position: relative;
  animation: custom-panel-in 0.85s ease 0.12s both;
}

[data-theme="custom"] .custom-split-slide-main {
  --split-pad-t: clamp(28px, 4vw, 48px);
  --split-pad-r: clamp(40px, 5vw, 72px);
  --split-pad-b: clamp(24px, 3vw, 40px);
  --split-pad-l: clamp(32px, 5vw, 56px);
  --copy-inset: 8px;
  --split-text-w: 26rem;
  background: var(--custom-panel);
  min-width: 0;
  min-height: 0;
  padding: var(--split-pad-t) var(--split-pad-r) var(--split-pad-b) var(--split-pad-l);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: hidden;
}

[data-theme="custom"] .custom-split-slide-title {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1.05;
  max-width: var(--split-text-w);
}

[data-theme="custom"] .custom-split-slide-heading-text {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: #1a1a1a;
}

[data-theme="custom"] .custom-split-slide-title-top {
  display: block;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}

[data-theme="custom"] .custom-split-slide-title-package {
  display: block;
  font-weight: 500;
  font-size: clamp(2.5rem, 4.6vw, 3.4rem);
  margin-top: 4px;
}

[data-theme="custom"] .custom-split-slide-lede {
  margin: clamp(14px, 2vw, 22px) 0 0;
  max-width: var(--split-text-w);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  line-height: 1.55;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0;
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-color: #7a7a7a;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

[data-theme="custom"] .custom-split-slide-copy {
  margin-top: clamp(14px, 2vw, 22px);
  margin-left: calc(-1 * var(--split-pad-l) + var(--copy-inset));
  width: calc(var(--split-text-w) + var(--split-pad-l) - var(--copy-inset));
  max-width: calc(100% + var(--split-pad-l) - var(--copy-inset));
  align-self: flex-start;
  background: #fff;
  padding: clamp(12px, 1.6vw, 18px) clamp(14px, 1.8vw, 20px)
    clamp(12px, 1.6vw, 18px) calc(var(--split-pad-l) - var(--copy-inset));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  flex: 0 1 auto;
  min-height: 0;
}

[data-theme="custom"] .custom-split-slide-copy p {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.8125rem, 1.1vw, 0.84375rem);
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0;
  color: #3a3a3a;
  text-align: justify;
}

[data-theme="custom"] .custom-split-slide-aside {
  background: #0a0a0a;
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px)
    clamp(28px, 4vw, 52px);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow: visible;
}

[data-theme="custom"] .custom-split-slide-aside::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 96px;
  background: #0a0a0a;
  z-index: 2;
}

[data-theme="custom"] .custom-split-slide-points {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 28px);
  width: 100%;
}

[data-theme="custom"] .custom-split-slide-point {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 18px);
}

[data-theme="custom"] .custom-split-slide-icon {
  flex: 0 0 auto;
  width: clamp(2.5rem, 3.4vw, 3.1rem);
  height: clamp(2.5rem, 3.4vw, 3.1rem);
  object-fit: contain;
  display: block;
  margin-top: 1px;
}

[data-theme="custom"] .custom-split-slide-point-body {
  min-width: 0;
  flex: 1 1 auto;
}

[data-theme="custom"] .custom-split-slide-point h3 {
  margin: 0 0 6px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
}

[data-theme="custom"] .custom-split-slide-point p {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.75rem, 1.05vw, 0.875rem);
  line-height: 1.5;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
}

/* Empty all-grey slide — Custom theme only */
.custom-plain-slide {
  display: none;
}

[data-theme="custom"] .custom-plain-slide {
  display: block;
  width: min(1180px, calc(100% - 48px));
  margin: var(--custom-section-gap) auto;
  overflow: visible;
}

[data-theme="custom"] .custom-plain-slide-panel {
  aspect-ratio: 960 / 460;
  min-height: 0;
  background: var(--custom-panel);
  box-shadow: var(--custom-panel-shadow);
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px) clamp(100px, 16%, 200px) clamp(28px, 4vw, 48px)
    clamp(36px, 5vw, 64px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vw, 40px);
  animation: custom-panel-in 0.85s ease 0.12s both;
}

/* Black right-edge chevron (same motif as Market Research mockup) */
[data-theme="custom"] .custom-plain-slide-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(96px, 16%, 180px);
  background: #0a0a0a;
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 42% 100%, 0 50%);
  pointer-events: none;
  z-index: 1;
}

[data-theme="custom"] .custom-plain-slide-title {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #111;
  position: relative;
  z-index: 2;
}

[data-theme="custom"] .custom-plain-slide-title-line {
  display: block;
}

[data-theme="custom"] .custom-plain-slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(22px, 3.2vw, 36px) clamp(28px, 4vw, 48px);
  max-width: 52rem;
  position: relative;
  z-index: 2;
}

[data-theme="custom"] .custom-plain-slide-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 18px);
  min-width: 0;
}

[data-theme="custom"] .custom-plain-slide-icon {
  flex: 0 0 auto;
  width: clamp(3.5rem, 5.5vw, 5rem);
  height: clamp(3.5rem, 5.5vw, 5rem);
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
}

[data-theme="custom"] .custom-plain-slide-item-body {
  min-width: 0;
  flex: 1 1 auto;
  padding-top: 4px;
}

[data-theme="custom"] .custom-plain-slide-item h3 {
  margin: 0 0 8px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #111;
}

[data-theme="custom"] .custom-plain-slide-item p {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.75rem, 1.05vw, 0.875rem);
  line-height: 1.5;
  font-weight: 300;
  color: #3a3a3a;
  text-align: justify;
}

/* Reversed split — black left, grey right */
.custom-split-rev {
  display: none;
}

[data-theme="custom"] .custom-split-rev {
  display: block;
  width: min(1180px, calc(100% - 48px));
  /* Extra top clearance for black panel overhang */
  margin: calc(var(--custom-section-gap) + clamp(16px, 2.4vw, 28px)) auto
    var(--custom-section-gap);
  overflow: visible;
}

[data-theme="custom"] .custom-split-rev-panel {
  --rev-pad-t: clamp(28px, 4vw, 48px);
  --rev-title-sm: clamp(1.5rem, 2.6vw, 1.95rem);
  --rev-title-lg: clamp(2.5rem, 4.6vw, 3.4rem);
  --rev-mark: clamp(96px, 14vw, 148px);
  --rev-overhang: clamp(14px, 2.2vw, 24px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  aspect-ratio: 960 / 460;
  min-height: 0;
  background: var(--custom-panel);
  box-shadow: var(--custom-panel-shadow);
  overflow: visible;
  position: relative;
  animation: custom-panel-in 0.85s ease 0.12s both;
}

[data-theme="custom"] .custom-split-rev-aside {
  background: #0a0a0a;
  position: relative;
  min-width: 0;
  min-height: calc(100% + var(--rev-overhang));
  margin-top: calc(-1 * var(--rev-overhang));
  overflow: visible;
  padding: calc(var(--rev-pad-t) + var(--rev-overhang)) clamp(28px, 4vw, 44px)
    clamp(24px, 3vw, 40px) clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

[data-theme="custom"] .custom-split-rev-mark {
  position: absolute;
  left: 100%;
  right: auto;
  /* Top of mark aligns with bottom of CUSTOMER */
  top: calc(var(--rev-overhang) + var(--rev-pad-t) + var(--rev-title-sm));
  transform: translate(-18%, 0);
  width: calc(var(--rev-mark) * 1.55);
  height: var(--rev-mark);
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

[data-theme="custom"] .custom-split-rev-mark img {
  width: auto;
  height: 88%;
  max-width: 78%;
  object-fit: contain;
  display: block;
  margin-left: 12%;
}

[data-theme="custom"] .custom-split-rev-title {
  margin: 0 0 clamp(16px, 2.2vw, 24px);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: #fff;
}

[data-theme="custom"] .custom-split-rev-title-line {
  display: block;
  font-weight: 400;
  font-size: var(--rev-title-sm);
}

[data-theme="custom"] .custom-split-rev-title-emphasis {
  font-weight: 500;
  font-size: var(--rev-title-lg);
  margin-top: 4px;
}

[data-theme="custom"] .custom-split-rev-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);
  max-width: 22rem;
}

[data-theme="custom"] .custom-split-rev-copy p {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.72rem, 1vw, 0.8125rem);
  line-height: 1.55;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  text-align: justify;
}

[data-theme="custom"] .custom-split-rev-main {
  --rev-main-pad-t: clamp(28px, 4vw, 48px);
  --rev-main-pad-l: calc(var(--rev-mark) * 1.55 + clamp(18px, 2.4vw, 32px));
  background: var(--custom-panel);
  min-width: 0;
  min-height: 0;
  padding: var(--rev-main-pad-t) clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px)
    var(--rev-main-pad-l);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

/* Align Working/Process with the black gear mark (same band as Analysis) */
[data-theme="custom"] .custom-split-rev-main-title {
  position: absolute;
  left: var(--rev-main-pad-l);
  /* Vertically center Working/Process with the gear mark */
  top: calc(var(--rev-pad-t) + var(--rev-title-sm) + var(--rev-mark) / 2);
  transform: translateY(-50%);
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: #111;
  z-index: 1;
}

[data-theme="custom"] .custom-split-rev-main-title-line {
  display: block;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}

[data-theme="custom"] .custom-split-rev-main-title-emphasis {
  font-weight: 500;
  font-size: clamp(2.5rem, 4.6vw, 3.4rem);
  margin-top: 4px;
}

[data-theme="custom"] .custom-split-rev-main-lede {
  margin: calc(
      var(--rev-pad-t) + var(--rev-title-sm) + var(--rev-mark) / 2 +
        (var(--rev-title-sm) + var(--rev-title-lg) + 4px) / 2 -
        clamp(12px, 1.8vw, 20px)
    )
    0 0;
  max-width: 26rem;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.7rem, 0.95vw, 0.78rem);
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: 0;
  color: #3a3a3a;
  text-align: justify;
}

[data-theme="custom"] .custom-split-rev-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: clamp(4px, 0.8vw, 8px);
  max-width: 28rem;
}

[data-theme="custom"] .custom-split-rev-step {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.3vw, 14px);
}

[data-theme="custom"] .custom-split-rev-step-icon {
  flex: 0 0 auto;
  width: clamp(1.75rem, 2.4vw, 2.15rem);
  height: clamp(1.75rem, 2.4vw, 2.15rem);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-top: 1px;
}

[data-theme="custom"] .custom-split-rev-step-body {
  min-width: 0;
  flex: 1 1 auto;
}

[data-theme="custom"] .custom-split-rev-step h3 {
  margin: 0 0 3px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(0.88rem, 1.25vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #111;
}

[data-theme="custom"] .custom-split-rev-step p {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  line-height: 1.45;
  font-weight: 300;
  color: #3a3a3a;
  text-align: justify;
}

/* Empty end grey slide — Custom theme only */
.custom-end-slide {
  display: none;
}

/* Custom theme ends at contact end-slide — hide default sections after it */
[data-theme="custom"] .custom-end-slide ~ .rule,
[data-theme="custom"] .custom-end-slide ~ .reveal {
  display: none;
}

[data-theme="custom"] .nav-links {
  display: none;
}

[data-theme="custom"] .nav-cta {
  display: inline-block;
  margin-top: 0;
  padding: 10px 18px;
  background: #0a0a0a;
  color: #fff;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
}

[data-theme="custom"] .custom-end-slide {
  display: block;
  width: min(1180px, calc(100% - 48px));
  margin: var(--custom-section-gap) auto 48px;
  overflow: visible;
}

[data-theme="custom"] .custom-end-slide-panel {
  aspect-ratio: 960 / 460;
  min-height: 0;
  background: var(--custom-panel);
  box-shadow: var(--custom-panel-shadow);
  position: relative;
  overflow: hidden;
  animation: custom-panel-in 0.85s ease 0.12s both;
  container-type: size;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

[data-theme="custom"] .custom-end-slide-photo {
  margin: 0;
  background: #0a0a0a;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

[data-theme="custom"] .custom-end-slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

[data-theme="custom"] .custom-end-slide-body {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--custom-panel);
  container-type: size;
}

[data-theme="custom"] .custom-end-slide-square {
  position: absolute;
  right: clamp(28px, 4.5vw, 52px);
  top: 50%;
  transform: translateY(-50%);
  width: min(58%, 360px);
  aspect-ratio: 1;
  border: 1px solid #0a0a0a;
  background: transparent;
  box-sizing: border-box;
  z-index: 0;
}

[data-theme="custom"] .custom-end-slide-contact {
  /* Anchor to the square’s bottom area, above the decorative bar/logo */
  position: absolute;
  right: clamp(28px, 4.5vw, 52px);
  top: 50%;
  transform: translateY(-50%);
  width: min(58%, 360px);
  aspect-ratio: 1;
  box-sizing: border-box;
  padding: 0 clamp(14px, 2.4vw, 28px) clamp(12px, 2vw, 20px);
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(0.58rem, 0.8vw, 0.72rem);
  font-weight: 400;
  color: #111;
  line-height: 1.35;
  z-index: 3;
  pointer-events: none;
}

[data-theme="custom"] .custom-end-slide-contact-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

[data-theme="custom"] .custom-end-slide-contact a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 4;
}

[data-theme="custom"] .custom-end-slide-contact a:hover {
  text-decoration: underline;
}

[data-theme="custom"] .custom-end-slide-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0.15rem;
  box-sizing: content-box;
  color: #0a0a0a;
  text-decoration: none;
  flex-shrink: 0;
  pointer-events: auto;
  cursor: pointer;
}

[data-theme="custom"] .custom-end-slide-linkedin:hover {
  text-decoration: none;
  opacity: 0.72;
}

[data-theme="custom"] .custom-end-slide-linkedin svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  pointer-events: none;
}

[data-theme="custom"] .custom-end-slide-bar {
  position: absolute;
  left: clamp(28px, 4.5vw, 52px);
  right: clamp(28px, 4.5vw, 52px);
  top: 50%;
  transform: translateY(-50%);
  height: 40%;
  background: #0a0a0a;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(14px, 2.4vw, 28px);
  box-sizing: border-box;
  pointer-events: none;
}

[data-theme="custom"] .custom-end-slide-squares {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  flex-shrink: 0;
}

[data-theme="custom"] .custom-end-slide-squares span {
  display: block;
  width: clamp(10px, 1.1vw, 14px);
  height: clamp(10px, 1.1vw, 14px);
  background: #0a0a0a;
}

[data-theme="custom"] .custom-end-slide-squares span:nth-child(1) {
  background: #d8d8d8;
}

[data-theme="custom"] .custom-end-slide-squares span:nth-child(2) {
  background: #b0b0b0;
}

[data-theme="custom"] .custom-end-slide-squares span:nth-child(3) {
  background: #7a7a7a;
}

[data-theme="custom"] .custom-end-slide-squares span:nth-child(4) {
  background: #3f3f3f;
}

[data-theme="custom"] .custom-end-slide-squares span:nth-child(5) {
  background: #1a1a1a;
}

[data-theme="custom"] .custom-end-slide-logo {
  height: 130%;
  width: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
  transform: translateX(12px);
}

@media (max-width: 900px) {
  [data-theme="custom"] .custom-block {
    margin: var(--custom-section-gap) auto;
  }

  [data-theme="custom"] .custom-block-panel {
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(20px, 4.5vw, 28px);
    padding: clamp(28px, 6vw, 40px) clamp(18px, 5vw, 28px)
      clamp(28px, 6vw, 40px);
    box-sizing: border-box;
  }

  [data-theme="custom"] .custom-solutions-title {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    align-self: center;
    order: 1;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0.7rem 1.15rem;
    font-size: clamp(1.15rem, 5vw, 1.55rem);
    letter-spacing: 0.1em;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  [data-theme="custom"] .custom-solutions-footer {
    display: none;
  }

  [data-theme="custom"] .custom-solutions-grid {
    display: none;
  }

  [data-theme="custom"] .custom-solutions-item {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    order: 2;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  [data-theme="custom"] .custom-solutions-item::before {
    content: "";
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border: 3px solid #0a0a0a;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #0a0a0a;
    line-height: 1;
  }

  [data-theme="custom"] .custom-solutions-item-1::before {
    content: "1";
  }

  [data-theme="custom"] .custom-solutions-item-2::before {
    content: "2";
  }

  [data-theme="custom"] .custom-solutions-item-3::before {
    content: "3";
  }

  [data-theme="custom"] .custom-solutions-item-4::before {
    content: "4";
  }

  [data-theme="custom"] .custom-solutions-copy {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  [data-theme="custom"] .custom-solutions-item h3 {
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  }

  [data-theme="custom"] .custom-solutions-item-2 h3,
  [data-theme="custom"] .custom-solutions-item-4 h3 {
    white-space: normal;
  }

  [data-theme="custom"] .custom-solutions-item p {
    font-size: clamp(0.8rem, 3.4vw, 0.9rem);
    text-align: left;
  }

  [data-theme="custom"] .custom-solutions-item h3 br {
    display: none;
  }

  [data-theme="custom"] .custom-grey-slide-panel {
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(20px, 4.5vw, 28px);
    padding: clamp(28px, 6vw, 40px) clamp(18px, 5vw, 28px)
      clamp(28px, 6vw, 40px);
    box-sizing: border-box;
  }

  [data-theme="custom"] .custom-analysis-title {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.15rem, 5vw, 1.55rem);
    letter-spacing: 0.1em;
    white-space: normal;
    text-align: center;
    gap: clamp(10px, 3vw, 16px);
  }

  [data-theme="custom"] .custom-analysis-title::before,
  [data-theme="custom"] .custom-analysis-title::after {
    min-width: 24px;
    height: 0.85em;
  }

  [data-theme="custom"] .custom-analysis-stage {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-height: none;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 4vw, 24px);
  }

  [data-theme="custom"] .custom-grey-slide-map {
    position: relative;
    inset: auto;
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 1584 / 993;
    margin: 0 auto;
    opacity: 0.55;
  }

  [data-theme="custom"] .custom-analysis-item,
  [data-theme="custom"] .custom-analysis-item-1,
  [data-theme="custom"] .custom-analysis-item-2,
  [data-theme="custom"] .custom-analysis-item-3,
  [data-theme="custom"] .custom-analysis-item-4 {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
  }

  [data-theme="custom"] .custom-analysis-number {
    --num: 2.35rem;
    width: var(--num);
    height: var(--num);
    font-size: 1.05rem;
    flex-shrink: 0;
  }

  [data-theme="custom"] .custom-analysis-copy,
  [data-theme="custom"] .custom-analysis-item-1 .custom-analysis-copy,
  [data-theme="custom"] .custom-analysis-item-2 .custom-analysis-copy,
  [data-theme="custom"] .custom-analysis-item-3 .custom-analysis-copy,
  [data-theme="custom"] .custom-analysis-item-4 .custom-analysis-copy {
    align-items: flex-start;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
  }

  [data-theme="custom"] .custom-analysis-item h3,
  [data-theme="custom"] .custom-analysis-item-1 h3,
  [data-theme="custom"] .custom-analysis-item-2 h3,
  [data-theme="custom"] .custom-analysis-item-3 h3,
  [data-theme="custom"] .custom-analysis-item-4 h3 {
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
    text-align: left;
  }

  [data-theme="custom"] .custom-analysis-item p,
  [data-theme="custom"] .custom-analysis-item-1 p,
  [data-theme="custom"] .custom-analysis-item-2 p,
  [data-theme="custom"] .custom-analysis-item-3 p,
  [data-theme="custom"] .custom-analysis-item-4 p {
    font-size: clamp(0.8rem, 3.4vw, 0.9rem);
    text-align: left;
  }

  [data-theme="custom"] .custom-split-slide-panel {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    min-height: 420px;
  }

  [data-theme="custom"] .custom-split-slide-aside {
    min-height: 220px;
  }

  [data-theme="custom"] .custom-split-slide-aside::before {
    display: none;
  }

  [data-theme="custom"] .custom-plain-slide-panel {
    aspect-ratio: auto;
    min-height: 0;
    padding: clamp(28px, 6vw, 40px) clamp(64px, 18vw, 84px)
      clamp(28px, 6vw, 40px) clamp(18px, 5vw, 28px);
  }

  /* Keep chevron, but narrow so it clears the text column */
  [data-theme="custom"] .custom-plain-slide-panel::after {
    width: clamp(40px, 12vw, 52px);
  }

  [data-theme="custom"] .custom-plain-slide-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  [data-theme="custom"] .custom-plain-slide-grid {
    grid-template-columns: 1fr;
    max-width: none;
    gap: clamp(18px, 4vw, 26px);
  }

  [data-theme="custom"] .custom-plain-slide-item p {
    text-align: left;
  }

  [data-theme="custom"] .custom-split-rev {
    margin: var(--custom-section-gap) auto;
  }

  [data-theme="custom"] .custom-split-rev-panel {
    --rev-pad-t: clamp(24px, 5vw, 36px);
    --rev-title-sm: clamp(1.25rem, 5vw, 1.55rem);
    --rev-title-lg: clamp(1.85rem, 7.5vw, 2.4rem);
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
  }

  [data-theme="custom"] .custom-split-rev-aside {
    min-height: 0;
    margin-top: 0;
    padding: clamp(28px, 6vw, 40px) clamp(18px, 5vw, 28px);
    gap: clamp(16px, 3.5vw, 22px);
  }

  [data-theme="custom"] .custom-split-rev-mark {
    display: none;
  }

  [data-theme="custom"] .custom-split-rev-title {
    margin: 0;
  }

  [data-theme="custom"] .custom-split-rev-copy {
    max-width: none;
    gap: clamp(12px, 3vw, 16px);
  }

  [data-theme="custom"] .custom-split-rev-copy p {
    font-size: clamp(0.8rem, 3.4vw, 0.9rem);
    text-align: left;
  }

  [data-theme="custom"] .custom-split-rev-main {
    --rev-main-pad-l: clamp(18px, 5vw, 28px);
    padding: clamp(28px, 6vw, 40px) clamp(18px, 5vw, 28px);
    gap: clamp(14px, 3vw, 20px);
  }

  [data-theme="custom"] .custom-split-rev-main-title {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0;
  }

  [data-theme="custom"] .custom-split-rev-main-title-line {
    font-size: clamp(1.25rem, 5vw, 1.55rem);
  }

  [data-theme="custom"] .custom-split-rev-main-title-emphasis {
    font-size: clamp(1.85rem, 7.5vw, 2.4rem);
  }

  [data-theme="custom"] .custom-split-rev-main-lede {
    margin: 0;
    max-width: none;
    font-size: clamp(0.8rem, 3.4vw, 0.9rem);
    text-align: left;
  }

  [data-theme="custom"] .custom-split-rev-steps {
    margin-top: 0;
    max-width: none;
    gap: clamp(14px, 3.2vw, 18px);
  }

  [data-theme="custom"] .custom-split-rev-step h3 {
    font-size: clamp(1rem, 4vw, 1.15rem);
  }

  [data-theme="custom"] .custom-split-rev-step p {
    font-size: clamp(0.78rem, 3.2vw, 0.88rem);
    text-align: left;
  }

  [data-theme="custom"] .custom-split-rev-step-icon {
    width: 2rem;
    height: 2rem;
  }

  [data-theme="custom"] .custom-end-slide-panel {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    /* size containment collapses height when aspect-ratio is auto */
    container-type: normal;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    grid-template-columns: 1fr;
  }

  [data-theme="custom"] .custom-end-slide-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 52vh;
  }

  [data-theme="custom"] .custom-end-slide-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: clamp(28px, 7vw, 40px) clamp(18px, 5vw, 28px)
      clamp(32px, 8vw, 44px);
    box-sizing: border-box;
    container-type: normal;
  }

  [data-theme="custom"] .custom-end-slide-bar {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: clamp(64px, 18vw, 80px);
    order: 1;
    padding: 0 clamp(14px, 4vw, 20px);
  }

  [data-theme="custom"] .custom-end-slide-logo {
    height: 78%;
    transform: none;
  }

  [data-theme="custom"] .custom-end-slide-squares {
    gap: 6px;
  }

  [data-theme="custom"] .custom-end-slide-squares span {
    width: 10px;
    height: 10px;
  }

  [data-theme="custom"] .custom-end-slide-square {
    display: none;
  }

  [data-theme="custom"] .custom-end-slide-contact {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    aspect-ratio: auto;
    order: 2;
    margin-top: 0;
    padding: clamp(18px, 4.5vw, 24px) clamp(14px, 4vw, 20px)
      clamp(16px, 4vw, 22px);
    border: 1px solid #0a0a0a;
    border-top: 0;
    font-size: clamp(0.82rem, 3.6vw, 0.95rem);
    align-items: flex-start;
    pointer-events: auto;
  }

  [data-theme="custom"] .custom-end-slide-contact a {
    white-space: normal;
    word-break: break-word;
  }

  [data-theme="custom"] .custom-end-slide-linkedin {
    width: 1.45rem;
    height: 1.45rem;
  }

  [data-theme="custom"] .custom-end-slide-linkedin svg {
    width: 1.15rem;
    height: 1.15rem;
  }
}

@media (max-width: 560px) {
  [data-theme="custom"] .custom-block {
    width: calc(100% - 24px);
    margin-bottom: var(--custom-section-gap);
  }

  [data-theme="custom"] .custom-grey-slide {
    width: calc(100% - 24px);
    margin-bottom: var(--custom-section-gap);
  }

  [data-theme="custom"] .custom-split-slide {
    width: calc(100% - 24px);
    margin-bottom: var(--custom-section-gap);
  }

  [data-theme="custom"] .custom-plain-slide {
    width: calc(100% - 24px);
    margin-bottom: var(--custom-section-gap);
  }

  [data-theme="custom"] .custom-split-rev {
    width: calc(100% - 24px);
    margin-bottom: var(--custom-section-gap);
  }

  [data-theme="custom"] .custom-end-slide {
    width: calc(100% - 24px);
    margin-bottom: var(--custom-section-gap);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="custom"] .custom-block-panel,
  [data-theme="custom"] .custom-grey-slide-panel,
  [data-theme="custom"] .custom-split-slide-panel,
  [data-theme="custom"] .custom-plain-slide-panel,
  [data-theme="custom"] .custom-split-rev-panel,
  [data-theme="custom"] .custom-end-slide-panel {
    animation: none !important;
  }
}
