:root {
  color-scheme: dark;
  --bg: #080b13;
  --bg-soft: #0c111c;
  --surface: #101522;
  --surface-2: #171d2c;
  --text: #f6f7fb;
  --muted: #aab2c3;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #45c4ff;
  --blue-deep: #367dff;
  --violet: #8a5cff;
  --pink: #ec4899;
  --gold: #f6bd55;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  background: #fff;
  color: #06090f;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 50%;
  width: min(calc(100% - 48px), var(--max));
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
  transition: width 0.25s ease, padding 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
}

.site-header.scrolled {
  top: 10px;
  width: min(calc(100% - 28px), calc(var(--max) + 24px));
  min-height: 68px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 11, 19, 0.9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(69, 196, 255, 0.7);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(69, 196, 255, 0.2), rgba(236, 72, 153, 0.25));
  color: var(--blue);
  font-weight: 900;
  letter-spacing: -1px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.22em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: #dbe0ea;
  transition: color 0.2s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav .active {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav .active::after {
  transform: scaleX(1);
}

.main-nav .nav-cta {
  padding: 9px 17px;
  border: 1px solid rgba(69, 196, 255, 0.65);
  border-radius: 999px;
  color: var(--blue);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 820px;
  isolation: isolate;
  overflow: hidden;
  background-color: #090d16;
  background-image:
    linear-gradient(90deg, rgba(5, 8, 14, 0.98) 0%, rgba(5, 8, 14, 0.9) 33%, rgba(5, 8, 14, 0.38) 63%, rgba(5, 8, 14, 0.12) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%),
    url("./assets/stage-hero.png");
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 22% 48%, rgba(69, 196, 255, 0.12), transparent 24%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 100% 64px;
  mask-image: linear-gradient(to right, #000, transparent 60%);
}

.hero-content {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding-top: 190px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.eyebrow span {
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--blue);
}

h1 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(48px, 5.6vw, 80px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(90deg, #fff 0%, #a1e3ff 48%, #d8c5ff 88%);
  background-clip: text;
}

.hero-copy {
  margin: 26px 0 0;
  color: #d2d8e4;
  font-size: 19px;
  letter-spacing: 0.1em;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 36px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 134px;
  min-height: 50px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.main-nav a:focus-visible,
.equipment-tabs button:focus-visible {
  outline: 3px solid rgba(69, 196, 255, 0.55);
  outline-offset: 3px;
}

.button-primary {
  background: linear-gradient(135deg, #60d1ff, #4d8dff);
  box-shadow: 0 12px 35px rgba(54, 125, 255, 0.24);
  color: #07111d;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  backdrop-filter: blur(8px);
}

.trust-row {
  display: flex;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  min-width: 174px;
  padding: 0 30px;
  border-left: 1px solid var(--line);
}

.trust-row li:first-child {
  padding-left: 0;
  border-left: 0;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  font-size: 16px;
}

.trust-row span {
  color: var(--muted);
  font-size: 13px;
}

.hero-image-note {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 34px;
  margin: 0;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(8, 11, 19, 0.72);
  color: #cbd2df;
  font-size: 12px;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd2df;
  font-size: 12px;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 9px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
  transform: rotate(45deg);
}

.section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 54px;
  margin-bottom: 52px;
}

.section-heading > div {
  flex: 1;
}

.section-heading h2,
.advantage-copy h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 470px;
  margin: 0 0 6px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 278px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(69, 196, 255, 0.15);
  border-radius: 50%;
}

.service-card:hover {
  border-color: rgba(69, 196, 255, 0.36);
  background: #121a29;
  transform: translateY(-4px);
}

.service-card.featured {
  border-color: rgba(69, 196, 255, 0.32);
  background: linear-gradient(145deg, rgba(69, 196, 255, 0.11), rgba(138, 92, 255, 0.11));
}

.service-no {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service-card h3 {
  margin: 48px 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-tag {
  display: block;
  margin-top: 24px;
  color: #dce2ec;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.content-note {
  margin: 20px 0 0;
  color: #7f889b;
  font-size: 13px;
  text-align: right;
}

.cases-section {
  padding-top: 74px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  grid-column: span 4;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.case-card-large {
  grid-column: span 8;
}

.case-card:hover {
  border-color: rgba(69, 196, 255, 0.34);
  transform: translateY(-4px);
}

.case-visual {
  position: relative;
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.case-card-large .case-visual {
  min-height: 340px;
}

.case-visual::before,
.case-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.case-visual::before {
  inset: 18% 12%;
}

.case-visual::after {
  width: 55%;
  height: 220%;
  transform: rotate(34deg);
  background: rgba(255, 255, 255, 0.025);
}

.case-visual span,
.case-visual small {
  position: relative;
  z-index: 2;
}

.case-visual span {
  font-size: 15px;
  font-weight: 700;
}

.case-visual small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.57);
}

.visual-blue { background: linear-gradient(145deg, #142b47, #1f4c7e 52%, #20203d); }
.visual-violet { background: linear-gradient(145deg, #1a1734, #413077 58%, #1b263f); }
.visual-gold { background: linear-gradient(145deg, #2d2518, #725724 55%, #242330); }
.visual-pink { background: linear-gradient(145deg, #2d1628, #74335e 58%, #20263c); }
.visual-cyan { background: linear-gradient(145deg, #102c33, #1e6874 58%, #1b2740); }
.visual-slate { background: linear-gradient(145deg, #171d29, #384459 58%, #222039); }

.case-photo {
  overflow: hidden;
  padding: 0;
  background: #111827;
}

.case-photo::before,
.case-photo::after {
  display: none;
}

.case-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
  transition: transform 0.45s ease;
}

.case-photo-button {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.case-card:hover .case-photo img {
  transform: scale(1.04);
}

.image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 24px;
  background: rgba(2, 7, 18, 0.94);
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox-image {
  display: block;
  max-width: min(1200px, 94vw);
  max-height: 86vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

body.image-lightbox-open {
  overflow: hidden;
}

.case-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 24px;
}

.case-type,
.equipment-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.case-body h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.4;
}

.case-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.case-body a {
  grid-column: 1 / -1;
  color: #dce2ec;
  font-size: 14px;
}

.case-body a span {
  color: var(--blue);
}

/* 二一九卡片：电脑端让项目名称靠右、项目说明靠左。 */
.case-card-featured .case-body > div {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.case-card-featured .case-body > p {
  grid-column: 1;
  grid-row: 1;
}

.advantage-section {
  margin: 56px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 50%, rgba(69, 196, 255, 0.12), transparent 28%),
    linear-gradient(120deg, #0b111c, #111626);
}

.advantage-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 86px;
  align-items: center;
}

.advantage-copy > p:not(.eyebrow) {
  max-width: 460px;
  margin: 28px 0 22px;
  color: var(--muted);
}

.text-link {
  color: #fff;
  font-weight: 700;
}

.text-link span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 6px;
  border: 1px solid rgba(69, 196, 255, 0.35);
  border-radius: 50%;
  color: var(--blue);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.advantage-card {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.advantage-card strong {
  color: var(--blue);
  font-size: 13px;
}

.advantage-card h3 {
  margin: 44px 0 8px;
  font-size: 21px;
}

.advantage-card p {
  margin: 0;
  color: var(--muted);
}

.equipment-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.equipment-tabs {
  display: flex;
  padding: 0 26px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.equipment-tabs button {
  min-width: max-content;
  padding: 19px 22px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.equipment-tabs button[aria-selected="true"] {
  border-bottom-color: var(--blue);
  color: #fff;
}

.equipment-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 440px;
  padding: 52px;
}

.equipment-panel[hidden] {
  display: none;
}

.equipment-panel h3 {
  margin: 8px 0 18px;
  font-size: 36px;
}

.equipment-panel p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.equipment-panel ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.equipment-panel li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: #dce2ec;
}

.equipment-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(69, 196, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(rgba(69, 196, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 196, 255, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #0c1b2a, #17142e);
  background-size: 28px 28px, 28px 28px, auto;
}

.equipment-visual span {
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.equipment-visual i {
  position: absolute;
  width: 70%;
  height: 42%;
  border: 1px solid rgba(69, 196, 255, 0.4);
  box-shadow: inset 0 0 45px rgba(69, 196, 255, 0.08);
}

.equipment-visual b {
  position: absolute;
  bottom: 22px;
  font-size: 13px;
  font-weight: 500;
  color: #b4bece;
}

.process-section {
  padding-top: 70px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  position: relative;
  min-height: 250px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.process-list li:last-child {
  border-right: 0;
}

.process-list li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 23px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px var(--blue);
}

.process-list > li > span {
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.process-list h3 {
  margin: 72px 0 8px;
  font-size: 20px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0b0f19;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 84px;
  align-items: center;
}

.about-visual {
  min-height: 520px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(69, 196, 255, 0.14), transparent 38%),
    linear-gradient(320deg, rgba(236, 72, 153, 0.13), transparent 36%),
    #111624;
}

.about-visual > img {
  display: block;
  width: 100%;
  min-height: 482px;
  border-radius: 15px;
  object-fit: cover;
}

.about-visual > div {
  display: flex;
  height: 100%;
  min-height: 482px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  color: #e7ebf3;
  text-align: center;
}

.about-visual small {
  max-width: 300px;
  margin-top: 6px;
  color: var(--muted);
}

.about-copy > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  position: relative;
  padding: 13px 14px 13px 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px;
}

.about-points li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.contact-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr auto;
  gap: 46px;
  align-items: end;
  padding: 54px;
  border: 1px solid rgba(69, 196, 255, 0.25);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 30%, rgba(138, 92, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #111b2a, #101321);
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  font-size: clamp(32px, 3.4vw, 46px);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
}

.contact-list {
  margin: 0;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  color: #fff;
}

.contact-actions {
  flex-direction: column;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #060910;
}

.footer-inner,
.footer-bottom {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 58px;
  padding: 70px 0 52px;
}

.footer-inner h3 {
  margin: 0 0 15px;
  font-size: 15px;
}

.footer-inner p {
  margin: 0;
  color: #8f99ab;
  font-size: 14px;
  line-height: 2;
}

.footer-inner a:hover {
  color: var(--blue);
}

.footer-brand > p {
  margin-top: 22px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: #697386;
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 70;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid rgba(69, 196, 255, 0.32);
  border-radius: 10px;
  background: #121a28;
  box-shadow: var(--shadow);
  color: #e8edf5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 18px;
  }

  .contact-card {
    grid-template-columns: 1fr 0.8fr;
  }

  .contact-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

@media (max-width: 900px) {
  .site-header {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header.scrolled {
    width: calc(100% - 20px);
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle > span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 22px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 11, 19, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 4px;
  }

  .main-nav .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .main-nav a:not(.nav-cta)::after {
    display: none;
  }

  .hero {
    min-height: 830px;
    background-position: 58% center;
  }

  .hero-content {
    width: min(calc(100% - 32px), var(--max));
    padding-top: 158px;
  }

  .hero-image-note {
    right: 16px;
    bottom: 22px;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    width: min(calc(100% - 32px), var(--max));
    padding: 88px 0;
  }

  .section-heading {
    display: block;
  }

  .section-intro {
    margin-top: 22px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card,
  .case-card-large {
    grid-column: span 6;
  }

  .advantage-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .equipment-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px solid var(--line);
  }

  .process-list li {
    border-bottom: 1px solid var(--line);
  }

  .about-visual {
    min-height: 420px;
  }

  .about-visual > div {
    min-height: 382px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 40px;
  }

  .contact-actions {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    min-height: 74px;
  }

  .site-header.scrolled {
    min-height: 62px;
    padding: 0 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .brand strong {
    font-size: 17px;
  }

  .hero {
    min-height: 780px;
    background-position: 66% center;
    background-image:
      linear-gradient(90deg, rgba(5, 8, 14, 0.92), rgba(5, 8, 14, 0.54)),
      linear-gradient(0deg, var(--bg) 0%, transparent 25%),
      url("./assets/stage-hero.png");
  }

  .hero-content {
    padding-top: 142px;
  }

  h1 {
    font-size: clamp(36px, 9.7vw, 42px);
    line-height: 1.2;
  }

  .hero-copy {
    max-width: 320px;
    font-size: 16px;
    letter-spacing: 0.035em;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    min-width: 0;
    flex: 1;
  }

  .trust-row {
    justify-content: space-between;
    margin-top: 54px;
  }

  .trust-row li {
    min-width: 0;
    padding: 0 12px;
  }

  .trust-row strong {
    font-size: 14px;
  }

  .trust-row span {
    font-size: 12px;
  }

  .hero-image-note {
    max-width: calc(100% - 32px);
    font-size: 11px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 74px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .advantage-copy h2,
  .about-copy h2,
  .contact-copy h2 {
    font-size: 34px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    width: 100%;
    min-height: 246px;
  }

  .content-note {
    text-align: left;
  }

  .case-grid {
    display: block;
  }

  .case-card,
  .case-card-large {
    width: 100%;
    margin-bottom: 16px;
  }

  .case-visual,
  .case-card-large .case-visual {
    min-height: 230px;
  }

  .case-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .case-card-featured .case-body > div,
  .case-card-featured .case-body > p {
    grid-column: auto;
    grid-row: auto;
    text-align: left;
  }

  .advantage-section {
    margin: 22px 0;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card {
    min-height: 190px;
  }

  .equipment-tabs {
    padding: 0 8px;
  }

  .equipment-tabs button {
    padding: 16px 14px;
  }

  .equipment-panel {
    width: 100%;
    min-height: 0;
    padding: 28px 20px 20px;
  }

  .equipment-panel h3 {
    font-size: 30px;
  }

  .equipment-visual {
    min-height: 240px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    width: 100%;
    min-height: 190px;
  }

  .process-list h3 {
    margin-top: 44px;
  }

  .about-layout {
    gap: 44px;
  }

  .about-visual {
    width: 100%;
    min-height: 340px;
  }

  .about-visual > img {
    min-height: 302px;
  }

  .about-visual > div {
    min-height: 302px;
    padding: 24px;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .contact-card {
    width: 100%;
    gap: 32px;
    padding: 28px 20px;
    border-radius: 18px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    width: calc(100% - 32px);
    padding: 56px 0 42px;
  }

  .footer-bottom {
    display: block;
    width: calc(100% - 32px);
  }

  .footer-bottom span {
    display: block;
    margin-top: 5px;
  }

}

@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;
  }
}

/* The full logo belongs in the footer; the header uses its R symbol as a compact mark. */
.brand-symbol {
  display: block;
  width: 52px;
  height: 46px;
  flex: 0 0 auto;
}

.brand-symbol img {
  width: 52px;
  height: 46px;
  object-fit: contain;
}

.brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
  clip-path: circle(48.2% at 50% 50%);
}
.brand-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
.brand-footer .brand-logo { width: 176px; height: 176px; }
.brand-footer .brand-name { display: none; }
@media (max-width: 640px) {
  .brand-symbol { width: 44px; height: 40px; }
  .brand-symbol img { width: 44px; height: 40px; }
  .site-header .brand { gap: 9px; }
  .brand-footer .brand-logo { width: 160px; height: 160px; }
}
