/* NivasFolio website — Kinetic direction. Brand tokens from the NivasFolio design system. */
:root {
  --surface: #FAF6EE;
  --surface-raised: #FFFFFF;
  --line: #E5DFD2;
  --ink: #161A2E;
  --ink-muted: #5B6075;
  --indigo: #1E2A5E;
  --indigo-soft: #E3E6F2;
  --on-indigo: #FFFFFF;
  --on-indigo-muted: #C9CDDE;
  --kesar: #E39B2D;
  --kesar-soft: #F8E7C8;
  --kesar-deep: #9A5B0B;
  --sage: #2F6B52;
  --terracotta: #B4472E;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo); }
a:hover { color: var(--kesar-deep); }
:focus-visible { outline: 3px solid var(--kesar); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--indigo); color: var(--on-indigo); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }
.eyebrow { margin: 0 0 18px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--kesar-deep); font-weight: 600; }
.muted { color: var(--ink-muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 238, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--indigo); text-decoration: none; display: inline-flex; align-items: flex-end; gap: 3px; line-height: 1; }
.wordmark i { width: 7px; height: 7px; background: var(--kesar); display: inline-block; margin-bottom: 3px; }
.wordmark:hover { color: var(--indigo); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--kesar); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--indigo); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; border: 0; cursor: pointer; font: 600 16px/1 var(--sans); padding: 18px 28px; border-radius: 999px; transition: transform .25s var(--ease), background .25s; min-height: 48px; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--on-indigo); }
.btn-dark:hover { color: var(--on-indigo); background: var(--indigo); }
.btn-indigo { background: var(--indigo); color: var(--on-indigo); }
.btn-indigo:hover { color: var(--on-indigo); background: var(--ink); }
.btn-kesar { background: var(--kesar); color: var(--ink); }
.btn-kesar:hover { color: var(--ink); background: #EDAA44; }
.btn-ghost { background: transparent; color: var(--indigo); border: 1.5px solid var(--indigo); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.nav .btn { padding: 13px 20px; font-size: 15px; min-height: 44px; }
.nav .btn::after { display: none; }
.nav .btn, .nav .btn:hover { color: var(--on-indigo); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 16px; font: 600 15px var(--sans); color: var(--ink); cursor: pointer; min-height: 44px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 64px 0 auto 0; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .4s var(--ease); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav.open { transform: none; }
  .nav a { font-size: 22px; font-family: var(--serif); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 16px; font-family: var(--sans); font-size: 17px; border-bottom: 0; }
}

/* ---------- Type ---------- */
.display { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(52px, 9.5vw, 148px); line-height: .95; letter-spacing: -0.035em; color: var(--indigo); }
.display em, .h2 em { font-style: italic; font-weight: 400; color: var(--kesar-deep); }
.display .accent { color: var(--kesar); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.03em; color: var(--indigo); }
.h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-muted); max-width: 600px; }

/* ---------- Word rotator ---------- */
.rotator { display: block; height: 1.02em; overflow: hidden; }
.rotator-track { display: block; color: var(--kesar); font-style: italic; font-weight: 400; animation: words 10s cubic-bezier(.7, 0, .2, 1) infinite; }
.rotator-track > span { display: block; height: 1.02em; }
@keyframes words {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-20%); }
  40%, 56% { transform: translateY(-40%); }
  60%, 76% { transform: translateY(-60%); }
  80%, 100% { transform: translateY(-80%); }
}

/* ---------- Page hero ---------- */
.hero { position: relative; padding: 64px 0 48px; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; margin-top: 48px; }
.badge-spin { position: absolute; right: 24px; top: 32px; width: 150px; height: 150px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .badge-spin { width: 96px; height: 96px; top: 8px; right: 12px; opacity: .9; } }
.page-hero { padding: 72px 0 40px; }
.page-hero .display { font-size: clamp(48px, 8vw, 120px); }

/* ---------- Bands ---------- */
.bands { position: relative; height: 230px; margin: 32px 0; overflow: hidden; }
.band { position: absolute; left: -5%; right: -5%; white-space: nowrap; overflow: hidden; }
.band-1 { top: 40px; transform: rotate(-3deg); background: var(--indigo); color: var(--on-indigo); padding: 22px 0; }
.band-2 { top: 112px; transform: rotate(2deg); background: var(--kesar); color: var(--ink); padding: 18px 0; }
.band-track { display: inline-flex; gap: 40px; padding-left: 40px; }
.band-1 .band-track { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; animation: marqL 28s linear infinite; }
.band-2 .band-track { font-size: clamp(16px, 1.6vw, 22px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; animation: marqR 32s linear infinite; }
@keyframes marqL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 760px) { .bands { height: 170px; } .band-1 { top: 24px; padding: 14px 0; } .band-2 { top: 86px; padding: 12px 0; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.dark { background: var(--ink); color: var(--on-indigo); }
.dark .h2, .dark .display { color: var(--on-indigo); }
.dark .lead, .dark .muted { color: var(--on-indigo-muted); }
.indigo-bg { background: var(--indigo); color: var(--on-indigo); }
.indigo-bg .h2 { color: var(--on-indigo); }
.indigo-bg .muted, .indigo-bg .lead { color: var(--on-indigo-muted); }
.kesar-bg { background: var(--kesar-soft); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }

/* Big numbered list */
.numbered { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 2px solid var(--ink); }
.numbered > div { padding: 36px 28px 36px 0; border-bottom: 1px solid var(--line); }
.numbered .n { font-family: var(--serif); font-size: clamp(64px, 7vw, 96px); line-height: 1; color: var(--indigo); }
.numbered p { margin: 0; color: var(--ink-muted); font-size: 17px; }
.numbered .h3 { margin-top: 18px; }
.numbered a.more { display: inline-block; margin-top: 14px; font-weight: 600; text-decoration: none; }

/* Detail blocks (services page) */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: 2px solid var(--ink); }
.detail .n { font-family: var(--serif); font-size: 20px; color: var(--kesar-deep); font-weight: 600; }
.detail h2 { margin: 8px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.02em; color: var(--indigo); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; background: var(--kesar); }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; } }

/* Timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 40px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--indigo-soft); border-radius: 4px; }
.timeline .bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--kesar); border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform 2.4s cubic-bezier(.6, 0, .2, 1); }
.timeline.in .bar { transform: scaleX(1); }
.timeline .when { font-size: 14px; color: var(--kesar-deep); font-weight: 600; }
.dark .timeline::before { background: #2A3255; }
.dark .timeline .when { color: var(--kesar); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.kesar-bg .card { border-color: transparent; }
.card .big { font-family: var(--serif); font-size: 30px; color: var(--indigo); line-height: 1.1; }

/* Statement card */
.statement { background: var(--indigo); color: var(--on-indigo); border-radius: 24px; padding: 32px; width: 320px; max-width: 100%; margin: 0 auto; animation: bob 5s ease-in-out infinite; }
.statement .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-top: 8px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(-2deg); } }

/* Fee */
.fee-num { font-family: var(--serif); font-weight: 600; font-size: clamp(120px, 22vw, 320px); line-height: .8; letter-spacing: -0.05em; color: var(--kesar); }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; color: var(--indigo); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--indigo); position: relative; transition: transform .3s var(--ease), background .3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--indigo); transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--kesar-soft); }
.faq details p { margin: 0 0 26px; max-width: 760px; color: var(--ink-muted); }

/* Big CTA */
.cta-block { display: block; text-decoration: none; background: var(--indigo); color: var(--on-indigo); border-radius: 32px; padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px); transition: background .35s; }
.cta-block:hover { background: var(--ink); color: var(--on-indigo); }
.cta-block .t { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6vw, 88px); line-height: 1; letter-spacing: -0.03em; }
.cta-block .t .arrow { display: inline-block; transition: transform .35s var(--ease); }
.cta-block:hover .t .arrow { transform: translateX(12px); }
.cta-block .s { margin-top: 20px; color: var(--indigo-soft); font-size: 18px; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--surface-raised); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 52px; width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.form .hint { font-weight: 400; color: var(--ink-muted); font-size: 14px; }
.form .consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-weight: 400; font-size: 14px; color: var(--ink-muted); align-items: start; }
.form .consent input { min-height: 0; width: 20px; height: 20px; margin-top: 2px; }
.form-status { font-weight: 600; }
.hidden-field { position: absolute; left: -9999px; }

/* Contact list */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); color: var(--indigo); }
.contact-list .k { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 40px; color: var(--ink-muted); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Highlight */
.mark { background: var(--kesar-soft); padding: 0 8px; }

/* ---------- Motion: page-load and scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); }
.wipe.in { clip-path: inset(0 0 0 0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .25s; } .d3 { transition-delay: .4s; } .d4 { transition-delay: .55s; }
.no-js .reveal, .no-js .wipe { opacity: 1; transform: none; clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .wipe { opacity: 1; transform: none; clip-path: none; }
  .rotator { height: auto; }
  .rotator-track > span:not(:first-child) { display: none; }
}

/* ---------- Extra motion layer ---------- */
/* Scroll progress */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--kesar); transform: scaleX(0); transform-origin: left; z-index: 60; pointer-events: none; }

/* Page transition panel */
.curtain { position: fixed; inset: 0; z-index: 90; background: var(--indigo); pointer-events: none; transform: translateY(0); display: flex; align-items: center; justify-content: center; }
.curtain .wordmark { color: var(--on-indigo); font-size: clamp(34px, 5vw, 56px); opacity: 1; transition: opacity .3s; }
.curtain.out { transform: translateY(-100%); transition: transform .9s cubic-bezier(.8, 0, .2, 1) .15s; }
.curtain.out .wordmark { opacity: 0; }
.curtain.in { transform: translateY(100%); transition: none; }
.curtain.in.go { transform: translateY(0); transition: transform .6s cubic-bezier(.8, 0, .2, 1); }
.no-js .curtain { display: none; }

/* Split-word headline intro */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.split-words.in .w > span { transform: none; }

/* Custom cursor (fine pointers only) */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 95; border-radius: 50%; opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--indigo); }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--kesar); }
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
.cursor.hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(227, 155, 45, .18); border-color: var(--kesar); }
.dark .cursor, .cursor.on-dark { border-color: var(--on-indigo); }

/* Magnetic buttons */
.magnetic { will-change: transform; }

/* Skyline line drawing */
.skyline { width: 100%; height: auto; margin-top: 40px; }
.skyline path, .skyline line, .skyline rect, .skyline polyline, .skyline circle { fill: none; stroke: var(--indigo); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.skyline .k { stroke: var(--kesar); stroke-width: 2; }
.skyline .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 2.6s cubic-bezier(.6, 0, .2, 1); }
.skyline.in .draw { stroke-dashoffset: 0; }
.skyline .win { fill: var(--kesar); stroke: none; opacity: 0; transition: opacity .5s; }
.skyline.in .win { opacity: 1; animation: winblink 4s ease-in-out infinite; }
@keyframes winblink { 0%, 70%, 100% { opacity: 1; } 80% { opacity: .2; } }

/* Pinned horizontal scroller */
.hscroll { position: relative; }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll-track { display: flex; gap: 28px; padding: 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); will-change: transform; }
.hpanel { flex: none; width: min(78vw, 560px); min-height: 440px; border-radius: 32px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: transform .4s var(--ease); }
.hpanel:hover { transform: translateY(-8px) rotate(-1deg); }
.hpanel .n { font-family: var(--serif); font-size: clamp(90px, 10vw, 150px); line-height: .85; }
.hpanel h3 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 46px); line-height: 1; font-weight: 600; }
.hpanel p { margin: 0; font-size: 18px; }
.hp-1 { background: var(--indigo); color: var(--on-indigo); } .hp-1 .n { color: var(--kesar); } .hp-1 p { color: var(--on-indigo-muted); }
.hp-2 { background: var(--kesar); color: var(--ink); } .hp-2 .n { color: var(--indigo); }
.hp-3 { background: var(--ink); color: var(--on-indigo); } .hp-3 .n { color: var(--kesar); } .hp-3 p { color: var(--on-indigo-muted); }
.hp-4 { background: var(--surface-raised); color: var(--ink); border: 1.5px solid var(--line); } .hp-4 .n { color: var(--kesar-deep); } .hp-4 p { color: var(--ink-muted); }
.hp-1:hover, .hp-3:hover { color: var(--on-indigo); } .hp-2:hover, .hp-4:hover { color: var(--ink); }
.hscroll-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .hscroll { height: auto !important; }
  .hscroll-sticky { position: static; height: auto; padding: 64px 0; }
  .hscroll-track { flex-direction: column; transform: none !important; }
  .hpanel { width: 100%; min-height: 0; gap: 24px; }
}

/* Parallax + tilt */
.parallax { will-change: transform; }
.tilt { transition: transform .3s var(--ease); transform-style: preserve-3d; }

/* Marquee skew driven by scroll speed */
.band-track { will-change: transform; }

/* Underline draw on large links */
.draw-link { background-image: linear-gradient(var(--kesar), var(--kesar)); background-size: 0% 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .5s var(--ease); text-decoration: none; }
.draw-link:hover { background-size: 100% 3px; }

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .split-words .w > span { transform: none; }
  .skyline .draw { stroke-dashoffset: 0; }
  .skyline .win { opacity: 1; }
  .cursor, .cursor-dot { display: none; }
}

/* Screen-reader only */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Phone with live chat (owners abroad) */
.phone { width: 340px; max-width: 100%; background: var(--ink); border-radius: 44px; padding: 12px; animation: phoneTilt 8s ease-in-out infinite; }
@keyframes phoneTilt { 0%, 100% { rotate: -2deg; } 50% { rotate: 1deg; } }
.phone.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.phone-screen { background: var(--surface); border-radius: 34px; overflow: hidden; height: 620px; display: flex; flex-direction: column; }
.phone-head { background: var(--indigo); color: var(--on-indigo); padding: 22px 18px 14px; display: flex; align-items: center; gap: 12px; }
.phone-avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--on-indigo); color: var(--indigo); font-family: var(--serif); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.phone-body { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; font-size: 13.5px; line-height: 1.45; }
.msg-day { align-self: center; font-size: 11px; color: var(--ink-muted); background: var(--indigo-soft); padding: 3px 10px; border-radius: 6px; }
.msg { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 10px 12px; max-width: 86%; opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg .time { display: block; font-size: 11px; color: var(--ink-muted); text-align: right; margin-top: 4px; }
.msg.me { align-self: flex-end; background: var(--indigo-soft); border-color: transparent; border-radius: 12px 12px 4px 12px; }
.msg.warn { background: var(--kesar-soft); border-color: transparent; }
.msg.typing { display: flex; gap: 4px; width: 46px; padding: 12px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted); animation: dot 1.2s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
.chat.in .msg { opacity: 1; transform: none; }
.chat.in .msg:nth-child(2) { transition-delay: .5s; } .chat.in .msg:nth-child(3) { transition-delay: 1.7s; } .chat.in .msg:nth-child(4) { transition-delay: 2.9s; }
.chat.in .msg:nth-child(5) { transition-delay: 4.1s; } .chat.in .msg:nth-child(6) { transition-delay: 5.3s; } .chat.in .msg:nth-child(7) { transition-delay: 6.3s; }
.no-js .msg { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .msg { opacity: 1; transform: none; } .phone { animation: none; } }
