/* ==========================================================================
   Skonsmo — aurora splash
   Fully fluid: type and spacing scale with the viewport via clamp(), and the
   composition reflows (nav → menu, body → stacked) rather than being scaled.
   ========================================================================== */

:root {
  --frame: clamp(14px, 2.4vw, 44px);          /* gutter around the card      */
  --pad:   clamp(18px, 2.5vw, 46px);          /* card inner padding          */
  --radius: clamp(14px, 1.4vw, 26px);

  --bg: #0a0b0e;
  --card: #0f1115;
  --ink: #f2f5f8;
  --ink-dim: rgba(242, 245, 248, 0.72);
  --ink-faint: rgba(242, 245, 248, 0.55);
  --hairline: rgba(255, 255, 255, 0.13);

  --fs-nav: clamp(0.8rem, 1.02vw, 1.05rem);
  --fs-body: clamp(0.9rem, 1.02vw, 1.05rem);
  --fs-h1: clamp(1.95rem, 4.42vw, 5rem);

  --font: Inter, "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overscroll-behavior: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding: var(--frame);
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ==========================================================================
   AMBIENT — colour that bleeds around the card
   ========================================================================== */

.ambient {
  position: fixed;
  inset: -10%;
  z-index: -1;
  filter: blur(clamp(60px, 9vw, 170px));
  pointer-events: none;
}
.amb { position: absolute; border-radius: 50%; }
.amb-1 { left: 52%; top: -8%;  width: 46%; height: 42%; background: rgba(176, 48, 118, 0.40); }
.amb-2 { left: -6%; top: -6%;  width: 34%; height: 34%; background: rgba(86, 52, 122, 0.34); }
.amb-3 { left: -8%; top: 54%;  width: 40%; height: 44%; background: rgba(20, 92, 104, 0.30); }
.amb-4 { left: 62%; top: 62%;  width: 40%; height: 42%; background: rgba(28, 54, 96, 0.26); }

/* ==========================================================================
   SPLASH CARD
   ========================================================================== */

.card {
  position: relative;
  min-height: calc(100svh - var(--frame) * 2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  isolation: isolate;              /* blends resolve against the card, not the page */
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);

  border-radius: 0;
border: 0;
    background: none;
    box-shadow: none;

        border-radius: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.card-bg {
  position: absolute;
  inset: 0;
  background: var(--card);         /* opaque base — multiply needs a backdrop */
  isolation: isolate;              /* keeps multiply/screen inside the card */
  pointer-events: none;
}

/* ---------- aurora ---------- */

.aurora { position: absolute; inset: 0; }
.aurora-back  { filter: blur(clamp(44px, 6.2vw, 124px)); }
.aurora-mid   { filter: blur(clamp(32px, 4.4vw, 90px)); opacity: 0.85; }
.aurora-front { filter: blur(clamp(30px, 4vw, 80px)); opacity: 0.60; mix-blend-mode: screen; }

.blob { position: absolute; border-radius: 50%; will-change: transform; }

/* broad masses */
.b-purple-l  { left:-10%; top:-18%; width: 46%; height: 40%; background: rgba(110, 80,148,0.90); }
.b-purple-r  { left: 62%; top:-20%; width: 50%; height: 38%; background: rgba(124, 66,146,0.85); }
.b-blue      { left: 20%; top:  6%; width: 50%; height: 40%; background: rgba( 36, 74,156,0.90); }
.b-teal      { left: 14%; top: 34%; width: 56%; height: 44%; background: rgba( 18,152,188,0.95); }
.b-blue-r    { left: 52%; top: 22%; width: 48%; height: 46%; background: rgba( 28, 98,156,0.90); }
.b-navy-l    { left:-16%; top: 22%; width: 34%; height: 58%; background: rgba( 16, 38, 56,0.95); }
.b-slate-r   { left: 74%; top: 26%; width: 42%; height: 54%; background: rgba( 20, 40, 58,0.90); }
.b-coral     { left: 32%; top: -2%; width: 20%; height: 18%; background: rgba(220,116, 88,0.97); }

/* mid-scale lobes — these keep the field from blurring into one flat wash */
.b-turq-core { left: 40%; top: 40%; width: 26%; height: 22%; background: rgba( 46,196,190,0.90); }
.b-cyan      { left: 20%; top: 44%; width: 22%; height: 20%; background: rgba( 30,170,190,0.80); }
.b-blue-lobe { left: 46%; top: 14%; width: 24%; height: 20%; background: rgba( 44, 92,170,0.80); }

/* in front of the units */
.b-glow      { left: 46%; top: 46%; width: 22%; height: 18%; background: rgba( 80,235,205,0.90); }
.b-warm      { left: 34%; top:  4%; width: 16%; height: 13%; background: rgba(232,150,118,0.75); }

@media (prefers-reduced-motion: no-preference) {
  .blob { animation: drift var(--dur, 26s) ease-in-out infinite alternate; }
  .b-purple-r  { --dur: 29s; animation-delay:  -7s; }
  .b-blue      { --dur: 31s; animation-delay:  -4s; }
  .b-teal      { --dur: 37s; animation-delay: -11s; }
  .b-blue-r    { --dur: 34s; animation-delay: -15s; }
  .b-navy-l    { --dur: 41s; animation-delay:  -3s; }
  .b-slate-r   { --dur: 33s; animation-delay:  -9s; }
  .b-coral     { --dur: 23s; animation-delay:  -6s; }
  .b-turq-core { --dur: 19s; animation-delay:  -2s; }
  .b-cyan      { --dur: 27s; animation-delay: -13s; }
  .b-blue-lobe { --dur: 25s; animation-delay:  -8s; }
  .b-glow      { --dur: 21s; animation-delay:  -5s; }
  .b-warm      { --dur: 24s; animation-delay: -10s; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -3%, 0) scale(1.14); }
}

/* ---------- the units ---------- */

.card-products {
  /* Sized as large as the card allows without ever cropping a unit.
     The units span 90.8% of the file's width and 67.1% of its height, so the
     visible group is 1.362x the rendered image HEIGHT. Capping that group at
     94% of the card width gives the 0.69 factor below; min() then takes
     whichever of card-height or card-width is the binding constraint.
     On a ~1512px laptop this lands within a couple of percent of the file's
     intrinsic 1536x1024. Raise 0.94 toward 1 for an even wider group.
     --product-base is where the units' feet sit, as a % of card height. */
  --product-cap: calc(0.69 * (100vw - 2 * var(--frame)));
  --product-h: min(100%, var(--product-cap));
  --product-base: 88%;

  position: absolute;
  height: var(--product-h);
  width: auto;
  max-width: none;                 /* the formula above governs the size */
  /* 0.8203 = how far down the file the units' feet sit */
  top: calc(var(--product-base) - 0.8203 * var(--product-h));
  left: 50%;
  transform: translateX(-54%);
  /* White field is an exact no-op under multiply, so no knockout threshold is
     needed — and the aurora beneath colours the metal. brightness() lifts the
     flat 254 field to a true 255 so it leaves no rectangle at all. */
  mix-blend-mode: multiply;
  filter: brightness(1.025);
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, rgba(0,0,0,0.45) 16%, #000 34%);
          mask-image: linear-gradient(180deg, transparent 4%, rgba(0,0,0,0.45) 16%, #000 34%);
}

/* ---------- legibility scrims ---------- */

.card-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,14,0.38) 0%, rgba(10,11,14,0) 13%),
    linear-gradient(180deg, rgba(10,11,14,0) 40%, rgba(10,11,14,0.28) 62%,
                            rgba(10,11,14,0.78) 80%, rgba(10,11,14,0.93) 100%);
}

/* ==========================================================================
   CARD CONTENT
   ========================================================================== */

.card-inner {
  position: relative;              /* no z-index: keeps the brand blend working */
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: var(--pad) var(--pad) clamp(20px, 3.5vw, 62px);
}

/* ---------- masthead ---------- */

.masthead {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
}

.brand { display: block; line-height: 0; flex: none; }
.brand img {
  display: block;
  height: clamp(15px, 1.24vw, 26px);
  width: auto;
  /* Supplied wordmark is black art on an opaque white plate; invert + screen
     drops the plate against the card. Remove both lines to use the raw file. */
  filter: invert(1);
  mix-blend-mode: screen;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.44vw, 26px);
  font-size: var(--fs-nav);
  color: var(--ink-dim);
}
.nav a { transition: color 0.18s ease; white-space: nowrap; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }

.collab {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-left: clamp(14px, 2.1vw, 38px);
  font-size: var(--fs-nav);
  color: var(--ink);
  white-space: nowrap;
  flex: none;
}
.collab .ico { width: 1.35em; height: 1.35em; flex: none; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.collab:hover .ico { transform: translateX(0.14em); }
.collab .ico { transition: transform 0.22s ease; }

.burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  padding: 0;
  place-items: center;
  align-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  cursor: pointer;
}
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.2s ease; }
body.nav-open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.nav-open .burger span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- body ---------- */

.card-body {
  margin-top: auto;                            /* holds the aurora open above */
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 56px);
}

.copy { min-width: 0; }

.copy h1 {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: 1.054;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.copy p {
  margin: clamp(14px, 1.75vw, 30px) 0 0;
  max-width: 56ch;
  font-size: var(--fs-body);
  line-height: 1.53;
  color: var(--ink-dim);
}

/* ---------- buttons ---------- */

.cta { display: flex; display: none; flex: none; }

.btn {
  display: grid;
  place-items: center;
  min-width: clamp(140px, 14.3vw, 230px);
  padding: clamp(16px, 1.95vw, 29px) clamp(14px, 1.9vw, 26px);
  font-size: var(--fs-nav);
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn-solid { background: #fff; color: #0d0f13; }
.btn-solid:hover { background: #dfe4ea; }

/* ---------- partners ---------- */

.partners {
  margin-top: clamp(22px, 3.4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 30px);
  flex: none;
  display: none;
}
/* Placeholder — swap each for <img class="slot" src="…" alt="…"> */
.slot {
  height: clamp(22px, 2.4vw, 40px);
  width: auto;
  aspect-ratio: var(--ar, 4);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  flex: none;
}
img.slot { background: none; border: 0; border-radius: 0; opacity: 0.62; aspect-ratio: auto; }

/* ==========================================================================
   BELOW THE FOLD
   ========================================================================== */

.stack {
  display: block;
  margin-top: 0;
  padding-top: var(--frame);
  background: #fff;
  color: #0a0b0e;
}

.stack .eyebrow,
.stack .foot { color: rgba(10, 11, 14, 0.55); }
.stack .panel p { color: rgba(10, 11, 14, 0.72); }
.stack .product-row,
.stack .rows li,
.stack .feed li { border-color: rgba(10, 11, 14, 0.12); }
.stack .link { border-color: rgba(10, 11, 14, 0.35); }
.stack .tile { border-color: rgba(10, 11, 14, 0.12); }

.panel {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 48px);
  padding: clamp(26px, 3.6vw, 54px) var(--pad);
  /*
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  */
  scroll-margin-top: var(--frame);
}
.panel + .panel { margin-top: var(--frame); }

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.panel-body > :first-child { margin-top: 0; }
.panel-body > :last-child { margin-bottom: 0; }

.panel h2 {
  margin: 0 0 0.55em;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.panel p { margin: 0 0 16px; max-width: 52ch; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-dim); }

.product-list { display: grid; gap: clamp(34px, 5vw, 78px); }

.product-row {
  display: grid;
  grid-template-columns: minmax(150px, 28%) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 84px);
  align-items: start;
  padding-bottom: clamp(34px, 5vw, 78px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.product-row:last-child { padding-bottom: 0; border-bottom: 0; }

.product-media { min-width: 0; }
.product-media img {
  display: block;
  width: min(100%, 240px);
  height: auto;
  margin: 0 auto;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.product-copy {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(16px, 2vw, 28px);
  min-width: 0;
}
.product-copy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.product-description { min-width: 0; }
.product-description p { margin-bottom: 1.2em; }
.product-description p:last-child { margin-bottom: 0; }

.rows { margin: 0; padding: 0; list-style: none; }
.rows li {
  display: flex; gap: 1.1em;
  padding: 0.85em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 300;
}
.rows li:last-child { border-bottom: 0; }
.rows span { color: var(--ink-faint); font-size: 0.7em; padding-top: 0.45em; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.tile { padding: clamp(16px, 1.6vw, 24px); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; }
.tile h3 { margin: 0 0 0.4em; font-size: 1.05rem; font-weight: 500; }
.tile p { font-size: 0.92rem; }

.feed { margin: 0; padding: 0; list-style: none; }
.feed li {
  display: flex; gap: 1.2em; flex-wrap: wrap;
  padding: 0.8em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-body);
}
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--ink-faint); min-width: 7em; }

.link { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }

.contact-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(10, 11, 14, 0.35);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.contact-link:hover { border-color: currentColor; }

.contact-dialog {
  width: min(92vw, 580px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #0a0b0e;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
}
.contact-dialog::backdrop {
  background: rgba(5, 7, 10, 0.72);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.contact-form { padding: clamp(24px, 5vw, 44px); }
.contact-form-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.contact-form-head h2 { margin: 4px 0 6px; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 400; }
.contact-kicker { margin: 0; color: rgba(10, 11, 14, 0.52); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-recipient { margin: 0; color: rgba(10, 11, 14, 0.62); }
.dialog-close {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(10, 11, 14, 0.14);
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.field { display: grid; gap: 7px; margin-top: 18px; font-size: 0.85rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(10, 11, 14, 0.2);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 2px solid #176b80; outline-offset: 2px; }
.bot-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: 16px 0 0; color: rgba(10, 11, 14, 0.7); font-size: 0.85rem; }
.contact-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.contact-actions button { padding: 11px 17px; border-radius: 999px; font: inherit; cursor: pointer; }
.form-cancel { border: 1px solid rgba(10, 11, 14, 0.18); background: #fff; color: inherit; }
.form-submit { border: 1px solid #0a0b0e; background: #0a0b0e; color: #fff; }
.form-submit:disabled { cursor: wait; opacity: 0.58; }

.foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: var(--frame);
  padding: clamp(18px, 2vw, 28px) var(--pad);
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* --- nav collapses to a menu --- */
@media (max-width: 980px) {
  .burger { display: grid; }
  .collab { margin-left: auto; }

  .nav {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 5;
    margin-left: 0;
    display: grid;
    gap: 2px;
    min-width: 230px;
    padding: 10px;
    background: rgba(14, 16, 22, 0.9);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 11px 12px; border-radius: 8px; }
  .nav a:hover { background: rgba(255, 255, 255, 0.07); }
}

/* --- headline block stacks above the buttons --- */
@media (max-width: 860px) {
  .card { min-height: 0; }
  .card-inner { min-height: 100svh; }

  .card-products { --product-base: 56%; }

  .card-body { flex-direction: column; align-items: stretch; }
  .cta { width: 100%; }
  .btn { flex: 1; min-width: 0; }

  .panel { grid-template-columns: minmax(0, 1fr); }

  .product-row { grid-template-columns: minmax(130px, 24%) minmax(0, 1fr); }
}

/* --- phones --- */
@media (max-width: 640px) {
  .copy h1 br.br-lg, .copy p br.br-lg { display: none; }
}

@media (max-width: 560px) {
  .collab { display: none; }
  .burger { margin-left: auto; }



  .cta { flex-direction: column; }
  .btn { padding: 17px 20px; }

  .partners { flex-wrap: wrap; justify-content: flex-start; gap: 16px 22px; }
  .slot { height: 24px; }

  .product-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-media img { width: min(68vw, 240px); }

  .feed time { min-width: 0; width: 100%; }
}

/* --- very short landscape windows --- */
@media (max-height: 620px) and (min-width: 861px) {
  .card, .card-inner { min-height: 620px; }
}
