/* ==========================================================================
   Antoft Web - design tokens
   Locked theme: dark grey, restrained. One accent hue (mint), used sparingly
   as text/links/one CTA, not as decoration. One radius system:
     - pills (999px) for interactive buttons
     - 16px for image frames
     - 10px for form inputs
   ========================================================================== */

:root{
  --bg: #444444;
  --bg-elev: #4d4d4d;
  --text: #f4f3ef;
  --text-muted: #c7c6c1;
  --text-faint: #b3b3b3;
  --accent: #49ff9d;
  --accent-strong: #7dffb8;
  --accent-solid: #49ff9d;
  --accent-solid-hover: #33e88a;
  --accent-soft: rgba(73,255,157,0.12);
  --ink: #17181a;
  --border: rgba(244,243,239,0.14);
  --border-strong: rgba(244,243,239,0.26);

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --container: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --font-display: "General Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.4s;

  --shadow-card: 0 14px 34px -18px rgba(0,0,0,0.5);
}

/* ==========================================================================
   Theme zones — the page alternates dark/light bands as you scroll,
   stitched together with wave dividers. Every component below already
   reads its colors from custom properties, so a zone just needs to
   redeclare the tokens; nothing else has to know it changed.
   ========================================================================== */

.theme-zone--dark{
  background: var(--bg);
  color: var(--text);
}

.theme-zone--light{
  --bg: #f5f4ef;
  --bg-elev: #ffffff;
  --text: #201f1c;
  --text-muted: #5c5a54;
  --text-faint: #737373;
  --accent: #0e9f5c;
  --accent-strong: #0b7d48;
  --accent-soft: rgba(14,159,92,0.1);
  --border: rgba(32,31,28,0.1);
  --border-strong: rgba(32,31,28,0.18);
  --shadow-card: 0 14px 34px -18px rgba(32,31,28,0.18);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}

.theme-wave{
  position: relative;
  height: 64px;
  margin-top: -1px;
  overflow: hidden;
  line-height: 0;
}
.theme-wave svg{
  display: block;
  width: 200%;
  height: 100%;
  animation: theme-wave-drift 20s linear infinite;
}

.theme-wave--to-light{ background: #444444; }
.theme-wave--to-light path{ fill: #f5f4ef; }

.theme-wave--to-dark{ background: #f5f4ef; }
.theme-wave--to-dark path{ fill: #444444; }

@keyframes theme-wave-drift{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@media (max-width: 768px){
  .theme-wave{ height: 40px; }
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body{
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fixed grain overlay: breaks up the flat charcoal fields */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

p{ margin: 0; text-wrap: pretty; }

button{ font-family: inherit; }

::selection{ background: var(--accent-soft); color: var(--text); }

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

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section{ padding-block: clamp(4rem, 8vw, 6rem); position: relative; }

.section--line{ border-top: 1px solid var(--border); }

.section--tint{ background: var(--bg-elev); }

/* ==========================================================================
   Ambient code drift: faint monospace tokens rising and fading in the
   background, the site's own terminal motif used as atmosphere rather
   than a generic decorative blob. Placed before the real content in the
   markup, so normal document order layers it underneath.
   ========================================================================== */

.ambient-code{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-code__token{
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  animation: ambient-drift 24s ease-in-out infinite;
}

@keyframes ambient-drift{
  0%{ transform: translateY(16px); opacity: 0; }
  15%{ opacity: 0.16; }
  50%{ transform: translateY(-16px); }
  85%{ opacity: 0.16; }
  100%{ transform: translateY(16px); opacity: 0; }
}

.ambient-code__token--1{ top: 10%; left: 6%;  font-size: 1.7rem; animation-duration: 25s; animation-delay: 0s; }
.ambient-code__token--2{ top: 70%; left: 9%;  font-size: 1.1rem; animation-duration: 19s; animation-delay: 3s; }
.ambient-code__token--3{ top: 18%; left: 90%; font-size: 1.3rem; animation-duration: 28s; animation-delay: 1.5s; }
.ambient-code__token--4{ top: 76%; left: 86%; font-size: 1.6rem; animation-duration: 21s; animation-delay: 5s; }
.ambient-code__token--5{ top: 46%; left: 48%; font-size: 1rem;   animation-duration: 26s; animation-delay: 2s; }
.ambient-code__token--6{ top: 4%;  left: 44%; font-size: 1.2rem; animation-duration: 18s; animation-delay: 4s; }

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  margin-bottom: 0.9rem;
}

.section__head{
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section__head h2{
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.section__head p{
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 52ch;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-solid);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 200;
}
.skip-link:focus{ left: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.btn:active{ transform: scale(0.97); }

.btn--solid{
  background: var(--accent-solid);
  color: var(--ink);
  font-weight: 700;
}
.btn--solid:hover{ background: var(--accent-solid-hover); }

.btn--ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover{ border-color: var(--accent); color: var(--accent-strong); }

.text-link{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.98rem;
  transition: gap var(--dur-fast) var(--ease-out);
}
.text-link:hover{ gap: 0.65rem; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(68,68,68,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.nav.is-scrolled{
  border-bottom-color: var(--border);
  box-shadow: 0 12px 30px -20px rgba(0,0,0,0.6);
}

.nav--light{
  background: rgba(245,244,239,0.82);
}
.nav--light.is-scrolled{
  border-bottom-color: rgba(32,31,28,0.1);
  box-shadow: 0 12px 30px -20px rgba(32,31,28,0.18);
}
.nav--light .nav__logo-prefix{ color: #0e9f5c; transition: color var(--dur-med) var(--ease-out); }
.nav--light .nav__logo-name{ color: #201f1c; transition: color var(--dur-med) var(--ease-out); }
.nav--light .nav-page-link{ color: #5c5a54; transition: color var(--dur-med) var(--ease-out); }
.nav--light .nav-page-link:hover{ color: #201f1c; }
.nav--light .nav-page-link.is-active{ color: #201f1c; }
.nav--light .nav-page-link::after{ background: #0e9f5c; }
.nav--light .nav__burger span{ background: #201f1c; transition: background-color var(--dur-med) var(--ease-out), transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }

.nav__inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}

.nav__logo{
  display: flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  justify-self: start;
}
.nav__logo-prefix{ color: var(--accent-strong); }
.nav__logo-name{ color: var(--text); }

.nav__links{
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 2.5rem;
}

.nav__actions{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-self: end;
}

.nav-page-link{
  position: relative;
  padding-block: 0.25rem;
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-page-link:hover{ color: var(--text); }
.nav-page-link::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right var(--dur-med) var(--ease-out);
}
.nav-page-link:hover::after,
.nav-page-link.is-active::after{ right: 0; }
.nav-page-link.is-active{ color: var(--text); }

.nav__cta{ padding: 0.55rem 1.2rem; font-size: 0.9rem; }

.nav__burger{
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__burger span{
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav__burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu{
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem var(--pad) 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-menu a{
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.mobile-menu .btn{ margin-top: 1rem; align-self: flex-start; }
.mobile-menu.is-open{ display: flex; }

.nav--light .mobile-menu{ border-top-color: rgba(32,31,28,0.1); }
.nav--light .mobile-menu a{ border-bottom-color: rgba(32,31,28,0.1); color: #5c5a54; }

/* ==========================================================================
   Hero (typographic, no imagery)
   ========================================================================== */

.hero{
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 7rem) clamp(3.5rem, 8vw, 5.5rem);
  overflow: clip;
}

.hero__ambient{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(600px 360px at 50% -10%, var(--accent-soft), rgba(73,255,157,0) 65%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero__matrix{
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 20), 1fr);
  grid-template-rows: repeat(var(--rows, 12), 1fr);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

/* Shared tile look, used by the hero background and the work-card reveal */
.matrix-tile{
  --intensity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  cursor: default;
  user-select: none;
  color: var(--accent);
  transition: opacity 0.2s var(--ease-out), text-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.hero__matrix-tile{
  font-size: 0.78rem;
  opacity: calc(0.05 + var(--intensity) * 0.5);
  text-shadow: 0 0 calc(var(--intensity) * 12px) var(--accent);
  transform: scale(calc(1 + var(--intensity) * 0.15));
}
.hero__matrix-tile.is-glitch{ animation: hero-matrix-glitch 0.2s ease; }

@keyframes hero-matrix-glitch{
  0%{ transform: scale(1); color: var(--accent); }
  50%{ transform: scale(1.25); color: var(--text); text-shadow: 0 0 10px var(--accent); }
  100%{ transform: scale(1); color: var(--accent); }
}

.hero__inner{
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__kicker{ justify-content: center; }

.hero__headline{
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  max-width: 22ch;
}
.hero__word--accent{ color: var(--accent); }
.hero__word--muted{ color: var(--text-muted); }

.hero__subtext{
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.hero__cta{
  position: relative;
  margin-top: clamp(2rem, 5vw, 2.75rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__trust{
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.hero__features{
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero__features li{ padding-inline: 1rem; border-left: 1px solid var(--border); }
.hero__features li:first-child{ border-left: none; padding-left: 0; }

/* ==========================================================================
   Statement (pull-quote)
   ========================================================================== */

.statement{ overflow: clip; }

.statement__inner{
  position: relative;
  display: grid;
  grid-template-columns: clamp(3rem, 8vw, 6rem) 1fr;
  column-gap: clamp(1rem, 3vw, 2.5rem);
}

.statement__mark{
  grid-row: 1;
  grid-column: 1;
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.6;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  transform: translateY(0.28em);
  -webkit-text-stroke: 0;
}

.statement__inner p{
  grid-row: 1;
  grid-column: 2;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  max-width: 38ch;
  color: var(--text-muted);
}
.statement__accent{ color: var(--text); }

/* ==========================================================================
   Selected work
   ========================================================================== */

.work{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.work__item--wide{ grid-column: 1 / -1; }
.work__item--wide .work__frame{ aspect-ratio: 16/9; }

.work__frame{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  aspect-ratio: 4/3;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.work__item:hover .work__frame{ transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }

.work__frame img{ width: 100%; height: 100%; object-fit: cover; }

.work__item figcaption{
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.work__item figcaption span{ display: block; }
.work__item figcaption .work__tag{ color: var(--text); font-weight: 600; font-size: 0.94rem; }
.work__item figcaption .work__desc{ margin-top: 0.2rem; color: var(--text-faint); font-size: 0.88rem; }

/* ==========================================================================
   Ydelser / feature cards (icon badge + individually animated glyph)
   ========================================================================== */

.feature-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card{
  position: relative;
  padding: 1.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.feature-card:hover{
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.feature-card h3{ font-size: 1.12rem; margin-bottom: 0.5rem; }
.feature-card p{ color: var(--text-muted); font-size: 0.96rem; max-width: 40ch; }

.feature-card--compact{ padding: 1.5rem; }
.feature-card--compact p{ font-size: 0.92rem; }
.feature-card--wide{ grid-column: 1 / -1; }

/* Icon badge: shared frame, per-icon glyph animates on card hover */
.icon-badge{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
}
.icon-badge svg{ width: 22px; height: 22px; overflow: visible; }
.icon-badge svg *{ transform-box: fill-box; transform-origin: center; }

.icon-code__left, .icon-code__right,
.icon-cart__body, .icon-cart__wheel,
.icon-search__glass, .icon-search__bars,
.icon-headset__wave,
.icon-connect__a, .icon-connect__b,
.icon-focus__tl, .icon-focus__tr, .icon-focus__br, .icon-focus__bl,
.icon-shield__body,
.icon-people__a, .icon-people__b,
.icon-plane__body,
.icon-stack__l1, .icon-stack__l2, .icon-stack__l3,
.icon-pencil__body, .icon-pencil__tip,
.icon-rocket__body, .icon-rocket__window, .icon-rocket__fins,
.icon-grow__b1, .icon-grow__b2, .icon-grow__b3,
.icon-slider__knob, .icon-eye__iris,
.icon-gauge__needle,
.icon-refresh__arc, .icon-cloud__arrow{
  transition: transform 0.35s var(--ease-out);
}
.icon-stack__l2{ transition-delay: 0.05s; }
.icon-stack__l3{ transition-delay: 0.1s; }

/* Webdesign: brackets slide apart, like widening a code editor */
.feature-card:hover .icon-code__left{ transform: translateX(-1.6px); }
.feature-card:hover .icon-code__right{ transform: translateX(1.6px); }

/* Webshop: cart rolls forward, wheels bounce over the bump one after another
   (a rotation would be invisible on a plain filled dot at this size) */
.feature-card:hover .icon-cart__body{ transform: translateX(1.4px); }
.feature-card:hover .icon-cart__wheel{ transform: translateY(-1.1px); }
.icon-cart__wheel:nth-of-type(2){ transition-delay: 0.06s; }

/* SEO & performance: glass tilts into a searching sweep, bars rise */
.feature-card:hover .icon-search__glass{ transform: translate(1.2px, -1.2px) rotate(-10deg); }
.feature-card:hover .icon-search__bars{ transform: scaleY(1.18) translateY(-1px); }

/* Drift & support: a signal ring pings outward from the headset */
.icon-badge--headset::after{
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(0.6);
}
.feature-card:hover .icon-badge--headset::after{
  animation: icon-ping 0.9s var(--ease-out);
}
.feature-card:hover .icon-headset__wave{ transform: scaleY(1.25); }
@keyframes icon-ping{
  0%{ opacity: 0.6; transform: scale(0.6); }
  100%{ opacity: 0; transform: scale(1.6); }
}

/* Personlig service: the two circles draw closer together */
.feature-card:hover .icon-connect__a{ transform: translateX(1.4px); }
.feature-card:hover .icon-connect__b{ transform: translateX(-1.4px); }

/* SEO, hastighed og konvertering: needle sweeps up to a faster reading */
.icon-badge--gauge .icon-gauge__needle{ transform-box: view-box; transform-origin: 12px 16px; }
.feature-card:hover .icon-gauge__needle{ transform: rotate(55deg); }

/* Ærlig rådgivning: compass needle settles on a new heading */
.icon-badge--compass svg{ transform-box: fill-box; }
.feature-card:hover .icon-compass__needle{ animation: icon-compass-settle 0.6s var(--ease-out); }
@keyframes icon-compass-settle{
  0%{ transform: rotate(0deg); }
  45%{ transform: rotate(26deg); }
  75%{ transform: rotate(-10deg); }
  100%{ transform: rotate(0deg); }
}

/* Fuld opmærksomhed: viewfinder corners pull inward, like a focus-pull */
.feature-card:hover .icon-focus__tl{ transform: translate(1.4px, 1.4px); }
.feature-card:hover .icon-focus__tr{ transform: translate(-1.4px, 1.4px); }
.feature-card:hover .icon-focus__br{ transform: translate(-1.4px, -1.4px); }
.feature-card:hover .icon-focus__bl{ transform: translate(1.4px, -1.4px); }

/* En løsning der kan vokse: the bars climb higher, tallest first */
.feature-card:hover .icon-grow__b1{ transform: translateY(-1px); }
.feature-card:hover .icon-grow__b2{ transform: translateY(-2px); }
.feature-card:hover .icon-grow__b3{ transform: translateY(-3px); }
.icon-grow__b2{ transition-delay: 0.04s; }
.icon-grow__b3{ transition-delay: 0.08s; }

/* Skræddersyede funktioner: the knobs slide along their tracks, like adjusting a setting */
.feature-card:hover .icon-slider__knob:nth-of-type(1){ transform: translateX(2px); }
.feature-card:hover .icon-slider__knob:nth-of-type(2){ transform: translateX(-2px); }
.feature-card:hover .icon-slider__knob:nth-of-type(3){ transform: translateX(2px); }

/* Tilgængelighed fra start: the eye focuses in */
.feature-card:hover .icon-eye__iris{ transform: scale(1.25); }

/* Løbende opdateringer: the sync arrows complete a turn */
.feature-card:hover .icon-refresh__arc{ transform: rotate(140deg); }

/* Cloud-backup: the arrow pushes down into the cloud */
.feature-card:hover .icon-cloud__arrow{ transform: translateY(1.6px); }

/* Proaktiv overvågning: the pulse line spikes, like a live reading */
.feature-card:hover .icon-pulse__line{ animation: icon-pulse-beat 0.6s var(--ease-out); }
@keyframes icon-pulse-beat{
  0%, 100%{ transform: scaleY(1); }
  50%{ transform: scaleY(1.35); }
}

/* ==========================================================================
   Value grid (three pillars, kept plain — heading and copy carry the weight)
   ========================================================================== */

.value-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.value-grid__item{
  padding: 2.1rem 1.85rem 1.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.value-grid__item:hover{
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.value-grid__item h3{ font-size: 1.1rem; margin-bottom: 0.6rem; }
.value-grid__item p{ color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Tier grid (scope comparison, not a price list — the middle tier is
   marked as recommended, not priced differently)
   ========================================================================== */

.tier-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.tier{
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.tier:hover{
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.tier--recommended{ border-color: var(--accent); }
.tier__badge{
  position: absolute;
  top: -14px;
  left: 1.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.tier__step{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
}
.tier__name{ font-size: 1.2rem; margin-bottom: 0.4rem; }
.tier__tagline{ color: var(--text-muted); font-size: 0.94rem; margin-bottom: 1.5rem; }
.tier__list{
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex-grow: 1;
}
.tier__list li{
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.tier__list li svg{
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  color: var(--accent);
  flex-shrink: 0;
}
.tier .btn{ align-self: flex-start; }

.tier-grid--single{
  grid-template-columns: minmax(0, 30rem);
  justify-content: center;
}
.tier--single{ padding-top: 2.5rem; }
.tier__price{
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.tier__price-from{
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: middle;
  margin-right: 0.35rem;
}
.tier__price-period{
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   Proces (a literal staircase: each step card is taller than the last,
   bottom-aligned so every step shares step 1's floor, rising left to right
   as the section scrolls into view)
   ========================================================================== */

.process{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: end;
  padding-top: 44px;
  padding-bottom: 20px;
}

/* Each step is a taller riser than the last, ascending left to right;
   step 1 keeps today's card height, the rest add to it. */
.process__item--1{ min-height: 236px; }
.process__item--2{ min-height: 258px; }
.process__item--3{ min-height: 280px; }
.process__item--4{ min-height: 302px; }

.process__item{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.process__item:hover{
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

/* The steps rise into place one after another, distinct from the site's
   default 20px reveal-up so this section reads as its own moment.
   !important overrides the inline transition-delay the reveal script sets
   from each element's position among ALL reveal-up elements on the page;
   the stagger here needs to follow step order specifically. */
.js .process__item.reveal-up{ transform: translateY(56px); transition-duration: 0.7s; }
.process__item--1{ transition-delay: 0s !important; }
.process__item--2{ transition-delay: 0.12s !important; }
.process__item--3{ transition-delay: 0.24s !important; }
.process__item--4{ transition-delay: 0.36s !important; }

.process__num{
  position: absolute;
  top: -30px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--bg-elev);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.process__item:hover .process__num{ background: var(--accent-soft); transform: scale(1.1); }
.process__item .icon-badge{ margin-bottom: 1rem; }
.process__item h3{ font-size: 1.05rem; margin-bottom: 0.5rem; }
.process__item p{ color: var(--text-muted); font-size: 0.92rem; }

/* Indledende snak: the three dots pulse in sequence, like a live conversation */
.process__item:hover .icon-chat__dot{ animation: icon-chat-pulse 1s var(--ease-out) infinite; }
.icon-chat__dot:nth-of-type(2){ animation-delay: 0.15s; }
.icon-chat__dot:nth-of-type(3){ animation-delay: 0.3s; }
@keyframes icon-chat-pulse{
  0%, 100%{ transform: translateY(0); opacity: 0.55; }
  50%{ transform: translateY(-1.5px); opacity: 1; }
}

/* Design & feedback: the pencil gives a quick stroke, as if it just signed off on a tweak */
.process__item:hover .icon-pencil__body,
.process__item:hover .icon-pencil__tip{ transform: translate(-1px, 1px) rotate(-5deg); }

/* Udvikling: brackets slide apart, the same motion as the Webdesign feature icon */
.process__item:hover .icon-code__left{ transform: translateX(-1.6px); }
.process__item:hover .icon-code__right{ transform: translateX(1.6px); }

/* Lancering & support: the rocket lifts off, fins flare on the way up */
.process__item:hover .icon-rocket__body,
.process__item:hover .icon-rocket__window{ transform: translateY(-2px); }
.process__item:hover .icon-rocket__fins{ transform: scaleX(1.15); }
.process__mark{
  display: block;
  width: 26px;
  height: 2px;
  margin-top: auto;
  background: var(--accent);
  border-radius: 999px;
}

/* ==========================================================================
   Om Antoft Web: staggered card cluster (left) + portrait & bio (right)
   ========================================================================== */

.om-hero__inner{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
/* DOM order puts the h1-bearing body first (correct heading order for
   assistive tech); order restores the cards-left/bio-right visual layout. */
.om-hero__cards{ order: 1; }
.om-hero__body{ order: 2; }

.om-hero__cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.om-hero__avatar{
  width: 108px;
  height: 108px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.om-hero__avatar img{ width: 100%; height: 100%; object-fit: cover; }

.om-hero__body h1{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.om-hero__body > p{ color: var(--text-muted); font-size: 1.03rem; max-width: 54ch; }

/* ==========================================================================
   Derfor Antoft Web: a 2x2 bento of cards (left) + intro copy (right)
   ========================================================================== */

.trust__inner{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
/* DOM order puts the h2-bearing body first (correct heading order for
   assistive tech); order restores the cards-left/text-right visual layout. */
.trust__cards{ order: 1; }
.trust__body{ order: 2; }

.trust__cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

/* Det får du: a 6-card version of the same bento as two independent
   masonry columns (not a grid + per-card margin), so each column keeps a
   perfectly even internal rhythm and the right column simply starts lower. */
#faar-du .trust__cards{
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
#faar-du .trust__col{
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}
#faar-du .trust__col--offset{ margin-top: 2rem; }

.trust__body h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; max-width: 16ch; }
.trust__body > p{ color: var(--text-muted); font-size: 1.03rem; max-width: 48ch; }

/* Bygget fra bunden: the three layers separate on hover, like building up */
.feature-card:hover .icon-stack__l1{ transform: translateY(-1.5px); }
.feature-card:hover .icon-stack__l2{ transform: translateY(0.5px); }
.feature-card:hover .icon-stack__l3{ transform: translateY(2px); }

/* Gennemsigtige priser: the checkmark draws in as the card scrolls into view,
   so the badge always reads as "verified", not an empty shield. */
.icon-shield__check{
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  transition: stroke-dashoffset 0.6s var(--ease-out) 0.15s;
}
.reveal-up.is-visible .icon-shield__check{ stroke-dashoffset: 0; }
.feature-card:hover .icon-shield__body{ transform: scale(1.05); }

/* Tæt samarbejde: the two figures lean toward each other */
.feature-card:hover .icon-people__a{ transform: rotate(-6deg); }
.feature-card:hover .icon-people__b{ transform: rotate(6deg); }

/* Frisk start, fuld fokus: the paper plane takes off */
.feature-card:hover .icon-plane__body{ transform: translate(2.5px, -2.5px) rotate(8deg); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq{
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  max-width: 74ch;
}
.faq__item{
  border-bottom: 1px solid var(--border);
}
.faq__item h3{ margin: 0; font-size: 1.05rem; }

.faq__question{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.6rem 0.25rem;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq__question:hover{ color: var(--accent-strong); }

.faq__chevron{
  display: flex;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform var(--dur-med) var(--ease-out);
}
.faq__chevron svg{ width: 18px; height: 18px; }
.faq__item.is-open .faq__chevron{ transform: rotate(180deg); }

.faq__answer{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.faq__answer > div{ overflow: hidden; }
.faq__item.is-open .faq__answer{ grid-template-rows: 1fr; }
.faq__answer p{ color: var(--text-muted); font-size: 0.96rem; padding: 0 0.25rem 1.6rem; max-width: 68ch; }

/* ==========================================================================
   Testimonials (prepared, not yet populated)
   ========================================================================== */

.testimonials{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial{
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}
.testimonial blockquote{ margin: 0 0 1.25rem; font-size: 1rem; color: var(--text); }
.testimonial cite{ font-style: normal; display: flex; flex-direction: column; gap: 0.15rem; }
.testimonial cite .name{ font-weight: 600; color: var(--text); font-size: 0.94rem; }
.testimonial cite .role{ color: var(--text-faint); font-size: 0.86rem; }

/* ==========================================================================
   Kontakt
   ========================================================================== */

.kontakt__inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

/* Intro card: a fixed dark "signed note" moment, the same Terminal card
   regardless of which zone the Kontakt section itself sits in. */
.kontakt__intro{
  --bg: #444444;
  --bg-elev: #4d4d4d;
  --text: #f4f3ef;
  --text-muted: #c7c6c1;
  --text-faint: #b3b3b3;
  --accent: #49ff9d;
  --accent-strong: #7dffb8;
  --accent-soft: rgba(73,255,157,0.12);
  --border: rgba(244,243,239,0.14);
  --border-strong: rgba(244,243,239,0.26);
  color-scheme: dark;
  position: relative;
  padding: clamp(2rem, 4vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  color: var(--text);
  overflow: hidden;
}

.kontakt__portrait{
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-elev);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}
.kontakt__portrait img{ width: 100%; height: 100%; object-fit: cover; }

.kontakt__intro h2{ position: relative; z-index: 1; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.85rem; max-width: 18ch; }
.kontakt__intro p{ position: relative; z-index: 1; color: var(--text-muted); font-size: 1.01rem; max-width: 42ch; }

.kontakt__signature{
  position: relative;
  z-index: 1;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.kontakt__signature-name{ display: block; font-weight: 700; font-size: 0.98rem; }
.kontakt__signature-role{ display: block; color: var(--text-faint); font-size: 0.88rem; margin-top: 0.15rem; }

.kontakt__intro .btn{
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
}

.kontakt__details{
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.kontakt__details a{
  font-size: 0.95rem;
  font-weight: 600;
  width: fit-content;
  border-bottom: 1px solid var(--border-strong);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.kontakt__details a:hover{ color: var(--accent-strong); border-color: var(--accent-strong); }

.kontakt__form{
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(2rem, 4vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}

.field{ display: flex; flex-direction: column; gap: 0.5rem; }
.field--honeypot{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label{ font-size: 0.88rem; color: var(--text-muted); }
.field input, .field textarea{
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder{ color: var(--text-faint); }
.field input:focus, .field textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__error{
  display: none;
  font-size: 0.85rem;
  color: #ff8a7a;
}
.field.is-invalid input, .field.is-invalid textarea{ border-color: #ff8a7a; }
.field.is-invalid .field__error{ display: block; }

.kontakt__form .btn{ align-self: flex-start; margin-top: 0.25rem; }
.kontakt__privacy{ font-size: 0.82rem; color: var(--text-faint); }
.kontakt__privacy a{ color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.kontakt__privacy a:hover{ color: var(--accent-strong); }
.kontakt__status{ font-size: 0.94rem; color: var(--accent-strong); min-height: 1.2em; }

/* ==========================================================================
   Legal pages (privacy policy etc.)
   ========================================================================== */

.legal__inner{ max-width: 74ch; }

.legal__inner h1{
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.legal__updated{
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal__body h2{
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal__body h2:first-child{ margin-top: 0; }

.legal__body p{
  color: var(--text-muted);
  line-height: 1.65;
}
.legal__body p + p{ margin-top: 0.9rem; }

.legal__body ul{
  margin: 0.9rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.legal__body li{ margin-bottom: 0.4rem; }

.legal__body a{
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__back{ margin-top: 3rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer{ background: var(--bg); color: var(--text); border-top: 1px solid var(--border); padding-block: 3rem; }
.footer__inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer__brand p{ color: var(--text-muted); margin-top: 1rem; max-width: 32ch; font-size: 0.94rem; }
.footer__links{ display: flex; flex-direction: column; gap: 0.7rem; color: var(--text-muted); font-size: 0.94rem; }
.footer__links a:hover{ color: var(--text); }
.footer__meta{ color: var(--text-faint); font-size: 0.87rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; text-align: right; }

/* ==========================================================================
   Scroll-reveal base state (JS adds .is-visible)
   Scoped under .js (set by an inline head script) so content stays visible
   by default if JavaScript never runs, instead of sitting at opacity:0.
   ========================================================================== */

.js .reveal-up{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.js .reveal-up.is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px){
  .work{ grid-template-columns: 1fr; }
  .work__item--wide{ grid-column: auto; }
  .feature-grid{ grid-template-columns: 1fr; }
  .kontakt__inner{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr 1fr; }
  .footer__meta{ align-items: flex-start; text-align: left; grid-column: span 2; }
  .process{ grid-template-columns: repeat(2, 1fr); align-items: stretch; padding-top: 20px; padding-bottom: 0; }
  .process__item--1, .process__item--2, .process__item--3, .process__item--4{ min-height: 0; }
  .om-hero__inner{ grid-template-columns: 1fr; }
  .om-hero__body{ order: -1; }
  .trust__inner{ grid-template-columns: 1fr; }
  .trust__body{ order: -1; }
  .testimonials{ grid-template-columns: 1fr; }
  .statement__inner{ grid-template-columns: 1fr; }
  .statement__mark{ grid-row: 1; grid-column: 1; transform: none; margin-bottom: -0.5rem; }
  .statement__inner p{ grid-row: 2; grid-column: 1; max-width: none; }
  .value-grid{ grid-template-columns: 1fr; gap: 1.75rem; }
  .tier-grid{ grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 768px){
  .nav__links{ display: none; }
  .nav__actions .nav-page-link{ display: none; }
  .nav__cta{ display: none; }
  .nav__burger{ display: flex; }
  .footer__inner{ grid-template-columns: 1fr; }
  .footer__meta{ grid-column: span 1; }
  .process{ grid-template-columns: 1fr; }
  .trust__cards{ grid-template-columns: 1fr; }
  #faar-du .trust__cards{ flex-direction: column; gap: 1.25rem; }
  #faar-du .trust__col{ display: contents; }
  /* display: contents promotes the cards straight to trust__cards, so
     restore reading order 1-6 across the two former columns with order. */
  #faar-du .trust__col:not(.trust__col--offset) > .feature-card:nth-child(1){ order: 1; }
  #faar-du .trust__col--offset > .feature-card:nth-child(1){ order: 2; }
  #faar-du .trust__col:not(.trust__col--offset) > .feature-card:nth-child(2){ order: 3; }
  #faar-du .trust__col--offset > .feature-card:nth-child(2){ order: 4; }
  #faar-du .trust__col:not(.trust__col--offset) > .feature-card:nth-child(3){ order: 5; }
  #faar-du .trust__col--offset > .feature-card:nth-child(3){ order: 6; }
}

@media (max-width: 420px){
  .hero__headline{ font-size: 1.65rem; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-up{ opacity: 1 !important; transform: none !important; }
}
