:root {
  --ink: #161d24;
  --ink-deep: #0f151a;
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --paper-3: #ececf1;
  --accent: #ee3d1e;
  --accent-700: #b0240e;
  --accent-50: #fff1ed;
  --muted: #5a636b;
  --subtle: #7c858e;
  --border: #e5e8eb;
  --border-strong: #d2d7dc;

  --pill: 9999px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 30, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 30, 0.1);
  --shadow-lg: 0 16px 48px rgba(15, 23, 30, 0.14);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1280px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  letter-spacing: -0.015em;
  line-height: 1.12;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin: 0 0 1.1rem;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

/* Utility classes for common patterns */
.section-intro {
  margin-top: 14px;
}

.why-grid.careers-grid {
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 3vw, 40px);
  align-items: start;
}
.why-grid.careers-grid .why-content {
  padding-right: 12px;
}

.highlight-box {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  margin-top: 8px;
}

.highlight-box .check-list {
  margin: 0;
}

.highlight-box {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  margin-top: 8px;
}

.highlight-box .check-list {
  margin: 0;
}

.cta-gap {
  margin-top: 30px;
}

.section-head-gap {
  margin-bottom: 18px;
}

/* Difference section styling */
.difference-section {
  position: relative;
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 100%);
  padding: clamp(40px, 6vw, 72px) 0;
  overflow: visible;
}

.difference-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(238, 61, 30, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.difference-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(238, 61, 30, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.difference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.difference-eyebrow {
  margin-bottom: 24px;
}

.difference-heading {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  margin-bottom: 48px;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.difference-content {
  display: grid;
  gap: 32px;
}

.difference-content p:first-child {
  margin-bottom: 1rem;
}

.difference-image {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 100%;
}

.difference-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

@media (max-width: 1024px) {
  .difference-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .difference-image {
    min-height: 400px;
  }
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin: 0 0 14px;
}
/* Section labels now act as the section heading — use the heading scale */
.section-head .eyebrow {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-transform: none;
  color: var(--ink);
  margin: 0;
}

.lead {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.22rem);
  color: var(--muted);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-md);
  z-index: 200;
  transition: top 0.2s;
}
.skip:focus {
  top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: var(--ink-deep);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--paper-3);
}
.btn-sm {
  height: 40px;
  padding: 0 20px;
  font-size: 0.875rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand img {
  height: 40px;
}
.nav {
  display: none;
}
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent-700);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--pill);
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0s;
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.mobile-nav a:last-child {
  border-bottom: 0;
}
.mobile-nav a:hover {
  color: var(--accent-700);
  padding-left: 6px;
}
.mobile-nav a:active {
  color: var(--accent);
}
.nav-overlay {
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(15, 21, 26, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s 0.25s;
  z-index: 99;
  cursor: pointer;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s 0s;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .nav-overlay,
  .nav-toggle span {
    transition: none;
  }
}

/* ============ Language switcher ============ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang-opt {
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--subtle);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-opt:hover {
  color: var(--ink);
  background: var(--paper-3);
}
.lang-active {
  color: var(--ink);
  pointer-events: none;
}
.lang-sep {
  color: var(--border-strong);
  font-size: 0.7rem;
  font-family: var(--font);
  padding: 0 2px;
  user-select: none;
}

/* ============ Cookie consent banner ============ */
.cookie-banner {
  position: fixed;
  bottom: clamp(16px, 2.5vw, 28px);
  left: 0;
  right: 0;
  z-index: 150;
  pointer-events: none;
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.3s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner.dismissing {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.22s ease;
}
.cookie-banner-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}
.cookie-banner-box {
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 18px 48px 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}
.cookie-text {
  flex: 1;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex: none;
}
.cookie-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--pill);
  display: grid;
  place-items: center;
  color: var(--subtle);
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.cookie-close:hover {
  background: var(--paper-3);
  color: var(--ink);
}
.cookie-close svg {
  width: 13px;
  height: 13px;
  display: block;
}
@media (max-width: 600px) {
  .cookie-banner-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 40px 18px 18px;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions .btn {
    flex: 1;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

section {
  padding: clamp(54px, 8vw, 104px) 0;
}
.section-tight {
  padding: clamp(48px, 7vw, 80px) 0;
}
.bg-soft {
  background: var(--paper-2);
}

/* Background image section with dark overlay and parallax */
.section-hero-bg {
  position: relative;
  overflow: hidden;
}

.section-hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.pexels.com/photos/3182812/pexels-photo-3182812.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=900');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  will-change: transform;
}

.section-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 21, 26, 0.72) 0%, rgba(22, 29, 36, 0.68) 50%, rgba(238, 61, 30, 0.15) 100%);
  z-index: 1;
  will-change: opacity;
}

.section-hero-bg .wrap {
  position: relative;
  z-index: 2;
}

.section-hero-bg .section-head {
  color: var(--paper);
}

.section-hero-bg .section-head .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.section-hero-bg .section-head .measure {
  color: var(--paper);
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-hero-bg p {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .section-hero-bg::before {
    background-attachment: scroll;
  }
}
.bg-ink {
  background: var(--ink);
  color: #fff;
}
.bg-ink h2,
.bg-ink h3 {
  color: #fff;
}
.bg-ink .lead {
  color: #c2cbd3;
}

.hero {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.4rem);
  line-height: 1.04;
}
.hero .eyebrow {
  margin-bottom: 18px;
}
.hero-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--subtle);
  margin-bottom: 26px;
}
.hero-intro {
  max-width: 620px;
  margin-top: 24px;
}

.measure {
  max-width: 680px;
}
.measure-wide {
  max-width: 820px;
}

.section-head {
  margin-bottom: clamp(34px, 4vw, 56px);
}
.section-head.split {
  display: grid;
  gap: 18px;
}

.cards {
  display: grid;
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px 28px;
}
.card-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.card h3 {
  margin-bottom: 16px;
}
.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.card ul li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 0.94rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.card ul li:first-child {
  border-top: 0;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.check-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-top: 1px solid var(--border);
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 16px;
  height: 16px;
  border-radius: var(--pill);
  background: var(--accent-50);
  border: 1.5px solid var(--accent);
}
.check-list.on-ink li {
  border-top-color: #2c3a45;
  color: #e2e7eb;
}
.check-list.on-ink li::before {
  background: rgba(238, 61, 30, 0.18);
}

.industry {
  display: grid;
  gap: 28px;
  padding: clamp(40px, 5vw, 60px);
  border-top: none;
  grid-template-columns: 1fr;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 8px rgba(15, 21, 26, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.industry:hover {
  box-shadow: 0 6px 24px rgba(15, 21, 26, 0.1);
  border-color: rgba(238, 61, 30, 0.15);
}
.industry:first-of-type {
  border-top: 1px solid var(--border);
}
.ind-header {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}
.ind-title {
  order: 2;
}
.ind-image {
  order: 1;
}
.ind-content {
  grid-column: 1;
}
.industry-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}
.industry h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

@media (min-width: 900px) {
  .industry {
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: stretch;
  }
  .ind-header {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }
  .ind-title {
    order: 1;
    margin-bottom: 24px;
  }
  .ind-image {
    order: 2;
    flex: 1;
    display: flex;
    align-items: flex-start;
  }
  .ind-content {
    grid-column: 2;
  }
}

/* Industry / capability row thumbnail */
.industry .ind-thumb {
  width: 100%;
  height: clamp(240px, 28vw, 380px);
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  display: block;
}

.tiles {
  display: grid;
  gap: 22px;
}
.tile {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 32px 30px;
  border-radius: var(--r-xl);
  background: var(--paper-2);
  border: 1px solid var(--border);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tile.tile-ink {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tile-index {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.tile-cat {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--subtle);
}
.tile-ink .tile-cat {
  color: #94a2ae;
}
.tile h3 {
  margin: 22px 0 14px;
  font-size: 1.5rem;
  font-weight: 800;
}
.tile p {
  font-size: 0.95rem;
  color: var(--muted);
}
.tile-ink p {
  color: #c2cbd3;
}
.tile-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-weight: 600;
  gap: 7px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-700);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.tile-ink .tile-link {
  color: #ff8463;
}
.tile-link svg {
  width: 15px;
  height: 15px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 13px;
  border-radius: var(--pill);
  background: var(--accent-50);
  color: var(--accent-700);
  font-size: 0.76rem;
  font-weight: 600;
}

.cta-band .inner {
  background: var(--ink);
  border-radius: var(--r-2xl);
  padding: clamp(36px, 5vw, 68px);
}
.cta-band h2 {
  color: #fff;
  max-width: 640px;
}
.cta-band p {
  color: #c2cbd3;
  max-width: 560px;
  margin-top: 14px;
}
.cta-band .btn {
  margin-top: 28px;
}
.cta-band .eyebrow {
  color: #ff8463;
}

.examples {
  display: grid;
  gap: 12px;
  margin-top: 0;
}
.why-content > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}
.why-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: stretch;
  }
  .why-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
  }
  .why-content .section-head {
    margin-bottom: 0;
  }
}
.example {
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 1.02rem;
  color: var(--ink);
}
.example::before {
  content: "—";
  color: var(--accent);
  margin-right: 10px;
  font-weight: 700;
}

.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.role-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.role-row h4 {
  font-size: 1.15rem;
}
.role-row .meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}
.role-row .arrow {
  color: var(--accent);
  flex: none;
}

.contact-grid {
  display: grid;
  gap: 40px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}
.field label {
  font-size: 0.88rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-50);
}
.field .file {
  border: 1px dashed var(--border-strong);
  background: var(--paper-2);
  padding: 16px;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--muted);
}
.req {
  color: var(--accent);
}
.contact-detail {
  font-style: normal;
  color: var(--muted);
  line-height: 1.9;
}
.contact-detail strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 6px;
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.detail-list li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}
.modal.open {
  display: block;
}
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 21, 26, 0.55);
}
.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 760px);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.modal-head {
  position: sticky;
  top: 0;
  background: var(--paper);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 34px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}
.modal-head .cat {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.modal-head .sub {
  font-size: 0.84rem;
  color: var(--subtle);
  margin-top: 6px;
}
.modal-close {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--pill);
  border: 0;
  background: var(--paper-3);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--border);
}
.modal-body {
  padding: 26px 34px 36px;
}
.modal-body h3 {
  margin: 26px 0 10px;
  font-size: 1.15rem;
}
.modal-body h3:first-child {
  margin-top: 0;
}
.modal-body p {
  color: var(--muted);
}
.modal-body ul {
  color: var(--muted);
  padding-left: 20px;
}
.modal-body ul li {
  margin-bottom: 7px;
}

.site-footer {
  background: var(--ink-deep);
  color: #94a2ae;
  padding: 64px 0 36px;
}
.footer-top {
  display: grid;
  gap: 36px;
}
.footer-brand img {
  height: 60px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 280px;
  font-size: 0.9rem;
  color: #94a2ae;
}
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5e6f7d;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: #c2cbd3;
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #1e2730;
  font-size: 0.8rem;
  color: #5e6f7d;
}

@media (min-width: 720px) {
  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: stretch;
  }
  .contact-grid > aside {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .contact-grid .figure-wide {
    flex: 1;
    display: flex;
    align-items: flex-end;
    aspect-ratio: auto;
  }
  .contact-grid .figure-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
  .section-head.split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .check-list.cols-2 {
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
  }
}

.sol-head {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 28px 0 4px;
}

@media (min-width: 940px) {
  .nav {
    display: flex;
    gap: 30px;
  }
  .nav-toggle {
    display: none;
  }
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-stagger {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-stagger > .card:nth-child(even) {
    transform: translateY(28px);
  }
}

/* ============ Media system ============ */
img,
video {
  display: block;
  max-width: 100%;
}

/* "What we do" — media left, 2x2 cards right */
.section-head.center {
  text-align: center;
}
.section-head.center .measure {
  margin-left: auto;
  margin-right: auto;
}
.does-grid {
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  align-items: stretch;
}
.does-media {
  position: relative;
  min-height: 320px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--paper-3);
}
.does-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.does-media:hover img {
  transform: scale(1.03);
}
.does-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.does-cards .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.does-cards .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card-link {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--accent-50);
  color: var(--accent-700);
  margin-bottom: 18px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.card-icon svg {
  width: 23px;
  height: 23px;
}
.does-cards .card-link h3 {
  transition: color 0.2s ease;
}
.card-go {
  position: absolute;
  top: 30px;
  right: 26px;
  color: var(--subtle);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.card-go svg {
  width: 16px;
  height: 16px;
  display: block;
}
.card-link:hover .card-icon,
.card-link:focus-visible .card-icon {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px) scale(1.06);
}
.card-link:hover .card-go,
.card-link:focus-visible .card-go {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-700);
}
.card-link:hover h3,
.card-link:focus-visible h3 {
  color: var(--accent-700);
}
.card-link:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-50);
}
.does-cards .card-link:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: var(--shadow-sm);
}
@media (prefers-reduced-motion: reduce) {
  .card-icon,
  .card-go,
  .does-cards .card-link {
    transition: none;
  }
}
@media (min-width: 920px) {
  .does-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .does-cards {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal (enabled only when JS + motion allowed) */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.reveal-ready .does-cards [data-reveal]:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal-ready .does-cards [data-reveal]:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal-ready .does-cards [data-reveal]:nth-child(4) {
  transition-delay: 0.24s;
}

/* Hero with media */
.hero-grid {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}
.hero-copy {
  min-width: 0;
}
.hero-media {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--paper-3);
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 30, 0.06);
  border-radius: inherit;
  pointer-events: none;
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
  .hero-grid.hero-grid-reverse .hero-media {
    order: -1;
  }
}

/* Generic figure */
.figure {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--paper-3);
  position: relative;
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-wide {
  aspect-ratio: 16 / 10;
}
.figure-tall {
  aspect-ratio: 4 / 5;
}

/* Split text + media */
.split-media {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.split-media .split-figure {
  aspect-ratio: 16 / 11;
}
.split-media .split-figure img {
  position: absolute;
  inset: 0;
}
@media (min-width: 860px) {
  .split-media {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .split-media .split-figure {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
  }
  .split-media.split-media-reverse > .split-figure {
    order: -1;
  }
}

/* Capability deep-link targets (from home cards) */
.industry {
  scroll-margin-top: 96px;
}
.industry:target {
  position: relative;
  animation: capArrive 1.9s ease-out;
}
.industry:target::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 30px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.industry:target .industry-tag {
  color: var(--accent);
}
@keyframes capArrive {
  0% {
    background: var(--accent-50);
  }
  100% {
    background: transparent;
  }
}
@media (max-width: 720px) {
  .industry:target::before {
    left: 0;
    top: -2px;
    bottom: auto;
    width: 28px;
    height: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .industry:target {
    animation: none;
  }
}

/* Tile media header (bleeds to tile edges) */
.tile {
  overflow: hidden;
}
.tile-media {
  margin: -32px -30px 24px;
  height: 188px;
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tile:hover .tile-media img {
  transform: scale(1.04);
}
.tile-ink .tile-media {
  background: #1f2832;
}

/* CTA band with background image */
.cta-band .inner.has-bg {
  background-color: var(--ink-deep);
  background-size: cover;
  background-position: center;
  background-blend-mode: normal;
  position: relative;
  isolation: isolate;
}
.cta-band .inner.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(15, 21, 26, 0.9) 30%, rgba(15, 21, 26, 0.66) 100%);
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  .tile:hover .tile-media img {
    transform: none;
  }
}

/* ============ Industries sticky scroll-stack ============ */
.card-stack {
  display: block;
}
.stack-card {
  position: sticky;
  top: 96px;
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: stretch;
  min-height: 300px;
  margin-bottom: 34px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}
/* Each card pins slightly lower, so the previous card's top edge peeks through */
.stack-card:nth-child(1) {
  top: 96px;
}
.stack-card:nth-child(2) {
  top: 116px;
}
.stack-card:nth-child(3) {
  top: 136px;
}
.stack-card:nth-child(4) {
  top: 156px;
}
.stack-card:nth-child(5) {
  top: 176px;
}
.stack-card:nth-child(6) {
  top: 196px;
}
.stack-card-media {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  background: var(--paper-3);
}
.stack-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.stack-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(26px, 3vw, 42px);
  padding-right: clamp(48px, 5vw, 72px);
}
.stack-card-tag {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.08;
  color: var(--ink);
  transition: color 0.25s ease;
}
.stack-card-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}
.stack-go {
  position: absolute;
  top: 26px;
  right: 26px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--pill);
  background: var(--accent-50);
  color: var(--accent-700);
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease,
    color 0.3s ease;
}
.stack-go svg {
  width: 16px;
  height: 16px;
  display: block;
}
/* Interaction cues — no float/lift */
.stack-card:hover .stack-card-media img,
.stack-card:focus-visible .stack-card-media img {
  transform: scale(1.05);
}
.stack-card:hover .stack-card-tag,
.stack-card:focus-visible .stack-card-tag {
  color: var(--accent-700);
}
.stack-card:hover .stack-go,
.stack-card:focus-visible .stack-go {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.card-stack .stack-card:focus-visible {
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--accent-50);
  border-color: var(--accent);
  outline: none;
}
/* Tablet — reduced offsets */
@media (max-width: 900px) {
  .stack-card {
    grid-template-columns: 264px 1fr;
  }
  .stack-card:nth-child(1) {
    top: 84px;
  }
  .stack-card:nth-child(2) {
    top: 100px;
  }
  .stack-card:nth-child(3) {
    top: 116px;
  }
  .stack-card:nth-child(4) {
    top: 132px;
  }
}
/* Mobile — clean vertical cards, no sticky stacking */
@media (max-width: 640px) {
  .stack-card {
    position: static;
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: 18px;
  }
  .stack-card-media {
    min-height: 188px;
  }
  .stack-card-body {
    padding: 24px;
    padding-bottom: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stack-card-media img,
  .stack-go {
    transition: none;
  }
  .stack-card:hover .stack-card-media img {
    transform: none;
  }
}

/* Industries deep-link targets (from home card stack) */
.section-tight[id] {
  scroll-margin-top: 90px;
}
.section-tight[id]:target .industry-tag {
  color: var(--accent);
}
.section-tight[id]:target {
  animation: capArrive 1.9s ease-out;
}

/* Capability cards as deep-link targets (from home "What we do" cards) */
.stack-card[id] {
  scroll-margin-top: 110px;
}
.stack-card[id]:target {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--accent-50);
}

/* "Read More" disclosure for sector "Typical … solutions" lists */
.sol-toggle {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.sol-chev {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}
.sol-toggle[aria-expanded="true"] .sol-chev {
  transform: rotate(180deg);
}
.sol-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: grid-template-rows 0.45s ease, opacity 0.4s ease,
    margin-top 0.45s ease;
}
.sol-reveal-inner {
  min-height: 0;
  overflow: hidden;
}
.sol-reveal.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 28px;
}
.sol-reveal .sol-head {
  margin-top: 0;
}
@media (prefers-reduced-motion: reduce) {
  .sol-reveal,
  .sol-chev {
    transition: none;
  }
}

/* Elegant heading animations */
@keyframes headingFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headingReveal {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes underlineGrow {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes accentPulse {
  0%, 100% {
    text-shadow: 0 0 0 rgba(238, 61, 30, 0);
  }
  50% {
    text-shadow: 0 0 8px rgba(238, 61, 30, 0.15);
  }
}

/* Apply animations to headings */
h1,
h2,
h3,
h4 {
  animation: headingFadeIn 0.6s ease-out;
}

/* Hero section headings with slightly longer animation */
.hero h1 {
  animation: headingFadeIn 0.8s ease-out;
}

/* Section head eyebrows */
.section-head .eyebrow {
  animation: headingFadeIn 0.5s ease-out 0.1s both;
}

/* Add subtle underline animation to h2 headings */
h2::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 12px;
  width: 40px;
  animation: underlineGrow 0.8s ease-out 0.3s both;
}

/* Hero section h2 gets a larger underline */
.hero h2::after {
  height: 3px;
  width: 60px;
}

/* Stack cards get staggered animation */
.stack-card {
  animation: headingFadeIn 0.6s ease-out;
}

.stack-card:nth-child(1) {
  animation-delay: 0s;
}

.stack-card:nth-child(2) {
  animation-delay: 0.1s;
}

.stack-card:nth-child(3) {
  animation-delay: 0.2s;
}

.stack-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  h1,
  h2,
  h3,
  h4,
  .section-head .eyebrow,
  .stack-card,
  h2::after {
    animation: none;
    transform: none;
    clip-path: unset;
  }
}
