/* ============ DESIGN TOKENS — Legal Composite Workforce AS ============ */
:root,
[data-theme='light'] {
  /* Surfaces — cold steel / fjord fog */
  --color-bg: #f4f6f8;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfd;
  --color-surface-offset: #e9edf1;
  --color-surface-offset-2: #dde3e9;
  --color-surface-dynamic: #ccd5dd;
  --color-divider: #d7dee4;
  --color-border: #c5ced6;

  /* Text */
  --color-text: #0e1f2e;
  --color-text-muted: #4d5f6f;
  --color-text-faint: #93a2ae;
  --color-text-inverse: #f4f7f9;

  /* Primary — deep marine navy */
  --color-primary: #0a2c47;
  --color-primary-hover: #0e3a5c;
  --color-primary-active: #071e30;
  --color-primary-highlight: #cfe0ec;

  /* Accent — glacier / fjord blue */
  --color-accent: #2f8fc4;
  --color-accent-hover: #2578a9;
  --color-accent-active: #1c608a;
  --color-accent-highlight: #d4ecf9;

  /* Steel gray secondary */
  --color-steel: #5b6b78;

  --color-warning: #a3611b;
  --color-success: #2f6b45;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.15 0.02 230 / 0.08);
  --shadow-md: 0 6px 18px oklch(0.15 0.02 230 / 0.12);
  --shadow-lg: 0 16px 40px oklch(0.15 0.02 230 / 0.18);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0a1520;
  --color-surface: #0f1e2c;
  --color-surface-2: #132435;
  --color-surface-offset: #16293a;
  --color-surface-offset-2: #1b3040;
  --color-surface-dynamic: #223a4d;
  --color-divider: #1e3648;
  --color-border: #2a4356;

  --color-text: #e6edf2;
  --color-text-muted: #96a9b8;
  --color-text-faint: #5e7385;
  --color-text-inverse: #0a1520;

  --color-primary: #4f98c9;
  --color-primary-hover: #6bacd6;
  --color-primary-active: #3d80ae;
  --color-primary-highlight: #1a3346;

  --color-accent: #5db3e8;
  --color-accent-hover: #7cc2ec;
  --color-accent-active: #429dcf;
  --color-accent-highlight: #1a3d4f;

  --color-steel: #8fa2b2;

  --color-warning: #d69355;
  --color-success: #6cbf8a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

/* Type scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6.5vw, 7rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ============ GLOBAL ============ */
body {
  overflow-x: hidden;
}

.wrap {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.section-title {
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}

.section-sub {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 60ch;
  margin-bottom: var(--space-12);
}

a {
  color: inherit;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #04121c;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-outline {
  border: 1.5px solid oklch(from var(--color-text-inverse) l c h / 0.5);
  color: var(--color-text-inverse);
}
.btn-outline:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.1);
}

.btn-outline-dark {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline-dark:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-primary) l c h / 0.94);
  backdrop-filter: blur(12px);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-inverse);
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent-highlight);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
  padding-block: var(--space-1);
  border-bottom: 1px solid transparent;
}
.nav-links a:hover {
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-inverse);
  border: 1px solid oklch(from var(--color-text-inverse) l c h / 0.3);
}
.theme-toggle:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.1);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding-inline: var(--space-2);
  border-radius: var(--radius-full);
  color: var(--color-text-inverse);
  border: 1px solid oklch(from var(--color-text-inverse) l c h / 0.3);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lang-toggle:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.1);
  border-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  color: var(--color-text-inverse);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-text-inverse);
  padding-block: var(--space-16);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.1 0.03 240 / 0.4) 0%, oklch(0.08 0.03 240 / 0.6) 45%, oklch(0.06 0.03 240 / 0.97) 100%),
    linear-gradient(90deg, oklch(0.05 0.03 240 / 0.75) 0%, oklch(0.05 0.03 240 / 0.15) 55%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-bar {
  width: 64px;
  height: 4px;
  background: var(--color-accent);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: var(--text-hero);
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: var(--space-6);
  color: #ffffff;
  text-shadow: 0 2px 24px oklch(0.05 0.02 240 / 0.5);
}
.hero-title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: oklch(from var(--color-text-inverse) l c h / 0.92);
  margin-bottom: var(--space-3);
}

.hero-meta {
  font-size: var(--text-sm);
  color: oklch(from var(--color-text-inverse) l c h / 0.7);
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============ STATS STRIP ============ */
.stats {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  padding-block: var(--space-10);
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}
.stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(from var(--color-text-inverse) l c h / 0.75);
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-media {
  position: relative;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-media-tag {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.about-body p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  font-size: var(--text-base);
}

.about-clients {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}
.client-chip {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
}

.callout-card {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-8);
}
.callout-card h3 {
  font-size: var(--text-lg);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--color-text-inverse);
}
.callout-card p {
  color: oklch(from var(--color-text-inverse) l c h / 0.8);
  font-size: var(--text-sm);
}

/* ============ CAPABILITIES ============ */
.cap-section {
  background: var(--color-surface-offset);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.cap-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}
.cap-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.cap-card h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  margin-bottom: var(--space-2);
}
.cap-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============ WORK / PORTFOLIO ============ */
.work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
}
.work-item:first-of-type {
  padding-top: 0;
}
.work-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.work-item.reverse .work-media {
  order: 2;
}
.work-item.reverse .work-text {
  order: 1;
}

.work-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.work-index {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.work-text h3 {
  font-size: var(--text-xl);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.work-text .work-kicker {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  font-weight: 500;
}
.work-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.work-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.work-tag {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-accent-highlight);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

/* ============ COOPERATION MODEL ============ */
.model-section {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}
.model-section .eyebrow {
  color: var(--color-accent);
}
.model-section .section-title,
.model-section h2 {
  color: var(--color-text-inverse);
}
.model-section .section-sub {
  color: oklch(from var(--color-text-inverse) l c h / 0.75);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.model-card {
  background: oklch(from var(--color-text-inverse) l c h / 0.06);
  border: 1px solid oklch(from var(--color-text-inverse) l c h / 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.model-card .num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  line-height: 1;
}
.model-card h3 {
  color: var(--color-text-inverse);
  font-size: var(--text-lg);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.model-card p {
  color: oklch(from var(--color-text-inverse) l c h / 0.72);
  font-size: var(--text-sm);
}

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.team-photo {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: var(--space-8);
}
.team-info h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  margin-bottom: var(--space-1);
}
.team-role {
  color: var(--color-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: var(--space-4);
  display: block;
}
.team-info p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============ CONTACT / CTA ============ */
.contact-section {
  position: relative;
  color: var(--color-text-inverse);
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.1 0.03 240 / 0.75), oklch(0.06 0.03 240 / 0.94));
}
.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.contact-inner h2 {
  color: var(--color-text-inverse);
  font-size: var(--text-2xl);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.contact-inner p {
  color: oklch(from var(--color-text-inverse) l c h / 0.8);
  margin-inline: auto;
  margin-bottom: var(--space-10);
  font-size: var(--text-base);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
  text-align: left;
}
.contact-card {
  background: oklch(from var(--color-text-inverse) l c h / 0.06);
  border: 1px solid oklch(from var(--color-text-inverse) l c h / 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.contact-card .label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--space-2);
  display: block;
}
.contact-card .value {
  font-size: var(--text-base);
  font-weight: 600;
}
.contact-card a:hover {
  color: var(--color-accent);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-primary-active, #071e30);
  background: #071726;
  color: oklch(0.9 0.02 220 / 0.7);
  padding-block: var(--space-12);
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-brand img {
  width: 26px;
  height: 26px;
}
.footer small {
  font-size: var(--text-xs);
}

/* ============ SCROLL REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .brand-name small {
    display: none;
  }
  .nav {
    gap: var(--space-3);
  }
  .lang-toggle {
    min-width: 38px;
    height: 32px;
    font-size: 11px;
  }
  .theme-toggle,
  .nav-toggle {
    width: 32px;
    height: 32px;
  }
  .stats .wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .work-item,
  .work-item.reverse {
    grid-template-columns: 1fr;
  }
  .work-item.reverse .work-media,
  .work-item.reverse .work-text {
    order: initial;
  }
  .model-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: clamp(2.25rem, 8vw, 4rem);
  }
}

@media (max-width: 600px) {
  .stats .wrap {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  section {
    padding-block: var(--space-16);
  }
}
