:root {
  --ink: #1e1d22;
  --ink-soft: #2b292f;
  --surface: #36333a;
  --paper: #f3f1ed;
  --paper-deep: #e9e5de;
  --white: #fff;
  --muted: #6e6a6b;
  --muted-light: #b7b1b2;
  --line: rgba(30, 29, 34, 0.14);
  --line-light: rgba(255, 255, 255, 0.14);
  --orange: #f2632a;
  --orange-dark: #d94c20;
  --amber: #f1a321;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

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

.hero-image-wrap > img,
.about-visual > img,
.vmi-visual > img,
.product-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

::selection {
  background: var(--orange);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 96px;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 29, 34, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.brand img {
  width: 148px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.desktop-nav a {
  position: relative;
  padding: 10px 0;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover {
  color: var(--white);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
}

.mobile-menu {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 14px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button span {
  font-size: 17px;
  line-height: 1;
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
}

.button-small:hover,
.button-primary:hover {
  background: var(--amber);
  color: var(--ink);
}

.button-primary {
  min-height: 58px;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(242, 99, 42, 0.24);
}

.button-large {
  min-height: 64px;
  padding-inline: 30px;
}

.button-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.button-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.grid-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.grid-surface::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  transform: skewY(-7deg) scale(1.18);
}

.hero {
  min-height: 840px;
  padding-top: 82px;
  background:
    radial-gradient(circle at 77% 26%, rgba(242, 99, 42, 0.11), transparent 25%),
    var(--ink);
  color: var(--white);
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 82px;
  right: -80px;
  width: 370px;
  height: 16px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  content: "";
  transform: skewX(-32deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: stretch;
  min-height: 758px;
  gap: 68px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 0 76px;
  animation: rise-in 700ms ease both;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 23px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-dot,
.service-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(242, 99, 42, 0.14);
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 30px;
  font-size: clamp(52px, 5.5vw, 84px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.text-link:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 560px;
  margin-top: 60px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.hero-proof > div {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 20px 0;
}

.hero-proof > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line-light);
}

.hero-proof strong {
  margin-bottom: 5px;
  color: var(--white);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  align-self: end;
  height: 690px;
  margin-top: 68px;
  animation: rise-in 800ms 120ms ease both;
}

.hero-image-wrap {
  position: absolute;
  inset: 0 0 0 36px;
  overflow: hidden;
  background: var(--surface);
}

.hero-image-wrap::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  content: "";
  pointer-events: none;
}

.hero-image-wrap img {
  object-fit: cover;
  object-position: center 24%;
}

.hero-image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(30, 29, 34, 0.76), transparent 40%),
    linear-gradient(to right, rgba(30, 29, 34, 0.25), transparent 30%);
}

.hero-badge {
  position: absolute;
  z-index: 4;
  right: -1px;
  bottom: 36px;
  display: flex;
  align-items: center;
  min-width: 360px;
  gap: 14px;
  padding: 19px 24px;
  background: rgba(30, 29, 34, 0.94);
  border-left: 3px solid var(--orange);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.badge-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
}

.hero-badge div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-badge strong {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge div span {
  color: var(--muted-light);
  font-size: 11px;
}

.hero-corner {
  position: absolute;
  z-index: 3;
  top: -18px;
  left: 0;
  width: 76px;
  height: 76px;
  border-top: 6px solid var(--orange);
  border-left: 6px solid var(--orange);
}

.client-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.client-strip-inner {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  align-items: center;
  min-height: 122px;
  gap: 48px;
}

.client-strip p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.client-names {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #aaa6a4;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section {
  padding: 128px 0;
}

.about-section {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 100px;
}

.about-visual {
  position: relative;
  height: 650px;
  box-shadow: 26px 26px 0 var(--paper-deep);
}

.about-visual::before {
  position: absolute;
  z-index: 3;
  top: -16px;
  right: -16px;
  width: 96px;
  height: 7px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  content: "";
}

.about-visual img {
  object-fit: cover;
}

.image-caption {
  position: absolute;
  z-index: 4;
  right: -26px;
  bottom: 0;
  left: 58px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  background: var(--ink);
  color: var(--white);
}

.image-caption span {
  color: var(--orange);
  font-size: 28px;
  font-weight: 900;
}

.image-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-copy h2,
.section-heading h2,
.vmi-copy h2,
.products-heading h2,
.quality-heading h2,
.projects-intro h2,
.customers-copy h2,
.contact-copy h2 {
  margin-bottom: 26px;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.about-copy > p:not(.section-kicker),
.vmi-copy > p:not(.section-kicker),
.projects-intro > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.about-copy .section-lead,
.vmi-copy .section-lead {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.principles-grid > div {
  padding: 26px 20px 0 0;
}

.principles-grid > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.principles-grid span,
.project-index {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.principles-grid h3 {
  margin: 11px 0 8px;
  font-size: 14px;
  font-weight: 900;
}

.principles-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.services-section {
  background: var(--ink);
  color: var(--white);
}

.services-section::after {
  position: absolute;
  z-index: -1;
  right: -130px;
  bottom: -210px;
  width: 450px;
  height: 450px;
  border: 100px solid rgba(242, 99, 42, 0.08);
  border-radius: 50%;
  content: "";
}

.section-heading,
.quality-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 66px;
}

.section-heading h2,
.quality-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.section-heading > p,
.quality-heading > p {
  margin: 0;
  color: var(--muted-light);
  font-size: 15px;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 320px;
  gap: 28px;
  padding: 38px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
  transition: background 220ms ease;
}

.service-card::after {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 140px;
  height: 140px;
  background: var(--orange);
  content: "";
  opacity: 0;
  transform: rotate(45deg);
  transition: opacity 220ms ease, transform 220ms ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.045);
}

.service-card:hover::after {
  opacity: 0.9;
  transform: rotate(45deg) translate(-6px, -6px);
}

.service-number {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.service-card-body {
  max-width: 410px;
}

.service-card h3 {
  max-width: 330px;
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.service-card p {
  margin: 0;
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.7;
}

.service-label {
  position: absolute;
  bottom: 34px;
  left: 82px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.service-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.vmi-section {
  background: var(--white);
}

.vmi-grid {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  align-items: center;
  gap: 110px;
}

.vmi-copy h2 {
  max-width: 620px;
}

.vmi-list {
  margin: 42px 0 38px;
  border-top: 1px solid var(--line);
}

.vmi-list > div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.vmi-list > div > span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.vmi-list h3 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 900;
}

.vmi-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.text-link-dark {
  border-color: rgba(30, 29, 34, 0.28);
  color: var(--ink);
}

.vmi-visual {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--ink-soft);
}

.vmi-visual img {
  object-fit: cover;
}

.vmi-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 29, 34, 0.72), transparent 42%);
  content: "";
}

.vmi-stat {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 34px;
  color: var(--white);
}

.vmi-stat span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.vmi-stat strong {
  max-width: 330px;
  font-size: 26px;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.products-section {
  background: var(--paper);
}

.products-heading > p {
  color: var(--muted);
}

.product-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: var(--ink);
}

.product-card img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.product-card:hover img {
  transform: scale(1.035);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(30, 29, 34, 0.96), rgba(30, 29, 34, 0.08) 68%),
    linear-gradient(to right, rgba(30, 29, 34, 0.25), transparent);
}

.product-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px;
  color: var(--white);
}

.product-content > span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-content h3 {
  max-width: 440px;
  margin: 12px 0 12px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.product-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.product-tags span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quality-section {
  background: var(--ink-soft);
  color: var(--white);
}

.quality-heading {
  margin-bottom: 58px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.process-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 182px;
  gap: 42px;
  padding: 25px 20px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.process-list li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -10px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: var(--orange);
  color: var(--white);
  content: "→";
  font-size: 11px;
}

.process-list span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.process-list strong {
  max-width: 120px;
  font-size: 13px;
  line-height: 1.35;
}

.projects-section {
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 110px;
}

.projects-intro {
  position: sticky;
  top: 130px;
  align-self: start;
}

.projects-intro h2 {
  max-width: 550px;
}

.projects-intro > p:not(.section-kicker) {
  max-width: 480px;
  margin-bottom: 32px;
}

.projects-list {
  border-top: 1px solid var(--line);
}

.projects-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.projects-list article > div > p {
  margin-bottom: 9px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.projects-list h3 {
  margin-bottom: 10px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.projects-list article > div > span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.customers-section {
  padding-top: 0;
  background: var(--white);
}

.customers-copy {
  display: grid;
  grid-template-columns: 0.55fr 1.05fr 0.7fr;
  align-items: end;
  gap: 45px;
  margin-bottom: 48px;
}

.customers-copy .section-kicker,
.customers-copy h2,
.customers-copy > p {
  margin-bottom: 0;
}

.customers-copy h2 {
  font-size: clamp(35px, 3.6vw, 52px);
}

.customers-copy > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.customer-logo-panel {
  padding: 30px;
  border: 1px solid var(--line);
  background: #eee;
}

.customer-logo-panel img {
  width: 100%;
  height: auto;
}

.contact-section {
  padding: 116px 0;
  background:
    radial-gradient(circle at 22% 40%, rgba(242, 99, 42, 0.12), transparent 22%),
    var(--ink);
  color: var(--white);
}

.contact-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 110px;
}

.contact-copy h2 {
  max-width: 720px;
  font-size: clamp(46px, 5vw, 70px);
}

.contact-copy > p:not(.section-kicker) {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted-light);
  font-size: 17px;
  line-height: 1.7;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 38px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.045);
  font-style: normal;
}

.contact-card > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}

.contact-card > div:first-child {
  padding-top: 0;
}

.contact-card > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card p,
.contact-card a {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--orange);
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.site-footer {
  padding: 58px 0 28px;
  border-top: 1px solid var(--line-light);
  background: var(--ink);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 48px;
  padding-bottom: 46px;
}

.footer-brand img {
  width: 150px;
  height: auto;
}

.footer-main > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.34);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .container {
    width: min(var(--container), calc(100% - 48px));
  }

  .desktop-nav {
    gap: 22px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(49px, 6.4vw, 70px);
  }

  .hero-badge {
    min-width: 330px;
  }

  .about-grid,
  .vmi-grid,
  .projects-grid,
  .contact-shell {
    gap: 70px;
  }

  .about-visual {
    height: 590px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid > div,
  .principles-grid > div + div {
    display: grid;
    grid-template-columns: 34px 130px 1fr;
    align-items: start;
    gap: 10px;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .principles-grid h3 {
    margin: 0;
  }

  .process-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-list li:nth-child(3)::after {
    display: none;
  }

  .customers-copy {
    grid-template-columns: 0.45fr 1fr 0.7fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    background: rgba(30, 29, 34, 0.94);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 74px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line-light);
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    width: 18px;
    height: 2px;
    background: var(--white);
    transition: transform 180ms ease;
  }

  .mobile-menu[open] summary span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .mobile-menu[open] summary span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .mobile-menu nav {
    position: absolute;
    top: 54px;
    right: 0;
    display: flex;
    width: min(310px, calc(100vw - 48px));
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--line-light);
    background: var(--ink-soft);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }

  .mobile-menu nav a {
    padding: 15px 12px;
    border-bottom: 1px solid var(--line-light);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0;
    color: var(--orange);
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding: 95px 0 64px;
  }

  .hero h1 {
    max-width: 780px;
    font-size: clamp(50px, 9vw, 74px);
  }

  .hero-visual {
    width: min(680px, 92%);
    height: 670px;
    margin: 0 auto;
  }

  .hero-image-wrap {
    left: 0;
  }

  .client-strip-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0;
  }

  .client-names {
    overflow: hidden;
  }

  .section {
    padding: 100px 0;
  }

  .about-grid,
  .vmi-grid,
  .projects-grid,
  .contact-shell {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .about-visual {
    width: min(620px, calc(100% - 26px));
    height: 640px;
  }

  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .principles-grid > div,
  .principles-grid > div + div {
    display: block;
    padding: 22px 18px 0 0;
    border-right: 0;
    border-bottom: 0;
  }

  .principles-grid > div + div {
    padding-left: 18px;
    border-left: 1px solid var(--line);
  }

  .principles-grid h3 {
    margin: 10px 0 7px;
  }

  .section-heading,
  .quality-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-heading > p,
  .quality-heading > p {
    max-width: 620px;
  }

  .vmi-copy {
    order: 1;
  }

  .vmi-visual {
    min-height: 670px;
    order: 0;
  }

  .projects-intro {
    position: static;
  }

  .customers-copy {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .customer-logo-panel {
    padding: 18px;
  }

  .contact-copy h2 {
    max-width: 760px;
  }

  .contact-card {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .brand img {
    width: 132px;
  }

  .hero-copy {
    padding-top: 76px;
  }

  .hero h1 {
    font-size: clamp(43px, 12.4vw, 63px);
    letter-spacing: -0.06em;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-proof {
    margin-top: 48px;
  }

  .hero-proof > div,
  .hero-proof > div + div {
    padding: 17px 10px;
  }

  .hero-proof > div:first-child {
    padding-left: 0;
  }

  .hero-proof strong {
    font-size: 17px;
  }

  .hero-proof span {
    font-size: 8px;
    line-height: 1.4;
  }

  .hero-visual {
    width: 100%;
    height: 590px;
  }

  .hero-badge {
    right: 14px;
    bottom: 26px;
    min-width: 0;
    max-width: calc(100% - 28px);
  }

  .hero-corner {
    width: 60px;
    height: 60px;
  }

  .client-names {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
    font-size: 11px;
  }

  .section {
    padding: 82px 0;
  }

  .about-visual {
    height: 520px;
  }

  .image-caption {
    left: 28px;
  }

  .about-copy h2,
  .section-heading h2,
  .vmi-copy h2,
  .products-heading h2,
  .quality-heading h2,
  .projects-intro h2,
  .customers-copy h2 {
    font-size: clamp(34px, 9.6vw, 46px);
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid > div,
  .principles-grid > div + div {
    display: grid;
    grid-template-columns: 35px 125px 1fr;
    gap: 8px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .principles-grid h3 {
    margin: 0;
  }

  .services-grid,
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 300px;
    padding: 30px 26px;
  }

  .service-label {
    left: 70px;
  }

  .vmi-visual {
    min-height: 580px;
  }

  .product-card {
    min-height: 530px;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list li:nth-child(2)::after,
  .process-list li:nth-child(4)::after {
    display: none;
  }

  .process-list li:nth-child(3)::after {
    display: grid;
  }

  .projects-list article {
    grid-template-columns: 38px 1fr;
  }

  .customer-logo-panel {
    margin-right: -18px;
    margin-left: -18px;
    padding: 8px;
    border-right: 0;
    border-left: 0;
  }

  .contact-section {
    padding: 86px 0;
  }

  .contact-copy h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .contact-card {
    padding: 28px;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    height: 510px;
  }

  .hero-image-wrap img {
    object-position: center 30%;
  }

  .hero-badge {
    padding: 15px;
  }

  .badge-mark {
    width: 36px;
    height: 36px;
  }

  .hero-badge strong {
    font-size: 10px;
  }

  .hero-badge div span {
    font-size: 9px;
  }

  .about-visual {
    height: 430px;
  }

  .image-caption {
    right: -18px;
    left: 20px;
  }

  .principles-grid > div,
  .principles-grid > div + div {
    grid-template-columns: 32px 1fr;
  }

  .principles-grid p {
    grid-column: 2;
  }

  .service-card {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .service-label {
    left: 70px;
  }

  .vmi-visual {
    min-height: 510px;
  }

  .product-card {
    min-height: 470px;
  }

  .product-content {
    padding: 28px;
  }

  .product-content h3 {
    font-size: 29px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    min-height: 112px;
    flex-direction: row;
    align-items: center;
    gap: 25px;
  }

  .process-list li::after,
  .process-list li:nth-child(2)::after,
  .process-list li:nth-child(3)::after,
  .process-list li:nth-child(4)::after {
    display: none;
  }

  .contact-card {
    margin-right: -4px;
    margin-left: -4px;
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   WordPress integration and editorial surfaces
   -------------------------------------------------------------------------- */

body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar [id] {
  scroll-margin-top: 128px;
}

.site-main {
  min-height: 60vh;
}

.desktop-nav ul,
.mobile-menu nav ul,
.footer-links ul {
  display: flex;
  align-items: center;
  gap: inherit;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav li,
.mobile-menu nav li,
.footer-links li {
  margin: 0;
}

.desktop-nav .current-menu-item > a,
.desktop-nav .current_page_item > a,
.desktop-nav .current-menu-ancestor > a {
  color: var(--white);
}

.desktop-nav .current-menu-item > a::after,
.desktop-nav .current_page_item > a::after,
.desktop-nav .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.mobile-menu nav ul {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.footer-links ul {
  flex-wrap: wrap;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto !important;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  white-space: normal;
}

.alignleft {
  float: left;
  margin: 0 28px 22px 0;
}

.alignright {
  float: right;
  margin: 0 0 22px 28px;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
}

.wp-caption-text,
.wp-element-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.sticky {
  position: relative;
}

.bypostauthor {
  display: block;
}

/* Page and archive mastheads */

.page-hero,
.archive-hero,
.article-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 188px 0 98px;
  background:
    radial-gradient(circle at 78% 20%, rgba(242, 99, 42, 0.16), transparent 28%),
    var(--ink);
  color: var(--white);
}

.page-hero::before,
.archive-hero::before,
.article-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 62px 62px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 95%);
}

.page-hero::after,
.archive-hero::after,
.article-hero::after {
  position: absolute;
  z-index: -1;
  top: 115px;
  right: -90px;
  width: 370px;
  height: 14px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  content: "";
  transform: skewX(-32deg);
}

.page-hero--compact,
.archive-hero {
  padding-bottom: 82px;
}

.page-hero__inner,
.archive-header,
.article-hero__inner,
.single-article__header {
  max-width: 900px;
}

.page-hero h1,
.archive-hero h1,
.archive-header h1,
.article-hero h1,
.single-article__header h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.99;
  text-wrap: balance;
}

.page-hero p:not(.section-kicker),
.archive-hero p:not(.section-kicker),
.archive-header > p:not(.section-kicker),
.article-hero p:not(.section-kicker),
.archive-description {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 18px;
  line-height: 1.7;
}

.archive-description > *:last-child {
  margin-bottom: 0;
}

.breadcrumb,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 25px;
  padding: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.6;
  list-style: none;
  text-transform: uppercase;
}

.breadcrumb a,
.breadcrumbs a {
  color: var(--orange);
}

.breadcrumb a:hover,
.breadcrumbs a:hover {
  color: var(--amber);
}

.breadcrumb .separator,
.breadcrumbs .separator {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb ol,
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before,
.breadcrumbs li + li::before {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.3);
  content: "/";
}

/* Homepage latest articles and archive cards */

.latest-articles-section,
.articles-section {
  padding: 116px 0;
  background: var(--paper);
}

.latest-articles-section,
.articles-section {
  border-top: 1px solid var(--line);
}

.articles-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: 44px;
  margin-bottom: 48px;
}

.articles-heading h2 {
  max-width: 750px;
  margin-bottom: 0;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.articles-heading .section-kicker {
  margin-bottom: 20px;
}

.articles-heading__action p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.articles-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(30, 29, 34, 0.04);
  overflow: hidden;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.article-card:hover,
.article-card:focus-within {
  border-color: rgba(242, 99, 42, 0.48);
  box-shadow: 0 24px 55px rgba(30, 29, 34, 0.12);
  transform: translateY(-5px);
}

.article-card-media,
.article-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--ink-soft), var(--surface));
}

.article-card-media::after,
.article-card__image::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: 7px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  content: "";
}

.article-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.12);
  font-size: clamp(78px, 10vw, 140px);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.article-card-media img,
.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 280ms ease, transform 500ms ease;
}

.article-card:hover .article-card-media img,
.article-card:hover .article-card__image img {
  transform: scale(1.035);
}

.article-card-body,
.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.article-card-meta,
.article-card__meta,
.single-article__meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.article-card-meta a,
.article-card__meta a,
.single-article__meta a,
.article-meta a {
  color: var(--orange-dark);
}

.article-card-meta > * + *::before,
.article-card__meta > * + *::before,
.single-article__meta > * + *::before,
.article-meta > * + *::before {
  margin-right: 14px;
  color: #bdb8b3;
  content: "•";
}

.article-card h3,
.article-card__title {
  margin-bottom: 14px;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.article-card h3 a,
.article-card__title a {
  transition: color 180ms ease;
}

.article-card h3 a:hover,
.article-card__title a:hover {
  color: var(--orange-dark);
}

.article-card-excerpt,
.article-card__excerpt {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.article-card-link,
.article-card__link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 10px;
  margin-top: auto;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(30, 29, 34, 0.28);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.article-card-link:hover,
.article-card__link:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.archive-main,
.articles-archive {
  padding: 116px 0;
  background: var(--white);
}

.archive-main .article-grid,
.articles-archive .articles-grid {
  row-gap: 34px;
}

/* Pagination */

.pagination,
.posts-navigation,
.post-navigation {
  margin-top: 58px;
}

.pagination .nav-links,
.posts-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-numbers,
.pagination a,
.pagination span {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 13px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.page-numbers.current,
.page-numbers:hover,
.pagination a:hover,
.pagination span.current {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* Single article */

.single-article {
  background: var(--white);
}

.single-article__header,
.single-article__header.content-narrow {
  max-width: 940px;
}

.single-article__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.single-article__categories a {
  padding: 8px 11px;
  border: 1px solid rgba(242, 99, 42, 0.45);
  color: var(--orange);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.single-article__categories a:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.single-article__excerpt {
  max-width: 760px;
}

.single-article__header .single-article__meta,
.article-hero .article-meta {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.58);
}

.single-article__meta > * + *::before {
  content: none;
}

.single-article__image,
.article-hero-media {
  position: relative;
  width: min(var(--container), calc(100% - 64px));
  aspect-ratio: 16 / 7.5;
  margin: -42px auto 0;
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow: 0 28px 70px rgba(30, 29, 34, 0.16);
}

.single-article__image img,
.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 280ms ease;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 90px;
  padding-top: 92px;
  padding-bottom: 116px;
}

.single-article__body {
  padding: 0;
}

.single-article__content,
.article-content {
  min-width: 0;
  color: #353238;
  font-size: 17px;
  line-height: 1.82;
}

.single-article__content::after,
.article-content::after,
.generic-page__content::after {
  display: table;
  clear: both;
  content: "";
}

.single-article__content > *:first-child,
.article-content > *:first-child,
.generic-page__content > *:first-child {
  margin-top: 0;
}

.single-article__content h2,
.article-content h2,
.generic-page__content h2 {
  margin: 2.2em 0 0.65em;
  color: var(--ink);
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.single-article__content h3,
.article-content h3,
.generic-page__content h3 {
  margin: 1.9em 0 0.6em;
  color: var(--ink);
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.single-article__content h4,
.article-content h4,
.generic-page__content h4 {
  margin: 1.7em 0 0.5em;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
}

.single-article__content p,
.article-content p,
.generic-page__content p,
.single-article__content ul,
.article-content ul,
.generic-page__content ul,
.single-article__content ol,
.article-content ol,
.generic-page__content ol {
  margin: 0 0 1.45em;
}

.single-article__content ul,
.article-content ul,
.generic-page__content ul,
.single-article__content ol,
.article-content ol,
.generic-page__content ol {
  padding-left: 1.35em;
}

.single-article__content li,
.article-content li,
.generic-page__content li {
  margin-bottom: 0.6em;
  padding-left: 0.25em;
}

.single-article__content li::marker,
.article-content li::marker,
.generic-page__content li::marker {
  color: var(--orange-dark);
  font-weight: 900;
}

.single-article__content a,
.article-content a,
.generic-page__content a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.single-article__content blockquote,
.article-content blockquote,
.generic-page__content blockquote,
.wp-block-quote {
  margin: 2.2em 0;
  padding: 24px 28px;
  border-left: 5px solid var(--orange);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.12em;
  font-weight: 700;
  line-height: 1.65;
}

.single-article__content blockquote p:last-child,
.article-content blockquote p:last-child,
.generic-page__content blockquote p:last-child {
  margin-bottom: 0;
}

.single-article__content figure,
.article-content figure,
.generic-page__content figure,
.wp-block-image {
  margin: 2.2em 0;
}

.single-article__content img,
.article-content img,
.generic-page__content img {
  height: auto;
}

.single-article__content table,
.article-content table,
.generic-page__content table,
.wp-block-table table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.single-article__content th,
.article-content th,
.generic-page__content th,
.single-article__content td,
.article-content td,
.generic-page__content td {
  padding: 13px 15px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.single-article__content th,
.article-content th,
.generic-page__content th {
  background: var(--ink-soft);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.single-article__content pre,
.article-content pre,
.generic-page__content pre,
.wp-block-code {
  max-width: 100%;
  margin: 2em 0;
  padding: 22px;
  overflow-x: auto;
  background: var(--ink-soft);
  color: #f6f2ec;
  font-size: 13px;
  line-height: 1.65;
}

.single-article__content code,
.article-content code,
.generic-page__content code {
  padding: 0.12em 0.35em;
  background: var(--paper-deep);
  font-size: 0.88em;
}

.single-article__content pre code,
.article-content pre code,
.generic-page__content pre code {
  padding: 0;
  background: transparent;
}

.single-article__content hr,
.article-content hr,
.generic-page__content hr {
  margin: 2.8em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.single-article__content .wp-block-button__link,
.article-content .wp-block-button__link,
.generic-page__content .wp-block-button__link {
  padding: 16px 22px;
  border-radius: 0;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.single-article__content .wp-block-button__link:hover,
.article-content .wp-block-button__link:hover,
.generic-page__content .wp-block-button__link:hover {
  background: var(--amber);
  color: var(--ink);
}

.single-article__content .alignwide,
.article-content .alignwide {
  width: min(100vw - 64px, 980px);
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-sidebar {
  position: sticky;
  top: 118px;
}

body.admin-bar .article-sidebar {
  top: 150px;
}

.article-sidebar > *,
.article-sidebar__card {
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.article-sidebar > div > span:first-child,
.article-sidebar__label {
  display: block;
  margin-bottom: 9px;
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-sidebar time,
.article-sidebar strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.article-sidebar h2,
.article-sidebar h3,
.article-sidebar__title {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.article-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.article-sidebar li:last-child {
  border-bottom: 0;
}

.article-sidebar a:hover {
  color: var(--orange-dark);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 48px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.article-tags > span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-tags a,
.page-links a,
.page-links > span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.article-tags a:hover,
.page-links a:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 34px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  padding: 26px 22px;
}

.post-navigation .nav-next {
  border-left: 1px solid var(--line);
  text-align: right;
}

.post-navigation a {
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
}

.post-navigation a:hover {
  color: var(--orange-dark);
}

.post-navigation .nav-subtitle {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-articles,
.article-related {
  padding: 92px 0 110px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.related-articles h2,
.article-related h2 {
  margin-bottom: 38px;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

/* Generic pages, empty and error states */

.generic-page {
  padding: 96px 0 116px;
  background: var(--white);
}

.content-narrow {
  max-width: 780px;
}

.page-content .entry-content {
  color: #353238;
  font-size: 17px;
  line-height: 1.82;
}

.page-content .entry-content h2 {
  margin: 2.2em 0 0.65em;
  color: var(--ink);
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.page-content .entry-content h3 {
  margin: 1.9em 0 0.6em;
  color: var(--ink);
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.page-content .entry-content p,
.page-content .entry-content ul,
.page-content .entry-content ol {
  margin: 0 0 1.45em;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
  padding-left: 1.35em;
}

.page-content .entry-content li {
  margin-bottom: 0.6em;
  padding-left: 0.25em;
}

.page-content .entry-content li::marker {
  color: var(--orange-dark);
  font-weight: 900;
}

.page-content .entry-content a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-content .entry-content blockquote {
  margin: 2.2em 0;
  padding: 24px 28px;
  border-left: 5px solid var(--orange);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.12em;
  font-weight: 700;
  line-height: 1.65;
}

.page-featured-image {
  margin: 0 0 52px;
}

.page-featured-image img {
  width: 100%;
  height: auto;
}

.generic-page__content {
  width: min(780px, 100%);
  margin: 0 auto;
  color: #353238;
  font-size: 17px;
  line-height: 1.82;
}

.empty-state,
.not-found,
.error-page {
  display: grid;
  min-height: 58vh;
  padding: 178px 0 110px;
  place-items: center;
  background:
    radial-gradient(circle at 68% 25%, rgba(242, 99, 42, 0.13), transparent 25%),
    var(--ink);
  color: var(--white);
  text-align: center;
}

.empty-state {
  min-height: 360px;
  padding: 70px 30px;
  background: var(--paper);
  color: var(--ink);
}

.empty-state__inner,
.not-found__inner,
.error-page__inner {
  width: min(650px, calc(100% - 36px));
  margin: 0 auto;
}

.not-found__code,
.error-page__code {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: clamp(72px, 13vw, 150px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.empty-state h1,
.empty-state h2,
.not-found h1,
.error-page h1 {
  margin-bottom: 18px;
  font-size: clamp(35px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.empty-state p:not(.section-kicker),
.not-found p:not(.section-kicker),
.error-page p:not(.section-kicker) {
  margin: 0 auto 28px;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.7;
}

.empty-state p {
  color: var(--muted);
}

.empty-state .section-kicker,
.not-found .section-kicker,
.error-page .section-kicker {
  justify-content: center;
}

.not-found__actions,
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

/* Progressive image loading. Images remain visible without JavaScript. */

.js .article-card-media img:not(.is-loaded),
.js .article-card__image img:not(.is-loaded),
.js .single-article__image img:not(.is-loaded),
.js .article-hero-media img:not(.is-loaded),
.js .hero-image-wrap img:not(.is-loaded) {
  opacity: 0;
}

.js .article-card-media img.is-loaded,
.js .article-card__image img.is-loaded,
.js .single-article__image img.is-loaded,
.js .article-hero-media img.is-loaded,
.js .hero-image-wrap img.is-loaded {
  opacity: 1;
}

@media (max-width: 1100px) {
  .articles-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-shell {
    gap: 54px;
  }
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 32px;
  }

  .mobile-menu nav {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .mobile-menu nav ul {
    width: 100%;
  }

  .page-hero,
  .archive-hero,
  .article-hero {
    padding-top: 154px;
    padding-bottom: 78px;
  }

  .article-shell {
    grid-template-columns: 1fr;
    gap: 58px;
    padding-top: 72px;
    padding-bottom: 92px;
  }

  .article-sidebar,
  body.admin-bar .article-sidebar {
    position: static;
  }

  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .article-sidebar > *,
  .article-sidebar__card {
    margin-bottom: 0;
  }

  .single-article__content .alignwide,
  .article-content .alignwide {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    transform: none;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar [id] {
    scroll-margin-top: 138px;
  }
}

@media (max-width: 720px) {
  .latest-articles-section,
  .articles-section {
    padding: 82px 0;
  }

  .archive-main,
  .articles-archive {
    padding: 82px 0;
  }

  .articles-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .articles-heading .button {
    justify-self: start;
  }

  .articles-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card-body,
  .article-card__body {
    padding: 24px;
  }

  .page-hero h1,
  .archive-hero h1,
  .archive-header h1,
  .article-hero h1,
  .single-article__header h1 {
    font-size: clamp(39px, 11vw, 56px);
  }

  .page-hero p:not(.section-kicker),
  .archive-hero p:not(.section-kicker),
  .archive-header > p:not(.section-kicker),
  .article-hero p:not(.section-kicker),
  .archive-description {
    font-size: 16px;
  }

  .single-article__image,
  .article-hero-media {
    width: calc(100% - 36px);
    aspect-ratio: 4 / 3;
    margin-top: -26px;
  }

  .single-article__content,
  .article-content,
  .generic-page__content {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .related-articles,
  .article-related,
  .generic-page {
    padding: 76px 0 84px;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .alignleft,
  .alignright {
    float: none;
    margin: 1.8em 0;
  }
}

@media (max-width: 480px) {
  .page-hero,
  .archive-hero,
  .article-hero {
    padding-top: 136px;
    padding-bottom: 66px;
  }

  .page-hero::after,
  .archive-hero::after,
  .article-hero::after {
    top: 98px;
    width: 230px;
    height: 10px;
  }

  .article-card h3,
  .article-card__title {
    font-size: 23px;
  }

  .article-shell {
    padding-top: 58px;
    padding-bottom: 76px;
  }

  .single-article__content blockquote,
  .article-content blockquote,
  .generic-page__content blockquote,
  .wp-block-quote {
    padding: 20px;
  }

  .single-article__content table,
  .article-content table,
  .generic-page__content table {
    display: block;
    overflow-x: auto;
  }
}

@media (forced-colors: active) {
  .button,
  .page-numbers,
  .article-card,
  .article-sidebar > * {
    border: 1px solid CanvasText;
  }

  .desktop-nav a::after,
  .article-card-media::after,
  .article-card__image::after {
    background: Highlight;
  }
}
