/* ============================================================
   Tappan Zee Web — main stylesheet
   Brand: ice blue (#A9D7EC) on near-black, rounded lowercase type
   ============================================================ */

:root {
  --bg: #0a0d12;
  --bg-2: #0d1119;
  --panel: #111623;
  --panel-2: #141b2b;
  --line: rgba(169, 215, 236, 0.10);
  --line-2: rgba(169, 215, 236, 0.18);
  --ice: #a9d7ec;
  --ice-bright: #cfeaf7;
  --ice-deep: #5aa7cf;
  --text: #e8eef4;
  --muted: #93a3b4;
  --font-display: "Quicksand", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(169, 215, 236, 0.28); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

img { max-width: 100%; }

a { color: inherit; }

/* Gradient text */
.grad {
  background: linear-gradient(100deg, var(--ice-bright) 10%, var(--ice) 45%, var(--ice-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; position: relative; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(120deg, var(--ice-bright), var(--ice) 55%, var(--ice-deep));
  color: #0a1219;
  box-shadow: 0 8px 30px rgba(90, 167, 207, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 44px rgba(90, 167, 207, 0.45); }
.btn--primary:active { transform: translateY(0) scale(0.99); }
.btn--ghost {
  background: rgba(169, 215, 236, 0.06); color: var(--ice);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(169, 215, 236, 0.13); transform: translateY(-3px); }
.btn--big { padding: 18px 38px; font-size: 18px; }
.btn--small { padding: 10px 20px; font-size: 14.5px; }

/* Copy-email button swap states */
#copyEmail .btn__done { display: none; }
#copyEmail.is-copied .btn__default { display: none; }
#copyEmail.is-copied .btn__done { display: inline; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav.is-scrolled {
  background: rgba(10, 13, 18, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ice); text-decoration: none;
}
.nav__cloud { width: 40px; height: 28px; flex: none; filter: drop-shadow(0 0 12px rgba(169, 215, 236, 0.35)); }
.nav__word {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: 0.01em; white-space: nowrap;
}
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  color: var(--muted); text-decoration: none; position: relative;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--ice); border-radius: 2px; transition: right 0.25s ease;
}
.nav__links a:hover { color: var(--ice-bright); }
.nav__links a:hover::after { right: 0; }
.nav__cta { flex: none; }

.nav__burger {
  display: none; flex-direction: column; gap: 6px; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__burger span { width: 26px; height: 2.5px; background: var(--ice); border-radius: 2px; transition: transform 0.3s ease; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: rgba(10, 13, 18, 0.96); backdrop-filter: blur(20px);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  color: var(--text); text-decoration: none;
}

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 108%, rgba(90, 167, 207, 0.22), transparent 70%),
    radial-gradient(45% 35% at 78% -8%, rgba(169, 215, 236, 0.10), transparent 70%),
    linear-gradient(to bottom, rgba(10, 13, 18, 0.55), rgba(10, 13, 18, 0) 30%, rgba(10, 13, 18, 0) 62%, var(--bg) 97%);
}
.hero__content {
  position: relative; z-index: 2; text-align: center;
  padding: 140px 24px 100px; max-width: 980px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.10em; color: var(--ice);
  background: rgba(169, 215, 236, 0.07);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 9px 20px; margin-bottom: 34px;
  backdrop-filter: blur(8px);
}
.hero__badge svg { width: 22px; height: 15px; }
.hero__title {
  font-size: clamp(44px, 8.2vw, 96px);
  line-height: 1.04; margin-bottom: 28px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}
.hero__sub {
  font-size: clamp(17px, 2vw, 21px); color: var(--muted);
  max-width: 640px; margin: 0 auto 42px;
}
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 28px; height: 46px; border: 2px solid var(--line-2); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll-dot {
  width: 5px; height: 9px; border-radius: 3px; background: var(--ice);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(14px); opacity: 0.2; }
}

/* ============ Marquee ============ */
.marquee {
  overflow: hidden; padding: 26px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 44px; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: 0.14em; color: var(--muted); white-space: nowrap;
}
.marquee__track i { color: var(--ice); font-style: normal; font-size: 15px; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: clamp(90px, 12vw, 150px) clamp(20px, 6vw, 72px); max-width: 1280px; margin: 0 auto; }
.section--alt { position: relative; max-width: none; background: var(--bg-2); }
.section--alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; }

.section__head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head h2, .about h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.12; }
.section__sub { color: var(--muted); max-width: 620px; margin: 20px auto 0; font-size: 18px; }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ice);
  margin-bottom: 16px;
}

/* ============ Work cards ============ */
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.work-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 30px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.work-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.work-card h3 { font-size: 22px; margin: 24px 0 8px; }
.work-card p { color: var(--muted); font-size: 15.5px; }

/* Fake browser mockups */
.browser {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0b0f16;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transform: translateZ(30px);
}
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #131926;
  border-bottom: 1px solid var(--line);
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(169, 215, 236, 0.22); }
.browser__bar i:first-child { background: #e8737355; }
.browser__bar i:nth-child(2) { background: #e8c57355; }
.browser__bar i:nth-child(3) { background: #7bc98f55; }
.browser__bar span {
  margin-left: 10px; font-size: 11px; color: var(--muted);
  font-family: var(--font-display); letter-spacing: 0.04em;
  background: rgba(169, 215, 236, 0.05); border-radius: 6px; padding: 2px 10px;
}
.browser__body { padding: 14px; display: grid; gap: 12px; }

.mock-nav { display: flex; align-items: center; justify-content: space-between; }
.mock-nav b { width: 54px; height: 9px; border-radius: 5px; background: var(--accent); opacity: 0.95; }
.mock-nav u { display: flex; gap: 8px; }
.mock-nav s, .mock-row s { text-decoration: none; }
.mock-nav s { width: 26px; height: 6px; border-radius: 4px; background: rgba(232, 238, 244, 0.18); }

.mock-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: center; }
.mock-hero__text { display: grid; gap: 8px; }
.mock-hero__text b { height: 12px; border-radius: 6px; background: rgba(232, 238, 244, 0.5); }
.mock-hero__text b.short { width: 70%; }
.mock-hero__text em { width: 56px; height: 16px; border-radius: 9px; background: var(--accent); }
.mock-hero__img { height: 74px; border-radius: 10px; position: relative; overflow: hidden; }
.mock-img--build { background: linear-gradient(135deg, #3d3425, #191510), repeating-linear-gradient(45deg, #0000, #0000 8px, #e8a54b18 8px, #e8a54b18 10px); }
.mock-img--cafe { background: radial-gradient(circle at 30% 35%, #4a2c2c, #1a1010 75%); }
.mock-img--lawn { background: linear-gradient(160deg, #23422c, #101a12 80%); }
.mock-img--build::after, .mock-img--cafe::after, .mock-img--lawn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 60%);
}
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-row s { height: 34px; border-radius: 8px; background: rgba(169, 215, 236, 0.06); border: 1px solid rgba(169, 215, 236, 0.08); }

/* Stats */
.work-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 64px;
}
.stat {
  text-align: center; padding: 30px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(169, 215, 236, 0.04), transparent);
}
.stat b {
  display: block; font-family: var(--font-display); font-size: 42px; font-weight: 700;
  background: linear-gradient(100deg, var(--ice-bright), var(--ice-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat span { color: var(--muted); font-size: 15px; }

/* ============ Services ============ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.service {
  padding: 34px 30px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.service:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--panel-2); }
.service__icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 22px; color: var(--ice);
  background: rgba(169, 215, 236, 0.08);
  border: 1px solid var(--line-2);
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(169, 215, 236, 0.12);
}
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15.5px; }

/* ============ Plan ============ */
.plan-wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.steps { list-style: none; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 22px;
  padding: 26px 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
.step:hover { border-color: var(--line-2); }
.step__num {
  grid-row: span 2; align-self: start;
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  background: linear-gradient(160deg, var(--ice-bright), var(--ice-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 20px; }
.step p { color: var(--muted); font-size: 15.5px; }

.plan-card {
  position: relative; overflow: hidden;
  padding: 42px 40px; border-radius: 26px;
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 70%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}
.plan-card__glow {
  position: absolute; top: -70px; right: -70px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(169, 215, 236, 0.22), transparent 70%);
  pointer-events: none;
}
.plan-card__label {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--ice);
  margin-bottom: 22px;
}
.plan-card ul { list-style: none; display: grid; gap: 13px; margin-bottom: 32px; }
.plan-card li { padding-left: 32px; position: relative; font-size: 16.5px; }
.plan-card li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ice); font-weight: 700;
  text-shadow: 0 0 12px rgba(169, 215, 236, 0.6);
}

/* ============ About ============ */
.about {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about__text h2 { margin-bottom: 24px; }
.about__text p { color: var(--muted); margin-bottom: 18px; max-width: 540px; }
.about__map {
  padding: 40px 36px; border-radius: 26px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about__map-label {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--ice);
  margin-bottom: 22px;
}
.towns { display: flex; flex-wrap: wrap; gap: 10px; }
.towns span {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(169, 215, 236, 0.07);
  border: 1px solid var(--line-2); color: var(--text);
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.towns span:hover { background: rgba(169, 215, 236, 0.18); transform: translateY(-2px); color: var(--ice-bright); }
.towns__more { opacity: 0.65; font-style: italic; }

/* ============ Contact ============ */
.contact {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(100px, 14vw, 180px) 24px;
  background:
    radial-gradient(55% 60% at 50% 115%, rgba(90, 167, 207, 0.18), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
#contactScene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
}
.contact__inner { position: relative; z-index: 2; }
.contact__cloud {
  width: 84px; height: 58px; color: var(--ice);
  filter: drop-shadow(0 0 30px rgba(169, 215, 236, 0.5));
  margin-bottom: 26px;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.contact h2 { font-size: clamp(36px, 5.4vw, 64px); margin-bottom: 18px; }
.contact p { color: var(--muted); max-width: 520px; margin: 0 auto 40px; font-size: 18px; }
.contact__hint { font-size: 14px !important; margin-top: 18px !important; opacity: 0.75; }

/* ============ Footer ============ */
.footer {
  text-align: center; padding: 60px 24px 44px;
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.footer .nav__brand { justify-content: center; margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: 15px; }
.footer__fine { font-size: 13px !important; opacity: 0.6; margin-top: 8px; }

/* ============ Toast ============ */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translate(-50%, 250%);
  opacity: 0;
  z-index: 300;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  color: #0a1219;
  background: linear-gradient(120deg, var(--ice-bright), var(--ice));
  padding: 14px 28px; border-radius: 999px;
  box-shadow: 0 16px 50px rgba(90, 167, 207, 0.45);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.3s ease;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger siblings */
.work-grid .reveal:nth-child(2), .services-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 0.12s; }
.work-grid .reveal:nth-child(3), .services-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.06s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.18s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .plan-wrap { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__title br { display: none; }
  .hero__title { font-size: clamp(40px, 11vw, 64px); }
  .section__head h2 br, .about h2 br { display: none; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .contact__cloud, .hero__scroll-dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
