/* 2nd Code: studio skin for inner pages (services, cities, blog, pricing, about, contact, work...).
   Loaded after app.css + site.css + studio.css on every page except the homepage and tools.
   Pure restyle: no markup or content changes, so SEO and schema are untouched. */
body.st-body {
    --in-ink: #0a0a0a; --in-red: #cf1f3c; --in-red2: #a3172f; --in-paper: #faf7f2; --in-rule: #e7e1d6;
    --in-ease: cubic-bezier(.2, .8, .2, 1);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #fff;
}

/* ---------- page hero (first ivory section) ---------- */
body.st-body main > section.bg-ivory:first-child {
    position: relative; overflow: hidden; background: var(--in-paper);
    background-image:
        radial-gradient(700px 360px at 88% -10%, rgba(207, 31, 60, .13), transparent 70%),
        radial-gradient(520px 300px at -5% 110%, rgba(10, 10, 10, .05), transparent 70%);
    border-bottom: 1px solid var(--in-rule);
}
body.st-body main > section.bg-ivory:first-child::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: linear-gradient(var(--in-rule) 1px, transparent 1px), linear-gradient(90deg, var(--in-rule) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000, transparent 65%); mask-image: radial-gradient(ellipse at 80% 0%, #000, transparent 65%);
}
body.st-body main > section.bg-ivory:first-child > * { position: relative; }
body.st-body .classic-title, body.st-body h1 {
    letter-spacing: -.045em; line-height: 1.02; font-weight: 800; color: var(--in-ink);
}
body.st-body main h1.classic-title { font-size: clamp(2.3rem, 6vw, 4.4rem) !important; text-wrap: balance; }
body.st-body .classic-title em, body.st-body h1 em { color: var(--in-red); font-style: normal; }
body.st-body .classic-lead { font-size: clamp(1.02rem, 2vw, 1.22rem); line-height: 1.65; color: #4a4a4f; font-weight: 400; max-width: 62ch; }

@keyframes in-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
body.st-body main > section:first-child .eyebrow,
body.st-body main > section:first-child h1,
body.st-body main > section:first-child .classic-lead,
body.st-body main > section:first-child nav + div > div:last-child { animation: in-rise .9s var(--in-ease) both; }
body.st-body main > section:first-child h1 { animation-delay: .08s; }
body.st-body main > section:first-child .classic-lead { animation-delay: .18s; }
body.st-body main > section:first-child nav + div > div:last-child { animation-delay: .28s; }

/* breadcrumb as a pill */
body.st-body nav[aria-label="Breadcrumb"] ol { display: inline-flex; background: #fff; border: 1px solid var(--in-rule); border-radius: 999px; padding: 6px 14px; }

/* ---------- eyebrow ---------- */
body.st-body .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--in-red); }

/* ---------- section headings ---------- */
body.st-body main h2 { letter-spacing: -.04em; line-height: 1.08; font-weight: 800; color: var(--in-ink); text-wrap: balance; }
body.st-body main h2.text-2xl, body.st-body main h2.md\:text-4xl { font-size: clamp(1.7rem, 3.6vw, 2.9rem); }
body.st-body main h3 { letter-spacing: -.02em; }

/* ---------- cards ---------- */
body.st-body main .border.rule.rounded-2xl,
body.st-body main .bg-white.border.rounded-2xl,
body.st-body .answer-card {
    border-radius: 24px; background: #fff; border-color: var(--in-rule) !important; position: relative;
    transition: transform .45s var(--in-ease), box-shadow .45s var(--in-ease), border-color .3s;
}
body.st-body main .grid > .border.rule.rounded-2xl { overflow: hidden; }
body.st-body main .grid > .border.rule.rounded-2xl::before {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--in-red); transition: width .5s var(--in-ease);
}
body.st-body main .grid > .border.rule.rounded-2xl:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(10, 10, 10, .35); border-color: #d8cfbf !important; }
body.st-body main .grid > .border.rule.rounded-2xl:hover::before { width: 100%; }
body.st-body main .grid > .border.rule.rounded-2xl h3 { color: var(--in-ink); font-size: 1.12rem; }

/* alternate section tint for rhythm */
body.st-body main > section.bg-white + section.bg-white { background: var(--in-paper); }

/* ---------- answer-first block: dark feature card ---------- */
body.st-body .answer-block { background: #fff; padding: 3rem 0 .5rem; }
body.st-body .answer-card {
    background: var(--in-ink); color: #fff; border: 0; padding: 1.6rem; overflow: hidden;
    background-image: radial-gradient(520px 260px at 100% 0%, rgba(207, 31, 60, .35), transparent 70%);
}
@media (min-width: 640px) { body.st-body .answer-card { padding: 2.4rem 2.6rem 1.8rem; } }
body.st-body .answer-card h2 { color: #fff; font-size: clamp(1.3rem, 2.8vw, 1.9rem); letter-spacing: -.035em; }
body.st-body .answer-text { color: #d9d5cd; font-size: 1.04rem; }
body.st-body .answer-facts > div { border-top: 1px solid rgba(255, 255, 255, .16); }
body.st-body .answer-facts dt { color: #ff8da0; }
body.st-body .answer-facts dd { color: #fff; }
body.st-body .answer-byline { color: #a8a39a; }
body.st-body .answer-byline a { color: #fff; }

/* ---------- buttons: pill, same family as the nav ---------- */
body.st-body .btn-ink, body.st-body .btn-line, body.st-body .btn-brand {
    border-radius: 999px; font-weight: 700; letter-spacing: -.01em; padding-left: 1.5rem; padding-right: 1.5rem;
    transition: transform .3s var(--in-ease), background .25s, color .25s, border-color .25s, box-shadow .3s;
}
body.st-body .btn-ink:hover, body.st-body .btn-brand:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(207, 31, 60, .6); }
body.st-body .btn-line { background: transparent; border: 1.5px solid #cfc7b7; }
body.st-body .btn-line:hover { border-color: var(--in-ink); background: #fff; transform: translateY(-2px); }

/* ---------- chips / tags ---------- */
body.st-body .tag, body.st-body .chip { border-radius: 999px; font-weight: 600; transition: all .25s; }
body.st-body a.tag:hover { background: var(--in-ink); border-color: var(--in-ink) !important; color: #fff !important; transform: translateY(-2px); }

/* ---------- process list ---------- */
body.st-body .built-list li { transition: padding-left .3s var(--in-ease); }
body.st-body .built-list li:hover { padding-left: .6rem; }
body.st-body .built-list li::before { color: var(--in-red); }

/* ---------- project previews ---------- */
body.st-body .pv { border-radius: 22px; box-shadow: 0 30px 60px -36px rgba(10, 10, 10, .5); transition: transform .5s var(--in-ease), box-shadow .5s; }
body.st-body .group:hover .pv { transform: translateY(-6px); box-shadow: 0 40px 70px -34px rgba(10, 10, 10, .55); }

/* ---------- FAQ ---------- */
body.st-body .faq-item { border-bottom: 1px solid var(--in-rule); transition: background .25s; }
body.st-body .faq-item summary { padding: 1.15rem .25rem; font-size: 1.05rem; letter-spacing: -.015em; }
body.st-body .faq-item summary::after { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--in-paper); display: grid; place-items: center; font-size: 1.1rem; transition: transform .3s var(--in-ease), background .25s, color .25s; }
body.st-body .faq-item[open] summary::after { background: var(--in-red); color: #fff; }
body.st-body .faq-item:hover { background: rgba(250, 247, 242, .7); }
body.st-body .faq-item p { padding: 0 .25rem 1.25rem; font-size: 1rem; max-width: 70ch; }

/* ---------- links in body copy ---------- */
body.st-body main a.underline { text-decoration-color: #d8cfbf; transition: text-decoration-color .2s, color .2s; }
body.st-body main a.underline:hover { text-decoration-color: var(--in-red); }

/* ---------- dark bands (quote / enquiry / cta) ---------- */
body.st-body .quote-band, body.st-body section.bg-gray-900, body.st-body section.bg-black {
    background: var(--in-ink); background-image: radial-gradient(600px 300px at 90% 0%, rgba(207, 31, 60, .28), transparent 70%); color: #f4efe6;
}
body.st-body #enquiry { scroll-margin-top: 96px; }

/* ---------- blog / long-form ---------- */
body.st-body .prose-2c h2 { letter-spacing: -.035em; font-weight: 800; margin-top: 2.4rem; }
body.st-body .prose-2c .lead { font-size: 1.22rem; color: var(--in-ink); border-left: 3px solid var(--in-red); padding-left: 1rem; }
body.st-body .prose-2c .table-wrap { border-radius: 18px; box-shadow: 0 18px 40px -30px rgba(10, 10, 10, .35); }
body.st-body .prose-2c table th { background: var(--in-ink); color: #fff; letter-spacing: .02em; }
body.st-body .prose-2c table tr:nth-child(even) td { background: var(--in-paper); }
body.st-body .prose-2c a { color: var(--in-red); text-underline-offset: 3px; }

/* ---------- forms ---------- */
body.st-body input[type=text], body.st-body input[type=tel], body.st-body input[type=email], body.st-body select, body.st-body textarea {
    border-radius: 14px; transition: border-color .2s, box-shadow .2s;
}
body.st-body input:focus, body.st-body select:focus, body.st-body textarea:focus { outline: none; border-color: var(--in-red); box-shadow: 0 0 0 4px rgba(207, 31, 60, .12); }

@media (prefers-reduced-motion: reduce) {
    body.st-body * { animation: none !important; }
    body.st-body main .grid > .border.rule.rounded-2xl:hover, body.st-body .group:hover .pv { transform: none; }
}
@media (max-width: 640px) {
    body.st-body nav[aria-label="Breadcrumb"] ol { border-radius: 14px; }
    body.st-body main h1.classic-title { font-size: clamp(2rem, 9vw, 2.6rem) !important; }
}

/* ---------- inline diagrams in guides ---------- */
body.st-body figure.fig { margin: 1.6rem 0 2rem; padding: 1.1rem; background: #fff; border: 1px solid var(--in-rule); border-radius: 20px; box-shadow: 0 18px 40px -32px rgba(10, 10, 10, .4); }
body.st-body figure.fig svg { width: 100%; height: auto; display: block; }
body.st-body figure.fig figcaption { margin-top: .7rem; font-size: 13px; color: #6b6b70; line-height: 1.5; }

/* anchor jumps (table of contents) clear the floating nav */
body.st-body main h2[id], body.st-body main h3[id], body.st-body main section[id] { scroll-margin-top: 100px; }
