/* Operosa: off-white paper, black ink, one red. Based on the original preview site. */
:root {
  --paper: #fafaf7;
  --paper-2: #f1f0ea;
  --white: #ffffff;
  --ink: #1b1c1a;
  --ink-soft: #3b3c39;
  --muted: #5f605b;
  --line: rgba(27, 28, 26, 0.13);
  --line-strong: rgba(27, 28, 26, 0.28);
  --red: #b3211b;
  --dark: #131412;
  --on-dark: #f5f5f0;
  --on-dark-muted: #b9b9b2;
  --radius: 16px;
  --wrap: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:not(.btn):hover { color: var(--red); }
.section--dark a:not(.btn):hover { color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3 { font-weight: 600; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.6vw, 5.4rem); letter-spacing: -0.04em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.035em; line-height: 1.04; }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); max-width: 38rem; }
.muted { color: var(--muted); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1.5rem; }
.brand { display: block; flex: none; }
.nav__links { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; font-size: 0.95rem; }
.nav__links a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current='page'] { color: var(--ink); }
.nav__links a[aria-current='page'] { text-decoration: underline; text-underline-offset: 0.45em; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 5px auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.5rem; border-radius: 999px;
  font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primary, .nav__links .btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover, .nav__links .btn--primary:hover { background: #000; color: var(--paper); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--small { padding: 0.62rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Sections */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .lead, .section--dark p { color: var(--on-dark-muted); }
.section--dark ::selection { background: var(--on-dark); color: var(--dark); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .btn-row { justify-content: center; }
.center h2 { margin-inline: auto; max-width: 18ch; }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 6.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: end; }
.hero .lead { margin-top: 1.75rem; }
.hero__cta { display: none; }
.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(1rem, 3vw, 2rem); }
.page-hero__split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.page-hero__art { width: 100%; height: auto; }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); max-width: 16ch; }

/* Quick enquiry form in the hero */
.quick { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 24px 48px -28px rgba(27, 28, 26, 0.28); scroll-margin-top: 6rem; }
.quick h2 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.35rem; }
.quick > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1.25rem; }

/* Forms */
.form { display: grid; gap: 0.9rem; }
.form--page { max-width: 36rem; gap: 1.1rem; }
.form label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--ink-soft); }
.form input, .form textarea, .form select {
  width: 100%; background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 0.8rem 0.95rem; color: var(--ink); font: inherit; caret-color: var(--red);
}
.quick .form input, .quick .form select { background: var(--paper); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.form textarea { min-height: 8.5rem; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form small { color: var(--muted); font-size: 0.85rem; }

/* Services: one wide row each */
.services { border-bottom: 1px solid var(--ink); }
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3.4fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2.25rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--ink); align-items: start; }
.service h3 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.service h3 a { text-decoration: none; }
.service p { color: var(--ink-soft); }
.service ul { list-style: none; margin: 1.25rem 0 0; padding: 0; color: var(--muted); font-size: 0.97rem; }
.service li { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.more { display: inline-block; margin-top: 1.25rem; font-weight: 500; }

/* Stick-figure illustrations: ink line, one red, on paper */
.scenes { padding: 0 0 clamp(3rem, 7vw, 5.5rem); }
.scenes__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 4vw, 3.5rem); }
.scene { width: 100%; height: auto; }
.service__art { width: min(100%, 17rem); height: auto; margin-top: 1.5rem; }

/* Small worked examples beside each service */
.eg { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; font-size: 0.93rem; line-height: 1.45; }
.eg figcaption { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.75rem; }
.eg__url { color: var(--red); font-size: 0.82rem; }
.eg__title { font-weight: 600; font-size: 1.05rem; text-decoration: underline; text-underline-offset: 0.18em; margin: 0.15rem 0 0.3rem; }
.eg__sms { background: var(--paper-2); border-radius: 14px 14px 14px 4px; padding: 0.75rem 0.9rem; margin: 0; }
.eg__meta { color: var(--muted); font-size: 0.8rem; margin: 0.5rem 0 0; }
.eg table { width: 100%; border-collapse: collapse; }
.eg td { padding: 0.4rem 0; border-top: 1px solid var(--line); }
.eg td:last-child { text-align: right; padding-left: 1rem; white-space: nowrap; }
.eg tr:last-child td { font-weight: 600; border-top-color: var(--ink); }
.eg p { margin: 0; }

/* Problem: heading left, plain list right */
.nb { white-space: nowrap; }
.problem { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.problem h2 { margin: 0; }
.plain { list-style: none; margin: 2rem 0 0; padding: 0; }
.plain li { padding: 1.1rem 0; border-top: 1px solid var(--line-strong); color: var(--ink-soft); }
.plain strong { color: var(--ink); font-weight: 600; }

/* A note from the two builders */
.note > * { max-width: 50rem; }
.section--dark .note p { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.32; letter-spacing: -0.02em; color: var(--on-dark); }
.section--dark .note .note__sign { font-size: 1.05rem; letter-spacing: 0; color: var(--on-dark-muted); margin: 2.5rem 0 0; }

/* Cards (inner pages) */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.card p { color: var(--ink-soft); }
.card > :last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; color: var(--ink-soft); }
.ticks li { padding: 0.65rem 0; border-top: 1px solid var(--line); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-bottom: 1rem; }
.steps h2, .steps h3, .card h2 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.6rem; }
.steps p { color: var(--ink-soft); margin: 0; }

/* Prose, slot, FAQ */
.prose { max-width: 42rem; }
.prose p { font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); }
.prose p:first-child { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 2.5rem; }
.prose--legal p, .prose--legal p:first-child { font-size: 1.0625rem; line-height: 1.6; letter-spacing: 0; color: var(--ink-soft); }
.faq { max-width: 48rem; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 1.4rem 2.5rem 1.4rem 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 0.4rem; top: 1.75rem; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 2rem; }
.faq details p { color: var(--ink-soft); max-width: 40rem; padding-bottom: 0.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer__blurb { margin-top: 1.25rem; max-width: 26rem; }
.footer__col h2 { font-size: 0.95rem; letter-spacing: 0; font-weight: 600; margin-bottom: 0.9rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__col a { text-decoration: none; color: var(--ink-soft); }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }

/* The headline settles in once on load; everything else is simply there. */
@keyframes settle { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1, .page-hero h1 { animation: settle 0.9s var(--ease) both; }

@media (max-width: 900px) {
  .hero__grid, .grid-3, .grid-2, .steps, .split, .footer__grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 1.25rem; }
  .problem, .page-hero__split { grid-template-columns: 1fr; }
  .page-hero__art { width: min(80%, 18rem); }
  .service__art { width: min(70%, 15rem); margin-top: 1rem; }
  .hero__cta { display: flex; }
  .eg { max-width: 24rem; }
  .steps { gap: 2.25rem; }
  .nav-toggle { display: block; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a:not(.btn) { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links .btn { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .page-hero h1 { animation: none; }
  .btn, .faq summary::after { transition: none; }
}

/* ---- Flair: more characters, a little more red ---- */
::selection { background: var(--red); color: #fff; }
.btn--primary:hover, .nav__links .btn--primary:hover { background: var(--red); color: #fff; }
.quick .btn--primary, .center .btn--primary, .hero__cta .btn--primary, .form--page .btn--primary { background: var(--red); color: #fff; }
.quick .btn--primary:hover, .center .btn--primary:hover, .hero__cta .btn--primary:hover, .form--page .btn--primary:hover { background: var(--ink); color: var(--paper); }
.nb { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13C60 3 120 17 180 9S270 6 297 11' fill='none' stroke='%23b3211b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 0.2em; padding-bottom: 0.1em; }
.nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.steps li { display: flex; flex-direction: column; }
.steps li::before { color: var(--red); }
.step__art { order: -1; width: min(100%, 15rem); height: auto; margin: 0 0 0.75rem -0.5rem; }
.service li { position: relative; padding-left: 1.6rem; }
.service li::before { content: ''; position: absolute; left: 0.15rem; top: 0.95rem; width: 0.7rem; height: 0.36rem; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.more::after { content: ' \2192'; color: var(--red); }
.plain li { position: relative; padding-left: 1.4rem; }
.plain li::before { content: ''; position: absolute; left: 0; top: 1.72rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); }
.problem__art { width: min(100%, 19rem); height: auto; margin-top: 1.75rem; }
.note { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.note > * { max-width: none; }
.note__text { max-width: 50rem; }
.note__art { width: 100%; height: auto; }
.cta__art { width: 13rem; height: auto; margin: 0 auto 1.25rem; }
.site-footer { border-top: 3px solid var(--red); }
@media (max-width: 900px) {
  .note { grid-template-columns: 1fr; }
  .note__art { width: min(75%, 17rem); }
  .step__art { width: 12rem; }
  .problem__art { width: min(75%, 16rem); margin-top: 1.25rem; }
}

/* ---- Phone number ---- */
.nav__links a.nav__phone { color: var(--ink); font-weight: 600; white-space: nowrap; }
.nav__links a.nav__phone:hover { color: var(--red); }
.hero__phone { margin: 1.5rem 0 0; font-size: 1.1rem; color: var(--ink-soft); }
.hero__phone a, .page-hero .lead a { font-weight: 600; color: var(--ink); white-space: nowrap; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.callbar { display: none; }
@media (max-width: 900px) {
  .hero__phone { display: none; }
  .callbar { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0.6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(250, 250, 247, 0.96); border-top: 1px solid var(--line-strong); }
  .callbar .btn { padding: 0.85rem 0.5rem; font-size: 0.98rem; min-height: 48px; }
  .callbar .callbar__call { background: var(--red); color: #fff; }
  .callbar .btn--ghost { background: var(--paper); }
  body { padding-bottom: 4.6rem; }
}
