:root {
  --ink: #1b2a3a;
  --ink-soft: #46586b;
  --paper: #fbfcfd;
  --mist: #e8eef1;
  --line: #cfd9df;
  --sage: #2f6f5e;
  --sage-deep: #24584a;
  --brass: #a8781f;
  --flag: #b4492f;
  --serif: "Spectral", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --wrap: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--sage-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 500; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; max-width: 38rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.wordmark {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark span { color: var(--sage); }
.nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; }
.nav a:hover { text-decoration: underline; }

.button {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.3rem;
  border-radius: 6px;
  border: 2px solid var(--sage);
}
.button:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.button.quiet { background: transparent; color: var(--sage-deep); }
.button.quiet:hover { background: var(--mist); color: var(--ink); }
.nav .button { padding: 0.5rem 1rem; font-size: 0.95rem; color: #fff; }
.nav .button:hover { text-decoration: none; }

/* Hero carousel */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #fff;
  min-height: min(86vh, 44rem);
  display: flex; flex-direction: column; justify-content: space-between;
}
.slides { position: absolute; inset: 0; z-index: -1; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 900ms ease, visibility 0s linear 900ms;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 900ms ease; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,32,45,.93) 0%, rgba(20,32,45,.78) 45%, rgba(20,32,45,.3) 100%);
}
.slide-copy {
  position: relative; z-index: 1;
  height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding-top: 5.5rem; padding-bottom: 7.5rem;
}
.slide-word {
  margin: 0 0 1rem; max-width: none;
  font-family: var(--serif); font-weight: 600; line-height: .95;
  font-size: clamp(3.6rem, 11vw, 8rem); letter-spacing: -0.03em;
}
.slide:nth-child(1) .slide-word { color: #fff; }
.slide:nth-child(2) .slide-word { color: #8fd0bb; }
.slide:nth-child(3) .slide-word { color: #e6b45a; }
.slide-sub { font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.5; color: #e2e9ef; max-width: 34rem; margin: 0; }

.hero-fixed { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; justify-content: space-between; flex: 1; padding-top: 1.6rem; padding-bottom: 2rem; pointer-events: none; }
.hero-fixed > * { pointer-events: auto; }
.hero h1 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: #c9d6df; margin: 0; letter-spacing: 0; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .actions { margin-top: 0; }
.button.ghost { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.button.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.controls { display: flex; align-items: center; gap: 0.5rem; }
.ctl {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6); background: rgba(20,32,45,.35);
  color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0;
}
.ctl:hover { background: rgba(255,255,255,.15); }
.ctl svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ctl .i-play { display: none; fill: currentColor; stroke: none; }
.is-paused .ctl .i-play { display: block; }
.is-paused .ctl .i-pause { display: none; }
.dots { display: flex; gap: 0.45rem; padding: 0 0.3rem; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 1.5px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.dot.is-active { background: #fff; width: 1.8rem; border-radius: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .slide-word { animation: word-in 850ms cubic-bezier(.2,.75,.2,1) both 200ms; }
  .slide.from-right.is-active .slide-word { animation-name: word-in-r; }
  .slide.is-active .slide-sub { animation: rise 650ms ease-out both 750ms; }
  .slide.is-active .slide-img { animation: drift 9s ease-out both; }
  .dot { transition: width 300ms ease, background 300ms ease; }
  @keyframes word-in { from { opacity: 0; transform: translateX(-45vw); } to { opacity: 1; transform: none; } }
  @keyframes word-in-r { from { opacity: 0; transform: translateX(45vw); } to { opacity: 1; transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }

/* Icons */
.icon {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--mist); margin-bottom: 0.9rem;
}
.icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--sage-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* The memorable element: the review sheet */
.sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--ink);
  border-radius: 4px;
  padding: 1.6rem 1.6rem 1.2rem;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(27, 42, 58, 0.45);
  transform: rotate(0.6deg);
}
.sheet header { border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; margin-bottom: 0.4rem; }
.sheet .title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 0; }
.sheet .meta { color: var(--ink-soft); font-size: 0.88rem; margin: 0.2rem 0 0; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sheet td { padding: 0.62rem 0; border-bottom: 1px solid var(--mist); vertical-align: top; }
.sheet td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; font-weight: 600; }
.ok { color: var(--sage); }
.check { color: var(--brass); }
.fix { color: var(--flag); }
.sheet .note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.9rem 0 0; }

/* Notice band */
.notice { background: #f6ecd8; border-bottom: 1px solid #e7d6b3; padding: 2.2rem 0; }
.notice .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; border-left: 4px solid var(--brass); padding-left: 1.5rem; margin-left: max(1.25rem, calc((100% - var(--wrap)) / 2 + 1.25rem)); margin-right: auto; max-width: calc(var(--wrap) - 2.5rem); }
.notice h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.notice p { color: var(--ink-soft); margin-bottom: 0; }

/* Sections */
section.block { padding: 4.5rem 0; }
section.block.tint { background: var(--mist); }
.intro { margin-bottom: 2.4rem; }
.intro p { color: var(--ink-soft); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.services > div { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.services p { color: var(--ink-soft); font-size: 1rem; }
.services ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: 1rem; }
.services li { margin-bottom: 0.35rem; }

.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sector { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sector img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; background: var(--line); }
.sector-body { padding: 1.5rem 1.6rem 1.4rem; }
.sector ul { margin: 0; padding-left: 1.1rem; }
.sector li { margin-bottom: 0.5rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  border: 2px solid var(--sage); color: var(--sage-deep);
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  display: grid; place-items: center;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-soft); font-size: 1rem; }

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3.5rem; align-items: start; }
.facts { border-left: 3px solid var(--brass); padding-left: 1.5rem; }
.facts dl { margin: 0; }
.facts-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 1rem; }
.facts dt { font-weight: 700; font-size: 0.95rem; margin-top: 1rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 1rem; }

.contact { text-align: left; }
.contact .lines { display: grid; gap: 0.4rem; margin: 1.4rem 0 1.8rem; font-size: 1.1rem; }

/* Example designs */
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 2rem; }
.ex { display: block; color: var(--ink); text-decoration: none; }
.frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -28px rgba(27,42,58,.55); transition: transform 250ms ease, box-shadow 250ms ease; }
.ex:hover .frame, .ex:focus-visible .frame { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(27,42,58,.6); }
.bar { height: 1.7rem; background: var(--mist); display: flex; align-items: center; gap: .35rem; padding: 0 .7rem; border-bottom: 1px solid var(--line); }
.bar i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--line); }
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; --s: .45; }
.screen iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; }
.ex-sector { margin: 1rem 0 .2rem; font-size: .9rem; font-weight: 600; color: var(--sage-deep); }
.ex h3 { margin-bottom: .2rem; }
.ex:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
.ex-note { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 640px) { .examples { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: 0.9rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer p { margin: 0 0 0.3rem; max-width: none; }

/* Privacy page */
.doc { padding: 3.5rem 0 4.5rem; }
.doc .wrap { max-width: 46rem; }
.doc h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }

/* Responsive */
@media (max-width: 900px) {
  .about, .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .slide::after { background: linear-gradient(180deg, rgba(20,32,45,.82), rgba(20,32,45,.9)); }
  .services { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .notice .wrap { grid-template-columns: 1fr; }
  .sheet { transform: none; }
}
@media (max-width: 640px) {
  .hero { min-height: 40rem; }
  .slide-copy { padding-top: 4rem; padding-bottom: 12rem; }
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .controls { justify-content: center; }
  section.block { padding: 3.2rem 0; }
  .sectors, .steps { grid-template-columns: 1fr; }
  .nav { gap: 1rem; }
  .nav .hide-sm { display: none; }
}
