/* The Website Studio: template browsing components.
   Builds on the agency stylesheet (../assets/css/site.css) and its tokens:
   --ink, --cream, --blue, --butter, --line, --muted, --sans, --serif.
   All classes are prefixed st- so they cannot collide with homepage styles. */
.st-page { overflow-x: clip; }
.st-page .main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
html.st-lock, html.st-lock body { overflow: hidden; }

/* Intro */
.st-intro { padding: clamp(56px, 8vw, 116px) 0 clamp(56px, 7vw, 96px); }
.st-kicker { display: inline-flex; align-items: center; gap: 10px; }
.st-kicker__dot { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: var(--blue); }
.st-intro h1 { margin: 0; font-size: clamp(50px, 8.2vw, 128px); line-height: .98; }
.st-intro__foot { display: grid; gap: 32px; margin-top: clamp(28px, 4vw, 48px); align-items: end; }
.st-lede { max-width: 52ch; margin: 0; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--muted); }
.st-facts { display: flex; flex-wrap: wrap; gap: 20px 44px; margin: 0; }
.st-facts dt { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.st-facts dd { margin: 4px 0 0; font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -.04em; }
.st-disclosure { margin: clamp(32px, 4vw, 48px) 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); }
@media (min-width: 1100px) { .st-intro__foot { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .st-facts { justify-content: flex-end; } }

/* Catalogue cards */
.st-catalog { display: grid; gap: clamp(80px, 10vw, 150px); padding-bottom: clamp(72px, 9vw, 130px); }
.st-card { display: grid; gap: clamp(48px, 5vw, 72px); align-items: center; }
.st-card__visual { position: relative; padding: clamp(22px, 4vw, 52px) clamp(22px, 4vw, 52px) clamp(48px, 6vw, 80px); border: 2px solid var(--ink); border-radius: clamp(20px, 2.4vw, 30px); box-shadow: 8px 8px 0 var(--ink); }
.st-card--stone .st-card__visual { background: #24221F; }
.st-card--evergreen .st-card__visual { background: #1F3B2C; }
.st-shot { display: block; position: relative; padding-right: clamp(36px, 9%, 90px); text-decoration: none; color: inherit; border-radius: 14px; }
.st-shot:focus-visible { outline: 3px solid var(--butter); outline-offset: 8px; }
.st-browser { display: block; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .75); transition: transform .6s cubic-bezier(.2, .7, .1, 1); }
.st-browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #ECE8DF; font-size: 10px; font-weight: 650; color: #55585f; }
.st-browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9c7bf; }
.st-browser__bar span { margin-left: 8px; }
.st-browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.st-phone { position: absolute; right: 0; bottom: clamp(-34px, -3vw, -20px); width: clamp(96px, 23%, 172px); overflow: hidden; border: 5px solid #0E0E0E; border-radius: clamp(18px, 2vw, 28px); background: #0E0E0E; box-shadow: 0 28px 50px -18px rgba(0, 0, 0, .8); transition: transform .6s cubic-bezier(.2, .7, .1, 1); }
.st-phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: clamp(13px, 1.5vw, 22px); }
.st-shot:hover .st-browser, .st-shot:focus-visible .st-browser { transform: translateY(-6px); }
.st-shot:hover .st-phone, .st-shot:focus-visible .st-phone { transform: translateY(-14px); }

.st-industry { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.st-card__info h2 { margin: 14px 0 16px; font-size: clamp(40px, 4.4vw, 64px); }
.st-desc { max-width: 44ch; margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.st-features { display: grid; gap: 9px 22px; margin: 26px 0 22px; padding: 22px 0; border-block: 1px solid var(--line); list-style: none; font-size: 14px; font-weight: 600; }
.st-features li { display: flex; gap: 10px; align-items: baseline; }
.st-features li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); transform: translateY(-1px); }
.st-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-swatch { width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 50%; }
.st-swatch--ivory { background: #F3EEE6; } .st-swatch--charcoal { background: #191918; } .st-swatch--gray { background: #3B3E40; } .st-swatch--bronze { background: #A47A4C; }
.st-swatch--forest { background: #1F3B2C; } .st-swatch--cream { background: #F4EEE2; } .st-swatch--earth { background: #8A4B2C; } .st-swatch--sage { background: #BCCBB2; }
.st-palette__text { margin-left: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.st-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.st-live { min-height: 56px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 14px/1 var(--sans); cursor: pointer; transition: background-color .25s, color .25s; }
.st-live:hover { background: var(--ink); color: #fff; }
.st-request { min-height: 44px; }
@media (min-width: 560px) { .st-features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .st-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .st-card--evergreen .st-card__visual { order: 2; }
}
@media (max-width: 600px) {
  .st-card__visual { box-shadow: 5px 5px 0 var(--ink); }
  .st-actions .button { width: 100%; }
}

/* How it works */
.st-how { border-top: 1px solid var(--line); }
.st-how__head h2 { margin: 0; font-size: clamp(40px, 4.4vw, 66px); }
.st-steps { display: grid; gap: 28px; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none; counter-reset: none; }
.st-steps li { padding-top: 22px; border-top: 2px solid var(--ink); }
.st-steps__num { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--blue); }
.st-steps h3 { margin: 10px 0 8px; font-size: 24px; letter-spacing: -.04em; }
.st-steps p { margin: 0; max-width: 36ch; color: var(--muted); }
.st-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 38px); border: 2px solid var(--ink); border-radius: 24px; background: var(--butter); box-shadow: 6px 6px 0 var(--ink); }
.st-band p { max-width: 62ch; margin: 0; font-size: 17px; line-height: 1.55; }
@media (min-width: 900px) { .st-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* Live preview dialog */
.st-preview { width: min(1320px, 96vw); height: min(920px, 92dvh); max-width: none; max-height: none; padding: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 22px; background: var(--cream); color: var(--ink); }
.st-preview[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.st-preview::backdrop { background: rgba(18, 19, 22, .74); }
.st-preview__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.st-preview__bar .eyebrow { margin: 0 0 2px; }
.st-preview__bar h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.st-preview__widths { display: inline-flex; margin-left: auto; padding: 3px; border: 2px solid var(--ink); border-radius: 999px; }
.st-preview__widths button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 700 13px/1 var(--sans); cursor: pointer; }
.st-preview__widths button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.st-preview__open { font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.st-preview__close { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font-size: 16px; cursor: pointer; }
.st-preview__close:hover { background: var(--ink); color: #fff; }
.st-preview__stage { display: grid; justify-items: center; min-height: 0; background: #2A2B2E; }
.st-preview__stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.st-preview__stage.is-mobile { padding: 18px 0; }
.st-preview__stage.is-mobile iframe { width: 390px; max-width: calc(100% - 24px); border-radius: 26px; box-shadow: 0 0 0 8px #0E0E0E; }
.st-preview__note { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .st-preview { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .st-preview__bar > div:first-child { flex: 1 1 100%; }
  .st-preview__widths { margin-left: 0; }
  .st-preview__close { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .st-browser, .st-phone { transition: none; }
  .st-shot:hover .st-browser, .st-shot:hover .st-phone { transform: none; }
}
