/* =========================================================
   Altiora Solutions LLC — Stylesheet
   Palette: Navy, White, Charcoal, Gold
   ========================================================= */

:root {
  /* Brand palette — sampled from the Altiora Solutions phoenix logo */
  --plum-900: #1F1219;
  --plum-800: #2E1C28;
  --plum-700: #402838;   /* logo wordmark plum */
  --plum-600: #5C3A51;
  --charcoal: #2B2228;
  --charcoal-soft: #5B5058;
  --gray-100: #FAF5F0;
  --gray-200: #EEE4DC;
  --gray-300: #DACBC1;
  --white: #FFFFFF;
  --cream: #F6EADE;
  --flame: #D88028;      /* logo amber */
  --flame-light: #F2A54A;
  --flame-dark: #B04010; /* logo burnt orange */
  --rust: #682818;       /* logo deep rust */
  --peach: #F8C8A0;
  --error: #B42318;
  --success: #1E7B4A;

  --font-head: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(46, 28, 40, 0.07);
  --shadow-md: 0 10px 30px rgba(46, 28, 40, 0.12);
  --shadow-lg: 0 20px 50px rgba(46, 28, 40, 0.22);
  --header-h: 76px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--plum-800);
  line-height: 1.05;
  margin: 0 0 0.5em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1em; }

a { color: var(--plum-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--flame-dark); }

ul, ol { margin: 0; padding: 0; }

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

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

.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;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 1000;
  background: var(--flame);
  color: var(--plum-900);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: var(--plum-900); }

.accent { color: var(--flame); }

.ph {
  color: var(--flame-dark);
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-flame {
  background: var(--flame);
  color: var(--plum-900);
  box-shadow: 0 6px 18px rgba(216, 128, 40, 0.30);
}
.btn-flame:hover { background: var(--flame-light); color: var(--plum-900); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover { border-color: var(--flame); color: var(--flame-light); }

.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.65; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(46, 28, 40, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(31, 18, 25, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand:hover { color: var(--white); }

.brand-mark { width: 46px; height: auto; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(216, 128, 40, 0.25)); }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.95;
}
.brand-sub {
  font-size: 0.56rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--peach);
  margin-top: 4px;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-link.nav-cta {
  margin-left: 8px;
  border: 2px solid var(--flame);
  color: var(--flame-light);
  padding: 8px 18px;
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover,
.nav-link.nav-cta.active { background: var(--flame); color: var(--plum-900); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  color: var(--white);
  background: var(--plum-800);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(216, 128, 40, 0.18), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(104, 40, 24, 0.55), transparent 60%),
    linear-gradient(135deg, var(--plum-900) 0%, var(--plum-800) 50%, var(--plum-700) 100%);
}
.hero-bg::before {
  /* subtle grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero-bg::after {
  /* ascending peak motif */
  content: "";
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: min(62vw, 720px);
  aspect-ratio: 1.2 / 1;
  background:
    linear-gradient(to top right, transparent 49.6%, rgba(216, 128, 40, 0.22) 50%, transparent 50.6%),
    linear-gradient(to top left, transparent 49.6%, rgba(216, 128, 40, 0.22) 50%, transparent 50.6%);
  background-size: 50% 100%;
  background-position: left bottom, right bottom;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--flame-light);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--flame);
  margin-bottom: 26px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.hero-points li {
  position: relative;
  padding-left: 16px;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 7px; height: 7px;
  background: var(--flame);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- Value strip ---------- */
.value-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.value-item {
  padding: 40px 32px;
  border-right: 1px solid var(--gray-200);
}
.value-item:last-child { border-right: 0; }
.value-title {
  font-size: 1.75rem;
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
}
.value-title::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em; bottom: 0.2em;
  width: 4px;
  background: var(--flame);
  border-radius: 2px;
}
.value-item p { margin: 0; color: var(--charcoal-soft); font-size: 0.98rem; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--flame-dark);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  position: relative;
}
.section-header {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-header .section-title::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  background: var(--flame);
  margin: 22px auto 0;
}
.section-intro { color: var(--charcoal-soft); font-size: 1.1rem; margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { color: var(--charcoal-soft); }

.about-panel {
  background: var(--plum-800);
  color: var(--white);
  padding: 44px 38px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--flame), var(--flame-light));
}
.about-panel h3 { color: var(--white); font-size: 2rem; margin-bottom: 28px; }

.approach-list { list-style: none; display: grid; gap: 22px; }
.approach-list li { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--flame);
  min-width: 40px;
  line-height: 1.3;
}
.approach-list strong { color: var(--white); font-size: 1.05rem; }
.approach-list p { margin: 2px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }

/* ---------- Services ---------- */
.services { background: var(--gray-100); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: "";
  position: absolute;
  left: 32px; right: 32px; bottom: 0;
  height: 3px;
  background: var(--flame);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
.service-card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 58px; height: 58px;
  border-radius: 12px;
  background: var(--plum-800);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.card-icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--flame);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 { font-size: 1.75rem; margin-bottom: 12px; }
.service-card > p { color: var(--charcoal-soft); font-size: 0.98rem; }

.card-list {
  list-style: none;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
  display: grid;
  gap: 8px;
}
.card-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  color: var(--charcoal);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.7em;
  width: 6px; height: 6px;
  background: var(--flame);
  transform: rotate(45deg);
}

.service-card-cta {
  background: linear-gradient(145deg, var(--plum-800), var(--plum-700));
  border-color: transparent;
  justify-content: center;
}
.service-card-cta h3 { color: var(--white); }
.service-card-cta p { color: rgba(255, 255, 255, 0.78); margin-bottom: 26px; }
.service-card-cta .btn { align-self: flex-start; }

/* ---------- Capabilities ---------- */
.capabilities {
  background: var(--plum-900);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}
.section-header-light .section-title,
.capabilities h3 { color: var(--white); }
.section-header-light .section-kicker { color: var(--flame-light); }
.section-header-light .section-intro { color: rgba(255, 255, 255, 0.72); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 44px;
}
.cap-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
}
.cap-block h3 {
  font-size: 1.65rem;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(216, 128, 40, 0.4);
}

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.96rem;
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--flame) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231F1219' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.data-list { margin: 0; display: grid; gap: 14px; }
.data-list div {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.data-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.data-list dt {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--flame-light);
}
.data-list dd { margin: 0; color: var(--white); font-size: 0.97rem; }
.capabilities .ph { color: var(--flame-light); opacity: 0.85; }

.industries {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.industries h3 { font-size: 1.6rem; margin-bottom: 20px; }
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tag-list li {
  padding: 9px 20px;
  border: 1px solid rgba(216, 128, 40, 0.5);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--white);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--flame-dark), var(--flame) 55%, var(--flame-light));
  padding: 70px 0;
  text-align: center;
}
.cta-inner h2 { color: var(--plum-900); font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 10px; }
.cta-inner p { color: var(--plum-800); font-size: 1.1rem; margin-bottom: 28px; }
.cta-band .btn-flame { background: var(--plum-800); color: var(--white); box-shadow: 0 8px 22px rgba(31, 18, 25, 0.3); }
.cta-band .btn-flame:hover { background: var(--plum-900); color: var(--flame-light); }

/* ---------- Contact ---------- */
.contact-inner .form-card {
  max-width: 780px;
  margin: 0 auto;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--plum-800);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--plum-800);
  margin-bottom: 7px;
}
.req { color: var(--error); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem; /* 16px prevents iOS zoom */
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23402838' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--plum-600);
  box-shadow: 0 0 0 4px rgba(216, 128, 40, 0.3);
}

.field.has-error input,
.field.has-error textarea { border-color: var(--error); }
.field-error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 6px 0 0;
  min-height: 0;
}
.field-error:empty { display: none; }

.form-note { font-size: 0.85rem; color: var(--charcoal-soft); margin-bottom: 18px; }

.form-status { margin: 16px 0 0; font-weight: 600; font-size: 0.97rem; }
.form-status:empty { display: none; }
.form-status.success {
  color: var(--success);
  background: #E9F6EF;
  padding: 12px 16px;
  border-radius: 6px;
}
.form-status.error {
  color: var(--error);
  background: #FDECEA;
  padding: 12px 16px;
  border-radius: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum-900);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 70px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
}
.footer-brand p { margin-top: 18px; max-width: 340px; }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--flame-light);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--flame-light); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.87rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 44px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--plum-900);
    padding: 28px 24px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .primary-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link {
    display: block;
    font-size: 1.15rem;
    padding: 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }
  .nav-link::after { left: 8px; right: auto; width: 40px; bottom: 8px; }
  .nav-link.nav-cta {
    margin: 22px 0 0;
    text-align: center;
    border-radius: 6px;
    padding: 14px;
  }

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

  .value-grid { grid-template-columns: 1fr; }
  .value-item { border-right: 0; border-bottom: 1px solid var(--gray-200); padding: 28px 0; }
  .value-item:last-child { border-bottom: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .section { padding: 84px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .card-grid,
  .cap-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 30px 22px; }
  .about-panel { padding: 34px 26px; }
  .service-card { padding: 30px 24px; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-bg::after { width: 110vw; right: -30%; opacity: 0.5; }

  .section { padding: 72px 0; }
  .section-header { margin-bottom: 44px; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .brand-name { font-size: 1.45rem; }
  .brand-sub { font-size: 0.5rem; letter-spacing: 0.18em; }
  .brand-mark { width: 40px; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .contact-form, .skip-link { display: none !important; }
  .hero { min-height: auto; padding: 20px 0; background: none; color: #000; }
  .hero h1, .hero-lead { color: #000; }
  .hero-bg { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .film { display: none !important; }
}

/* =========================================================
   Motion effects (brand film, text reveals, sheen, thread)
   ========================================================= */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--flame-dark), var(--flame), var(--flame-light));
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 10px rgba(242, 165, 74, 0.6);
}

/* ---------- Hero two-column layout ---------- */
.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-content { max-width: none; }
.hero h1 { font-size: clamp(2.9rem, 5.6vw, 4.7rem); letter-spacing: 0.015em; }

/* ---------- Brand film panel ---------- */
.film {
  --film-dur: 6000ms;
  --teal: #F2A54A;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #3B2232 0%, var(--plum-900) 70%);
  border: 1px solid rgba(216, 128, 40, 0.28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  isolation: isolate;
  container-type: inline-size;
}
.film-stage { position: absolute; inset: 0 0 52px 0; }

.film-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 165, 74, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 165, 74, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0s;
}
.film.paused .scene *,
.film.paused .scene *::before,
.film.paused .scene *::after,
.film.paused .film-progress span { animation-play-state: paused !important; }

.scene-tag {
  position: absolute;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: min(0.68rem, 2.2cqw);
  letter-spacing: 0.18em;
  color: rgba(242, 165, 74, 0.7);
}
.tag-tl { top: 18px; left: 20px; }

/* Shared scene type */
.scene-title {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  translate: 0 -50%;
  margin: 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: min(4.2rem, 13cqw);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(31, 18, 25, 0.9);
  opacity: 0;
  z-index: 2;
}
.scene-title small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: min(0.8rem, 2.5cqw);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--peach);
  text-shadow: none;
}
.scene-title-top { top: 14%; translate: 0 0; font-size: min(3.2rem, 10cqw); }
.scene-svg {
  position: absolute;
  left: 5%; right: 5%;
  bottom: 4%;
  width: 90%;
  height: 62%;
  overflow: visible;
}

/* Scene 1 — the 8 wastes */
.waste-field { position: absolute; inset: 0; }
.wchip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  rotate: var(--r);
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 0.85em;
  font-size: min(0.78rem, 2.6cqw);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  background: rgba(104, 40, 24, 0.92);
  border: 1px solid rgba(224, 96, 42, 0.65);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
}
.wchip::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 1.4em; height: 1.4em;
  border-radius: 50%;
  background: #E0602A;
  color: var(--plum-900);
  font-weight: 800;
  font-size: 0.85em;
}
.scene-waste.is-active .wchip {
  animation:
    scatterIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--k) * 0.12s + 0.15s) both,
    jitter 1.6s ease-in-out calc(var(--k) * 0.12s + 0.8s) infinite alternate;
}
.scene-waste.is-active .scene-title { animation: punchIn 0.7s var(--ease) 1.4s both, flicker 2.4s linear 2.1s infinite; }
@keyframes scatterIn {
  from { opacity: 0; transform: scale(0.2); }
  to   { opacity: 1; transform: none; }
}
@keyframes jitter {
  from { opacity: 1; transform: translate(0, 0); }
  to   { opacity: 1; transform: translate(3px, -5px); }
}
@keyframes flicker {
  0%, 100% { color: var(--cream); }
  48% { color: var(--cream); }
  50% { color: #E0602A; }
  54% { color: var(--cream); }
}

/* Scene 2 — scan and eliminate */
.scene-elim .wchip { opacity: 1; }
.wchip::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%;
  top: 50%;
  height: 2px;
  background: var(--flame-light);
  box-shadow: 0 0 8px rgba(242, 165, 74, 0.9);
  transform: scaleX(0);
  transform-origin: left;
}
.scene-elim.is-active .wchip { animation: strikeOut 1s var(--ease) var(--t) both; }
.scene-elim.is-active .wchip::after { animation: strike 0.25s ease-out var(--t) forwards; }
@keyframes strike { to { transform: scaleX(1); } }
@keyframes strikeOut {
  0%, 35% { opacity: 1; transform: none; filter: none; }
  100%    { opacity: 0; transform: translateY(46px) rotate(14deg) scale(0.8); filter: blur(3px); }
}
.scan {
  position: absolute;
  top: 0; bottom: 0;
  left: -20%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(242, 165, 74, 0.28) 70%, rgba(255, 225, 176, 0.9) 98%, transparent);
  opacity: 0;
  z-index: 1;
}
.scene-elim.is-active .scan { animation: scan 1.8s ease-in-out 0.2s both; }
@keyframes scan {
  0%   { left: -20%; opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}
.scene-elim.is-active .scene-title { animation: punchIn 0.7s var(--ease) 2.3s both; }

/* Scene 3 — streamline */
.flow .tangle {
  fill: none;
  stroke: #E0602A;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  opacity: 0.9;
}
.scene-flow.is-active .tangle { animation: tangleLife 2.1s var(--ease) 0.5s both; }
@keyframes tangleLife {
  0%   { stroke-dashoffset: 900; opacity: 0.9; }
  50%  { stroke-dashoffset: 0; opacity: 0.9; }
  70%  { stroke-dashoffset: 0; opacity: 0.9; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.flow-line {
  stroke: var(--flame);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  filter: drop-shadow(0 0 6px rgba(242, 165, 74, 0.8));
}
.scene-flow.is-active .flow-line { animation: draw 0.8s var(--ease) 2.3s forwards; }
.node { transform-box: fill-box; transform-origin: center; opacity: 0; }
.node circle { fill: var(--plum-800); stroke: var(--flame-light); stroke-width: 3; }
.node text {
  fill: var(--cream);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-anchor: middle;
}
.scene-flow.is-active .node { animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(2.4s + var(--k) * 0.18s) both; }
.pulse { fill: #FFE1B0; filter: drop-shadow(0 0 6px #F2A54A); opacity: 0; }
.scene-flow.is-active .pulse { animation: travel 1.5s linear calc(3.3s + var(--k) * 0.5s) infinite; }
@keyframes travel {
  0%   { transform: translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(300px); opacity: 0; }
}
.scene-flow.is-active .scene-title { animation: punchIn 0.7s var(--ease) 0.1s both; }

/* Scene 4 — profitability */
.chart .axis { stroke: rgba(246, 234, 222, 0.25); stroke-width: 1.5; }
.chart .bar {
  fill: rgba(176, 64, 16, 0.55);
  stroke: rgba(224, 96, 42, 0.7);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
}
.scene-profit.is-active .bar { animation: grow 0.6s var(--ease) calc(0.6s + var(--k) * 0.15s) forwards; }
@keyframes grow { to { transform: scaleY(1); } }
.chart .area { opacity: 0; }
.scene-profit.is-active .area { animation: fadeIn 0.8s ease 2.1s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.chart .profit {
  fill: none;
  stroke: var(--flame-light);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  filter: drop-shadow(0 0 6px rgba(242, 165, 74, 0.9));
}
.scene-profit.is-active .profit { animation: draw 1.1s var(--ease) 1.4s forwards; }
.chart .end {
  fill: #FFE1B0;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}
.scene-profit.is-active .end { animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 2.45s both, glow 1.4s ease-in-out 2.9s infinite alternate; }
@keyframes glow { to { filter: drop-shadow(0 0 10px #F2A54A); } }
.scene-profit .chart { height: 52%; bottom: 12%; }
.scene-profit.is-active .scene-title { animation: punchIn 0.7s var(--ease) 0.1s both; }
.sweep-text { position: relative; display: inline-block; overflow: hidden; padding: 0 0.1em; }
.sweep-text::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-18deg);
}
.scene-profit.is-active .sweep-text::after { animation: sweep 1.1s var(--ease) 2.8s both; }
.up { color: var(--flame-light); font-size: 0.6em; vertical-align: 0.3em; }
.legend {
  position: absolute;
  left: 0; right: 0;
  bottom: 3%;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: min(0.72rem, 2.3cqw);
  font-weight: 600;
  letter-spacing: 0.1em;
  z-index: 2;
  text-transform: uppercase;
  color: rgba(246, 234, 222, 0.8);
  opacity: 0;
}
.scene-profit.is-active .legend { animation: fadeUp 0.6s var(--ease) 2.7s both; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 12px; height: 12px; border-radius: 2px; }
.lg-cost::before { background: rgba(176, 64, 16, 0.7); border: 1px solid #E0602A; }
.lg-margin::before { background: var(--flame-light); height: 4px !important; border-radius: 2px; }

/* Shared keyframes */
@keyframes punchIn {
  0%   { opacity: 0; transform: scale(1.5); filter: blur(10px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes sweep {
  0%   { left: -60%; }
  100% { left: 130%; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop {
  0%   { opacity: 0; transform: scale(0.3); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes spin { to { rotate: 360deg; } }

/* Scene 5 — logo reveal */
.scene-logo { align-content: center; gap: 4px; }
.mark-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: 22px 0 36px;
}
.tick-ring {
  position: absolute;
  width: 170%;
  aspect-ratio: 1;
  top: 50%; left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(242, 165, 74, 0.7) 0deg 1.5deg, transparent 1.5deg 9deg);
  -webkit-mask-image: radial-gradient(circle, transparent 60%, #000 61%, #000 70%, transparent 71%);
  mask-image: radial-gradient(circle, transparent 60%, #000 61%, #000 70%, transparent 71%);
  opacity: 0;
}
.is-active .tick-ring { animation: ringIn 1.2s var(--ease) both, spin 24s linear 1.2s infinite; }
@keyframes ringIn {
  from { opacity: 0; transform: scale(1.5) rotate(-60deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
.film-mark {
  width: min(112px, 21cqw);
  height: auto;
  position: relative;
  z-index: 1;
  opacity: 0;
  filter: drop-shadow(0 0 22px rgba(216, 128, 40, 0.45));
}
.is-active .film-mark { animation: riseIn 1.2s var(--ease) 0.3s both; }
@keyframes riseIn {
  0%   { opacity: 0; transform: translateY(30px) scale(0.75); filter: blur(10px) drop-shadow(0 0 0 rgba(216, 128, 40, 0)); }
  60%  { opacity: 1; filter: blur(0) drop-shadow(0 0 40px rgba(242, 165, 74, 0.8)); }
  100% { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 22px rgba(216, 128, 40, 0.45)); }
}
.film-word {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: min(3.6rem, 9.5cqw);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0;
}
.film-word span { color: var(--flame); }
.is-active .film-word { animation: trackIn 1s var(--ease) 1.3s both; }
@keyframes trackIn {
  from { opacity: 0; letter-spacing: 0.5em; filter: blur(6px); }
  to   { opacity: 1; letter-spacing: 0.04em; filter: blur(0); }
}
.film-sub {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--flame-light);
  opacity: 0;
}
.is-active .film-sub { animation: fadeUp 0.7s var(--ease) 2s both; }

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

/* Film controls */
.film-ui {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(31, 18, 25, 0.7);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.film-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-label-brand { color: var(--flame-light); font-weight: 700; }
.film-count { color: rgba(255, 255, 255, 0.5); }
.film-btn {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.film-btn:hover { border-color: var(--flame); color: var(--flame-light); }
.film-btn svg { width: 12px; height: 12px; fill: currentColor; }
.film-btn .i-play { display: none; }
.film-btn[aria-pressed="true"] .i-play { display: block; }
.film-btn[aria-pressed="true"] .i-pause { display: none; }

.film-progress {
  position: absolute;
  left: 0; right: 0; bottom: 52px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}
.film-progress span {
  display: block;
  height: 100%;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
}
.film-progress span.run { animation: filmBar var(--film-dur) linear forwards; }
@keyframes filmBar { to { transform: scaleX(1); } }

/* ---------- Blur-in headline reveal ---------- */
.js .split-ready .w {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(0.35em);
  transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 120ms);
}
.js .is-visible .split-ready .w,
.js .split-ready.is-visible .w { opacity: 1; filter: blur(0); transform: none; }

/* ---------- Light sweep on cards ---------- */
.service-card,
.cap-block { overflow: hidden; position: relative; }
.service-card::before,
.cap-block::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 60%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: translateX(-170%) skewX(-15deg);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.cap-block::before,
.service-card-cta::before { background: linear-gradient(105deg, transparent 20%, rgba(242, 165, 74, 0.18) 50%, transparent 80%); }
.service-card:hover::before,
.cap-block:hover::before { transform: translateX(260%) skewX(-15deg); }

/* ---------- Approach thread ---------- */
.approach-list { position: relative; }
.approach-list::before {
  content: "";
  position: absolute;
  left: 19px; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(var(--flame), rgba(216, 128, 40, 0.15));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--ease) 0.3s;
}
.about-panel.is-visible .approach-list::before { transform: scaleY(1); }
.step-num {
  position: relative;
  z-index: 1;
  background: var(--plum-800);
  text-align: center;
  padding: 2px 0;
}
.js .approach-list li {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .about-panel.is-visible .approach-list li { opacity: 1; transform: none; }
.js .about-panel.is-visible .approach-list li:nth-child(1) { transition-delay: 0.35s; }
.js .about-panel.is-visible .approach-list li:nth-child(2) { transition-delay: 0.75s; }
.js .about-panel.is-visible .approach-list li:nth-child(3) { transition-delay: 1.15s; }
.js .about-panel.is-visible .approach-list li:nth-child(4) { transition-delay: 1.55s; }

/* ---------- Phoenix embers ---------- */
.embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ember {
  position: absolute;
  bottom: -12px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #FFE1B0 0%, #F2A54A 35%, #B04010 65%, transparent 72%);
  box-shadow: 0 0 calc(var(--s) * 2) rgba(242, 165, 74, 0.55);
  opacity: 0;
  animation: emberRise var(--d) linear var(--delay) infinite;
}
@keyframes emberRise {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  10%  { opacity: 0.95; }
  65%  { opacity: 0.55; }
  100% { transform: translate(var(--drift), calc(var(--rise) * -1)) scale(0.4); opacity: 0; }
}
.embers-film { z-index: 0; }
.scene-logo .mark-wrap,
.scene-logo .film-word,
.scene-logo .film-sub { z-index: 1; }

/* Brand accents */
.hero .accent { color: var(--flame-light); }
.hero .accent .w {
  background: linear-gradient(90deg, var(--flame-light), var(--flame) 55%, #E0602A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-name { color: var(--cream); }

/* ---------- Responsive for motion additions ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .film { max-width: 640px; }
  .hero { min-height: auto; }
}
@media (max-width: 640px) {
  .film { aspect-ratio: 4 / 3.6; border-radius: 14px; }
  .film-count { display: none; }
  .bubble { padding: 5px 9px; }
  .b1 { left: 4%; } .b2 { right: 4%; } .b3 { left: 5%; } .b4 { right: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  .film-progress span.run { animation: none; }
  .js .split-ready .w { opacity: 1; filter: none; transform: none; }
  .js .approach-list li { opacity: 1; transform: none; }
  .approach-list::before { transform: none; }
  .service-card::before, .cap-block::before { display: none; }
  .ember { display: none; }
  .is-active .tick-ring, .is-active .wchip, .is-active .end { animation: none !important; }
  .scene-waste .wchip { opacity: 1; }
  .scene-elim .wchip { opacity: 0.3; }
  .scene-elim .wchip::after { transform: scaleX(1); }
  .pulse { display: none; }
  .is-active .tick-ring { opacity: 1; }
}
