/* SeljeSoft – seljenes.no
   Colours from the Leagues 4 Friends brand (app blue + trophy gold), with calmer, professional type.
   Fonts are self-hosted: the server's Content-Security-Policy blocks Google Fonts. Latin subset covers æ ø å. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/plus-jakarta-sans.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter.woff2') format('woff2'); }

:root {
  --blue-1: #2E8BFF;
  --blue-2: #0D61C2;
  --blue-3: #083E8C;
  --ink: #0B2A5C;
  --ink-deep: #071D42;
  --gold: #FFD54A;
  --gold-dark: #E8B400;
  --coral: #FF7A59;
  --mint: #7CF0B0;

  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --surface-2: #EFF4FB;
  --text: #14213D;
  --muted: #5B6478;
  --line: #E6E1D6;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9DBF5;

  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 92, 0.06), 0 2px 8px rgba(11, 42, 92, 0.05);
  --shadow: 0 10px 30px rgba(11, 42, 92, 0.10);
  --shadow-lg: 0 24px 60px rgba(4, 25, 60, 0.28);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-2); text-underline-offset: 3px; }
a:hover { color: var(--blue-3); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p + p { margin-top: 1em; }
ul { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px rgba(4, 25, 60, 0.22); }
.btn-gold:hover { color: var(--ink); background: #FFDD6B; box-shadow: 0 12px 28px rgba(4, 25, 60, 0.30); }
.btn-blue { background: var(--blue-2); color: #fff; }
.btn-blue:hover { background: var(--blue-3); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-outline { border-color: var(--blue-2); color: var(--blue-2); }
.btn-outline:hover { background: var(--blue-2); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; }

.link-arrow { font-family: var(--font-head); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: '→'; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(11, 42, 92, 0.06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }
.brand b { font-weight: 800; color: var(--blue-2); }
.brand:hover { color: var(--ink); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light b { color: var(--gold); }

.main-nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.97rem; color: var(--muted); text-decoration: none;
}
.main-nav a:not(.btn):hover { color: var(--blue-2); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--blue-2); background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.main-nav .nav-lang a:not(.btn) { margin-left: 4px; padding: 6px 11px; border: 1.5px solid var(--line); font-size: 0.85rem; letter-spacing: .04em; }
.main-nav .nav-lang a:not(.btn):hover { border-color: var(--blue-2); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle-bars { top: 50%; margin-top: -1px; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ''; left: 0; transform: none; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 12px var(--gutter) 20px; display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a:not(.btn) { padding: 12px 14px; font-size: 1.05rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--surface); }
.section-blue { background: linear-gradient(160deg, var(--blue-3) 0%, var(--ink-deep) 100%); color: var(--on-dark-muted); }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.wide { max-width: none; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin-top: 14px; }
.section-blue .section-head p { color: var(--on-dark-muted); }
.section-title { margin-bottom: 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-2);
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--gold-dark); }
.section-blue .eyebrow { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(circle at 10% 0%, rgba(159, 208, 255, 0.40), rgba(159, 208, 255, 0) 45%),
    radial-gradient(circle at 95% 100%, rgba(4, 32, 79, 0.65), rgba(4, 32, 79, 0) 55%),
    linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 50%, var(--blue-3) 100%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold); }
.hero .eyebrow { color: var(--gold); }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--on-dark-muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; color: #fff; font-size: 0.95rem; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--mint); }
.hero-grid > * { min-width: 0; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 30px 50px rgba(4, 25, 60, 0.35)); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* Page hero (sub pages) */
.page-hero { background: linear-gradient(135deg, var(--blue-2) 0%, var(--blue-3) 100%); color: var(--on-dark-muted); padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { font-size: 1.15rem; max-width: 640px; }
.page-hero a { color: var(--gold); }
.page-hero .crumbs, .page-hero .crumbs a { color: var(--on-dark-muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6dff0; }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card-proof { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.88rem; color: var(--muted); }
.card-proof strong { color: var(--ink); font-weight: 600; }

.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--blue-2);
}
.icon svg { width: 26px; height: 26px; }
.icon-gold { background: #FFF6D6; color: #9A7400; }
.icon-coral { background: #FFEDE7; color: #C84A2A; }
.icon-mint { background: #E3FBEF; color: #11804A; }

/* ---------- Problem -> solution ---------- */
.solutions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.solution { display: grid; grid-template-columns: 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }
.solution-problem { padding: 24px 26px 18px; }
.solution-problem p { color: #fff; font-family: var(--font-head); font-weight: 650; font-size: 1.12rem; line-height: 1.4; }
.solution-problem span { display: block; font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); font-weight: 700; margin-bottom: 8px; font-family: var(--font-head); }
.solution-answer { padding: 18px 26px 24px; background: rgba(255, 255, 255, 0.06); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.solution-answer span { display: block; font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); font-weight: 700; margin-bottom: 8px; font-family: var(--font-head); }
.solution-answer p { color: var(--on-dark-muted); font-size: 0.98rem; }
@media (max-width: 800px) { .solutions { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.project {
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-visual { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project-visual.contain img { object-fit: contain; padding: 18px; }
.project-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.project-type { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2); }
.project h3 { margin: 8px 0 10px; font-size: 1.3rem; }
.project p { color: var(--muted); font-size: 0.97rem; }
.project-gain { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: #FFF8DF; color: #5C4600; font-size: 0.93rem; }
.project-gain strong { color: #3D2F00; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--blue-3); }
.project-link { margin-top: auto; padding-top: 18px; }

/* Website showcase: screenshots in a browser frame */
/* one row you can swipe / scroll sideways; the next card peeks in so it is clear there is more */
.scroller { position: relative; }
.sites { --gap: 22px; --per: 3.25; display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  padding: 8px 2px 18px; margin: -8px -2px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-x: contain; }
@media (max-width: 960px) { .sites { --per: 2.2; } }
@media (max-width: 600px) { .sites { --per: 1.15; --gap: 16px; } }
.site-card { display: block; flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; text-decoration: none; color: inherit; }
.scroller-nav { display: flex; justify-content: flex-end; gap: 10px; margin: calc(-1 * clamp(36px, 5vw, 56px) + 4px) 0 14px; }
.scroller-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .2s, opacity .2s; }
.scroller-btn:hover:not(:disabled) { background: var(--blue-2); color: #fff; border-color: var(--blue-2); }
.scroller-btn:disabled { opacity: .35; cursor: default; }
.scroller-nav[hidden] { display: none; }
.scroller-pause { font-size: .8rem; letter-spacing: -1px; }
@media (max-width: 600px) { .scroller-btn[data-dir] { display: none; } .scroller-nav { margin-top: 0; } }
.browser { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.site-card:hover .browser { transform: translateY(-4px); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F1F3F7; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5DAE3; }
.browser-bar i:first-child { background: #FF8A7A; } .browser-bar i:nth-child(2) { background: #FFD54A; } .browser-bar i:nth-child(3) { background: #7CD992; }
.browser-bar span { margin-left: 10px; font-size: 0.75rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 2px 10px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: top center; }
.site-card h3 { margin-top: 14px; font-size: 1.08rem; }
.site-card p { color: var(--muted); font-size: 0.93rem; }

.quote { margin-top: 48px; padding: 28px 32px; border-radius: var(--radius); background: var(--surface); border-left: 5px solid var(--gold-dark); box-shadow: var(--shadow-sm); }
.quote p { font-family: var(--font-head); font-size: 1.3rem; font-weight: 650; color: var(--ink); }
.quote footer { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-2); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About / CV ---------- */
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--surface-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .portrait { max-width: 320px; } }
.about-facts { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 10px; }
.about-facts li { display: flex; gap: 10px; align-items: baseline; font-size: 0.97rem; color: var(--muted); }
.about-facts strong { color: var(--ink); }
/* Company structure: Seljenes Konsult with two brands */
.company { margin-top: 24px; display: grid; gap: 0; }
.company-parent, .company-brand { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.company-parent { background: var(--ink); border-color: var(--ink); }
.company-parent .company-label { color: var(--gold); }
.company-parent .company-name { color: #fff; }
.company-parent .company-meta { color: var(--on-dark-muted); }
.company-brands { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 22px; }
.company-brands::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 12px; border: 2px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
.company-brands::after { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 12px; background: var(--line); transform: translate(-1px, -12px); }
.company-label { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); }
.company-name { font-family: var(--font-head); font-weight: 750; font-size: 1.08rem; color: var(--ink); margin-top: 2px; }
.company-name a { color: inherit; text-decoration: none; }
.company-name a:hover { color: var(--blue-2); }
.company-meta { font-size: 0.86rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.company p + p { margin-top: 2px; }
.company .company-meta { margin-top: 4px; }

.about-text > h2 { margin-bottom: 18px; }
.about-text > h3 { margin-top: 8px; }
.about-text p { font-size: 1.08rem; }
.about-text .lead { font-size: 1.25rem; color: var(--ink); font-family: var(--font-head); font-weight: 600; line-height: 1.5; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--blue-2); line-height: 1.1; }
.stat span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.cv { display: grid; gap: 14px; margin-top: 12px; }
.cv-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.cv-row h3 { font-size: 1rem; color: var(--ink); }
.cv-row .tags { margin-top: 0; }
@media (max-width: 640px) { .cv-row { grid-template-columns: 1fr; gap: 10px; } }

.timeline { list-style: none; padding: 0; margin-top: 8px; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 22px 28px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-2); }
.timeline h4 { font-size: 1.02rem; }
.timeline p { color: var(--muted); font-size: 0.96rem; margin-top: 4px; }

/* ---------- Articles ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-img img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-date { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.post-card h3 { margin: 6px 0 10px; font-size: 1.15rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue-2); }
.post-card p:not(.post-card-date) { color: var(--muted); font-size: 0.95rem; }
.post-card .link-arrow { margin-top: auto; padding-top: 14px; }
.section-alt .post-card { background: var(--bg); }

.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue-2); }

.article { padding-top: clamp(40px, 6vw, 72px); }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.article-meta { margin-top: 16px; color: var(--muted); font-size: 0.95rem; }
.article-banner { margin-top: 32px; margin-bottom: 40px; }
.article-banner img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 16 / 8; object-fit: cover; }

.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin-top: 0; margin-bottom: 1.1em; }
.prose p + p { margin-top: 0; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--blue-2); }
.prose img { border-radius: var(--radius); margin: 2em auto; box-shadow: var(--shadow-sm); }
.prose figure { margin: 2em 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { margin-top: 10px; text-align: center; font-size: 0.9rem; color: var(--muted); }
.prose blockquote { border-left: 4px solid var(--gold-dark); padding: 4px 0 4px 20px; color: var(--muted); font-style: italic; }

.author-box { display: flex; gap: 22px; align-items: center; margin-top: 56px; margin-bottom: 72px; }
.author-box > img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.author-box > div { padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); flex: 1; }
.author-name { font-family: var(--font-head); font-weight: 750; color: var(--ink); }
.author-box p:not(.author-name) { color: var(--muted); font-size: 0.97rem; margin: 4px 0 8px; }
@media (max-width: 560px) { .author-box { flex-direction: column; align-items: flex-start; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--blue-2); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; color: #fff; }
.contact-list .icon { background: rgba(255, 255, 255, 0.1); color: var(--gold); width: 46px; height: 46px; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold); }
.contact-list small { display: block; color: var(--on-dark-muted); font-size: 0.85rem; }
.contact-promise { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 8px; color: var(--on-dark-muted); }
.contact-promise li::before { content: '✓'; color: var(--mint); font-weight: 800; margin-right: 10px; }

.form { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.93rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--text); width: 100%;
  padding: 12px 14px; border: 1.5px solid #D9DEE8; border-radius: var(--radius-sm); background: #FBFCFE;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(13, 97, 194, 0.15); background: #fff; }
.form .btn { width: 100%; }
.form-note { margin-top: 12px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.form-result { margin-top: 14px; text-align: center; font-weight: 600; min-height: 1.5em; }
.form-result.ok { color: #11804A; }
.form-result.error { color: #C0392B; }
.hp { position: absolute; left: -9999px; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); background: linear-gradient(135deg, var(--blue-2), var(--blue-3)); color: var(--on-dark-muted); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { margin-top: 14px; max-width: 360px; }
.site-footer .footer-brands { margin-top: 16px; gap: 8px; max-width: 360px; font-size: 0.9rem; }
.footer-brands li { padding-left: 14px; border-left: 3px solid var(--gold); }
.footer-brands strong, .footer-company strong { color: #fff; font-weight: 600; }
.site-footer .footer-brands a:hover strong { color: var(--gold); }
.footer-about .footer-company { font-size: 0.88rem; margin-top: 12px; }
.footer-title { font-size: 0.82rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { text-align: center; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.88rem; }

/* ---------- Reveal on scroll (only when JS runs and motion is OK) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: clamp(80px, 12vw, 140px) 0; }
.not-found .big { font-family: var(--font-head); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; color: var(--blue-2); line-height: 1; }
.not-found p { color: var(--muted); margin: 16px auto 28px; max-width: 480px; }

/* ---------- AI label (images listed in ai-images.json) – same badge as the SanSel rental sites ---------- */
.ai-img { position: relative; display: block; container-type: inline-size; }
.ai-badge { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(16, 20, 22, .82); border: 1px solid rgba(255, 255, 255, .5); color: #fff; font-size: .72rem; font-weight: 500; line-height: 1.3; white-space: nowrap; pointer-events: none; }
.ai-badge b { padding: 1px 6px; border-radius: 999px; background: #fff; color: #111; font-size: .7rem; font-weight: 500; letter-spacing: .05em; }
@container (max-width: 300px) {
  .ai-badge { padding: 3px; }
  .ai-badge-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* the wrapper takes over the image's outer spacing, so the badge sits on the image's corner */
.prose > .ai-img { margin: 2em auto; }
.prose .ai-img > img { margin: 0; }
.article-banner .ai-badge, .post-card-img .ai-badge { right: 12px; bottom: 12px; }
/* boxes where the image fills the box (SeljeTools cards, project cards): the wrapper must fill it too */
.tool-image .ai-img, .project-visual .ai-img { position: absolute; inset: 0; }
.project-visual { position: relative; }
