/* Dark theme. White main, electric orange accents. */
:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --surface-2: #17171a;
  --line: #26262b;
  --line-soft: #1d1d21;
  --text: #ffffff;
  --muted: #a3a3ad;
  --dim: #6b6b75;
  --accent: #FF6A13;
  --accent-soft: rgba(255, 106, 19, 0.12);
  --accent-line: rgba(255, 106, 19, 0.45);
  --radius: 14px;
  --maxw: 1120px;
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

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

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.section-first { padding-top: 80px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--bg); padding: 10px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); font-weight: 700; }
.logo img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--accent);
}
.nav-links .nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; color: var(--text); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate; color: #0a0a0b;
  background: linear-gradient(115deg, #FF6A13 0%, #FF8A3D 25%, #FF4F00 50%, #FF8A3D 75%, #FF6A13 100%);
  background-size: 300% 100%;
  animation: btn-drift 8s ease-in-out infinite;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.18), 0 0 22px rgba(255,106,19,.35), 0 0 6px rgba(255,106,19,.25);
}
.btn-primary::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: skewX(-20deg) translateX(0);
  animation: btn-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 0 rgba(0,0,0,.18), 0 0 34px rgba(255,106,19,.5), 0 0 8px rgba(255,106,19,.35);
}
@keyframes btn-drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes btn-sweep { 0% { transform: skewX(-20deg) translateX(0); } 35%, 100% { transform: skewX(-20deg) translateX(480%); } }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Generic ---------- */
section { position: relative; }
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h4 { font-size: 13px; font-family: var(--mono); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.page-head { padding: 96px 0 56px; border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.035em; }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 104px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -220px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 106, 19, .16) 0%, transparent 62%);
}
.hero .container { position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--accent-line); border-radius: 999px;
  background: var(--accent-soft); color: var(--text);
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 32px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.hero h1 {
  font-size: clamp(1.5rem, 8vw, 5rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800;
}
.hero h1 .line { display: block; }
.hero h1 .line-2 { color: var(--muted); }
.hero h1 .line-2 em {
  display: block; white-space: nowrap; width: fit-content;
  font-style: normal; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: .07em; text-underline-offset: .14em; text-decoration-skip-ink: none;
}

/* ---------- Narrative ---------- */
.narrative { padding: 104px 0; background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.narrative-grid { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 900px; }
.narrative p { font-size: clamp(1.35rem, 2.6vw, 2.05rem); line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; margin: 0 0 .9em; color: var(--muted); }
.narrative p.strong { color: var(--text); }
.narrative p .hl { color: var(--accent); }
.narrative .cta-row { margin-top: 12px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.narrative .cta-row p { margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--text); }

/* ---------- Services ---------- */
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.services-head .lead { margin: 0; }

.service {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: calc(var(--radius) + 6px);
  padding: 56px; margin-bottom: 28px; position: relative; overflow: hidden;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 120px; background: var(--accent);
}
.service-head h3 { margin: 0; }
.service-toggle {
  width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 24px;
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit;
}
.service-toggle:hover .service-title { color: var(--accent); }
.service-title { transition: color .15s ease; }
.chev {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s ease, transform .3s ease;
}
.chev::before {
  content: ""; width: 9px; height: 9px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text);
  transform: translateY(-2px) rotate(45deg);
}
.service-toggle:hover .chev { border-color: var(--accent); }
.service.is-collapsed .chev { transform: rotate(-90deg); }

.service-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease; }
.service-panel-inner { min-height: 0; overflow: hidden; padding-left: 64px; }
.service-intro { color: var(--muted); max-width: 720px; margin: 18px 0 40px; }
.service-panel-inner > .content { display: grid; gap: 44px; }
.service.is-collapsed .service-panel { grid-template-rows: 0fr; }
.service.is-collapsed .service-panel-inner { visibility: hidden; transition: visibility 0s .35s; }
.service { transition: padding .35s ease; }
.service.is-collapsed { padding-top: 36px; padding-bottom: 36px; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.stat {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; margin: 0;
}
.stat p { color: var(--text); margin-bottom: .6em; }
.stat p:last-child { margin-bottom: 0; color: var(--muted); }
.stat .num { color: var(--accent); font-weight: 700; }

ul.ticks, ol.steps { list-style: none; margin: 0; padding: 0; }
ul.ticks li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line-soft); color: #e7e7ea; }
ul.ticks li:last-child { border-bottom: 0; }
ul.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 10px;
  border: 2px solid var(--accent); border-radius: 3px; transform: rotate(45deg);
}

ol.steps { counter-reset: step; display: grid; gap: 10px; }
ol.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 44px 1fr; align-items: baseline; gap: 12px;
  padding: 14px 18px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 10px; color: #e7e7ea;
}
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 14px; color: var(--accent);
}
ol.steps.grid-2 { grid-template-columns: 1fr 1fr; }

.segments { display: grid; grid-template-columns: max-content auto 1fr; row-gap: 12px; }
.segment {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; column-gap: 28px;
  padding: 18px 22px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 12px;
}
.segment .before { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.segment .becomes { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.segment .after { color: var(--text); font-weight: 600; }

.service-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.service-cta .note { color: var(--muted); font-size: 15px; margin: 0; }
.service-cta .note a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.service-cta .note a:hover { border-bottom-color: var(--accent); }

.callout {
  padding: 26px 28px; border-radius: 14px; border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, rgba(255,106,19,.14), rgba(255,106,19,.03) 60%);
}
.callout p { margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; }

.inline-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-meta .label { color: var(--muted); margin-right: 4px; }
.chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; color: var(--text); background: var(--surface-2);
}

.location {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text); margin: 0;
}
.location::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Data catalog ---------- */
.catalog { border: 1px solid var(--accent-line); border-radius: 14px; background: #120b07; overflow: hidden; }
.catalog > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; font-weight: 700; font-size: 1.05rem; user-select: none;
}
.catalog > summary::-webkit-details-marker { display: none; }
.catalog > summary:hover { color: var(--accent); }
.catalog > summary:hover .chev { border-color: var(--accent); }
.catalog > summary .chev { width: 34px; height: 34px; transform: rotate(-90deg); }
.catalog[open] > summary .chev { transform: rotate(0deg); }
.catalog[open] > summary { border-bottom: 1px solid var(--accent-line); }
.catalog-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.catalog-col { padding: 22px 22px 26px; }
.catalog-col h5 {
  margin: 0 0 14px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.catalog-col ul { list-style: none; margin: 0; padding: 0; }
.catalog-col li { padding: 8px 0; border-bottom: 1px solid rgba(255,106,19,.14); font-size: 15px; color: #ece9e7; }
.catalog-col li:last-child { border-bottom: 0; }
.col-person { background: #2a1408; }
.col-company { background: #1f1007; }
.col-signals { background: #160c06; }
.catalog-wrap { max-width: 980px; margin: 0 0 40px; }

/* ---------- Photos ---------- */
.about-photo { margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.about-photo img, .story-photo img {
  width: 100%; height: auto; display: block;
  border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line-soft);
}
.story-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- Logo stripe ---------- */
.logo-stripe {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(100deg, #b9aa9c, #d8c3ae 45%, #c2b1a1);
  box-shadow: 0 0 40px rgba(255,106,19,.35), 0 0 120px rgba(255,106,19,.16);
  margin: 24px 0;
}
.logo-canvas {
  position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .6s ease;
}
.logo-canvas.is-live { opacity: 1; }
.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 44px; padding-bottom: 44px; }
.logo-row img { height: 44px; width: auto; }
.logo-row img[alt="Emendu"] { height: 34px; }
.logo-row img[alt="Seidor"] { height: 58px; }
.timeline .accent, .highlight-box .accent { white-space: nowrap; }

/* ---------- Quickest path ---------- */
.path-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 56px 0; counter-reset: p; }
.path-step {
  counter-increment: p; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  position: relative;
}
.path-step::before {
  content: counter(p, decimal-leading-zero); position: absolute; top: 22px; right: 24px;
  font-family: var(--mono); color: var(--accent); font-size: 14px;
}
.path-step h3 { font-size: 1.6rem; margin-bottom: 18px; padding-right: 40px; }
.path-step p { color: var(--muted); margin: 0; }

.manifesto {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35;
  max-width: 820px; margin: 0 0 56px; padding-left: 24px; border-left: 2px solid var(--accent);
}

.final-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: calc(var(--radius) + 6px);
  background: var(--accent); color: #0a0a0b;
}
.final-cta h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); max-width: 620px; }
.final-cta .cta-arrow { display: inline-block; margin-left: .25em; animation: arrow-nudge 1.6s ease-in-out infinite; }
@keyframes arrow-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.final-cta .btn { background: #0a0a0b; color: var(--text); }
.final-cta .btn:hover { box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); }

/* ---------- About summary ---------- */
.about-summary .grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; }
.about-summary h2 { margin-bottom: 32px; }
.about-summary p { color: var(--muted); font-size: 1.22rem; line-height: 1.6; }
.about-summary p.first { color: var(--text); font-size: clamp(1.4rem, 2.3vw, 1.75rem); font-weight: 600; line-height: 1.38; letter-spacing: -0.01em; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; font-weight: 700;
  border-bottom: 1px solid var(--accent-line); padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--accent); }

/* ---------- About page ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 34px 44px; font-size: 1.15rem; color: #e7e7ea; }
.timeline li:last-child { padding-bottom: 0; color: var(--text); font-weight: 700; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline li:last-child::before { background: var(--accent); box-shadow: 0 0 16px var(--accent); }

.highlight-box {
  margin: 0; padding: 48px; border-radius: calc(var(--radius) + 6px);
  background: var(--surface); border: 1px solid var(--accent-line); position: relative;
}
.highlight-box::before {
  content: "\201C"; position: absolute; top: 4px; left: 32px; font-size: 120px; line-height: 1; color: var(--accent); font-family: Georgia, serif;
}
.highlight-box blockquote { margin: 0; padding-top: 44px; }
.highlight-box p { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; font-weight: 600; letter-spacing: -0.01em; }
.highlight-box p:last-child { margin-bottom: 0; color: var(--muted); }

.about-story { display: grid; grid-template-columns: 1.45fr 1fr; gap: 64px; align-items: start; }
.highlight-wide { padding: 64px 64px 56px; }
.highlight-wide::before { left: 56px; top: 10px; }
.highlight-wide p { font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.3; }
.highlight-wide p:last-child { font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.45; }

.link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 40px; max-width: 720px; }
.link-cards.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: none; }
button.link-card { font: inherit; font-weight: 700; font-size: 1.1rem; color: var(--text); cursor: pointer; text-align: left; width: 100%; }
.catalog-card .chev { width: 34px; height: 34px; transform: rotate(-90deg); }
.catalog-card[aria-expanded="true"] { border-color: var(--accent); }
.catalog-card[aria-expanded="true"] .chev { transform: rotate(0deg); border-color: var(--accent); }
.catalog-card:hover .chev { border-color: var(--accent); }
.link-cards.cols-3 + .catalog-panel { margin-top: -24px; }
.catalog-panel { border: 1px solid var(--accent-line); border-radius: 14px; overflow: hidden; margin: 0 0 40px; }
.catalog-panel[hidden] { display: none; }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft);
  text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: border-color .15s ease, transform .15s ease;
}
.link-card .arrow { color: var(--accent); transition: transform .15s ease; }
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-card:hover .arrow { transform: translateX(4px); }

/* ---------- Free tools / blog lists ---------- */
.item-list { display: grid; gap: 16px; }
.item-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
.item {
  padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft);
  position: relative; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.item .idx { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.item h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.015em; }

/* ---------- Contact ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line-soft); }
.contact .grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact form { display: grid; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0; position: relative; overflow: hidden; isolation: isolate; }
.footer-canvas {
  position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
  opacity: 0; transition: opacity .6s ease;
}
.footer-canvas.is-live { opacity: .9; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .service { padding: 40px 32px; }
  .service-panel-inner { padding-left: 0; }
  .cols-2, .about-summary .grid, .about-story, .contact .grid { grid-template-columns: 1fr; gap: 40px; }
  .path-steps, .item-list.cols-3 { grid-template-columns: 1fr; }
  .story-photo { position: static; max-width: 520px; }
  .about-photo { justify-self: start; max-width: 360px; }
  .link-cards.cols-3 { grid-template-columns: 1fr; }
  .link-cards.cols-3 + .catalog-panel { margin-top: -24px; }
  .logo-row { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 32px 24px; padding-top: 36px; padding-bottom: 36px; }
  .logo-row img { height: 34px; max-width: 100%; }
  .logo-row img[alt="Emendu"] { height: 26px; }
  .logo-row img[alt="Seidor"] { height: 46px; }
  ol.steps.grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 12px; font-size: 17px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-links .nav-cta { margin: 8px 0 0; }
  .nav-links .nav-cta .btn { width: 100%; padding: 15px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 88px 0 80px; }
  .narrative { padding: 80px 0; }
  .page-head { padding: 72px 0 40px; }
  .service { padding: 32px 22px; }
  .segments { grid-template-columns: 1fr; }
  .segment { grid-template-columns: 1fr; row-gap: 6px; }
  .service.is-collapsed { padding-top: 26px; padding-bottom: 26px; }
  .final-cta { padding: 32px 26px; }
  .highlight-box { padding: 36px 26px; }
  .link-cards { grid-template-columns: 1fr; }
  .catalog-cols { grid-template-columns: 1fr; }
  .highlight-wide { padding: 44px 26px 36px; }
  .highlight-wide::before { left: 22px; }
  .section-first { padding-top: 56px; }
  .btn { white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.inline-link { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .15s ease; }
.inline-link:hover { color: var(--accent); }

/* LinkedIn icon */
.li-link { display: inline-flex; align-items: center; vertical-align: middle; border-radius: 4px; transition: transform .15s ease, filter .15s ease; }
.li-link img { width: 22px; height: 22px; display: block; }
.li-link:hover { transform: translateY(-1px); filter: drop-shadow(0 0 8px rgba(255,106,19,.55)); }
.link-row { display: flex; align-items: center; gap: 18px; }
.timeline .li-link { margin-left: 8px; position: relative; top: -2px; }
.footer-links .li-link { padding: 6px 4px 6px 10px; }
.footer-links .li-link img { width: 20px; height: 20px; }

/* Custom fields (CRM enrichment): 3rd bullet, white text glow, layout identical to other bullets */
ul.ticks li.custom-fields .cf-examples {
  display: block; margin-top: 10px; color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.55), 0 0 22px rgba(255,255,255,.25);
}

/* Home logo band spacing */
.narrative + .logo-stripe { margin-top: 0; }

