/* Rehoboth Immigration Services — site styles (orange, red & white) */

:root {
  --ink: #2b0f12;
  --ink-soft: #4a2a2c;
  --muted: #74585a;
  --red: #d62828;
  --red-deep: #9d0208;
  --wine: #6a040f;
  --orange: #f77f00;
  --orange-red: #e85d04;
  --amber: #ffb703;
  --white: #ffffff;
  --peach: #fff3ea;
  --blush: #fff8f3;
  --line: #f1dcd2;
  --focus: #111111;

  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --stripe: linear-gradient(90deg, var(--red-deep) 0 25%, var(--red) 25% 50%, var(--orange-red) 50% 75%, var(--orange) 75% 100%);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px var(--white); }

h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1.05rem/1.2 var(--font-body);
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 6px 18px -8px rgba(214, 40, 40, .8); }
.btn-primary:hover { background: var(--red-deep); color: var(--white); }
.btn-light { background: var(--white); color: var(--red); box-shadow: 0 8px 22px -10px rgba(60, 0, 0, .55); }
.btn-light:hover { background: var(--peach); color: var(--red-deep); }
.btn-ghost-light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: var(--white); border-color: var(--white); }
.btn-outline { border-color: var(--red); color: var(--red); background: var(--white); }
.btn-outline:hover { background: var(--peach); color: var(--red-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header::before { content: ""; display: block; height: 5px; background: var(--stripe); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 41px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .005em; }
.brand-sub { font-size: .82rem; color: var(--muted); margin-top: 5px; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav a:not(.btn):hover { color: var(--red); text-decoration: underline; }
.nav .btn { min-height: 46px; padding: 10px 20px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 183, 3, .55), transparent 40%),
    radial-gradient(circle at 4% 100%, rgba(106, 4, 15, .55), transparent 42%),
    linear-gradient(135deg, var(--red-deep) 0%, var(--red) 45%, var(--orange) 100%);
  color: var(--white);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }

.hero h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.012em;
  max-width: 12ch;
  text-shadow: 0 2px 24px rgba(80, 0, 0, .25);
}
.hero h1 .w { display: inline-block; transform-origin: 50% 100%; }
.hero-lede { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: #ffe6d6; max-width: 34ch; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-where { margin-top: 24px; display: flex; align-items: center; gap: 8px; font-size: 1rem; color: #ffe6d6; }
.hero-where svg { width: 18px; height: 18px; flex: none; color: var(--white); }

/* 3D globe (drawn by globe.js). The ::before ball shows until the script takes over. */
.globe {
  position: relative;
  aspect-ratio: 1;
  width: 100%; max-width: 580px; justify-self: end;
  margin: -4% -6% -4% 0;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.globe.is-dragging { cursor: grabbing; }
.globe::before {
  content: ""; position: absolute; inset: 11.5%; border-radius: 50%;
  background: radial-gradient(circle at 31% 29%, #b0161d 0%, #74060f 50%, #33020a 100%);
  box-shadow: 0 0 0 1px rgba(255, 214, 160, .5), 0 0 60px 6px rgba(255, 214, 150, .45);
}
.globe.is-live::before { display: none; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.globe-hint {
  position: absolute; left: 50%; bottom: 1%; transform: translateX(-50%);
  display: none; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(60, 0, 6, .38); color: #ffe6d6;
  font-size: .85rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  pointer-events: none;
  transition: opacity .4s ease;
}
.globe-hint svg { width: 16px; height: 16px; }
.globe.is-live .globe-hint { display: inline-flex; }
.globe.is-used .globe-hint { opacity: 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { max-width: 640px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.06; letter-spacing: -.01em; }
.section-head h2::after { content: ""; display: block; width: 84px; height: 6px; margin-top: 18px; border-radius: 3px; background: var(--stripe); }
.section-lede { margin-top: 18px; font-size: 1.15rem; color: var(--ink-soft); }

/* Services: alternating red and orange rows */
.c-1 { --c: #d62828; --c-tint: #fdeaea; --c-ink: #8f1218; }
.c-2 { --c: #f77f00; --c-tint: #fff0df; --c-ink: #8a4300; }
.c-3 { --c: #9d0208; --c-tint: #f9e3e4; --c-ink: #6a0105; }
.c-4 { --c: #e85d04; --c-tint: #fdeadf; --c-ink: #8a3500; }
.c-5 { --c: #f48c06; --c-tint: #fff2df; --c-ink: #7f4600; }

.service-list { margin: clamp(32px, 5vw, 52px) 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 14px 40px; padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--c-tint), var(--white) 75%);
  border-left: 6px solid var(--c);
  box-shadow: 0 1px 0 var(--line), 0 22px 36px -28px rgba(106, 4, 15, .55);
}
.service-title { display: flex; align-items: center; gap: 16px; }
.service-icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--c); color: var(--white);
  box-shadow: 0 3px 0 var(--c-ink), 0 14px 18px -10px var(--c-ink);
}
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.25; }
.service-body p { color: var(--ink-soft); }
.forms { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.forms li {
  background: var(--white); color: var(--c-ink);
  border: 1.5px solid var(--c);
  border-radius: 999px; padding: 3px 12px;
  font-size: .9rem; font-weight: 700; letter-spacing: .01em;
}
.services-note { margin-top: 30px; font-size: 1.1rem; }
.services-note a { font-weight: 700; }

/* Steps */
.steps-section { background: var(--peach); }
.steps { margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 72px; --dot: var(--red); }
.step:nth-child(2) { --dot: var(--orange); }
.step:nth-child(3) { --dot: var(--red-deep); }
.step:nth-child(4) { --dot: var(--orange-red); }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dot); color: var(--white);
  font: 400 1.6rem/1 var(--font-display);
  box-shadow: 0 8px 18px -10px var(--dot);
}
.step::after { content: ""; position: absolute; top: 26px; left: 66px; right: -20px; border-top: 3px dotted #f0b896; }
.step:last-child::after { display: none; }
.step h3 { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.25; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 1.05rem; }

/* About / name meaning */
.about {
  background:
    radial-gradient(circle at 92% 8%, rgba(247, 127, 0, .45), transparent 42%),
    var(--red-deep);
  color: var(--white);
}
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.verse { margin: 0; border-left: 4px solid var(--amber); padding-left: clamp(18px, 3vw, 32px); }
.verse p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.3; color: var(--white); }
.verse cite { display: block; margin-top: 16px; font-style: normal; font-size: 1rem; color: #ffd3bd; }
.about-copy h2 { color: var(--white); font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; }
.about-copy p { margin-top: 16px; color: #ffe9de; }

/* Values (inside the red "Why the name" section) */
.values-title {
  margin-top: clamp(48px, 7vw, 80px);
  font: 700 .9rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  color: #ffd3bd;
}
.values { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: v; }
.value {
  counter-increment: v;
  padding: 22px 22px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
}
.value::before { content: "0" counter(v); display: block; font: 400 1.9rem/1 var(--font-display); color: var(--amber); }
.value h4 { margin: 14px 0 0; font: 400 1.25rem/1.25 var(--font-serif); color: var(--white); }
.value p { margin-top: 8px; color: #ffe9de; font-size: 1rem; }

/* Why people choose Rehoboth */
.features { margin: clamp(32px, 5vw, 52px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature {
  position: relative;
  padding: 26px 22px 24px; border-radius: var(--radius);
  background: linear-gradient(165deg, var(--c-tint), var(--white) 70%);
  border-top: 5px solid var(--c);
  box-shadow: 0 1px 0 var(--line), 0 26px 40px -30px rgba(106, 4, 15, .6);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--c); color: var(--white);
  box-shadow: 0 3px 0 var(--c-ink), 0 14px 18px -10px var(--c-ink);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-top: 18px; font-family: var(--font-serif); font-size: 1.22rem; line-height: 1.25; }
.feature p { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-side { position: sticky; top: 120px; }
.faq-ask { margin-top: 30px; font-size: 1.1rem; color: var(--ink-soft); }
.faq-side .btn { margin-top: 14px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 30px -28px rgba(106, 4, 15, .6);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: #f3b9a3; box-shadow: inset 5px 0 0 var(--red), 0 26px 40px -28px rgba(106, 4, 15, .7); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px 20px 24px; border-radius: var(--radius);
  font: 400 1.2rem/1.3 var(--font-serif); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background:
    linear-gradient(var(--red), var(--red)) center / 14px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2px 14px no-repeat,
    var(--peach);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item summary:hover { color: var(--red); }
.faq-a { padding: 0 24px 22px; color: var(--ink-soft); }
.faq-a p { max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
}

/* Contact */
.contact {
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 183, 3, .4), transparent 40%),
    linear-gradient(135deg, var(--wine) 0%, var(--red) 60%, var(--orange) 100%);
  color: var(--white);
}
.contact h2 { color: var(--white); font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.06; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.contact-lede { margin-top: 16px; color: #ffe6d6; font-size: 1.15rem; max-width: 38ch; }
.contact-phone { display: inline-block; margin-top: 28px; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--white); text-decoration: none; }
.contact-phone:hover { color: #ffe6d6; text-decoration: underline; text-decoration-thickness: 2px; }
.contact-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 26px 28px; }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt { font-size: .9rem; color: #ffd3bd; }
.contact-card dd { margin: 4px 0 0; font-size: 1.15rem; }
.contact-card a { color: var(--white); }
.contact-card a:hover { color: #ffe6d6; }

/* Footer */
.site-footer { padding-block: 40px 48px; font-size: .95rem; color: var(--muted); background: var(--blush); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-top .brand-name { font-size: 1.35rem; }
.footer-mid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-nav a:hover { color: var(--red); text-decoration: underline; }
.footer-hours { color: var(--muted); }
.copyright { margin-top: 24px; }

/* Mobile call bar */
.callbar { display: none; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.notfound h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem); }
.notfound p { margin-top: 14px; color: var(--muted); }
.notfound .btn { margin-top: 28px; }

/* ---------- 3D effects (only when globe.js is running) ---------- */
.js .tilt,
.js .tilt-hover {
  transform: perspective(1100px)
             rotateX(calc((var(--tilt, 0) + var(--rx, 0)) * 1deg))
             rotateY(calc(var(--ry, 0) * 1deg));
  transform-style: preserve-3d;
  transition: transform .22s ease-out, opacity .22s ease-out;
}
.js .tilt { opacity: var(--o, 1); will-change: transform; }
.js .tilt .service-icon { transform: translateZ(34px); }
.js .tilt h3 { transform: translateZ(16px); }
.js .tilt .forms { transform: translateZ(12px); }

.js .reveal { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; }
.js .verse.reveal,
.js .about-copy.reveal { transform: perspective(900px) rotateX(16deg) translateY(34px); transform-origin: 50% 100%; }
.js .about-copy.reveal { transition-delay: .12s; }
.js .verse.reveal.in,
.js .about-copy.reveal.in { transform: none; }
.js .contact-card.reveal:not(.in) { transform: perspective(1100px) rotateY(-18deg) translateX(30px); }
.js .contact-card.reveal { transition: opacity .7s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.js .contact-card { box-shadow: 0 30px 50px -34px rgba(40, 0, 0, .8); }

/* Steps: text rises in, numbers flip in like coins */
.js .step.reveal { transform: translateY(26px); }
.js .step.reveal.in { transform: none; }
.js .step.reveal::before { transform: perspective(400px) rotateY(-180deg) scale(.6); opacity: 0; transition: transform .8s cubic-bezier(.2, .9, .3, 1.15), opacity .3s ease; }
.js .step.reveal.in::before { transform: none; opacity: 1; }
.js .step:nth-child(2), .js .step:nth-child(2)::before { transition-delay: .12s; }
.js .step:nth-child(3), .js .step:nth-child(3)::before { transition-delay: .24s; }
.js .step:nth-child(4), .js .step:nth-child(4)::before { transition-delay: .36s; }
.step::before { box-shadow: 0 3px 0 rgba(60, 0, 0, .28), 0 12px 18px -10px var(--dot); }

/* Feature cards: icons float above the card, cards flip up into place */
.js .feature .feature-icon { transform: translateZ(30px); }
.js .feature h3 { transform: translateZ(14px); }
.js .feature.reveal.in { animation: featureIn .8s cubic-bezier(.2, .8, .2, 1) backwards; }
.js .feature:nth-child(4n+2).reveal.in { animation-delay: .08s; }
.js .feature:nth-child(4n+3).reveal.in { animation-delay: .16s; }
.js .feature:nth-child(4n+4).reveal.in { animation-delay: .24s; }
@keyframes featureIn { from { opacity: 0; transform: perspective(900px) rotateX(28deg) translateY(36px); } }

/* Values swing in like cards on a hinge */
.js .value.reveal { transform: perspective(900px) rotateY(-24deg) translateX(24px); transform-origin: 0 50%; }
.js .value.reveal.in { transform: none; }
.js .value:nth-child(2) { transition-delay: .08s; }
.js .value:nth-child(3) { transition-delay: .16s; }
.js .value:nth-child(4) { transition-delay: .24s; }


/* ---------- Landing intro ----------
   Plays once per session (intro.js adds html.is-intro). Timeline:
   0.0s  flight routes fade in, lights race in from the edges of the screen
   1.0s  they meet in the middle: pulse, white seal pops, the logo draws itself
   1.45s "Rehoboth" rises letter by letter, then "Immigration Services"
   2.4s  a seam of light splits the screen, logo lifts away
   2.85s the two doors swing open onto the page; the globe whooshes in
   3.7s  overlay gone. Pure CSS, so it finishes even if a script fails. */
.intro { display: none; }
html.is-intro .intro,
html.is-intro-skip .intro {
  display: block;
  position: fixed; inset: 0; z-index: 100;
  overflow: hidden; cursor: pointer;
  perspective: 1800px;
  -webkit-tap-highlight-color: transparent;
}
html.is-intro .intro { animation: introHide 0s linear 3.7s forwards; }
html.is-intro-skip .intro { animation: introFade .45s ease forwards; }
html.is-intro-done .intro { display: none !important; }
@keyframes introHide { to { visibility: hidden; } }
@keyframes introFade { to { opacity: 0; visibility: hidden; } }

.intro-door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background-color: #4a030b;
  background-image:
    radial-gradient(circle, rgba(255, 214, 170, .17) 1.2px, transparent 1.7px),
    radial-gradient(circle at 86% 10%, rgba(255, 183, 3, .42), transparent 36%),
    radial-gradient(circle at 8% 96%, rgba(214, 40, 40, .5), transparent 44%),
    linear-gradient(135deg, #2a0208 0%, #5a030d 46%, #8f0710 100%);
  background-size: 26px 26px, 200% 100%, 200% 100%, 200% 100%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.intro-door-l { left: 0; transform-origin: 0 50%; background-position: 0 0, 0 0, 0 0, 0 0; }
.intro-door-r { right: 0; transform-origin: 100% 50%; background-position: 0 0, 100% 0, 100% 0, 100% 0; }
html.is-intro .intro-door-l { animation: doorL .85s cubic-bezier(.65, 0, .25, 1) 2.85s forwards; }
html.is-intro .intro-door-r { animation: doorR .85s cubic-bezier(.65, 0, .25, 1) 2.85s forwards; }
@keyframes doorL { to { transform: rotateY(100deg); opacity: .2; } }
@keyframes doorR { to { transform: rotateY(-100deg); opacity: .2; } }

.intro-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.routes-faint path { fill: none; stroke: rgba(255, 222, 180, .34); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.routes-comet { filter: drop-shadow(0 0 5px rgba(255, 183, 3, .95)) drop-shadow(0 0 14px rgba(255, 140, 0, .6)); }
.routes-comet path { fill: none; stroke: #fff4d6; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .16 1.3; stroke-dashoffset: -1; }
html.is-intro .intro-routes { animation: fadeIn .5s ease .05s both, fadeOut .4s ease 2.35s forwards; }
html.is-intro .routes-comet path { animation: comet .95s cubic-bezier(.5, .05, .35, 1) both; }
html.is-intro .routes-comet path:nth-child(1) { animation-delay: .12s; }
html.is-intro .routes-comet path:nth-child(2) { animation-delay: .2s; }
html.is-intro .routes-comet path:nth-child(3) { animation-delay: .28s; }
html.is-intro .routes-comet path:nth-child(4) { animation-delay: .34s; }
html.is-intro .routes-comet path:nth-child(5) { animation-delay: .4s; }
html.is-intro .routes-comet path:nth-child(6) { animation-delay: .46s; }
@keyframes comet { from { stroke-dashoffset: .16; } to { stroke-dashoffset: -1; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

.intro-seam {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 100%;
  background: linear-gradient(to bottom, transparent, #ffe2a8 18%, #ffffff 50%, #ffe2a8 82%, transparent);
  box-shadow: 0 0 18px 4px rgba(255, 190, 90, .7), 0 0 60px 14px rgba(255, 160, 60, .35);
  transform: translate(-50%, -50%) scaleY(0); opacity: 0;
}
html.is-intro .intro-seam { animation: seam 1.05s cubic-bezier(.5, 0, .2, 1) 2.4s forwards; }
@keyframes seam {
  0%   { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }
  40%  { opacity: 1; transform: translate(-50%, -50%) scaleY(1); }
  55%  { opacity: 1; transform: translate(-50%, -50%) scaleY(1) scaleX(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleY(1) scaleX(40); }
}

/* The logo sits on the exact point where the routes meet: the centre of the screen. */
.intro-logo { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
html.is-intro .intro-logo { animation: logoOut .5s cubic-bezier(.5, 0, .75, 0) 2.45s forwards; }
@keyframes logoOut { to { opacity: 0; transform: scale(1.14); } }

.intro-ring {
  position: absolute; left: -62px; top: -62px; width: 124px; height: 124px;
  border-radius: 50%; border: 2px solid rgba(255, 236, 200, .9);
  opacity: 0;
}
html.is-intro .intro-ring { animation: ring 1.1s cubic-bezier(.2, .7, .3, 1) 1s forwards; }
html.is-intro .intro-ring + .intro-ring { animation-delay: 1.2s; }
@keyframes ring { from { opacity: .95; transform: scale(.3); } to { opacity: 0; transform: scale(3.4); } }

.intro-disc {
  position: absolute; left: -62px; top: -62px; width: 124px; height: 124px;
  border-radius: 50%; background: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .12), 0 0 70px rgba(255, 183, 3, .45), 0 24px 50px -12px rgba(0, 0, 0, .6);
}
html.is-intro .intro-disc { animation: discIn .65s cubic-bezier(.3, 1.6, .5, 1) 1s both; }
@keyframes discIn { from { transform: scale(0); } }

.intro-mark { width: 56px; height: 67px; overflow: visible; }
.m-outer { fill: var(--red); stroke: var(--red); stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 1; }
.m-inner { fill: var(--orange); transform-box: fill-box; transform-origin: 50% 100%; }
.m-base { stroke: var(--amber); stroke-width: 3; transform-box: fill-box; transform-origin: 50% 50%; }
html.is-intro .m-outer { animation: drawArch 1.05s ease 1.15s both; }
html.is-intro .m-inner { animation: riseUp .55s cubic-bezier(.3, 1.45, .5, 1) 1.6s both; }
html.is-intro .m-base { animation: sweep .45s ease-out 1.9s both; }
@keyframes drawArch {
  0%   { stroke-dashoffset: 1; fill-opacity: 0; }
  60%  { stroke-dashoffset: 0; fill-opacity: 0; }
  100% { stroke-dashoffset: 0; fill-opacity: 1; }
}
@keyframes riseUp { from { transform: scaleY(0); } }
@keyframes sweep { from { transform: scaleX(0); } }

.intro-words {
  position: absolute; top: 84px; left: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  white-space: nowrap;
}
.intro-name {
  display: flex; overflow: hidden;
  padding: 0 .08em .1em;
  font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.1;
  color: var(--white); text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
.intro-name span { display: inline-block; }
html.is-intro .intro-name span { animation: letterUp .7s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(1.45s + var(--n, 0) * .055s); }
.intro-name span:nth-child(2) { --n: 1; }
.intro-name span:nth-child(3) { --n: 2; }
.intro-name span:nth-child(4) { --n: 3; }
.intro-name span:nth-child(5) { --n: 4; }
.intro-name span:nth-child(6) { --n: 5; }
.intro-name span:nth-child(7) { --n: 6; }
.intro-name span:nth-child(8) { --n: 7; }
@keyframes letterUp { from { opacity: 0; transform: translateY(105%) rotate(8deg); } }
.intro-sub {
  margin-top: 8px; padding-left: .32em;
  font: 700 .82rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase;
  color: #ffd3bd;
}
html.is-intro .intro-sub { animation: subIn .9s ease 1.95s both; }
@keyframes subIn { from { opacity: 0; letter-spacing: .75em; } }

.intro-skip {
  position: absolute; right: 22px; bottom: calc(20px + env(safe-area-inset-bottom));
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 230, 210, .4);
  font: 700 .85rem/1 var(--font-body); letter-spacing: .04em;
  color: rgba(255, 236, 222, .9);
}
html.is-intro .intro-skip { animation: fadeIn .4s ease .6s both, fadeOut .3s ease 2.5s forwards; }

/* What the doors open onto: the hero assembles itself. */
html.is-intro { --hd: 3s; }
html.is-intro-skip { --hd: .12s; }
html.is-intro .hero h1 .w,
html.is-intro-skip .hero h1 .w { animation: wordUp .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--hd) + var(--n, 0) * .07s); }
.hero h1 .w:nth-child(2) { --n: 1; }
.hero h1 .w:nth-child(3) { --n: 2; }
.hero h1 .w:nth-child(4) { --n: 3; }
.hero h1 .w:nth-child(5) { --n: 4; }
.hero h1 .w:nth-child(6) { --n: 5; }
.hero h1 .w:nth-child(7) { --n: 6; }
@keyframes wordUp { from { opacity: 0; transform: perspective(600px) translateY(.5em) rotateX(-75deg); } }
html.is-intro .hero-lede,    html.is-intro-skip .hero-lede    { animation: rise .8s cubic-bezier(.2, .8, .2, 1) calc(var(--hd) + .45s) both; }
html.is-intro .hero-actions, html.is-intro-skip .hero-actions { animation: rise .8s cubic-bezier(.2, .8, .2, 1) calc(var(--hd) + .58s) both; }
html.is-intro .hero-where,   html.is-intro-skip .hero-where   { animation: rise .8s cubic-bezier(.2, .8, .2, 1) calc(var(--hd) + .7s) both; }
html.is-intro .site-header,  html.is-intro-skip .site-header  { animation: dropIn .7s cubic-bezier(.2, .8, .2, 1) calc(var(--hd) + .05s) both; }
html.is-intro .globe-canvas, html.is-intro-skip .globe-canvas { animation: globeIn 1.5s cubic-bezier(.2, .9, .25, 1.05) calc(var(--hd) - .15s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes dropIn { from { transform: translateY(-100%); } }
@keyframes globeIn { from { opacity: 0; transform: scale(.45) rotate(-30deg); } }


/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(2n)::after { display: none; }
  .features, .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
}

@media (max-width: 900px) {
  .nav { gap: 20px; }
  .nav .btn-label { display: none; }
  .nav .btn { width: 46px; padding: 0; }
}

@media (max-width: 760px) {
  body { font-size: 1.0625rem; padding-bottom: 76px; }
  .nav a:not(.btn) { display: none; }
  .nav .btn-label { display: none; }
  .nav .btn { min-height: 48px; width: 48px; padding: 0; }
  .header-row { min-height: 68px; }
  .brand-name { font-size: 1.5rem; }
  .brand-mark { width: 30px; height: 36px; }

  .hero-grid { grid-template-columns: 1fr; }
  .globe { justify-self: center; max-width: 400px; margin: -14px 0 -34px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .service { grid-template-columns: 1fr; padding: 20px 18px; }
  .service h3 { font-size: 1.28rem; }
  .service-icon { width: 46px; height: 46px; border-radius: 12px; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding-top: 0; padding-left: 72px; min-height: 54px; }
  .step::after { display: none; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-actions .btn { flex: 1 1 auto; }

  .features, .values { grid-template-columns: 1fr; }
  .feature { padding: 22px 20px; }
  .faq-item summary { padding: 18px 16px 18px 18px; font-size: 1.12rem; }
  .faq-a { padding: 0 18px 20px; }
  .faq-side .btn { width: 100%; }

  .intro-disc, .intro-ring { left: -52px; top: -52px; width: 104px; height: 104px; }
  .intro-mark { width: 46px; height: 55px; }
  .intro-words { top: 72px; }
  .intro-sub { font-size: .74rem; }
  .intro-skip { bottom: calc(24px + env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(60,0,0,.4);
  }
  .callbar .btn { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .js .tilt, .js .tilt-hover { transform: none; opacity: 1; transition: none; }
  .js .tilt .service-icon, .js .tilt h3, .js .tilt .forms { transform: none; }
  .js .reveal, .js .reveal.in, .js .step.reveal::before { opacity: 1; transform: none; transition: none; }
  .js .feature.reveal.in { animation: none; }
  .js .feature .feature-icon, .js .feature h3 { transform: none; }
  .globe-hint { transition: none; }
  .faq-item::details-content { transition: none; }
  .faq-item summary::after { transition: none; }
  .intro { display: none !important; }
  html.is-intro *, html.is-intro-skip * { animation: none !important; }
}

@media print {
  .intro { display: none !important; }
  .site-header, .callbar, .hero-actions, .contact-actions, .globe { display: none !important; }
  .js .tilt, .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero, .about, .contact { background: none; color: var(--ink); }
  .hero h1, .about-copy h2, .verse p, .contact h2, .contact-phone, .contact-card a { color: var(--ink); }
}
