:root {
  --bg: #F4F5F9;
  --ink: #1B1E3A;
  --slate: #5B5F7A;
  --line: #DADCE8;
  --accent: #0E7C70;
  --accent-hover: #0A6A5F;
  --accent-soft: #DDF0EC;
  --accent-ink: #0B5E55;
  --panel: #FFFFFF;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --measure: 40rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-head { padding: 1.5rem 0; }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: 1.5rem; font-family: var(--sans); font-size: 1rem; }
.site-nav a { color: var(--slate); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 3.5rem 0 5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); font-weight: 700; letter-spacing: -0.025em; max-width: 13ch; }
.hero .lede { margin-top: 1.5rem; font-size: 1.25rem; color: var(--slate); max-width: 34rem; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  padding: 0.85rem 1.35rem; border-radius: 0.6rem; text-decoration: none;
  border: 2px solid var(--ink); display: inline-block;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFFFFF; }
.btn-quiet { color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--ink); color: var(--bg); }
.avail { margin-top: 1.25rem; font-family: var(--sans); font-size: 0.98rem; color: var(--slate); display: flex; align-items: flex-start; gap: 0.6rem; }
.avail::before { content: ""; flex: none; margin-top: 0.45em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #2F9E6A; box-shadow: 0 0 0 4px rgba(47,158,106,0.15); }

/* Transcript: the one memorable element */
.call {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.4rem 1.4rem 1.1rem;
  font-family: var(--sans);
  box-shadow: 0 30px 60px -30px rgba(27,30,58,0.28);
}
.call-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.call-head .who { font-weight: 600; font-size: 1rem; }
.call-head .who span { display: block; font-weight: 400; color: var(--slate); font-size: 0.9rem; }
.live { display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: var(--slate); }
.wave { display: flex; gap: 3px; align-items: center; height: 18px; }
.wave i { width: 3px; border-radius: 2px; background: var(--accent); height: 6px; }
.wave i:nth-child(2){ height: 14px; } .wave i:nth-child(3){ height: 9px; } .wave i:nth-child(4){ height: 16px; } .wave i:nth-child(5){ height: 7px; }

.turn { margin: 0 0 0.9rem; max-width: 92%; }
.turn .speaker { font-size: 0.85rem; color: var(--slate); margin-bottom: 0.25rem; }
.bubble { padding: 0.7rem 0.95rem; border-radius: 0.85rem; font-size: 1.02rem; line-height: 1.45; }
.caller .bubble { background: #EDF0F4; border-top-left-radius: 0.25rem; }
.agent { margin-left: auto; }
.agent .speaker { text-align: right; }
.agent .bubble { background: var(--ink); color: #F3F5F7; border-top-right-radius: 0.25rem; }
.source {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.45rem;
  font-size: 0.85rem; background: var(--accent-soft); color: var(--accent-ink);
  padding: 0.2rem 0.6rem; border-radius: 99px; float: right;
}
.source svg { width: 13px; height: 13px; }
.clear { clear: both; }
.handoff {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; padding: 0.75rem 0.9rem;
  border: 1px dashed #8CC7BF; border-radius: 0.75rem; font-size: 0.95rem; color: var(--accent-ink);
}
.handoff svg { flex: none; width: 18px; height: 18px; }
.call-note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--slate); font-family: var(--sans); }

.reveal { opacity: 0; transform: translateY(6px); animation: show 0.45s ease forwards; }
.d1 { animation-delay: 0.3s; } .d2 { animation-delay: 1.1s; } .d3 { animation-delay: 1.5s; }
.d4 { animation-delay: 2.4s; } .d5 { animation-delay: 3.2s; } .d6 { animation-delay: 3.9s; }
@keyframes show { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
section.block { padding: 5rem 0; border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; max-width: 22ch; }
.intro { max-width: var(--measure); color: var(--slate); margin-top: 1rem; font-size: 1.2rem; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-top: 3rem; }
.services h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.6rem; }
.services p { color: var(--slate); margin: 0; }

/* Case study */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; margin-top: 2.5rem; }
.case p { max-width: var(--measure); }
.role { font-family: var(--sans); font-size: 1rem; color: var(--slate); margin-bottom: 1.5rem; }
.role b { color: var(--ink); font-weight: 600; }
.case h3 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.built { list-style: none; padding: 0; margin: 0; }
.built li { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.built li:last-child { border-bottom: 1px solid var(--line); }
.built b { font-family: var(--sans); font-weight: 600; display: block; }
.built span { color: var(--slate); }

.pipeline { list-style: none; counter-reset: step; padding: 0; margin: 0; position: relative; }
.pipeline li { counter-increment: step; position: relative; padding: 0 0 1.6rem 3.4rem; }
.pipeline li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  background: var(--panel); border: 2px solid var(--ink);
}
.pipeline li::after { content: ""; position: absolute; left: 1.05rem; top: 2.3rem; bottom: 0.2rem; width: 2px; background: var(--line); }
.pipeline li:last-child::after { display: none; }
.pipeline li:last-child::before { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pipeline b { font-family: var(--sans); font-weight: 600; display: block; font-size: 1.1rem; }
.pipeline span { color: var(--slate); }
.case-link { margin-top: 1rem; font-family: var(--sans); font-weight: 600; }

/* Experience */
.timeline { margin-top: 2.5rem; max-width: 52rem; }
.job { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job .when { font-family: var(--sans); color: var(--slate); font-size: 1rem; padding-top: 0.15rem; }
.job h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
.job p { color: var(--slate); margin: 0; }
.points { margin: 0; padding: 0; list-style: none; color: var(--slate); }
.points li { position: relative; padding-left: 1.1rem; }
.points li + li { margin-top: 0.2rem; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.4rem; height: 2px; background: var(--accent); }

.rating { margin-top: 2.5rem; font-family: var(--sans); font-size: 1.05rem; }
.rating strong { font-weight: 600; }

/* Contact */
.contact { background: var(--ink); color: #E8ECF2; border-top: none; }
.contact h2 { color: #FFFFFF; }
.contact .intro { color: #AEB7C6; }
.contact .btn-quiet { color: #FFFFFF; border-color: #FFFFFF; }
.contact .btn-quiet:hover { background: #FFFFFF; color: var(--ink); }
.person { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2rem; font-family: var(--sans); }
.person img { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; border: 3px solid #4FB3A6; flex: none; }
.person b { display: block; color: #FFFFFF; font-weight: 600; font-size: 1.15rem; }
.person span { color: #AEB7C6; font-size: 1rem; }
.elsewhere { margin-top: 2rem; font-family: var(--sans); font-size: 1rem; color: #AEB7C6; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.elsewhere a { color: #FFFFFF; }

.site-foot { background: var(--ink); color: #8A94A6; font-family: var(--sans); font-size: 0.92rem; padding: 0 0 2.5rem; }
.site-foot .wrap { border-top: 1px solid #2B3650; padding-top: 1.5rem; }

@media (max-width: 900px) {
  .hero .wrap, .case { grid-template-columns: 1fr; gap: 3rem; }
  .services { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-top: 1.5rem; }
}
@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .site-nav { gap: 1rem; font-size: 0.95rem; }
  .site-nav .hide-sm { display: none; }
  .job { grid-template-columns: 1fr; gap: 0.3rem; }
  section.block { padding: 3.5rem 0; }
  .turn { max-width: 100%; }
}

/* ---------- Case study page ---------- */
.cs-head { padding: 2.5rem 0 3rem; }
.back { font-family: var(--sans); font-size: 1rem; text-decoration: none; color: var(--slate); }
.back:hover { color: var(--ink); }
.cs-head h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -0.03em; margin-top: 1.25rem; }
.cs-head .lede { font-size: 1.35rem; color: var(--slate); max-width: 36rem; margin-top: 1.25rem; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 2.5rem 0 0; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--sans); }
.facts dt { color: var(--slate); font-size: 0.95rem; margin-bottom: 0.3rem; }
.facts dd { margin: 0; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.facts dd span { font-weight: 400; display: block; }

.todo { border: 2px dashed #D9A300; background: #FFF8E1; color: #6E5200; font-family: var(--sans); font-size: 1rem; line-height: 1.5; padding: 1rem 1.2rem; border-radius: 0.75rem; }
.todo b { display: block; margin-bottom: 0.2rem; }
.shot { min-height: 22rem; display: grid; place-items: center; text-align: center; margin-top: 1rem; }

.cs-section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.cs-section h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
.cs-body { max-width: var(--measure); margin-top: 1.25rem; }
.cs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }

.features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3rem; max-width: 56rem; }
.features b { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; display: block; margin-bottom: 0.2rem; }
.features span { color: var(--slate); }

.arch { margin-top: 2.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.5rem; }
.arch svg { width: 100%; height: auto; display: block; }
.arch figcaption { font-family: var(--sans); font-size: 0.92rem; color: var(--slate); margin-top: 0.75rem; }

.decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; margin-top: 2.5rem; }
.decisions h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.6rem; }

@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-grid, .decisions, .features { grid-template-columns: 1fr; gap: 2rem; }
}
