/* Switzer from Fontshare (ITF Free Font License), hosted with the site so pages need no outside server. */
@font-face {
  font-family: "Switzer";
  src: url("/fonts/Switzer-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("/fonts/Switzer-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --mist: #f2f2f0;
  --line: #e2e2df;
  --stone: #6e6e6b;
  --accent: #1e40e6;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --margin: clamp(20px, 3.2vw, 48px);
  --gap: clamp(16px, 1.7vw, 24px);
  --nav-h: 76px;
}

html[data-font="geist"] { --font: "Geist", "Helvetica Neue", Arial, sans-serif; }
html[data-font="inter"] { --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif; }
html[data-font="switzer"] { --font: "Switzer", "Helvetica Neue", Arial, sans-serif; }
html[data-font="schibsted"] { --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; }

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 21px;
  line-height: 32px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

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

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--margin);
  z-index: 20;
  background: linear-gradient(var(--paper) 55%, rgba(255, 255, 255, 0));
}
.nav-logo img { display: block; width: 30px; height: 30px; }
.nav-links, .nav-items { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); font-size: 17px; line-height: 24px; }
.nav-links a:hover { color: var(--accent); }
.nav-menu { display: none; border: 0; background: none; padding: 8px 0; cursor: pointer; }
.nav-menu:hover { color: var(--accent); }
.nav-ask {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}
.nav-ask:hover { background: var(--accent); }

/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  max-height: 1100px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  transition: opacity 0.45s ease;
}
.hero.is-swapping #hero-canvas { opacity: 0; }
html[data-hero="a"] #hero-canvas,
html[data-hero="b"] #hero-canvas {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--nav-h) + 24px), #000 52%, transparent 84%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--nav-h) + 24px), #000 52%, transparent 84%);
}
.wordmark {
  position: absolute;
  left: var(--margin);
  right: var(--margin);
  bottom: calc(var(--margin) * 0.35 + 0.19em);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.055em;
  white-space: nowrap;
  pointer-events: none;
}
.wordmark span { display: inline-block; }
.baseline-probe { display: inline-block; width: 0; height: 0; vertical-align: baseline; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 0 var(--margin);
}

/* Intro */
.intro {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(96px, 12vw, 180px);
  align-items: start;
}
.lead {
  grid-column: 1 / 8;
  font-size: clamp(28px, 2.7vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.ask { grid-column: 8 / 13; padding-top: 6px; }
.ask-label { display: block; font-size: 15px; line-height: 22px; color: var(--stone); margin-bottom: 10px; }
.ask-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  transition: border-color 0.2s ease;
}
.ask-row:focus-within { border-color: var(--accent); }
.ask-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 19px;
  outline: none;
}
.ask-row input::placeholder { color: #9c9c98; }
.ask-row button {
  border: 0;
  background: none;
  font-weight: 700;
  font-size: 17px;
  padding: 10px 0 10px 16px;
  cursor: pointer;
}
.ask-row button:hover { color: var(--accent); }
.ask-row button:disabled { color: var(--stone); cursor: default; }
.ask-answer { font-size: 17px; line-height: 26px; color: var(--stone); margin-top: 14px; min-height: 26px; max-width: 46ch; }

/* Sections */
.section { padding-bottom: clamp(96px, 12vw, 180px); }
.label {
  grid-column: 1 / 4;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: var(--stone);
  padding-top: 6px;
}

.services { grid-column: 4 / 13; border-top: 1px solid var(--line); }
.services li { border-bottom: 1px solid var(--line); }
.services a {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: var(--gap);
  padding: clamp(22px, 2.4vw, 34px) 0;
}
.services h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  transition: color 0.2s ease;
}
.services p { font-size: 18px; line-height: 27px; color: var(--stone); max-width: 44ch; padding-top: 4px; }
.services a:hover h3 { color: var(--accent); }
/* A small flock of strokes beside the list on wide screens (heroes/flock.js). */
#thjonusta, #services { position: relative; }
.services-flock { position: absolute; display: block; pointer-events: none; }
@media (max-width: 860px) { .services-flock { display: none; } }

.products {
  grid-column: 4 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.product {
  --pad: clamp(24px, 2.6vw, 40px);
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  background: var(--mist);
  border-radius: 18px;
  padding: var(--pad);
}
.product h3 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 16px; }
.product p { font-size: 18px; line-height: 27px; max-width: 34ch; }
.product-url { margin-top: auto; padding-top: 32px; font-size: 15px; color: var(--stone); }
.product:hover .product-url { color: var(--accent); }
/* A small motion graphic (heroes/products.js): above the text in narrow cards, beside it in wide ones. */
.product-art { display: block; width: 100%; height: 170px; margin-bottom: 24px; }
@container (min-width: 560px) {
  .product-art { position: absolute; top: var(--pad); right: var(--pad); width: 38cqw; height: calc(100% - 2 * var(--pad)); margin: 0; }
  .product p { max-width: min(34ch, calc(62cqw - var(--pad) - 28px)); }
}

.about-wrap { grid-column: 4 / 13; }
.about {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 34ch;
}
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  max-width: 820px;
  margin-top: clamp(40px, 5vw, 72px);
}
.team-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 18px;
  background: var(--mist);
  margin-bottom: 20px;
}
.team-photo.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  font-size: 15px;
}
.team h3 { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.team-role { font-size: 17px; line-height: 24px; color: var(--stone); margin-top: 2px; }
.team-bio { font-size: 17px; line-height: 26px; margin-top: 10px; max-width: 36ch; }
/* Long Icelandic compounds (Hugbúnaðarsérfræðingur) must break in the narrow phone columns. */
.team li { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.team-email {
  display: inline-block;
  margin-top: 12px;
  font-size: 17px;
  line-height: 24px;
  border-bottom: 1px solid currentColor;
}
.team-email:hover { color: var(--accent); }

/* Contact */
.contact {
  padding-top: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 96px);
  border-top: 1px solid var(--line);
  row-gap: 32px;
}
.contact-title {
  grid-column: 1 / 13;
  font-size: clamp(56px, 9.5vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.contact-lines {
  grid-column: 4 / 13;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.contact-lines a { border-bottom: 2px solid currentColor; }
.contact-lines a:hover { color: var(--accent); }
.contact-meta { grid-column: 4 / 13; font-size: 15px; line-height: 22px; color: var(--stone); }

/* Subpages */
.subpage main { padding-top: var(--nav-h); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.page-head { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(72px, 9vw, 140px); align-items: start; }
.page-head .label { padding-top: 16px; }
/* Service pages open with a band of strokes that runs up behind the nav, as on the front page. */
.page-hero { position: relative; height: clamp(300px, 36vw, 540px); margin-top: calc(-1 * var(--nav-h)); }
.page-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--nav-h) + 8px), #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--nav-h) + 8px), #000 78%, transparent 100%);
}
.page-hero + .page-head { padding-top: clamp(16px, 2.5vw, 40px); }
.page-head .label a:hover { color: var(--accent); }
.page-head-main { grid-column: 4 / 13; }
.page-head h1 { font-size: clamp(48px, 7vw, 112px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 700; max-width: 14ch; }
.page-head .lead { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.01em; max-width: 38ch; margin-top: 32px; }
.page-head .lead-more { font-size: 19px; line-height: 30px; max-width: 60ch; margin-top: 16px; }
.note { background: var(--mist); border-radius: 12px; padding: 12px 16px; font-size: 15px; line-height: 22px; max-width: 60ch; }
.page-head .note { margin-top: 28px; }
.content { grid-column: 4 / 13; min-width: 0; }
.content > * + * { margin-top: 24px; }
.content > p { font-size: 19px; line-height: 30px; max-width: 62ch; }
.content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rows { border-top: 1px solid var(--line); }
.rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  column-gap: var(--gap);
  padding: clamp(18px, 2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}
.rows h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.rows p { font-size: 18px; line-height: 28px; color: var(--stone); max-width: 52ch; padding-top: 2px; }
.bullets { display: grid; gap: 10px; max-width: 62ch; }
.bullets li { position: relative; padding-left: 28px; font-size: 19px; line-height: 29px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 2px; background: var(--accent); }
.steps { counter-reset: step; border-top: 1px solid var(--line); max-width: 760px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  line-height: 29px;
}
.steps li::before { content: counter(step); font-weight: 700; color: var(--accent); }
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq-a p { font-size: 18px; line-height: 28px; color: var(--stone); max-width: 62ch; padding-bottom: 22px; }
.cta .btn { margin-top: 8px; }
.team-page { margin-top: 0; max-width: 820px; }
.posts { border-top: 1px solid var(--line); }
.posts a { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.content .posts a { color: inherit; text-decoration: none; }
.posts h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.posts p { font-size: 18px; line-height: 28px; color: var(--stone); max-width: 62ch; }
.posts a:hover h3 { color: var(--accent); }
.post-date { font-size: 15px; line-height: 22px; color: var(--stone); }
.page-head .post-date { margin-top: 24px; }
/* Who wrote the post: a small photo, the name (to Um okkur) and the date. */
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.byline-photo { display: block; flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.byline-text { display: grid; }
.byline-name { font-size: 17px; line-height: 24px; font-weight: 700; justify-self: start; }
.byline-name:hover { color: var(--accent); }
.page-head .byline .post-date { margin-top: 0; }
.byline .post-date a { text-decoration: underline; text-underline-offset: 3px; }
.byline .post-date a:hover { color: var(--accent); }
.post-title { max-width: 20ch; font-size: clamp(40px, 5vw, 80px) !important; }
.post-source { font-size: 16px; }
/* Blog images: the cover and single images take the content column; galleries sit two across. */
.post-figure img { display: block; width: 100%; height: auto; background: var(--mist); }
/* Tall single images (portraits, 4:5 posts) stay within the screen; galleries are already half width. */
.post-figure picture, .post-thumb picture { display: contents; }
.post-body > .post-figure img { width: auto; max-width: 100%; max-height: 85vh; }
.post-figure figcaption { margin-top: 10px; font-size: 15px; line-height: 22px; color: var(--stone); max-width: 62ch; }
.post-body > .post-figure, .post-body > .gallery { margin-top: 40px; margin-bottom: 16px; }
.post-body > .post-figure:first-child { margin-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.gallery > .post-figure:first-child:nth-last-child(2n + 1) { grid-column: 1 / -1; }
.posts a.has-thumb { grid-template-columns: minmax(0, 1fr) clamp(120px, 18vw, 240px); column-gap: clamp(20px, 3vw, 48px); align-items: start; }
.post-text { display: grid; gap: 6px; }
.post-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.more-link { display: inline-block; margin-top: 32px; font-size: 17px; border-bottom: 1px solid currentColor; }
.more-link:hover { color: var(--accent); }

/* Mailing list */
.subscribe { grid-column: 4 / 13; max-width: 560px; margin-top: 8px; }
.subscribe label { display: block; font-size: 15px; line-height: 22px; color: var(--stone); margin-bottom: 6px; }
.subscribe-row { display: flex; align-items: center; border-bottom: 2px solid var(--ink); }
.subscribe-row:focus-within { border-color: var(--accent); }
.subscribe-row input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 18px; outline: none; }
.subscribe-row button { border: 0; background: none; font-weight: 700; font-size: 17px; padding: 10px 0 10px 16px; cursor: pointer; }
.subscribe-row button:hover:not(:disabled) { color: var(--accent); }
.subscribe-row button:disabled { color: var(--stone); }
.subscribe-status { font-size: 15px; line-height: 22px; color: var(--stone); margin-top: 8px; }
.subscribe-status:empty { display: none; }
.contact-meta a { border-bottom: 1px solid currentColor; margin-left: 12px; }
.contact-meta a:hover { color: var(--accent); }
.chat-foot a { color: inherit; text-decoration: underline; }

/* Analytics consent */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 35;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  font-size: 15px;
  line-height: 22px;
}
.consent a { text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 860px) { .consent { right: 16px; max-width: none; } }

/* Chat panel */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chat {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(460px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.06);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.chat.is-open { transform: none; }
.chat[hidden] { display: none; }
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.chat-head h2 { font-size: 22px; line-height: 28px; letter-spacing: -0.02em; font-weight: 700; }
.chat-head p { font-size: 15px; line-height: 22px; color: var(--stone); margin-top: 2px; }
.chat-close { border: 0; background: none; font-size: 15px; color: var(--stone); cursor: pointer; padding: 4px 0; }
.chat-close:hover { color: var(--ink); }
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 25px;
}
.msg p + p, .msg ul, .msg ol { margin-top: 8px; }
.msg ul, .msg ol { padding-left: 20px; }
.msg ul { list-style: disc; }
.msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.msg-visitor {
  align-self: flex-end;
  max-width: 85%;
  background: var(--mist);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  white-space: pre-wrap;
}
.msg-agent { max-width: 100%; }
.msg-thinking { color: var(--stone); font-size: 15px; }
.msg-thinking::after { content: ""; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.msg-note { color: var(--stone); font-size: 14px; line-height: 21px; }
.msg-error { color: #b42318; font-size: 15px; line-height: 22px; }

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 22px;
}
.card h3 { font-size: 19px; line-height: 24px; letter-spacing: -0.015em; font-weight: 700; }
.card ol { padding-left: 20px; display: grid; gap: 6px; }
.card-kicker { font-size: 13px; color: var(--accent); }
.card-meta { color: var(--stone); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.card-status { color: var(--stone); font-size: 14px; }
.card-status:empty { display: none; }
.btn {
  border: 1px solid var(--ink);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent); }
.btn:disabled { opacity: 0.45; cursor: default; }
.field { display: grid; gap: 4px; }
.field span { font-size: 13px; color: var(--stone); }
.field i { font-style: normal; color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 15px;
  line-height: 22px;
  background: #fff;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--stone); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 24px 8px;
  border-top: 1px solid var(--line);
}
.chat-form textarea {
  flex: 1;
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 8px 0;
  font-size: 16px;
  line-height: 24px;
  resize: none;
  outline: none;
  max-height: 160px;
  background: transparent;
}
.chat-form textarea:focus { border-color: var(--accent); }
.chat-form button {
  border: 0;
  background: none;
  font-weight: 700;
  font-size: 16px;
  padding: 8px 0;
  cursor: pointer;
}
.chat-form button:hover:not(:disabled) { color: var(--accent); }
.chat-form button:disabled { color: var(--stone); cursor: default; }
.chat-foot { padding: 0 24px 16px; font-size: 12px; line-height: 18px; color: var(--stone); }
html.chat-open .proto { right: calc(min(460px, 100vw) + 16px); }

/* Prototype controls */
.proto {
  position: fixed;
  right: 16px;
  top: calc(var(--nav-h) + 4px);
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 18px;
  display: grid;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.proto[hidden] { display: none; }
.proto-title { font-weight: 700; }
.proto-title button { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; width: 100%; }
.proto-title button::after { content: "Fela"; font-weight: 400; color: var(--stone); }
.proto.is-closed .proto-title button::after { content: "Sýna"; }
.proto.is-closed .proto-group { display: none; }
.proto-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.proto-group > span { width: 44px; color: var(--stone); }
.proto-group button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.proto-group button i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.proto-group button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.proto-link { color: var(--accent); padding: 4px 4px; }
.proto-link:hover { text-decoration: underline; }

/* Small screens */
@media (max-width: 860px) {
  body { font-size: 18px; line-height: 28px; }
  /* The links fold into a menu under the bar, opened by the "Valmynd" button. */
  .nav-menu { display: block; min-width: 4.4em; text-align: right; }
  .nav-items { display: none; }
  .nav.is-open { background: var(--paper); }
  .nav.is-open .nav-items {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    padding: 0 var(--margin) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    font-size: 26px;
    line-height: 32px;
  }
  .nav.is-open .nav-items a { padding: 12px 0; border-top: 1px solid var(--line); }
  .lead, .ask, .label, .services, .products, .about-wrap, .contact-lines, .contact-meta,
  .page-head-main, .content, .subscribe { grid-column: 1 / -1; }
  .rows li { grid-template-columns: 1fr; row-gap: 6px; }
  .steps li { grid-template-columns: 36px minmax(0, 1fr); }
  .page-head .label { padding-top: 0; margin-bottom: 12px; }
  .ask { margin-top: 32px; }
  .label { margin-bottom: 16px; }
  .services a { grid-template-columns: 1fr; row-gap: 8px; }
  .products { grid-template-columns: 1fr; }
  .product { min-height: 220px; }
  .hero { max-height: 760px; }
  .proto { left: 12px; right: 12px; top: auto; bottom: 12px; }
  .posts a.has-thumb { grid-template-columns: minmax(0, 1fr) 96px; column-gap: 16px; }
  .gallery { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
