@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--text); font: 400 var(--step-0)/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 800; color: var(--navy); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label { display: inline-block; font-size: var(--step--1); font-weight: 700; color: var(--blue); letter-spacing: .02em; margin-bottom: 1rem; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--navy); color: #fff; padding: .6em 1em; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 var(--step-0)/1 var(--font);
  text-decoration: none; cursor: pointer; padding: 1em 1.5em; border-radius: 12px; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--sky); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand-word { font: 500 1.2rem/1 var(--font); color: var(--navy); letter-spacing: -0.01em; }
.brand-word b { font-weight: 800; margin-right: .2em; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--blue); }
.nav-links .btn { padding: .7em 1.1em; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.2rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { margin-top: 1rem; }
  .nav-links .btn { width: 100%; }
}

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.alt { background: var(--mist); }
.head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.head p { color: var(--muted); margin: 0; }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 120px); text-align: center; background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); }
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero h1 span { color: var(--blue); }
.hero .lede { margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin: 3rem 0 0; }
.hero-tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45em 1em; font-size: var(--step--1); font-weight: 600; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 2rem; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 1.25rem; }
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; }

/* Custom solutions band */
.feature { background: var(--blue); color: #fff; border-radius: var(--radius-l); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.feature h2 { color: #fff; }
.feature p { color: #DCE6FF; }
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.feature li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: .9rem 1.1rem; font-weight: 600; display: flex; gap: .7rem; align-items: center; }
.feature li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid > div > p { color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; box-shadow: 0 12px 40px rgba(11,27,63,.06); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--mist); border: 1.5px solid var(--line); border-radius: 10px; padding: .8em .9em; transition: border-color .15s, background .15s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form-status { font-size: .95rem; margin: 0; min-height: 1.4em; }
.form-status.ok { color: #15803D; font-weight: 600; }
.form-status.err { color: #B91C1C; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); }
.checks li::before { content: "✓"; color: var(--blue); font-weight: 800; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.brand .logo { height: 40px; width: auto; }
.card ul { list-style: none; margin: 1.1rem 0 0; padding: 0; font-size: .92rem; color: var(--text); }
.card li { padding: .5rem 0; border-top: 1px solid var(--line); display: flex; gap: .55rem; align-items: center; }
.card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }

/* ---------- Parallax & motion ---------- */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 2; }
.px-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
[data-speed] { will-change: transform; }
.px-grid { position: absolute; inset: -40% 0 0; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.b1 { width: 380px; height: 380px; background: #BFDBFE; left: -120px; top: 40px; opacity: .7; }
.b2 { width: 460px; height: 460px; background: #C7D2FE; right: -160px; top: 120px; opacity: .6; }
.b3 { width: 260px; height: 260px; background: #93C5FD; left: 45%; bottom: -160px; opacity: .45; }


.feature { position: relative; overflow: hidden; isolation: isolate; }
.feature-bg { position: absolute; inset: -60% -10%; z-index: -1; opacity: .18;
  background-image: radial-gradient(#fff 1.4px, transparent 1.6px); background-size: 26px 26px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Photography ---------- */
.card { overflow: hidden; }
.card-img { margin: -2rem -2rem 1.5rem; height: 190px; overflow: hidden; background: var(--sky); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.06); }
.card .icon { margin-top: -3.6rem; position: relative; border: 4px solid #fff; width: 56px; height: 56px; }

.photo-band { position: relative; overflow: hidden; color: #fff; padding: clamp(110px, 16vw, 200px) 0; margin-bottom: clamp(64px, 9vw, 112px); isolation: isolate; }
.photo-band-img { position: absolute; inset: -45% 0; z-index: -2; background-size: cover; background-position: center; }
.photo-band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11,27,63,.92) 0%, rgba(29,78,216,.72) 55%, rgba(29,78,216,.35) 100%); }
.band-quote { font: 800 var(--step-4)/1.05 var(--font); letter-spacing: -.03em; max-width: 14ch; margin: 0 0 1rem; }
.band-quote span { color: #93C5FD; }
.band-sub { font-size: var(--step-1); color: #DCE6FF; max-width: 40ch; margin: 0; }

/* ---------- Hero v3: split layout with live UI ---------- */
.hero { text-align: left; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 11ch; margin-inline: 0; font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); }
.hero .lede { margin: 0; }
.hero-actions, .hero-tags { justify-content: flex-start; }
.hero-tags { margin-top: 2.2rem; }

.hero-visual { position: relative; width: 100%; max-width: 470px; aspect-ratio: 4 / 5; justify-self: center; }
.hv-photo { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(11,27,63,.22); background: var(--navy); }
.hv-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.hv-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,78,216,0) 45%, rgba(11,27,63,.55) 100%); }

.hv-card { position: absolute; z-index: 2; background: #fff;
  border: 1px solid rgba(227,233,245,.9); border-radius: 16px; padding: 14px 16px; backdrop-filter: none; box-shadow: 0 24px 60px rgba(11,27,63,.2); font-size: .8rem; line-height: 1.3; }
.hv-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy); margin-bottom: .7rem; font-size: .82rem; }
.hv-badge { margin-left: auto; background: #DCFCE7; color: #15803D; font-size: .68rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; }
.hv-sub { margin-left: auto; color: var(--muted); font-weight: 600; font-size: .72rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; animation: ping 2s infinite; }

.hv-orders { left: -64px; top: 7%; width: 262px; }
.tickets { list-style: none; margin: 0; padding: 0; height: 132px; overflow: hidden; }
.tickets li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .55rem .6rem; border-radius: 10px; margin-bottom: 6px; background: var(--mist); }
.tickets b { color: var(--navy); }
.tickets span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tickets em { font-style: normal; font-weight: 700; font-size: .7rem; color: var(--blue); background: var(--sky); padding: .2em .5em; border-radius: 6px; }
.tickets li.new { animation: ticketIn .6s cubic-bezier(.2,.8,.2,1); background: var(--sky); }
@keyframes ticketIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }

.hv-prod { right: -48px; top: 47%; width: 236px; }
.bar { margin-top: .55rem; }
.bar-row { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: .3rem; }
.bar-row b { color: var(--navy); }
.bar i { display: block; height: 6px; border-radius: 99px; background: var(--sky); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--blue); border-radius: inherit; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.hero.ready .bar i::after { width: var(--w); }
.bar:nth-child(3) i::after { transition-delay: .15s; } .bar:nth-child(4) i::after { transition-delay: .3s; }

.hv-sync { left: -28px; bottom: 7%; display: flex; gap: .7rem; align-items: center; }
.hv-sync b { display: block; color: var(--navy); }
.hv-sync small { color: var(--muted); }
.hv-sync .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #DCFCE7; color: #15803D; font-weight: 800; }

/* entrance */
.hv-card { opacity: 0; translate: 0 16px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1); }
.hero.ready .hv-card { opacity: 1; translate: 0 0; }
.hero.ready .hv-prod { transition-delay: .25s; } .hero.ready .hv-sync { transition-delay: .45s; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin-top: 1rem; }
  .hv-orders { left: -10px; top: 5%; }
  .hv-prod { right: -10px; }
  .hv-sync { left: -6px; }
}
@media (max-width: 420px) {
  .hv-orders { width: 230px; } .hv-prod { width: 208px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-card { opacity: 1; translate: 0 0; }
  .bar i::after { width: var(--w); transition: none; }
  .live-dot { animation: none; }
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (max-width: 1200px) and (min-width: 961px) { .hv-prod { right: -24px; } .hv-orders { left: -40px; } }

/* ---------- Serif headlines (match the logo) ---------- */
h1, h2, .band-quote { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
.hero h1 { font-size: clamp(2.8rem, 1.6rem + 4.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem); }
.band-quote { font-weight: 400; letter-spacing: -0.01em; }
