/* Home – editorial layout inspired by print portfolio */
.hero { padding: calc(var(--nav-h) + 18px) 0 40px; overflow: hidden; }
.hero .container { container-type: inline-size; }
.hero-meta { display: flex; align-items: center; gap: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.hero-meta span:first-child { color: var(--burgundy); }
.hero-meta-line { flex: 1; height: 1px; background: var(--border-dark); }
.hero-mega { position: relative; z-index: 2; font-size: 21.6cqi; margin: 10px 0 0 -6px; letter-spacing: -.005em; white-space: nowrap; } /* the whole word stays in front of the arch */
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: -18px; }
.hero-copy { padding-top: 34px; }
.hero-script { font-size: clamp(36px, 4cqi, 68px); line-height: 1; }
.hero-caps { margin-top: 6px; font-family: var(--font-serif); font-size: clamp(30px, 3.6cqi, 60px); line-height: 1.04; text-transform: uppercase; color: var(--ink); }
.hero .sub { margin-top: 18px; }
.hero .cta-row { margin-top: 24px; }
.hero-sign { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-dark); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero-sign .script { font-size: 30px; letter-spacing: 0; text-transform: none; color: var(--burgundy); }

.hero-visual { position: relative; margin-top: -9cqi; min-height: 600px; }
.hero-visual::after { content: ''; position: absolute; right: -8px; top: 140px; bottom: 30px; width: 1px; background: var(--border-dark); }
.arch { position: relative; margin: 0 40px 0 auto; width: clamp(380px, 32cqi, 520px); height: clamp(560px, 42cqi, 680px); border-radius: 999px 999px 0 0; background: radial-gradient(120% 70% at 50% 0%, #e6d0c9 0%, #d9b2a9 45%, #c68982 100%); overflow: hidden; }
.arch::before { content: ''; position: absolute; inset: 14px 14px 0; border: 1px solid rgba(242, 237, 233, .55); border-bottom: 0; border-radius: 999px 999px 0 0; }
.phone { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); width: 250px; height: 500px; padding: 10px; border-radius: 44px; background: var(--ink); box-shadow: 0 40px 80px -24px rgba(38, 23, 20, .55); }
.phone-island { position: absolute; top: 18px; left: 50%; width: 80px; height: 24px; margin-left: -40px; border-radius: 20px; background: var(--ink); z-index: 2; }
.phone-screen { height: 100%; border-radius: 35px; overflow: hidden; background: var(--cream); display: flex; flex-direction: column; }
.ps-head { display: flex; justify-content: space-between; align-items: center; padding: 52px 16px 12px; }
.ps-title { font-family: var(--font-accent); font-style: italic; font-size: 22px; color: var(--burgundy); }
.ps-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-full); background: var(--burgundy); color: var(--cream); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ps-live span { width: 6px; height: 6px; border-radius: 50%; background: var(--blush); animation: pulse-dot 1.6s infinite; }
.ps-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 3px; padding: 0 5px 5px; }
.ps-grid .photo { border-radius: 4px; opacity: 0; animation: pop-in .6s var(--ease) forwards; }
.ps-grid .photo:nth-child(1) { animation-delay: .2s; } .ps-grid .photo:nth-child(2) { animation-delay: .35s; } .ps-grid .photo:nth-child(3) { animation-delay: .5s; }
.ps-grid .photo:nth-child(4) { animation-delay: .65s; } .ps-grid .photo:nth-child(5) { animation-delay: .8s; } .ps-grid .photo:nth-child(6) { animation-delay: .95s; }
.ps-grid .photo:nth-child(7) { animation-delay: 1.1s; } .ps-grid .photo:nth-child(8) { animation-delay: 1.25s; } .ps-grid .photo:nth-child(9) { animation-delay: 1.4s; }

.stamp { position: absolute; right: -4px; top: 150px; width: 150px; height: 150px; z-index: 3; animation: spin-slow 28s linear infinite; }
.stamp-bg { fill: var(--burgundy); }
.stamp-text { fill: var(--cream); font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; letter-spacing: 2px; }
.stamp-star { fill: var(--blush); }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.chip { position: absolute; z-index: 3; left: 0; bottom: 70px; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: var(--r-full); background: var(--cream); border: 1px solid var(--border-dark); box-shadow: var(--shadow-lg); font-size: 13px; color: var(--brown-mid); white-space: nowrap; animation: chip-in .7s 1.6s var(--ease) both; }
.chip strong { color: var(--ink); }
.chip-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rose); color: var(--cream); font-weight: 700; font-size: 13px; }

@keyframes pop-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes chip-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes pulse-dot { 50% { opacity: .35; } }

.trust { padding: 16px 0; background: var(--burgundy); }

.benefits { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); gap: 14px; align-items: stretch; }
.benefits-intro { padding-right: 18px; }
.benefits-intro .sub { margin-top: 14px; font-size: 15px; }

.work-visual.collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; background: var(--cream); }
.work-visual.collage .photo:first-child { grid-row: span 2; }
.work-visual.dark-visual { background: var(--ink); }
.work-visual.dark-visual .photo { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; }
.wv-caps { position: absolute; left: 22px; bottom: 20px; z-index: 1; font-family: var(--font-serif); font-size: 30px; line-height: 1.02; text-transform: uppercase; color: var(--cream); }
.work-visual.phones { display: flex; align-items: flex-end; justify-content: center; gap: 14px; background: linear-gradient(160deg, #e6d0c9, #d9b2a9); }
.work-visual.phones .mini { width: 26%; aspect-ratio: 9 / 18; padding: 4px; border-radius: 16px; background: var(--ink); transform: translateY(12%); }
.work-visual.phones .mini:last-child { transform: translateY(24%); }
.work-visual.phones .photo { display: block; width: 100%; height: 100%; border-radius: 12px; }

.duo .link-arrow { display: inline-flex; margin-top: 24px; }
.duo .rule-label { margin-bottom: 22px; }

.quote { padding: 26px; }
.quote blockquote { font-family: var(--font-accent); font-style: italic; font-size: 22px; line-height: 1.35; color: var(--ink); }
.quote figcaption { margin-top: 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--burgundy); }

@media (max-width: 1120px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefits-intro { grid-column: 1 / -1; padding: 0 0 6px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; margin-top: 0; }
  .hero-copy { padding-top: 10px; }
  .hero-visual { margin-top: 10px; min-height: 0; }
  .hero-visual::after { display: none; }
  .arch { margin: 0 auto; height: 500px; width: min(400px, 92%); }
  .phone { width: 210px; height: 420px; border-radius: 38px; }
  .phone-screen { border-radius: 30px; }
  .stamp { width: 118px; height: 118px; top: 40px; right: 0; }
}
@media (max-width: 600px) {
  .hero-mega { font-size: 22.5cqi; margin-top: 14px; }
  .hero-meta span:last-child, .hero-meta-line { display: none; }
  .benefits { grid-template-columns: 1fr; }
  .chip { bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) { .ps-grid .photo { opacity: 1; } .stamp { animation: none; } }
.benefits-intro .h2 { font-size: clamp(30px, 2.6vw, 38px); }

/* Hero entrance */
.hero-mega span { display: inline-block; transform: translate3d(0, 105%, 0); animation: rise .9s var(--ease-out) forwards; }
.hero-mega span:nth-child(1) { animation-delay: 80ms; }
.hero-mega span:nth-child(2) { animation-delay: 125ms; }
.hero-mega span:nth-child(3) { animation-delay: 170ms; }
.hero-mega span:nth-child(4) { animation-delay: 215ms; }
.hero-mega span:nth-child(5) { animation-delay: 260ms; }
.hero-mega span:nth-child(6) { animation-delay: 305ms; }
.hero-mega span:nth-child(7) { animation-delay: 350ms; }
.hero-mega span:nth-child(8) { animation-delay: 395ms; }
.hero-mega span:nth-child(9) { animation-delay: 440ms; }
.hero-mega { overflow: hidden; padding-bottom: .04em; }
@keyframes rise { to { transform: none; } }
.arch { animation: arch-in 1.1s var(--ease-out) .25s both; }
@keyframes arch-in { from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); } to { clip-path: inset(0 0 0 0 round 999px 999px 0 0); } }
.phone { animation: phone-in 1s var(--ease-out) .55s both; }
@keyframes phone-in { from { opacity: 0; transform: translate(-50%, 40px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-mega span, .arch, .phone { animation: none; transform: none; } .phone { transform: translateX(-50%); } }

/* Translated hero words differ in length (built by tools/i18n/build.py with data-len) */
.hero-mega[data-len="5"], .hero-mega[data-len="6"] { font-size: 25cqi; }
.hero-mega[data-len="7"] { font-size: 24cqi; }
.hero-mega[data-len="8"] { font-size: 23cqi; }
.hero-mega[data-len="10"] { font-size: 19.4cqi; }
.hero-mega[data-len="11"] { font-size: 17.6cqi; }
.hero-mega[data-len="12"] { font-size: 16.2cqi; }

/* ── Testimonials ── */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.reviews-score { display: grid; justify-items: end; gap: 2px; }
.rs-num { font-family: var(--font-serif); font-size: 56px; line-height: 1; color: var(--ink); }
.rs-stars { color: var(--burgundy); letter-spacing: 3px; font-size: 18px; }
.rs-count { color: var(--muted); font-size: 13px; }
/* Review carousel: 3 cards visible (2 on tablets, 1 on phones), moves by one card every 8 s */
.rv-carousel { --per: 3; --gap: 20px; }
.rv-carousel[hidden] { display: none; }
.rv-viewport { overflow: hidden; margin: -10px -14px -26px; padding: 10px 14px 26px; }
.rv-track { display: flex; gap: var(--gap); transition: transform .8s var(--ease-out); will-change: transform; touch-action: pan-y; }
.rv-track > .review { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; }
.rv-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.rv-controls[hidden] { display: none; }
.rv-nav { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(89, 30, 35, .25); border-radius: 50%; background: var(--surface); color: var(--burgundy); box-shadow: var(--elev-1); cursor: pointer; transition: background .2s, color .2s; }
.rv-nav:hover { background: var(--burgundy); color: var(--cream); }
.rv-nav .icon { width: 18px; height: 18px; }
.rv-dots { display: flex; gap: 8px; }
.rv-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--blush); cursor: pointer; transition: width .3s var(--ease-out), background .3s; }
.rv-dot[aria-current="true"] { width: 26px; background: var(--burgundy); }
@media (prefers-reduced-motion: reduce) { .rv-track { transition: none; } }
.review { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 28px 26px 24px; border: 1px solid rgba(38, 23, 20, .09); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--elev-1); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.review:hover { transform: translateY(-4px); box-shadow: var(--elev-2); }
.rv-stars { color: var(--burgundy); letter-spacing: 3px; font-size: 17px; }
.rv-stars span { color: var(--blush); }
.review blockquote { flex: 1; margin: 0; font-family: var(--font-accent); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--ink); }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); font-size: 14px; }
.rv-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--burgundy); color: var(--cream); font-weight: 700; box-shadow: var(--elev-burgundy); }
.reviews-empty { display: grid; justify-items: center; gap: 12px; max-width: 720px; margin: 0 auto; padding: 44px 32px; text-align: center; border: 1px solid rgba(38, 23, 20, .09); border-radius: 28px; background: var(--surface); box-shadow: var(--elev-1); }
.reviews-empty[hidden] { display: none; }
.re-stars { color: var(--blush); letter-spacing: 6px; font-size: 26px; }
.reviews-empty h3 { font-family: var(--font-serif); font-size: 30px; font-weight: 400; color: var(--ink); }
.reviews-empty p { max-width: 540px; color: var(--brown-mid); }
.reviews-empty .cta-row { justify-content: center; margin-top: 8px; }
@media (max-width: 1024px) { .rv-carousel { --per: 2; } }
@media (max-width: 680px) { .rv-carousel { --per: 1; --gap: 14px; } }
@media (max-width: 960px) { .reviews-head { flex-direction: column; align-items: flex-start; } .reviews-score { justify-items: start; } }
