/* Page builder: base styles for built widgets. Loaded only on pages that use them.
   Per-element settings are scoped CSS in the page itself (#w-<id>); this file is the defaults.
   Uses the site's tokens from styles.css so built sections match the hand-built ones. */

/* ── Structure ── */
.swd-sec { position: relative; }
.swd-rel { overflow: hidden; }
.swd-sec-in { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 1; }
.swd-box { min-width: 0; }
.swd-box.swd-flex { display: flex; flex-direction: column; }
.swd-box.swd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.swd-box { color: inherit; text-decoration: none; }
.swd-w { min-width: 0; }
.swd-anchor { display: block; position: relative; top: calc(-1 * var(--nav-h, 72px)); visibility: hidden; height: 0; }
.swd-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
@media (max-width: 767px) { .swd-bg-video { display: none; } }
.swd-div { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 0; pointer-events: none; color: var(--bg); }
.swd-div-top { top: 0; }
.swd-div-bottom { bottom: 0; }
.swd-div svg { display: block; width: 100%; height: 60px; position: relative; left: 50%; transform-origin: center; translate: -50% 0; }

/* ── Text ── */
.swd-h { margin: 0; }
.swd-h a { color: inherit; text-decoration: none; }
.swd-text > :first-child { margin-top: 0; }
.swd-text > :last-child { margin-bottom: 0; }
.swd-text > * + * { margin-top: 1em; }
.swd-text ul, .swd-text ol { padding-left: 1.3em; }
.swd-text a { color: var(--red-text, #B93216); text-decoration: underline; text-underline-offset: 2px; }
.swd-dropcap > p:first-child::first-letter { float: left; font-family: var(--font-head); font-weight: 800; font-size: 3.4em; line-height: .9; margin: .06em .12em 0 0; color: var(--red, #D43A1A); }

/* Heading highlight styles (house default comes from styles.css em.highlight) */
.swd-acc-red em.highlight { font-family: inherit; font-style: normal; color: var(--swd-accent, var(--red-text)); }
.swd-acc-underline em.highlight { font-style: inherit; font-family: inherit; color: inherit; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--swd-accent, var(--red)) 45%, transparent) 62%, color-mix(in srgb, var(--swd-accent, var(--red)) 45%, transparent) 92%, transparent 92%); }
.swd-acc-marker em.highlight { font-style: inherit; font-family: inherit; color: inherit; background: color-mix(in srgb, var(--swd-accent, var(--red)) 22%, transparent); padding: 0 .12em; border-radius: .12em; }
.swd-acc-gradient em.highlight { font-style: inherit; font-family: inherit; background: linear-gradient(90deg, var(--red, #D43A1A), var(--red-bright, #E86A45)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.swd-acc-outline em.highlight { font-style: inherit; font-family: inherit; color: transparent; -webkit-text-stroke: 1.5px currentColor; -webkit-text-stroke-color: var(--swd-accent, var(--text)); }

/* ── Buttons ── */
.swd-w .btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.swd-btn-full { width: 100%; justify-content: center; }
.swd-btn-plain { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; }
.swd-w .btn-group .swd-ico { width: 1.1em; height: 1.1em; }
@media (max-width: 767px) {
  .swd-stack-btns { flex-direction: column; align-items: stretch !important; }
  .swd-stack-btns > * { width: 100%; justify-content: center; }
}

/* ── Media ── */
.swd-img { margin: 0; }
.swd-img img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
.swd-img figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2, rgba(11,11,11,.62)); }
.swd-img a { display: inline-block; }
.swd-mask-circle img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.swd-mask-rounded img { border-radius: var(--r-lg, 22px); }
.swd-mask-arch img { border-radius: 999px 999px 0 0; }
.swd-mask-blob img { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.swd-mask-hexagon img { clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.swd-mask-diamond img { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.swd-imgfx-zoom { overflow: hidden; }
.swd-imgfx-zoom img { transition: transform .5s var(--ease, ease); }
.swd-imgfx-zoom:hover img { transform: scale(1.06); }
.swd-imgfx-grey img { filter: grayscale(1); transition: filter .4s; }
.swd-imgfx-grey:hover img { filter: none; }
.swd-imgfx-lift img { transition: transform .3s var(--ease, ease), box-shadow .3s; }
.swd-imgfx-lift:hover img { transform: translateY(-6px); box-shadow: var(--e2, 0 10px 24px rgba(0,0,0,.18)); }
.swd-imgfx-tilt img { transition: transform .4s var(--ease, ease); }
.swd-imgfx-tilt:hover img { transform: rotate(-1.5deg) scale(1.02); }
.swd-ico { width: 24px; height: 24px; flex: 0 0 auto; }

/* ── Divider ── */
.swd-divider { display: flex; align-items: center; gap: 14px; width: 100%; }
.swd-line { flex: 1; border-top: 1px solid var(--hairline, rgba(11,11,11,.12)); height: 0; }
.swd-div-el { display: inline-flex; align-items: center; color: var(--ink-2); font-size: 14px; }

/* ── Lightbox ── */
.swd-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(8,8,8,.92); display: flex; align-items: center; justify-content: center; padding: 4vw; opacity: 0; transition: opacity .2s; }
.swd-lb.is-on { opacity: 1; }
.swd-lb img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.swd-lb figcaption { color: #eee; text-align: center; margin-top: 12px; font-size: 15px; }
.swd-lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.swd-lb button:hover { background: rgba(255,255,255,.24); }
.swd-lb .lb-x { top: 18px; right: 18px; }
.swd-lb .lb-p { left: 18px; top: 50%; translate: 0 -50%; }
.swd-lb .lb-n { right: 18px; top: 50%; translate: 0 -50%; }

/* ── Motion ── (only once builder.js runs; nothing is ever hidden without JS) */
/* The transition sits on the shown state only (2.9.3): builder.js runs after the page has drawn, and with a
   transition on the hidden state too, every animated block below the fold first ran a fade-out nobody saw.
   Inside a section skipped while off screen (styles.css, content-visibility) that fade never finishes and
   Chrome keeps redrawing the page. With "every time", a block now hides at once as it leaves, rather than fading. */
html.swdb-js .swd-anim:not(.swd-in) { opacity: 0; transition: none; }
html.swdb-js .swd-anim.swd-in { transition: opacity .8s var(--ease, cubic-bezier(.22,1,.36,1)), transform .8s var(--ease, cubic-bezier(.22,1,.36,1)), filter .8s; }
html.swdb-js .swd-anim.swd-in[data-swd-speed="slow"] { transition-duration: 1.3s; }
html.swdb-js .swd-anim.swd-in[data-swd-speed="fast"] { transition-duration: .45s; }
html.swdb-js .swd-anim[data-swd-anim="fade-up"]:not(.swd-in) { transform: translateY(28px); }
html.swdb-js .swd-anim[data-swd-anim="fade-down"]:not(.swd-in) { transform: translateY(-28px); }
html.swdb-js .swd-anim[data-swd-anim="fade-left"]:not(.swd-in) { transform: translateX(-36px); }
html.swdb-js .swd-anim[data-swd-anim="fade-right"]:not(.swd-in) { transform: translateX(36px); }
html.swdb-js .swd-anim[data-swd-anim="zoom-in"]:not(.swd-in) { transform: scale(.92); }
html.swdb-js .swd-anim[data-swd-anim="zoom-out"]:not(.swd-in) { transform: scale(1.08); }
html.swdb-js .swd-anim[data-swd-anim="slide-up"]:not(.swd-in) { transform: translateY(70px); opacity: 1; }
html.swdb-js .swd-anim[data-swd-anim="rotate-in"]:not(.swd-in) { transform: rotate(-4deg) translateY(20px); }
html.swdb-js .swd-anim[data-swd-anim="blur-in"]:not(.swd-in) { filter: blur(10px); }
@media (prefers-reduced-motion: reduce) {
  html.swdb-js .swd-anim, html.swdb-js .swd-anim:not(.swd-in) { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}
html.swd-lite .swd-anim { transition-duration: .3s !important; }

/* Hover animations */
[class*="swd-hv-"] { transition: transform .3s var(--ease, ease), box-shadow .3s, filter .3s; }
.swd-hv-grow:hover { transform: scale(1.05); }
.swd-hv-shrink:hover { transform: scale(.95); }
.swd-hv-float:hover { transform: translateY(-6px); }
.swd-hv-sink:hover { transform: translateY(6px); }
.swd-hv-push:active { transform: scale(.94); }
.swd-hv-pop:hover { animation: swd-pop .3s; }
.swd-hv-pulse:hover { animation: swd-pulse 1s infinite; }
.swd-hv-bob:hover { animation: swd-bob 1s ease-in-out infinite; }
.swd-hv-wobble:hover { animation: swd-wobble .7s; }
.swd-hv-skew:hover { transform: skew(-6deg); }
.swd-hv-glow:hover { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--red, #D43A1A) 45%, transparent)); }
.swd-hv-lift:hover { transform: translateY(-4px); box-shadow: var(--e2, 0 12px 28px rgba(0,0,0,.16)); }
@keyframes swd-pop { 50% { transform: scale(1.1); } }
@keyframes swd-pulse { 50% { transform: scale(1.05); } }
@keyframes swd-bob { 50% { transform: translateY(-6px); } }
@keyframes swd-wobble { 20% { transform: rotate(-4deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { [class*="swd-hv-"]:hover { animation: none !important; transform: none !important; } }

/* Display conditions: hidden until builder.js decides (dates are also re-checked on each page build) */
html.swdb-js [data-swd-cond], html.swdb-js [data-swd-from], html.swdb-js [data-swd-until] { display: none; }
html.swdb-js .swd-cond-ok { display: revert !important; }

/* ═══ Phase 2 widgets ═══ */

/* Section header */
.swd-w .section-header > * + * { margin-top: 12px; }
.swd-w .section-header.centered { margin-inline: auto; text-align: center; }

/* Animated headline */
.swd-ah-words { display: inline-block; color: var(--red-text, #B93216); font-family: var(--font-serif); font-style: italic; white-space: nowrap; transition: opacity .3s, transform .3s; }
.swd-ah-type .swd-ah-words::after { content: ""; display: inline-block; width: 2px; height: .9em; margin-left: 3px; background: currentColor; vertical-align: -.08em; animation: swd-caret 1s steps(1) infinite; }
@keyframes swd-caret { 50% { opacity: 0; } }
.swd-ah-words.is-out { opacity: 0; transform: translateY(-.25em); }
.swd-ah-words.is-in { animation: swd-ah-in .45s var(--ease, ease) both; }
.swd-ah-flip .swd-ah-words.is-in { animation-name: swd-ah-flip; }
@keyframes swd-ah-in { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes swd-ah-flip { from { opacity: 0; transform: rotateX(90deg); } to { opacity: 1; transform: none; } }
.swd-ah-highlight .swd-ah-words { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--red, #D43A1A) 35%, transparent) 62%) no-repeat 0 0 / 0 100%; animation: swd-ah-mark 1.2s .3s var(--ease, ease) forwards; color: inherit; font-family: inherit; font-style: inherit; }
@keyframes swd-ah-mark { to { background-size: 100% 100%; } }

/* Quote */
.swd-quote { margin: 0; --swd-q: var(--red, #D43A1A); }
.swd-quote p { font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; margin: 0; }
.swd-quote footer { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.swd-quote cite { font-style: normal; font-weight: 700; color: var(--text); }
.swd-q-role { display: block; }
.swd-quote-line { border-left: 3px solid var(--swd-q); padding-left: 22px; }
.swd-quote-mark { position: relative; padding-top: 34px; }
.swd-quote-mark::before { content: "\201C"; position: absolute; top: -14px; left: -4px; font-family: var(--font-serif); font-size: 96px; line-height: 1; color: var(--swd-q); }
.swd-quote-boxed { background: var(--surface-1, #F3F1E8); padding: 28px 32px; border-radius: 16px; }
.swd-quote-large p { font-size: clamp(26px, 3.6vw, 44px); font-family: var(--font-serif); font-style: italic; }

/* Note */
.swd-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; border: 1px solid; position: relative; }
.swd-note-ico { margin-top: 2px; }
.swd-note-body { flex: 1; min-width: 0; }
.swd-note-body > p { margin: 0; }
.swd-note-body > p + p { margin-top: .6em; }
.swd-note-title { display: block; margin-bottom: 4px; }
.swd-note-info { background: color-mix(in srgb, #3b82f6 9%, transparent); border-color: color-mix(in srgb, #3b82f6 30%, transparent); }
.swd-note-success { background: color-mix(in srgb, #2e9c5a 10%, transparent); border-color: color-mix(in srgb, #2e9c5a 32%, transparent); }
.swd-note-warning { background: color-mix(in srgb, #d6a93f 14%, transparent); border-color: color-mix(in srgb, #d6a93f 40%, transparent); }
.swd-note-danger, .swd-note-brand { background: color-mix(in srgb, var(--red, #D43A1A) 9%, transparent); border-color: color-mix(in srgb, var(--red, #D43A1A) 32%, transparent); }
.swd-note-plain { background: var(--surface-1, #F3F1E8); border-color: var(--hairline); }
.swd-note-x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 0 4px; }
.swd-note-x:hover { opacity: 1; }

/* Tags */
.swd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.swd-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.5; }
.swd-tags-square .swd-tag { border-radius: 6px; }
.swd-tags-sm .swd-tag { font-size: 11.5px; padding: 2px 9px; }
.swd-tags-lg .swd-tag { font-size: 15px; padding: 6px 16px; }
.swd-tag .swd-ico { width: 1em; height: 1em; }
.swd-tag-red { background: var(--red, #D43A1A); color: #fff; }
.swd-tag-dark { background: var(--charcoal, #2A2A28); color: var(--paper, #ECEAE0); }
.swd-tag-light { background: var(--surface-1, #F3F1E8); color: var(--text); }
.swd-tag-outline { border: 1.5px solid currentColor; color: var(--text); }
.swd-tag-green { background: #2e9c5a; color: #fff; }

/* Star rating */
.swd-rating { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swd-stars { position: relative; display: inline-block; font-size: 22px; line-height: 1; letter-spacing: 2px; }
.swd-stars-off { color: color-mix(in srgb, currentColor 22%, transparent); }
.swd-stars-on { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--red, #D43A1A); }
.swd-rating-label { font-size: 15px; color: var(--ink-2); }

/* Read more */
.swd-rm-body { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--swd-rm-lines, 3); }
.swd-rm.is-open .swd-rm-body { display: block; -webkit-line-clamp: unset; }
.swd-rm-btn { margin-top: 10px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--red-text, #B93216); }

/* Table of contents */
.swd-toc { font-size: 15px; }
.swd-toc-title { font-weight: 700; margin: 0 0 10px; }
.swd-toc summary { cursor: pointer; }
.swd-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
ol.swd-toc-list { list-style: decimal; padding-left: 1.4em; }
.swd-toc a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--hairline); color: var(--ink-2); text-decoration: none; }
.swd-toc a:hover { color: var(--text); }
.swd-toc a.is-active { color: var(--red-text); border-color: var(--red); }
.swd-toc .swd-toc-h3 a { padding-left: 26px; font-size: .94em; }
.swd-toc .swd-toc-h4 a { padding-left: 40px; font-size: .9em; }

/* Reading progress */
.swd-progress { position: fixed; left: 0; right: 0; height: 3px; z-index: 999; pointer-events: none; }
.swd-progress-top { top: 0; }
.swd-progress-bottom { bottom: 0; }
.swd-progress span { display: block; height: 100%; width: 0; background: var(--red, #D43A1A); }
html.swd-builder .swd-progress { display: none; }

/* Lists */
.swd-list { margin: 0; padding: 0; list-style: none; --swd-mk: var(--red, #D43A1A); }
.swd-list > li { display: flex; gap: 10px; align-items: flex-start; break-inside: avoid; }
.swd-list > li + li { margin-top: 8px; }
.swd-list .swd-ico { width: 20px; height: 20px; color: var(--swd-mk); margin-top: .2em; }
.swd-list-bullet > li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-top: .65em; flex: 0 0 auto; }
.swd-list-dot > li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--swd-mk); margin-top: .55em; flex: 0 0 auto; }
ol.swd-list-number { counter-reset: swdli; }
ol.swd-list-number > li { counter-increment: swdli; }
ol.swd-list-number > li::before { content: counter(swdli, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; color: var(--swd-mk); min-width: 2ch; }
.swd-list-inline { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.swd-list-inline > li + li { margin-top: 0; }
.swd-list-inline > li + li::before { content: "\00B7"; margin-right: 12px; color: var(--ink-3); }
.swd-list-none > li { display: block; }
.swd-li-detail { color: var(--ink-2); }
.swd-list a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
dl.swd-list-spec { display: grid; gap: 0; }
.swd-spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.swd-spec-row dt { font-weight: 600; }
.swd-spec-row dd { margin: 0; color: var(--ink-2); text-align: right; }

/* Price list */
.swd-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 40px; }
.swd-pl-item { display: flex; gap: 14px; align-items: flex-start; }
.swd-pl-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.swd-pl-main { flex: 1; min-width: 0; }
.swd-pl-top { display: flex; align-items: baseline; gap: 10px; }
.swd-pl-name { font-weight: 700; font-family: var(--font-head); }
.swd-pl-name a { color: inherit; text-decoration: none; }
.swd-pl-lead { flex: 1; border-bottom: 2px dotted var(--hairline); transform: translateY(-4px); min-width: 20px; }
.swd-pl-lead-line { border-bottom-style: solid; border-bottom-width: 1px; }
.swd-pl-lead-none { border: 0; }
.swd-pl-price { font-weight: 800; font-family: var(--font-head); white-space: nowrap; }
.swd-pl-desc { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }

/* Tables */
.swd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.swd-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.swd-table caption { caption-side: bottom; text-align: left; padding-top: 10px; color: var(--ink-2); font-size: 14px; }
.swd-table th, .swd-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.swd-table thead th { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.swd-table-framed { border: 1.5px solid var(--text); }
.swd-table-framed th, .swd-table-framed td { border: 1px solid color-mix(in srgb, var(--text) 30%, transparent); }
.swd-table-zebra tbody tr:nth-child(odd) { background: var(--surface-1, #F3F1E8); }
.swd-table .swd-yes { color: #2e9c5a; display: inline-flex; }
.swd-table .swd-no { color: var(--ink-3); display: inline-flex; }
.swd-table .swd-yes .swd-ico, .swd-table .swd-no .swd-ico { width: 20px; height: 20px; }
.swd-table .swd-hl { background: color-mix(in srgb, var(--red, #D43A1A) 7%, transparent); }
.swd-hl-badge { display: block; width: max-content; margin-bottom: 6px; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--red, #D43A1A); color: #fff; }
.swd-tr-sec td { font-weight: 700; background: var(--surface-1, #F3F1E8); }
.swd-table-sticky thead th { position: sticky; top: var(--nav-h, 72px); background: var(--bg); z-index: 1; }
[data-swd-sort] thead th { cursor: pointer; user-select: none; }
[data-swd-sort] thead th[aria-sort="ascending"]::after { content: " \2191"; }
[data-swd-sort] thead th[aria-sort="descending"]::after { content: " \2193"; }
@media (max-width: 767px) {
  .swd-table-stack table, .swd-table-stack tbody, .swd-table-stack tr, .swd-table-stack td, .swd-table-stack th { display: block; width: 100%; }
  .swd-table-stack thead { display: none; }
  .swd-table-stack tr { border: 1px solid var(--hairline); border-radius: 10px; margin-bottom: 12px; padding: 6px 4px; }
  .swd-table-stack td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
  .swd-table-stack td, .swd-table-stack th { border: 0; padding: 6px 10px; }
}

/* Icon */
.swd-icon { display: inline-grid; place-items: center; color: var(--red, #D43A1A); line-height: 0; transition: color .2s, background .2s; }
.swd-icon svg, .swd-icon img { width: 40px; height: 40px; }
.swd-icon-circle, .swd-icon-outline { border-radius: 50%; padding: 16px; }
.swd-icon-circle, .swd-icon-square { background: color-mix(in srgb, currentColor 12%, transparent); }
.swd-icon-square { border-radius: 14px; padding: 16px; }
.swd-icon-outline { border: 2px solid currentColor; }

/* Icon box */
.swd-ib { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; height: 100%; }
.swd-ib-row { flex-direction: row; align-items: flex-start; }
.swd-ib-right { flex-direction: row-reverse; }
.swd-ib-media { color: var(--red, #D43A1A); line-height: 0; flex: 0 0 auto; }
.swd-ib-media svg { width: 40px; height: 40px; }
.swd-ib-media img { width: 100%; max-width: 100%; height: auto; border-radius: 10px; }
.swd-ib-row .swd-ib-media img { width: 120px; }
.swd-ib-num { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; color: var(--red, #D43A1A); }
.swd-ib-title { margin: 0; }
.swd-ib-text { margin: 6px 0 0; color: var(--ink-2); }
.swd-ib-body .sec-link { margin-top: 12px; display: inline-flex; }
.swd-ib-box-rule { border-top: 1px solid var(--hairline); padding-top: 22px; }
.swd-ib-box-filled { background: var(--surface-1, #F3F1E8); padding: 26px; border-radius: 16px; }
.swd-ib-box-outline { border: 1px solid var(--hairline); padding: 26px; border-radius: 16px; }
a.swd-ib:hover .swd-ib-title { color: var(--red-text); }
@media (min-width: 768px) and (max-width: 1024px) {
  .swd-ib-t-top { flex-direction: column; } .swd-ib-t-left { flex-direction: row; } .swd-ib-t-right { flex-direction: row-reverse; }
}
@media (max-width: 767px) {
  .swd-ib-row:not(.swd-ib-m-left):not(.swd-ib-m-right) { flex-direction: column; }
  .swd-ib-m-left { flex-direction: row; } .swd-ib-m-right { flex-direction: row-reverse; } .swd-ib-m-top { flex-direction: column; }
}

/* Gallery */
.swd-gal { display: grid; gap: 12px; }
.swd-gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swd-gal-masonry { display: block; columns: 3; column-gap: var(--swd-gap, 12px); }
.swd-gal-masonry .swd-gal-item { break-inside: avoid; margin-bottom: var(--swd-gap, 12px); }
.swd-gal-justified { display: flex; flex-wrap: wrap; }
.swd-gal-justified .swd-gal-item { flex: 1 1 auto; }
.swd-gal-justified img { height: 220px; width: 100%; object-fit: cover; }
.swd-gal-item { margin: 0; position: relative; overflow: hidden; }
.swd-gal-item[hidden] { display: none; }
.swd-gal-item img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease, ease), filter .4s, opacity .3s; }
.swd-gal-item a { display: block; }
.swd-gal-item figcaption { font-size: 14px; color: var(--ink-2); padding-top: 6px; }
.swd-gal-cap-hover figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .3s; }
.swd-gal-cap-hover .swd-gal-item:hover figcaption { opacity: 1; }
.swd-gal-fx-zoom .swd-gal-item:hover img { transform: scale(1.05); }
.swd-gal-fx-grey img { filter: grayscale(1); }
.swd-gal-fx-grey .swd-gal-item:hover img { filter: none; }
.swd-gal-fx-lift .swd-gal-item:hover img { transform: translateY(-4px); }
.swd-gal-fx-dim:hover .swd-gal-item:not(:hover) img { opacity: .55; }
.swd-gal-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.swd-gal-tabs button { border: 1px solid var(--hairline); background: none; padding: 6px 14px; border-radius: 99px; cursor: pointer; font: inherit; font-size: 14px; color: inherit; }
.swd-gal-tabs button.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.swd-gal-more { margin-top: 18px; }

/* Carousel */
.swd-car { position: relative; --swd-pv: 1; --swd-cg: 16px; }
.swd-car-track { display: flex; gap: var(--swd-cg); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.swd-car-track::-webkit-scrollbar { display: none; }
.swd-car-slide { flex: 0 0 calc((100% - (var(--swd-pv) - 1) * var(--swd-cg)) / var(--swd-pv)); scroll-snap-align: start; position: relative; height: 460px; }
.swd-car-slide > img, .swd-car-slide > a > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swd-car-slide > a { display: block; height: 100%; }
.swd-car-full { display: flex; align-items: center; overflow: hidden; }
.swd-car-full::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 1; pointer-events: none; }
.swd-car-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.swd-car-kb .swd-car-slide.is-active .swd-car-bg { animation: swd-kb 9s ease-out forwards; }
@keyframes swd-kb { from { transform: scale(1); } to { transform: scale(1.1); } }
.swd-car-cap { position: relative; z-index: 2; width: 100%; }
.swd-car-cap > * + * { margin-top: 14px; }
.swd-car-al-center .swd-car-cap { text-align: center; }
.swd-car-al-right .swd-car-cap { text-align: right; }
.swd-car-title { font-size: clamp(30px, 4.4vw, 56px); margin: 0; }
.swd-car-text { max-width: 620px; font-size: clamp(17px, 1.8vw, 21px); }
.swd-car-al-center .swd-car-text { margin-inline: auto; }
.swd-car-al-right .swd-car-text { margin-left: auto; }
.swd-car-fade .swd-car-track { display: grid; overflow: hidden; }
.swd-car-fade .swd-car-slide { grid-area: 1 / 1; opacity: 0; transition: opacity .8s; pointer-events: none; }
.swd-car-fade .swd-car-slide.is-active { opacity: 1; pointer-events: auto; }
.swd-car-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.9); color: var(--onyx, #0B0B0B); display: grid; place-items: center; box-shadow: var(--e1); }
.swd-car-arrow .swd-ico { width: 22px; height: 22px; }
.swd-car-prev { left: 12px; }
.swd-car-prev .swd-ico { transform: rotate(180deg); }
.swd-car-next { right: 12px; }
.swd-car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.swd-car-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: color-mix(in srgb, currentColor 25%, transparent); cursor: pointer; transition: width .3s, background .3s; }
.swd-car-dots button[aria-current="true"] { width: 26px; background: var(--red, #D43A1A); }

/* Before / after */
.swd-ba { position: relative; overflow: hidden; aspect-ratio: 16 / 10; --swd-pos: 50%; --swd-ba: #fff; user-select: none; touch-action: pan-y; }
.swd-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swd-ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--swd-pos)) 0 0); }
.swd-ba-v .swd-ba-before { clip-path: inset(0 0 calc(100% - var(--swd-pos)) 0); }
.swd-ba-handle { position: absolute; top: 0; bottom: 0; left: var(--swd-pos); width: 3px; translate: -50% 0; background: var(--swd-ba); pointer-events: none; }
.swd-ba-handle::after { content: "\2039 \203A"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; background: var(--swd-ba); color: var(--onyx, #0B0B0B); display: grid; place-items: center; font: 700 16px/1 system-ui, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.swd-ba-v .swd-ba-handle { top: var(--swd-pos); left: 0; right: 0; bottom: auto; width: auto; height: 3px; translate: 0 -50%; }
.swd-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.swd-ba-v .swd-ba-range { cursor: ns-resize; }
.swd-ba:focus-within .swd-ba-handle { box-shadow: 0 0 0 3px var(--red); }
.swd-ba-lbl { position: absolute; top: 14px; z-index: 2; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; pointer-events: none; }
.swd-ba-lbl-b { left: 14px; }
.swd-ba-lbl-a { right: 14px; }

/* Hotspots */
.swd-hspots { position: relative; }
.swd-hspots > img { display: block; width: 100%; height: auto; }
.swd-hs { position: absolute; translate: -50% -50%; z-index: 2; }
.swd-hs-pin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; background: var(--red, #D43A1A); color: #fff; font: 700 16px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.swd-hs-pulse .swd-hs-pin { animation: swd-hs-pulse 2s infinite; }
@keyframes swd-hs-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 60%, transparent); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.swd-hs-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 0; width: max-content; max-width: 260px; background: var(--surface, #fff); color: var(--text); padding: 12px 14px; border-radius: 10px; box-shadow: var(--e2, 0 10px 24px rgba(0,0,0,.2)); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.swd-hs-tip p { margin: 4px 0 0; }
.swd-hs.is-open .swd-hs-tip { opacity: 1; pointer-events: auto; }
[data-trigger="hover"] .swd-hs:hover .swd-hs-tip { opacity: 1; pointer-events: auto; }

/* Video / audio */
.swd-video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.swd-video video, .swd-video > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swd-video-play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--red, #D43A1A); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .2s; }
.swd-video-play:hover { transform: scale(1.06); }
.swd-video-play svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.swd-lb video { max-width: 100%; max-height: 86vh; }
.swd-audio strong { display: block; margin-bottom: 4px; }
.swd-audio p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.swd-audio audio { width: 100%; }

/* Logos */
.swd-logos-title { margin-bottom: 18px; }
.swd-logos ul { list-style: none; margin: 0; padding: 0; }
.swd-logos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.swd-logos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: center; justify-items: center; }
.swd-logos img { height: 44px; width: auto; max-width: 100%; object-fit: contain; transition: filter .3s, opacity .3s; }
.swd-logos-grey img { filter: grayscale(1); opacity: .7; }
.swd-logos-grey img:hover { filter: none; opacity: 1; }
.swd-logos-marquee { display: flex; overflow: hidden; gap: 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.swd-logos-track { display: flex; gap: 48px; align-items: center; flex: 0 0 auto; animation: swd-marquee 40s linear infinite; }
@keyframes swd-marquee { to { transform: translateX(calc(-100% - 48px)); } }
@media (prefers-reduced-motion: reduce) { .swd-logos-track { animation: none; } }

/* Device mockup */
.swd-dev { --swd-frame: #1c1c1f; position: relative; margin-inline: auto; width: 100%; }
.swd-dev-link { display: block; color: inherit; }
.swd-dev-screen { overflow: hidden; background: #fff; }
.swd-dev-screen img { display: block; width: 100%; height: auto; }
.swd-dev-browser { border-radius: 12px; overflow: hidden; box-shadow: var(--e2, 0 14px 40px rgba(0,0,0,.18)); border: 1px solid var(--hairline); }
.swd-dev-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-1, #F3F1E8); border-bottom: 1px solid var(--hairline); }
.swd-dev-bar i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--text) 18%, transparent); }
.swd-dev-bar span { flex: 1; margin-left: 10px; padding: 3px 12px; border-radius: 99px; background: var(--bg); font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swd-dev-laptop { border: 14px solid var(--swd-frame); border-bottom-width: 18px; border-radius: 16px 16px 4px 4px; margin-bottom: 34px; }
.swd-dev-laptop::after { content: ""; position: absolute; left: -9%; right: -9%; bottom: -34px; height: 16px; background: linear-gradient(var(--swd-frame), #000); border-radius: 0 0 14px 14px; }
.swd-dev-tablet { border: 18px solid var(--swd-frame); border-radius: 26px; max-width: 620px; }
.swd-dev-phone { border: 12px solid var(--swd-frame); border-radius: 38px; max-width: 320px; }
.swd-dev-phone .swd-dev-screen { border-radius: 26px; }
.swd-dev-scroll .swd-dev-screen { height: 420px; }
.swd-dev-scroll .swd-dev-screen img { transition: transform 6s ease-in-out; }
.swd-dev-scroll:hover .swd-dev-screen img { transform: translateY(calc(-100% + 420px)); }
.swd-dev-tilt { transform: perspective(1400px) rotateY(-10deg) rotateX(4deg); transition: transform .6s var(--ease, ease); }
.swd-dev-tilt:hover { transform: none; }

/* Shapes */
.swd-shape { color: var(--red, #D43A1A); line-height: 0; width: 200px; }
.swd-shape svg { width: 100%; height: auto; display: block; }
@keyframes swd-spin { to { transform: rotate(360deg); } }

/* CTA box */
.swd-cta { position: relative; display: grid; overflow: hidden; border-radius: 16px; }
.swd-cta-img-left, .swd-cta-img-right { grid-template-columns: 1fr 1fr; }
.swd-cta-body { padding: 48px; position: relative; z-index: 2; display: grid; gap: 14px; align-content: center; }
.swd-cta-title { margin: 0; }
.swd-cta-text { margin: 0; max-width: 60ch; }
.swd-cta-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swd-cta-bg { position: absolute; inset: 0; z-index: 0; }
.swd-cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.swd-cta-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.swd-cta-img-bg { color: #fff; }
.swd-cta-ribbon { position: absolute; top: 18px; right: -34px; z-index: 3; rotate: 45deg; background: var(--onyx, #0B0B0B); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 40px; }
@media (max-width: 767px) { .swd-cta-img-left, .swd-cta-img-right { grid-template-columns: 1fr; } .swd-cta-body { padding: 28px; } }

/* Flip box */
.swd-flip { perspective: 1200px; height: 300px; outline-offset: 4px; }
.swd-flip-card { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease, ease); transform-style: preserve-3d; }
.swd-flip-face { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.swd-flip-in { position: relative; z-index: 1; padding: 28px; display: grid; gap: 10px; justify-items: center; }
.swd-flip-in h3, .swd-flip-in p { margin: 0; }
.swd-flip-in .swd-ico { width: 40px; height: 40px; color: var(--red, #D43A1A); }
.swd-flip-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .35; }
.swd-flip-flip .swd-flip-back { transform: rotateY(180deg); }
.swd-flip-flip.swd-flip-y .swd-flip-back { transform: rotateX(180deg); }
.swd-flip-flip:is(:hover, :focus-within, .is-flipped) .swd-flip-card { transform: rotateY(180deg); }
.swd-flip-flip.swd-flip-y:is(:hover, :focus-within, .is-flipped) .swd-flip-card { transform: rotateX(180deg); }
.swd-flip-slide .swd-flip-face, .swd-flip-fade .swd-flip-face { backface-visibility: visible; transition: transform .5s var(--ease, ease), opacity .5s; }
.swd-flip-slide .swd-flip-back { transform: translateY(100%); }
.swd-flip-slide:is(:hover, :focus-within, .is-flipped) .swd-flip-back { transform: none; }
.swd-flip-fade .swd-flip-back { opacity: 0; }
.swd-flip-fade:is(:hover, :focus-within, .is-flipped) .swd-flip-back { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .swd-flip-card, .swd-flip-face { transition: none !important; } }

/* Link list */
.swd-links-title { margin: 0 0 14px; }
.swd-links { list-style: none; margin: 0; padding: 0; }
.swd-links li a, .swd-links li > span { display: flex; align-items: center; gap: 14px; padding: 16px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--hairline); }
.swd-links-rows li:last-child a, .swd-links-rows li:last-child > span { border-bottom: 1px solid var(--hairline); }
.swd-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.swd-links-inline { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.swd-links-inline li a { border: 0; padding: 4px 0; }
.swd-link-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.swd-link-label { font-weight: 700; font-family: var(--font-head); }
.swd-link-desc { color: var(--ink-2); font-size: 15px; }
.swd-link-num { font-family: var(--font-head); font-weight: 800; color: var(--ink-3); min-width: 2ch; }
.swd-links .ar-ne { width: 22px; height: 22px; flex: 0 0 auto; color: var(--red, #D43A1A); transition: transform .25s var(--ease, ease); }
.swd-links a:hover .ar-ne { transform: translate(3px, -3px); }
.swd-links a:hover .swd-link-label { color: var(--red-text); }

/* Contact buttons / floating */
.swd-contact-btns .swd-ico { width: 1.1em; height: 1.1em; }
.swd-brand-whatsapp { background: #25D366 !important; border-color: #25D366 !important; color: #0b3d1f !important; }
.swd-float { position: fixed; z-index: 900; bottom: 18px; }
.swd-float-br { right: 18px; }
.swd-float-bl { left: 18px; }
.swd-float.btn-group { flex-direction: column; align-items: stretch; }
@media (min-width: 768px) { .swd-float-m { display: none !important; } }
html.swd-builder .swd-float { position: static; }

/* Social */
.swd-social { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swd-social a, .swd-social button { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; border: 0; background: none; font: inherit; cursor: pointer; transition: color .2s, background .2s; }
.swd-social-circle a, .swd-social-circle button, .swd-social-square a, .swd-social-square button { padding: 10px; background: color-mix(in srgb, currentColor 10%, transparent); }
.swd-social-circle a, .swd-social-circle button { border-radius: 99px; }
.swd-social-square a, .swd-social-square button { border-radius: 10px; }
.swd-social svg { width: 20px; height: 20px; }
.swd-social button.is-copied { color: #2e9c5a; }

/* Jump-link bar */
.swd-abar { background: var(--bg); border-bottom: 1px solid var(--hairline); }
.swd-abar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 22px; overflow-x: auto; scrollbar-width: none; }
.swd-abar a { display: block; padding: 14px 0 12px; border-bottom: 2px solid transparent; color: var(--ink-2); text-decoration: none; white-space: nowrap; font-weight: 600; }
.swd-abar a:hover { color: var(--text); }
.swd-abar a.is-active { color: var(--red-text); border-color: var(--red); }

/* Scroll buttons */
.swd-scrollbtn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; padding: 10px; border-radius: 99px; }
.swd-scrollbtn .swd-ico { width: 26px; height: 26px; }
.swd-scrollbtn.swd-float { background: var(--text); color: var(--bg); box-shadow: var(--e2); }
.swd-bounce .swd-ico { animation: swd-bob 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .swd-bounce .swd-ico { animation: none; } }

/* ═══ Phase 3: page sections (marketing widgets) ═══ */
/* Muted text and lines that work on light AND dark sections (the site's --ink-2 / --hairline are light-theme only). */
.swd-w { --swd-muted: color-mix(in srgb, currentColor 68%, transparent); --swd-faint: color-mix(in srgb, currentColor 48%, transparent); --swd-hair: color-mix(in srgb, currentColor 16%, transparent); --swd-card: var(--surface-1, #F3F1E8); }
.s-dark .swd-w, .s-charcoal .swd-w, .s-red .swd-w, .swd-w .s-dark, .swd-w .s-charcoal, .swd-w .s-red, .swd-hero-hasbg { --swd-dotbg: transparent; --swd-card: color-mix(in srgb, currentColor 8%, transparent); --swd-plan: color-mix(in srgb, currentColor 5%, transparent); }
.s-dark .swd-w, .swd-w .s-dark { --swd-ring: var(--onyx, #0E0E10); }
.s-charcoal .swd-w, .swd-w .s-charcoal { --swd-ring: var(--charcoal, #1C1C1F); }
.s-red .swd-w, .swd-w .s-red { --swd-ring: var(--red, #D43A1A); }


/* Hero */
.swd-hero { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.swd-hero-sm { padding: 56px 0 48px; }
.swd-hero-lg { padding: clamp(96px, 12vw, 168px) 0 clamp(80px, 10vw, 136px); }
.swd-hero-full { min-height: calc(100vh - var(--nav-h, 72px)); display: flex; align-items: center; }
.swd-hero-full > .swd-hero-in { width: 100%; }
.swd-hero-in { position: relative; z-index: 2; display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.swd-hero-split .swd-hero-in { grid-template-columns: 1.1fr .9fr; }
.swd-hero-split.swd-hero-flip .swd-hero-media { order: -1; }
.swd-hero-copy { max-width: 760px; }
.swd-hero-center .swd-hero-copy { margin: 0 auto; text-align: center; }
.swd-hero-center .swd-hero-btns, .swd-hero-center .swd-bc { justify-content: center; }
.swd-hero-eyebrow { display: block; margin-bottom: 12px; }
.swd-hero-h { font-size: var(--h1-hero, clamp(40px, 6vw, 76px)); line-height: 1.02; margin: 0; letter-spacing: -.02em; }
.swd-hero-lead { margin: 22px 0 0; font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; }
.swd-hero-center .swd-hero-lead { margin-left: auto; margin-right: auto; }
.swd-hero-btns { margin-top: 30px; }
.swd-hero-note { margin: 14px 0 0; font-size: 14px; color: var(--swd-muted); }
.swd-hero .swd-bc { margin-bottom: 22px; }
.swd-hero-media img { width: 100%; height: auto; border-radius: var(--r-lg, 20px); display: block; }
.swd-hero-media.swd-ph { min-height: 280px; display: grid; place-items: center; }
.swd-hero-word { position: absolute; z-index: 1; right: -2vw; bottom: -0.18em; font-family: var(--font-head); font-weight: 800; font-size: clamp(120px, 22vw, 340px); line-height: 1; letter-spacing: -.04em; color: currentColor; opacity: .05; pointer-events: none; white-space: nowrap; }
.swd-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.swd-hero-ov { position: absolute; inset: 0; background: #0E0E10; opacity: .55; z-index: 1; }
.swd-hero-hasbg { color: var(--paper, #F7F5EE); }
.swd-hero-hasbg .swd-hero-note, .swd-hero-hasbg .lead { color: inherit; opacity: .9; }
@media (max-width: 900px) { .swd-hero-split .swd-hero-in { grid-template-columns: 1fr; } .swd-hero-split.swd-hero-flip .swd-hero-media { order: 0; } }

/* Service tiles */
.swd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.swd-tile { position: relative; display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; padding: 28px 0 0; transition: background .2s, border-color .2s, transform .2s; }
.swd-tiles-rule .swd-tile { border-top: 1px solid var(--swd-hair); }
.swd-tiles-rule .swd-tile.is-feat { border-top: 2px solid var(--red, #D43A1A); }
.swd-tiles-card .swd-tile { background: var(--swd-card); border-radius: var(--r-lg, 18px); padding: 28px; }
.swd-tiles-outline .swd-tile { border: 1px solid var(--swd-hair); border-radius: var(--r-lg, 18px); padding: 28px; }
.swd-tiles-card .swd-tile.is-feat, .swd-tiles-outline .swd-tile.is-feat { background: var(--onyx, #0E0E10); color: var(--paper, #F7F5EE); border-color: transparent; }
.swd-tiles-card .swd-tile.is-feat .swd-tile-text, .swd-tiles-outline .swd-tile.is-feat .swd-tile-text { color: inherit; opacity: .8; }
a.swd-tile:hover { transform: translateY(-2px); }
.swd-tile-icon { color: var(--red, #D43A1A); line-height: 0; }
.swd-tile-icon svg { width: 34px; height: 34px; }
.swd-tile-icon img { width: 100%; height: auto; border-radius: 12px; }
.swd-tile-tag { align-self: flex-start; }
.swd-tile-title { margin: 4px 0 0; font-size: clamp(20px, 1.8vw, 24px); }
.swd-tile-text { margin: 0; color: var(--swd-muted); }
.swd-tile-ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.swd-tile-ticks li { display: flex; gap: 8px; align-items: flex-start; }
.swd-tile-ticks svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--red, #D43A1A); }
.swd-tile-price { margin: auto 0 0; padding-top: 8px; font-weight: 700; font-family: var(--font-head); }
.swd-tile-link { margin-top: 4px; }
@media (max-width: 1024px) { .swd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .swd-tiles { grid-template-columns: 1fr; } }

/* Process steps */
.swd-steps { list-style: none; margin: 0; padding: 0; --swd-line: var(--swd-hair); }
.swd-steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.swd-step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.swd-steps-row.swd-steps-line .swd-step:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 64px; right: -14px; height: 1px; background: var(--swd-line); }
.swd-step-num { width: 48px; height: 48px; border-radius: 99px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--red, #D43A1A); border: 1px solid var(--swd-hair); background: var(--swd-dotbg, var(--bg)); position: relative; z-index: 1; flex: 0 0 auto; }
.swd-step-num svg { width: 22px; height: 22px; }
.swd-step-when { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--swd-faint); margin-bottom: 4px; }
.swd-step-title { margin: 0; font-size: 20px; }
.swd-step-text { margin: 6px 0 0; color: var(--swd-muted); }
.swd-steps-down { display: grid; gap: 30px; }
.swd-steps-down .swd-step { flex-direction: row; gap: 20px; }
.swd-steps-down.swd-steps-line .swd-step:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 56px; bottom: -26px; width: 1px; background: var(--swd-line); }
@media (max-width: 1024px) { .swd-steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .swd-steps-row.swd-steps-line .swd-step::after { display: none; } }
@media (max-width: 640px) { .swd-steps-row { grid-template-columns: 1fr; } }

/* Stats */
.swd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.swd-stats-div .swd-stat + .swd-stat { border-left: 1px solid var(--swd-hair); padding-left: 24px; }
.swd-stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -.02em; color: var(--red, #D43A1A); font-variant-numeric: tabular-nums; }
.swd-stat-label { margin-top: 8px; font-weight: 600; }
.swd-stat-note { margin-top: 4px; font-size: 14px; color: var(--swd-muted); }
@media (max-width: 767px) { .swd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .swd-stats-div .swd-stat + .swd-stat { border-left: 0; padding-left: 0; } }

/* Pricing */
.swd-pricing { --swd-acc: var(--red, #D43A1A); }
.swd-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.swd-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; border: 1px solid var(--swd-hair); border-radius: var(--r-lg, 18px); background: var(--swd-plan, var(--bg)); }
.swd-plan.is-feat { border: 2px solid var(--swd-acc); box-shadow: var(--e2); }
.swd-plan-badge { position: absolute; top: -13px; left: 28px; background: var(--swd-acc); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; letter-spacing: .02em; }
.swd-plan-name { margin: 0; font-size: 22px; }
.swd-plan-desc { margin: 0; color: var(--swd-muted); }
.swd-plan-price { margin: 8px 0 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.swd-plan-amt { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; letter-spacing: -.02em; }
.swd-plan-per { color: var(--swd-muted); font-size: 15px; }
.swd-plan-feat { list-style: none; margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid var(--swd-hair); display: grid; gap: 10px; }
.swd-plan-feat li { display: flex; gap: 10px; align-items: flex-start; }
.swd-plan-feat svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; }
.swd-plan-feat .is-yes svg { color: var(--swd-acc); }
.swd-plan-feat .is-no { color: var(--swd-faint); }
.swd-plan-foot { margin-top: auto; padding-top: 18px; }
.swd-plan-small { margin: 10px 0 0; font-size: 13px; color: var(--swd-faint); text-align: center; }
.swd-bill { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--swd-card); margin: 0 auto 28px; }
.swd-pricing[data-swd-bill] { text-align: center; }
.swd-pricing[data-swd-bill] .swd-plans { text-align: left; }
.swd-bill button { border: 0; background: none; font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 99px; cursor: pointer; color: inherit; }
.swd-bill button.is-on { background: var(--text); color: var(--bg); }
.swd-bill-save { font-size: 12px; color: var(--red-text); font-weight: 700; }
.swd-bill button.is-on .swd-bill-save { color: inherit; opacity: .8; }
.swd-py { display: none; }
.swd-pricing.show-y .swd-pm { display: none; }
.swd-pricing.show-y .swd-py { display: contents; }
@media (max-width: 900px) { .swd-plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* Testimonials */
.swd-tm { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.swd-tm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.swd-tm-grid .swd-tm, .swd-tm-slider .swd-tm { background: var(--swd-card); border-radius: var(--r-lg, 18px); padding: 28px; }
.swd-tm-q { margin: 0; }
.swd-tm-q p { margin: 0; font-size: 17px; line-height: 1.55; }
.swd-tm-single .swd-tm { text-align: center; align-items: center; max-width: 860px; margin: 0 auto; }
.swd-tm-single .swd-tm-q p { font-family: var(--font-serif); font-style: italic; font-size: clamp(24px, 3vw, 38px); line-height: 1.3; }
.swd-tm-stars { color: #E8A317; letter-spacing: 2px; font-size: 18px; line-height: 1; }
.swd-tm-off { opacity: .25; }
.swd-tm-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.swd-tm-photo { width: 44px; height: 44px; border-radius: 99px; object-fit: cover; }
.swd-tm-who cite { display: block; font-style: normal; font-weight: 700; }
.swd-tm-who cite a { color: inherit; }
.swd-tm-role { display: block; font-size: 14px; color: var(--swd-muted); }
.swd-tm-slider { max-width: 820px; margin: 0 auto; }
.swd-tm-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.swd-tm-nav button { width: 42px; height: 42px; border-radius: 99px; border: 1px solid var(--swd-hair); background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
.swd-tm-nav button:hover { background: var(--swd-card); }
.swd-tm-nav svg { width: 18px; height: 18px; }
.swd-tm-count { font-size: 14px; color: var(--swd-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .swd-tm-grid { grid-template-columns: 1fr; } }

/* Call-to-action band */
.swd-band { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 104px) 0; }
.swd-band-boxed { border-radius: var(--r-xl, 28px); padding-left: 24px; padding-right: 24px; }
.swd-band-in { position: relative; z-index: 1; }
.swd-band-center .swd-band-in { text-align: center; max-width: 820px; }
.swd-band-center .btn-group { justify-content: center; }
.swd-band-split .swd-band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.swd-band-split .swd-band-copy { flex: 1 1 420px; }
.swd-band-h { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
.swd-band-p { margin: 16px 0 0; font-size: 18px; opacity: .85; }
.swd-band-center .swd-band-p { margin-left: auto; margin-right: auto; max-width: 60ch; }
.swd-band-act { margin-top: 28px; }
.swd-band-split .swd-band-act { margin-top: 0; }
.swd-band-note { margin: 12px 0 0; font-size: 14px; opacity: .7; }
.swd-band-marq { position: absolute; inset: 50% 0 auto; translate: 0 -50%; opacity: .06; pointer-events: none; white-space: nowrap; font-family: var(--font-head); font-weight: 800; font-size: clamp(80px, 12vw, 180px); line-height: 1; }
.swd-band-track { display: inline-flex; gap: .4em; animation: swd-band-roll 40s linear infinite; }
@keyframes swd-band-roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .swd-band-track { animation: none; } }

/* Timeline */
.swd-tl { list-style: none; margin: 0; padding: 0; position: relative; --swd-line: var(--swd-hair); --swd-dot: var(--red, #D43A1A); }
.swd-tl::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 11px; width: 2px; background: var(--swd-line); }
.swd-tl-item { position: relative; padding: 0 0 34px 48px; }
.swd-tl-item:last-child { padding-bottom: 0; }
.swd-tl-dot { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 99px; background: var(--swd-dot); box-shadow: 0 0 0 4px var(--swd-ring, var(--bg)); }
.swd-tl-dot.has-icon { left: -4px; top: -4px; width: 32px; height: 32px; display: grid; place-items: center; color: #fff; }
.swd-tl-dot svg { width: 16px; height: 16px; }
.swd-tl-date { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red-text); margin-bottom: 4px; }
.swd-tl-title { margin: 0; font-size: 20px; }
.swd-tl-card p { margin: 6px 0 0; color: var(--swd-muted); }
.swd-tl-card img { margin-top: 12px; width: 100%; height: auto; border-radius: 12px; }
@media (min-width: 900px) {
  .swd-tl-alt::before { left: 50%; translate: -1px 0; }
  .swd-tl-alt .swd-tl-item { width: 50%; padding: 0 48px 40px 0; text-align: right; }
  .swd-tl-alt .swd-tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 40px 48px; text-align: left; }
  .swd-tl-alt .swd-tl-dot { left: auto; right: -8px; }
  .swd-tl-alt .swd-tl-item:nth-child(even) .swd-tl-dot { right: auto; left: -8px; }
  .swd-tl-alt .swd-tl-dot.has-icon { right: -16px; }
  .swd-tl-alt .swd-tl-item:nth-child(even) .swd-tl-dot.has-icon { left: -16px; }
}

/* Team */
.swd-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.swd-person { display: flex; flex-direction: column; gap: 6px; }
.swd-person-photo { margin-bottom: 10px; overflow: hidden; border-radius: var(--r-lg, 18px); background: var(--swd-card); aspect-ratio: 4 / 5; }
.swd-team-square .swd-person-photo { aspect-ratio: 1; }
.swd-team-round .swd-person-photo { aspect-ratio: 1; border-radius: 999px; max-width: 200px; }
.swd-team-round .swd-person-photo { margin-left: auto; margin-right: auto; }
.swd-person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swd-person-ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 56px; color: var(--swd-faint); }
.swd-person-name { margin: 0; font-size: 20px; }
.swd-person-role { margin: 0; color: var(--red-text); font-weight: 600; font-size: 15px; }
.swd-person-bio { margin: 4px 0 0; color: var(--swd-muted); }
.swd-person-links { display: flex; gap: 8px; margin-top: 6px; }
.swd-person-links a { width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; color: inherit; background: var(--swd-card); }
.swd-person-links svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .swd-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .swd-team { grid-template-columns: 1fr; } }

/* Contact details */
.swd-cd { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.swd-cd-row { display: flex; gap: 14px; align-items: flex-start; }
.swd-cd-ico { color: var(--red, #D43A1A); line-height: 0; flex: 0 0 auto; margin-top: 2px; }
.swd-cd-ico svg { width: 22px; height: 22px; }
.swd-cd-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--swd-faint); margin-bottom: 2px; }
.swd-cd-val a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--swd-hair); }
.swd-cd-val a:hover { border-color: currentColor; }
.swd-cd-row { min-width: 0; }
.swd-cd-val { overflow-wrap: anywhere; }
.swd-cd-l-row { display: flex; flex-wrap: wrap; gap: 18px 36px; }
.swd-cd-l-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.swd-cd-l-cards .swd-cd-row { background: var(--swd-card); border-radius: 16px; padding: 20px; }

/* Breadcrumbs (full trail; the site's own .swd-crumbs shows only a back link) */
.swd-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; line-height: 1.4; }
.swd-bc a { color: inherit; opacity: .62; text-decoration: none; padding: 4px 0; transition: opacity .18s, color .18s; }
.swd-bc a:hover, .swd-bc a:focus-visible { opacity: 1; color: var(--red-text); }
.s-dark .swd-bc a:hover, .s-charcoal .swd-bc a:hover { color: var(--red-bright); }
.swd-bc-sep { opacity: .34; user-select: none; }
.swd-bc [aria-current="page"] { opacity: .9; font-weight: 600; }
[style*="center"] > .swd-bc { justify-content: center; }

/* Opening hours */
.swd-hours-w { max-width: 560px; }
.swd-hours { width: 100%; border-collapse: collapse; }
.swd-hours th, .swd-hours td { padding: 10px 12px; border-bottom: 1px solid var(--swd-hair); text-align: left; font-weight: 400; }
.swd-hours th { font-weight: 600; }
.swd-hours td { text-align: right; font-variant-numeric: tabular-nums; }
.swd-hours tr.is-today { background: color-mix(in srgb, var(--red, #D43A1A) 8%, transparent); }
.swd-hours tr.is-today th, .swd-hours tr.is-today td { font-weight: 700; }
.swd-hours-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 99px; background: var(--swd-card); }
.swd-hours-badge::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.swd-hours-badge.is-open { color: #1F7A45; }
.swd-hours-badge.is-closed { color: var(--red-text); }
.swd-hours-extra { margin: 10px 0 0; font-size: 14px; color: var(--swd-muted); }

/* Countdown */
.swd-ct-units { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.swd-ct-boxes .swd-ct-u { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 14px 10px; border-radius: 14px; background: var(--swd-card); }
.swd-ct-n { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1; font-variant-numeric: tabular-nums; }
.swd-ct-l { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--swd-muted); margin-top: 6px; }
.swd-ct-inline .swd-ct-u { display: inline-flex; align-items: baseline; gap: 4px; }
.swd-ct-inline .swd-ct-l { margin: 0; }
.swd-ct-end { margin: 0; font-weight: 600; }

/* Progress bars */
.swd-bars { display: grid; gap: 18px; }
.swd-bar-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-bottom: 8px; }
.swd-bar-track { height: 8px; border-radius: 99px; background: color-mix(in srgb, currentColor 12%, transparent); overflow: hidden; }
.swd-bar-fill { display: block; height: 100%; width: var(--v); background: var(--red, #D43A1A); border-radius: inherit; transition: width 1.2s var(--ease, ease); }
.swd-bars-anim:not(.is-in) .swd-bar-fill { width: 0; }
html.swd-builder .swd-bars-anim .swd-bar-fill { width: var(--v); }
@media (prefers-reduced-motion: reduce) { .swd-bar-fill { transition: none; } }

/* ═══ Phase 3: interactive widgets ═══ */

/* FAQ / accordion */
.swd-faq { --swd-hair: color-mix(in srgb, currentColor 16%, transparent); }
.swd-faq-item { border-bottom: 1px solid var(--swd-hair); }
.swd-faq-lines .swd-faq-item:first-of-type { border-top: 1px solid var(--swd-hair); }
.swd-faq-boxes .swd-faq-item { border: 0; background: var(--swd-card, var(--surface-1, #F3F1E8)); border-radius: 14px; margin-bottom: 10px; padding: 0 22px; }
.swd-faq-plain .swd-faq-item { border: 0; }
.swd-faq-h { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: 0; }
.swd-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border: 0; background: none; color: inherit; font: inherit; font-family: var(--font-head); font-weight: 600; font-size: clamp(17px, 1.5vw, 19px); text-align: left; cursor: pointer; }
.swd-faq-q:focus-visible { outline: 2px solid var(--red, #D43A1A); outline-offset: 2px; border-radius: 4px; }
.swd-faq-ico { flex: 0 0 auto; color: var(--red, #D43A1A); transition: transform .25s var(--ease, ease); }
svg.swd-faq-ico { width: 20px; height: 20px; }
.swd-faq-item.is-open svg.swd-faq-ico { transform: rotate(180deg); }
.swd-faq-plus { position: relative; width: 18px; height: 18px; }
.swd-faq-plus::before, .swd-faq-plus::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease, ease); }
.swd-faq-plus::after { transform: rotate(90deg); }
.swd-faq-item.is-open .swd-faq-plus::after { transform: rotate(0deg); }
/* Answers open and close by animating a grid row from 0fr to 1fr: no height measuring, works everywhere. */
.swd-faq-a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--swd-faq-t, .32s) var(--ease, ease), opacity calc(var(--swd-faq-t, .32s) * .75) ease; }
.swd-faq-a[hidden] { display: grid; content-visibility: hidden; }
@supports not (content-visibility: hidden) { .swd-faq-a[hidden] { display: none; } }
.swd-faq-item.is-open .swd-faq-a { grid-template-rows: 1fr; opacity: 1; }
.swd-faq-clip { min-height: 0; overflow: hidden; }
.swd-faq-in { padding: 0 0 22px; color: color-mix(in srgb, currentColor 80%, transparent); max-width: 72ch; }
.swd-faq-search { position: relative; margin-bottom: 18px; max-width: 520px; }
.swd-faq-search input { width: 100%; padding: 13px 16px 13px 44px; border: 1px solid var(--swd-hair); border-radius: 99px; background: transparent; color: inherit; font: inherit; }
.swd-faq-search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; opacity: .6; }
.swd-faq-none { color: color-mix(in srgb, currentColor 65%, transparent); }
@media (prefers-reduced-motion: reduce) { .swd-faq-a, .swd-tabs-acc .swd-tab-body { transition: none !important; } }

/* Tabs */
.swd-tabs { --swd-tab: var(--red, #D43A1A); --swd-hair: color-mix(in srgb, currentColor 16%, transparent); }
.swd-tabs-list { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.swd-tabs-line .swd-tabs-list { border-bottom: 1px solid var(--swd-hair); }
.swd-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; font-family: var(--font-head); font-weight: 600; padding: 12px 0; cursor: pointer; opacity: .65; transition: opacity .2s, color .2s, background .2s; }
.swd-tab:hover { opacity: 1; }
.swd-tab.is-on { opacity: 1; }
.swd-tab svg { width: 18px; height: 18px; }
.swd-tabs-line .swd-tab { border-bottom: 2px solid transparent; margin-bottom: -1px; }
.swd-tabs-line .swd-tab.is-on { border-color: var(--swd-tab); color: var(--swd-tab); }
.swd-tabs-pills .swd-tabs-list { gap: 6px; }
.swd-tabs-pills .swd-tab { padding: 9px 18px; border-radius: 99px; }
.swd-tabs-pills .swd-tab.is-on { background: var(--swd-tab); color: #fff; }
.swd-tabs-boxed .swd-tabs-list { gap: 4px; }
.swd-tabs-boxed .swd-tab { padding: 11px 18px; border: 1px solid var(--swd-hair); border-bottom: 0; border-radius: 12px 12px 0 0; }
.swd-tabs-boxed .swd-tab.is-on { background: var(--swd-card, var(--surface-1, #F3F1E8)); }
.swd-tabs-boxed .swd-tab-panel { background: var(--swd-card, var(--surface-1, #F3F1E8)); border-radius: 0 14px 14px 14px; padding: 26px; }
.swd-tab-panel { padding: 24px 0 0; }
.swd-tab-panel:focus-visible { outline: 2px solid var(--swd-tab); outline-offset: 4px; }
.swd-tab-body.swd-tab-body { display: block; }
.swd-tab-panel.has-img .swd-tab-bin { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.swd-tab-img img { width: 100%; height: auto; border-radius: 14px; display: block; }
.swd-tab-acc { display: none; }
.swd-tabs-left { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 36px; }
.swd-tabs-left .swd-tabs-list { flex-direction: column; flex-wrap: nowrap; gap: 4px; border: 0; }
.swd-tabs-left.swd-tabs-line .swd-tab { border-bottom: 0; border-left: 2px solid var(--swd-hair); padding: 10px 16px; margin: 0; text-align: left; }
.swd-tabs-left.swd-tabs-line .swd-tab.is-on { border-left-color: var(--swd-tab); }
.swd-tabs-left .swd-tab-panel { padding-top: 0; }
@media (max-width: 767px) {
  .swd-tab-panel.has-img .swd-tab-bin { grid-template-columns: 1fr; }
  .swd-tabs-left { grid-template-columns: 1fr; }
  .swd-tabs-acc .swd-tabs-list { display: none; }
  .swd-tabs-acc .swd-tab-panel, .swd-tabs-acc .swd-tab-panel[hidden] { display: block; padding: 0; border-bottom: 1px solid var(--swd-hair); background: none; border-radius: 0; }
  .swd-tabs-acc .swd-tab-acc { display: flex; width: 100%; align-items: center; gap: 8px; padding: 16px 0; border: 0; background: none; color: inherit; font: inherit; font-family: var(--font-head); font-weight: 600; text-align: left; cursor: pointer; }
  .swd-tabs-acc .swd-tab-acc svg { width: 18px; height: 18px; }
  .swd-tabs-acc .swd-tab-acc::after { content: "+"; margin-left: auto; color: var(--swd-tab); font-size: 20px; }
  .swd-tabs-acc .swd-tab-acc[aria-expanded="true"]::after { content: "\2212"; }
  .swd-tabs-acc .swd-tab-bin > :last-child { padding-bottom: 18px; }
  /* Same 0fr -> 1fr animation as the FAQ; visibility keeps a shut panel out of the tab order. */
  .swd-tabs-acc .swd-tab-body.swd-tab-body { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .32s var(--ease, ease), opacity .24s ease, visibility 0s linear .32s; }
  .swd-tabs-acc .swd-tab-bin { min-height: 0; overflow: hidden; }
  .swd-tabs-acc .swd-tab-acc[aria-expanded="true"] + .swd-tab-body { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .32s var(--ease, ease), opacity .24s ease, visibility 0s; }
}

/* Popup / slide-in panel */
.swd-pop { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.swd-pop[hidden] { display: none; }
.swd-pop-bg { position: absolute; inset: 0; background: rgba(14, 14, 16, .6); opacity: 0; transition: opacity .25s; }
.swd-pop-box { position: relative; width: min(var(--swd-pop-w, 560px), 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: var(--r-lg, 20px); box-shadow: 0 24px 80px rgba(0,0,0,.35); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s, transform .3s var(--ease, ease); }
.swd-pop.is-on .swd-pop-bg { opacity: 1; }
.swd-pop.is-on .swd-pop-box { opacity: 1; transform: none; }
.swd-pop-right, .swd-pop-left { padding: 0; }
.swd-pop-right { justify-content: flex-end; }
.swd-pop-left { justify-content: flex-start; }
.swd-pop-right .swd-pop-box, .swd-pop-left .swd-pop-box { height: 100%; max-height: none; border-radius: 0; width: min(var(--swd-pop-w, 420px), 92vw); }
.swd-pop-right .swd-pop-box { transform: translateX(100%); }
.swd-pop-left .swd-pop-box { transform: translateX(-100%); }
.swd-pop-bottom { align-items: flex-end; padding: 0; }
.swd-pop-bottom .swd-pop-box { width: 100%; max-width: none; border-radius: 20px 20px 0 0; transform: translateY(100%); }
.swd-pop-img { width: 100%; height: auto; display: block; }
.swd-pop-in { padding: 34px 32px 30px; }
.swd-pop-h { margin: 0 40px 14px 0; font-size: clamp(22px, 2.4vw, 30px); }
.swd-pop-cta { margin-top: 22px; }
.swd-pop-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 99px; border: 0; background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; cursor: pointer; display: grid; place-items: center; }
.swd-pop-x svg { width: 18px; height: 18px; }
html.swd-pop-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .swd-pop-bg, .swd-pop-box { transition: none; } }
/* In the editor the popup shows under its button so it can be seen and edited. */
html.swd-builder .swd-pop, html.swd-builder .swd-pop[hidden] { position: relative; inset: auto; display: block; padding: 0; margin-top: 14px; z-index: auto; }
html.swd-builder .swd-pop-bg { display: none; }
html.swd-builder .swd-pop-box { opacity: 1; transform: none; box-shadow: none; outline: 2px dashed rgba(127,127,127,.5); outline-offset: 4px; height: auto; max-height: none; }

/* Tooltip */
.swd-tip-line { margin: 0; }
.swd-tip { position: relative; display: inline-block; }
.swd-tip-term { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: help; display: inline-flex; align-items: center; gap: 4px; }
.swd-tip-dots .swd-tip-term { text-decoration: underline dotted; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--red, #D43A1A) 70%, transparent); }
.swd-tip-ico { width: 16px; height: 16px; color: var(--red, #D43A1A); }
.swd-tip-box { position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 50; width: max-content; max-width: min(300px, 80vw); padding: 10px 14px; border-radius: 10px; background: var(--onyx, #0E0E10); color: var(--paper, #F7F5EE); font-size: 14px; line-height: 1.45; font-weight: 400; text-align: left; box-shadow: var(--e2); opacity: 0; visibility: hidden; translate: -50% 4px; transition: opacity .18s, translate .18s, visibility .18s; pointer-events: none; }
.swd-tip-box::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0; border: 7px solid transparent; border-top-color: var(--onyx, #0E0E10); }
.swd-tip-bottom .swd-tip-box { bottom: auto; top: calc(100% + 12px); translate: -50% -4px; }
.swd-tip-bottom .swd-tip-box::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--onyx, #0E0E10); }
.swd-tip:hover .swd-tip-box, .swd-tip:focus-within .swd-tip-box, .swd-tip.is-on .swd-tip-box { opacity: 1; visibility: visible; translate: -50% 0; }
.swd-tip.edge-l .swd-tip-box { left: 0; translate: 0 0; }
.swd-tip.edge-r .swd-tip-box { left: auto; right: 0; translate: 0 0; }
.swd-tip.edge-l .swd-tip-box::after { left: 20px; }
.swd-tip.edge-r .swd-tip-box::after { left: auto; right: 14px; translate: 0 0; }

/* ═══ Phase 3 part 2: carousel of blocks, search, case study, work cards, industry cards, pinned steps ═══ */
/* Red text that stays readable on light AND dark sections. */
.swd-w { --swd-acct: var(--red-text, #B93216); }
.s-dark .swd-w, .s-charcoal .swd-w, .swd-w .s-dark, .swd-w .s-charcoal, [data-theme="dark"] .swd-w { --swd-acct: var(--red-bright, #E86A45); }
.s-red .swd-w, .swd-w .s-red { --swd-acct: #fff; }

/* Carousel of any blocks */
.swd-car-blocks .swd-car-slide.swd-car-any { height: auto; min-width: 0; }
.swd-car-equal .swd-car-track { align-items: stretch; }
.swd-car-equal .swd-car-any > * { height: 100%; }
.swd-car-blocks:not(.swd-car-equal) .swd-car-track { align-items: flex-start; }
.swd-car-peek .swd-car-slide { flex-basis: calc((100% - (var(--swd-pv) - 1) * var(--swd-cg) - 12%) / var(--swd-pv)); }
.swd-car-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.swd-car-foot .swd-car-dots { margin: 0; justify-content: flex-start; }
.swd-car-btns { display: flex; gap: 10px; }
.swd-car-nav-below .swd-car-arrow { position: static; translate: none; width: 44px; height: 44px; background: transparent; color: inherit; border: 1px solid var(--swd-hair); box-shadow: none; transition: background .2s, color .2s, border-color .2s; }
.swd-car-nav-below .swd-car-arrow:hover { background: var(--red, #D43A1A); border-color: var(--red, #D43A1A); color: #fff; }
html.swd-builder .swd-car-blocks .swd-car-track { scroll-snap-type: none; }

/* Site search */
.swd-w-search { width: 100%; max-width: 100%; }
.swd-search { position: relative; max-width: 640px; width: 100%; }
.swd-search-label { display: block; font-weight: 700; margin-bottom: 10px; }
.swd-search-field { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; background: var(--surface-2, #FAF9F3); color: var(--text, #0B0B0B); border: 1px solid var(--border-light, rgba(11,11,11,.14)); transition: border-color .2s, box-shadow .2s; }
.swd-search-field:focus-within { border-color: var(--red, #D43A1A); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red, #D43A1A) 18%, transparent); }
.swd-search-pill .swd-search-field { border-radius: 999px; }
.swd-search-box .swd-search-field { border-radius: 6px; }
.swd-search-line .swd-search-field { background: transparent; color: inherit; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; padding-left: 4px; box-shadow: none; }
.swd-search-ico { width: 20px; height: 20px; flex: 0 0 auto; opacity: .6; }
.swd-search-field input[type="search"] { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: inherit; font: inherit; font-size: 17px; padding: 10px 0; outline: none; }
.swd-search-field input::-webkit-search-cancel-button { cursor: pointer; }
.swd-search-sm input[type="search"] { font-size: 15px; padding: 6px 0; }
.swd-search-lg input[type="search"] { font-size: 20px; padding: 14px 0; }
.swd-search-btn { flex: 0 0 auto; border: 0; cursor: pointer; background: var(--red, #D43A1A); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 999px; }
.swd-search-box .swd-search-btn { border-radius: 4px; }
.swd-search-line .swd-search-btn { border-radius: 4px; padding: 9px 16px; }
.swd-search-sugs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--swd-muted); }
.swd-search-sug { border: 1px solid var(--swd-hair); background: transparent; color: inherit; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.swd-search-sug:hover { border-color: var(--red, #D43A1A); color: var(--swd-acct); }
.swd-search-res { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--surface-2, #FAF9F3); color: var(--text, #0B0B0B); border: 1px solid var(--border-light, rgba(11,11,11,.14)); border-radius: 14px; box-shadow: var(--e2, 0 14px 40px rgba(0,0,0,.18)); padding: 6px; max-height: min(70vh, 520px); overflow: auto; text-align: left; }
.swd-search-res ul { list-style: none; margin: 0; padding: 0; }
.swd-search-res a { display: block; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.swd-search-res a:hover, .swd-search-res a.is-on { background: var(--surface-1, #F3F1E8); }
.swd-search-res a b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.swd-search-res a small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--ink-2, #555); }
.swd-search-res a .swd-search-kind { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red-text, #B93216); margin-left: 8px; }
.swd-search-res p { margin: 0; padding: 12px; font-size: 15px; color: var(--ink-2, #555); }

/* Case study chapter */
.swd-case { position: relative; --swd-cacc: var(--red, #D43A1A); }
.swd-case-ghost { position: absolute; top: -40px; right: -1vw; z-index: 0; font-family: var(--font-head); font-weight: 800; line-height: .8; letter-spacing: -.05em; font-size: clamp(150px, 24vw, 340px); color: currentColor; opacity: .05; pointer-events: none; user-select: none; }
.swd-case > :not(.swd-case-ghost) { position: relative; z-index: 1; }
.swd-case-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.swd-case-kicker { font-family: var(--font-serif, 'DM Serif Display', Georgia, serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--swd-cacc); }
.swd-case-meta { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--swd-muted); }
.swd-case-dot { color: var(--swd-cacc); margin: 0 4px; }
.swd-case-title { font-size: clamp(34px, 5vw, 62px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 16px 0 0; color: inherit; }
.swd-case-rule { width: 64px; height: 3px; border-radius: 2px; background: var(--swd-cacc); margin-top: 26px; transform-origin: left; }
.swd-case-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: 48px; }
.swd-case.is-flip .swd-case-visual { order: -1; }
.swd-case-cross { font-family: var(--font-serif, 'DM Serif Display', Georgia, serif); font-style: italic; font-weight: 400; font-size: 21px; color: var(--swd-acct); margin: 28px 0 10px; letter-spacing: 0; }
.swd-case-story > .swd-case-cross:first-child { margin-top: 0; }
.swd-case-story p { font-size: 16.5px; line-height: 1.75; margin: 0; color: var(--swd-muted); }
.swd-case-ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.swd-case-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.swd-case-ticks svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--swd-cacc); }
.swd-case-story .swd-case-result { margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--swd-hair); font-family: var(--font-serif, 'DM Serif Display', Georgia, serif); font-style: italic; font-size: clamp(20px, 2.3vw, 25px); line-height: 1.45; color: inherit; }
.swd-case-result::before { content: "— "; color: var(--swd-cacc); }
.swd-case-visit { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-family: var(--font-head); font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--swd-acct); text-decoration: none; }
.swd-case-visit svg { width: 16px; height: 16px; transition: transform .25s var(--ease, ease); }
.swd-case-visit:hover svg { transform: translateX(5px); }
.swd-case-visual { perspective: 1400px; }
.swd-case-mock { display: block; border-radius: 12px; overflow: hidden; background: #111; color: #fff; text-decoration: none; box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 6px 16px rgba(0,0,0,.18); transition: transform .6s var(--ease, ease), box-shadow .3s; will-change: transform; }
.swd-case.is-tilt .swd-case-mock { transform: rotateY(-8deg) rotateX(3deg); }
.swd-case.is-tilt.is-flip .swd-case-mock { transform: rotateY(8deg) rotateX(3deg); }
.swd-case.is-tilt a.swd-case-mock:hover { transform: rotateY(0) rotateX(0) translateY(-6px); }
.swd-case-mock.is-tilting { transition: transform .09s linear; }
.swd-case-bar { background: #1b1b1b; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.swd-case-bar span { display: inline-block; background: rgba(255,255,255,.08); border-radius: 4px; padding: 3px 11px; font-family: ui-monospace, monospace; font-size: 11px; color: rgba(255,255,255,.65); }
.swd-case-screen { position: relative; min-height: 300px; }
.swd-case-screen > img { display: block; width: 100%; height: auto; }
.swd-case-panel { --swd-pacc: #D43A1A; min-height: 300px; display: flex; flex-direction: column; background: #111; }
.swd-case-pbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 2px solid var(--swd-pacc); }
.swd-case-pbar b { color: var(--swd-pacc); font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.swd-case-pbar span { display: flex; gap: 14px; }
.swd-case-pbar i { display: block; width: 34px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); }
.swd-case-pbody { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px; text-align: center; }
.swd-case-ph { font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.15; color: #fff; max-width: 16ch; }
.swd-case-pbtn { background: var(--swd-pacc); color: #000; padding: 8px 20px; font-family: var(--font-head); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
html.swdb-js .swd-case-anim:not(.swd-in) .swd-case-head, html.swdb-js .swd-case-anim:not(.swd-in) .swd-case-title, html.swdb-js .swd-case-anim:not(.swd-in) .swd-case-story > *, html.swdb-js .swd-case-anim:not(.swd-in) .swd-case-visual { opacity: 0; transform: translateY(26px); }
html.swdb-js .swd-case-anim:not(.swd-in) .swd-case-visual { transform: translateY(46px); }
html.swdb-js .swd-case-anim:not(.swd-in) .swd-case-rule { transform: scaleX(0); }
html.swdb-js .swd-case-anim .swd-case-head, html.swdb-js .swd-case-anim .swd-case-title, html.swdb-js .swd-case-anim .swd-case-story > *, html.swdb-js .swd-case-anim .swd-case-visual { transition: opacity .65s var(--ease, ease), transform .65s var(--ease, ease); }
html.swdb-js .swd-case-anim .swd-case-rule { transition: transform .8s var(--ease, ease) .25s; }
html.swdb-js .swd-case-anim.swd-in .swd-case-title { transition-delay: .1s; }
html.swdb-js .swd-case-anim.swd-in .swd-case-visual { transition-delay: .15s; transition-duration: .8s; }
html.swdb-js .swd-case-anim.swd-in .swd-case-story > :nth-child(2) { transition-delay: .18s; }
html.swdb-js .swd-case-anim.swd-in .swd-case-story > :nth-child(3) { transition-delay: .24s; }
html.swdb-js .swd-case-anim.swd-in .swd-case-story > :nth-child(4) { transition-delay: .3s; }
html.swdb-js .swd-case-anim.swd-in .swd-case-story > :nth-child(n+5) { transition-delay: .36s; }
@media (max-width: 900px) {
  .swd-case-grid { grid-template-columns: 1fr; }
  .swd-case.is-flip .swd-case-visual { order: 0; }
  .swd-case.is-tilt .swd-case-mock, .swd-case.is-tilt.is-flip .swd-case-mock { transform: none; }
}

/* Work / portfolio cards */
.swd-wc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.swd-wc { display: block; color: inherit; text-decoration: none; perspective: 900px; transition: filter .4s ease, opacity .3s; }
.swd-wc[hidden] { display: none; }
.swd-wcs.is-dim .swd-wc.is-dimmed { filter: brightness(.55) saturate(.55); }
.swd-wc-shell { border-radius: 14px; overflow: hidden; background: #0d0d0d; box-shadow: 0 20px 48px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.25); transition: box-shadow .4s ease; will-change: transform; }
.s-dark .swd-wc-shell, .s-charcoal .swd-wc-shell { box-shadow: 0 20px 48px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.4); }
.swd-wc:hover .swd-wc-shell { box-shadow: 0 32px 72px rgba(0,0,0,.5), 0 8px 20px rgba(0,0,0,.35); }
.swd-wc-bar { background: #161616; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.swd-wc-bar span { display: inline-block; background: rgba(255,255,255,.07); border-radius: 4px; padding: 3px 11px; font-family: ui-monospace, monospace; font-size: 10.5px; color: rgba(255,255,255,.62); }
.swd-wc-screen { position: relative; height: 320px; overflow: hidden; background: #111; }
.swd-wc-shot { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.swd-wc-panel { position: absolute; inset: 0; padding: 22px 24px 24px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.swd-wc-brand { position: relative; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: rgba(255,255,255,.8); }
.swd-wc-panel > div:not(.swd-wc-ghost) { position: relative; z-index: 2; }
.swd-wc-kick { display: block; margin-bottom: 10px; font-family: var(--font-serif, 'DM Serif Display', Georgia, serif); font-style: italic; font-size: 13px; color: var(--swd-wacc); }
.swd-wc-h { font-family: var(--font-head); font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.16; max-width: 84%; }
.swd-wc-stat { position: relative; z-index: 2; font-family: var(--font-head); font-size: 12px; color: rgba(255,255,255,.55); }
.swd-wc-stat b { color: #fff; font-weight: 800; }
.swd-wc-ghost { position: absolute; bottom: 14px; right: 18px; z-index: 1; font-family: var(--font-head); font-weight: 800; letter-spacing: -.025em; line-height: .9; font-size: clamp(28px, 3.4vw, 42px); text-align: right; color: color-mix(in srgb, var(--swd-wacc) 14%, transparent); max-width: 60%; }
.swd-wc-over { position: absolute; right: 14px; bottom: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; background: rgba(11,11,11,.72); border: 1.5px solid rgba(255,255,255,.24); color: #fff; font-family: var(--font-head); font-size: 12px; font-weight: 800; font-style: italic; padding: 9px 16px; border-radius: 999px; transition: background .25s, border-color .25s, transform .25s var(--ease, ease); }
.swd-wc-over svg { width: 13px; height: 13px; }
.swd-wc:hover .swd-wc-over { background: var(--red, #D43A1A); border-color: var(--red, #D43A1A); transform: translateY(-3px); }
.swd-wc-foot { display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: var(--surface-2, #FAF9F3); color: var(--text, #0B0B0B); border-top: 1px solid rgba(255,255,255,.06); }
.swd-wc-acc { width: 3px; height: 34px; border-radius: 2px; flex: 0 0 auto; background: var(--swd-wacc); }
.swd-wc-info { flex: 1; min-width: 0; }
.swd-wc-ind { font-family: var(--font-serif, 'DM Serif Display', Georgia, serif); font-style: italic; font-size: 14px; color: var(--red-text, #B93216); }
.swd-wc-name { font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-top: 2px; }
.swd-wc-ar { display: inline-flex; color: var(--ink-3, #888); transition: transform .25s ease, color .25s; }
.swd-wc-ar svg { width: 16px; height: 16px; }
.swd-wc:hover .swd-wc-ar { color: var(--red, #D43A1A); transform: translate(3px, -3px); }
.swd-wc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.swd-wc-filters button { border: 1px solid var(--swd-hair); background: transparent; color: inherit; border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.swd-wc-filters button.is-on { background: var(--red, #D43A1A); border-color: var(--red, #D43A1A); color: #fff; }
@keyframes swd-wc-in-0 { from { opacity: 0; transform: translateX(-55px) translateY(32px) rotate(-4.5deg); } to { opacity: 1; transform: none; } }
@keyframes swd-wc-in-1 { from { opacity: 0; transform: translateY(64px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes swd-wc-in-2 { from { opacity: 0; transform: translateX(55px) translateY(32px) rotate(4.5deg); } to { opacity: 1; transform: none; } }
html.swdb-js .swd-wcs.is-fan .swd-wc:not(.swd-in) { opacity: 0; }
html.swdb-js .swd-wcs.is-fan .swd-wc.swd-in { animation: swd-wc-in-1 .9s var(--ease, cubic-bezier(.22,1,.36,1)) both; animation-delay: calc(var(--swd-wi) * .13s); }
html.swdb-js .swd-wcs.is-fan .swd-wc.swd-in[style*="--swd-wi:0"] { animation-name: swd-wc-in-0; }
html.swdb-js .swd-wcs.is-fan .swd-wc.swd-in[style*="--swd-wi:2"] { animation-name: swd-wc-in-2; }
@media (prefers-reduced-motion: reduce) { html.swdb-js .swd-wcs.is-fan .swd-wc { opacity: 1; animation: none !important; } }
@media (max-width: 900px) { .swd-wc-grid { grid-template-columns: 1fr; } .swd-wc-screen { height: 260px; } }

/* Industry / example cards */
.swd-ind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.swd-ind { display: block; color: inherit; text-decoration: none; }
.swd-ind-img { height: 200px; display: flex; align-items: flex-end; justify-content: center; padding: 20px; position: relative; overflow: hidden; border-radius: 14px; transition: transform .35s var(--ease, ease), box-shadow .35s; }
.swd-ind-img.has-photo { padding: 0; }
.swd-ind-img.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swd-inds.is-lift .swd-ind:hover .swd-ind-img { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0,0,0,.22); }
.swd-ind-mock { width: 90%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: #fff; }
.swd-ind-mock b { font-family: var(--font-head); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.swd-ind-mock strong { font-family: var(--font-head); font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.swd-ind-mock span { background: var(--swd-iacc, #D43A1A); color: #0b0b0b; font-family: var(--font-head); font-size: 8px; font-weight: 700; padding: 4px 9px; border-radius: 2px; margin-top: 4px; }
.swd-ind-body { padding: 22px 4px 0; }
.swd-ind-tag { font-family: var(--font-serif, 'DM Serif Display', Georgia, serif); font-style: italic; font-size: 16px; color: var(--swd-acct); margin-bottom: 8px; }
.swd-ind-title { font-size: 22px; margin: 0 0 8px; }
.swd-ind-text { font-size: 15px; margin: 0 0 16px; color: var(--swd-muted); }
.swd-ind-cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 14px; font-weight: 700; transition: color .15s; }
.swd-ind-cta svg { width: 15px; height: 15px; transition: transform .15s; }
.swd-ind:hover .swd-ind-cta { color: var(--swd-acct); }
.swd-ind:hover .swd-ind-cta svg { transform: translate(3px, -3px); }
@media (max-width: 767px) { .swd-ind-grid { grid-template-columns: 1fr; } }

/* Pinned scrolling steps (desktop: pinned, cards slide across; phones, tablets, reduced motion, editor: a plain list) */
.swd-pin { --swd-pin-w: 420px; --swd-pin-len: 55vh; position: relative; height: calc(100vh + (var(--swd-pin-n, 4) - 1) * var(--swd-pin-len)); }
.swd-pin-sticky { position: sticky; top: var(--nav-h, 72px); height: calc(100vh - var(--nav-h, 72px)); display: flex; flex-direction: column; justify-content: center; gap: 28px; overflow: visible; }
.swd-pin-head .eyebrow { margin-bottom: 10px; }
.swd-pin-h { font-size: clamp(28px, 4vw, 52px); line-height: 1; margin: 0; }
.swd-pin-view { overflow: hidden; padding: 12px 0 28px; margin: -12px 0 -28px; }
@supports (overflow-x: clip) { .swd-pin-view { overflow: visible; overflow-x: clip; } }
.swd-pin-track { display: flex; align-items: stretch; gap: 20px; will-change: transform; }
.swd-pin-card { flex: 0 0 auto; width: min(var(--swd-pin-w), 80vw); min-height: 270px; border-radius: 18px; padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 14px; margin-left: -48px; transform: scale(.91); opacity: .7; transition: transform .55s var(--ease, ease), opacity .55s var(--ease, ease), box-shadow .55s ease; }
.swd-pin-card:first-child { margin-left: 0; }
.swd-pin-card.is-on { transform: scale(1) translateY(-6px); opacity: 1; box-shadow: 0 28px 72px rgba(0,0,0,.45); z-index: 5; }
.swd-pin-c-paper { background: var(--paper, #ECEAE0); color: var(--onyx, #0B0B0B); }
.swd-pin-c-white { background: #fff; color: var(--onyx, #0B0B0B); }
.swd-pin-c-charcoal { background: var(--charcoal, #2A2A28); color: var(--paper, #ECEAE0); }
.swd-pin-c-red { background: var(--red, #D43A1A); color: #fff; }
.swd-pin-c-dark { background: #1c1c1a; color: var(--paper, #ECEAE0); border: 1px solid rgba(236,234,224,.07); }
.swd-pin-c-onyx { background: var(--onyx, #0B0B0B); color: var(--paper, #ECEAE0); border: 1px solid rgba(236,234,224,.07); }
.swd-pin-num { font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; opacity: .78; }
.swd-pin-card h3 { font-family: var(--font-head); font-size: clamp(22px, 3vw, 36px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 0; color: inherit; }
.swd-pin-card p { font-size: 14.5px; line-height: 1.68; opacity: .85; flex: 1; margin: 0; color: inherit; }
.swd-pin-c-red p { opacity: 1; }
.swd-pin-note { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; padding-top: 14px; border-top: 1px solid currentColor; margin-top: auto; }
.swd-pin-c-red .swd-pin-note, .swd-pin-c-red .swd-pin-num { opacity: .92; }
.swd-pin-foot { display: flex; align-items: center; justify-content: space-between; }
.swd-pin-dots { display: flex; gap: 8px; }
.swd-pin-dot { width: 6px; height: 6px; border-radius: 99px; background: color-mix(in srgb, currentColor 22%, transparent); transition: width .35s var(--ease, ease), background .3s; }
.swd-pin-dot.is-on { width: 28px; background: var(--red, #D43A1A); }
.swd-pin-count { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--swd-muted); }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .swd-pin { height: auto !important; }
  .swd-pin-sticky { position: static; height: auto; }
  .swd-pin-track { flex-direction: column; gap: 16px; transform: none !important; }
  .swd-pin-card { width: 100%; margin-left: 0; transform: none !important; opacity: 1 !important; min-height: 0; transition: none; box-shadow: none; }
  .swd-pin-foot { display: none; }
}
html.swd-builder .swd-pin { height: auto; }
html.swd-builder .swd-pin-sticky { position: static; height: auto; }
html.swd-builder .swd-pin-view { overflow-x: auto; }
html.swd-builder .swd-pin-track { transform: none !important; }
html.swd-builder .swd-pin-card { margin-left: 0; transform: none; opacity: 1; }

/* 3D tilt with shine (Advanced > Motion > Mouse effect) */
[data-swd-mouse="tilt-shine"] { position: relative; }
.swd-shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; background: radial-gradient(circle at var(--swd-mx, 50%) var(--swd-my, 50%), rgba(255,255,255,.28), transparent 55%); opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; }
[data-swd-mouse="tilt-shine"]:hover > .swd-shine { opacity: 1; }

/* ═══ Phase 4a (1.99.0): forms, newsletter sign-up, booking calendar ═══ */
.swd-form, .swd-news { --swd-hair: color-mix(in srgb, currentColor 22%, transparent); --swd-form-gap: 26px; }
.swd-form { max-width: 760px; }
.swd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.swd-form-row.is-one { grid-template-columns: 1fr; }
.swd-form-f { margin-bottom: var(--swd-form-gap); min-width: 0; }
.swd-form-f > label, .swd-form-legend { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.swd-form-req { color: var(--swd-acct); }
.swd-form-in { display: block; width: 100%; padding: 13px 16px; border: 1px solid var(--swd-hair); border-radius: var(--r-xs, 8px); font: inherit; font-size: 16px; line-height: 1.4; background: color-mix(in srgb, currentColor 4%, transparent); color: inherit; transition: border-color .15s, box-shadow .15s; }
select.swd-form-in { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
select.swd-form-in option { color: #0B0B0B; background: #fff; }
textarea.swd-form-in { min-height: 130px; resize: vertical; }
.swd-form-in:focus { outline: none; border-color: var(--red, #D43A1A); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red, #D43A1A) 20%, transparent); }
.swd-form-in::placeholder { color: color-mix(in srgb, currentColor 45%, transparent); }
.swd-form-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.swd-form-choices { display: grid; gap: 8px; }
.swd-form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; line-height: 1.45; cursor: pointer; }
.swd-form-check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--red, #D43A1A); }
.swd-form-help { font-size: 13px; opacity: .7; margin: 6px 0 0; }
.swd-form-info { font-size: 15.5px; opacity: .85; margin: 0 0 var(--swd-form-gap); }
.swd-form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 4px; }
.swd-form-btn-left .swd-form-bottom { flex-direction: row-reverse; justify-content: flex-end; }
.swd-form-btn-full .swd-form-bottom { flex-direction: column-reverse; align-items: stretch; }
.swd-form-btn-full .swd-form-submit { width: 100%; }
.swd-form-note { font-size: 14px; opacity: .72; margin: 0; max-width: 48ch; }
.swd-form-note a { color: var(--swd-acct); }
.swd-form-submit { cursor: pointer; }
.swd-form-err { padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--red, #D43A1A) 12%, transparent); color: var(--swd-acct); margin-bottom: 18px; font-size: 14.5px; font-weight: 600; }
.swd-form-done { padding: 22px 24px; border: 1px solid var(--swd-hair); border-left: 4px solid var(--red, #D43A1A); border-radius: 12px; font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.45; max-width: 760px; }
@media (max-width: 767px) { .swd-form-row { grid-template-columns: 1fr; } }

.swd-news-h { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.015em; margin: 0 0 8px; }
.swd-news-p { margin: 0 0 18px; opacity: .85; max-width: 56ch; }
.swd-news-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.swd-news-form input { flex: 1 1 220px; min-width: 0; padding: 13px 16px; border: 1px solid var(--swd-hair); border-radius: var(--r-xs, 8px); font: inherit; font-size: 16px; background: color-mix(in srgb, currentColor 4%, transparent); color: inherit; }
.swd-news-form input:focus { outline: none; border-color: var(--red, #D43A1A); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red, #D43A1A) 20%, transparent); }
.swd-news-form button { cursor: pointer; }
.swd-news-stacked .swd-news-form { flex-direction: column; }
.swd-news-stacked .swd-news-form input, .swd-news-stacked .swd-news-form button { width: 100%; }
/* In a column the field's 220px flex size became its height (a 220px-tall box); size it by its content instead (2.10.2). */
.swd-news-stacked .swd-news-form input { flex: 0 0 auto; }
.swd-news-note { font-size: 13.5px; opacity: .7; margin: 10px 0 0; }
.swd-news-center { text-align: center; }
.swd-news-center .swd-news-form, .swd-news-center .swd-news-p { margin-left: auto; margin-right: auto; }
.swd-news-center .swd-news-form { justify-content: center; }
.swd-news + .newsletter-note, .swd-news .newsletter-note { font-size: 14px; margin-top: 10px; }

.swd-book-h { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.015em; margin: 0 0 8px; }
.swd-book-p { margin: 0 0 20px; opacity: .85; max-width: 60ch; }
.swd-book-ph { min-height: 220px; display: grid; place-items: center; line-height: 1.5; }
.swd-book-loading, .swd-book-fallback { opacity: .8; }
.swd-book-fallback a { color: var(--swd-acct); }

/* ═══ Phase 4b (2.0.0): blog posts, child pages, price calculator, file fields ═══ */
.swd-posts-grid.blog-grid { grid-template-columns: repeat(var(--swd-pc, 3), minmax(0, 1fr)); }
.swd-posts-featured { margin-bottom: 32px; }
.swd-posts-featured .blog-card { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 0 32px; }
.swd-posts-featured .blog-card .blog-thumb { height: 100%; min-height: 240px; }
.swd-posts-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.swd-posts-filter button { padding: 8px 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; color: inherit; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.swd-posts-filter button.is-on { background: var(--red, #D43A1A); border-color: var(--red, #D43A1A); color: #fff; }
.swd-posts-list { display: grid; gap: 14px; }
.swd-posts-row { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; text-decoration: none; color: inherit; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.swd-posts-row img, .swd-posts-swatch { width: 112px; height: 70px; object-fit: cover; border-radius: 10px; display: block; }
.swd-posts-row h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; margin: 2px 0 4px; line-height: 1.3; }
.swd-posts-row:hover h3 { color: var(--swd-acct); }
.swd-posts-row .blog-meta { font-size: 13px; opacity: .7; }
.swd-posts-row-body { min-width: 0; }
.swd-posts-more { margin-top: 24px; }
.swd-posts-empty, .swd-cp-empty { opacity: .75; }
@media (max-width: 767px) { .swd-posts-featured .blog-card { grid-template-columns: 1fr; } .swd-posts-row { grid-template-columns: 84px 1fr; } .swd-posts-row img, .swd-posts-swatch { width: 84px; height: 56px; } }

.swd-cp-grid { display: grid; grid-template-columns: repeat(var(--swd-pc, 3), minmax(0, 1fr)); gap: 28px; }
.swd-cp-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 16px; overflow: hidden; background: var(--swd-card, transparent); transition: transform .2s var(--ease, ease), box-shadow .2s; }
.swd-cp-card:hover { transform: translateY(-3px); box-shadow: var(--e2, 0 10px 30px rgba(0,0,0,.12)); }
.swd-cp-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.swd-cp-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.swd-cp-body h3 { font-family: var(--font-head); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.swd-cp-body p { margin: 0; font-size: 15px; line-height: 1.55; opacity: .8; }
.swd-cp-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 14px; font-weight: 800; color: var(--swd-acct); }
.swd-cp-more svg { width: 16px; height: 16px; }
.swd-cp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.swd-cp-list a { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); text-decoration: none; color: inherit; font-weight: 600; }
.swd-cp-list a:hover { color: var(--swd-acct); }
.swd-cp-list svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .swd-cp-grid { gap: 18px; } }

.swd-calc { --swd-calc-acc: var(--red-bright, #E86A45); max-width: 940px; }
.swd-calc-group { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.swd-calc-legend { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; padding: 0; }
.swd-calc-step { font-family: var(--font-serif, 'DM Serif Display', Georgia, serif); font-style: italic; font-weight: 400; color: var(--swd-calc-acc); font-size: 18px; }
.swd-calc-row { display: flex; align-items: center; gap: 14px; padding: 13px 12px; margin: 0 -12px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.swd-calc-row:hover { background: color-mix(in srgb, currentColor 5%, transparent); }
.swd-calc-row.is-on { background: color-mix(in srgb, var(--swd-calc-acc) 12%, transparent); }
.swd-calc-row input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--red, #D43A1A); }
.swd-calc-text { flex: 1; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.swd-calc-price { font-family: var(--font-head); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--swd-calc-acc); white-space: nowrap; }
.swd-calc-note { font-size: 13px; opacity: .65; margin: 6px 0 0; }
.swd-calc-total { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding: 22px 0 6px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.swd-calc-total-label { font-size: 14px; font-weight: 600; opacity: .75; }
.swd-calc-total-amount { font-family: var(--font-head); font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--swd-calc-acc); font-variant-numeric: tabular-nums; }
.swd-calc-total-mo { font-size: 15px; opacity: .85; }
.swd-calc-total-mo b { color: var(--swd-calc-acc); }
.is-bump { animation: swd-bump .35s var(--ease, ease); }
@keyframes swd-bump { 30% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .is-bump { animation: none; } }
.swd-calc-small { font-size: 13.5px; opacity: .65; margin: 8px 0 22px; }
.swd-calc-form { margin-top: 10px; padding-top: 22px; border-top: 1px dashed color-mix(in srgb, currentColor 18%, transparent); }
.swd-form-file { padding: 10px 12px; cursor: pointer; }
.swd-form-file::file-selector-button { font: inherit; font-weight: 700; padding: 7px 14px; margin-right: 12px; border: 0; border-radius: 999px; background: var(--red, #D43A1A); color: #fff; cursor: pointer; }

/* ═══ Site-wide popups and bars (2.3.0) ═══ */
.swd-sp { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11,11,11,.55); opacity: 0; transition: opacity .25s ease; }
.swd-sp[hidden] { display: none; }
.swd-sp.is-on { opacity: 1; }
.swd-sp-box { position: relative; width: min(var(--swd-sp-w, 600px), 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: translateY(14px) scale(.98); transition: transform .3s var(--ease, ease); background: var(--surface, #fff); }
.swd-sp.is-on .swd-sp-box { transform: none; }
.swd-sp-in > section, .swd-sp-in > .swd-w { border-radius: 18px; }
.swd-sp-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 22px; line-height: 36px; cursor: pointer; }
.swd-sp-x:hover { background: var(--red, #D43A1A); }
.swd-sp-slide { justify-content: flex-end; align-items: stretch; padding: 0; }
.swd-sp-slide .swd-sp-box { width: min(440px, 100%); max-height: 100vh; border-radius: 0; transform: translateX(30px); }
.swd-sp-slide.is-on .swd-sp-box { transform: none; }
.swd-sp-bar-top, .swd-sp-bar-bottom { inset: auto 0; padding: 0; background: none; align-items: stretch; pointer-events: none; }
.swd-sp-bar-top { top: 0; } .swd-sp-bar-bottom { bottom: 0; }
.swd-sp-bar-top .swd-sp-box, .swd-sp-bar-bottom .swd-sp-box { pointer-events: auto; width: 100%; max-height: 60vh; border-radius: 0; box-shadow: 0 6px 30px rgba(0,0,0,.25); transform: translateY(-100%); }
.swd-sp-bar-bottom .swd-sp-box { transform: translateY(100%); }
.swd-sp-bar-top.is-on .swd-sp-box, .swd-sp-bar-bottom.is-on .swd-sp-box { transform: none; }
.swd-sp-bar-top .swd-sp-in > section, .swd-sp-bar-bottom .swd-sp-in > section { padding-top: 22px !important; padding-bottom: 22px !important; border-radius: 0; }
html.swd-sp-lock { overflow: hidden; }
/* Newsletter popup look (2.10.2): the card of the old hand-coded homepage popup, for a popup whose section has
   the class "swd-nl-pop" (Advanced > CSS classes). Words, form and logo stay editable as usual. */
.swd-sp-box:has(.swd-nl-pop) { border: 1px solid var(--hairline, rgba(0,0,0,.08)); border-radius: var(--r-lg, 18px); box-shadow: var(--e3, 0 30px 80px rgba(0,0,0,.35)); }
.swd-sp:has(.swd-nl-pop) { background: rgba(11,11,11,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.swd-sp-box:has(.swd-nl-pop) .swd-sp-x { top: 12px; right: 12px; width: 40px; height: 40px; background: none; color: var(--ink-2, #555); font-size: 26px; line-height: 40px; transition: background .18s, color .18s; }
.swd-sp-box:has(.swd-nl-pop) .swd-sp-x:hover { background: var(--surface-sunk, #eee); color: var(--text, #111); }
.swd-sp .swd-nl-pop { padding: 38px 32px 30px !important; text-align: center; color: var(--text); background: var(--surface) !important; }
.swd-nl-pop img { display: block; height: 58px; width: auto; margin: 0 auto 16px; }
.swd-nl-pop .swd-news-p { margin: 0 auto 12px; font-family: var(--font-body); font-size: 15.5px; line-height: 1.62; color: var(--ink-2); opacity: 1; }
.swd-nl-pop .swd-news-form { gap: 8px; flex-wrap: nowrap; margin: 4px auto 14px; }
.swd-nl-pop .swd-news-form input { padding: 13px 20px; border: 1px solid var(--border-light); border-radius: var(--r-pill, 999px); font-size: 15px; background: var(--surface); color: var(--text); }
.swd-nl-pop .swd-news-form input:focus { box-shadow: none; border-color: var(--red, #D43A1A); }
.swd-nl-pop .swd-news-form .btn-primary { flex-shrink: 0; }
.swd-nl-pop-note p { margin: -6px 0 14px; font-size: 13px; color: var(--ink-3); }
.swd-nl-pop .newsletter-success { text-align: center; }
.swd-nl-pop .newsletter-success .swd-tick { margin-left: auto; margin-right: auto; color: var(--red-text); --swd-tick-tint: rgba(212,58,26,0.10); }
.swd-nl-pop .newsletter-success-h { color: var(--text); }
.swd-nl-pop .newsletter-success-p { color: var(--ink-2); opacity: 1; }
@media (max-width: 480px) {
  .swd-sp .swd-nl-pop { padding: 34px 22px 26px !important; }
  .swd-nl-pop .swd-news-form { flex-direction: column; }
  .swd-nl-pop .swd-news-form input { flex: 0 0 auto; width: 100%; }
  .swd-nl-pop .swd-news-form .btn-primary { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .swd-sp, .swd-sp-box { transition: none; } }
