:root {
    --background: 210 40% 98%;
    --foreground: 222 30% 9%;
    --border: 220 20% 88%;
    --deep-blue: #0369a1;
}
* { border-color: hsl(var(--border)); }
html { background: #f6f8fb; scroll-behavior: smooth; }
body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
}
::selection { background: rgba(18,21,28,0.15); color: #12151c; }
.icy-bg {
    background:
        radial-gradient(ellipse 70% 60% at 15% 0%, rgba(210,230,250,0.55) 0%, rgba(210,230,250,0) 60%),
        radial-gradient(ellipse 60% 50% at 100% 30%, rgba(220,236,252,0.45) 0%, rgba(220,236,252,0) 60%);
}

/* hero with the floating logo behind it (same as the homepage) */
.sky-hero {
    background:
        radial-gradient(ellipse 65% 55% at 78% 30%, rgba(200,224,248,0.9) 0%, rgba(200,224,248,0) 62%),
        radial-gradient(ellipse 55% 45% at 8% 85%, rgba(214,232,250,0.7) 0%, rgba(214,232,250,0) 60%),
        linear-gradient(180deg, #f2f7fc 0%, #f6f9fc 55%, #f6f8fb 100%);
}
.hero-mark { opacity: 0; animation: hero-mark-in 1s ease .2s forwards; }
@keyframes hero-mark-in { to { opacity: 1; } }
.floating-mark { animation: mark-drift 9s ease-in-out infinite; filter: drop-shadow(0 30px 60px rgba(120,150,190,0.28)); }
@keyframes mark-drift {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-18px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) { .floating-mark { animation: none; } .hero-mark { animation: none; opacity: 1; } }

/* header + menu */
header.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; }
#mobile-nav { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s cubic-bezier(.16,1,.3,1), opacity .25s ease; }
#mobile-nav.is-open { grid-template-rows: 1fr; opacity: 1; }
#mobile-nav > nav { overflow: hidden; min-height: 0; }
#mobile-nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.nav-link { display: block; padding: 10px 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: #12151c; transition: color .2s ease; }
.nav-link:hover { color: #6640e6; }
.nav-link[aria-current="page"] { color: var(--deep-blue); }
.foot-link { display: block; padding: 6px 0; font-size: 0.875rem; color: #64748b; transition: color .2s ease; }
.foot-link:hover, .foot-link[aria-current="page"] { color: #12151c; }
.foot-link[aria-current="page"] { font-weight: 600; }
a:focus-visible, button:focus-visible { outline: 2px solid #6640e6; outline-offset: 2px; border-radius: 4px; }

/* type */
.page-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--deep-blue); margin-bottom: 20px; }
.page-h1 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; font-size: clamp(2.4rem, 6vw, 4.5rem); color: #12151c; max-width: 16ch; }
.page-h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(1.8rem, 4vw, 3rem); color: #12151c; }
.page-lead { font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6; color: #64748b; max-width: 46ch; margin-top: 24px; }

/* plain rows */
.row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 22px 0; border-top: 1px solid rgba(15,20,30,0.08); }
.row:last-child { border-bottom: 1px solid rgba(15,20,30,0.08); }
.row h3 { font-size: 1.05rem; font-weight: 700; color: #12151c; }
.row p { font-size: 0.95rem; line-height: 1.6; color: #64748b; }
@media (min-width: 768px) { .row { grid-template-columns: 1fr 1.5fr; gap: 32px; align-items: baseline; } }

/* website cards: two-sided, can be picked up and turned over (assets/cards.js) */
.pcard-hint { font-size: 0.9rem; color: #64748b; margin: 10px 0 44px; }
.pcard-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 620px) { .pcard-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; } }
@media (min-width: 960px) { .pcard-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.pcard {
    position: relative; aspect-ratio: 4 / 5.15; width: 100%; max-width: 440px; margin: 0 auto;
    perspective: 1500px; cursor: grab; outline: none;
    user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pcard-shadow { position: absolute; left: 4%; right: 4%; bottom: 1%; height: 5%; background: rgba(15,30,55,0.32); filter: blur(9px); border-radius: 50%; transform: translateY(2px) rotate(var(--rot, 0deg)); pointer-events: none; }
.pcard-lift { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateY(var(--dy, 0px)) rotate(var(--rot, 0deg)); }
.pcard-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.pcard.is-held { z-index: 5; cursor: grabbing; }
.pcard:focus-visible .pcard-face { outline: 2px solid #6640e6; outline-offset: 4px; }
.pcard-layer { position: absolute; inset: 0; background: #c3d0df; border-radius: 11px; }
.pcard-layer:nth-child(odd) { background: #b3c2d4; }
.pcard-face {
    position: absolute; inset: 0; overflow: hidden; border-radius: 11px;
    backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fbfcfe;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7), inset 0 -2px 2px rgba(40,60,90,0.14), inset 2px 0 2px rgba(40,60,90,0.06), inset -2px 0 2px rgba(40,60,90,0.09);
}
.pcard-front { transform: translateZ(2.5px); padding: 14px 14px 0; display: flex; flex-direction: column; }
.pcard-back { transform: rotateY(180deg) translateZ(2.5px); padding: 34px 30px 28px; display: flex; flex-direction: column; color: #12151c; }
.pcard-photo { flex: 1; min-height: 0; overflow: hidden; border-radius: 3px; background: #dde5ee; box-shadow: 0 0 0 1px rgba(20,30,50,0.12); }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; -webkit-user-drag: none; user-select: none; }
.pcard-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px 15px; }
.pcard-name { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #12151c; }
.pcard-cue { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; white-space: nowrap; }
.cue-touch { display: none; }
@media (hover: none) { .cue-hover { display: none; } .cue-touch { display: inline; } }
.pcard-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep-blue); }
.pcard-back h3 { font-size: 1.55rem; font-weight: 800; color: #12151c; margin: 10px 0 14px; letter-spacing: -0.02em; line-height: 1.15; }
.pcard-back h3::after { content: ''; display: block; width: 28px; height: 2px; margin-top: 14px; background: var(--deep-blue); }
.pcard-desc { font-size: 0.92rem; line-height: 1.6; color: #475569; margin: 0 0 24px; }
.pcard-details { margin: 0; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(20,30,50,0.14); }
.pcard-details div { display: flex; justify-content: space-between; gap: 16px; }
.pcard-details dt { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.pcard-details dd { margin: 0; font-size: 0.82rem; font-weight: 600; color: #12151c; text-align: right; }
.pcard-link {
    align-self: flex-start; margin-top: 20px; padding-bottom: 3px; font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; color: #12151c; border-bottom: 1px solid #12151c;
    transition: color .2s ease, border-color .2s ease;
}
.pcard-link:hover { color: var(--deep-blue); border-color: var(--deep-blue); }
.pcard-mark { position: absolute; right: 24px; bottom: 22px; height: 30px; width: auto; opacity: 0.55; }
@media (max-width: 420px) { .pcard-back { padding: 26px 22px 22px; } .pcard-back h3 { font-size: 1.3rem; } .pcard-desc { font-size: 0.86rem; } }
@media (min-width: 620px) and (max-width: 959px) {
    .pcard { aspect-ratio: 4 / 5.9; }
    .pcard-back { padding: 24px 20px 20px; }
    .pcard-back h3 { font-size: 1.25rem; }
    .pcard-desc { font-size: 0.82rem; margin-bottom: 16px; }
    .pcard-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pcard { cursor: pointer; perspective: none; } }

/* marketing services */
.svc { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 40px 0; border-top: 1px solid rgba(15,20,30,0.1); }
.svc:last-child { border-bottom: 1px solid rgba(15,20,30,0.1); }
.svc-name { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #12151c; }
.svc-line { font-size: 0.95rem; color: var(--deep-blue); font-weight: 600; margin-top: 8px; }
.svc-body { font-size: 1rem; line-height: 1.65; color: #475569; }
.svc-list { margin-top: 16px; }
.svc-list li { position: relative; padding: 9px 0 9px 22px; font-size: 0.95rem; color: #12151c; border-top: 1px solid rgba(15,20,30,0.07); }
.svc-list li::before { content: ''; position: absolute; left: 0; top: 17px; width: 8px; height: 2px; background: var(--deep-blue); }
@media (min-width: 768px) { .svc { grid-template-columns: 0.9fr 1.1fr; gap: 48px; padding: 56px 0; } }

/* reviews */
.gr-score { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gr-rating { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: #12151c; }
.gr-stars { color: #f5a623; letter-spacing: 0.12em; font-size: 1.05rem; }
.gr-stars-lg { font-size: 1.6rem; }
.gr-count { font-size: 1rem; font-weight: 600; color: #64748b; }
.gr { padding: 40px 0; border-top: 1px solid rgba(15,20,30,0.1); }
.gr:last-child { border-bottom: 1px solid rgba(15,20,30,0.1); }
.gr-text { margin: 16px 0 22px; }
.gr-text p { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; font-weight: 500; letter-spacing: -0.01em; color: #12151c; }
.gr-text p + p { margin-top: 14px; }
.gr-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: 0.9rem; }
.gr-author { font-weight: 700; color: #12151c; }
.gr-when { color: #64748b; }
.gr-source { color: var(--deep-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gr-note { font-size: 0.8rem; color: #94a3b8; margin-top: 18px; }

/* light fade-in only */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
