:root {
  --ink: #162033;
  --ink-strong: #0b1020;
  --muted: #5c6576;
  --paper: #ffffff;
  --wash: #f5f7fb;
  --line: #dce2ec;
  --blue: #159fd1;
  --blue-deep: #087aa3;
  --blue-bright: #21b9dc;
  --orange: #ff7900;
  --orange-deep: #f05a00;
  --teal: #55cfd4;
  --teal-deep: #14aebf;
  --logo-gradient: linear-gradient(135deg, #159fd1 0%, #55cfd4 44%, #ff7900 100%);
  --charcoal: #101419;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(22, 32, 51, 0.14);
  --max: 1180px;
  --space: clamp(3.5rem, 8vw, 7rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--blue-deep);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 226, 236, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  position: relative;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: clamp(140px, 15vw, 170px) minmax(0, 1fr) clamp(190px, 24vw, 286px);
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink-strong);
}

.brand img {
  width: clamp(110px, 11vw, 160px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-self: center;
  width: min(100%, 640px);
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  flex: 0 0 auto;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-cta {
  justify-self: end;
  max-width: 100%;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.78rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  box-shadow: 0 12px 28px rgba(255, 121, 0, 0.28);
}

.btn-secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.btn-dark {
  color: #fff;
  background: var(--ink-strong);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: end;
  color: #fff;
  background: #152033 center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 20, 31, 0.84), rgba(8, 122, 163, 0.44) 58%, rgba(255, 121, 0, 0.18)),
    linear-gradient(0deg, rgba(9, 15, 27, 0.74), rgba(85, 207, 212, 0.08) 46%);
}

.hero-home {
  background-image: url("/assets/img/team-table.jpeg");
}

.hero-business {
  background-image: url("/assets/img/team-table.jpeg");
}

.hero-creative {
  background-image: url("/assets/img/creative-strategy.jpeg");
}

.hero-product {
  background-image: url("/assets/img/product-meeting.jpeg");
}

.hero-portfolio {
  background-image: url("/assets/img/system-portfolio.jpeg");
}

.hero-insights {
  background-image: url("/assets/img/company-insights.jpeg");
}

.hero-about,
.hero-contact,
.hero-legal {
  background-image: url("/assets/img/executive-desk.jpeg");
}

.hero-about {
  background-image: url("/assets/img/about-team.jpeg");
}

.hero-inner {
  position: relative;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(6rem, 14vw, 10rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero-content {
  width: min(790px, 100%);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9.2vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.hero p {
  margin: 1.25rem 0 0;
  width: min(720px, 100%);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-proof {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(900px, 100%);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-proof div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
}

.metric {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.83rem;
}

.section {
  padding: var(--space) 0;
}

.section-alt {
  background: var(--wash);
}

.section-dark {
  color: #fff;
  background: var(--charcoal);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.4rem;
}

.section-head h2,
.split h2,
.stack h2,
.legal h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-dark .section-head h2,
.section-dark .split h2,
.section-dark .eyebrow {
  color: #fff;
}

.section-head p,
.split p,
.stack p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.74);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card h3 {
  margin: 0 0 0.7rem;
  color: var(--ink-strong);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--blue-deep);
  font-weight: 850;
}

.accent-card {
  border-top: 4px solid var(--orange);
  box-shadow: 0 18px 50px rgba(255, 121, 0, 0.11);
}

.blue-card {
  border-top: 4px solid var(--blue);
}

.teal-card {
  border-top: 4px solid var(--teal);
}

.image-band {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.2rem, 4vw, 3.5rem);
  align-items: center;
}

.image-band img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--logo-gradient);
  font-weight: 900;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper);
}

.proof-strip div {
  padding: 1.35rem;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  color: var(--ink-strong);
  font-size: 1.6rem;
  line-height: 1;
}

.proof-strip span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tabs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.tab-list button {
  flex: 1 1 160px;
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.tab-list button[aria-selected="true"] {
  color: #fff;
  background: var(--logo-gradient);
}

.tab-panel {
  padding: clamp(1.2rem, 4vw, 2rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.split .stack {
  display: grid;
  gap: 1rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.pill-list li {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 750;
}

.form-panel {
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(22, 32, 51, 0.08);
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink-strong);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.82rem 0.9rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 166, 255, 0.35);
  outline-offset: 2px;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--blue-deep);
  font-weight: 750;
}

.anchor-target {
  display: block;
  position: relative;
  top: -96px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta-band {
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 16% 0%, rgba(85, 207, 212, 0.32), transparent 34%),
    radial-gradient(circle at 96% 16%, rgba(255, 121, 0, 0.32), transparent 30%),
    linear-gradient(135deg, #0b1020 0%, #0c4054 62%, #101419 100%);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.cta-band p {
  width: min(700px, 100%);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  padding: 3rem 0;
  color: rgba(255, 255, 255, 0.74);
  background: var(--charcoal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1.5rem;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 0.8rem;
  color: #fff;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.legal {
  display: grid;
  gap: 1.4rem;
}

.legal h2 {
  margin-top: 1.2rem;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal-summary {
  padding: 1rem;
  border-left: 4px solid var(--orange);
  background: var(--wash);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .nav-cta {
    display: none;
  }

  .hero-proof,
  .proof-strip,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .image-band,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    min-height: 66px;
  }

  .brand img {
    width: min(34vw, 140px);
    height: auto;
    max-height: 64px;
  }

  .brand span {
    position: absolute;
    width: 1px;
    white-space: nowrap;
  }

  .hero {
    min-height: 82svh;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.5rem);
  }

  .hero-proof,
  .proof-strip,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@supports not (backdrop-filter: blur(16px)) {
  .site-header {
    background: #fff;
  }
}
