/* Otun Group site styles — tokens per CLAUDE.md, layout per DESIGN.md */

/* ============ Brand + layout tokens (see CLAUDE.md + DESIGN.md) ============ */
:root {
  --ink: #182230;
  --cobalt: #2D4FEB;
  --azure: #4F6BFF;
  --mist: #9AA6B8;
  --slate: #66707E;
  --paper: #FFFFFF;
  --deep: #1F2D41;
  --current: #24364E;

  --bg-light: #F6F7F9;                 /* color-mix(ink 3%, paper) */
  --line: rgba(24, 34, 48, .10);
  --line-soft: rgba(24, 34, 48, .06);
  --line-dark: rgba(255, 255, 255, .10);

  --container: 1200px;
  --pad-x: 24px;
  --section: 96px;
  --nav-h: 48px;          /* floating bar height */
  --nav-offset: 68px;     /* top gap + bar + breathing room, for hero/anchor offsets */

  --r-btn: 6px;
  --r-card: 8px;
  --r-pill: 10px;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;

  --fs-h1: clamp(2rem, 0.95rem + 2.9vw, 3.0625rem); /* hero scaled 0.85× at user request */
  --fs-display: clamp(2rem, 0.9rem + 3vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.1rem + 1.8vw, 2.75rem);
  --fs-h2-banner: clamp(1.625rem, 1.1rem + 1.4vw, 2.375rem);
  --fs-sub: 1.1875rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cobalt); }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--azure); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  border-radius: var(--r-btn); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--slate);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--cobalt); color: var(--paper); }
.btn-primary:hover { background: #2543C8; } /* cobalt darkened ~10% toward ink */
.btn-azure { background: var(--azure); color: var(--paper); }
.btn-azure:hover { background: #405BE8; }
.btn-notch { border-radius: var(--r-btn) 0 var(--r-btn) var(--r-btn);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }

/* ============ Nav ============ */
/* Compact floating bar, inset from the edges. Transparent at the top of the page;
   frosted glass once content scrolls beneath it — the blur is always on, so
   whatever passes under the bar frosts automatically. */
.nav {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 100; height: var(--nav-h);
  width: min(1040px, calc(100% - 32px));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .58);
  border-color: var(--line-soft);
  box-shadow: 0 4px 24px rgba(24, 34, 48, .08);
}
.nav .container { padding-inline: 20px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo svg { display: block; }
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--cobalt); }
.nav-cta { padding: 8px 16px; font-size: 14px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--r-btn); padding: 9px 10px; cursor: pointer; color: var(--ink);
}
.nav-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 20px 12px; list-style: none;
  box-shadow: 0 12px 32px rgba(24, 34, 48, .10);
}
.nav-menu.is-open { display: block; }
.nav-menu a {
  display: block; padding: 14px 0; color: var(--ink); text-decoration: none;
  font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line-soft);
}

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-offset) + 71px) 0 54px;
  background-image: radial-gradient(rgba(24, 34, 48, .05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-inner { position: relative; text-align: center; }

/* Hero entrance: staggered fade-up on load (matches reference behavior) */
.hero-enter { animation: rise-in .55s ease-out var(--enter-delay, 0s) both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 9px 15px;
  font-size: 12.5px; color: var(--ink); text-decoration: none;
  box-shadow: 0 2px 12px rgba(24, 34, 48, .05);
  transition: border-color .15s ease;
}
.hero-pill:hover { border-color: rgba(45, 79, 235, .4); }
.hero-pill .divider { width: 1px; height: 14px; background: var(--line); }
.hero-pill .pill-action { color: var(--slate); font-weight: 500; }

.hero h1 {
  font-size: var(--fs-h1); line-height: 1.12; margin: 29px auto 19px; max-width: 17em;
}
.hero h1 .accent { color: var(--cobalt); }

.hero-sub {
  font-size: 1rem; color: var(--slate); max-width: 34em; margin: 0 auto 32px;
}

.hero-cta-row { margin-bottom: 71px; }
.hero-cta-row .btn { padding: 13px 22px; font-size: 14px; }

/* Floating chips: scale-pop in on load, rock gently forever, parallax on scroll.
   Entrance/rock values measured from the reference site (Framer springs). */
.chip-layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); padding: 14px 20px; text-align: left;
  box-shadow: 0 10px 30px rgba(24, 34, 48, .08);
  transform: rotate(var(--tilt, 0deg));
  animation:
    chip-pop .6s cubic-bezier(.2, .7, .3, 1.1) var(--land-delay, 0s) both,
    chip-rock 7s ease-in-out calc(var(--land-delay, 0s) + 1.4s) infinite alternate;
}
@keyframes chip-pop {
  from { opacity: 0; transform: translate(12px, -12px) scale(.9) rotate(var(--tilt, 0deg)); }
  to   { opacity: 1; transform: translate(0, 0) scale(1) rotate(var(--tilt, 0deg)); }
}
@keyframes chip-rock {
  from { transform: translateY(0) scale(1) rotate(var(--tilt, 0deg)); }
  to   { transform: translateY(-4px) scale(1.015) rotate(calc(var(--tilt, 0deg) + 0.4deg)); }
}
.chip-icon {
  display: grid; place-items: center; width: 31px; height: 31px;
  border-radius: 6px; background: rgba(45, 79, 235, .08); color: var(--cobalt);
  flex-shrink: 0;
}
.chip strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.chip small { display: block; font-size: 11.5px; color: var(--slate); margin-top: 2px; }
.chip-l1 { --tilt: -4deg;   --land-delay: .45s; left: -26px; top: 95px; }
.chip-l2 { --tilt: -2deg;   --land-delay: .75s; left: -12px; top: 228px; }
.chip-r1 { --tilt: 3deg;    --land-delay: .6s;  right: -31px; top: 116px; }
.chip-r2 { --tilt: -2.5deg; --land-delay: .9s;  right: -14px; top: 258px; }

/* Coverage strip (replaces reference client-logo row) */
.coverage { margin-top: 8px; }
.coverage-label {
  display: block; text-align: center; font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist);
  margin-bottom: 19px;
}
.coverage-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.coverage-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}
.coverage-group {
  display: flex; align-items: center;
  gap: clamp(34px, 5vw, 75px); padding-right: clamp(34px, 5vw, 75px);
}
.coverage-group span {
  font-size: 14.5px; font-weight: 600; color: var(--slate); opacity: .85;
  letter-spacing: 0.02em; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections shared ============ */
section, #contact { scroll-margin-top: var(--nav-offset); }
.section-pad { padding: var(--section) 0; }

/* ============ Services ============ */
.services { background: var(--bg-light); }
.services-head { margin-bottom: 72px; }
.services-head h2 { font-size: var(--fs-h2); line-height: 1.2; margin-top: 18px; max-width: 14em; }

.panel { border: 1px solid var(--line); display: grid; grid-template-columns: 72px 1fr 72px; background: var(--bg-light); }
.panel-gutter {
  background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(24, 34, 48, .05) 6px 7px);
}
.panel-gutter:first-child { border-right: 1px solid var(--line); }
.panel-gutter:last-child { border-left: 1px solid var(--line); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.svc {
  padding: 30px 28px 44px; background: var(--bg-light);
}
.svc + .svc { border-left: 1px solid var(--line); }
.svc-icon { color: var(--cobalt); margin-bottom: 44px; }
.svc h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.svc p { font-size: 15px; color: var(--slate); line-height: 1.55; max-width: 26em; }

/* Deliverables strip (replaces reference "Trusted by 100+" logo grid) */
.deliverables { border-top: 1px solid var(--line); padding: 72px 40px 80px; text-align: center; }
.deliverables-title { font-family: var(--font-body); font-size: 20px; font-weight: 500; letter-spacing: 0; margin-bottom: 48px; }
.deliverables-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: start;
}
.deliverable { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.deliverable svg { color: var(--slate); opacity: .8; }
.deliverable span { font-size: 15px; font-weight: 600; color: var(--slate); line-height: 1.35; }

/* ============ The problem ============ */
.problem { text-align: center; }
.problem h2 { font-size: var(--fs-display); line-height: 1.15; margin-top: 18px; }
.problem-sub {
  font-size: var(--fs-sub); color: var(--slate); max-width: 26em; margin: 20px auto 72px;
}
.q-rows {
  overflow: hidden; display: grid; gap: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding-bottom: 8px;
}
/* Question rows scroll as slow tickers, alternating direction (reference: ±37px/s) */
.q-row { display: flex; width: max-content; animation: q-scroll var(--row-dur, 46s) linear infinite; }
.q-row.q-reverse { animation-direction: reverse; }
.q-set { display: flex; gap: 16px; padding-right: 16px; flex-shrink: 0; }
@keyframes q-scroll { to { transform: translateX(-50%); } }
.q-chip {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); padding: 12px 18px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(24, 34, 48, .04);
}
.q-chip .q-mark {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  background: rgba(45, 79, 235, .08); color: var(--cobalt);
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.q-ghost {
  flex-shrink: 0; height: 47px; border-radius: var(--r-card);
  background: rgba(24, 34, 48, .045);
}

/* ============ Audit journey carousel ============ */
.journey { padding: 40px 0 32px; }
.journey-shell { position: relative; }
.track {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(24px, calc(50vw - (var(--container) / 2)));
}
.track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; overflow: hidden; flex-shrink: 0;
  width: min(var(--container), calc(100vw - 48px));
  scroll-snap-align: center;
  background: var(--ink); color: var(--paper);
  padding: 68px 48px 56px; text-align: center;
}
.slide::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(860px 520px at 50% 0%, rgba(79, 107, 255, .38), rgba(79, 107, 255, .08) 52%, transparent 70%),
    radial-gradient(120% 90% at 50% 115%, rgba(16, 22, 31, .95), transparent 60%);
}
.slide-decor { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; pointer-events: none; }
.slide-content { position: relative; }
.slide .eyebrow { color: var(--mist); }
.slide h3 {
  font-size: var(--fs-display); line-height: 1.15; letter-spacing: -0.02em;
  max-width: 15em; margin: 22px auto 18px;
}
.slide-sub { color: var(--mist); font-size: var(--fs-sub); max-width: 30em; margin: 0 auto 44px; }

.visual-card {
  width: min(560px, 100%); margin: 0 auto; background: var(--paper);
  border-radius: var(--r-card); overflow: hidden; text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.visual-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--line-soft);
  font-size: 12px; font-weight: 600; color: var(--slate);
}
.visual-card svg { display: block; width: 100%; height: auto; }

.slide-cta-row {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  flex-wrap: wrap; margin-top: 44px;
}
.slide-cta-row p { font-size: 16px; font-weight: 500; }

.c-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: var(--paper);
  border: 1px solid var(--line-dark); border-radius: var(--r-btn); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .15s ease;
}
.c-arrow:hover { background: rgba(255, 255, 255, .28); }
.c-arrow.prev { left: max(36px, calc(50vw - (var(--container) / 2) + 12px)); }
.c-arrow.next { right: max(36px, calc(50vw - (var(--container) / 2) + 12px)); }

.dots { display: flex; justify-content: center; gap: 10px; padding: 28px 0 0; }
.dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(24, 34, 48, .18); padding: 0;
  transition: background-color .15s ease, transform .15s ease;
}
.dots button[aria-current="true"] { background: var(--cobalt); transform: scale(1.25); }

/* ============ CTA banner ============ */
.banner-section { padding: var(--section) 0 calc(var(--section) + 8px); }
.banner {
  position: relative; overflow: hidden; color: var(--paper);
  background:
    radial-gradient(700px 420px at 88% 60%, rgba(79, 107, 255, .28), transparent 65%),
    linear-gradient(140deg, #10161F 0%, var(--ink) 45%, var(--deep) 100%);
  clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%);
  padding: 64px 56px 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  min-height: 360px;
}
.banner-copy { max-width: 30em; display: flex; flex-direction: column; align-items: flex-start; }
.banner h2 { font-size: var(--fs-h2-banner); line-height: 1.25; max-width: 17em; }
.banner-sub { color: var(--mist); opacity: .8; font-size: 15px; margin: 16px 0 44px; max-width: 30em; }
.banner-ghost { flex-shrink: 0; margin-right: 40px; filter: drop-shadow(0 0 28px rgba(79, 107, 255, .45)); }

/* ============ Footer ============ */
.footer { background: var(--ink); color: var(--mist); padding: 88px 0 44px; }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 360px; }
.footer-brand svg { display: block; margin-bottom: 22px; }
.footer-blurb { font-size: 15px; line-height: 1.6; margin-bottom: 26px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-grid; place-items: center; color: var(--mist);
  transition: color .15s ease;
}
.footer-social a:hover { color: var(--paper); }
.footer-contact h3 {
  font-family: var(--font-body); font-size: 20px; font-weight: 600; letter-spacing: 0;
  color: var(--paper); margin-bottom: 20px;
}
.footer-contact a { display: block; text-decoration: none; font-size: 16px; margin-bottom: 10px; }
.footer-contact .contact-email { color: var(--azure); font-weight: 500; }
.footer-contact .contact-email:hover { color: var(--paper); }
.footer-book { margin-top: 22px; font-size: 15px; color: var(--mist); }
.footer-book a { display: inline; color: var(--azure); font-weight: 500; }
.footer-copy { font-size: 13px; margin-top: 96px; }

/* ============ Booking page (book.html) ============ */
.booking { padding: calc(var(--nav-offset) + 52px) 0 var(--section); }
.booking-grid {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 52px; align-items: start;
}
.booking-info .eyebrow { display: block; margin-bottom: 16px; }
.booking-info h1 { font-size: var(--fs-h2); line-height: 1.15; margin-bottom: 26px; }
.booking-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.booking-meta div { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.booking-meta svg { color: var(--cobalt); flex-shrink: 0; }
.booking-info p { color: var(--slate); font-size: 16px; line-height: 1.6; margin-bottom: 16px; max-width: 44ch; }
.booking-note {
  border-left: 3px solid var(--cobalt); padding: 2px 0 2px 16px;
  color: var(--ink); font-weight: 600; margin-top: 26px;
}
.booking-widget {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; box-shadow: 0 12px 44px rgba(24, 34, 48, .07);
}
.calendly-inline-widget { min-width: 320px; height: 700px; }
.booking-fallback { padding: 32px; color: var(--slate); font-size: 15px; }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .chip { display: none; }
}
@media (max-width: 700px) {
  .hero h1 br { display: none; }
  .hero-pill { font-size: 11px; padding: 8px 12px; gap: 9px; white-space: nowrap; }
  .hero-pill .pill-detail { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { padding: 10px 16px; font-size: 14px; }
  .hero { padding-top: calc(var(--nav-offset) + 41px); }
  .hero-cta-row { margin-bottom: 54px; }
  :root { --section: 72px; }
  .services-head { margin-bottom: 48px; }
  .panel { grid-template-columns: 24px 1fr 24px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { padding: 28px 24px 36px; }
  .svc + .svc { border-left: none; border-top: 1px solid var(--line); }
  .svc-icon { margin-bottom: 24px; }
  .deliverables { padding: 48px 24px 56px; }
  .deliverables-row { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .slide { padding: 48px 24px 44px; }
  .c-arrow { display: none; }
  .banner {
    flex-direction: column-reverse; align-items: flex-start; text-align: left;
    padding: 48px 28px 44px; gap: 8px;
    clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
  }
  .banner-ghost { margin: 0 0 8px; align-self: center; }
  .banner-ghost svg { width: 180px; height: 180px; }
  .footer { padding: 64px 0 36px; }
  .footer-copy { margin-top: 64px; }
  .booking-grid { grid-template-columns: 1fr; gap: 32px; }
  .booking-info h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* marquees fall back to static, centered, wrapping rows */
  .coverage-track { width: auto; justify-content: center; }
  .coverage-group { flex-wrap: wrap; justify-content: center; row-gap: 16px; padding-right: 0; }
  .coverage-group[aria-hidden="true"] { display: none; }
  .coverage-marquee { -webkit-mask-image: none; mask-image: none; }
  .q-row { width: auto; justify-content: center; }
  .q-set { flex-wrap: wrap; justify-content: center; row-gap: 16px; padding-right: 0; }
  .q-set[aria-hidden="true"] { display: none; }
  .q-rows { -webkit-mask-image: none; mask-image: none; }
}
