/* Variation knobs (owner rule 2026-12-01, VARIATION-RULE-20261201.md). The base (no data-knob-* attributes) is the
   exact measured reproduction; every rule below is scoped to a knob attribute on <html>, set by build.py --knobs.
   Build-time knobs (palette tokens, type pairing, radius scale, section order) are applied by build.py itself;
   motion intensity is read by js/site.js. All knobs are listed in components.json -> knobs. */

/* ---------- image mask shapes: services card photos and the footer latte ---------- */
html[data-knob-mask="soft"] .svc-card .b-b5317 { border-radius: 28px !important; }
html[data-knob-mask="arch"] .svc-card .b-b5317 { border-radius: 999px 999px 14px 14px !important; }
html[data-knob-mask="oval"] .svc-card .b-b5317 { border-radius: 50% !important; }
html[data-knob-mask="blob"] .svc-card .b-b5317 {
  border-radius: 0 !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2C74 2 97 14 98 42c1 24-10 52-34 55-20 3-46 2-58-15C-4 67 2 40 10 24 18 9 32 2 50 2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2C74 2 97 14 98 42c1 24-10 52-34 55-20 3-46 2-58-15C-4 67 2 40 10 24 18 9 32 2 50 2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
html[data-knob-mask="soft"] [data-name="Kafoska"] img { border-radius: 28% !important; }
html[data-knob-mask="arch"] [data-name="Kafoska"] img { border-radius: 999px 999px 18% 18% !important; }
html[data-knob-mask="blob"] [data-name="Kafoska"] img {
  border-radius: 0 !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2C74 2 97 14 98 42c1 24-10 52-34 55-20 3-46 2-58-15C-4 67 2 40 10 24 18 9 32 2 50 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2C74 2 97 14 98 42c1 24-10 52-34 55-20 3-46 2-58-15C-4 67 2 40 10 24 18 9 32 2 50 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- menu variants ---------- */
/* dropdown (base): the original's panel under the bar.  fullscreen: the open panel covers the viewport, links centred */
html[data-knob-menu="fullscreen"] .nav-bar:is(.v-80tj18, .v-mbri0z, .v-oje936) {
  min-height: 100vh; min-height: 100dvh; justify-content: flex-start;
}
html[data-knob-menu="fullscreen"] .nav-bar:is(.v-80tj18, .v-mbri0z, .v-oje936) > :nth-child(2) { margin-top: auto; }
html[data-knob-menu="fullscreen"] .nav-bar:is(.v-80tj18, .v-mbri0z, .v-oje936) > :last-child { margin-bottom: auto; }
/* side: the open panel is a right-hand sheet over a dimmed page */
html[data-knob-menu="side"] .nav-bar:is(.v-80tj18, .v-mbri0z, .v-oje936) {
  margin-left: auto; width: min(420px, 100%) !important; min-height: 100vh; min-height: 100dvh;
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / .45); justify-content: flex-start !important; align-content: flex-start !important;
}
html[data-knob-menu="side"] .nav-bar:is(.v-80tj18, .v-mbri0z, .v-oje936) > :nth-child(2) { margin-top: 48px; }

/* ---------- button family (every .btn of the template) ---------- */
html[data-knob-buttons="pill"] .btn { border-radius: 999px !important; }
html[data-knob-buttons="pill"] .btn::after { border-radius: 999px !important; }
html[data-knob-buttons="square"] .btn, html[data-knob-buttons="square"] .btn::after { border-radius: 0 !important; }
html[data-knob-buttons="underline"] .btn { border-radius: 0 !important; background-color: transparent !important; }
html[data-knob-buttons="underline"] .btn::after { border-width: 0 0 2px 0 !important; border-radius: 0 !important; }

/* ---------- card style (menu cards) ---------- */
html[data-knob-cards="outlined"] .coffee-stack-ab636 {
  background-color: transparent !important;
  --border-color: var(--token-5fa772d5-a7fc-4ccf-a4eb-3f07a8e9a09e, var(--token-5fa772d5-a7fc-4ccf-a4eb-3f07a8e9a09e)) !important;
  --border-top-width: 2px !important; --border-right-width: 2px !important; --border-bottom-width: 2px !important; --border-left-width: 2px !important;
}
html[data-knob-cards="outlined"] .coffee-stack-ab636 .tx { color: var(--token-e6e93477-6a04-4ab1-ae7e-8337f63255f4, var(--token-e6e93477-6a04-4ab1-ae7e-8337f63255f4)) !important; }
html[data-knob-cards="glass"] .coffee-stack-ab636 {
  background-color: color-mix(in srgb, var(--token-e6e93477-6a04-4ab1-ae7e-8337f63255f4, var(--token-e6e93477-6a04-4ab1-ae7e-8337f63255f4)) 12%, transparent) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  --border-color: color-mix(in srgb, var(--token-e6e93477-6a04-4ab1-ae7e-8337f63255f4, var(--token-e6e93477-6a04-4ab1-ae7e-8337f63255f4)) 30%, transparent) !important;
}
html[data-knob-cards="glass"] .coffee-stack-ab636 .tx { color: var(--token-e6e93477-6a04-4ab1-ae7e-8337f63255f4, var(--token-e6e93477-6a04-4ab1-ae7e-8337f63255f4)) !important; }
html[data-knob-cards="outlined"] .coffee-stack-ab636 .ghost-word, html[data-knob-cards="glass"] .coffee-stack-ab636 .ghost-word { opacity: .22; }
