/* ============================================================
   Sail Surge / 陕西帆腾网络科技有限公司
   Computer Systems Design — Xi'an, China
   Theme: Ocean sailing, wind power, surging forward
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --teal: #0D7377;
  --navy: #0F2B46;
  --white: #F0F4F4;
  --coral: #E8614B;
  --warm-gray: #EAE5DE;
  --gold: #D4A346;

  --font-heading: 'Georgia', 'Noto Serif SC', 'Source Han Serif SC', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Noto Sans Mono SC', monospace;

  --max-width: 1400px;
  --nav-height: 72px;
  --wave-angle: 6deg;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--coral);
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.25rem; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--teal);
  max-width: 36rem;
  margin-bottom: 2rem;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10000;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus {
  top: 0;
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: background 0.35s, box-shadow 0.35s;
}
.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(15, 43, 70, 0.25);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  z-index: 1001;
}
.logo-icon {
  width: 42px;
  height: 42px;
  color: var(--gold);
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

/* Desktop Nav */
.nav-list {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.nav-list a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

.nav-lang {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-left: 0.5rem;
  opacity: 0.8;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 30px rgba(15, 43, 70, 0.3);
}
.mobile-nav.active {
  transform: translateX(0);
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: color 0.2s;
}
.mobile-nav a:hover {
  color: var(--gold);
}
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 43, 70, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Diagonal Wave Separator Mixin (repeated pattern) --- */
.wave-top {
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}

.wave-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 96%);
}

/* Hero compass background */
.hero-compass-bg {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: min(600px, 55vw);
  height: min(600px, 55vw);
  color: var(--teal);
  opacity: 0.12;
  pointer-events: none;
  animation: compass-drift 20s ease-in-out infinite;
}
@keyframes compass-drift {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  25% { transform: translateY(-48%) rotate(2deg); }
  75% { transform: translateY(-52%) rotate(-2deg); }
}

/* Hero chart lines */
.hero-chart-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, var(--white) 79px, var(--white) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, var(--white) 79px, var(--white) 80px);
}

.hero-grid {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1.5rem 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-brand {
  grid-column: 1;
  grid-row: 1 / 3;
}

.hero-zh {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-title-accent {
  display: block;
  color: var(--coral);
  font-style: italic;
}

.hero-tagline {
  grid-column: 1;
  grid-row: 3;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--white);
  opacity: 0.85;
  max-width: 28rem;
  padding-left: 0.25rem;
  border-left: 3px solid var(--coral);
  padding: 0.5rem 0 0.5rem 1.25rem;
}

.hero-card {
  grid-column: 2;
  grid-row: 2 / 4;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(15, 43, 70, 0.35);
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold);
}
.hero-card h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.hero-card p {
  color: var(--teal);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.hero-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--coral);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s, transform 0.25s;
}
.hero-card-cta:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  opacity: 0.5;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
}

/* --- About Section --- */
.about {
  position: relative;
  background: var(--warm-gray);
  padding: 6rem 2rem 8rem;
  margin-top: -4rem;
  z-index: 3;
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Overlapping sail panels */
.about-panels {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
}

.about-panel {
  background: var(--white);
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(15, 43, 70, 0.08);
  position: relative;
  border-radius: 2px;
}

.about-panel:nth-child(1) {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
  z-index: 2;
  margin-bottom: -30px;
  margin-right: -30px;
  border-top: 4px solid var(--coral);
}

.about-panel:nth-child(2) {
  grid-column: 5 / 10;
  grid-row: 2 / 4;
  z-index: 3;
  margin-top: 60px;
  border-top: 4px solid var(--teal);
}

.about-panel:nth-child(3) {
  grid-column: 8 / 13;
  grid-row: 1 / 3;
  z-index: 1;
  margin-top: 20px;
  margin-left: -20px;
  border-top: 4px solid var(--gold);
}

.about-panel-icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: 1rem;
}
.about-panel:nth-child(1) .about-panel-icon { color: var(--coral); }
.about-panel:nth-child(3) .about-panel-icon { color: var(--gold); }

.about-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.about-panel p {
  color: #3a4f62;
  line-height: 1.75;
  font-size: 0.95rem;
}

.about-compass-accent {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 80px;
  height: 80px;
  color: var(--gold);
  opacity: 0.15;
  pointer-events: none;
}

/* --- Services Section --- */
.services {
  position: relative;
  background: var(--white);
  padding: 6rem 0 2rem;
  overflow: hidden;
}

.services-header {
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}
.services-header .section-label {
  margin-bottom: 0.5rem;
}
.services-header h2 {
  margin-bottom: 0.75rem;
}
.services-header p {
  color: var(--teal);
  font-size: 1.05rem;
  max-width: 32rem;
}

/* Horizontal scroll */
.services-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 2rem 3rem;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) var(--warm-gray);
}
.services-scroll::-webkit-scrollbar {
  height: 6px;
}
.services-scroll::-webkit-scrollbar-track {
  background: var(--warm-gray);
  margin: 0 2rem;
  border-radius: 3px;
}
.services-scroll::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 3px;
}
.services-scroll.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.service-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid #d8dfe3;
  padding: 2.5rem 2rem;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  border-radius: 2px;
}
.service-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 40px rgba(13, 115, 119, 0.12);
  transform: translateY(-4px);
}

.service-card-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 60px 60px 0;
  border-color: transparent var(--gold) transparent transparent;
  opacity: 0.7;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.service-card p {
  color: #3a4f62;
  font-size: 0.9rem;
  line-height: 1.7;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.service-card-link:hover {
  color: var(--navy);
}
.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.service-card-link:hover svg {
  transform: translateX(4px);
}

/* --- Counters Section --- */
.counters {
  background: var(--teal);
  padding: 4rem 2rem;
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
  margin-top: -1px;
}

.counters-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.counter-item {
  text-align: center;
  color: var(--white);
  flex: 1 1 180px;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.9rem;
  opacity: 0.85;
  letter-spacing: 0.03em;
}

/* --- Contact Section --- */
.contact {
  position: relative;
  background: var(--navy);
  padding: 6rem 2rem;
  margin-top: -1rem;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  color: var(--white);
  padding-top: 1rem;
}

.contact-info .section-label {
  color: var(--gold);
}
.contact-info h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.contact-info > p {
  color: rgba(240, 244, 244, 0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.contact-detail span {
  color: rgba(240, 244, 244, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  padding: 3rem;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(15, 43, 70, 0.2);
  position: relative;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--coral);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #d8dfe3;
  border-radius: 2px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.15);
  outline: none;
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s, transform 0.25s;
  width: 100%;
}
.form-submit:hover {
  background: var(--teal);
  transform: translateY(-2px);
}
.form-submit svg {
  width: 18px;
  height: 18px;
}

.form-feedback {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  display: none;
  text-align: center;
}
.form-feedback.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-feedback.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(240, 244, 244, 0.75);
  padding: 5rem 2rem 2rem;
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-brand .logo-icon {
  width: 36px;
  height: 36px;
}
.footer-brand h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.footer-brand p {
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col a {
  color: rgba(240, 244, 244, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 244, 244, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- Privacy & Terms Pages --- */
.legal-page {
  min-height: 100vh;
  background: var(--white);
}

.legal-hero {
  background: var(--navy);
  padding: calc(var(--nav-height) + 3rem) 2rem 3rem;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 96%);
  text-align: center;
}
.legal-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.5rem;
}
.legal-hero .legal-hero-sub {
  color: var(--gold);
  font-size: 1rem;
}

.legal-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  font-size: 16px;
  line-height: 1.8;
  color: #2c3e50;
}
.legal-body h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--warm-gray);
  color: var(--navy);
}
.legal-body h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--teal);
}
.legal-body p {
  margin-bottom: 1rem;
}
.legal-body ul,
.legal-body ol {
  margin: 0.75rem 0 1.5rem 1.5rem;
  list-style: disc;
}
.legal-body ol {
  list-style: decimal;
}
.legal-body li {
  margin-bottom: 0.5rem;
}
.legal-body strong {
  color: var(--navy);
}
.legal-body .last-updated {
  font-style: italic;
  color: #6b7c8b;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.back-home:hover {
  color: var(--coral);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.36s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.60s; opacity: 1; transform: translateY(0); }

/* --- Utility --- */
.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;
}

/* --- Print --- */
@media print {
  .site-header, .mobile-nav, .mobile-nav-backdrop, .hamburger { display: none !important; }
  .hero { clip-path: none; min-height: auto; padding: 2rem; }
  body { font-size: 12pt; }
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-brand { grid-column: 1; grid-row: 1; }
  .hero-tagline {
    grid-column: 1;
    grid-row: 2;
    margin: 0 auto;
    border-left: none;
    border-bottom: 3px solid var(--coral);
    padding: 0 0 0.75rem 0;
  }
  .hero-card {
    grid-column: 1;
    grid-row: 3;
    max-width: 480px;
    margin: 0 auto;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .about-panels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-panel {
    margin: 0 !important;
    z-index: auto !important;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  html { font-size: 16px; }

  .site-header { padding: 0 1.25rem; }

  .nav-list { display: none; }
  .hamburger { display: flex; }

  .hero {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 97%);
  }
  .hero-compass-bg {
    right: -20%;
    opacity: 0.06;
  }
  .hero-grid { padding: calc(var(--nav-height) + 1.5rem) 1.25rem 3rem; }

  .about { padding: 4rem 1.25rem 5rem; }

  .services { padding: 4rem 0 1rem; }
  .services-header { padding: 0 1.25rem; }
  .services-scroll { padding: 1rem 1.25rem 2rem; gap: 1.25rem; }
  .service-card { flex: 0 0 280px; padding: 2rem 1.5rem; }

  .counters { padding: 3rem 1.25rem; }
  .counters-grid { gap: 1.5rem; }

  .contact { padding: 4rem 1.25rem; }
  .contact-form-wrap { padding: 2rem 1.5rem; }

  .site-footer { padding: 4rem 1.25rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .legal-hero { padding: calc(var(--nav-height) + 2rem) 1.25rem 2rem; }
  .legal-body { padding: 2rem 1.25rem 3rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-card { padding: 1.75rem; }
  .service-card { flex: 0 0 260px; }
  .counter-item { flex: 1 1 130px; }
}
