/* Cutting Edge Tech
   Idea: quiet, high-contrast editorial look on deep green-black. One brass accent, Bodoni headlines. Dark throughout. */
:root {
  --bg: #0C1B17;
  --bg-2: #112820;
  --bg-3: #08130F;
  --surface: #152B23;
  --surface-2: #1B3A2F;
  --fg: #F2F6F4;
  --text: #E6EDE9;
  --muted: #B9C7C0;
  --line: #2A4339;
  --line-2: #3D5A4E;
  --accent: #D6B46D;
  --accent-hi: #E6CA8D;
  --brass-lt: #D6B46D;
  --wa: #1B8F55;
  --wa-dk: #14733F;
  --wa-lt: #5EE09A;
  --error: #FF9A8B;
  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; background: var(--accent); color: var(--bg); padding: 10px 16px; z-index: 200; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; color: var(--fg); }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.55rem; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: block; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; background: var(--accent); color: var(--bg-3); border: 1.5px solid var(--accent); border-radius: var(--radius); font: 700 0.98rem/1 var(--body); letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost, .btn--light { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover, .btn--light:hover { background: var(--fg); color: var(--bg-3); border-color: var(--fg); }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dk); border-color: var(--wa-dk); }
.btn--brass { background: var(--accent); border-color: var(--accent); color: var(--bg-3); }
.btn--sm { min-height: 42px; padding: 9px 20px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 100; background: rgba(12, 27, 23, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); transition: border-color .2s ease; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo__mk { height: 46px; width: auto; flex: none; display: block; }
.logo__t { display: flex; flex-direction: column; line-height: 1.15; }
.logo__t strong { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--fg); }
.logo__t small { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--muted); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--fg); border-bottom-color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 24px; height: 2px; background: var(--fg); transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sections */
.sec { padding-block: clamp(60px, 9vw, 112px); }
.sec--stone { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec--ink, .dark { background: var(--bg-3); border-block: 1px solid var(--line); }
.head { max-width: 42em; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { margin-bottom: 16px; }
.head p:not(.eyebrow) { color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(44px, 7vw, 96px) clamp(56px, 8vw, 112px); background: radial-gradient(900px 480px at 88% 12%, rgba(214, 180, 109, 0.10), transparent 70%); }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; min-width: 0; }
.hero__copy h1 em { font-style: italic; color: var(--accent); }
.hero__note { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.92rem; color: var(--muted); padding-top: 22px; border-top: 1px solid var(--line); width: 100%; }
.hero__note span::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 10px; transform: rotate(45deg); vertical-align: middle; }

/* Device mock in hero */
.stage { position: relative; padding: 0 0 36px 0; min-width: 0; }
.device { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.8); }
.device__bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--bg-3); }
.device__bar i { width: 8px; height: 8px; border-radius: 50%; background: #50645C; }
.device__bar span { margin-left: 10px; font-size: 0.7rem; color: #AFC0B8; letter-spacing: 0.04em; }
.device__hero { background: #1F4D3A; color: #F1EDE0; padding: 34px 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.device__hero small { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: #BFD8A8; font-weight: 700; }
.device__hero b { font-family: var(--display); font-size: 2rem; font-weight: 500; line-height: 1.05; }
.device__hero p { font-size: 0.85rem; color: #CFDCCB; max-width: 24em; }
.device__hero span { align-self: flex-start; margin-top: 8px; background: var(--accent); color: var(--bg-3); font-size: 0.78rem; font-weight: 700; padding: 8px 14px; border-radius: 3px; }
.device__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.device__tiles div { border: 1px solid var(--line-2); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.device__tiles div i { display: block; height: 6px; background: var(--line-2); border-radius: 3px; }
.device__tiles div i:first-child { width: 60%; background: #7FA391; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg-3); color: var(--fg); border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.85rem; font-weight: 600; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8); white-space: nowrap; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--wa-lt); }
.chip--a { right: -8px; bottom: 6px; }
.chip--b { left: -8px; bottom: 54px; }
.chip--b i { background: var(--accent); }

/* Credential strip */
.creds { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.creds div { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 2px solid var(--accent); }
.creds strong { font-family: var(--display); font-weight: 500; font-size: 1.25rem; line-height: 1.2; color: var(--fg); }
.creds span { font-size: 0.9rem; color: var(--muted); }

/* Service tiles (home) */
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 30px 26px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); text-decoration: none; min-width: 0; transition: transform .2s ease, border-color .2s ease; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); border-top-color: var(--accent); }
.tile h3 { font-size: 1.4rem; }
.tile p { color: var(--muted); font-size: 0.97rem; }
.tile .more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 0.9rem; color: var(--accent); }

/* Split blocks */
.split { display: grid; gap: 48px; align-items: start; }
.split > * { min-width: 0; }
.ticks { display: flex; flex-direction: column; }
.ticks li { padding: 20px 0 20px 34px; border-top: 1px solid var(--line); position: relative; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 30px; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.ticks strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; margin-bottom: 4px; color: var(--fg); }
.ticks span { color: var(--muted); font-size: 0.97rem; }

/* Sample cards */
.samples { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sample { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sample__shot { border: 1px solid var(--line-2); background: var(--surface); border-radius: 6px; overflow: hidden; }
.sample__bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--bg-3); align-items: center; }
.sample__bar i { width: 7px; height: 7px; border-radius: 50%; background: #50645C; }
.sample__bar span { margin-left: 8px; font-size: 0.68rem; color: #AFC0B8; }
.sample__hero { background: var(--c1); color: var(--c2); padding: 30px 22px 26px; display: flex; flex-direction: column; gap: 8px; min-height: 190px; }
.sample__hero small { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; opacity: 0.8; }
.sample__hero b { font-family: var(--display); font-weight: 500; font-size: 1.7rem; line-height: 1.05; }
.sample__hero p { font-size: 0.82rem; opacity: 0.85; max-width: 22em; }
.sample__hero span { align-self: flex-start; margin-top: auto; background: var(--c2); color: var(--c1); font-size: 0.75rem; font-weight: 700; padding: 7px 13px; border-radius: 3px; }
.sample__rows { padding: 14px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text); }
.sample__rows div { display: flex; justify-content: space-between; gap: 12px; }
.sample__rows em { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 600; }
.sample h3 { font-size: 1.45rem; }
.sample p.desc { color: var(--muted); font-size: 0.96rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); }
.concept { display: inline-block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--accent); }

/* Process */
.steps { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-2); counter-increment: step; min-width: 0; }
.steps li::before { content: "0" counter(step); font-family: var(--display); font-size: 1.5rem; color: var(--accent); }
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }

/* CTA */
.cta { background: var(--bg-3); border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px); }
.cta__in { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 46em; }
.cta p { color: var(--muted); font-size: 1.1rem; }

/* Pricing */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 34px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; position: relative; }
.plan--lead { background: var(--surface-2); border-color: var(--accent); }
.plan__tag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: var(--bg-3); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 12px; border-radius: 2px; }
.plan h3 { font-size: 1.6rem; }
.plan__price { font-family: var(--display); font-size: 2.8rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg); }
.plan__price small { font-family: var(--body); font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.plan__for { color: var(--muted); font-size: 0.97rem; }
.plan__list { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 0.97rem; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 13px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan__time { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.addons { width: 100%; border-collapse: collapse; }
.addons th, .addons td { text-align: left; padding: 16px 0; border-top: 1px solid var(--line-2); vertical-align: top; }
.addons tr:last-child th, .addons tr:last-child td { border-bottom: 1px solid var(--line-2); }
.addons th { font-weight: 600; padding-right: 20px; color: var(--fg); }
.addons td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.addons .sub { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.scroll-x { overflow-x: auto; }

/* Service blocks */
.svc { display: grid; gap: 28px 64px; padding-block: 56px; border-top: 1px solid var(--line); align-items: start; }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc > * { min-width: 0; }
.svc__n { font-family: var(--display); color: var(--accent); font-size: 1.3rem; display: block; margin-bottom: 8px; }
.svc h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.svc p { color: var(--muted); }
.svc__side { display: flex; flex-direction: column; gap: 18px; }
.svc__side h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.svc__side ul { display: flex; flex-direction: column; gap: 8px; font-size: 0.97rem; }
.svc__side li { position: relative; padding-left: 22px; }
.svc__side li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1.5px; background: var(--accent); }

/* About */
.portrait { aspect-ratio: 4 / 5; max-width: 420px; width: 100%; background: var(--surface-2); border-radius: var(--radius); position: relative; overflow: hidden; border: 1px solid var(--line-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.portrait::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(214, 180, 109, 0.55); pointer-events: none; }
.facts { display: flex; flex-direction: column; margin-top: 28px; }
.facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { font-weight: 600; text-align: right; color: var(--fg); }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 38em; }
.prose p { color: var(--muted); }
.prose p:first-of-type { color: var(--fg); font-size: 1.2rem; }

/* FAQ */
.faq { max-width: 52em; }
details { border-top: 1px solid var(--line-2); }
details:last-child { border-bottom: 1px solid var(--line-2); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; min-height: 60px; font-weight: 600; font-size: 1.05rem; color: var(--fg); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--accent); transition: transform .2s ease; flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* Contact */
.ways { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: clamp(48px, 7vw, 80px); }
.way { display: flex; flex-direction: column; gap: 6px; padding: 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.way:hover { border-color: var(--accent); transform: translateY(-2px); }
.way svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 10px; }
.way--wa svg { color: var(--wa-lt); }
.way h3 { font-size: 1.4rem; }
.way .val { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; color: var(--fg); }
.way .hint { color: var(--muted); font-size: 0.92rem; }
.contact-grid { display: grid; gap: 48px; align-items: start; }
.contact-grid > * { min-width: 0; }
.form { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--fg); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--bg-3); color: var(--fg); border: 1.5px solid var(--line-2); border-radius: var(--radius); font: inherit; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7F918A; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.error { min-height: 1.1em; font-size: 0.85rem; color: var(--error); }
.form__btns { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.form__status { min-height: 1.4em; font-size: 0.95rem; color: var(--muted); }
.info { display: flex; flex-direction: column; gap: 22px; }
.info dl { display: flex; flex-direction: column; }
.info dl div { padding: 16px 0; border-top: 1px solid var(--line-2); }
.info dl div:last-child { border-bottom: 1px solid var(--line-2); }
.info dt { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.info dd { overflow-wrap: anywhere; color: var(--text); }

/* Page title block */
.ptitle { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.ptitle h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); max-width: 15em; margin-bottom: 20px; }

/* Footer */
.ftr { background: var(--bg-3); border-top: 1px solid var(--line); color: var(--muted); padding-block: 64px calc(40px + env(safe-area-inset-bottom, 0px)); }
.ftr__grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ftr h4 { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.ftr ul { display: flex; flex-direction: column; gap: 8px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--fg); text-decoration: underline; }
.ftr__logo { display: block; width: 220px; max-width: 100%; height: auto; margin-bottom: 16px; }
.ftr__brand { font-family: var(--display); font-size: 1.5rem; color: var(--fg); margin-bottom: 8px; display: block; }
.ftr__base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Mobile contact dock */
.dock { display: none; }

/* Reveal */
.js .rv { opacity: 0; }
.js .rv.in { opacity: 1; animation: rise .65s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

/* Page transitions and back to top */
body { animation: pageIn .5s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body.leaving { opacity: 0; transition: opacity .22s ease; }
.totop { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; z-index: 80; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s ease, transform .3s ease, background-color .2s ease, color .2s ease; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.9); }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--accent); color: var(--bg-3); }
.totop svg { width: 22px; height: 22px; }

/* Card motion */
.tile, .plan, .sample__shot, .way { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease, background-color .3s ease; }
.tile:hover, .tile:focus-visible { transform: translateY(-6px); background: var(--surface-2); box-shadow: 0 24px 44px -26px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(214, 180, 109, 0.28); }
.tile .more::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform .3s ease; }
.tile:hover .more::after { transform: translateX(6px); }
.plan:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 26px 46px -28px rgba(0, 0, 0, 0.95); }
.sample:hover .sample__shot { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 26px 46px -26px rgba(0, 0, 0, 0.95); }
.sample__hero span { transition: transform .3s ease; }
.sample:hover .sample__hero span { transform: translateX(5px); }
.way:hover { box-shadow: 0 22px 40px -26px rgba(0, 0, 0, 0.95); }
.way svg { transition: transform .3s ease; }
.way:hover svg { transform: scale(1.12) rotate(-5deg); }
.steps li { transition: border-color .3s ease; }
.steps li:hover { border-top-color: var(--accent); }
.creds div { transition: transform .3s ease; }
.creds div:hover { transform: translateX(5px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.chip--a { animation: float 5s ease-in-out infinite; }
.chip--b { animation: float 6s ease-in-out -2s infinite; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
  .split--flip { grid-template-columns: 1.1fr 0.9fr; }
  .svc { grid-template-columns: 1.1fr 0.9fr; }
  .contact-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
}

@media (max-width: 820px) {
  .burger { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px max(20px, env(safe-area-inset-right, 0px)) 22px max(20px, env(safe-area-inset-left, 0px)); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 18px; }
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--bg-3); padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line-2); }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; color: var(--fg); text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; }
  .dock a svg { width: 22px; height: 22px; }
  .dock a.wa { color: var(--wa-lt); }
  body { padding-bottom: 58px; }
  .totop { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .chip--b { left: 0; }
  .chip--a { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .rv { opacity: 1; }
  .chip--a, .chip--b { animation: none; }
  body { animation: none; }
  .tile:hover, .plan:hover, .sample:hover .sample__shot, .creds div:hover { transform: none; }
}


/* Legal pages and small notes */
.legal { max-width: 46em; display: flex; flex-direction: column; gap: 14px; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 22px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--fg); font-weight: 600; }
.legal ul { list-style: disc; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal__date { font-size: 0.9rem; color: var(--muted); }
.form__note { font-size: 0.85rem; color: var(--muted); }
.form__note a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.ftr__base a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
