/* ==========================================================================
   SOURIO — Independent China Sourcing & Procurement
   Stylesheet
   --------------------------------------------------------------------------
   1.  Fonts
   2.  Tokens & reset
   3.  Typography & utilities
   4.  Buttons & links
   5.  Header / navigation
   6.  Hero
   7.  Sections (about, services, industries, process, CTA)
   8.  Contact strip & form
   9.  Interior page blocks
   10. Footer
   11. Motion & responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens & reset ------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --paper-2: #f5f7f9;
  --paper-3: #f5f7f9;
  --ink: #202b35;
  --ink-2: #202b35;
  --muted: #5f6b76;
  --muted-2: #5f6b76;
  --line: #e2e8f0;
  --line-strong: #e2e8f0;
  --accent: #244766;
  --accent-soft: #eef2f6;
  --accent-light: #a9bdcf;
  --cream: #ffffff;
  --navy: #172d46;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

picture { width: 100%; }

img { height: auto; }

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--cream); }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 3. Typography & utilities ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 8.5vw, 128px); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--paper2 { background: var(--paper-2); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(27px, 3.1vw, 42px); line-height: 1.16; }
h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; letter-spacing: -0.015em; }

h1 em, h2 em, h3 em {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  flex: none;
}
.eyebrow--plain::before { display: none; }

.lead {
  text-wrap: pretty;
  font-size: clamp(15.5px, 1.15vw, 17px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

.small-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 { margin-top: 18px; max-width: 18ch; }
.section-head .lead { margin: 0; max-width: 46ch; }

.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  max-width: 720px;
  margin-inline: auto;
}
.section-head--center h2 { max-width: 22ch; }
.section-head--center .eyebrow::before { display: none; }

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

/* 4. Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--paper-2);
  color: var(--accent);
}

.btn--light {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy);
}
.btn--light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

.btn--small { height: 42px; padding: 0 22px; font-size: 12px; gap: 8px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow span[aria-hidden] { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover span[aria-hidden] { transform: translateX(4px); }

.text-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(36, 71, 102, 0.35);
  transition: border-color 0.25s var(--ease);
}
.text-link:hover { border-color: var(--accent); }

/* 5. Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--ink);
  line-height: 1;
  padding-block: 6px;
}
.logo::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}
.logo:hover { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }

.header-cta { flex: none; }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 26px; }
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
}
body.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }

.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(22px, 6.4vw, 30px);
  line-height: 1.2;
  color: var(--ink);
}
.mobile-menu nav a.is-active { color: var(--accent); }

.mobile-menu__foot {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.mobile-menu__foot .btn { margin-bottom: 12px; }
.mobile-menu__foot a:not(.btn) { color: var(--ink); }

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
  padding-right: clamp(28px, 4vw, 64px);
  padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  min-height: clamp(560px, calc(100svh - var(--header-h)), 800px);
}

.hero h1 {
  text-wrap: wrap;
  margin-top: 22px;
  max-width: 16ch;
  font-size: clamp(34px, 4.1vw, 54px);
  line-height: 1.1;
}
.hero__lead {
  margin-top: clamp(20px, 2.4vw, 28px);
  max-width: 47ch;
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.72;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 13px;
  margin-top: clamp(44px, 7vh, 78px);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 16px; }
.hero__meta li + li::before {
  content: '';
  width: 1px;
  height: 11px;
  background: var(--line-strong);
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  min-height: 480px;
}
.hero__media picture { position: static; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  filter: saturate(0.78) contrast(1.03);
  transform: scale(1.04);
  animation: hero-settle 1.6s var(--ease) forwards;
}
@keyframes hero-settle {
  to { transform: scale(1); }
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(23, 45, 70, 0.88), rgba(23, 45, 70, 0.2) 55%, rgba(23, 45, 70, 0));
  pointer-events: none;
}
.hero__caption {
  position: absolute;
  left: clamp(20px, 2.4vw, 32px);
  bottom: clamp(20px, 2.4vw, 28px);
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.hero__caption span { display: block; opacity: 0.65; letter-spacing: 0.14em; }

/* 7. Sections ------------------------------------------------------------- */
/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.about-media { position: relative; z-index: 0; }
.about-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-3);
}
.about-copy h2 { max-width: 17ch; }
.about-copy p {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--muted);
}
.about-copy .link-arrow { margin-top: 30px; }

.about-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.service {
  position: relative;
  padding: 32px 30px 40px 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.35s var(--ease);
}
.service:nth-child(3n + 2),
.service:nth-child(3n) {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.service:nth-child(3n) { padding-right: 0; }
.service:hover { background: var(--paper-2); }
.service__num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.14em;
}
.service h3 {
  margin: 16px 0 10px;
  font-size: clamp(19px, 1.7vw, 22px);
  transition: color 0.3s var(--ease);
}
.service:hover h3 { color: var(--accent); }
.service p {
  max-width: 33ch;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}
.service__arrow {
  position: absolute;
  top: 32px;
  right: 22px;
  font-size: 15px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.service:nth-child(3n) .service__arrow { right: 0; }
.service:hover .service__arrow { opacity: 1; transform: translate(0, 0); }

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.ind-list { border-top: 1px solid var(--line); }
.ind-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 4px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: padding-left 0.35s var(--ease);
}
.ind-item h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  transition: color 0.3s var(--ease);
}
.ind-item__num {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  transition: color 0.3s var(--ease);
}
.ind-item__arrow {
  font-size: 13px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.ind-item.is-active h3,
.ind-item:hover h3 { color: var(--accent); }
.ind-item.is-active { padding-left: 0; }
.ind-note p { flex: 1 1 420px; }
.ind-item.is-active .ind-item__arrow,
.ind-item:hover .ind-item__arrow { opacity: 1; transform: none; }
.ind-item img { display: none; }

.ind-media {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}
.ind-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}
.ind-media img.is-active { opacity: 1; transform: scale(1); }
.ind-media__cap {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.ind-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.ind-note .link-arrow { flex: none; }
.ind-note p { max-width: 48ch; font-size: 14px; color: var(--muted); margin: 0; }

/* Process */
.section--process {
  background: var(--navy);
  color: var(--cream);
}
.section--process .eyebrow { color: var(--accent-light); }
.section--process h2 { color: var(--cream); }
.section--process .lead { color: rgba(255, 255, 255, 0.62); }
.section--process .section-head { border-bottom: 1px solid rgba(255, 255, 255, 0.14); padding-bottom: clamp(28px, 4vw, 44px); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.step {
  padding: 26px 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.step + .step {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 22px;
}
.step__num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.14em;
}
.step h3 {
  margin: 18px 0 10px;
  min-height: 2.8em;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--cream);
  line-height: 1.4;
}
.step p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}
.section--process .link-arrow {
  margin-top: 44px;
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.28);
}
.section--process .link-arrow:hover { color: var(--accent-light); border-color: var(--accent-light); }

/* CTA */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 88px);
}
.cta h2 { max-width: 19ch; }
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.cta__mail {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cta__mail:hover { color: var(--accent); border-color: var(--accent); }

/* 8. Contact strip & form ------------------------------------------------- */
.contact-strip { border-top: 1px solid var(--line); background: var(--paper); }
.contact-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 76px);
}
.contact-block__label {
  display: block;
  margin-bottom: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-block__value {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.3;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.contact-block__value:hover { color: var(--accent); border-color: var(--accent); }
.contact-block__meta {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* 9. Interior page blocks ------------------------------------------------- */
.page-hero {
  padding-top: clamp(52px, 6.5vw, 92px);
  padding-bottom: clamp(36px, 4.5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-top: 20px; max-width: 22ch; font-size: clamp(32px, 3.8vw, 50px); }
.page-hero .lead { margin-top: 22px; max-width: 60ch; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.split--media { align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-3); }
.split__media--tall img { aspect-ratio: 4 / 5; }

.prose h2 { max-width: 20ch; }
.prose h3 { margin-top: 34px; font-size: 20px; }
.prose p {
  margin-top: 18px;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--muted);
}
.prose ul { margin-top: 18px; display: grid; gap: 10px; }
.prose ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.principle {
  padding: 30px 28px 8px 0;
}
.principle + .principle {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.principle h3 { font-size: 21px; margin-bottom: 12px; }
.principle p { font-size: 14px; line-height: 1.72; color: var(--muted); max-width: 34ch; }

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 4vw, 56px);
}
.scope {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.scope h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.scope ul { margin-top: 16px; display: grid; gap: 12px; }
.scope li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}
.scope li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  color: var(--accent);
}
.scope--do li::before { content: '+'; }
.scope--dont li::before { content: '—'; color: var(--muted-2); }

/* Service detail rows */
.service-rows { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(26px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
}
.service-row__num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 8px;
}
.service-row h3 { font-size: clamp(20px, 1.85vw, 25px); }
.service-row__body p { font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 60ch; }
.service-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}

/* Industry cards */
.ind-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.ind-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-3);
  transition: transform 0.9s var(--ease);
}
.ind-card__media { overflow: hidden; }
.ind-card:hover img { transform: scale(1.03); }
.ind-card h3 { margin-top: 20px; font-size: 21px; }
.ind-card p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.ind-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted-2);
}
.ind-card__list li { position: relative; }
.ind-card__list li + li::before {
  content: '·';
  position: absolute;
  left: -9px;
}
.ind-card--note {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.ind-card--note h3 { margin-top: 0; }
.ind-card--note .link-arrow { margin-top: 22px; align-self: flex-start; }

/* Steps (how it works) */
.steps { border-top: 1px solid var(--line); }
.step-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.step-row__num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.step-row h3 { font-size: clamp(21px, 1.95vw, 26px); }
.step-row p { margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 54ch; }
.step-row__aside {
  padding-top: 6px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.step-row__aside h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.step-row__aside ul { display: grid; gap: 7px; }
.step-row__aside li {
  position: relative;
  padding-left: 14px;
  line-height: 1.6;
}
.step-row__aside li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 1px;
  background: var(--line-strong);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.checklist li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--line-strong);
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.contact-list { margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.contact-list__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list__item span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-list__item a,
.contact-list__item p {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-list__item a:hover { color: var(--accent); border-color: var(--accent); }

.contact-card {
  padding: clamp(26px, 3vw, 40px);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.contact-card h2 {
  margin-top: 16px;
  max-width: 20ch;
  font-size: clamp(23px, 2.3vw, 31px);
}
.contact-card > p {
  margin-top: 14px;
  max-width: 48ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}
.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 32px);
  padding-top: clamp(22px, 2.6vw, 28px);
  border-top: 1px solid var(--line);
}
.contact-card__actions .btn { flex: 1 1 190px; }
.contact-card__actions .btn--ghost { background: var(--paper); }

.contact-next {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.contact-next ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px clamp(20px, 3vw, 40px);
  margin-top: 22px;
}
.contact-next li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.contact-next li span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.contact-next li p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* 404 */
.notfound {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding-block: clamp(56px, 8vw, 120px);
}
.notfound h1 { max-width: 24ch; }
.notfound .lead { margin-top: 20px; }
.notfound .btn { margin-top: 32px; }

/* 10. Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  padding-top: clamp(52px, 6vw, 76px);
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
.footer-brand .logo { color: var(--cream); font-size: 17px; }
.footer-brand .logo:hover { color: var(--cream); }
.footer-tagline {
  margin-top: 20px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.012em;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.4;
  color: var(--cream);
  max-width: 22ch;
}
.footer-brand p.footer-desc {
  margin-top: 14px;
  max-width: 32ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}
.footer-col h3 {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--cream); }
.footer-col address {
  font-style: normal;
  display: grid;
  gap: 9px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: var(--cream); }

/* 11. Motion & responsive ------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hero__meta { gap: 6px 15px; font-size: 9.5px; }
  .hero__meta li { gap: 15px; }
  .hero__meta li + li::before { display: none; }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .step:nth-child(4) { border-left: 0; padding-left: 0; }
  .step:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .step:nth-child(5) { padding-top: 26px; }
}

@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero__content {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    min-height: 0;
    padding-top: clamp(44px, 8vw, 64px);
    padding-bottom: clamp(36px, 6vw, 52px);
  }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; order: 2; }
  .hero__meta { margin-top: 34px; }

  .section-head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .about-media::after { display: none; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3n + 2),
  .service:nth-child(3n) { border-left: 0; padding-left: 0; }
  .service:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 26px; }
  .service:nth-child(2n) .service__arrow { right: 0; }
  .service:nth-child(3n) .service__arrow { right: 22px; }
  .service:nth-child(2n) .service__arrow { right: 0; }

  .industries-grid { grid-template-columns: 1fr; }
  .ind-media { display: none; }
  .ind-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; }
  .ind-item img { display: block; width: 64px; height: 48px; object-fit: cover; grid-row: 1; }
  .ind-item h3 { grid-column: 2; }
  .ind-item__num { grid-column: 3; margin-left: 0; }
  .ind-item__arrow { display: none; }
  .ind-item.is-active { padding-left: 0; }

  .cta { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }

  .contact-strip__grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-strip__grid .contact-block { display: grid; grid-template-columns: 130px 1fr; align-items: baseline; gap: 8px; }
  .contact-block__label { margin-bottom: 0; }

  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .split--media .split__media { order: 0; }

  .principles { grid-template-columns: 1fr; }
  .principle { padding: 24px 0; border-bottom: 1px solid var(--line); }
  .principle + .principle { border-left: 0; padding-left: 0; }

  .ind-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-card--note { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .service-row { grid-template-columns: 48px 1fr; }
  .service-row__body { grid-column: 2; }

  .step-row { grid-template-columns: 64px 1fr; }
  .step-row__aside { grid-column: 2; margin-top: 4px; }

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

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  h1 { font-size: clamp(28px, 7.6vw, 36px); }
  .hero h1 { font-size: clamp(28px, 7.6vw, 34px); max-width: 18ch; }
  .hero__media { aspect-ratio: 5 / 4; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .hero__meta { gap: 6px 10px; font-size: 9px; letter-spacing: 0.055em; }
  .hero__meta li { gap: 10px; }
  .hero__meta li + li::before { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service,
  .service:nth-child(2n) { border-left: 0; padding: 26px 0 30px; }
  .service__arrow { display: none; }

  .process-grid { grid-template-columns: 1fr; row-gap: 0; }
  .step { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.16); padding: 0 0 26px 22px; position: relative; }
  .step + .step { border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 22px; }
  .step:first-child { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .step__num { position: relative; }
  .step__num::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid var(--accent-light);
  }
  .step h3 { margin-top: 10px; }

  .contact-strip__grid .contact-block { grid-template-columns: 1fr; gap: 4px; }


  .ind-cards { grid-template-columns: 1fr; }
  .ind-card--note { grid-column: span 1; }
  .contact-next ol { grid-template-columns: 1fr; }
  .contact-card__actions .btn { flex: 1 1 100%; }
  .scope-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .service-row__body { grid-column: 1; }
  .service-row__num { padding-top: 0; }

  .step-row { grid-template-columns: 1fr; gap: 10px; }
  .step-row__aside { grid-column: 1; margin-top: 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { animation: none; transform: none; }
}
