/* Pixel by Max: polish layer (dark mode, transitions, type, micro-interactions, contact, footer, rhythm) */

/* ---------- 3. type system ---------- */
body { font-size: 17px; line-height: 1.62; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.hero h1, .phead h1 { font-size: clamp(48px, 7.6vw, 116px) !important; line-height: 0.98 !important; letter-spacing: -0.04em !important; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 48px) !important; line-height: 1.08 !important; letter-spacing: -0.03em !important; }
.roll-row h3, .next h2 { font-size: clamp(40px, 6.4vw, 92px) !important; letter-spacing: -0.04em !important; }
.cap h3 { font-size: clamp(18px, 1.5vw, 21px) !important; letter-spacing: -0.02em !important; }
.cap .idx { font-size: clamp(24px, 2.2vw, 32px) !important; }
.about-copy .big { font-size: clamp(21px, 2vw, 27px) !important; line-height: 1.34 !important; }
.quote blockquote { font-size: clamp(26px, 3.4vw, 44px) !important; line-height: 1.2 !important; letter-spacing: -0.03em !important; }
.stat-n { font-size: clamp(52px, 5vw, 76px) !important; }
.label { font-size: 11px; letter-spacing: 0.1em; }

/* ---------- 8. spacing rhythm ---------- */
.sec { padding-top: clamp(76px, 11vh, 132px) !important; padding-bottom: clamp(76px, 11vh, 132px) !important; }
.sec[style*="padding-top:0"] { padding-top: 0 !important; }
.quote { padding: clamp(64px, 9vh, 112px) 0 !important; }
.hero { padding-bottom: clamp(48px, 8vh, 96px); }
.marq { margin-top: clamp(48px, 8vh, 96px); }
.grid, .stats-grid, .svc-list, .steps, .about-grid, .wwm, .roll-index, .frames, .ph-wall, .cases, .panel { margin-top: clamp(32px, 5vh, 56px) !important; }
.filters + .sr + .grid { margin-top: clamp(24px, 3.5vh, 40px) !important; }

/* ---------- 4. micro-interactions ---------- */
.pill, .chip-f, .snd, .motion-t, .inq-submit, .totop { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s, opacity 0.3s; }
.pill .ar, .about-cta span, .inq-submit .arrow { display: inline-block; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.pill:hover .ar, .about-cta:hover span, .inq-submit:hover .arrow { transform: translateX(4px); }
.u-link, .aside-mail, .foot-cols a, .about-cta {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
}
.u-link:hover, .aside-mail:hover, .foot-cols a:hover, .about-cta:hover { background-size: 100% 1px; }
.about-cta { border-bottom: 0 !important; padding-bottom: 3px; }
.inp:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 4px rgba(232, 67, 26, 0.14), 0 8px 22px -12px rgba(232, 67, 26, 0.45) !important; }
.inq-done .inq-check { animation: chk-pop 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.inq-done h3, .inq-done p { animation: chk-rise 0.6s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes chk-pop { from { transform: scale(0.4); opacity: 0; } }
@keyframes chk-rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 5. scroll progress in the nav ---------- */
.nav-progress { position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; pointer-events: none; }
.nav-progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #FFB08A, var(--accent)); }

/* ---------- 6. contact ---------- */
.contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important; gap: clamp(28px, 5vw, 80px) !important; }
.contact-side { order: -1; display: grid; gap: 22px; align-content: start; }
.avail { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 8px 15px 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-brd); box-shadow: var(--glass-shadow); font-size: 14px; }
.avail b { width: 8px; height: 8px; border-radius: 50%; background: #2FB86A; box-shadow: 0 0 0 0 rgba(47, 184, 106, 0.5); animation: av-pulse 2.4s ease-out infinite; }
@keyframes av-pulse { 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 184, 106, 0); } }
.contact-side .aside-mail { display: inline-block; margin: 8px 0 0; font-size: clamp(22px, 2.1vw, 30px); }
.facts-list { display: grid; margin: 0; border-top: 1px solid var(--hair); }
.facts-list div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.facts-list dt { color: var(--soft); }
.facts-list dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr !important; } }

/* ---------- 7. footer ---------- */
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 60px); padding: clamp(40px, 7vh, 72px) 0 clamp(30px, 5vh, 52px); }
.foot-cols > * { display: grid; gap: 10px; align-content: start; }
.foot-cols .label { margin-bottom: 6px; }
.foot-cols a, .foot-cols .fc-txt { justify-self: start; font-size: 15px; color: var(--soft); }
.foot-cols a:hover { color: var(--ink); }
.fc-brand .logo { font-size: 22px; color: var(--ink) !important; }
.fc-brand p { max-width: 30ch; font-size: 15px; color: var(--soft); }
.foot-word { border-top: 1px solid var(--hair); }
.foot-row { align-items: center; }
.totop { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--glass); border: 1px solid var(--glass-brd); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.totop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } .fc-brand { grid-column: 1 / -1; } }

/* ---------- 2. page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s cubic-bezier(0.4, 0, 0.2, 1) both; }
::view-transition-new(root) { animation: vt-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
.nav { view-transition-name: site-nav; }
.tabbar { view-transition-name: site-tabbar; }
html.calm::view-transition-old(root), html.calm::view-transition-new(root) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .avail b { animation: none; }
}

/* light only */
:root { color-scheme: light; }
