/* ==========================================================================
   Veloxitas Agency — base styles
   ========================================================================== */

:root {
  --navy: #0b1220;
  --navy-soft: #101b2c;
  --teal: #08534f;
  --teal-light: #1f8f6f;
  --accent: #db2f0e;
  --accent-dark: #b8280c;
  --cream: #faf8f5;
  --paper: #ffffff;
  --gray-band: #eef0ec;
  --ink: #14201f;
  --ink-soft: #4b5a58;
  --line: rgba(20, 32, 31, 0.1);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container: 1440px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 60px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 8px 20px rgba(226, 83, 29, 0.35); }

.btn-dark { background: var(--teal); color: #fff; }
.btn-dark:hover { background: #0c3d38; box-shadow: 0 8px 20px rgba(15, 76, 70, 0.3); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #352223 0%, #24292d 50%, #095650 100%);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.logo-mark { width: 20px; height: 20px; color: var(--accent); }
.logo-text { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); }
.logo-text strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.logo-text em { font-size: 0.68rem; font-style: normal; text-transform: uppercase; letter-spacing: 0.14em; color: #10b08a; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: #fff; }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 0 auto; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  background: var(--navy);
}
.mobile-menu a { padding: 10px 0; color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu .btn { margin-top: 10px; justify-content: center; }
.mobile-menu.is-open { display: flex; }

.promo-bar {
  background: var(--teal);
  text-align: center;
  padding: 9px 16px;
}
.promo-bar-link {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.promo-bar-link:hover { color: rgba(255,255,255,0.8); }

/* Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0b1220;
  padding: 72px 0 150px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  padding-top: 22px;
  margin-bottom: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Overlapping hero stage — absolutely positioned to the exact Figma layout.
   Percentages below are Figma's px coordinates (1320x646 "Hero Top" content
   box, 1440x955 full Hero for the two badge chips) converted to percentages
   of that box, then re-based onto one shared box (this element). Keeping
   .hero-stage at that fixed aspect ratio means every child's position and
   size stays exactly proportional at any width. */
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1320 / 646;
}

.hero-line {
  position: absolute;
  font-size: clamp(1.8rem, 4.2vw, 3.75rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  z-index: 2;
}
.hero-line-1 { left: 12.5%; top: 17.49%; text-align: left; }
.hero-line-2 { right: 15.08%; top: 76.32%; text-align: right; }
.hero-title-accent { color: #fff; }

/* Mobile-only combined heading/tagline — swapped in for the split
   hero-line-1/hero-line-2 + chip cards, which only make sense laid
   out over the portrait at desktop widths. Hidden by default. */
.hero-mobile-heading,
.hero-mobile-tagline { display: none; }

.hero-portrait-wrap {
  position: absolute;
  left: 37.8%;
  top: 4.02%;
  width: 28.11%;
  height: 94.74%;
  z-index: 1;
}
.hero-portrait {
  width: 100%;
  height: 100%;
  /* A fixed radius bigger than half the width auto-clamps to a semicircle
     at top/bottom while the sides stay straight — a capsule, not an ellipse. */
  border-radius: 190px;
  overflow: hidden;
  filter: drop-shadow(0 24px 44px rgba(0,0,0,0.45));
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

.hero-chip {
  position: absolute;
  display: flex;
  box-shadow: 0 18px 36px rgba(0,0,0,0.35);
  z-index: 3;
}
.hero-chip-strategy {
  left: 20.91%;
  top: 63.16%;
  width: 23.79%;
  height: 20.59%;
  padding: 0 24px 0 22px;
  border-radius: 10px;
  align-items: center;
  gap: 11px;
  background: #fafafa;
  color: #182431;
}
.badge-dot {
  width: 96px;
  height: 84px;
  background: #08534f;
  flex-shrink: 0;
}
.hero-chip-agency {
  left: 63.86%;
  top: 19.5%;
  width: 15.38%;
  height: 33.13%;
  padding: 46px 20px 29px 23px;
  border-radius: 20px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 18px;
  background: #fafafa;
  color: #182431;
}
.badge-bar { width: 100%; height: 44px; background: #db2f0e; }
.hero-chip-strategy .hero-chip-label { font-weight: 500; }
.hero-chip-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .hero-stage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .hero-line, .hero-chip { display: none; }
  .hero-mobile-heading {
    display: block;
    order: 1;
    font-size: clamp(1.7rem, 7.5vw, 2.6rem);
    line-height: 1.15;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
  }
  .hero-portrait-wrap { position: static; width: 220px; height: auto; margin: 12px 0; order: 2; }
  .hero-portrait { aspect-ratio: 3 / 5; }
  .hero-mobile-tagline {
    display: block;
    order: 3;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    margin: 0;
  }
}

/* Section shells ----------------------------------------------------- */

.section { padding: 96px 0; scroll-margin-top: 138px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-title.center { text-align: center; }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 640px; }
.section-lead.center { margin: 0 auto; text-align: center; }
.services-lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  max-width: 720px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 10px;
}

/* Services grid -------------------------------------------------------- */

.services-row {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  flex: 1 1 220px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.service-card:hover { background: #fffaf6; }
.service-icon { width: 30px; height: 30px; color: var(--teal); margin-bottom: 16px; }
.service-card h3 { font-size: 0.98rem; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 0.86rem; margin: 0; }

/* Approach --------------------------------------------------------------- */

.section-approach { background: var(--paper); }

.approach-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.approach-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.approach-note { color: var(--ink-soft); font-size: 0.88rem; }

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stage-card {
  position: relative;
  border-radius: var(--radius);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(155deg, #12403a 0%, #0b1220 100%);
}
.stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.stage-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,12,17,0.92) 0%, rgba(6,12,17,0.35) 55%, rgba(6,12,17,0) 80%);
  z-index: 1;
}
.stage-caption { position: relative; z-index: 2; padding: 28px; }
.stage-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 60px;
}
.stage-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.stage-card p { font-size: 0.9rem; color: rgba(255,255,255,0.82); margin: 0; }

/* Global band — glowing globe hero ------------------------------------------ */

.section-globe {
  position: relative;
  overflow: hidden;
  background: #050b0a;
  padding-top: 88px;
  min-height: 680px;
}
.globe-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  pointer-events: none;
}
.globe-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5,11,10,0.65) 0%, rgba(5,11,10,0.2) 40%, rgba(5,11,10,0.05) 65%, rgba(5,11,10,0.35) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .globe-video { display: none; }
  .section-globe { background: #050b0a url('assets/globe-video-poster.jpg') center 70% / cover no-repeat; }
}
.globe-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.globe-heading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  max-width: 540px;
  margin: 0;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.globe-side { max-width: 280px; padding-top: 6px; }
.globe-note {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.globe-pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(3,12,10,0.75);
  border: 1px solid rgba(61,255,184,0.4);
  color: #baffe4;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  backdrop-filter: blur(4px);
}
.globe-cta { flex-shrink: 0; }

@media (max-width: 900px) {
  .section-globe { padding-top: 56px; min-height: 560px; padding-bottom: 64px; }
  .globe-top { flex-direction: column; align-items: flex-start; }
  .globe-video { object-position: center 60%; }
}

/* Time / currency ------------------------------------------------------------- */

.section-time { background: #2b1810; overflow: hidden; }
.time-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 0.85fr;
  align-items: center;
  gap: 32px;
  padding: 56px 0;
}
.time-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.time-heading em { font-style: italic; color: #f0a875; }
.time-art { width: 100%; border-radius: 12px; }
.time-copy {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.time-copy strong { color: #fff; font-weight: 700; }

@media (max-width: 900px) {
  .time-inner { grid-template-columns: 1fr; text-align: center; padding: 48px 0; }
}

/* Clients / logos ----------------------------------------------------------- */

.section-clients { padding: 72px 0; overflow: hidden; }
.clients-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 36px;
}

.logo-marquee {
  display: flex;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding-right: 16px;
  animation: marquee 60s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  width: 132px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}
.logo-track li:hover { border-color: var(--teal); }
.logo-track img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* About --------------------------------------------------------------------- */

.section-about { background: var(--paper); }
.about-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.about-photo {
  position: sticky;
  top: 120px;
  width: 260px;
  height: 429px;
  /* Same capsule construction as the hero portrait: a fixed radius
     bigger than half the width clamps to a semicircle top/bottom
     while the sides stay straight. Matches Figma's 371x612 shape. */
  border-radius: 140px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--teal) 0%, var(--navy) 100%);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.about-heading { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 24px; }
.about-copy p { color: var(--ink-soft); }
.about-copy .btn-outline { margin-top: 8px; }

/* Contact / coming soon ------------------------------------------------------ */

.section-contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0e2a26 0%, var(--navy) 70%);
  color: #fff;
  text-align: center;
  padding: 110px 0;
}
.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.contact-inner { position: relative; }
.contact-inner h2 {
  font-size: clamp(1.8rem, 4.4vw, 3.1rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.contact-inner p {
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 32px;
}
.contact-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.contact-email { color: rgba(255,255,255,0.7); font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; }

/* Contact form ----------------------------------------------------------------- */

.section-form { background: var(--paper); }
.form-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.form-copy { max-width: 380px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-row input,
.form-row textarea {
  font: inherit;
  font-family: var(--font-body);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-form .btn { align-self: flex-start; }
.contact-form .btn:disabled { opacity: 0.65; cursor: not-allowed; }
.form-status { font-size: 0.9rem; font-weight: 600; min-height: 1.2em; margin: 0; }
.form-status.is-success { color: var(--teal-light); }
.form-status.is-error { color: #b3413a; }

/* Footer ---------------------------------------------------------------------- */

.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.site-footer .logo { color: #fff; margin-right: 0; }
.footer-inner nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-inner nav a { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.footer-inner nav a:hover { color: #fff; }
.footer-copy { font-size: 0.82rem; margin: 0; color: rgba(255,255,255,0.45); }

/* Scroll reveal ---------------------------------------------------------------- */

.reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-pending.is-visible { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------------- */

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-photo { position: static; margin: 0 auto; }
  .approach-head { align-items: flex-start; }
  .approach-cta { align-items: flex-start; text-align: left; }
  .form-inner { grid-template-columns: 1fr; }
  .form-copy { max-width: none; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 60px; }
  .hero-eyebrow { flex-direction: column; gap: 8px; }
}
