/* Topa Tattoo demo. Tokens first, then base, components, pages. */
@font-face { font-family: "Bellefair"; src: url("../fonts/bellefair-400-hebrew.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Bellefair"; src: url("../fonts/bellefair-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Assistant"; src: url("../fonts/assistant-400-hebrew.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; src: url("../fonts/assistant-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Assistant"; src: url("../fonts/assistant-600-hebrew.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; src: url("../fonts/assistant-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --ink: #120D11;      /* page ground: plum-black studio wall */
  --ink-2: #1B1419;    /* surfaces */
  --ink-3: #261C23;
  --bone: #F3ECEE;     /* text + the line */
  --mauve: #BCADB5;    /* secondary text, 8.9:1 on ink */
  --rose: #F2A9C6;     /* the one accent: the pink studio light, 10:1 on ink */
  --rose-deep: #E58BB0;
  --paper: #F4EFEC;
  --line: rgba(243, 236, 238, 0.16);
  --display: "Bellefair", "Times New Roman", serif;
  --text: "Assistant", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 3rem);
  --max: 72rem;
  --section: clamp(4rem, 2.6rem + 6vw, 8rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.65;
  -webkit-tap-highlight-color: transparent; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rose); text-underline-offset: 0.2em; }
::selection { background: var(--rose); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem); }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.eyebrow { font-family: var(--text); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--rose); margin-bottom: 0.9rem; display: block; }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); color: var(--mauve); max-width: 38ch; }
.muted { color: var(--mauve); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Skip link + demo bar */
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--rose); color: var(--ink); padding: 0.75rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }
.demo-bar { background: var(--rose); color: var(--ink); text-align: center; font-size: 0.875rem; font-weight: 600; padding: 0.5rem var(--gutter); line-height: 1.4; }
.demo-bar a { color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 13, 17, 0.92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(10px)) { .site-header { background: rgba(18, 13, 17, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--bone); text-decoration: none; min-height: 44px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--display); font-size: 1.55rem; letter-spacing: 0.08em; line-height: 1; }
.brand-word small { display: block; font-family: var(--text); font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--mauve); margin-top: 0.2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem; color: var(--bone); text-decoration: none; border-radius: 999px; font-size: 0.98rem; }
.nav a[aria-current="page"] { color: var(--rose); }
.menu-btn { display: none; }
@media (hover: hover) { .nav a:hover { background: var(--ink-3); } }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; min-width: 44px; padding: 0 0.9rem; background: transparent; color: var(--bone); border: 1px solid var(--line); border-radius: 999px; font: 600 0.95rem var(--text); cursor: pointer; touch-action: manipulation; }
  .nav { position: absolute; inset-inline: 0; top: 100%; background: var(--ink); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; }
  .nav a { width: 100%; font-size: 1.1rem; border-radius: 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 52px; padding: 0 1.5rem; border-radius: 999px; font: 600 1rem var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; touch-action: manipulation; transition: transform 0.12s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s; user-select: none; -webkit-user-select: none; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-rose { background: var(--rose); color: var(--ink); }
.btn-line { background: transparent; color: var(--bone); border-color: rgba(243, 236, 238, 0.4); }
@media (hover: hover) {
  .btn-rose:hover { background: var(--bone); }
  .btn-line:hover { border-color: var(--rose); color: var(--rose); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero { position: relative; padding: clamp(2rem, 1rem + 4vw, 4.5rem) 0 clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -30% auto auto; width: 80vmax; height: 80vmax; background: radial-gradient(closest-side, rgba(242, 169, 198, 0.16), rgba(242, 169, 198, 0) 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 40%; grid-template-areas: "title art" "body body"; column-gap: 0.5rem; row-gap: 1.25rem; align-items: center; }
.hero-title { grid-area: title; }
.hero-art { grid-area: art; justify-self: center; width: 100%; max-width: 480px; }
.hero-body { grid-area: body; }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; grid-template-areas: "title art" "body art"; column-gap: 3rem; row-gap: 0; align-items: end; }
  .hero-body { align-self: start; padding-top: 1.25rem; }
}
.hero h1 { max-width: 12ch; margin-bottom: 0; }
@media (max-width: 879px) { .hero h1 { font-size: clamp(2.4rem, 1.2rem + 6vw, 3.6rem); } }
.hero .lead { margin-bottom: 1.75rem; }
.peony { width: 100%; height: auto; overflow: visible; }
.peony .lines path { fill: none; stroke: var(--bone); stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.peony .ink { fill: var(--bone); fill-rule: evenodd; stroke: none; }
.js.can-move .peony.draw .ink { opacity: 0; animation: ink 0.9s ease-out 2.6s forwards; }
@keyframes ink { to { opacity: 1; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1.75rem; color: var(--mauve); font-size: 0.95rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta svg { width: 16px; height: 16px; color: var(--rose); }

/* Line drawing: runs once. Without JS or with reduced motion the flower is simply there. */
.js.can-move .peony.draw .lines path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--d, 1.2s) var(--ease) forwards; animation-delay: var(--t, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.motion-off .peony.draw path, .motion-off .peony path { animation: none !important; stroke-dashoffset: 0 !important; }
@media (prefers-reduced-motion: reduce) { .js .peony.draw .lines path { animation: none; stroke-dashoffset: 0; } }

/* Reveal on scroll (only when JS is on and motion allowed) */
.js.can-move [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js.can-move [data-reveal].in { opacity: 1; transform: none; }

/* Sections */
section { padding: var(--section) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Services */
.services { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .services { grid-template-columns: repeat(3, 1fr); border-top: 0; } }
.service { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .service { padding: 0 2rem; border-bottom: 0; border-inline-start: 1px solid var(--line); } .service:first-child { border-inline-start: 0; padding-inline-start: 0; } }
.service svg { width: 40px; height: 40px; color: var(--rose); margin-bottom: 1rem; }
.service p { color: var(--mauve); margin: 0; }

/* Portfolio */
.gallery { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 880px) { .gallery { grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; } }
.work { margin: 0; position: relative; overflow: hidden; border-radius: 6px; background: var(--ink-2); }
.work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.work.wide { grid-column: 1 / -1; }
@media (min-width: 880px) { .work.wide { grid-column: auto; } }
.work figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 0.9rem 0.8rem; background: linear-gradient(to top, rgba(18, 13, 17, 0.9), rgba(18, 13, 17, 0)); font-size: 0.875rem; color: var(--bone); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; background: rgba(18, 13, 17, 0.82); color: var(--bone); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem; position: absolute; top: 0.6rem; inset-inline-start: 0.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.9rem; color: var(--mauve); }

/* Before / after */
.ba { display: grid; gap: 2rem; align-items: center; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
@media (min-width: 880px) { .ba { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; } }
.ba-frame { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4; max-width: 520px; width: 100%; justify-self: center; background: var(--ink-2); touch-action: pan-y; }
.ba-frame img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 1px; background: var(--bone); pointer-events: none; }
.ba-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid var(--bone); border-radius: 50%; background: rgba(18, 13, 17, 0.55); }
.ba-label { position: absolute; bottom: 0.8rem; font-size: 0.8125rem; font-weight: 600; background: rgba(18, 13, 17, 0.82); padding: 0.2rem 0.65rem; border-radius: 999px; }
.ba-label.l { left: 0.8rem; } .ba-label.r { right: 0.8rem; }
.ba-range { width: 100%; max-width: 520px; justify-self: center; margin-top: 1rem; accent-color: var(--rose); min-height: 44px; }
.note { font-size: 0.875rem; color: var(--mauve); margin-top: 1rem; }
.note::before { content: "\2726\00a0\00a0"; color: var(--rose); }

/* Split feature (academy teaser, studio) */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split img { border-radius: 6px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.quote { font-family: var(--display); font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem); line-height: 1.25; margin: 0 0 0.75rem; max-width: 24ch; }
.quote-by { color: var(--mauve); font-size: 0.95rem; }

/* Lists */
.ticks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.85rem; }
.ticks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; }
.ticks li::before { content: ""; width: 1.25rem; height: 1px; background: var(--rose); margin-top: 0.85em; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 1.6rem; color: var(--rose); line-height: 1.2; }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--mauve); margin: 0; }

/* WhatsApp actions (demos use WhatsApp deep links instead of forms) */
.wa-card { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1rem, 0.8rem + 1.5vw, 1.75rem); }
.wa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.wa-link { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.9rem; align-items: center; min-height: 72px; padding: 0.9rem 1rem; border: 1px solid rgba(243, 236, 238, 0.28); border-radius: 10px; color: var(--bone); text-decoration: none; touch-action: manipulation; transition: transform 0.12s var(--ease), border-color 0.25s, background-color 0.25s; }
.wa-link:active { transform: scale(0.98); }
.wa-link svg { width: 2.75rem; height: 2.75rem; padding: 0.6rem; border-radius: 50%; background: var(--rose); color: var(--ink); }
.wa-link strong { display: block; font-size: 1.1rem; font-weight: 600; }
.wa-sub { display: block; font-size: 0.9rem; color: var(--mauve); line-height: 1.45; }
@media (hover: hover) { .wa-link:hover { border-color: var(--rose); background: var(--ink-2); } }
.wa-note { margin: 1rem 0 0; font-size: 0.9rem; color: var(--mauve); }

/* Visit */
.visit { display: grid; gap: 2rem; }
@media (min-width: 880px) { .visit { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.facts { margin: 0; display: grid; gap: 1.1rem; }
.facts div { display: grid; gap: 0.15rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.875rem; color: var(--mauve); }
.facts dd { margin: 0; font-size: 1.1rem; }
.placeholder { color: var(--mauve); font-style: normal; border: 1px dashed rgba(243, 236, 238, 0.32); border-radius: 6px; padding: 0.1rem 0.5rem; font-size: 0.95rem; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 60vmax; height: 60vmax; background: radial-gradient(closest-side, rgba(242, 169, 198, 0.13), rgba(242, 169, 198, 0) 70%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.sprig { width: 120px; height: auto; margin-bottom: 1.25rem; }
.sprig path { fill: none; stroke: var(--rose); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Aftercare card on paper */
.care { background: var(--paper); color: var(--ink); border-radius: 10px; padding: clamp(1.25rem, 1rem + 2.5vw, 3rem); }
.care h2, .care h3 { color: var(--ink); }
.care .steps > li { border-top-color: rgba(18, 13, 17, 0.14); }
.care .steps > li::before { color: #8A2E57; }
.care .steps p { color: #4A3F45; }
.care .eyebrow { color: #8A2E57; }
.care .note { color: #4A3F45; }
.care .note::before { color: #8A2E57; }
.care a { color: #8A2E57; }
.warn { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1.5rem; margin-top: 1.5rem; }

/* Legal pages */
.legal { max-width: 46rem; }
.legal h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-top: 2.2rem; }
.legal ul { padding-inline-start: 1.2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 6.5rem; font-size: 0.95rem; color: var(--mauve); }
@media (min-width: 761px) { .site-footer { padding-bottom: 2.5rem; } }
.foot-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.site-footer a { color: var(--bone); display: inline-flex; align-items: center; min-height: 44px; }
.foot-demo { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.875rem; }
.motion-toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1rem; background: transparent; color: var(--bone); border: 1px solid var(--line); border-radius: 999px; font: 600 0.9rem var(--text); cursor: pointer; touch-action: manipulation; }
.motion-toggle[aria-pressed="true"] { border-color: var(--rose); color: var(--rose); }

/* Sticky phone bar */
.dock { position: fixed; inset: auto 0 0 0; z-index: 60; display: flex; gap: 0.5rem; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(18, 13, 17, 0.94); border-top: 1px solid var(--line); }
.dock .btn { flex: 1; min-height: 48px; padding: 0 0.8rem; }
@media (min-width: 761px) { .dock { display: none; } }

/* Utilities (no inline styles: CSP style-src 'self') */
[data-u="top"] { align-items: start; }
[data-u="alt"] { background: var(--ink-2); }
[data-u="h-sm"] { font-size: 1.6rem; }
[data-u="h-ba"] { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
[data-u="mb"] { margin-bottom: 1.5rem; }
[data-u="mt"] { margin-top: 1.25rem; }
[data-u="m0"] { margin: 0; }
[data-u="w30"] { max-width: 30ch; }
[data-u="w42"] { max-width: 42rem; }
section[data-u="pt"] { padding-top: 1.5rem; }

/* Desktop: the flower is large, so it stays as hairline contours (no fill) to keep the fine-line feel. */
@media (min-width: 880px) {
  .hero-art { max-width: 400px; }
  .peony .ink { display: none; }
  .peony .lines path { stroke-width: 1; }
}
.demo-bar p { margin: 0; }
