/* ÇIFF Logistics — public site styles */
:root {
  --brand: #0b2a4a;
  --accent: #12b5c9;
  --brand-2: color-mix(in srgb, var(--brand) 82%, #000 18%);
  --ink: #0f1b2d;
  --muted: #5a6b80;
  --line: #e6ebf1;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(11, 42, 74, 0.22);
  --shadow-lg: 0 30px 60px -20px rgba(11, 42, 74, 0.30);
  --maxw: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Persian webfont — used only for the Farsi bits on the English site */
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
.fa-txt { font-family: 'Vazirmatn', var(--font); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body > svg { display: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.icon { width: 22px; height: 22px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #06222b; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-accent:hover { box-shadow: 0 14px 26px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.10); }
.btn-light { background: #fff; color: var(--brand); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.01em; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800; font-size: 20px;
}
.brand-logo { height: 60px; width: auto; max-width: 260px; object-fit: contain; display: block; }
/* On the dark footer, sit the logo on a clean white chip so the navy stays legible */
.site-footer .brand-logo { height: 40px; background: #fff; padding: 9px 14px; border-radius: 12px; box-sizing: content-box; }
.brand-name { font-size: 18px; color: var(--brand); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 9px 14px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: 15px; transition: background .2s, color .2s; }
.main-nav a:hover { background: var(--bg-alt); color: var(--brand); }
.main-nav .nav-cta { background: var(--brand); color: #fff; margin-left: 6px; }
.main-nav .nav-cta:hover { background: var(--brand-2); color: #fff; }
.main-nav .nav-fa { border: 1px solid var(--line); color: var(--brand); font-weight: 700; }
.main-nav .nav-fa:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--brand); cursor: pointer; padding: 6px; }
.nav-toggle .icon { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 520px at 88% 6%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 62%),
    radial-gradient(680px 480px at 4% 96%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    linear-gradient(155deg, var(--brand) 0%, var(--brand-2) 58%, #061627 100%);
}
.hero-pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(130% 90% at 72% 2%, #000 8%, transparent 66%);
  mask-image: radial-gradient(130% 90% at 72% 2%, #000 8%, transparent 66%);
  opacity: .55;
}
.hero-inner { position: relative; z-index: 1; padding: 84px 24px 68px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero-art { position: relative; }
.hero-scene { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 44px rgba(0,0,0,.34)); }
.hero-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  margin-bottom: 20px;
}
.eyebrow .icon { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; max-width: 15ch; font-weight: 800; }
.hero .lead { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.86); max-width: 60ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px;
  padding-top: 34px; border-top: 1px solid rgba(255,255,255,.14);
}
.stat-value { display: block; font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.stat-label { font-size: 14px; color: rgba(255,255,255,.72); }

/* Sections */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 12px; color: var(--brand); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 17px; margin: 0; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .25s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--brand);
}
.card-icon .icon { width: 28px; height: 28px; }
.card h3 { font-size: 21px; margin: 0 0 8px; color: var(--brand); }
.card-summary { color: var(--ink); font-weight: 500; margin: 0 0 10px; }
.card-details { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 700; font-size: 15px; }
.card-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link .icon { transform: translateX(4px); }

/* Cards with a photo header */
.card.has-photo { padding: 0; overflow: hidden; }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card.has-photo:hover .card-media img { transform: scale(1.06); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11,42,74,.35)); }
.card-ic {
  position: absolute; left: 16px; bottom: -22px; z-index: 1; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card-ic .icon { width: 26px; height: 26px; }
.card.has-photo .card-pad { display: flex; flex-direction: column; flex: 1; padding: 32px 26px 26px; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-media img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.about-placeholder {
  aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 10px;
  background: linear-gradient(150deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow-lg);
}
.about-illustration { width: 100%; height: 100%; display: block; }
.ci-badge {
  width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center; font-size: 52px; font-weight: 800;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}
.about-placeholder p { letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: rgba(255,255,255,.8); margin: 0; }
.about-copy h2 { margin-top: 8px; }
.about-copy .lead { font-size: 19px; color: var(--ink); font-weight: 500; }
.about-copy p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-weight: 500; }
.check-list .icon { width: 22px; height: 22px; color: #fff; background: var(--accent); border-radius: 50%; padding: 4px; flex: none; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { position: relative; overflow: hidden; text-align: left; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 22px -16px rgba(11,42,74,.45); transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--accent) 60%, transparent); transition: transform .3s ease; }
.feature-icon .icon { width: 26px; height: 26px; color: #fff; }
.feature:hover .feature-icon { transform: scale(1.08) rotate(-5deg); }
.feature h3 { margin: 0 0 8px; font-size: 18px; color: var(--brand); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step-num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 18px; color: var(--brand); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { background: linear-gradient(150deg, var(--brand), var(--brand-2)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 56px 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); }
.cta-inner p { margin: 0; color: rgba(255,255,255,.82); max-width: 62ch; }

/* Service detail page */
.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero-inner { position: relative; z-index: 1; padding: 32px 24px 60px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.68); margin-bottom: 28px; flex-wrap: wrap; }
.crumb a { color: rgba(255,255,255,.82); }
.crumb a:hover { color: #fff; }
.crumb span { opacity: .5; }
.crumb em { color: #fff; font-style: normal; font-weight: 600; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.page-hero-copy h1 { font-size: clamp(30px, 4.5vw, 50px); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 16px; font-weight: 800; }
.page-hero-copy .lead { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.86); max-width: 52ch; margin: 0 0 28px; }
.page-hero-icon { display: flex; justify-content: center; }
.service-badge { width: 150px; height: 150px; border-radius: 32px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow-lg); }
.service-badge .icon { width: 74px; height: 74px; color: #fff; }
/* Hero photo (service pages) */
.page-hero-media { position: relative; }
.page-hero-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.16); }
.page-hero-badge {
  position: absolute; left: 16px; bottom: 16px; width: 66px; height: 66px; border-radius: 18px;
  display: grid; place-items: center; background: var(--accent); box-shadow: var(--shadow-lg);
}
.page-hero-badge .icon { width: 32px; height: 32px; color: #fff; }

.service-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: 48px; align-items: start; }
.service-body .lead-2 { font-size: 19px; color: var(--ink); font-weight: 500; margin: 0 0 18px; }
.service-body p { color: var(--muted); margin: 0 0 16px; font-size: 16px; }
.service-body .body-sub { font-size: 22px; color: var(--brand); margin: 32px 0 16px; }
/* Rendered page content (## heading, - list, **bold**) */
.service-body.rt .rt-h2 { font-size: 23px; color: var(--brand); margin: 34px 0 14px; line-height: 1.3; }
.service-body.rt .rt-h2:first-child { margin-top: 0; }
.service-body.rt .rt-h3 { font-size: 18px; color: var(--brand); margin: 24px 0 12px; }
.service-body.rt .rt-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.service-body.rt .rt-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.service-body.rt .rt-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.service-body.rt strong { color: var(--ink); font-weight: 700; }
.body-figure { margin: 30px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.body-figure img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.service-aside { position: sticky; top: 96px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.aside-cta h3 { margin: 0 0 8px; color: var(--brand); font-size: 20px; }
.aside-cta p { margin: 0 0 18px; color: var(--muted); }
.aside-line { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--brand); font-weight: 600; font-size: 15px; }
.aside-line .icon { width: 18px; height: 18px; color: var(--accent); }
.aside-line:hover { color: var(--accent); }

.card-title-link { color: inherit; }
.card-title-link:hover { color: var(--accent); }

@media (max-width: 940px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero-icon { justify-content: flex-start; }
  .page-hero-media { width: 100%; max-width: 460px; }
  .service-badge { width: 108px; height: 108px; border-radius: 26px; }
  .service-badge .icon { width: 52px; height: 52px; }
  .service-grid { grid-template-columns: 1fr; gap: 30px; }
  .service-aside { position: static; }
  .check-list.two-col { grid-template-columns: 1fr; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt); color: var(--accent); flex: none; }
.contact-list strong { color: var(--brand); }
.contact-list a:hover { color: var(--accent); }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt); color: var(--brand); transition: background .2s, color .2s, transform .2s; }
.social-row a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field textarea { resize: vertical; }
.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; font-size: 15px; }
.form-alert.ok { background: #e7f8ef; color: #10774a; }
.form-alert.err { background: #fdecec; color: #b3261e; }

.map { margin-top: 56px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(160deg, #0a2039 0%, #071a30 58%, #050f1f 100%); color: rgba(255,255,255,.72); padding: 74px 0 26px; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #4fd0e0, var(--brand)); z-index: 2; }
.site-footer::after { content: ""; position: absolute; top: -170px; right: -130px; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle, rgba(18,181,201,.16), transparent 68%); pointer-events: none; z-index: 0; }
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.25fr; gap: 40px; }
.site-footer .brand-name { color: #fff; }
.footer-brand p { margin: 20px 0; max-width: 40ch; line-height: 1.8; color: rgba(255,255,255,.6); }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 18px; letter-spacing: .02em; position: relative; padding-bottom: 11px; }
.footer-col h4::after { content: ""; position: absolute; bottom: 0; left: 0; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #4fd0e0); }
/* nav columns — dot marker + slide */
.footer-nav a { display: flex; align-items: center; gap: 9px; width: fit-content; color: rgba(255,255,255,.66); padding: 6px 0; transition: color .2s, transform .2s; }
.footer-nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .5; flex: none; transition: transform .2s, opacity .2s; }
.footer-nav a:hover { color: #fff; transform: translateX(4px); }
.footer-nav a:hover::before { opacity: 1; transform: scale(1.6); }
/* reach column — icon badges */
.footer-reach a, .footer-reach .rline { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: rgba(255,255,255,.72); font-size: 15px; transition: color .2s; }
.footer-reach a:hover { color: #fff; }
.footer-reach .fi { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .25s, border-color .25s; }
.footer-reach .fi svg { width: 18px; height: 18px; color: var(--accent); }
.footer-reach a:hover .fi { background: linear-gradient(135deg, var(--brand), var(--accent)); border-color: transparent; }
.footer-reach a:hover .fi svg { color: #fff; }
.footer-reach .rline span:last-child { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.5; }
/* social buttons (footer only — dark glass) */
.site-footer .social-row a { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.82); }
.site-footer .social-row a:hover { background: linear-gradient(135deg, var(--brand), var(--accent)); border-color: transparent; color: #fff; transform: translateY(-3px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: rgba(255,255,255,.55); }
.footer-credit { color: rgba(255,255,255,.4); font-size: 13.5px; }
.footer-credit a { color: rgba(255,255,255,.72); font-weight: 600; transition: color .2s; }
.footer-credit a:hover { color: var(--accent); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Logo mark */
.logo-mark { width: 40px; height: 40px; display: block; flex: none; }

/* Back-to-top button */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 26px -10px rgba(11, 42, 74, .6);
  opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #06222b; transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }

/* Hero scene — living animation */
.hero-route { stroke-dasharray: 1 9; animation: dashFlow 1.5s linear infinite; }
.hero-scene:hover .hero-route { animation-duration: .5s; }
@keyframes dashFlow { to { stroke-dashoffset: -10; } }
.hero-node { transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* About scene — living animation */
.about-orbit { transform-box: view-box; transform-origin: 220px 140px; animation: spin 44s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-route { animation: dashFlow2 1.8s linear infinite; }
@keyframes dashFlow2 { to { stroke-dashoffset: -8; } }
.about-hubs circle { transform-box: fill-box; transform-origin: center; animation: hubPulse 2.4s ease-in-out infinite; }
.about-hubs circle:nth-child(2) { animation-delay: .8s; }
.about-hubs circle:nth-child(3) { animation-delay: 1.5s; }
@keyframes hubPulse { 0%, 100% { opacity: .55; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

@media (prefers-reduced-motion: reduce) {
  .hero-route, .hero-node, .about-orbit, .about-route, .about-hubs circle { animation: none; }
}

/* Error page */
.error-page { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 16px; color: var(--brand); }
.error-page h1 { font-size: 96px; margin: 0; letter-spacing: -.04em; }

/* Responsive */
@media (max-width: 940px) {
  .cards, .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { max-width: 460px; margin: 4px auto 0; order: 2; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease; z-index: 40;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 12px 14px; }
  .main-nav .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 64px 0; }
  .header-inner { height: 72px; }
  .brand-logo { height: 50px; }
  .hero-inner { padding: 64px 24px 56px; }
  /* Hero image goes full-bleed on phones — edge to edge, no side gaps */
  .hero-art { max-width: none; width: calc(100% + 48px); margin: 10px -24px 0; }
  .hero-scene, .hero-photo { width: 100%; border-radius: 0; }
}
@media (max-width: 560px) {
  .cards, .feature-grid, .steps, .hero-stats, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
