:root {
  color-scheme: dark;
  --bg: #100d16;
  --surface: #1a1522;
  --text: #f5f0fa;
  --soft: #d5cddd;
  --muted: #b3a8bf;
  --line: #382e44;
  --accent: #b897ed;
  --accent-2: #d4baff;
  --page: min(1160px, calc(100% - 64px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 "Instrument Sans", "Segoe UI", sans-serif; }
a { color: inherit; text-underline-offset: 5px; text-decoration-color: var(--accent); }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 5px; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
header, main, .site-footer { width: var(--page); margin-inline: auto; }
header { position: sticky; top: 12px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; margin-top: 16px; padding: 10px 22px; border: 1px solid var(--line); border-radius: 12px; background: #17121ff5; }
header > a { font-size: 16px; font-weight: 650; text-decoration: none; }
nav { display: flex; align-items: center; gap: 4px; }
nav > a, .nav-dropdown-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--soft); font-size: 14px; text-decoration: none; cursor: pointer; }
nav > a:hover, .nav-dropdown-trigger:hover { color: var(--text); background: #2b2237; }
nav > a:last-child { color: var(--accent-2); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 12px); left: 0; display: grid; width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #211a2b; box-shadow: 0 16px 40px #0005; }
.nav-dropdown-menu a { padding: 12px; border-radius: 4px; font-size: 14px; text-decoration: none; }
.nav-dropdown-menu a:hover { background: #352942; }
main > section { padding-block: 96px; border-bottom: 1px solid var(--line); }
main > .hero { position: relative; display: grid; place-items: center; min-height: 660px; padding: 100px 24px 112px; text-align: center; isolation: isolate; }
.hero-network-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.hero-network-content { width: 100%; max-width: 910px; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-2); font-size: 14px; }
.hero-badge svg { width: 16px; height: 16px; }
h1 { max-width: 880px; margin: 28px auto; font-size: clamp(42px, 5.7vw, 76px); font-weight: 600; line-height: 1.07; letter-spacing: -.045em; text-wrap: balance; }
.lead { max-width: 660px; margin: 0 auto; color: var(--soft); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; margin: 34px 0 0; }
.actions > a { font-size: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 50px; padding: 12px 20px; border: 1px solid transparent; border-radius: 7px; background: var(--accent); color: #20132f; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--accent-2); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 50px; align-items: start; margin-bottom: 36px; }
h2 { margin: 0; font-size: clamp(30px, 3.2vw, 42px); font-weight: 550; letter-spacing: -.035em; line-height: 1.15; }
.intro p { max-width: 64ch; margin: 0; color: var(--muted); }
.method-strip { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 32px; color: var(--muted); font-size: 13px; }
.method-strip span { display: flex; align-items: center; gap: 8px; }
.method-strip span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.rows article { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.rows article::before { content: ""; display: block; aspect-ratio: 2.4; background: var(--service-cover) center/cover no-repeat; }
.rows article:nth-child(1) { --service-cover: url('assets/workspace.webp'); }
.rows article:nth-child(2) { --service-cover: url('assets/supabase-security.webp'); }
.rows article:nth-child(3) { --service-cover: url('assets/monitoring-operations.webp'); }
.rows article:nth-child(4) { --service-cover: url('assets/me-workshop.webp'); }
.rows article:nth-child(4)::before { background-position: center 12%; }
.service-copy { padding: 30px; }
.service-mark { display: block; margin-bottom: 18px; color: var(--accent-2); }
.service-mark svg { width: 26px; height: 26px; }
.service-mark b { display: none; }
.rows h3 { margin: 0 0 16px; font-size: 25px; line-height: 1.22; font-weight: 550; letter-spacing: -.025em; }
.service-summary { margin: 0; color: var(--soft); font-size: 15px; }
.service-fit { margin-block: 24px; }
.service-fit > span, .service-scope > span, .service-delivery > span { display: block; color: var(--accent-2); font-size: 14px; font-weight: 600; }
.service-fit p, .service-delivery p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.service-scope, .service-delivery { padding-block: 12px; border-top: 1px solid var(--line); }
.scope-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 5px 0; border: 0; background: transparent; color: var(--accent-2); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.scope-toggle > span { font-size: 22px; font-weight: 400; }
.service-scope ul { margin: 8px 0 10px; padding-left: 20px; color: var(--soft); font-size: 14px; }
.service-scope li { margin-block: 8px; padding-left: 3px; }
.service-scope li::marker { color: var(--accent); }
.service-cta { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 18px; color: var(--accent-2); font-size: 14px; font-weight: 600; }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 0; margin: 44px 0 0; list-style: none; }
.process-steps li { padding-top: 20px; border-top: 2px solid var(--line); }
.process-steps li > span { display: block; margin-bottom: 28px; color: var(--accent-2); font-size: 14px; }
.process-steps h3, .work h3 { margin: 0 0 12px; font-size: 19px; line-height: 1.3; font-weight: 600; }
.process-steps p, .work p { margin: 0; color: var(--muted); font-size: 15px; }
.methodology-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding: 36px; border-radius: 10px; background: var(--surface); }
.methodology-kicker { color: var(--accent-2); font-size: 14px; }
.methodology-lead h3 { margin: 24px 0 16px; max-width: 25ch; font-size: 28px; font-weight: 550; line-height: 1.2; letter-spacing: -.025em; }
.methodology-lead p { margin: 0; color: var(--muted); font-size: 15px; }
.methodology-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 0; margin: 0; list-style: none; }
.methodology-list li { padding-top: 14px; border-top: 1px solid var(--line); }
.methodology-list li > span { display: none; }
.methodology-list strong { color: var(--soft); font-weight: 600; }
.methodology-list p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.work article { padding-top: 24px; border-top: 1px solid var(--line); }
.report { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 32px; margin-top: 28px; border-left: 3px solid var(--accent); background: var(--surface); }
.report p { margin: 0; max-width: 70ch; color: var(--soft); font-size: 14px; }
.report a { flex-shrink: 0; color: var(--accent-2); font-size: 14px; }
.about { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 80px; align-items: center; }
.about figure { margin: 0; }
.about img { display: block; width: 100%; max-width: 380px; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; }
.about figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; }
.about h2 { margin-bottom: 28px; }
.about p { margin: 0 0 20px; color: var(--soft); }
.about .note { padding-left: 18px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; }
.about a { color: var(--accent-2); font-size: 14px; }
main > .contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); align-items: center; gap: 64px; margin-block: 80px; padding: 52px; border: 1px solid #574069; border-radius: 12px; background: #22182e; }
.eyebrow { margin: 0 0 20px; color: var(--accent-2); font-size: 14px; }
.contact h2 { max-width: 18ch; margin-bottom: 20px; }
.contact-copy > p:not(.eyebrow) { color: var(--soft); font-size: 16px; }
.contact-button { margin-top: 10px; font-size: 14px; }
.contact small { display: block; margin-top: 18px; color: var(--muted); font-size: 12px; }
.contact-list { padding: 0; margin: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding-block: 16px; border-bottom: 1px solid #46344f; color: var(--soft); font-size: 14px; }
.contact-list svg { color: var(--accent); }
.site-footer { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; margin-bottom: 36px; padding-block: 36px; border-top: 1px solid var(--line); }
.footer-identity { display: grid; grid-template-columns: 48px 1fr; align-items: start; gap: 20px; }
.footer-mark { display: block; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.footer-identity strong { font-size: 16px; font-weight: 600; }
.footer-identity p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.footer-whatsapp { grid-column: 2; color: var(--accent-2); font-size: 13px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links b { margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--accent-2); }
.footer-links small { align-self: end; color: var(--muted); font-size: 12px; }
@media (max-width: 960px) {
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { gap: 40px; }
  .methodology-panel { gap: 32px; padding: 28px; }
  main > .contact { gap: 32px; padding: 36px; }
  .site-footer { gap: 36px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-links small { grid-column: 1/-1; }
}
@media (max-width: 700px) {
  :root { --page: calc(100% - 36px); }
  html { scroll-padding-top: 150px; }
  header { flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; top: 8px; margin-top: 8px; }
  header > a { padding-inline: 8px; }
  nav { justify-content: space-between; }
  nav > a, .nav-dropdown-trigger { padding-inline: 8px; font-size: 13px; }
  .nav-dropdown-menu { width: min(250px, calc(100vw - 62px)); }
  main > section { padding-block: 64px; }
  main > .hero { min-height: 570px; padding: 64px 0 72px; }
  h1 { font-size: clamp(38px, 8.7vw, 58px); letter-spacing: -.04em; }
  .hero-badge { font-size: 12px; }
  .lead { font-size: 16px; }
  .actions { flex-direction: column; gap: 20px; }
  .intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .rows { grid-template-columns: 1fr; gap: 24px; }
  .service-copy { padding: 24px; }
  .rows h3 { font-size: 25px; }
  .methodology-panel { grid-template-columns: 1fr; padding: 24px; }
  .work { grid-template-columns: 1fr; gap: 28px; }
  .report { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about img { max-width: 340px; }
  main > .contact { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; margin-block: 56px; }
  .site-footer { grid-template-columns: 1fr; gap: 36px; padding-block: 28px; }
}
@media (max-width: 380px) {
  .process-steps, .methodology-list { grid-template-columns: 1fr; }
  .process-steps li > span { margin-bottom: 14px; }
  .service-copy { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Reserve the longest phrase so typing never moves the badge or hero. */
.hero-badge { background: var(--bg); }
.typewriter { display: inline-grid; text-align: left; }
.typewriter-sizer, .typewriter-motion { grid-area: 1 / 1; }
.typewriter-sizer { visibility: hidden; padding-right: 4px; }
.typewriter-motion::before {
  content: "Segurança aplicada ao produto";
  animation: badge-typing 18s steps(1, end) infinite;
}
.typewriter-motion::after {
  content: "";
  margin-left: 2px;
  border-right: 1px solid currentColor;
  animation: badge-blink .7s steps(1, end) infinite;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@keyframes badge-typing {
  0.0000% { content: ""; }
  0.4598% { content: "S"; }
  0.9195% { content: "Se"; }
  1.3793% { content: "Seg"; }
  1.8391% { content: "Segu"; }
  2.2989% { content: "Segur"; }
  2.7586% { content: "Segura"; }
  3.2184% { content: "Seguran"; }
  3.6782% { content: "Seguranç"; }
  4.1379% { content: "Segurança"; }
  4.5977% { content: "Segurança "; }
  5.0575% { content: "Segurança a"; }
  5.5172% { content: "Segurança ap"; }
  5.9770% { content: "Segurança apl"; }
  6.4368% { content: "Segurança apli"; }
  6.8966% { content: "Segurança aplic"; }
  7.3563% { content: "Segurança aplica"; }
  7.8161% { content: "Segurança aplicad"; }
  8.2759% { content: "Segurança aplicada"; }
  8.7356% { content: "Segurança aplicada "; }
  9.1954% { content: "Segurança aplicada a"; }
  9.6552% { content: "Segurança aplicada ao"; }
  10.1149% { content: "Segurança aplicada ao "; }
  10.5747% { content: "Segurança aplicada ao p"; }
  11.0345% { content: "Segurança aplicada ao pr"; }
  11.4943% { content: "Segurança aplicada ao pro"; }
  11.9540% { content: "Segurança aplicada ao prod"; }
  12.4138% { content: "Segurança aplicada ao produ"; }
  12.8736% { content: "Segurança aplicada ao produt"; }
  13.3333% { content: "Segurança aplicada ao produto"; }
  26.6667% { content: "Segurança aplicada ao produto"; }
  26.8966% { content: "Segurança aplicada ao produt"; }
  27.1264% { content: "Segurança aplicada ao produ"; }
  27.3563% { content: "Segurança aplicada ao prod"; }
  27.5862% { content: "Segurança aplicada ao pro"; }
  27.8161% { content: "Segurança aplicada ao pr"; }
  28.0460% { content: "Segurança aplicada ao p"; }
  28.2759% { content: "Segurança aplicada ao "; }
  28.5057% { content: "Segurança aplicada ao"; }
  28.7356% { content: "Segurança aplicada a"; }
  28.9655% { content: "Segurança aplicada "; }
  29.1954% { content: "Segurança aplicada"; }
  29.4253% { content: "Segurança aplicad"; }
  29.6552% { content: "Segurança aplica"; }
  29.8851% { content: "Segurança aplic"; }
  30.1149% { content: "Segurança apli"; }
  30.3448% { content: "Segurança apl"; }
  30.5747% { content: "Segurança ap"; }
  30.8046% { content: "Segurança a"; }
  31.0345% { content: "Segurança "; }
  31.2644% { content: "Segurança"; }
  31.4943% { content: "Seguranç"; }
  31.7241% { content: "Seguran"; }
  31.9540% { content: "Segura"; }
  32.1839% { content: "Segur"; }
  32.4138% { content: "Segu"; }
  32.6437% { content: "Seg"; }
  32.8736% { content: "Se"; }
  33.1034% { content: "S"; }
  33.3333% { content: ""; }
  33.3333% { content: ""; }
  34.0351% { content: "S"; }
  34.7368% { content: "Se"; }
  35.4386% { content: "Seg"; }
  36.1404% { content: "Segu"; }
  36.8421% { content: "Segur"; }
  37.5439% { content: "Segura"; }
  38.2456% { content: "Seguran"; }
  38.9474% { content: "Seguranç"; }
  39.6491% { content: "Segurança"; }
  40.3509% { content: "Segurança "; }
  41.0526% { content: "Segurança w"; }
  41.7544% { content: "Segurança we"; }
  42.4561% { content: "Segurança web"; }
  43.1579% { content: "Segurança web "; }
  43.8596% { content: "Segurança web e"; }
  44.5614% { content: "Segurança web e "; }
  45.2632% { content: "Segurança web e A"; }
  45.9649% { content: "Segurança web e AP"; }
  46.6667% { content: "Segurança web e API"; }
  60.0000% { content: "Segurança web e API"; }
  60.3509% { content: "Segurança web e AP"; }
  60.7018% { content: "Segurança web e A"; }
  61.0526% { content: "Segurança web e "; }
  61.4035% { content: "Segurança web e"; }
  61.7544% { content: "Segurança web "; }
  62.1053% { content: "Segurança web"; }
  62.4561% { content: "Segurança we"; }
  62.8070% { content: "Segurança w"; }
  63.1579% { content: "Segurança "; }
  63.5088% { content: "Segurança"; }
  63.8596% { content: "Seguranç"; }
  64.2105% { content: "Seguran"; }
  64.5614% { content: "Segura"; }
  64.9123% { content: "Segur"; }
  65.2632% { content: "Segu"; }
  65.6140% { content: "Seg"; }
  65.9649% { content: "Se"; }
  66.3158% { content: "S"; }
  66.6667% { content: ""; }
  66.6667% { content: ""; }
  67.1795% { content: "D"; }
  67.6923% { content: "Da"; }
  68.2051% { content: "Dad"; }
  68.7179% { content: "Dado"; }
  69.2308% { content: "Dados"; }
  69.7436% { content: "Dados "; }
  70.2564% { content: "Dados e"; }
  70.7692% { content: "Dados e "; }
  71.2821% { content: "Dados e c"; }
  71.7949% { content: "Dados e co"; }
  72.3077% { content: "Dados e con"; }
  72.8205% { content: "Dados e cont"; }
  73.3333% { content: "Dados e contr"; }
  73.8462% { content: "Dados e contro"; }
  74.3590% { content: "Dados e control"; }
  74.8718% { content: "Dados e controle"; }
  75.3846% { content: "Dados e controle "; }
  75.8974% { content: "Dados e controle d"; }
  76.4103% { content: "Dados e controle de"; }
  76.9231% { content: "Dados e controle de "; }
  77.4359% { content: "Dados e controle de a"; }
  77.9487% { content: "Dados e controle de ac"; }
  78.4615% { content: "Dados e controle de ace"; }
  78.9744% { content: "Dados e controle de aces"; }
  79.4872% { content: "Dados e controle de acess"; }
  80.0000% { content: "Dados e controle de acesso"; }
  93.3333% { content: "Dados e controle de acesso"; }
  93.5897% { content: "Dados e controle de acess"; }
  93.8462% { content: "Dados e controle de aces"; }
  94.1026% { content: "Dados e controle de ace"; }
  94.3590% { content: "Dados e controle de ac"; }
  94.6154% { content: "Dados e controle de a"; }
  94.8718% { content: "Dados e controle de "; }
  95.1282% { content: "Dados e controle de"; }
  95.3846% { content: "Dados e controle d"; }
  95.6410% { content: "Dados e controle "; }
  95.8974% { content: "Dados e controle"; }
  96.1538% { content: "Dados e control"; }
  96.4103% { content: "Dados e contro"; }
  96.6667% { content: "Dados e contr"; }
  96.9231% { content: "Dados e cont"; }
  97.1795% { content: "Dados e con"; }
  97.4359% { content: "Dados e co"; }
  97.6923% { content: "Dados e c"; }
  97.9487% { content: "Dados e "; }
  98.2051% { content: "Dados e"; }
  98.4615% { content: "Dados "; }
  98.7179% { content: "Dados"; }
  98.9744% { content: "Dado"; }
  99.2308% { content: "Dad"; }
  99.4872% { content: "Da"; }
  99.7436% { content: "D"; }
  100.0000% { content: ""; }
}
@keyframes badge-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes badge-sequence {
  0%, 100% { content: "Segurança aplicada ao produto"; }
  33.3333% { content: "Segurança web e API"; }
  66.6667% { content: "Dados e controle de acesso"; }
}
@media (prefers-reduced-motion: reduce) {
  .typewriter-motion::before { animation: badge-sequence 18s steps(1, end) infinite; }
  .typewriter-motion::after { animation: none; }
}

/* Interaction feedback: shared by pointer and keyboard. */
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 220ms ease;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms ease;
}
.button:hover { background: var(--accent); }
.button svg { transition: transform 220ms ease; }
.button:focus-visible::before { transform: scaleX(1); }
.button:focus-visible svg { transform: translateX(4px); }
.button:active { transform: translateY(1px) scale(.98); }
.actions > a:not(.button), .service-cta, .report a, .about a, .footer-whatsapp {
  text-decoration: none;
  background-image: linear-gradient(var(--accent-2), var(--accent-2));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: background-size 240ms ease, color 180ms ease;
}
.actions > a:not(.button):focus-visible, .service-cta:focus-visible,
.report a:focus-visible, .about a:focus-visible, .footer-whatsapp:focus-visible {
  background-size: 100% 1px;
  color: var(--accent-2);
}
.service-cta > span { transition: transform 220ms ease; }
.service-cta:focus-visible > span { transform: translateX(4px); }
.detail-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 280ms ease, opacity 200ms ease;
}
.detail-panel.is-open { grid-template-rows: 1fr; opacity: 1; }
.detail-inner { min-height: 0; overflow: hidden; }
.scope-toggle { transition: color 180ms ease; }
.scope-toggle > span { transition: transform 220ms ease; }
.scope-toggle[aria-expanded="true"] > span { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .button:hover::before { transform: scaleX(1); }
  .button:hover svg, .service-cta:hover > span { transform: translateX(4px); }
  .button:hover { box-shadow: 0 5px 18px #b897ed24; }
  .actions > a:not(.button):hover, .service-cta:hover, .report a:hover,
  .about a:hover, .footer-whatsapp:hover { background-size: 100% 1px; color: var(--accent-2); }
  .scope-toggle:hover { color: var(--text); }
}
@media (prefers-reduced-motion: reduce) {
  .button, .button::before, .button svg, .service-cta, .service-cta > span,
  .actions > a:not(.button), .report a, .about a, .footer-whatsapp,
  .detail-panel, .scope-toggle, .scope-toggle > span { transition: none; }
  .button:active, .button:hover svg, .button:focus-visible svg,
  .service-cta:hover > span, .service-cta:focus-visible > span { transform: none; }
}

.brief-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #684d7b;
  border-radius: 12px;
  background: #181220;
  color: var(--text);
  box-shadow: 0 28px 90px #050208b8;
}
.brief-dialog::backdrop { background: #09060dbd; backdrop-filter: blur(6px); }
.brief-shell { position: relative; padding: 34px; }
.brief-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.brief-close:hover { border-color: #765d85; color: var(--text); }
.brief-heading { padding-right: 44px; }
.brief-heading > span { color: var(--accent-2); font-size: 13px; font-weight: 650; }
.brief-heading h2 { max-width: 18ch; margin: 10px 0 12px; font-size: clamp(27px, 4vw, 36px); }
.brief-heading p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 14px; }
.brief-form { display: grid; gap: 18px; margin-top: 28px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brief-form label { display: grid; gap: 7px; color: var(--soft); font-size: 13px; font-weight: 600; }
.brief-form input, .brief-form select, .brief-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #46364f;
  border-radius: 6px;
  background: #100c16;
  color: var(--text);
  font: 400 15px/1.45 "Instrument Sans", "Segoe UI", sans-serif;
}
.brief-form textarea { min-height: 104px; resize: vertical; }
.brief-form input:hover, .brief-form select:hover, .brief-form textarea:hover { border-color: #6b5278; }
.brief-form input:focus, .brief-form select:focus, .brief-form textarea:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
.brief-form option { background: #181220; }
.brief-safety { margin: -2px 0 0; color: var(--muted); font-size: 12px; }
.brief-error { min-height: 18px; margin: -8px 0 0; color: #ffaaa1; font-size: 12px; }
.brief-form :user-invalid { border-color: #cf746c; }
.brief-submit { justify-self: start; border: 0; cursor: pointer; }
.brief-submit:disabled { cursor: wait; opacity: .72; }
.brief-submit span { font-size: 18px; font-weight: 400; }
body:has(.brief-dialog[open]) { overflow: hidden; }
@media (max-width: 600px) {
  .brief-dialog { width: 100%; max-width: none; max-height: calc(100dvh - 16px); margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .brief-shell { padding: 28px 20px 24px; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-heading { padding-right: 36px; }
  .brief-heading h2 { font-size: 27px; }
  .brief-submit { width: 100%; }
}

.mobile-cta { display: none; }
.legal-page { max-width: 780px; min-height: 70vh; padding: 150px 0 90px; }
.legal-page .page-kicker { margin: 0 0 14px; color: var(--accent-2); font-size: 14px; font-weight: 650; }
.legal-page h1 { max-width: 13ch; margin: 0 0 22px; font-size: clamp(40px, 7vw, 64px); text-align: left; }
.legal-page .page-intro { margin: 0 0 52px; color: var(--soft); font-size: 18px; }
.legal-page section { margin: 0 0 38px; padding-top: 0; }
.legal-page h2 { margin-bottom: 12px; font-size: 24px; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page ul { padding-left: 22px; }
.legal-page .page-action { margin-top: 36px; }
.footer-links .legal-links { display: grid; gap: 3px; }
@media (max-width: 700px) {
  body { padding-bottom: 76px; }
  .mobile-cta {
    display: flex;
    position: fixed;
    z-index: 20;
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    border: 1px solid #d2b2ff;
    border-radius: 8px;
    background: #b897ed;
    color: #20132f;
    box-shadow: 0 12px 32px #08040dc7;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .mobile-cta.is-visible { opacity: 1; pointer-events: auto; transform: none; }
  .legal-page { padding: 120px 0 60px; }
}
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }
