:root {
  color-scheme: light;
  --sw-paper: #fbf8f1;
  --sw-ink: #211b27;
  --sw-muted: #514858;
  --sw-navy: #202940;
  --sw-berry: #522c4d;
  --sw-peach: #f2d4be;
  --sw-rule: #e4dacb;
}

.sw-wrap {
  width: min(100% - 2 * clamp(16px, 5vw, 76px), 1280px);
  margin-inline: auto;
}

.tp-theme {
  --case-end: #522c4d;
  margin: 0;
  background: var(--sw-paper);
  color: var(--sw-ink);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tp-theme *, .tp-theme *::before, .tp-theme *::after { box-sizing: border-box }
.tp-theme :is(h1, h2, h3, p, figure) { margin: 0 }
.tp-theme :where(main, footer) a { color: inherit }
.tp-theme img { display: block; max-width: 100% }
.tp-theme :focus-visible { outline: 2px solid #815875; outline-offset: 4px }

.sw-hero { background: #f4ecde; padding-block: clamp(42px, 6vw, 88px) clamp(32px, 4vw, 52px) }
.sw-hero-copy {
  display: grid;
  gap: clamp(10px, 2vw, 22px);
  max-width: min(100%, 710px);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.sw-hero-copy h1 {
  margin: 0;
  font-size: clamp(54px, 10vw, 146px);
  font-weight: 720;
  line-height: .94;
  letter-spacing: -.076em;
}
.sw-hero-copy .sw-lead {
  color: var(--sw-berry);
  font-size: clamp(24px, 4vw, 55px);
  font-weight: 670;
  letter-spacing: -.05em;
  line-height: 1.06;
}
.sw-hero-copy p:last-child {
  max-width: 55ch;
  color: var(--sw-muted);
  font-size: clamp(16px, 1.7vw, 21px);
}
.sw-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16/8.7;
  object-fit: cover;
  object-position: center;
  background: #d9c4b6;
  border-radius: clamp(16px, 2.6vw, 34px);
}

.sw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(218px, .33fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
  padding-block: clamp(36px, 6vw, 84px);
}
.sw-story, .sw-sidebar { min-width: 0 }
.sw-section { scroll-margin-top: 22px }
.sw-section + .sw-section, .sw-banner + .sw-section {
  margin-top: clamp(48px, 8vw, 96px);
}
.sw-section h2 {
  max-width: 22ch;
  font-size: clamp(29px, 4.25vw, 58px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.sw-section > p {
  max-width: 61ch;
  margin-top: clamp(14px, 2.4vw, 25px);
  color: var(--sw-muted);
  font-size: clamp(16px, 1.45vw, 19px);
}
.sw-section :is(figure, .sw-slider) { margin-top: clamp(20px, 3.3vw, 35px) }

.sw-portrait-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(10px, 2.3vw, 24px) }
.sw-portrait-grid div { min-width: 0 }
.sw-portrait-grid img { width: 100%; height: auto; aspect-ratio: 4/4.5; object-fit: cover; border-radius: 22px; background: #d9c4b6 }
.sw-portrait-grid span { display: block; margin: 8px 0 0; font-size: 14px; font-weight: 650 }

.sw-section .sw-editorial {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3.4vw, 50px);
  min-height: 380px;
  overflow: hidden;
  border-radius: clamp(16px, 2.6vw, 30px);
  padding: clamp(16px, 4vw, 48px);
}
.sw-editorial--cream { background: #ede7d7 }
.sw-editorial--peach { background: var(--sw-peach) }
.sw-editorial--blue { background: var(--sw-navy); color: #fff8ef }
.sw-editorial--berry { background: var(--sw-berry); color: #fff8ef }
.sw-editorial--oat { background: #e6dbc4 }
.sw-editorial--mauve { background: #ead5d8 }
.sw-editorial h3 { font-size: clamp(25px, 3.4vw, 48px); letter-spacing: -.05em; line-height: 1.05 }
.sw-editorial p { margin-top: 12px; max-width: 28ch; font-size: clamp(15px, 1.4vw, 18px) }
.sw-device {
  width: min(100%, 252px);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 14px 20px #15132643);
}
.sw-wave { display: flex; align-items: center; gap: 5px; height: 50px; margin-top: 17px }
.sw-wave i { width: 4px; height: 14px; background: #ebabbc; border-radius: 3px }
.sw-wave i:nth-child(3n) { height: 29px }
.sw-wave i:nth-child(4n) { height: 39px }
.sw-bubbles { display: grid; gap: 9px; margin-top: 20px }
.sw-bubbles span { width: fit-content; background: #fff7ec; color: var(--sw-ink); font-size: 14px; padding: 10px 13px; border-radius: 15px 15px 15px 3px }
.sw-bubbles span + span { justify-self: end; border-radius: 15px 15px 3px 15px; background: var(--sw-berry); color: #fff7ec }

.sw-slides { display: grid; gap: 16px }
.sw-slides .sw-editorial { margin: 0 }
.sw-slider.is-animated .sw-slides { touch-action: pan-y; isolation: isolate }
.sw-slider.is-animated .sw-editorial { grid-area: 1 / 1 }
.sw-slider.is-animated .sw-editorial[aria-hidden="true"] { visibility: hidden; pointer-events: none }
@media (prefers-reduced-motion: no-preference) {
  .sw-slider.is-animated .sw-editorial.is-leaving[aria-hidden="true"] { visibility: visible }
  .sw-editorial.is-entering { z-index: 1; animation: sw-slide 420ms ease-out both }
  @keyframes sw-slide { from { opacity: 0 } to { opacity: 1 } }
}

.sw-sidebar-inner { position: sticky; top: 30px }
.sw-toc { display: grid; gap: 6px; padding: 0; border: 0 }
.sw-toc a { padding: 5px 0; text-decoration: none; font-size: 15px }
.sw-toc a:hover { color: var(--sw-berry); text-decoration: underline }
.sw-banner {
  padding: clamp(20px, 3.4vw, 37px);
  border: 1px solid var(--sw-rule);
  border-radius: 22px;
  background: #f3ebdd;
}
.sw-banner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: clamp(36px, 6vw, 70px);
}
.sw-banner h3 { font-size: clamp(22px, 2.8vw, 35px); line-height: 1.1; letter-spacing: -.045em }
.sw-banner p { margin-top: 8px; color: var(--sw-muted) }
.tp-theme .tp-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 158px;
  max-width: 100%;
  padding: 12px 26px;
  border-radius: 999px;
  color: #fff;
  background: #181618;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
}
.tp-theme .tp-contact-button:hover { background: #3a313c }

@media (max-width: 940px) {
  .sw-layout { grid-template-columns: minmax(0,1fr) }
  .sw-sidebar { display: none }
}
@media (max-width: 600px) {
  .sw-cover { aspect-ratio: 5/4 }
  .sw-portrait-grid img { border-radius: 14px }
  .sw-section .sw-editorial {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
    min-height: 0;
    padding: 24px 20px 30px;
  }
  .sw-device { width: min(100%, 220px) }
  .sw-banner { grid-template-columns: minmax(0,1fr) }
  .sw-banner .tp-contact-button { width: 100% }
}

@media (prefers-reduced-motion:no-preference) {
  .sw-slider.is-animated.is-in-view [aria-hidden="false"] .sw-wave i {
    transform-origin:center;
    animation:sw-voice-wave var(--sw-bar-duration,1.16s) ease-in-out var(--sw-bar-delay,0s) infinite alternate;
  }
  .sw-slider.is-in-view .sw-wave i:nth-child(3n+1) { --sw-bar-delay:-.52s; }
  .sw-slider.is-in-view .sw-wave i:nth-child(3n+2) { --sw-bar-delay:-.81s; }
  .sw-slider.is-in-view .sw-wave i:nth-child(4n) { --sw-bar-duration:.86s; }
  .sw-slider.is-in-view .sw-wave i:nth-child(5n) { --sw-bar-duration:1.31s; }
}
@keyframes sw-voice-wave {
  0% { transform:scaleY(.48); }
  45% { transform:scaleY(1.19); }
  74% { transform:scaleY(.76); }
  100% { transform:scaleY(1.04); }
}
