/* =========================================================
   briem.is — Benedikt Briem
   Design system: "the caret" · Aurora edition
   Bricolage Grotesque (display) · Hanken Grotesk (body) · JetBrains Mono (labels)
   ========================================================= */

:root {
  /* surfaces — deep navy, crypto-landing dark */
  --bg:        #070A14;
  --bg-2:      #090D18;
  --bg-3:      #0C1120;
  --card:      #0E1422;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* glass */
  --glass:     rgba(255, 255, 255, 0.035);
  --glass-2:   rgba(255, 255, 255, 0.06);

  /* text */
  --text:      #EAF0FB;
  --muted:     #93A0B8;
  --muted-2:   #7C89A6;

  /* accent — blue → cyan (no purple) */
  --blue:      #5B8CFF;   /* links, caret, highlight */
  --blue-deep: #2F6BFF;   /* accent fill */
  --blue-btn:  #2757CF;   /* solid CTA fill (AA með hvítum texta) */
  --cyan:      #38BDF8;   /* glows, áherslur */
  --up:        #34D399;   /* ticker "gain" arrows */

  --glow-blue: rgba(47, 107, 255, 0.55);
  --glow-cyan: rgba(56, 189, 248, 0.45);
  --blue-soft: rgba(47, 107, 255, 0.14);

  /* type */
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* layout */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;

  --s-section: clamp(4.5rem, 11vw, 9rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; color-scheme: dark; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

a, button { touch-action: manipulation; }

/* ambient aurora — fixed, behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 48% at 78% -8%, rgba(47,107,255,0.26), transparent 70%),
    radial-gradient(46% 42% at 6% 4%, rgba(56,189,248,0.16), transparent 72%),
    radial-gradient(34% 38% at 88% 82%, rgba(52,211,153,0.10), transparent 70%),
    radial-gradient(40% 40% at 50% 120%, rgba(47,107,255,0.14), transparent 70%);
}

img, svg { display: block; max-width: 100%; }

.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

::selection { background: var(--blue-deep); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* accent text utility */
.grad-text {
  color: var(--cyan);
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--text); color: var(--bg);
  padding: 0.6rem 1rem; border-radius: 8px;
  z-index: 200; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- the caret (signature) ---------- */
.caret {
  display: inline-block;
  width: 0.34em;
  height: 0.92em;
  margin-left: 0.12em;
  vertical-align: -0.08em;
  background: var(--cyan);
  border-radius: 1px;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
  animation: blink 1.15s steps(1) infinite;
}
.caret.big { height: 0.78em; width: 0.28em; }
@keyframes blink { 50% { opacity: 0; } }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  opacity: 0.5;
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header:hover,
.site-header:focus-within {
  opacity: 1;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.logo-mark {
  width: 36px;
  height: 36px;
  display: block;
}
.footer-brand .logo-mark { width: 40px; height: 40px; }
/* sími + netfang í header */
.header-contact {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-contact .btn {
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
}
.header-contact .ico { width: 16px; height: 16px; }

@media (max-width: 679px) {
  .header-contact .hc-label { display: none; }
  .header-contact .btn {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }
  .header-contact .ico { width: 18px; height: 18px; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translate(2px, -2px); }

/* solid primary CTA */
.btn-primary {
  background: var(--blue-btn);
  color: #fff;
  box-shadow: 0 8px 26px -12px var(--glow-blue);
}
.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -14px var(--glow-blue);
}

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding-top: clamp(2rem, 6vh, 4rem);
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  z-index: -2;
  top: -30%;
  left: 60%;
  width: min(1100px, 130%);
  aspect-ratio: 1.4 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(47,107,255,0.38), transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(56,189,248,0.28), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  animation: glowDrift 16s ease-in-out infinite alternate;
}
.hero-glow--2 {
  top: 30%;
  left: 8%;
  width: min(720px, 90%);
  transform: none;
  background:
    radial-gradient(ellipse at 40% 50%, rgba(56,189,248,0.20), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(52,211,153,0.14), transparent 65%);
  animation: glowDrift2 20s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to   { transform: translateX(-44%) translateY(6%) scale(1.12); }
}
@keyframes glowDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4%, -6%) scale(1.15); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 30%, transparent 80%);
  opacity: 0.5;
}

/* tónjafnari — hlaðvarps-undirskrift neðst í hero */
.hero-eq {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: clamp(50px, 11vh, 100px);
  z-index: -1;
  opacity: 0.32;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.hero-eq svg { width: 100%; height: 100%; display: block; }
.hero-eq rect {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0.2);
  animation: eqBounce 1.9s ease-in-out infinite alternate;
}
.hero-eq rect:nth-child(5n+1) { animation-duration: 1.5s; animation-delay: -0.4s; }
.hero-eq rect:nth-child(5n+2) { animation-duration: 2.3s; animation-delay: -1.1s; }
.hero-eq rect:nth-child(5n+3) { animation-duration: 1.7s; animation-delay: -0.7s; }
.hero-eq rect:nth-child(5n+4) { animation-duration: 2.1s; animation-delay: -1.6s; }
.hero-eq rect:nth-child(7n+2) { animation-duration: 1.3s; animation-delay: -0.2s; }
.hero-eq rect:nth-child(3n)   { animation-duration: 2.5s; animation-delay: -1.9s; }
@keyframes eqBounce {
  from { transform: scaleY(0.12); }
  to   { transform: scaleY(0.85); }
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

/* ---------- fyrri verk: tölva + sími ---------- */
.hero-showcase {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 760px;
  isolation: isolate;
  padding-bottom: 9%;
}
.hero-showcase .shot-glow {
  background: radial-gradient(closest-side, rgba(47,107,255,0.6), transparent);
}

/* Betkastið í tölvu-ramma */
.showcase-desktop {
  display: block;
  width: 88%;
  transition: transform 0.35s var(--ease);
}
.showcase-desktop:hover { transform: translateY(-5px); }
.showcase-desktop .browser {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.85);
}
.showcase-desktop img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1000;
  object-fit: cover;
  object-position: top center;
}

/* Chess After Dark í síma-ramma */
.showcase-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 31%;
  display: block;
  z-index: 2;
  transition: transform 0.35s var(--ease);
}
.showcase-phone:hover { transform: translateY(-5px); }
.phone {
  position: relative;
  display: block;
  padding: 7px;
  border-radius: clamp(20px, 4.5vw, 30px);
  border: 1px solid var(--line-2);
  background: var(--card);
  box-shadow:
    0 30px 60px -25px rgba(0,0,0,0.9),
    0 0 50px -18px var(--glow-blue);
}
.phone-notch {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 2;
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  object-position: top center;
  border-radius: clamp(14px, 3.5vw, 24px);
}

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}
.hero-title > span { display: block; }
.hl { position: relative; display: inline-block; white-space: nowrap; }
.hl .grad-text { position: relative; z-index: 1; }
.hl-bar {
  position: absolute;
  left: 0; bottom: 0.04em;
  width: 100%; height: 0.09em;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 18px var(--glow-cyan);
  transform: scaleX(0);
  transform-origin: left;
  animation: barIn 0.8s var(--ease) 1.1s forwards;
}
@keyframes barIn { to { transform: scaleX(1); } }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.5;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* þjónustulína undir hnöppunum */
.hero-services {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--line);
  max-width: 420px;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

/* scroll-vísir neðst í hero */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(4rem, 12vh, 7rem);
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.scroll-cue:hover { color: var(--cyan); border-color: var(--cyan); }
.scroll-cue .ico {
  width: 18px;
  height: 18px;
  animation: cueBob 2.2s ease-in-out infinite;
}
@keyframes cueBob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}
@media (max-height: 700px) { .scroll-cue { display: none; } }


/* =========================================================
   SECTIONS (generic)
   ========================================================= */
.section { padding-block: var(--s-section); position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--cyan);
}
.section-label .idx { color: var(--muted-2); }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.section-lede { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 52ch; }

/* =========================================================
   WORK / FEATURES
   ========================================================= */
.features { display: flex; flex-direction: column; gap: clamp(3.5rem, 8vw, 7rem); }

.feature { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }

.feature-shot { position: relative; display: block; isolation: isolate; }
.shot-glow {
  position: absolute; inset: -14% -10% -20%; z-index: -1;
  border-radius: 50%; filter: blur(64px); opacity: 0.45;
  transition: opacity 0.45s var(--ease);
}
.feature.cad .shot-glow { background: radial-gradient(closest-side, rgba(47,107,255,0.65), transparent); }
.feature.bet .shot-glow { background: radial-gradient(closest-side, rgba(34,197,94,0.55), transparent); }
.feature-shot:hover .shot-glow { opacity: 0.8; }

.feature-shot .browser {
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--ink-3);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.85);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.feature-shot:hover .browser { transform: translateY(-6px); box-shadow: 0 46px 80px -34px rgba(0,0,0,0.95); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.browser-bar em { margin-left: auto; font-style: normal; color: var(--muted-2); font-size: 0.7rem; }
.feature-shot img { width: 100%; height: auto; display: block; aspect-ratio: 1600 / 1000; object-fit: cover; object-position: top center; }

.feature-detail h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4.5vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 0.85rem; }
.feature-detail > p { color: var(--muted); font-size: clamp(1rem, 2vw, 1.1rem); max-width: 46ch; }

.feature-stats { display: flex; gap: clamp(1.25rem, 4vw, 2.5rem); margin-top: 1.75rem; }
.feature-stats dt { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -0.02em; line-height: 1; }
.feature-stats dd { margin-top: 0.4rem; color: var(--muted-2); }

.feature-note { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1.75rem; }
.feature-note span { position: relative; padding-left: 1.2rem; color: var(--text); font-size: 0.96rem; }
.feature-note span::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 1px; background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.6); }

.feature-detail .btn { margin-top: 1.85rem; }


/* =========================================================
   TESTIMONIAL
   ========================================================= */
.quote-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.testimonial {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.testimonial blockquote p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.testimonial figcaption {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.testimonial-name { font-weight: 700; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { text-align: center; overflow: hidden; isolation: isolate; }
.contact-inner {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  overflow: hidden;
}
.contact-inner::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 50% -10%, rgba(47,107,255,0.28), transparent 65%),
    radial-gradient(60% 80% at 50% 110%, rgba(56,189,248,0.22), transparent 65%);
}
.contact .section-label { justify-content: center; color: var(--cyan); margin-bottom: 1.25rem; }
.contact-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-inner { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer-brand .wordmark { font-size: 1.6rem; margin-bottom: 0.75rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; }
.footer-nav a { color: var(--muted); font-weight: 500; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; }
.to-top { color: var(--muted); transition: color 0.2s var(--ease); }
.to-top:hover { color: var(--cyan); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 600px) {
}

@media (min-width: 760px) {
  /* spjaldtölvur: texti og verk hlið við hlið */
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}

@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 0.95fr 1.05fr; }

  /* alternating feature showcase */
  .feature { grid-template-columns: 1.08fr 0.92fr; }
  .feature:nth-child(even) { grid-template-columns: 0.92fr 1.08fr; }
  .feature:nth-child(even) .feature-shot { order: 2; }
  .feature:nth-child(even) .feature-detail { order: 1; }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .caret { opacity: 1; }
  .js .reveal, .reveal { opacity: 1; transform: none; }
  .hl-bar { transform: scaleX(1); }
}

/* =========================================================
   SCROLL-DRIVEN EFFEKTAR (CSS scroll timeline, ekkert JS)
   ========================================================= */
.scroll-progress { display: none; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* framvindulína efst */
    .scroll-progress {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--cyan);
      box-shadow: 0 0 10px var(--glow-cyan);
      transform-origin: left;
      z-index: 200;
      animation: progressGrow linear both;
      animation-timeline: scroll();
    }

    /* hero: parallax þegar skrollað er frá */
    .hero-copy {
      animation: heroLift linear both;
      animation-timeline: scroll();
      animation-range: 0vh 90vh;
    }
    .hero-showcase {
      animation: showcaseDrift linear both;
      animation-timeline: scroll();
      animation-range: 0vh 90vh;
    }
    .hero-eq {
      animation: eqFade linear both;
      animation-timeline: scroll();
      animation-range: 0vh 60vh;
    }

    /* verkakaflinn: skjáskotin setjast inn í þrívídd */
    .feature-shot {
      animation: shotSettle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    .feature-detail {
      animation: detailRise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    /* tilvitnunin zoomar inn */
    .testimonial blockquote p {
      animation: quoteZoom linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    /* hafðu samband: kortið lyftist inn */
    .contact-inner {
      animation: cardRise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }
  }
}

@keyframes progressGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes heroLift {
  to { transform: translateY(-9vh); opacity: 0; }
}
@keyframes showcaseDrift {
  to { transform: translateY(7vh) scale(0.95); opacity: 0.2; }
}
@keyframes eqFade {
  to { opacity: 0.05; }
}
@keyframes shotSettle {
  from { transform: perspective(1100px) translateY(64px) rotateX(9deg) scale(0.94); opacity: 0.25; }
}
@keyframes detailRise {
  from { transform: translateY(48px); opacity: 0.1; }
}
@keyframes quoteZoom {
  from { transform: scale(0.88); opacity: 0.15; }
}
@keyframes cardRise {
  from { transform: translateY(56px) scale(0.96); opacity: 0.2; }
}
