/* Ingamana-style touches mixed into the existing AllOnce site.
   Goal: editorial wordmark + horizontal marquee + year-aligned work list,
   blended into the existing layout (no removal of the colored cards / wave).
*/

:root {
  --ig-display: "Inter", "Geist", system-ui, -apple-system, sans-serif;
  --ig-meta: #ffffff;
  --ig-rule: #e6e6e6;
  --el-blue: #22c55e; /* travelplace travel-green, 2026-05-27 */
  --el-blue-bright: #22c55e;
}

/* Electric-blue accent on landing */
.ig-kicker::before {
  background: var(--el-blue) !important;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}
.ig-work-row:hover {
  color: var(--el-blue) !important;
}
.ig-work-row:hover .ig-name {
  color: var(--el-blue) !important;
}
.ig-work-row::after {
  color: var(--el-blue);
}

/* ─── Section spacing utility ─────────────────────────────── */
.ig-section {
  padding: clamp(60px, 8vw, 140px) 0;
  position: relative;
}
.ig-section + .ig-section {
  padding-top: 0;
}
.ig-kicker {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.ig-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  display: inline-block;
}

/* ─── 1. Massive edge-to-edge wordmark ────────────────────── */
.ig-wordmark-block {
  width: 100%;
  padding: clamp(80px, 11vw, 180px) 0 clamp(40px, 5vw, 80px);
  text-align: center;
  position: relative;
}
/* Wrapper crops the SVG's empty top/bottom whitespace
   so the logo can be MUCH wider without inflating the section height. */
.ig-wordmark {
  display: block;
  width: clamp(400px, 96vw, 1900px);
  margin: 0 auto;
  aspect-ratio: 720 / 320; /* keep ~roughly the content's visual ratio */
  position: relative;
  overflow: hidden;
}
.ig-wordmark-svg {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
  display: block;
}
.ig-wordmark sup {
  font-size: 0.16em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 0.06em;
  margin-top: 0.18em;
}
.ig-wordmark-meta {
  display: flex;
  justify-content: space-between;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-top: 24px;
  padding: 0 6vw;
}
.ig-wordmark-meta span {
  color: #ffffff;
}

/* ─── 2. Horizontal marquee — capabilities tape ──────────── */
.ig-marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(18px, 2vw, 28px) 0;
  background: transparent;
  position: relative;
}
.ig-marquee-track {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  width: max-content;
  animation: ig-marquee-scroll 38s linear infinite;
  will-change: transform;
}
.ig-marquee:hover .ig-marquee-track {
  animation-play-state: paused;
}
.ig-marquee-track > * {
  flex: 0 0 auto;
}
.ig-tag {
  font-family: var(--ig-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 64px);
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-block;
  background: transparent;
}
.ig-tag.ig-tag--ghost {
  color: #ffffff;
  -webkit-text-stroke: 0;
  background: transparent;
}
.ig-dot {
  width: clamp(10px, 1vw, 14px);
  height: clamp(10px, 1vw, 14px);
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}
@keyframes ig-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ─── 3. Year-aligned project list ────────────────────────── */
.ig-work {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 9fr);
  gap: clamp(20px, 4vw, 60px);
  padding: 0 clamp(20px, 4vw, 64px);
}
.ig-work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ig-rule);
}
.ig-work-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: baseline;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(16px, 1.6vw, 22px) 0;
  border-bottom: 1px solid var(--ig-rule);
  font-family: var(--ig-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  color: #000;
  text-decoration: none;
  position: relative;
  transition: padding-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ig-work-row:hover {
  padding-left: 16px;
}
.ig-work-row .ig-num {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0;
}
.ig-work-row .ig-name {
  color: #000;
}
.ig-work-row .ig-tagline {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0;
  text-align: right;
  max-width: 38ch;
}
.ig-work-row .ig-year {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0;
  min-width: 40px;
  text-align: right;
}
.ig-work-row::after {
  content: "↗";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translate(20px, -50%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s;
  font-size: 0.6em;
}
.ig-work-row:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (max-width: 760px) {
  .ig-work {
    grid-template-columns: 1fr;
  }
  .ig-work-row {
    grid-template-columns: 22px 1fr auto;
  }
  .ig-work-row .ig-tagline {
    display: none;
  }
  .ig-work-row {
    font-size: 22px;
  }
}

/* ─── 4. Letter-by-letter reveal helper ───────────────────── */
.ig-stagger {
  display: inline-flex;
}
.ig-stagger > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ig-stagger.in-view > span {
  transform: translateY(0);
}
.ig-stagger > span:empty {
  width: 0.28em;
} /* preserved space */

/* Note: the existing site headlines (e.g. "Your whole business / all at once / one backend")
   keep the original Inter/Geist face — Space Grotesk is reserved for the new ingamana-style
   wordmark, marquee, and work-list elements only. */
