/* HIRA — Nordic/minimal, typography-driven */
:root {
  --yellow: #FFD700;
  --ink: #2E3C2F;
  --ink-soft: #4A5A4A;
  --ink-mute: #7D887D;
  --bg: #FAFAF5;
  --surface: #FFFFFF;
  --rule: #E4E4DA;

  --font-head: "Readex Pro", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1160px;
  --container-narrow: 820px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 24px; }
}

/* ====== TYPE ====== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-weight: 500;
}

.h-display {
  font-family: var(--font-head);
  font-size: clamp(40px, 6.4vw, 92px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 600;
}
.h-1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 600;
}
.h-2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.8vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 600;
}
.h-3 {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 58ch;
  font-weight: 400;
}
.muted { color: var(--ink-mute); }
.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* Yellow accent underline — used on one or two key words only */
.accent {
  background: linear-gradient(transparent 68%, var(--yellow) 68%, var(--yellow) 94%, transparent 94%);
  padding: 0 .06em;
}

/* ====== NAV ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,245,0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-color: var(--rule); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600;
  letter-spacing: -0.01em; font-size: 18px;
}
.nav-logo-mark {
  width: 30px; height: 30px; border-radius: 4px;
  background: var(--yellow);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700;
  color: var(--ink); font-size: 12px; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 16px;
  font-size: 15px; color: var(--ink-soft);
  transition: color .15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--yellow);
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .15s ease;
}
.nav-cta:hover { color: var(--ink-mute); border-color: var(--ink-mute); }

.nav-burger { display: none; }
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger {
    display: inline-flex; width: 40px; height: 40px;
    align-items: center; justify-content: center;
    color: var(--ink);
  }
}

.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 49;
  background: var(--bg);
  padding: 32px 24px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  display: block; padding: 18px 0;
  font-family: var(--font-head); font-size: 28px; font-weight: 500;
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--rule);
}

/* ====== BUTTONS / LINKS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-head); font-weight: 500;
  font-size: 16px; letter-spacing: -0.01em;
  transition: background .15s ease, color .15s ease;
  border-radius: 2px;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover { background: #1F2A20; }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
  padding: 13px 21px;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500;
  font-size: 16px; color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .15s ease;
}
.text-link:hover { color: var(--ink-mute); border-color: var(--ink-mute); }
.text-link .arrow { transition: transform .2s ease; }
.text-link:hover .arrow { transform: translateX(3px); }

/* ====== HERO ====== */
.hero {
  padding: clamp(72px, 12vw, 160px) 0 clamp(56px, 9vw, 120px);
}
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-bottom: 40px;
  color: var(--ink-mute);
}

.hero-title {
  text-wrap: balance;
  line-height: 1.08;
  max-width: 18ch;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 48px;
  align-items: center;
}

/* ====== SECTIONS ====== */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-tight { padding: clamp(48px, 7vw, 96px) 0; }

.section-head {
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 760px;
}
.section-head .eyebrow { margin-bottom: 20px; display: block; }

/* ====== SERVICES (simplified — list-style, not cards) ====== */
.svc-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.svc-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: padding .2s ease;
}
.svc-row:hover { padding-left: 8px; }
.svc-row .mono { color: var(--ink-mute); padding-top: 6px; }
.svc-row h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 600;
}
.svc-row .core-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 3px 8px;
  background: var(--yellow);
  color: var(--ink);
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 2px;
}
.svc-row p {
  color: var(--ink-soft);
  font-size: 16px;
}
@media (max-width: 800px) {
  .svc-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .svc-row .mono { padding-top: 0; }
}

/* Complementary services — smaller, understated */
.svc-complement {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.svc-complement .eyebrow { margin-bottom: 20px; display: block; }
.svc-complement .items {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.svc-complement .items > div {
  max-width: 40ch;
}
.svc-complement h4 {
  font-family: var(--font-head); font-weight: 500;
  font-size: 18px; margin-bottom: 4px;
}
.svc-complement p { color: var(--ink-soft); font-size: 15px; }

/* ====== PRODUCTS (text-driven, minimal) ====== */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 48px;
}
@media (max-width: 800px) { .products { grid-template-columns: 1fr; gap: 40px; } }
.product-row .eyebrow { display: block; margin-bottom: 16px; }
.product-row h3 {
  font-size: clamp(32px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 14px;
}
.product-row p {
  color: var(--ink-soft);
  font-size: 16.5px;
  margin-bottom: 24px;
  max-width: 42ch;
}

/* ====== CASES (text list) ====== */
.case-list {
  border-top: 1px solid var(--rule);
}
.case-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding .2s ease;
}
.case-row:hover { padding-left: 8px; }
.case-row h3 {
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  font-weight: 600;
}
.case-row p {
  color: var(--ink-soft);
  font-size: 16px;
}
.case-row .mono {
  color: var(--ink-mute);
}
@media (max-width: 800px) {
  .case-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
}

/* ====== ABOUT / FOUNDER ====== */
.founder {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 800px) { .founder { grid-template-columns: 1fr; gap: 32px; } }
.founder-card {
  border: 1px solid var(--rule);
  padding: 32px;
  background: var(--surface);
}
.founder-card .initial {
  width: 56px; height: 56px;
  background: var(--yellow);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 22px;
  margin-bottom: 24px;
  border-radius: 2px;
}
.founder-card h3 { font-size: 22px; margin-bottom: 4px; }
.founder-card .role {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-mute); letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.founder-card .bits {
  display: grid; gap: 14px;
  padding-top: 20px; border-top: 1px solid var(--rule);
}
.founder-card .bits > div {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 14.5px;
}
.founder-card .bits .label {
  color: var(--ink-mute);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.values-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 800px) { .values-simple { grid-template-columns: 1fr; gap: 32px; } }
.values-simple .eyebrow { display: block; margin-bottom: 12px; }
.values-simple h3 { font-size: 24px; margin-bottom: 10px; }
.values-simple p { color: var(--ink-soft); font-size: 15.5px; }

/* ====== CONTACT ====== */
.contact-lines {
  display: grid;
  border-top: 1px solid var(--rule);
}
.contact-lines a, .contact-lines .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding .2s ease;
}
.contact-lines a:hover { padding-left: 8px; }
.contact-lines .label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-lines .value {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.02em;
}
@media (max-width: 640px) {
  .contact-lines a, .contact-lines .row { grid-template-columns: 1fr; gap: 4px; padding: 22px 0; }
}

/* ====== FOOTER ====== */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; gap: 24px; } }
.footer h4 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-mute); margin-bottom: 16px; font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink); font-size: 15px; }
.footer ul a:hover { color: var(--ink-mute); }
.footer-brand h3 {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
}
.footer-brand h3 .mark {
  width: 24px; height: 24px; border-radius: 3px;
  background: var(--yellow);
  display: inline-block;
}
.footer-brand p { color: var(--ink-soft); max-width: 32ch; font-size: 14.5px; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute);
  flex-wrap: wrap;
}

/* ====== PAGE SWITCH ====== */
.page { animation: fadeUp .32s cubic-bezier(.2,.7,.2,1); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ====== BOUNDARIES (Avgränsningar — variant B, läsblock) ====== */
.boundary-list-b {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.boundary-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
.boundary-block header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 18px;
}
.boundary-block .boundary-num {
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.boundary-block h3 {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 600;
}
.boundary-block p {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 62ch;
  padding-left: 0;
}
@media (max-width: 640px) {
  .boundary-block { padding: 36px 0; }
  .boundary-block header { gap: 14px; margin-bottom: 14px; }
}
