@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Layout: a photo-led hero on a soft grey field, then white sections with a narrow
     label rail on the left and content on the right, closing on a dark contact band. */
  --ink: #1d1d1f;
  --gray: #6e6e73;
  --hairline: #e8e8ed;
  --tint: #f5f5f7;
  --navy: #000f5c;
  --blue: #1100ff;
  --night: #0b0b10;
  --bg: #ffffff;

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --fs-name: clamp(3.25rem, 7.6vw, 7.25rem);
  --fs-h2: clamp(1.875rem, 3.4vw, 2.75rem);
  --fs-quote: clamp(1.5rem, 3vw, 2.375rem);
  --fs-lead: clamp(1.125rem, 1.5vw, 1.3125rem);
  --fs-h3: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-kicker: 0.75rem;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --rail: 200px;
  --radius: 16px;
  --section-pad: clamp(72px, 10vw, 136px);

  color-scheme: light;
}

/* Language switching: English by default, Swedish when html[data-lang="sv"] */
:root:not([data-lang="sv"]) [lang="sv"]:not(html),
:root[data-lang="sv"] [lang="en"]:not(html) {
  display: none !important;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "cv11", "ss01";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

/* ---------- Shared labels and buttons ---------- */

.kicker,
.eyebrow {
  font-size: var(--fs-kicker);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 13px 24px;
  border-radius: 980px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.button:hover {
  text-decoration: none;
  background: var(--blue);
}

.button-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.text-link {
  font-size: var(--fs-small);
  font-weight: 600;
}

.hl {
  font-style: normal;
  color: var(--blue);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
  margin-right: auto;
  white-space: nowrap;
}

.wordmark:hover {
  text-decoration: none;
}

.mark {
  width: 18px;
  height: 15px;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: none;
  color: var(--blue);
}

.lang {
  display: inline-flex;
  gap: 2px;
  font-size: 0.75rem;
}

.lang button {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--gray);
  padding: 6px 7px;
  border-radius: 6px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
  background: #ffffff;
}

.lang button:hover {
  color: var(--blue);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--tint);
  padding-top: clamp(40px, 6vw, 88px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.name {
  font-size: var(--fs-name);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 22px 0 0 -0.04em;
  color: var(--ink);
}

.name .line {
  display: block;
}

.role {
  margin-top: 26px;
  font-size: var(--fs-lead);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 30em;
}

.role strong {
  font-weight: 650;
}

.lead {
  margin-top: 14px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--gray);
  max-width: 32em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 30px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.chips li {
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 980px;
  padding: 5px 12px;
  white-space: nowrap;
}

.hero-photo {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #dedee3;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Load sequence: the hero settles into place once, nothing waits on scroll */
@media (prefers-reduced-motion: no-preference) {
  .hero-in {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }
  .hero-text > .hero-in:nth-child(2) { animation-delay: 0.05s; }
  .hero-text > .hero-in:nth-child(3) { animation-delay: 0.12s; }
  .hero-text > .hero-in:nth-child(4) { animation-delay: 0.17s; }
  .hero-text > .hero-in:nth-child(5) { animation-delay: 0.22s; }
  .hero-text > .hero-in:nth-child(6) { animation-delay: 0.27s; }
  .hero-photo.hero-in { animation-delay: 0.1s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Bellows ---------- */

.bellows-wrap {
  width: 100%;
  height: clamp(88px, 11vw, 152px);
  margin-top: clamp(32px, 5vw, 64px);
}

.bellows {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--hairline);
}

.stat {
  padding: 30px 24px 32px;
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-num {
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.stat dd {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--gray);
  max-width: 22ch;
}

/* ---------- Sections ---------- */

.section {
  padding-top: var(--section-pad);
  scroll-margin-top: 40px;
}

.section-last {
  padding-bottom: var(--section-pad);
}

.rail-grid {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: 48px;
}

.rail {
  padding-top: 1em;
  align-self: start;
  position: sticky;
  top: 92px;
}

.num {
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

.body {
  min-width: 0;
}

.body > h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.meta {
  font-size: var(--fs-small);
  color: var(--gray);
  margin-top: 12px;
}

.prose {
  margin-top: 24px;
  max-width: 38em;
  color: var(--gray);
  font-size: var(--fs-lead);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

/* Numbered rows */
.rows {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-bottom: 1px solid var(--hairline);
}

.row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}

.row-num {
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  padding-top: 0.3em;
}

.row p,
.t-row p {
  margin-top: 6px;
  color: var(--gray);
  max-width: 38em;
}

/* ERPI */
.erpi-logo {
  height: 30px;
  width: auto;
  margin-bottom: 28px;
}

.quote {
  margin: 48px 0 0;
  padding: 0;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  font-size: var(--fs-quote);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.032em;
  color: var(--ink);
  text-indent: -0.42em;
  max-width: 24em;
  text-wrap: balance;
}

.quote figcaption {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--gray);
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin-top: 56px;
}

.service {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.service p {
  margin-top: 8px;
  color: var(--gray);
}

.service .tags {
  margin-top: 14px;
  font-size: var(--fs-small);
  color: var(--ink);
  line-height: 1.7;
}

.clients {
  margin-top: 56px;
}

.label {
  font-size: var(--fs-kicker);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray);
}

.client-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 40px 0 36px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.result {
  margin: 0;
  padding: 24px 24px 26px;
  border-left: 1px solid var(--hairline);
}

.result:first-child {
  border-left: 0;
  padding-left: 0;
}

.result-num {
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.result figcaption {
  margin-top: 6px;
  font-size: var(--fs-small);
  color: var(--gray);
  line-height: 1.4;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-bottom: 1px solid var(--hairline);
}

.t-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}

.t-year {
  font-size: 1.375rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* Photo gallery, captioned like the award grid on erpimedia.com */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: clamp(170px, 17vw, 236px);
  gap: 12px;
  margin-top: 40px;
}

.tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dedee3;
}

.tile-big {
  grid-row: span 2;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.tile:hover img {
  transform: scale(1.035);
}

.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile figcaption strong {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tile figcaption > span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Awards */
.awards {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-bottom: 1px solid var(--hairline);
}

.awards li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}

.awards li > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
}

.awards strong {
  font-weight: 650;
  letter-spacing: -0.015em;
}

.awards .org {
  color: var(--gray);
  font-size: var(--fs-small);
}

.awards .year {
  color: var(--gray);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* Music */
#music .quote {
  margin-top: 40px;
}

.photo-wide {
  margin: 44px 0 0;
  max-width: 760px;
}

.photo-wide img {
  width: 100%;
  border-radius: var(--radius);
}

.photo-wide figcaption {
  margin-top: 12px;
  font-size: var(--fs-small);
  color: var(--gray);
  max-width: 42em;
}

#music .prose {
  margin-top: 32px;
}

.links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
}

/* Press */
.press {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-bottom: 1px solid var(--hairline);
}

.press li {
  border-top: 1px solid var(--hairline);
}

.press a {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 20px 0;
  color: var(--ink);
}

.press a:hover {
  text-decoration: none;
}

.press a:hover .press-title {
  color: var(--blue);
}

.press-src {
  font-size: var(--fs-small);
  color: var(--gray);
}

.press-title {
  font-weight: 550;
  letter-spacing: -0.012em;
  transition: color 0.15s ease;
}

.press-date {
  font-size: var(--fs-small);
  color: var(--gray);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Contact: dark band, like the booking section on erpimedia.com */
.contact {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(17, 0, 255, 0.22), rgba(17, 0, 255, 0) 70%),
    var(--night);
  color: #ffffff;
  padding: var(--section-pad) 0;
  scroll-margin-top: 40px;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow-light {
  color: #9a96ff;
}

.contact-title {
  margin-top: 20px;
  font-size: clamp(2.125rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #ffffff;
  max-width: 14em;
}

.contact-sub {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 32em;
}

.actions-center {
  justify-content: center;
  margin-top: 34px;
}

.button-light {
  background: #ffffff;
  color: var(--ink);
}

.button-light:hover {
  background: #dcdce2;
}

.button-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.button-outline:hover {
  background: transparent;
  border-color: #ffffff;
}

.contact-meta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.55);
}

.contact-meta a {
  color: rgba(255, 255, 255, 0.85);
  overflow-wrap: anywhere;
}

.contact-note {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.contact :focus-visible {
  outline-color: #ffffff;
}

/* Footer */
.footer {
  background: var(--night);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 28px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 960px) {
  .rail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
    padding-top: 0;
    margin-bottom: 14px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-photo {
    aspect-ratio: 1 / 1;
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
    gap: 8px;
  }
  .tile-big {
    grid-column: span 2;
  }
  .tile figcaption {
    padding: 32px 12px 10px;
  }
  .tile figcaption strong {
    font-size: 0.8125rem;
  }
  .tile figcaption > span {
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    gap: 14px;
  }
  .services,
  .results {
    grid-template-columns: minmax(0, 1fr);
  }
  .services {
    gap: 32px;
  }
  .result {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--hairline);
  }
  .result:first-child {
    border-top: 0;
  }
  .row {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .t-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .awards li {
    flex-direction: column;
    gap: 4px;
  }
  .awards li > div {
    flex-direction: column;
  }
  .press a {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .press-title {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 420px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--hairline);
  }
  .stat:first-child {
    border-top: 0;
  }
  .wordmark span {
    display: none;
  }
}

@media print {
  .nav,
  .bellows-wrap,
  .skip {
    display: none;
  }
  .rail {
    position: static;
  }
}
