/* ============================================================
   IDEA DESIGN — styles.css
   Ink Navy #101828 · Machine Orange #FF6B1A · Scene #DDE8F0
   Fonts: Space Grotesk (display) · Inter (body)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #101828;
  --navy-80:     rgba(16, 24, 40, 0.8);
  --orange:      #FF6B1A;
  --orange-10:   rgba(255, 107, 26, 0.10);
  --orange-20:   rgba(255, 107, 26, 0.20);
  --bg:          #DDE8F0;
  --surface:     #FFFFFF;
  --surface-2:   #F4F8FB;
  --clay:        #ECF2F7;
  --clay-dark:   #D5E2EC;
  --text:        #101828;
  --text-muted:  #5C6D85;
  --border:      #DDE8F0;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --shadow-sm:   0 1px 3px rgba(16,24,40,0.08);
  --shadow-md:   0 4px 16px rgba(16,24,40,0.10);
  --shadow-lg:   0 12px 40px rgba(16,24,40,0.14);

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --duration:    0.3s;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
}
/* Light sections: headings inherit navy from body. Dark sections with color:#fff pass white down to headings. */
h1 { font-size: clamp(52px, 7vw, 92px); }
h2 { font-size: clamp(36px, 4.5vw, 56px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
p  { color: var(--text-muted); line-height: 1.7; }

/* ── Layout utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 20px rgba(255,107,26,0.35);
}
.btn--primary:hover {
  background: #e85c0e;
  box-shadow: 0 6px 28px rgba(255,107,26,0.45);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(16,24,40,0.2);
}
.btn--ghost:hover {
  border-color: var(--navy);
  background: rgba(16,24,40,0.04);
}
.btn--outline {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}
.btn--outline:hover {
  background: var(--orange);
  color: white;
}
.btn--large { padding: 18px 36px; font-size: 17px; }

.link-arrow {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
  transition: gap var(--duration);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-arrow:hover { gap: 10px; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: padding var(--duration) var(--ease);
}
.nav.scrolled {
  background: rgba(16, 24, 40, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav.scrolled .nav__inner { padding: 16px 48px; }

.nav__logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
  transition: color var(--duration);
}
.nav__logo span { font-weight: 400; opacity: 0.7; }
.nav.scrolled .nav__logo { color: white; }
.nav.scrolled .nav__logo span { opacity: 0.5; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.03em;
  opacity: 0.8;
  transition: opacity var(--duration), color var(--duration);
}
.nav__links a:hover { opacity: 1; }
.nav.scrolled .nav__links a { color: rgba(255,255,255,0.75); }
.nav.scrolled .nav__links a:hover { color: white; opacity: 1; }

.nav__cta {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  padding: 10px 22px;
  border: 1.5px solid var(--orange);
  border-radius: var(--radius-pill);
  transition: all var(--duration) var(--ease);
}
.nav__cta:hover {
  background: var(--orange);
  color: white;
}

/* ── 3D Canvas ──────────────────────────────────────────────── */
#journey-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  background: transparent;
  padding-top: 80px;
}
.hero__inner {
  padding: 0 48px;
  max-width: 760px;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
}
.hero__title {
  margin-bottom: 24px;
  color: var(--navy);
}
.hero__sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.hero__scroll-hint span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.5;
}
.hero__scroll-arrow {
  font-size: 18px;
  color: var(--orange);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── Journey (scroll-driven 3D section) ─────────────────────── */
.journey {
  height: 600vh;
  position: relative;
}
.journey__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}
.journey__steps {
  position: absolute;
  bottom: 72px;
  left: 48px;
  width: 360px;
  pointer-events: auto;
}
.journey__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  opacity: 0.35;
  transition: opacity 0.5s var(--ease);
  cursor: default;
}
.journey__step.is-active { opacity: 1; }

.journey__number {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.4s var(--ease),
              color 0.4s var(--ease),
              border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.journey__step.is-active .journey__number {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(255,107,26,0.4);
}

.journey__content { flex: 1; }
.journey__content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0;
  line-height: 38px; /* align with number box */
  letter-spacing: -0.01em;
}
.journey__content p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.5s var(--ease),
              opacity 0.4s var(--ease),
              margin-top 0.4s var(--ease);
}
.journey__step.is-active .journey__content p {
  max-height: 120px;
  opacity: 1;
  margin-top: 8px;
}

/* Vertical track line connecting steps */
.journey__steps::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--border);
  z-index: -1;
}

/* ── Services Preview ───────────────────────────────────────── */
.services-preview {
  position: relative;
  z-index: 1;
  background: white;
  padding: 100px 0 80px;
}
.services-preview::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
}
.services-preview__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.service-card {
  background: var(--surface);
  padding: 40px 32px;
  display: block;
  transition: background var(--duration) var(--ease);
  border-left: 3px solid transparent;
  transition: border-color var(--duration), background var(--duration);
}
.service-card:hover {
  background: var(--surface-2);
  border-left-color: var(--orange);
}
.service-card__num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.service-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* ── Trust strip ────────────────────────────────────────────── */
.trust-strip {
  position: relative;
  z-index: 1;
  background: var(--navy);
  padding: 28px 0;
}
.trust-strip__items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.01em;
}
.trust-item__icon {
  color: var(--orange);
  font-size: 16px;
}

/* ── Work teaser ────────────────────────────────────────────── */
.work-teaser {
  position: relative;
  z-index: 1;
  background: white;
  padding: 100px 0;
}
.work-teaser h2 { margin-bottom: 48px; }
.work-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.work-placeholder {
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--clay);
  border: 1.5px dashed var(--clay-dark);
  transition: border-color var(--duration);
}
.work-placeholder:hover { border-color: var(--orange); }
.work-placeholder__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-placeholder__inner span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.6;
}
.work-teaser__cta { text-align: center; }
.work-photo {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.work-photo:hover img { transform: scale(1.04); }
.work-photo__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 18px 14px;
  background: linear-gradient(to top, rgba(16,24,40,0.78), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ── Static journey map ghost in subpage heros ──────────────── */
.page-hero, .work-hero, .about-hero, .contact-left {
  position: relative;
  overflow: hidden;
}
.page-hero .container, .work-hero .container, .about-hero .container,
.contact-left > :not(.hero-map-canvas) {
  position: relative;
  z-index: 1;
}
.hero-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
}

/* ── Nav dropdown (Work / Cases sections) ───────────────────── */
.nav__item--dropdown {
  position: relative;
  display: inline-block;
}
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 300;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
}
.nav__dropdown-panel {
  background: rgba(16, 24, 40, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  min-width: 270px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.35);
}
.nav__dropdown-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav__dropdown-panel a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--orange);
}
@media (max-width: 768px) {
  .nav__dropdown { display: none; }
}

/* ── Lightbox (click an image to view it large) ─────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.93);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  cursor: zoom-out;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* ── CTA section ────────────────────────────────────────────── */
.cta-section {
  position: relative;
  z-index: 1;
  background: var(--navy);
  padding: 120px 0;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,26,0.12), transparent 70%);
  pointer-events: none;
}
.cta-section__inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}
.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 48px;
}
.cta-section .btn--primary { margin-bottom: 32px; }
.cta-section__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
}
.cta-section__contact a {
  color: rgba(255,255,255,0.65);
  transition: color var(--duration);
}
.cta-section__contact a:hover { color: white; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: #0A1120;
  padding: 72px 0 40px;
}
.footer__inner {
  display: flex;
  gap: 80px;
  margin-bottom: 64px;
}
.footer__brand { flex: 0 0 260px; }
.footer__brand .nav__logo { display: block; margin-bottom: 16px; color: white; }
.footer__brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}
.footer__cvr {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.25) !important;
}
.footer__nav {
  display: flex;
  gap: 64px;
  flex: 1;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration);
}
.footer__col a:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
}
.footer__bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.2);
}

/* ── No-3D fallback (prefers-reduced-motion or mobile) ─────── */
.no-3d #journey-canvas { display: none !important; }
.no-3d body { background: var(--bg); }
.no-3d .hero { background: var(--bg); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { gap: 48px; }
}

@media (max-width: 768px) {
  h1 { font-size: clamp(40px, 10vw, 64px); }

  .nav__inner { padding: 20px 24px; }
  .nav__links { display: none; }
  .nav.scrolled .nav__inner { padding: 14px 24px; }

  .hero__inner { padding: 0 24px; }
  .hero__scroll-hint { left: 24px; }
  .hero__sub { font-size: 16px; }

  .journey__steps {
    left: 24px;
    right: 24px;
    width: auto;
    bottom: 40px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .services-preview__header { flex-direction: column; gap: 16px; align-items: flex-start; }

  .work-teaser__grid { grid-template-columns: 1fr; }

  .trust-strip__items { gap: 16px; }
  .trust-item { font-size: 12px; }

  .footer__inner { flex-direction: column; gap: 48px; }
  .footer__brand { flex: none; }
  .footer__nav { gap: 40px; flex-wrap: wrap; }

  .cta-section__contact { flex-direction: column; gap: 8px; }

  #journey-canvas { display: none; }
  body { background: var(--bg); }
}
