/* MT CCTV IT Solution: trade-paperwork feel. Job-card forms, camera-viewfinder hero, brand blue and red on cool paper. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0f1d52;
  --muted: #54628f;
  --line: #dce5fb;
  --blue: #1530d6;
  --blue-soft: #eaf0ff;
  --red: #d11f2e;
  --band: #eef3ff;
  --band-ink: #0f1d52;
  --band-muted: #4d5d8e;
  --wa: #1fa855;
  --wa-ink: #ffffff;
  --focus: #1530d6;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.ic { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.85em 1.4em; border-radius: 10px; border: 2px solid transparent;
  font: 600 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header: name on top, page links directly underneath (no menu button) */
.site-head { position: relative; z-index: 50; background: var(--bg); border-top: 4px solid var(--blue); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .site-head { position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
}
.head-in { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; }
.head-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 46px; height: 46px; background: #fff; border-radius: 10px; padding: 3px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.78rem; color: var(--muted); }
.head-quote { padding: 0.6em 1.05em; font-size: 0.95rem; white-space: nowrap; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 2px; margin-inline: -10px; }
.nav a.link { text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 10px 11px; border-bottom: 3px solid transparent; }
.nav a.link:hover { color: var(--blue); }
.nav a.link[aria-current="page"] { color: var(--blue); border-bottom-color: var(--red); }
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1rem; }
  .nav { margin-inline: -8px; }
  .nav a.link { padding: 10px 8px 11px; font-size: 0.95rem; }
  .head-quote { padding: 0.55em 0.85em; font-size: 0.9rem; }
}

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 84px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.facts b { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; display: block; line-height: 1.2; }

.viewfinder { position: relative; border-radius: 6px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; }
.vf-corner { position: absolute; width: 34px; height: 34px; border: 3px solid #fff; opacity: .9; }
.vf-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.vf-tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.vf-bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.vf-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.vf-tag { position: absolute; font: 600 0.8rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); letter-spacing: .06em; }
.vf-rec { top: 24px; left: 56px; display: flex; align-items: center; gap: 8px; }
.vf-rec i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b3b; animation: blink 1.4s steps(2, start) infinite; }
.vf-cam { top: 24px; right: 56px; }
.vf-time { bottom: 24px; left: 56px; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .vf-rec i { animation: none; } html { scroll-behavior: auto; } .btn { transition: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 62ch; }
.band { background: var(--band); color: var(--band-ink); }
.band .lead, .band .muted { color: var(--band-muted); }
.band a:not(.btn) { color: var(--blue); }
.band { border-block: 1px solid var(--line); }

/* Services grid, ruled like a spec sheet */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); min-width: 0; }
.svc:hover { background: var(--blue-soft); }
.svc .tile { width: 48px; height: 48px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.svc:hover .tile { background: var(--blue); color: #fff; }
.svc p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* Service detail rows */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: 0; }
.svc-row.flip .svc-photo { order: 2; }
.svc-photo { border-radius: 8px; overflow: hidden; background: var(--surface); }
.svc-photo img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.svc-body .tile { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--red); margin-top: 2px; width: 1.1em; height: 1.1em; stroke-width: 2.4; }
@media (max-width: 800px) { .svc-row { grid-template-columns: 1fr; } .svc-row.flip .svc-photo { order: 0; } }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--red); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: "Step " counter(s); font-weight: 700; color: var(--band-muted); font-size: .9rem; }
.steps h3 { color: var(--band-ink); }
.steps p { color: var(--band-muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Photo strips and gallery */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip a { display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: 8px; background: var(--surface); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.strip a:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } }
.gallery { columns: 3 260px; column-gap: 14px; }
.shot { break-inside: avoid; margin: 0 0 14px; border-radius: 8px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.shot button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.shot button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px 12px; font-size: .95rem; color: var(--muted); }
.shot figcaption b { color: var(--ink); display: block; font-family: var(--font-display); font-size: 1.02rem; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; color: #fff; }
dialog.lightbox::backdrop { background: rgba(4, 8, 24, .88); }
.lightbox img { max-width: 94vw; max-height: 82vh; margin-inline: auto; border-radius: 6px; }
.lightbox p { text-align: center; padding: 12px; }
.lightbox .close { position: absolute; top: 6px; right: 6px; background: #fff; color: #0f1d52; border: 0; border-radius: 8px; padding: 8px 14px; font: 700 .95rem var(--font-body); cursor: pointer; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-grid > * { min-width: 0; }
.about-photo { border-radius: 8px; overflow: hidden; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.founder-card { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 20px 22px; display: grid; gap: 4px; }
.founder-card .name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.founder-card .role { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values > div { display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--blue); padding-top: 14px; }
.values p { color: var(--muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .values { grid-template-columns: 1fr; } }

/* Brand list */
.brands { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--muted); }

/* Job card form */
.quote-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.quote-grid > * { min-width: 0; }
.jobcard { background: var(--surface); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.jobcard-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: center; background: var(--ink); color: var(--bg); padding: 14px 20px; }
.jobcard-head b { font-family: var(--font-display); font-size: 1.15rem; }
.jobcard-head span { font: 600 .85rem ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.jobcard form { padding: 22px 20px 24px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.choice label { position: relative; cursor: pointer; font-weight: 600; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); }
.choice small { font-weight: 400; color: var(--muted); }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.err { color: var(--red); font-size: .9rem; min-height: 1.2em; }
.form-note { font-size: .9rem; color: var(--muted); }

.done { display: none; padding: 26px 20px 28px; gap: 16px; }
.done.show { display: grid; }
.ordno { font: 800 clamp(1.6rem, 6vw, 2.4rem)/1.1 ui-monospace, Menlo, monospace; letter-spacing: .04em; color: var(--blue); word-break: break-all; }
.stamp { display: inline-block; align-self: start; border: 3px solid var(--red); color: var(--red); border-radius: 6px; padding: 4px 12px; font: 800 .95rem var(--font-body); letter-spacing: .08em; transform: rotate(-3deg); }

.aside-box { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 22px; display: grid; gap: 14px; }
.aside-box + .aside-box { margin-top: 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ic { color: var(--blue); margin-top: 3px; }
.contact-list a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contact-list small { display: block; color: var(--muted); font-weight: 400; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.cta h2 { max-width: 20ch; }

/* Page title */
.page-title { padding-block: clamp(36px, 6vw, 72px) 0; display: grid; gap: 14px; }

/* Footer */
.foot { background: var(--band); color: var(--band-ink); padding-block: 48px 110px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
.foot h3 { font-size: 1.05rem; margin-bottom: 10px; }
.foot a { color: var(--band-ink); text-decoration-color: var(--band-muted); overflow-wrap: anywhere; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .muted { color: var(--band-muted); }
.foot .small { font-size: .9rem; margin-top: 28px; color: var(--band-muted); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Floating contact buttons on every page */
.float { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; z-index: 60; align-items: flex-end; }
.float a { display: inline-flex; align-items: center; gap: 10px; padding: 14px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.float a .ic { width: 1.7rem; height: 1.7rem; }
.float .f-wa { background: #1fa855; }
.float .f-mail { background: #1530d6; }
.float a span { display: none; padding-right: 6px; }
@media (min-width: 700px) { .float a span { display: inline; } }

/* Multi-service tick list */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 6px; }
.chk { position: relative; cursor: pointer; }
.chk input { position: absolute; opacity: 0; inset: 0; }
.chk span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); font-weight: 500; }
.chk span::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 4px; flex: none; }
.chk input:checked + span { border-color: var(--blue); background: var(--blue-soft); font-weight: 600; }
.chk input:checked + span::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--blue); }
.chk input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 480px) { .checks { grid-template-columns: 1fr; } }

/* Gallery filter and video */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter button { font: 600 .95rem var(--font-body); padding: 9px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filter button:hover { border-color: var(--blue); }
.filter button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.shot video { width: 100%; height: auto; display: block; background: #000; aspect-ratio: 480 / 860; object-fit: cover; }
.shot[hidden] { display: none; }

/* Videos in the service rows, strips and gallery */
.vstrip .vtile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: #000; }
.vstrip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vtag { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; color: #fff; font-weight: 600; font-size: 0.92rem; line-height: 1.25; background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); }
.svc-video { background: var(--blue-soft); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; }
.svc-video video { width: auto; max-width: 100%; height: min(70vh, 520px); aspect-ratio: 480 / 860; background: #000; border-radius: 6px; display: block; }
.vthumbs { display: flex; gap: 10px; }
.vthumbs button { width: 54px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: #000; opacity: 0.65; }
.vthumbs button[aria-pressed="true"] { border-color: var(--blue); opacity: 1; }
.vthumbs button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.vthumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Welcome page: white with blue */
body.is-welcome { background: #ffffff; color: var(--ink); }
body.is-welcome .site-head, body.is-welcome .foot { display: none; }
.welcome {
  --w-red: #d11f2e;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; place-items: center;
  padding: 64px max(20px, env(safe-area-inset-right, 0px)) 96px max(20px, env(safe-area-inset-left, 0px));
  background: radial-gradient(120% 90% at 50% 36%, #ffffff 0%, #f1f5ff 52%, #d9e5ff 100%);
  color: var(--ink);
}
.w-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.w-mark { position: absolute; left: 50%; top: 50%; width: min(118vw, 1080px); max-width: none; opacity: 0.09; transform: translate(-50%, -50%); animation: wm 18s ease-in-out infinite alternate; }
@keyframes wm { from { transform: translate(-50%, -50%) scale(1) rotate(-1.5deg); } to { transform: translate(-50%, -52%) scale(1.07) rotate(1.5deg); } }
.w-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(21, 48, 214, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 48, 214, 0.06) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 25%, transparent 100%); mask-image: radial-gradient(70% 60% at 50% 45%, #000 25%, transparent 100%); }
.w-scan { position: absolute; left: 0; right: 0; top: -160px; height: 160px; background: linear-gradient(to bottom, transparent, rgba(21, 48, 214, 0.10), transparent); animation: scan 8s linear 2.6s infinite; }
@keyframes scan { to { transform: translateY(calc(100svh + 320px)); } }
.welcome .vf-corner { width: 40px; height: 40px; opacity: 0.55; border-color: var(--blue); }
.welcome .vf-tl { top: 18px; left: 18px; } .welcome .vf-tr { top: 18px; right: 18px; }
.welcome .vf-bl { bottom: 18px; left: 18px; } .welcome .vf-br { bottom: 18px; right: 18px; }
.welcome .vf-tag { opacity: 0.85; color: var(--blue); text-shadow: none; }
.welcome .vf-rec { top: 28px; left: 68px; } .welcome .vf-cam { top: 28px; right: 68px; } .welcome .vf-time { bottom: 28px; left: 68px; }

.w-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; width: 100%; max-width: 920px; }
.w-badge { width: clamp(84px, 14vw, 120px); height: auto; background: #fff; border-radius: 22px; padding: 8px; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(21, 48, 214, 0.22); animation: pop 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.6) translateY(12px); } to { opacity: 1; transform: none; } }
.w-title { display: flex; flex-direction: column; align-items: center; gap: 0.06em; margin: 0; perspective: 900px; font-family: var(--font-display); }
.w-line { display: flex; justify-content: center; flex-wrap: wrap; }
.w-line span { display: inline-block; animation: rise 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(0.4s + var(--i, 0) * 55ms); }
.w-line .sp { display: inline-block; width: 0.28em; animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(0.7em) rotateX(-80deg) scale(0.9); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
.w-small { font-size: clamp(1.15rem, 3.4vw, 1.9rem); font-weight: 500; letter-spacing: 0.05em; color: #4d5d8e; }
.w-big { font-size: clamp(3.6rem, 16vw, 9.5rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; color: #1530d6; }
.w-mid { font-size: clamp(1.9rem, 7.4vw, 4.2rem); font-weight: 700; letter-spacing: -0.01em; color: #0f1d52; }
.w-rule { display: block; height: 3px; width: min(320px, 62vw); background: linear-gradient(90deg, transparent, var(--w-red), transparent); transform-origin: center; animation: rule 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 2.3s both; }
@keyframes rule { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.w-sub { color: var(--muted); font-size: 1.1rem; max-width: 36ch; animation: fadeup 0.9s ease 2.6s both; }
.w-actions { justify-content: center; margin-top: 8px; animation: fadeup 0.9s ease 3s both; }
.w-enter { padding: 1em 1.8em; font-size: 1.1rem; box-shadow: 0 10px 26px rgba(21, 48, 214, 0.3); }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.welcome .vf-corner, .welcome .vf-tag { animation: fadein 1.2s ease 0.3s both; }
@keyframes fadein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .w-line span, .w-badge, .w-rule, .w-sub, .w-actions, .w-mark, .w-scan, .welcome .vf-corner, .welcome .vf-tag { animation: none; }
  .w-scan { display: none; }
}
@media (max-width: 520px) { .welcome .vf-tag { display: none; } .welcome .vf-corner { width: 28px; height: 28px; } }
