:root { --df: 'Clash Display'; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: #050A14; color: #E6EEF5; font-family: 'Familjen Grotesk', system-ui, sans-serif; }
a { text-decoration: none; color: inherit; }

.hero { position: fixed; inset: 0; height: 100vh; z-index: 0; overflow: hidden;
  background: radial-gradient(1200px 760px at 50% 38%, #0A1830 0%, #071022 45%, #050A14 100%); }
#stage { position: fixed; inset: 0; display: block; width: 100%; height: 100vh; z-index: 4; pointer-events: none; }
/* a pixel-perfect clone of the page background, masked to the strip behind the
   word with a feathered bottom edge — cards slide underneath and melt away */
.word-veil { position: fixed; inset: 0; height: 100vh; z-index: 3; pointer-events: none;
  background: radial-gradient(1200px 760px at 50% 38%, #0A1830 0%, #071022 45%, #050A14 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--vs, 150px), transparent var(--ve, 245px));
  mask-image: linear-gradient(to bottom, #000 var(--vs, 150px), transparent var(--ve, 245px)); }
.hero-ui { position: absolute; inset: 0; pointer-events: none; }
.hero-mid { position: absolute; left: 0; right: 0; top: 76%; text-align: center; will-change: transform, opacity; }
.hero-name { font-family: var(--df), 'Familjen Grotesk', sans-serif; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.03em; }
.hero-line { margin-top: 10px; font-size: 15.5px; color: #7E93A8; }
.hero-svc { margin-top: 8px; font-size: 13px; color: #5F7285; letter-spacing: .03em; }
.hero-cta { pointer-events: auto; display: inline-block; margin-top: 18px; color: #4FB0E8; font-size: 15.5px; font-weight: 600; }
.hero-fallback { position: absolute; left: 0; right: 0; top: 34%; text-align: center;
  font-family: var(--df), 'Familjen Grotesk', sans-serif; font-size: clamp(48px, 8vw, 96px); font-weight: 600; letter-spacing: -.035em; }

/* no-WebGL fallback: hide the particle layers and the journey, center the
   brand block with a static igloo — the cards follow right after the hero */
.no3d #stage, .no3d .word-veil, .no3d .featured { display: none; }
.no3d .hero { position: absolute; }  /* scrolls away normally — no bleed under the frosted cards */
.no3d .hero-mid { top: 50%; transform: translateY(-54%) !important; opacity: 1 !important; visibility: visible !important; }
.no3d .hero-mid::before { content: ''; display: block; width: min(64vw, 330px); height: min(50vw, 260px);
  margin: 0 auto 4px; background: url('/assets/img/igloo-mark.svg') center / contain no-repeat; }
#boot { position: fixed; inset: 0; background: #050A14; z-index: 120; transition: opacity .65s ease; }
#boot.done { opacity: 0; pointer-events: none; }
.cursor-dot { position: fixed; width: 7px; height: 7px; border-radius: 50%; background: #4FB0E8; box-shadow: 0 0 8px rgba(79,176,232,.45);
  pointer-events: none; z-index: 40; transform: translate(-50%,-50%); transition: opacity .3s; opacity: 0; }

.spacer { height: 100vh; }
.featured { position: relative; z-index: 3; margin-bottom: 55vh; }
.fpanel { min-height: 180vh; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 11vh; }
.fmeta { position: fixed; top: var(--cap-hold, 68vh); left: 0; right: 0; z-index: 3;
  text-align: center; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.fmeta a { pointer-events: auto; }
.fmeta h2 { font-family: var(--df), 'Familjen Grotesk', sans-serif; font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.03em; }
.fmeta p { margin-top: 9px; font-size: 15px; color: #7E93A8; }
.fmeta a { display: inline-block; margin-top: 16px; color: #4FB0E8; font-size: 14.5px; font-weight: 600; }
.content { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 0 48px 60px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.wcard { display: flex; flex-direction: column; padding: 20px 22px 22px; text-align: left;
  background: rgba(9, 18, 30, .38); border: 1px solid rgba(230,238,245,.14); border-radius: 14px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: inherit; font: inherit;
  transition: border-color .2s, transform .2s; }
.wcard:hover, .wcard:focus-visible { border-color: #4FB0E8; transform: translateY(-3px); outline: none; }
.wcard .whead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wcard .n { font-family: var(--df), 'Familjen Grotesk', sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.wcard:hover .n, .wcard:focus-visible .n { color: #4FB0E8; }
.wcard .ic { color: #5F7285; transition: color .2s; flex: none; }
.wcard .ic svg { width: 16px; height: 16px; display: block; }
.wcard:hover .ic, .wcard:focus-visible .ic { color: #4FB0E8; }
.wcard .d { font-size: 13px; color: #7E93A8; margin-top: 9px; line-height: 1.5; height: 39px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wcard.dead { cursor: pointer; }

.shot-modal { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(5,10,20,.92); align-items: center; justify-content: center; cursor: zoom-out; }
.shot-modal.open { display: flex; }
.shot-modal img { max-width: 86vw; max-height: 82vh; border-radius: 10px; border: 1px solid rgba(230,238,245,.16); }

.visually-hidden { position: absolute !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; height: 1px !important; width: 1px !important; overflow: hidden !important; }

.cta-row { text-align: center; padding-top: 44px; }
.cta-btn { cursor: pointer; border: none; border-radius: 12px; padding: 15px 30px;
  background: #4FB0E8; color: #050A14; font-family: var(--df), 'Familjen Grotesk', sans-serif;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; transition: background .2s, transform .2s; }
.cta-btn:hover, .cta-btn:focus-visible { background: #6BC1F0; transform: translateY(-2px); outline: none; }

.contact-modal { display: none; position: fixed; inset: 0; z-index: 95; background: rgba(5,10,20,.9); align-items: center; justify-content: center; padding: 20px; }
.contact-modal.open { display: flex; }
.cpanel { position: relative; width: min(440px, 100%); background: rgba(9,18,30,.92); border: 1px solid rgba(230,238,245,.16); border-radius: 16px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 30px 30px 28px; }
.cpanel h2 { font-family: var(--df), 'Familjen Grotesk', sans-serif; font-size: 24px; font-weight: 600; letter-spacing: -.02em; padding-bottom: 20px; }
.cclose { position: absolute; top: 26px; right: 22px; width: 36px; height: 36px; border: none; background: none; color: #5F7285;
  font-size: 26px; line-height: 1; cursor: pointer; transition: color .2s; }
.cclose:hover { color: #E6EEF5; }
.cpanel form { display: grid; gap: 12px; }
.cpanel input[type=text], .cpanel input[type=email], .cpanel textarea { width: 100%; padding: 13px 15px;
  background: rgba(5,10,20,.6); border: 1px solid rgba(230,238,245,.16); border-radius: 10px;
  color: #E6EEF5; font-family: 'Familjen Grotesk', sans-serif; font-size: 14.5px; transition: border-color .2s; }
.cpanel input:focus, .cpanel textarea:focus { outline: none; border-color: #4FB0E8; }
.cpanel textarea { resize: vertical; min-height: 110px; }
.csubmit { cursor: pointer; border: none; border-radius: 10px; padding: 13px;
  background: #4FB0E8; color: #050A14; font-family: 'Familjen Grotesk', sans-serif; font-size: 15px; font-weight: 700; transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.csubmit svg { width: 15px; height: 15px; }
.csubmit:hover, .csubmit:focus-visible { background: #6BC1F0; outline: none; }
.csubmit:disabled { opacity: .6; cursor: default; }
.cstatus { font-size: 13px; text-align: center; margin-top: 4px; color: #7E93A8; }
.cstatus.ok { color: #3FBF7F; }
.cstatus.err { color: #E06C6C; }
.cstatus:empty { display: none; }

@media (max-width: 720px) {
  .content { padding: 0 22px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wcard { transition: none; }
}
