/* =========================================================================
   Vertice Media Labs — Modern single-screen landing
   Light porcelain base · animated aurora · ink-minimal UI
   Type: Schibsted Grotesk
   ========================================================================= */

:root {
    --bg: #eceae4;
    --bg-2: #f3f2ee;
    --ink: #15171c;
    --ink-soft: #3a3d45;
    --muted: #757982;
    --line: rgba(21, 23, 28, 0.12);
    --line-strong: rgba(21, 23, 28, 0.24);
    --card: rgba(255, 255, 255, 0.62);
    --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --container: min(1120px, calc(100vw - 48px));
    --r: 18px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    overflow: hidden;                 /* single screen, no scroll */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
    position: fixed; top: 12px; left: 12px; transform: translateY(-200%);
    background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 90;
}
.skip-link:focus { transform: translateY(0); }

/* ---- animated aurora ---------------------------------------------------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; filter: saturate(1.05); }
.blob {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.85;
    will-change: transform;
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}
.b1 { width: 46vmax; height: 46vmax; left: -8vmax;  top: -10vmax;
      background: radial-gradient(circle, rgba(120,168,255,0.85), transparent 62%); animation: drift1 22s ease-in-out infinite; }
.b2 { width: 42vmax; height: 42vmax; right: -10vmax; top: -6vmax;
      background: radial-gradient(circle, rgba(126,232,205,0.82), transparent 62%); animation: drift2 26s ease-in-out infinite; }
.b3 { width: 44vmax; height: 44vmax; right: 4vmax;  bottom: -16vmax;
      background: radial-gradient(circle, rgba(199,182,255,0.80), transparent 62%); animation: drift3 30s ease-in-out infinite; }
.b4 { width: 38vmax; height: 38vmax; left: 2vmax;   bottom: -18vmax;
      background: radial-gradient(circle, rgba(255,201,168,0.72), transparent 62%); animation: drift4 24s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate3d(var(--px,0px), var(--py,0px),0) scale(1); }
                    50% { transform: translate3d(calc(var(--px,0px) + 8vmax), calc(var(--py,0px) + 6vmax),0) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate3d(var(--px,0px), var(--py,0px),0) scale(1.05); }
                    50% { transform: translate3d(calc(var(--px,0px) - 7vmax), calc(var(--py,0px) + 7vmax),0) scale(0.95); } }
@keyframes drift3 { 0%,100% { transform: translate3d(var(--px,0px), var(--py,0px),0) scale(1); }
                    50% { transform: translate3d(calc(var(--px,0px) - 6vmax), calc(var(--py,0px) - 8vmax),0) scale(1.1); } }
@keyframes drift4 { 0%,100% { transform: translate3d(var(--px,0px), var(--py,0px),0) scale(1.08); }
                    50% { transform: translate3d(calc(var(--px,0px) + 6vmax), calc(var(--py,0px) - 6vmax),0) scale(0.96); } }

/* soft veil so text stays crisp over the aurora */
.aurora::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 120% at 50% 40%, rgba(236,234,228,0.10), rgba(236,234,228,0.62) 78%);
}

.grain {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.045; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- screen layout ------------------------------------------------------ */
.screen {
    position: relative; z-index: 1;
    height: 100dvh; min-height: 100vh;
    display: grid; grid-template-rows: auto 1fr auto;
    width: var(--container); margin: 0 auto;
    padding: 26px 0 24px;
}

/* topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.mark svg { width: 30px; height: 24px; fill: none; }
.mark-a { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
          stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.1s .15s ease forwards; }
.mark-b { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .35;
          stroke-dasharray: 28; stroke-dashoffset: 28; animation: draw 1s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.brand-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name b { font-weight: 600; }

.topbar-actions { display: flex; align-items: center; gap: 14px; }
.t-email { font-size: 14px; color: var(--muted); transition: color .2s; }
.t-email:hover { color: var(--ink); }

/* language switcher */
.lang { position: relative; }
.lang summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line);
    background: rgba(255,255,255,0.45); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink);
    transition: background .2s, border-color .2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: #fff; border-color: var(--line-strong); }
.lang .globe { font-size: 13px; color: var(--muted); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 92px; padding: 6px;
    display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px rgba(21,23,28,0.18); z-index: 30;
}
.lang-menu a { padding: 8px 11px; border-radius: 9px; font-size: 13px; color: var(--ink-soft); transition: background .15s, color .15s; }
.lang-menu a:hover { background: rgba(21,23,28,0.06); color: var(--ink); }
.lang-menu a.is-active { color: var(--ink); font-weight: 600; background: rgba(21,23,28,0.05); }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px;
    font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
    transition: transform .2s cubic-bezier(.2,.7,.2,1), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .arrow { transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(21,23,28,0.18); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(21,23,28,0.26); }
.btn-line { background: rgba(255,255,255,0.4); border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { background: #fff; border-color: var(--ink); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* stage / hero */
.stage { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
    opacity: 0; animation: rise .8s .25s ease forwards;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

h1 {
    margin: 0 0 20px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.0;
    font-size: clamp(38px, 6.4vw, 78px);
    opacity: 0; animation: rise .9s .34s cubic-bezier(.2,.7,.2,1) forwards;
}
h1 .accent { position: relative; white-space: nowrap; }
h1 .accent::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, #2f6df0, #16c8a3 55%, #b487ff);
    transform: scaleX(0); transform-origin: left; animation: line 1s 1s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes line { to { transform: scaleX(1); } }

.lede {
    margin: 0 0 26px; max-width: 56ch; font-size: clamp(15px, 1.5vw, 18px); color: var(--ink-soft);
    opacity: 0; animation: rise .9s .46s ease forwards;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px;
         opacity: 0; animation: rise .9s .58s ease forwards; }
.chips li {
    font-size: 13px; color: var(--ink-soft); padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255,255,255,0.45);
    transition: background .2s, border-color .2s, transform .2s;
}
.chips li:hover { background: #fff; border-color: var(--line-strong); transform: translateY(-2px); }

/* stats strip */
.stats {
    display: flex; flex-wrap: wrap; gap: 0; margin: 30px 0 0;
    border-top: 1px solid var(--line); padding-top: 20px;
    opacity: 0; animation: rise .9s .82s ease forwards;
}
.stats .stat {
    display: flex; flex-direction: column; gap: 3px;
    padding: 0 22px; position: relative;
}
.stats .stat + .stat::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line);
}
.stats .stat:first-child { padding-left: 0; }

.stats .tri { width: 15px; height: 12px; margin-bottom: 5px; opacity: 0; transform-origin: 50% 60%; }
.stats .tri svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stats.run .stat .tri { animation: triSpin .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes triSpin {
    0%   { opacity: 0;   transform: rotate(-140deg) scale(.4); }
    60%  { opacity: .55; }
    100% { opacity: .45; transform: rotate(360deg) scale(1); }
}
.stats .stat:nth-child(1) .tri { animation-delay: .00s; }
.stats .stat:nth-child(2) .tri { animation-delay: .10s; }
.stats .stat:nth-child(3) .tri { animation-delay: .20s; }
.stats .stat:nth-child(4) .tri { animation-delay: .30s; }
.stats .stat:nth-child(5) .tri { animation-delay: .40s; }
.stats .stat:nth-child(6) .tri { animation-delay: .50s; }

.stats .n {
    font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink);
    font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.stats .l { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.stats .l em {
    font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .08em;
    padding: 2px 6px; border-radius: 5px; background: rgba(21,23,28,0.08); color: var(--ink-soft);
}

.cta { display: flex; flex-wrap: wrap; gap: 12px;
       opacity: 0; animation: rise .9s .7s ease forwards; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* footbar */
.footbar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
           font-size: 13px; color: var(--muted); margin-top: 18px;
           opacity: 0; animation: rise .9s .94s ease forwards; }
.markets b { color: var(--ink); font-weight: 600; margin-right: 8px; }
.markets i { color: var(--line-strong); font-style: normal; padding: 0 2px; }
.copy { white-space: nowrap; }

/* ---- contact modal ------------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
         opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; padding: 20px; }
.modal-open .modal { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(21,23,28,0.38); backdrop-filter: blur(6px); }
.modal-card {
    position: relative; width: min(540px, 100%); max-height: 92dvh; overflow: auto;
    padding: 30px clamp(22px, 4vw, 38px) 28px;
    background: rgba(255,255,255,0.86); backdrop-filter: blur(20px) saturate(1.1);
    border: 1px solid rgba(255,255,255,0.7); border-radius: 24px;
    box-shadow: 0 40px 100px rgba(21,23,28,0.3);
    transform: translateY(14px) scale(.98); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.modal-open .modal-card { transform: none; }
.modal-card h2 { margin: 0 0 22px; font-weight: 600; letter-spacing: -0.02em; font-size: clamp(24px, 3vw, 32px); }
.modal-close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(255,255,255,0.6); font-size: 20px; line-height: 1;
    color: var(--ink); cursor: pointer; transition: background .2s, transform .2s;
}
.modal-close:hover { background: #fff; transform: rotate(90deg); }

.cform .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform label { display: grid; gap: 7px; margin-bottom: 14px; }
.cform label > span { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cform input, .cform textarea {
    width: 100%; padding: 12px 14px; background: rgba(255,255,255,0.7);
    border: 1px solid var(--line); border-radius: 12px; outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.cform input:focus, .cform textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(21,23,28,0.08); }
.cform textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fmsg { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.fmsg.success { background: #e4f6ec; color: #176b3f; border: 1px solid #b7e3c8; }
.fmsg.error   { background: #fbe9e9; color: #8a2424; border: 1px solid #efc4c4; }
.fnote { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.fnote a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 620px) {
    :root { --container: calc(100vw - 36px); }
    .t-email { display: none; }
    .topbar-actions .btn { display: none; }      /* CTA lives in the hero on mobile */
    .lede { font-size: 15px; }
    .cta { width: 100%; }
    .cta .btn { flex: 1; }
    .stats { gap: 14px 0; padding-top: 18px; margin-top: 24px; }
    .stats li { width: 33.3%; padding: 0 12px; }
    .stats li:nth-child(3n+1) { padding-left: 0; }
    .stats li:nth-child(3n+1)::before { display: none; }
    .stats .n { font-size: 26px; }
    .stats .l { font-size: 11px; }
    .footbar { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; }
    .cform .frow { grid-template-columns: 1fr; gap: 0; }
}

@media (max-height: 720px) {
    h1 { font-size: clamp(32px, 6vw, 50px); margin-bottom: 14px; }
    .lede { margin-bottom: 18px; }
    .eyebrow { margin-bottom: 12px; }
    .stats { margin-top: 22px; padding-top: 16px; }
    .stats .n { font-size: clamp(24px, 3vw, 32px); }
    .screen { padding: 18px 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .blob { animation: none; }
    .mark-a, .mark-b { animation: none; stroke-dashoffset: 0; }
    h1 .accent::after { animation: none; transform: scaleX(1); }
    .eyebrow, h1, .lede, .stats, .cta, .footbar { animation: none; opacity: 1; }
    .stats .tri { animation: none; opacity: .45; transform: none; }
}
