/* ===== NumenAI Studio — design tokens ===== */
:root {
  --bg: #0c0b10;
  --bg-2: #131219;
  --surface: #17161e;
  --surface-2: #1e1d27;
  --line: #2a2834;
  --text: #f3f1ec;
  --muted: #a3a0ad;
  --accent: #ffb547;
  --accent-2: #ff5d73;
  --accent-text: #ffb547;
  --text-2: #d6d3dc;
  --line-strong: #444150;
  --hover: #26252f;
  --faint: #5d5a68;
  --header-bg: rgba(12, 11, 16, .78);
  --ghost-bg: rgba(255,255,255,.03);
  --ghost-hover: rgba(255,255,255,.07);
  --glow: .22;
  color-scheme: dark;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --container: 1160px;
}

/* ===== Light theme ===== */
:root[data-theme="light"] {
  --bg: #faf8f4; --bg-2: #f3f0ea; --surface: #ffffff; --surface-2: #f2efe9;
  --line: #e4dfd6; --line-strong: #cbc4b8; --text: #17151c; --text-2: #34313b; --muted: #67636f;
  --accent-text: #b4500d; --hover: #e9e5dd; --faint: #a19c92;
  --header-bg: rgba(250, 248, 244, .84); --ghost-bg: rgba(0,0,0,.02); --ghost-hover: rgba(0,0,0,.05);
  --shadow: 0 20px 50px -24px rgba(60, 40, 20, .25); --glow: .14;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #faf8f4; --bg-2: #f3f0ea; --surface: #ffffff; --surface-2: #f2efe9;
    --line: #e4dfd6; --line-strong: #cbc4b8; --text: #17151c; --text-2: #34313b; --muted: #67636f;
    --accent-text: #b4500d; --hover: #e9e5dd; --faint: #a19c92;
    --header-bg: rgba(250, 248, 244, .84); --ghost-bg: rgba(0,0,0,.02); --ghost-hover: rgba(0,0,0,.05);
    --shadow: 0 20px 50px -24px rgba(60, 40, 20, .25); --glow: .14;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
h1 em, h2 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--accent-text); margin-bottom: .8em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 11px 20px;
  font: 600 15px/1 var(--sans); cursor: pointer; transition: transform .15s, background .15s, border-color .15s, opacity .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #160d06; }
.btn-primary:hover { opacity: .92; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--ghost-bg); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--ghost-hover); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-yt { background: #ff2d3d; color: #fff; }
.btn-yt:hover { background: #ff4552; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); transition: background .2s; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #0c0b10; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.logo-text em { font-style: normal; color: var(--accent-text); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .15s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; transition: transform .2s; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero-glow { position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(255,93,115,var(--glow)), rgba(255,181,71,calc(var(--glow) / 2)) 40%, transparent 70%); filter: blur(10px); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero { padding: 104px 0 88px; } }
.hero h1 { font-size: clamp(44px, 7vw, 80px); margin-bottom: 20px; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1; }
.hero-stats span { color: var(--muted); font-size: 14px; margin-top: 6px; }
.hero-feature { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.hero-feature:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.hero-feature-media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.hero-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(12,11,16,.7); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.2); }
.hero-feature-body { padding: 22px 24px 24px; }
.hero-feature-body h2 { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: -.01em; margin: 12px 0 14px; }

/* ===== Tools strip ===== */
.tools-strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.tools-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 30px; padding-block: 20px; font-weight: 600; color: var(--text-2); font-size: 15px; }
.tools-row .muted { font-weight: 500; }

/* ===== Sections ===== */
.section { padding-block: 88px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2, .newsletter h2, .services h2 { font-size: clamp(34px, 4.6vw, 52px); margin: 0; }
.link-arrow { color: var(--accent-text); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== Cards ===== */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb .badge { position: absolute; top: 12px; left: 12px; color: #fff; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 18px; font-weight: 600; }
.card-body p { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-cta { margin-top: auto; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(12,11,16,.78); color: var(--text); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.badge-new { background: rgba(255,181,71,.14); color: var(--accent-text); border-color: rgba(255,181,71,.3); }

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num { font-family: var(--serif); font-size: 44px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 18px; }
.steps h3 { font-size: 19px; }
.steps p { margin: 0; }

/* ===== Newsletter ===== */
.newsletter { padding: 0 16px; }
.newsletter-inner { max-width: var(--container); margin: 0 auto; border-radius: 28px; padding: clamp(32px, 6vw, 64px); background: radial-gradient(120% 140% at 100% 0%, rgba(255,93,115,.22), transparent 55%), radial-gradient(120% 140% at 0% 100%, rgba(255,181,71,.16), transparent 55%), var(--surface); border: 1px solid var(--line); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .newsletter-inner { grid-template-columns: 1.1fr 1fr; } }
.newsletter-inner p.muted { margin: 12px 0 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 220px; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 14px 20px; font: 15px var(--sans); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }

/* ===== Services ===== */
.services { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .services { grid-template-columns: .9fr 1.1fr; } }
.services-copy p { margin: 16px 0 26px; max-width: 460px; }
.services-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.services-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.services-list h3 { font-size: 17px; }
.services-list p { margin: 0; font-size: 15px; }

/* ===== Blog index ===== */
.page-hero { padding-block: 72px 36px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 68px); margin-bottom: 14px; }
.page-hero p { max-width: 620px; font-size: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; align-items: center; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 999px; font: 500 14px var(--sans); cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip { display: inline-block; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.search-big { position: relative; display: flex; align-items: center; max-width: 720px; margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px 0 22px; transition: border-color .15s, box-shadow .15s; }
.search-big:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,181,71,.12); }
.search-big svg { color: var(--muted); flex: none; }
.search-big input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 17px var(--sans); padding: 18px 14px; }
.search-big input:focus { outline: none; }
.search-big input::-webkit-search-cancel-button { display: none; }
.search-clear { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.search-clear:hover { color: var(--text); }
.search-hint { font-size: 14px !important; margin: 10px 0 0 22px; }
.result-count { margin-left: auto; font-size: 14px; }
.empty { display: none; padding: 48px 0; text-align: center; }
.empty p { margin-bottom: 18px; }

/* ===== Post ===== */
.post-hero { padding-block: 48px 28px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.post-hero h1 { font-size: clamp(36px, 5.4vw, 60px); max-width: 900px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; align-items: center; }
.post-layout { display: grid; gap: 40px; padding-bottom: 88px; }
@media (min-width: 1020px) { .post-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { padding: 0; cursor: pointer; background: #000; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video button:hover img { opacity: 1; }
.video .play { width: 76px; height: 76px; background: #ff2d3d; border: 0; }

.prompt-box { margin: 32px 0; border-radius: var(--radius); border: 1px solid rgba(255,181,71,.35); background: linear-gradient(180deg, rgba(255,181,71,.07), rgba(255,93,115,.03)), var(--surface); overflow: hidden; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.prompt-head h2 { font-family: var(--sans); font-weight: 700; font-size: 18px; margin: 0; }
.prompt-head p { margin: 2px 0 0; font-size: 14px; }
.prompt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.prompt-body { position: relative; max-height: 340px; overflow: auto; }
.prompt-body.expanded { max-height: none; }
.prompt-body pre { margin: 0; padding: 22px; white-space: pre-wrap; word-wrap: break-word; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-2); }
.prompt-expand { padding: 12px 22px; border-top: 1px solid var(--line); display: flex; justify-content: center; }
.prompt-expand button { background: none; border: 0; color: var(--accent-text); font: 600 14px var(--sans); cursor: pointer; padding: 4px 8px; }
.prompt-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); background: var(--bg-2); }
.prompt-download-text { display: flex; flex-direction: column; gap: 2px; min-width: 200px; flex: 1; }
.prompt-download-text strong { font-size: 15px; }
.prompt-download-text span { font-size: 13px; }
.prompt-download-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s, background .15s; }
.dl-btn:hover { border-color: var(--line-strong); background: var(--hover); transform: translateY(-1px); }
.dl-btn b { display: block; font-size: 14px; line-height: 1.2; }
.dl-btn small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.dl-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font: 800 11px/1 var(--sans); color: #fff; letter-spacing: .02em; flex: none; }
.dl-word { background: #2b5cd6; font-size: 15px; }
.dl-pdf { background: #e2412f; }
.dl-txt { background: #6b6775; }
@media (max-width: 520px) { .prompt-download-buttons { width: 100%; } .dl-btn { flex: 1 1 0; min-width: 0; padding-right: 8px; } }

.prose { font-size: 17px; color: var(--text-2); }
.prose h2 { font-size: 34px; margin: 1.6em 0 .5em; color: var(--text); }
.prose h3 { font-size: 20px; margin: 1.6em 0 .5em; color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent-text); }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); }
.prose blockquote p { margin: 0; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.sidebar { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1020px) { .sidebar-sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.tool-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tool-list a, .tool-list span { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 500; font-size: 15px; }
.tool-list a:hover { background: var(--hover); }
.tool-list small { color: var(--muted); font-size: 12px; }
.ad-slot { border: 1px dashed var(--line); border-radius: var(--radius-sm); min-height: 250px; display: grid; place-items: center; color: var(--faint); font-size: 13px; }
.related { border-top: 1px solid var(--line); padding-block: 72px 88px; }

/* ===== Simple pages ===== */
.simple { max-width: 760px; padding-block: 64px 96px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 28px; background: var(--bg-2); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid p { max-width: 380px; margin-top: 14px; font-size: 15px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer-grid a:not(.logo) { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 8px; word-break: break-word; }
.footer-grid a:not(.logo):hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }

/* ===== Header actions & theme toggle ===== */
.nav-right { display: flex; align-items: center; gap: 28px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--ghost-bg); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, background .15s; flex: none; }
.theme-toggle:hover { border-color: var(--line-strong); background: var(--ghost-hover); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (max-width: 760px) { .nav-right { gap: 6px; } }

/* ===== Pagination ===== */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pager button, .pager span { min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 15px var(--sans); cursor: pointer; display: inline-grid; place-items: center; transition: border-color .15s, background .15s; }
.pager button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--hover); }
.pager button[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager span { border: 0; background: none; cursor: default; color: var(--muted); padding: 0 4px; min-width: 0; }
.pager-info { text-align: center; margin: 14px 0 0; font-size: 14px; }

/* ===== Share ===== */
.post-meta .share { margin-left: auto; }
@media (max-width: 640px) { .post-meta .share { margin-left: 0; } }

/* ===== Contact ===== */
.contact-layout { display: grid; gap: 32px; padding-bottom: 96px; align-items: start; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: 14px; padding: 0; }
.field label span, .field legend span { color: var(--accent-text); }
.field small { color: var(--muted); font-weight: 400; }
.field legend { margin-bottom: 10px; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); padding: 13px 14px; font: 15px/1.5 var(--sans); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23908c99' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,181,71,.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.pill-options { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 500; color: var(--text-2); transition: all .15s; }
.pill:hover span { border-color: var(--line-strong); }
.pill input:checked + span { background: var(--grad); color: #160d06; border-color: transparent; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 13px; margin: -6px 0 0; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-side p { font-size: 15px; margin: 10px 0 0; }
.contact-side .btn { margin-top: 16px; }
.contact-email { font-weight: 600; font-size: 17px; color: var(--accent-text); word-break: break-word; }
.next-steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-2); }
.next-steps li::marker { color: var(--accent-text); font-weight: 700; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.service-link { display: block; height: 100%; }
.services-list li { transition: border-color .15s, transform .15s; }
.services-list li:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.services-list h3 span { color: var(--accent-text); }
