@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --stone: #6b6b6b;
  --line: #e7e7e4;
  --mist: #eef3e8;
  --sage: #c9daba;
  --moss: #3f5f33;

  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-pill: 999px;
  --radius-panel: 28px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-tag {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--stone);
}
.brand-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--moss), var(--sage), #f4f7f0, var(--moss));
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
}
.nav a { text-decoration: none; color: var(--stone); transition: color 0.15s; }
.nav a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .nav .nav-link { display: none; }
}
@media (max-width: 520px) {
  /* The hero CTA sits right below; give the name and tagline the full row. */
  .nav .btn { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font: 500 0.95rem/1 var(--text);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.nav a.btn-dark { color: var(--paper); }
.btn-dark:hover { background: #2a2a2a; }
.btn-light { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 0.9rem; }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(56px, 9vw, 112px) clamp(64px, 9vw, 120px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.cert-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s;
}
.cert-chip:hover { border-color: var(--moss); }
.cert-chip .brand-mark { width: 24px; height: 24px; }
.cert-chip span { color: var(--stone); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  margin-top: 28px;
  max-width: 13ch;
}

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  color: var(--stone);
  max-width: 34em;
  margin: 28px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Agent stage: the one memorable element */

.stage {
  position: relative;
  min-height: 600px;
  max-width: 100%;
  border-radius: var(--radius-panel);
  background: var(--mist);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 40px;
  padding: clamp(20px, 3vw, 32px);
}

.orb {
  position: relative;
  width: min(52%, 230px);
  aspect-ratio: 1;
  margin: 30px auto 0;
  border-radius: 50%;
  isolation: isolate;
}
.orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #ffffff 0 12%, transparent 46%),
    conic-gradient(from 0deg, #2f4a26, #8fae78, #e4ecd9, #5f8350, #c9daba, #2f4a26);
  filter: blur(1px) saturate(1.05);
  animation: orb-spin 18s linear infinite;
}
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.5),
    inset -18px -24px 60px rgb(20 40 15 / 0.35),
    0 30px 60px -20px rgb(47 74 38 / 0.45);
}
.orb-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgb(63 95 51 / 0.25);
  animation: orb-breathe 3.2s ease-in-out infinite;
}
.orb-ring + .orb-ring { inset: -30px; animation-delay: 0.6s; border-color: rgb(63 95 51 / 0.12); }

@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.035); opacity: 0.55; }
}

.transcript {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
  line-height: 1.45;
}
.transcript li {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.transcript .agent {
  background: var(--paper);
  border-bottom-left-radius: 6px;
}
.transcript .caller {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 6px;
}
.transcript .who {
  display: block;
  font-size: 0.75rem;
  color: var(--stone);
  margin-bottom: 2px;
}
.transcript .caller .who { color: #a9a9a9; }
.transcript .note {
  align-self: center;
  max-width: none;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--moss);
  background: rgb(255 255 255 / 0.6);
  border-radius: var(--radius-pill);
}
.js .transcript li.is-pending { opacity: 0; transform: translateY(8px); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 14ch; }
.section-head p { margin: 0; color: var(--stone); max-width: 32em; }

/* Services as rows, not cards */

.services { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px 48px;
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.service h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; }
.service p { margin: 0; color: var(--stone); }
.service ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.service li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.service li:last-child { border-bottom: 0; }

/* Certificate */

.cert {
  background: var(--mist);
  border-radius: var(--radius-panel);
  padding: clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.cert-figure { margin: 0; }
.cert-figure a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.04), 0 30px 60px -30px rgb(47 74 38 / 0.5);
  transition: transform 0.25s ease;
}
.cert-figure a:hover { transform: translateY(-2px); }
.cert-figure img { width: 100%; height: auto; }
.cert-figure figcaption { font-size: 0.85rem; color: var(--stone); margin-top: 14px; }

.cert h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.cert-intro { color: var(--stone); margin: 16px 0 28px; }

.facts { margin: 0 0 28px; display: grid; grid-template-columns: auto 1fr; font-size: 0.94rem; }
.facts dt, .facts dd { padding: 10px 0; border-top: 1px solid rgb(63 95 51 / 0.18); margin: 0; }
.facts dt { color: var(--stone); padding-right: 24px; }
.facts dd { overflow-wrap: anywhere; }

.skills { margin-top: clamp(40px, 6vw, 64px); }
.skills h3 { font-size: 1.35rem; margin-bottom: 20px; letter-spacing: -0.02em; font-weight: 400; }
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.skill-list li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
}

/* Process: a real sequence, so it is numbered */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 24px 24px 0 0;
  border-top: 1px solid var(--ink);
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--moss);
  margin-bottom: 20px;
}
.steps h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--stone); font-size: 0.95rem; }

/* EU AI Act */

.act {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}
.act h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 12ch; }
.act-lede { color: var(--stone); margin: 24px 0 0; max-width: 30em; }
.act-quote {
  margin: 36px 0 0;
  padding: 22px 24px;
  background: var(--mist);
  border-radius: 18px;
  font-size: 0.98rem;
}
.act-quote p { margin: 0; }
.act-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.84rem; color: var(--moss); }

.checks { margin: 0; padding: 0; list-style: none; }
.checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.checks li:first-child { border-top: 1px solid var(--line); }
.checks svg { margin-top: 3px; }
.checks strong { display: block; font-weight: 500; margin-bottom: 2px; }
.checks span { color: var(--stone); font-size: 0.95rem; }
.disclaimer { font-size: 0.84rem; color: var(--stone); margin: 20px 0 0; }

/* Contact */

.contact {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-panel);
  padding: clamp(36px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.contact::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #2f4a26, #8fae78, #e4ecd9, #5f8350, #2f4a26);
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 13ch; position: relative; z-index: 1; }
.contact p { color: #b5b5b5; margin: 20px 0 0; max-width: 30em; position: relative; z-index: 1; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; position: relative; z-index: 1; }
.contact .btn-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact .btn-dark:hover { background: var(--sage); border-color: var(--sage); }
.contact-mail { font-size: 0.95rem; color: #b5b5b5; }
.contact-mail a { color: var(--paper); }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px 56px;
  font-size: 0.88rem;
  color: var(--stone);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.trademark { flex-basis: 100%; font-size: 0.8rem; color: #8c8c8c; margin: 0; max-width: 60em; }

/* ---------- Legal pages ---------- */

.legal { padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 120px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 12px; }
.legal .updated { color: var(--stone); margin: 0 0 48px; }
.legal h2 {
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal h3 { font-family: var(--text); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 28px 0 6px; }
.legal p, .legal li { color: #2b2b2b; max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; }
.back { display: inline-block; margin-bottom: 32px; color: var(--stone); text-decoration: none; font-size: 0.92rem; }
.back:hover { color: var(--ink); }

/* Placeholders the owner still has to fill in */
.todo {
  background: #fff3b0;
  border-radius: 4px;
  padding: 0 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap, .cert, .act, .contact { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 0; max-width: 560px; }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .service h3 { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 640px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .service { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .transcript li { max-width: 94%; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dd { border-top: 0; padding-top: 0; }
  .site-header .btn-sm { padding: 0 14px; }
}

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

.contact .todo { color: var(--ink); }
