/* ==========================================================================
   SWAP — "Full Circle". The page is one trade: dark indigo nights, white
   paper for the rules, and two arrows that keep trading places.
   ========================================================================== */

.sw-page {
  --night: #0e1033;
  --night-2: #171a4a;
  --indigo: #40449a;
  --cyan: #00a4cf;
  --yellow: #f0ce1a;
  --orange: #e77c27;
  --paper: #f5f6fa;
  --ink-d: #14163a;
  --red: #ed1c24;
  --sw-font: "Montserrat", var(--font-sans);
  --sw-body: "Hind", var(--font-sans);
  --sw-gap: 140px;
  background: var(--night);
  color: #fff;
}

/* The header sits on the night sky */
.sw-page .brand {
  color: #fff;
}

.sw-page .pill-nav {
  color: var(--ink);
}

.sw-page .site-header .pill-chat {
  background: var(--yellow);
  color: var(--ink-d);
}

.sw {
  font-family: var(--sw-body);
}

.sw-wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.sw-dark {
  background: radial-gradient(120% 80% at 50% 0%, var(--night-2), var(--night) 70%);
  color: #fff;
}

.sw-light {
  background: var(--paper);
  color: var(--ink-d);
}

.sw-sec {
  position: relative;
  padding: var(--sw-gap) 0;
  overflow: clip;
}

/* ---------- Section heads ---------- */
.sw-head {
  max-width: 720px;
}

.sw-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sw-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.sw-light .sw-eyebrow {
  color: var(--indigo);
}

/* The number sits inside a little ring, like the mark */
.sw-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  letter-spacing: 0;
}

.sw-head h2 {
  margin-top: 22px;
  font-family: var(--sw-font);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.sw-lead {
  margin-top: 22px;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.86;
}

.sw-note {
  margin-top: 36px;
  font-size: 17px;
  font-weight: 300;
  opacity: 0.8;
}

/* Faint drifting rings, from the brand's pattern band */
.sw-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, transparent 7px, rgba(255, 255, 255, 0.035) 7.5px, rgba(255, 255, 255, 0.035) 9px, transparent 9.5px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 45%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 70% 45%, #000, transparent 75%);
  animation: sw-drift 40s linear infinite;
}

@keyframes sw-drift {
  to {
    background-position: 340px 170px;
  }
}

/* ---------- Logo helpers ---------- */
.sw-logo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.sw-arm,
.sw-letter,
.sw-sym {
  transform-box: fill-box;
  transform-origin: center;
}

/* ---------- The swap wipe: two panels cross and clear the stage ---------- */
.sw-wipe {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.sw-wipe i {
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 70%;
  transform: skewX(-14deg);
}

.sw-wipe i:first-child {
  left: -10%;
  background: linear-gradient(90deg, var(--cyan), var(--indigo));
}

.sw-wipe i:last-child {
  right: -10%;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}

/* ==========================================================================
   HERO
   ========================================================================== */
.sw-hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.sw-hero.sw-dark {
  background: none;
}

.sw-hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 4%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 68, 154, 0.55), transparent 65%);
  pointer-events: none;
}

.sw-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
}

.sw-kicker {
  font-family: var(--sw-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.sw-hero-title {
  margin-top: 22px;
  font-family: var(--sw-font);
  font-size: clamp(46px, 6.2vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.sw-hero-title span,
.sw-hero-title em {
  display: block;
}

.sw-hero-title em {
  white-space: nowrap;
  font-style: normal;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}

.sw-hero-sub {
  max-width: 470px;
  margin-top: 26px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  opacity: 0.86;
}

.sw-hero-mark {
  justify-self: center;
  width: min(100%, 380px);
}

.sw-page .sw-logo-hero {
  --sw-fw: #fff;
}

.sw-info {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sw-info > div {
  padding: 2px 30px 2px 0;
  margin: 0 30px 12px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.sw-info > div:last-child {
  border-right: 0;
}

.sw-info dt {
  font-family: var(--sw-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sw-info dd {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 500;
}

.sw-info a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--yellow);
}

/* ==========================================================================
   01 MEET
   ========================================================================== */
.sw-meet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.sw-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sw-fact {
  padding: 26px 24px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 22, 58, 0.06), 0 18px 40px -24px rgba(20, 22, 58, 0.25);
}

.sw-fact-num {
  display: block;
  font-family: var(--sw-font);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--indigo);
}

.sw-fact-label {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--yellow);
  font-family: var(--sw-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sw-fact-note {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.75;
}

.sw-source {
  margin-top: 40px;
  font-size: 13px;
  opacity: 0.6;
}

.sw-source a {
  color: inherit;
}

/* ==========================================================================
   02 BRIEF
   ========================================================================== */
.sw-split {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: stretch;
  margin-top: 56px;
}

.sw-side {
  padding: 40px 36px;
  border-radius: 28px;
}

.sw-side-b {
  background: linear-gradient(135deg, rgba(0, 164, 207, 0.22), rgba(64, 68, 154, 0.5));
  border: 1px solid rgba(0, 164, 207, 0.35);
}

.sw-side-y {
  background: linear-gradient(225deg, rgba(240, 206, 26, 0.2), rgba(231, 124, 39, 0.28));
  border: 1px solid rgba(240, 206, 26, 0.35);
}

.sw-side-k {
  font-family: var(--sw-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.sw-side-q {
  margin-top: 14px;
  font-family: var(--sw-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sw-side ul {
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.sw-side li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 17px;
}

.sw-side li::before {
  content: "↻";
  position: absolute;
  left: 0;
  color: var(--yellow);
}

.sw-split-mark {
  align-self: center;
  width: 84px;
  justify-self: center;
}

.sw-split-foot {
  margin-top: 30px;
  text-align: center;
  font-size: 17px;
  font-weight: 300;
  opacity: 0.8;
}

/* ==========================================================================
   03 THE ROUNDS — a timeline, each round a still collage
   ========================================================================== */
.sw-timeline {
  position: relative;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

/* The line runs down the left and fills as you read */
.sw-timeline::before,
.sw-timeline::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.sw-timeline::after {
  background: linear-gradient(var(--cyan), var(--yellow) 70%, var(--red));
  transform: scaleY(var(--line, 1));
  transform-origin: top;
}

.sw-step {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 0 0 72px 44px;
}

.sw-step:last-child {
  padding-bottom: 0;
}

.sw-step-dot {
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 3px solid var(--night);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--yellow);
}

.sw-step-nb .sw-step-dot {
  background: var(--red);
  box-shadow: 0 0 0 2px var(--red);
}

.sw-step-k {
  font-family: var(--sw-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.sw-step-nb .sw-step-k {
  color: #ff8a6b;
}

.sw-step-t {
  margin-top: 10px;
  font-family: var(--sw-font);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.sw-step-p {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.82;
}

/* Collages */
.sw-collage {
  display: grid;
  gap: 10px;
}

.sw-collage figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.sw-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.7s var(--ease);
}

.sw-collage figure:hover img {
  transform: scale(1.04);
}

.c-offers {
  grid-template-columns: repeat(3, 1fr);
}

.c-offers figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-d);
  font-family: var(--sw-font);
  font-size: 12px;
  font-weight: 600;
}

/* Seven redraws: one large, six small */
.c-redraws {
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 110px;
}

.c-redraws figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.c-redraws img {
  object-position: 50% 62%;
}

/* Nagad Bazaar: the bilingual lockup, then the archived guideline */
.c-nb {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 110px;
}

.sw-nb-lockup {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
}

.sw-collage .sw-nb-lockup img {
  width: auto;
  height: auto;
  cursor: default;
  object-fit: contain;
}

.sw-collage .sw-nb-lockup .sw-nb-sym {
  width: 26%;
}

.sw-collage .sw-nb-lockup .sw-nb-bn {
  width: 46%;
}

.sw-collage .sw-nb-lockup .sw-nb-en {
  width: 40%;
}

.sw-nb-lockup:hover img {
  transform: none;
}

.c-nb figure:not(.sw-nb-lockup) img {
  filter: grayscale(1);
  transition: filter 0.4s var(--ease), transform 0.7s var(--ease);
}

.c-nb figure:not(.sw-nb-lockup):hover img {
  filter: none;
}

.sw-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 8px;
  border: 2px solid var(--red);
  border-radius: 6px;
  font-family: var(--sw-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  transform: rotate(8deg);
}

/* ==========================================================================
   06 THE SWAP — before / after
   ========================================================================== */
.sw-theswap {
  background: radial-gradient(80% 60% at 50% 60%, rgba(237, 28, 36, calc(0.22 * var(--red-mix, 0.5))), transparent 70%),
    radial-gradient(80% 60% at 50% 60%, rgba(64, 68, 154, calc(0.6 * (1 - var(--red-mix, 0.5)))), transparent 70%),
    var(--night);
}

.sw-compare {
  position: relative;
  margin-top: 56px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  touch-action: pan-y;
  cursor: ew-resize;
  -webkit-user-select: none;
  user-select: none;
}

.sw-compare-after,
.sw-compare-before {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: 100% / 100%;
  place-items: center;
}

.sw-compare-after {
  background: radial-gradient(60% 70% at 50% 50%, #25296b, var(--night));
}

.sw-compare-after .sw-logo {
  width: auto;
  height: 74%;
  aspect-ratio: 244 / 356;
  --sw-fw: #fff;
}

.sw-compare-before {
  background: #fff;
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}

.sw-compare-before img {
  width: auto;
  height: 74%;
}

.sw-compare-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--red);
  color: #fff;
  font-family: var(--sw-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sw-tag-after {
  left: auto;
  right: 18px;
  background: var(--yellow);
  color: var(--ink-d);
}

.sw-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}

.sw-compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}

.sw-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   07 THE MARK — construction
   ========================================================================== */
.sw-mark-grid {
  display: grid;
  gap: 40px;
}

.sw-build {
  margin: 0;
  padding: 36px 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 22, 58, 0.05);
}

.sw-build-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.sw-guides {
  fill: none;
  stroke: #3ebc9f;
  stroke-width: 0.6;
}

.sw-measure {
  fill: none;
  stroke: #9b9db3;
  stroke-width: 0.7;
  stroke-dasharray: 3 3;
}

.sw-measure text {
  fill: #6b6d86;
  stroke: none;
  font-family: var(--sw-font);
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
}

.sw-build-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin-top: 24px;
  font-size: 17px;
}

.sw-build-notes i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
}

.sw-dot-b {
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
}

.sw-dot-y {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

/* ==========================================================================
   08 TERMS & CONDITIONS — a document with four tabs
   ========================================================================== */
.sw-doc {
  margin-top: 56px;
  padding: 0 0 36px;
  border: 1px solid #dcdde8;
  border-radius: 24px;
  background: #fff;
}

.sw-doc-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid #e7e8f0;
  font-family: var(--sw-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8ca3;
}

.sw-tabs {
  display: flex;
  gap: 6px;
  padding: 22px 28px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sw-tabs button {
  flex: none;
  height: 40px;
  padding: 0 18px;
  border: 1px solid #dcdde8;
  border-radius: 100px;
  background: #fff;
  font-family: var(--sw-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-d);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.sw-tabs button[aria-selected="true"] {
  border-color: var(--indigo);
  background: var(--indigo);
  color: #fff;
}

.sw-panel {
  padding: 36px 28px 0;
}

.sw-panel[hidden] {
  display: none;
}

.sw-rule {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  color: #4a4c6a;
}

/* Clear space */
.sw-space {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.sw-space-box {
  position: relative;
  width: 340px;
  padding: 34px;
  outline: 1.5px dashed #aeb0c8;
  outline-offset: -1px;
}

.sw-space-sym {
  width: 170px;
}

.sw-space-box .x {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--sw-font);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: var(--indigo);
  background: rgba(64, 68, 154, 0.08);
}

.x.tl { top: 0; left: 0; }
.x.tr { top: 0; right: 0; }
.x.bl { bottom: 0; left: 0; }
.x.br { bottom: 0; right: 0; }

/* Minimum size */
.sw-sizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 48px 64px;
}

.sw-sizes figure {
  display: grid;
  justify-items: center;
  margin: 0;
}

.sw-size-img {
  max-width: 100%;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #c5c7da;
}

.sw-sizes figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: #6b6d86;
}

.sw-sizes figcaption b {
  display: block;
  font-family: var(--sw-font);
  font-size: 16px;
  color: var(--ink-d);
}

/* Variations */
.sw-vars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sw-var {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 34px 20px 20px;
  border-radius: 18px;
  background: #f5f6fa;
  font-size: 13px;
  font-weight: 500;
  color: #6b6d86;
}

.sw-var .sw-logo {
  width: 96px;
}

.v-rev {
  background: var(--night);
  color: #c9cae0;
}

.v-rev .sw-logo {
  --sw-fw: #fff;
}

.v-black .sw-logo {
  --sw-fy: #0e0e0e;
  --sw-fb: #0e0e0e;
  --sw-fw: #0e0e0e;
}

.v-grey .sw-logo {
  --sw-fy: #a7a8b4;
  --sw-fb: #a7a8b4;
  --sw-fw: #a7a8b4;
}

/* Don'ts: each wrong version swaps back to the right one */
.sw-donts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sw-dont {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px 14px 16px;
  border: 1px solid #ececf3;
  border-radius: 18px;
  background: #fafafc;
  color: var(--ink-d);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.sw-dont-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 120px;
}

.sw-dont .sw-logo {
  width: 74px;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.sw-dont-l {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.sw-dont-l i {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
}

.sw-dont-l i::before {
  content: "✕";
  font-size: 10px;
  font-style: normal;
  color: #fff;
}

.sw-dont[aria-pressed="true"] {
  border-color: #b9e6cf;
  background: #f2fbf6;
}

.sw-dont[aria-pressed="true"] .sw-dont-l i {
  background: #1f9d5b;
}

.sw-dont[aria-pressed="true"] .sw-dont-l i::before {
  content: "✓";
}

.d-recolour:not([aria-pressed="true"]) .sw-logo { --sw-fy: var(--red); --sw-fb: var(--red); --sw-fw: var(--red); }
.d-invert:not([aria-pressed="true"]) .sw-logo { --sw-fy: url(#swg4); --sw-fb: url(#swg1); }
.d-stretch:not([aria-pressed="true"]) .sw-logo { transform: scaleX(1.45) scaleY(0.82); }
.d-rotate:not([aria-pressed="true"]) .sw-logo { transform: rotate(-24deg); }
.d-outline:not([aria-pressed="true"]) .sw-logo { --sw-fy: transparent; --sw-fb: transparent; --sw-fw: transparent; stroke: var(--indigo); stroke-width: 3; }
.d-flat:not([aria-pressed="true"]) .sw-logo { --sw-fy: var(--yellow); --sw-fb: var(--cyan); --sw-fw: var(--cyan); }
.d-word:not([aria-pressed="true"]) .sw-logo { --sw-fw: var(--orange); }
.d-scale:not([aria-pressed="true"]) .sw-logo .sw-sym { transform: scale(0.5); }

/* ==========================================================================
   09 TWO SIDES — palette ribbons
   ========================================================================== */
.sw-ribbons {
  display: grid;
  gap: 18px;
  margin-top: 56px;
}

.sw-ribbon {
  display: flex;
  align-items: center;
  height: 120px;
  padding: 0 64px;
  font-family: var(--sw-font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Each ribbon ends in an arrowhead, facing the other */
.sw-ribbon-b {
  width: 86%;
  background: linear-gradient(90deg, var(--cyan), var(--indigo));
  clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 50%, calc(100% - 60px) 100%, 0 100%, 0 0);
  border-radius: 60px 0 0 60px;
}

.sw-ribbon-y {
  justify-content: flex-end;
  width: 86%;
  margin-left: auto;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  clip-path: polygon(60px 0, 100% 0, 100% 100%, 60px 100%, 0 50%);
  color: var(--ink-d);
}

.sw-stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.sw-stop {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: copy;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.sw-stop:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

.sw-stop i {
  width: 100%;
  height: 54px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.sw-stop b {
  font-family: var(--sw-font);
  font-size: 16px;
}

.sw-stop span {
  font-size: 13px;
  opacity: 0.7;
}

.sw-copied {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  margin: 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink-d);
  font: 600 14px/1 var(--sw-font);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
}

.sw-copied.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ==========================================================================
   10 VOICE — type
   ========================================================================== */
.sw-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}

.sw-type-col {
  padding: 34px 32px;
  border-radius: 24px;
  background: #fff;
}

.sw-type-k {
  font-family: var(--sw-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
}

.sw-type-big {
  margin-top: 8px;
  font-family: var(--sw-font);
  font-size: clamp(90px, 13vw, 168px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--cyan), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sw-type-para {
  margin-top: 22px;
  font-family: var(--sw-body);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4;
  min-height: 2.8em;
}

.sw-type-abc {
  margin-top: 22px;
  font-family: var(--sw-font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #4a4c6a;
  word-break: break-all;
}

.sw-type-hind .sw-type-abc,
.sw-type-hind .sw-type-w {
  font-family: var(--sw-body);
}

.sw-type-w {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ececf3;
  font-family: var(--sw-font);
  font-size: 15px;
}

/* ==========================================================================
   09 IN CIRCULATION — every application in one collage
   ========================================================================== */
.sw-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 210px);
  grid-template-areas:
    "bill bill cards tee"
    "bill bill id tee"
    "web web tote env"
    "tape icon wood wood"
    "desk desk mug mug";
  gap: 12px;
  margin-top: 56px;
}

.sw-bento figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #eef0f6;
}

.sw-bento img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.7s var(--ease);
}

.sw-bento figure:hover img {
  transform: scale(1.04);
}

.sw-bento figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(14, 16, 51, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--sw-font);
  font-size: 12px;
  font-weight: 600;
}

.b-billboard { grid-area: bill; }
.b-cards { grid-area: cards; }
.b-tshirt { grid-area: tee; }
.b-idcard { grid-area: id; }
.b-laptop { grid-area: web; }
.b-tote { grid-area: tote; }
.b-envelope { grid-area: env; }
.b-tape { grid-area: tape; }
.b-icon { grid-area: icon; }
.b-cards-wood { grid-area: wood; }
.b-desk-envelope { grid-area: desk; }
.b-mug { grid-area: mug; }

/* ==========================================================================
   FINALE — back where it started
   ========================================================================== */
.sw-finale {
  position: relative;
  padding: 150px 0 140px;
  overflow: hidden;
  text-align: center;
}

.sw-finale-inner {
  position: relative;
  display: grid;
  justify-items: center;
}

.sw-finale-mark {
  width: 150px;
}

.sw-finale-title {
  max-width: 820px;
  margin-top: 40px;
  font-family: var(--sw-font);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.sw-finale-text {
  margin-top: 22px;
  font-size: 19px;
  font-weight: 300;
  opacity: 0.85;
}

.sw-finale-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.sw-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border: 1.5px solid var(--yellow);
  border-radius: 100px;
  background: var(--yellow);
  color: var(--ink-d);
  font-family: var(--sw-font);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.sw-btn svg {
  width: 12px;
  height: 12px;
}

.sw-btn:hover {
  transform: translateY(-2px);
}

.sw-btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
}

.sw-btn-ghost:hover {
  border-color: #fff;
}

.sw-top {
  margin-top: 54px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.sw-top span {
  display: inline-block;
  margin-left: 6px;
  color: var(--yellow);
  transition: transform 0.6s var(--ease);
}

.sw-top:hover span {
  transform: rotate(-360deg);
}

/* The footer sits on paper */
.sw-page .site-footer {
  position: relative;
  margin-top: 0;
  padding-top: 64px;
  background: #fff;
  color: var(--ink);
}

/* Hide the hero until its entrance runs */
.pre-motion .sw-hero .sw-arm,
.pre-motion .sw-hero .sw-letter,
.pre-motion .sw-hero-text > *,
.pre-motion .sw-info {
  opacity: 0;
}

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 900px) {
  .sw-page {
    --sw-gap: 88px;
  }

  .sw-hero {
    padding: 48px 0 48px;
  }

  .sw-hero-grid,
  .sw-meet-grid,
  .sw-type {
    grid-template-columns: 1fr;
  }

  .sw-hero-grid {
    gap: 36px;
  }

  .sw-hero-mark {
    width: 62vw;
  }

  .sw-hero-sub {
    font-size: 18px;
  }

  .sw-info {
    margin-top: 44px;
  }

  .sw-info > div {
    flex: 1 1 40%;
    margin-right: 0;
    border-right: 0;
  }

  .sw-lead {
    font-size: 17px;
  }

  .sw-meet-grid {
    gap: 36px;
  }

  .sw-fact {
    padding: 20px 16px;
  }

  .sw-fact-num {
    font-size: 32px;
  }

  .sw-split {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 40px;
  }

  .sw-side {
    padding: 28px 22px;
  }

  .sw-split-mark {
    width: 64px;
  }

  .sw-timeline {
    margin-top: 40px;
  }

  .sw-step {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 0 48px 32px;
  }

  .sw-step-t {
    font-size: 22px;
  }

  .sw-step-p {
    font-size: 16px;
  }

  .c-offers {
    gap: 8px;
  }

  .c-offers figcaption {
    left: 6px;
    bottom: 6px;
    padding: 3px 7px;
    font-size: 10px;
  }

  .c-redraws {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 84px;
    gap: 8px;
  }

  .c-redraws figure:first-child {
    grid-column: span 3;
    grid-row: span 2;
  }

  .c-nb {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 100px;
    gap: 8px;
  }

  .sw-compare {
    aspect-ratio: 4 / 5;
  }

  .sw-compare-after .sw-logo,
  .sw-compare-before img {
    height: 56%;
  }

  .sw-build {
    padding: 22px 12px;
  }

  .sw-doc-top {
    padding: 14px 18px;
  }

  .sw-doc-top span:last-child {
    display: none;
  }

  .sw-tabs {
    padding: 18px 18px 0;
  }

  .sw-panel {
    padding: 28px 18px 0;
  }

  .sw-space-box {
    width: 100%;
    max-width: 300px;
  }

  .sw-space-sym {
    width: 150px;
  }

  .sw-vars,
  .sw-donts,
  .sw-stops {
    grid-template-columns: 1fr 1fr;
  }

  .sw-ribbon {
    height: 84px;
    padding: 0 34px;
    font-size: 12px;
  }

  .sw-ribbon-b,
  .sw-ribbon-y {
    width: 92%;
  }

  .sw-type-col {
    padding: 26px 20px;
  }

  .sw-type-para {
    font-size: 22px;
  }

  .sw-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(9, 130px);
    grid-template-areas:
      "bill bill"
      "bill bill"
      "cards tee"
      "id tee"
      "web web"
      "tote env"
      "tape icon"
      "wood wood"
      "desk mug";
    gap: 8px;
    margin-top: 40px;
  }

  .sw-bento figcaption {
    left: 8px;
    bottom: 8px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .sw-finale {
    padding: 110px 0 100px;
  }

  .sw-finale-mark {
    width: 110px;
  }
}
