/* /ansaet-en-ai-freelancer: levende hero + ydelses-fliser (Kevin 27/11: "så levende, men simpelt").
   Lægges efter style.css + ny-stil.css og bruger kun deres variabler, så lyst/mørkt tema følger med.
   Én accent: --ny-live (grøn). Al bevægelse stopper ved prefers-reduced-motion. */

.fl-hero { padding: 104px 0 56px; position: relative; overflow: hidden; }
.fl-hero .breadcrumb { margin-bottom: 14px; }
.fl-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.fl-status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--border-2); border-radius: 999px; padding: 7px 14px 7px 12px; margin-bottom: 16px; }
.fl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ny-live); position: relative; flex: none; }
.fl-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ny-live); animation: fl-puls 2s ease-out infinite; }
@keyframes fl-puls { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

.fl-hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 4.2vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 16px; max-width: 15ch; }
.fl-hero h1 em { font-style: italic; color: var(--text-2); }
.fl-ord { display: inline-block; position: relative; color: var(--text); font-style: italic; }
.fl-ord span { display: inline-block; animation: fl-ind .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fl-ind { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.fl-hero .lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--text-2); max-width: 54ch; margin: 0 0 22px; }
.fl-hero .hero-actions { margin-bottom: 24px; }

/* Tal der tæller op */
.fl-tal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border-2); max-width: 640px; }
.fl-tal div { padding: 14px 14px 0 0; }
.fl-tal div + div { padding-left: 16px; border-left: 1px solid var(--border); }
.fl-tal b { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fl-tal small { display: block; margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--text-2); }

/* Kortet med Kevin */
.fl-kort { position: relative; border: 1px solid var(--border-2); border-radius: 22px; background: var(--surface-2); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,.45); }
.fl-foto { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #efede7; }
.fl-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; transform: scale(1.04); animation: fl-zoom 18s ease-in-out infinite alternate; }
@keyframes fl-zoom { to { transform: scale(1.1) translateY(-1.5%); } }
.fl-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,.55)); }
.fl-navn { position: absolute; left: 20px; right: 20px; bottom: 12px; z-index: 2; color: #fff; }
.fl-navn svg { width: min(100%, 300px); height: auto; display: block; overflow: visible; }
.fl-navn text { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 64px; fill: transparent; stroke: #fff; stroke-width: 1.1; stroke-dasharray: 900; stroke-dashoffset: 900; animation: fl-skriv 2.6s .5s cubic-bezier(.6,0,.3,1) forwards, fl-fyld .9s 2.7s ease forwards; }
@keyframes fl-skriv { to { stroke-dashoffset: 0; } }
@keyframes fl-fyld { to { fill: #fff; stroke-width: 0; } }
.fl-navn small { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

/* Live automations-feed */
.fl-feed { padding: 14px 18px 16px; }
.fl-feed-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.fl-feed-top span { display: inline-flex; align-items: center; gap: 8px; }
.fl-feed ul { list-style: none; margin: 0; padding: 0; height: 108px; overflow: hidden; position: relative; }
.fl-feed li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); height: 36px; border-bottom: 1px dashed var(--border); transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.fl-feed li i { font-style: normal; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--ny-live); border: 1px solid var(--ny-live); }
.fl-feed li em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.fl-feed li.fl-ny { animation: fl-ny .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fl-ny { from { opacity: 0; transform: translateY(-14px); background: var(--accent-soft); } to { opacity: 1; transform: none; } }

/* Bånd med værktøjer */
.fl-baand { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 16px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fl-baand-spor { display: flex; gap: 44px; width: max-content; animation: fl-rul 40s linear infinite; font-family: var(--font-display); font-size: 22px; font-weight: 300; color: var(--text-2); white-space: nowrap; }
.fl-baand-spor span::before { content: "·"; margin-right: 44px; color: var(--text-3); }
@keyframes fl-rul { to { transform: translateX(-50%); } }

/* Én specialist, alt på: levende fliser */
.fl-fliser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fl-flise { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 16px 16px 18px; color: var(--text); text-decoration: none; transition: border-color .25s, transform .25s; min-height: 230px; }
.fl-flise:hover { border-color: var(--border-2); transform: translateY(-3px); }
.fl-flise h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: -.01em; margin: 14px 0 6px; }
.fl-flise p { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.45; }
.fl-scene { position: relative; height: 92px; border-radius: 12px; background: var(--accent-soft); overflow: hidden; }

/* 1 Automation: pakker løber mellem tre knuder */
.fl-auto .k { position: absolute; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface-2); }
.fl-auto .k:nth-child(1) { left: 12%; } .fl-auto .k:nth-child(2) { left: 46%; } .fl-auto .k:nth-child(3) { left: 80%; }
.fl-auto .l { position: absolute; top: 50%; left: 16%; right: 16%; height: 1px; background: var(--border-2); }
.fl-auto .p { position: absolute; top: 50%; left: 15%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ny-live); animation: fl-pak 2.6s linear infinite; }
.fl-auto .p:nth-of-type(2) { animation-delay: .87s; } .fl-auto .p:nth-of-type(3) { animation-delay: 1.74s; }
@keyframes fl-pak { 0% { left: 15%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 84%; opacity: 0; } }

/* 2 Store systemer: moduler bygges op */
.fl-sys { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 18px; gap: 6px; padding: 14px; align-content: end; }
.fl-sys i { border-radius: 4px; background: var(--text); opacity: 0; animation: fl-byg 4.8s ease infinite; }
.fl-sys i:nth-child(1){animation-delay:.0s}.fl-sys i:nth-child(2){animation-delay:.15s}.fl-sys i:nth-child(3){animation-delay:.3s}.fl-sys i:nth-child(4){animation-delay:.45s}
.fl-sys i:nth-child(5){animation-delay:.6s;grid-column:span 2}.fl-sys i:nth-child(6){animation-delay:.75s}.fl-sys i:nth-child(7){animation-delay:.9s}
.fl-sys i:nth-child(8){animation-delay:1.05s;grid-column:span 3;background:var(--ny-live)}
@keyframes fl-byg { 0% { opacity: 0; transform: translateY(-8px); } 10%, 80% { opacity: .82; transform: none; } 100% { opacity: 0; } }

/* 3 CRM: et lead flytter gennem pipeline */
.fl-crm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.fl-crm span { border-radius: 8px; border: 1px dashed var(--border-2); }
.fl-crm b { position: absolute; top: 34px; left: 16px; width: calc((100% - 32px) / 3 - 12px); height: 26px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border-2); animation: fl-lead 4.5s cubic-bezier(.6,0,.3,1) infinite; }
.fl-crm b::before { content: ""; position: absolute; left: 8px; top: 9px; width: 40%; height: 6px; border-radius: 3px; background: var(--text-3); }
.fl-crm b::after { content: ""; position: absolute; right: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ny-live); }
@keyframes fl-lead { 0%, 18% { transform: translateX(0); } 38%, 56% { transform: translateX(calc(100% + 18px)); } 76%, 100% { transform: translateX(calc(200% + 36px)); } }

/* 4 Claude & Cursor: kode skrives */
.fl-kode { padding: 12px 14px; font-family: var(--font-mono); font-size: 11px; line-height: 1.6; color: var(--text-2); }
.fl-kode div { white-space: nowrap; overflow: hidden; width: 0; animation: fl-tast 6s steps(28) infinite; }
.fl-kode div:nth-child(2) { animation-delay: 1.2s; } .fl-kode div:nth-child(3) { animation-delay: 2.4s; color: var(--ny-live); }
.fl-kode div:nth-child(4) { animation-delay: 3.4s; }
@keyframes fl-tast { 0% { width: 0; } 25%, 90% { width: 100%; } 100% { width: 0; } }

/* 5 Design: former der skifter */
.fl-design { display: flex; align-items: center; justify-content: center; gap: 12px; }
.fl-design i { width: 34px; height: 34px; border: 1.5px solid var(--text); animation: fl-form 5s ease-in-out infinite; }
.fl-design i:nth-child(2) { animation-delay: -1.6s; background: var(--ny-live); border-color: var(--ny-live); }
.fl-design i:nth-child(3) { animation-delay: -3.2s; }
@keyframes fl-form { 0%, 100% { border-radius: 50%; transform: rotate(0); } 33% { border-radius: 6px; transform: rotate(45deg); } 66% { border-radius: 50% 50% 6px 50%; transform: rotate(90deg) scale(.85); } }

/* 6 Video: tidslinje med afspilningshoved */
.fl-video { padding: 16px 14px; }
.fl-video .spor { display: flex; gap: 4px; height: 22px; margin-bottom: 6px; }
.fl-video .spor i { border-radius: 4px; background: var(--text); opacity: .7; }
.fl-video .spor.lyd i { height: 14px; opacity: .3; }
.fl-video .hoved { position: absolute; top: 10px; bottom: 10px; left: 14px; width: 2px; background: var(--ny-live); animation: fl-afspil 4s linear infinite; }
@keyframes fl-afspil { to { left: calc(100% - 16px); } }

/* 7 Brand awareness: søjler vokser */
.fl-brand { display: flex; align-items: flex-end; gap: 7px; padding: 14px 16px; }
.fl-brand i { flex: 1; border-radius: 4px 4px 0 0; background: var(--text); opacity: .75; transform-origin: bottom; animation: fl-vaekst 3.6s ease-in-out infinite; }
.fl-brand i:last-child { background: var(--ny-live); opacity: 1; }
@keyframes fl-vaekst { 0% { transform: scaleY(.15); } 45%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }

/* 8 AI-agenter: beskeder dukker op */
.fl-agent { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; justify-content: center; }
.fl-agent i { height: 16px; border-radius: 9px; opacity: 0; animation: fl-besked 5s ease infinite; }
.fl-agent i:nth-child(1) { width: 58%; background: var(--surface-2); border: 1px solid var(--border-2); }
.fl-agent i:nth-child(2) { width: 72%; align-self: flex-end; background: var(--text); animation-delay: .8s; }
.fl-agent i:nth-child(3) { width: 44%; align-self: flex-end; background: var(--ny-live); animation-delay: 1.6s; }
@keyframes fl-besked { 0% { opacity: 0; transform: translateY(6px); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Citat fra Kevin */
.fl-citat { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; align-items: center; max-width: 920px; margin: 0 auto; }
.fl-citat img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: #efede7; }
.fl-citat blockquote { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.015em; }
.fl-citat cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

/* Ind-glidning når man scroller */
.fl-vis { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.fl-vis.fl-inde { opacity: 1; transform: none; }

@media (max-width: 1100px) { .fl-fliser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .fl-hero { padding-top: 104px; }
  .fl-grid { grid-template-columns: 1fr; }
  .fl-kort { max-width: 520px; }
  .fl-tal { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .fl-tal div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .fl-feed li { font-size: 12.5px; }
  .fl-feed li span, .fl-feed li { overflow: hidden; }
  .fl-feed li em { display: none; }
  .fl-fliser { grid-template-columns: 1fr; }
  .fl-flise { min-height: 0; }
  .fl-citat { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-hero *, .fl-baand *, .fl-fliser *, .fl-vis { animation: none !important; transition: none !important; }
  .fl-vis { opacity: 1; transform: none; }
  .fl-navn text { fill: #fff; stroke-width: 0; }
  .fl-kode div, .fl-agent i, .fl-sys i { width: auto; opacity: 1; }
}

/* Tæt samarbejde */
.fl-samarbejde { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fl-sam { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 20px 18px; }
.fl-sam h3 { font-family: var(--font-display); font-weight: 400; font-size: 19px; margin: 16px 0 6px; }
.fl-sam p { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.45; }
.fl-ikon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); color: var(--text); }
.fl-ikon svg { width: 22px; height: 22px; }
.fl-ikon::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--ny-live); box-shadow: 0 0 0 3px var(--bg-2); }
.fl-sam:nth-child(2) .fl-ikon::after { animation: fl-blink 1.6s ease-in-out infinite; }
.fl-sam:nth-child(3) .fl-ikon svg { animation: fl-ring 2.4s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes fl-blink { 50% { opacity: .25; } }
@keyframes fl-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
@media (max-width: 1100px) { .fl-samarbejde { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .fl-samarbejde { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .fl-samarbejde { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fl-samarbejde * { animation: none !important; } }

/* Levende systemkort (i stedet for portræt, Kevin 27/11: siden skal ikke kun handle om én person) */
.fl-panel { background: radial-gradient(120% 90% at 50% 40%, #1b1b19 0%, #0b0b0a 70%); }
.fl-panel::after { background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.6)); }
.fl-net { position: absolute; left: 0; right: 0; top: 4%; width: 100%; height: 70%; }
.fl-lin { stroke: rgba(255,255,255,.28); stroke-width: 1.2; fill: none; stroke-dasharray: 3 7; animation: fl-flow 1.4s linear infinite; }
@keyframes fl-flow { to { stroke-dashoffset: -20; } }
.fl-kerne { fill: #3ddc84; }
.fl-kerne-ring { fill: none; stroke: #3ddc84; stroke-width: 1; transform-origin: 240px 138px; animation: fl-ring2 2.4s ease-out infinite; }
@keyframes fl-ring2 { from { transform: scale(.75); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.fl-kerne-t { fill: #0b0b0a; font-family: var(--font-mono); font-size: 14px; font-weight: 700; text-anchor: middle; }
.fl-knude { opacity: 0; animation: fl-knude-ind .6s cubic-bezier(.2,.8,.2,1) forwards; }
.fl-knude rect { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.3); stroke-width: 1; }
.fl-knude text { fill: #f4f4f2; font-family: var(--font-mono); font-size: 11.5px; text-anchor: middle; letter-spacing: .04em; }
@keyframes fl-knude-ind { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fl-knude:nth-of-type(2n) rect { animation: fl-lys 3.6s ease-in-out infinite; }
@keyframes fl-lys { 0%, 100% { stroke: rgba(255,255,255,.3); } 50% { stroke: #3ddc84; } }
.fl-citat { grid-template-columns: 70px minmax(0, 1fr); }
.fl-citat-tegn { font-family: var(--font-display); font-size: 120px; line-height: .8; color: var(--ny-live); align-self: start; }
@media (max-width: 560px) { .fl-citat-tegn { font-size: 80px; } }
@media (prefers-reduced-motion: reduce) { .fl-knude { opacity: 1; } .fl-panel * { animation: none !important; } }

/* Nr. 1 på Efektive (Kevin 27/11) */
.fl-nr1 { text-decoration: none; transition: border-color .2s, background .2s; }
.fl-nr1:hover { border-color: var(--text-2); background: var(--ny-hover); }
.fl-stjerner { color: #e0a526; letter-spacing: 1px; font-size: 12px; animation: fl-glimt 3.2s ease-in-out infinite; }
@keyframes fl-glimt { 0%, 80%, 100% { opacity: 1; } 88% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .fl-stjerner { animation: none; } }

/* Én partner: rådgivning, opsætning, udvikling (Kevin 27/11) */
.fl-tal { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 680px; }
.fl-tal div + div { padding-left: 12px; }
.fl-tal div { padding-right: 8px; }
.fl-soejler { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.fl-soejle { position: relative; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); padding: 26px 24px 24px; overflow: hidden; }
.fl-soejle::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--ny-live); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.6,0,.3,1); }
.fl-soejle.fl-inde::before { transform: scaleX(1); }
.fl-soejle:nth-child(2)::before { transition-delay: .5s; } .fl-soejle:nth-child(3)::before { transition-delay: 1s; }
.fl-trin { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-3); }
.fl-soejle h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: -.015em; margin: 10px 0 8px; }
.fl-soejle p { font-size: 14.5px; color: var(--text-2); margin: 0 0 16px; line-height: 1.5; }
.fl-soejle ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.fl-soejle li { font-size: 13.5px; display: flex; gap: 10px; align-items: baseline; }
.fl-soejle li::before { content: "✓"; color: var(--ny-live); font-size: 12px; }
@media (max-width: 900px) {
  .fl-soejler { grid-template-columns: 1fr; }
  .fl-tal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fl-tal div:nth-child(3) { padding-left: 12px; border-left: 1px solid var(--border); }
  .fl-tal div:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .fl-tal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-tal div:nth-child(3) { padding-left: 0; border-left: 0; }
  .fl-tal div:nth-child(4) { padding-left: 12px; border-left: 1px solid var(--border); }
  .fl-tal div:nth-child(5) { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .fl-soejle::before { transform: scaleX(1); transition: none; } }
@media (max-width: 560px) {
  .fl-panel { aspect-ratio: 1 / 1; }
  .fl-net { top: 2%; height: 62%; }
  .fl-navn svg { width: 72%; }
}
