/* ==========================================================================
   Eltervåg Gruppen AS
   Design: "lys industriell / fraktbrev" — see CLAUDE.md for the locked palette,
   type roles and the manifest-row layout primitive.
   ========================================================================== */

/* --- self-hosted fonts (latin subset covers æ ø å) ------------------------- */
/* Served from our own domain: no visitor IPs to Google (GDPR), no third-party
   connections. Descriptors mirror the css2 response the site used to hotlink. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/archivo-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;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500-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;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-600-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;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/instrument-sans-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 {
  --paper:    #F2F0EC;
  --paper-2:  #E7E4DE;
  --ink:      #16181B;
  --ink-2:    #55595F;
  --dark:     #101215;
  --dark-2:   #A8ACB2;
  --red:      #E8112D;  /* fills only — 4.06:1 on paper, never body text */
  --red-ink:  #B81022;  /* red text on paper — 5.9:1 */
  --line:     rgba(22, 24, 27, 0.16);
  --line-dark: rgba(242, 240, 236, 0.16);

  --display: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --body:    "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter:  clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --maxw:    1280px;
}

/* --- reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--red-ink);
  outline-offset: 3px;
}

/* --- type ----------------------------------------------------------------- */

h1, h2, h3, .manifest-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.94;
  margin: 0;
  text-wrap: balance;
}

/* line-height stays ≥ 1 so the ring on Å and the slash on Ø never touch the line above —
   Archivo sets both well past cap height, and Norwegian headlines are full of them. */
h1 {
  font-size: clamp(2.6rem, 7.4vw, 6.25rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
h2 { font-size: clamp(1.9rem, 4.4vw, 3.5rem); line-height: 1.0; }
h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-stretch: 88%;
  letter-spacing: 0.005em;
  line-height: 1.1;
}

p { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* headings carry no bottom margin of their own, so space the following copy here */
h1 + p, h2 + p, h2 + ul, h3 + p { margin-top: 1.35rem; }

.lead {
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-ink);
  margin: 0 0 1.5rem;
  max-width: none;
}

.eyebrow--muted { color: var(--ink-2); }

/* --- layout --------------------------------------------------------------- */

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

section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--paper-2); }

.section--dark {
  background: var(--dark);
  color: var(--paper);
}
.section--dark .lead,
.section--dark .prose { color: var(--dark-2); }
.section--dark .eyebrow { color: var(--paper); opacity: 0.72; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: 1.5rem; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.section--dark .rule { border-color: var(--line-dark); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--red-ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.section--dark .btn--ghost { color: var(--paper); border-color: var(--paper); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.5rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand svg, .brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.nav-links a:hover { border-bottom-color: var(--red); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--red); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.nav-phone:hover { background: var(--red-ink); }

/* The phone CTA exists twice: once inside .nav-links for the mobile panel, once
   standalone for the desktop bar. Each breakpoint shows exactly one. */
.nav-links .nav-phone { display: none; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;   /* no double-tap-to-zoom on the menu button */
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

.hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem); }

.hero h1 { margin-bottom: 2rem; max-width: 15ch; }
.hero .lead { max-width: 50ch; }

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--paper-2);
  border-top: 4px solid var(--red);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

/* <picture> is height:auto by default, so an img set to height:100% has no definite parent
   to resolve against and falls back to its intrinsic ratio — leaving the container background
   showing below it. Give the picture a definite box to fill. */
.hero-media picture,
.split-media picture,
.service-media picture { display: block; width: 100%; height: 100%; }

/* --- manifest list (the site's signature primitive) ----------------------- */

.manifest { border-top: 1px solid var(--line); }

.manifest-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 0.95fr) minmax(0, 1.15fr) 2.5rem;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 2.6vw, 2.4rem) 1.25rem;
  margin-inline: -1.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.manifest-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red-ink);
  transition: color 0.25s ease;
}

.manifest-title { font-size: clamp(1.5rem, 3.4vw, 2.5rem); }

.manifest-desc {
  margin: 0;
  max-width: 46ch;
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--ink-2);
  transition: color 0.25s ease;
}

.manifest-arrow {
  justify-self: end;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-2);
  transition: transform 0.25s ease, color 0.25s ease;
}

.manifest-row:hover,
.manifest-row:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.manifest-row:hover .manifest-desc,
.manifest-row:focus-visible .manifest-desc,
.manifest-row:hover .manifest-arrow,
.manifest-row:focus-visible .manifest-arrow { color: var(--paper); }
.manifest-row:hover .manifest-num,
.manifest-row:focus-visible .manifest-num { color: var(--red); }
.manifest-row:hover .manifest-arrow,
.manifest-row:focus-visible .manifest-arrow { transform: translateX(6px); }

/* --- two-column text + media --------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

.split-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border-top: 3px solid var(--red);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* --- numbered principles (no icon cards) ---------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-dark);
}

.principle {
  padding: 2.25rem 2rem 0 0;
  border-right: 1px solid var(--line-dark);
}
.principle:last-child { border-right: 0; padding-right: 0; }
.principle:not(:first-child) { padding-left: 2rem; }

.principle-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 1rem;
}
.principle h3 { margin-bottom: 0.85rem; }
.principle p { font-size: 0.975rem; color: var(--dark-2); }

/* --- spec rows (freight-document texture) --------------------------------- */

.specs { margin-top: clamp(2rem, 4vw, 3rem); }

.spec {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 1rem 2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.spec:last-child { border-bottom: 1px solid var(--line); }

.spec dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 0.2rem;
}
.spec dd { margin: 0; }

.section--dark .spec { border-color: var(--line-dark); }
.section--dark .spec:last-child { border-bottom-color: var(--line-dark); }
.section--dark .spec dt { color: var(--dark-2); }

/* --- service blocks (tjenester.html) -------------------------------------- */

.service {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; padding-top: clamp(1rem, 2vw, 2rem); }

.service-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}
.service-head .manifest-num { font-size: 0.9rem; }

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.service-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-2);
  border-top: 3px solid var(--red);
}
.service-media img { width: 100%; height: 100%; object-fit: cover; }

.tick-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}
.tick-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
  font-size: 1rem;
  line-height: 1.5;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.85rem;
  height: 2px;
  background: var(--red);
}

.fits {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.fits strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* --- callout -------------------------------------------------------------- */

.callout {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--paper-2);
  border-top: 4px solid var(--red);
}
.callout h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); margin-bottom: 1.25rem; }

/* --- quotes (omtaler) ----------------------------------------------------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.quote { border-top: 3px solid var(--red); padding-top: 1.75rem; }
.quote blockquote {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}
.quote figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* red star glyphs carry the rating in both layouts; the words sit beside them
   in visually-hidden text so the rating never rests on glyphs or colour alone */
.quote-stars {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--red);
  font-size: 1rem;
  letter-spacing: 0.16em;
}

/* --- legal (personvern.html) ----------------------------------------------- */

/* Same rhythm as .manifest and .spec: mono number column, hairline dividers,
   one 3px red rule opening the list. */
.legal { border-top: 3px solid var(--red); }

.legal-item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem 1.5rem;
  padding-block: clamp(1.75rem, 3.2vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.legal-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red-ink);
  padding-top: 0.4rem;
}

.legal-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.legal-body h2 + p { margin-top: 1.1rem; }

.legal-body ul {
  margin: 1.1rem 0 1.15em;
  padding-left: 1.15rem;
}
.legal-body li { margin-bottom: 0.5rem; max-width: 64ch; }
.legal-body li::marker { color: var(--red-ink); }

.legal-body a { text-underline-offset: 2px; }

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-direct { margin-bottom: 2.5rem; }
.contact-direct a {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(1.65rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-block;
  border-bottom: 3px solid var(--red);
  padding-bottom: 0.1em;
  transition: color 0.2s ease;
}
.contact-direct a:hover { color: var(--red-ink); }
.contact-direct + .contact-direct { margin-top: -1rem; }

/* --- form ----------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.55rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px; /* keeps iOS from zooming on focus */
  line-height: 1.5;
  transition: border-color 0.2s ease;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--red); outline-offset: 1px; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2355595F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.75rem;
}

.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--red);
  background: var(--paper-2);
  font-size: 0.95rem;
}
.form-status[hidden] { display: none; }

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

.site-footer {
  background: var(--dark);
  color: var(--paper);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer-logo svg, .footer-logo img { height: 34px; width: auto; margin-bottom: 1.5rem; }
.footer-top p { color: var(--dark-2); font-size: 0.95rem; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 1.15rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a {
  color: var(--dark-2);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dark-2);
}
.footer-bottom a { color: var(--dark-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }

/* --- scroll reveal -------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- accessibility helpers ------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Mobile — ≤ 900px
   ========================================================================== */

@media (max-width: 900px) {
  body { font-size: 1rem; }

  /* shorter bar and a smaller mark on phones — the .nav-links panel below is
     pinned to this same 4.75rem, so the two must stay in step */
  .header-inner { min-height: 4.75rem; }
  .brand svg, .brand img { height: 40px; }

  .nav-links,
  .nav > .nav-phone { display: none; }
  .nav-toggle { display: block; }

  .nav[data-open="true"] .nav-links {
    display: flex;
    position: fixed;
    inset: 4.75rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.35);
    /* four links + phone CTA outgrow a landscape-phone viewport, so the panel scrolls */
    max-height: calc(100vh - 4.75rem);
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
  }
  .nav[data-open="true"] .nav-links li { width: 100%; }
  /* block, not inline — inline links swallow vertical padding and clip the rule */
  .nav[data-open="true"] .nav-links a {
    display: block;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
  }
  .nav[data-open="true"] .nav-links a[aria-current="page"] { color: var(--red-ink); }
  .nav[data-open="true"] .nav-links .nav-phone {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border-bottom: 0;
    font-size: 0.9rem;
  }

  .hero-media { aspect-ratio: 4 / 3; }
  .hero h1 { max-width: none; }

  .manifest-row {
    grid-template-columns: 3rem minmax(0, 1fr) 1.5rem;
    gap: 0.5rem 1rem;
    align-items: start;
    padding-block: 1.6rem;
  }
  .manifest-num { padding-top: 0.35rem; }
  .manifest-title { grid-column: 2; }
  .manifest-desc { grid-column: 2; margin-top: 0.65rem; }
  .manifest-arrow { grid-row: 1; grid-column: 3; }
  /* touch devices have no hover — keep rows legible on tap */
  .manifest-row:hover { background: transparent; color: inherit; }
  .manifest-row:hover .manifest-desc,
  .manifest-row:hover .manifest-arrow { color: var(--ink-2); }
  .manifest-row:hover .manifest-num { color: var(--red-ink); }
  .manifest-row:active { background: var(--paper-2); }

  .split,
  .split--wide-text,
  .service-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  .split-media { order: -1; aspect-ratio: 3 / 2; }

  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle {
    padding: 1.75rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .principle:not(:first-child) { padding-left: 0; }
  .principle:last-child { border-bottom: 0; padding-bottom: 0; }

  .spec { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }

  /* omtaler: cards become rows on phones — meta first, hairline dividers, one
     red rule opening the list (client preference 2026-07-29) */
  .quotes { gap: 0; border-top: 3px solid var(--red); }
  .quote {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .quote figcaption { order: -1; line-height: 1.9; }
  .quote blockquote { margin-bottom: 0; }

  .legal-item { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .legal-num { padding-top: 0; }

  .service-media { margin-bottom: 2rem; }

  .form-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 400px) {
  .manifest-row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .manifest-arrow { display: none; }
  .manifest-title { grid-column: 2; }
  .manifest-desc { grid-column: 2; }
}

/* --- reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- print ---------------------------------------------------------------- */

@media print {
  .site-header, .nav-toggle, .btn-row, .hero-media, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}
