@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Night watch: the owl's dusk and its amber eyes. */
  --dusk: #172230;
  --dusk-deep: #121b27;
  --dusk-raised: #1e2b3b;
  --plume: #33475e;
  --disc: #3e556f;
  --amber: #e9a23b;
  --amber-deep: #9a5c0c;
  --beak: #c9822a;
  --fog: #eceeea;
  --paper: #f7f7f4;
  --ink: #1a2129;

  --text-on-dark: #eceeea;
  --muted-on-dark: #a9b4c2;
  --muted-on-light: #4c5764;
  --line-on-light: rgba(26, 33, 41, 0.16);
  --line-on-dark: rgba(236, 238, 234, 0.12);
  --error-on-dark: #f4a597;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* `hidden` must win over component display rules (grid, flex). */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--dusk);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.section--light :focus-visible,
.section--paper :focus-visible { outline-color: var(--amber-deep); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--amber);
  color: var(--dusk);
  font-weight: 600;
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

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

/* ---------- owl ---------- */

.owl { display: block; overflow: visible; }
.owl-head { fill: var(--plume); stroke: var(--plume); stroke-width: 8; stroke-linejoin: round; }
.owl-disc { fill: var(--disc); }
.owl-brow { fill: none; stroke: var(--plume); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.owl-iris { fill: var(--amber); }
.owl-beak { fill: var(--beak); stroke: var(--beak); stroke-width: 3; stroke-linejoin: round; }
.wheel-art { stroke: var(--dusk); }
.wheel-art .hub { fill: var(--dusk); stroke: none; }

.lid, .wheel, .pupil { transform-box: view-box; transform-origin: 0 0; }
.pupil {
  transform: translate(calc(var(--lx, 0) * 1px), calc(var(--ly, 0) * 1px));
  transition: transform 0.35s var(--ease-out);
}
.owl.is-blinking .lid { animation: blink 0.18s ease-in-out; }

@keyframes blink {
  50% { transform: scaleY(0.08); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--amber);
  border-radius: 10px;
  background: var(--amber);
  color: var(--dusk);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: #f2b65b; border-color: #f2b65b; }
.btn--ghost { background: transparent; color: var(--text-on-dark); border-color: rgba(236, 238, 234, 0.35); }
.btn--ghost:hover { background: rgba(236, 238, 234, 0.08); border-color: var(--text-on-dark); }
.btn--small { padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* ---------- header ---------- */

.site-header { color: var(--text-on-dark); }
.header-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.owl--mark { width: 2.25rem; height: 2.25rem; }
.brand:hover .owl--mark .lid { animation: blink 0.18s ease-in-out; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { color: var(--muted-on-dark); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--text-on-dark); }

/* ---------- hero ---------- */

.hero { color: var(--text-on-dark); padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 10vw, 8rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero-title {
  font-size: clamp(2.75rem, 6.6vw, 5.4rem);
  font-weight: 750;
  line-height: 1.0;
  letter-spacing: -0.035em;
}
.hero-title .line { display: block; animation: rise 0.8s var(--ease-out) both; }
.hero-title .line:nth-child(2) { animation-delay: 0.08s; }
.hero-title .line:nth-child(3) { animation-delay: 0.16s; }
.hero-lede {
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--muted-on-dark);
  animation: rise 0.8s var(--ease-out) 0.28s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
  animation: rise 0.8s var(--ease-out) 0.36s both;
}
.hero-owl { display: flex; justify-content: center; }
.owl--hero { width: min(100%, 25rem); animation: settle 1s var(--ease-out) 0.1s both; }
.owl--hero .wheel { animation: spin-up 1.4s var(--ease-out) 0.2s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}
@keyframes settle {
  from { opacity: 0; transform: scale(0.94); }
}
@keyframes spin-up {
  from { transform: rotate(-300deg); }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--light { background: var(--fog); }
.section--process { padding-top: 0; }
.section--process .wrap { border-top: 1px solid var(--line-on-light); padding-top: clamp(4rem, 9vw, 7rem); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--dusk); color: var(--text-on-dark); }

.section h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 720;
  letter-spacing: -0.025em;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p { max-width: 32rem; color: var(--muted-on-light); }

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4.5rem);
}
.services li { padding-block: 1.6rem 1.9rem; border-top: 1px solid var(--line-on-light); }
.services h3, .steps h3 { font-size: 1.25rem; font-weight: 680; letter-spacing: -0.01em; }
.services p { margin-top: 0.55rem; max-width: 34rem; color: var(--muted-on-light); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.9rem;
  font-size: 2.25rem;
  font-weight: 750;
  line-height: 1;
  color: var(--amber-deep);
  font-variant-numeric: tabular-nums;
}
.steps p { margin-top: 0.55rem; color: var(--muted-on-light); }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.about-story h2 { max-width: 15ch; margin-bottom: 1.75rem; }
.about-story p + p { margin-top: 1.1rem; }
.about-story p { max-width: 36rem; color: var(--muted-on-light); }
.about-story .signature {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin-top: 2.25rem;
  color: var(--ink);
}
.signature-name { font-weight: 700; font-size: 1.15rem; }
.signature-role { color: var(--muted-on-light); }
.signature a { margin-left: auto; font-weight: 600; color: var(--amber-deep); }

.principles {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--dusk);
  color: var(--text-on-dark);
  border-radius: 18px;
}
.principles-title { font-size: 1.05rem; font-weight: 650; color: var(--amber); }
.principles dl > div { padding-block: 1.25rem; border-top: 1px solid var(--line-on-dark); }
.principles dl > div:first-child { margin-top: 1rem; }
.principles dl > div:last-child { padding-bottom: 0; }
.principles dt { font-size: 1.2rem; font-weight: 680; }
.principles dd { margin-top: 0.35rem; color: var(--muted-on-dark); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-intro h2 { max-width: 13ch; }
.contact-intro p { margin-top: 1.5rem; max-width: 28rem; color: var(--muted-on-dark); }
.contact-intro a { color: var(--text-on-dark); }
.contact-alt { font-size: 0.98rem; }

.contact-panel {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--dusk-raised);
  border: 1px solid var(--line-on-dark);
  border-radius: 18px;
}
.contact-form { display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label { font-weight: 600; font-size: 0.97rem; }
.optional { font-weight: 400; color: var(--muted-on-dark); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text-on-dark);
  background: var(--dusk-deep);
  border: 1px solid #3a4b60;
  border-radius: 9px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-on-dark) 50%), linear-gradient(135deg, var(--muted-on-dark) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.25rem; }
.field ::placeholder { color: #7d8a99; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(233, 162, 59, 0.28);
}
.field [aria-invalid="true"] { border-color: var(--error-on-dark); }
.field-error { font-size: 0.92rem; color: var(--error-on-dark); }

.field--check { grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: start; }
.field--check input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--amber); }
.field--check label { font-weight: 400; color: var(--muted-on-dark); }
.field--check label a { color: var(--text-on-dark); }
.field--check .field-error { grid-column: 2; }

.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--error-on-dark);
  background: rgba(244, 165, 151, 0.08);
  color: var(--text-on-dark);
  border-radius: 4px;
}
.form-error a { color: var(--text-on-dark); }
.form-error--noscript { margin-bottom: 1.25rem; }
/* Invisible unless Turnstile needs a click: cancel the grid gap it would add. */
.contact-form .cf-turnstile { margin-top: -1.25rem; }
.contact-form .cf-turnstile.is-interactive { margin-top: 0; }
.contact-form .btn { justify-self: start; min-width: 11rem; }

.form-sent { display: grid; justify-items: center; gap: 0.75rem; padding-block: 2.5rem; text-align: center; }
.form-sent:focus { outline: none; }
.owl--sent { width: 5.5rem; margin-bottom: 0.75rem; animation: settle 0.6s var(--ease-out) both; }
.form-sent h1, .form-sent h3 { font-size: 1.6rem; font-weight: 720; }
.form-sent p { color: var(--muted-on-dark); }
.form-sent strong { color: var(--text-on-dark); font-weight: 600; }

/* ---------- footer ---------- */

.site-footer { background: var(--dusk-deep); color: var(--muted-on-dark); font-size: 0.93rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-block: 2rem; }
.footer-row ul { display: flex; gap: 1.5rem; }
.footer-row a:hover { color: var(--text-on-dark); }

/* ---------- simple pages (privacy, sent) ---------- */

.page { background: var(--paper); padding-block: clamp(3rem, 7vw, 5rem); }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 740; letter-spacing: -0.03em; margin-bottom: 1rem; }
.page h2 { font-size: 1.3rem; font-weight: 680; margin: 2.25rem 0 0.6rem; }
.page p, .page li { color: var(--muted-on-light); }
.page p + p { margin-top: 0.9rem; }
.page ul { list-style: disc; padding-left: 1.25rem; }
.page li + li { margin-top: 0.35rem; }
.page a { color: var(--amber-deep); }
.page .meta { font-size: 0.95rem; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-owl { order: -1; justify-content: flex-start; }
  .owl--hero { width: 9.5rem; }
  .section-head { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .signature a { margin-left: 0; flex-basis: 100%; }
  .contact-form .btn { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
