/* TRICKS International — design system */
:root {
  --navy: #0b1323;
  --navy-2: #121d33;
  --navy-3: #1a2742;
  --blue: #4daeff;
  --blue-ink: #1b6fd1;
  --blue-soft: #eaf4ff;
  --ink: #0b1323;
  --text: #3a4456;
  --muted: #5b6576;
  --line: #e3e7ee;
  --surface: #f5f7fa;
  --white: #fff;
  --on-dark: #c9d3e1;
  --on-dark-muted: #93a1b5;
  --line-dark: #22304b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px #0b13230d, 0 12px 32px #0b132314;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --section: clamp(4.5rem, 9vw, 7.5rem);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

}

body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-ink);
  text-underline-offset: .2em;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  letter-spacing: -.04em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -.015em;
  line-height: 1.25;
}

p {
  margin: 0;
}

em.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: .75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 50px;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background-color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}

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

.btn-sm {
  min-height: 42px;
  padding: .55rem 1.15rem;
  font-size: .95rem;
}

.btn-primary {
  background: var(--blue);
  color: var(--navy);
  box-shadow: 0 6px 20px #4daeff40;
}

.btn-primary:hover {
  background: #6fbdff;
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: #ffffff40;
}

.btn-ghost:hover {
  border-color: var(--white);
  background: #ffffff10;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: #0b132333;
}

.btn-outline:hover {
  border-color: var(--navy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform .2s;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.dark .link-arrow {
  color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0b1323e6;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid #ffffff12;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 1.1rem;
  line-height: 1;
}

.logo img {
  width: 44px;
  height: 44px;
}

.logo small {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: .3rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.site-nav a:not(.btn) {
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: .97rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}

.site-nav a:not(.btn):hover {
  color: var(--white);
  background: #ffffff0f;
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  background: #ffffff14;
}

.site-nav .btn {
  margin-left: .75rem;
}

.menu-button {
  display: none;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid #ffffff33;
  background: transparent;
  color: var(--white);
  font: 700 .95rem var(--sans);
  cursor: pointer;
}

.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .2s;
}

.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

.menu-button[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-button[aria-expanded="true"] .menu-icon::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 920px) {
  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem 24px 1.5rem;
    background: var(--navy);
    border-bottom: 1px solid #ffffff14;
  }

  .site-nav[hidden] {
    display: none;
  }

  .site-nav a:not(.btn) {
    padding: .85rem 1rem;
    font-size: 1.05rem;
  }

  .site-nav .btn {
    margin: .75rem 0 0;
  }

}

/* Sections */
.section {
  padding-block: var(--section);
}

.section-muted {
  background: var(--surface);
}

.dark {
  background: var(--navy);
  color: var(--on-dark);
}

.dark h1, .dark h2, .dark h3 {
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.dark .eyebrow {
  color: var(--blue);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head > div {
  max-width: 680px;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  margin-top: 1.1rem;
}

.dark .lead {
  color: var(--on-dark);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

@media (max-width: 960px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(60% 70% at 85% 10%, #1d4f8f55, transparent 70%), radial-gradient(40% 50% at 0% 100%, #4daeff1f, transparent 70%), var(--navy);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero .lead {
  max-width: 560px;
  margin-top: 1.5rem;
}

.hero .btn-row {
  margin-top: 2.2rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
  font-size: .95rem;
  color: var(--on-dark);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero-points li::before, .check-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b1323' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.hero-media {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: clamp(380px, 42vw, 540px);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px #00000059;
}

.hero-media img:first-child {
  grid-row: span 2;
}

.hero-badge {
  position: absolute;
  left: -22px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--white);
  color: var(--navy);
  border-radius: 14px;
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow);
  font-size: .9rem;
  line-height: 1.35;
}

.hero-badge strong {
  display: block;
  font-size: 1rem;
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px #22c55e26;
  flex: none;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    height: 360px;
  }

  .hero-badge {
    left: 12px;
  }

}

@media (max-width: 520px) {
  .hero-media {
    height: 280px;
    gap: 10px;
  }

}

/* Platforms strip */
.platforms {
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
  padding-block: 1.6rem;
}

.platforms .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 2.6rem;
}

.platforms p {
  font-size: .85rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.platforms ul {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.platforms li {
  color: #dbe3ee;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  opacity: .8;
}

/* Cards */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card p {
  margin-top: .6rem;
  color: var(--muted);
}

.card .link-arrow {
  margin-top: 1.4rem;
}

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.card:hover, .card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.section-muted .card {
  border-color: transparent;
  box-shadow: 0 1px 2px #0b13230a;
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue-ink);
  margin-bottom: 1.4rem;
}

.icon svg {
  width: 26px;
  height: 26px;
}

.dark .card {
  background: var(--navy-2);
  border-color: var(--line-dark);
}

.dark .card p {
  color: var(--on-dark);
}

.dark .icon {
  background: #4daeff1a;
  color: var(--blue);
}

/* Check list */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: .75rem;
}

.check-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.check-list li::before {
  margin-top: .25rem;
}

/* Split feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  border-radius: 22px;
}

.split .btn-row {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-media img {
    aspect-ratio: 3 / 2;
  }

}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blue-ink);
  margin-bottom: 1.2rem;
}

.steps h3 {
  margin-bottom: .45rem;
}

.steps p {
  color: var(--muted);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }

}

/* Work cards */
.work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.work-card figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-card .tag {
  margin-top: 1.2rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-ink);
}

.work-card h3 {
  margin-top: .4rem;
  font-size: 1.35rem;
}

.work-card p {
  margin-top: .4rem;
  color: var(--muted);
}

/* Value list */
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.values > div {
  padding: 2rem 1.6rem 0 0;
}

.values h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

@media (max-width: 960px) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 560px) {
  .values {
    grid-template-columns: 1fr;
  }

}

/* Pricing */
.price-card {
  display: flex;
  flex-direction: column;
}

.price-card .price {
  margin-top: 1.2rem;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: 1;
}

.price-card .price small {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.price-card .from {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}

.price-card .check-list {
  margin-bottom: 1.8rem;
  font-size: .98rem;
}

.price-card .btn {
  margin-top: auto;
  align-self: stretch;
}

.price-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-dark);
}

.price-card.featured h3, .price-card.featured .price {
  color: var(--white);
}

.price-card.featured p, .price-card.featured .price small, .price-card.featured .from {
  color: var(--on-dark-muted);
}

.badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: var(--blue);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 800;
  padding: .3rem .7rem;
  border-radius: 999px;
}

.note {
  margin-top: 1.6rem;
  font-size: .95rem;
  color: var(--muted);
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue-ink);
  transition: transform .2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 1.4rem;
  color: var(--muted);
  max-width: 62ch;
}

@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
  }

}

/* Page hero */
.page-hero {
  background: radial-gradient(55% 80% at 90% 0%, #1d4f8f4d, transparent 70%), var(--navy);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.page-hero .lead {
  max-width: 640px;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.jump-links a {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid #ffffff2b;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}

.jump-links a:hover {
  color: var(--white);
  border-color: #ffffff80;
}

/* Service rows */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.service-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-row .lead {
  margin-top: .9rem;
}

.service-row .best-for {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--navy);
  font-size: .97rem;
}

.service-row .btn {
  margin-top: 1.6rem;
}

.included {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.included h3 {
  font-size: 1rem;
  letter-spacing: .02em;
}

.included + .included {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .service-row {
    grid-template-columns: 1fr;
  }

}

/* Work rows */
.work-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  scroll-margin-top: 90px;
}

.work-row:nth-child(even) .work-row-media {
  order: 2;
}

.work-row-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 22px;
}

.work-row dl {
  margin: 1.6rem 0 0;
  display: grid;
  gap: 1rem;
}

.work-row dt {
  font-weight: 800;
  color: var(--ink);
  font-size: .95rem;
}

.work-row dd {
  margin: .2rem 0 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .work-row {
    grid-template-columns: 1fr;
  }

  .work-row:nth-child(even) .work-row-media {
    order: 0;
  }

}

/* Prose (legal, blog) */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 .6rem;
}

.prose p, .prose li {
  color: var(--text);
  line-height: 1.75;
}

.prose p + p {
  margin-top: 1rem;
}

.prose ul {
  padding-left: 1.2rem;
  margin: .6rem 0 0;
}

.prose li + li {
  margin-top: .4rem;
}

.updated {
  color: var(--muted);
  font-size: .95rem;
}

.article {
  padding: clamp(1.8rem, 3vw, 2.5rem);
}

.article h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin-bottom: .8rem;
}

.article .meta {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: .8rem;
}

.article p + p {
  margin-top: .9rem;
}

/* Report (case studies) */
.report {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.report-head p {
  margin-top: .3rem;
}

.report label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  display: grid;
  gap: .3rem;
}

.readout {
  margin-top: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: .8rem;
  flex-wrap: wrap;
}

.readout strong {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
}

.readout span {
  color: #15803d;
  font-weight: 700;
}

#trend {
  width: 100%;
  height: 260px;
  margin-top: 1rem;
}

.data-table {
  margin-top: 1rem;
}

.data-table summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue-ink);
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .8rem;
  font-size: .95rem;
}

.data-table th, .data-table td {
  text-align: left;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
}

.donut {
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 1.6rem auto;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--navy) 0 42%, var(--blue) 42% 70%, #8fa3c0 70% 90%, #cfe6ff 90%);
}

.donut div {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-content: center;
  text-align: center;
}

.donut strong {
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1;
}

.donut span {
  font-size: .8rem;
  color: var(--muted);
}

.legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
}

.legend li {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.legend li strong {
  margin-left: auto;
  color: var(--ink);
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: none;
}

.legend li:nth-child(1) i {
  background: var(--navy);
}

.legend li:nth-child(2) i {
  background: var(--blue);
}

.legend li:nth-child(3) i {
  background: #8fa3c0;
}

.legend li:nth-child(4) i {
  background: #cfe6ff;
}

@media (max-width: 900px) {
  .report {
    grid-template-columns: 1fr;
  }

}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form label {
  display: grid;
  gap: .45rem;
  font-weight: 700;
  font-size: .93rem;
  color: var(--ink);
}

.form input:not([type=checkbox]), .form select, .form textarea {
  width: 100%;
  min-height: 50px;
  padding: .8rem 1rem;
  border: 1px solid #cfd6e1;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: 400 1rem var(--sans);
  transition: border-color .2s, box-shadow .2s;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form select {
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b1323' stroke-width='1.6'/%3E%3C/svg%3E") right 1rem center/12px no-repeat;
  padding-right: 2.5rem;
}

.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--blue-ink);
  box-shadow: 0 0 0 4px #4daeff33;
}

.form :user-invalid {
  border-color: #c62828;
}

.form fieldset {
  border: 1px solid #cfd6e1;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem 1.1rem;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem 1rem;
}

.form legend {
  font-weight: 700;
  font-size: .93rem;
  color: var(--ink);
  padding-inline: .3rem;
}

.form .option {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-weight: 500;
  color: var(--text);
}

.form input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: .2rem 0 0;
  accent-color: var(--blue-ink);
  flex: none;
}

.form .btn {
  justify-self: start;
}

.form-note {
  font-size: .9rem;
  color: var(--muted);
}

.form-status {
  min-height: 1.5em;
  font-weight: 600;
}

.form-status.is-error {
  color: #b71c1c;
}

.form button[disabled] {
  opacity: .65;
  cursor: progress;
  transform: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .form-grid, .form fieldset {
    grid-template-columns: 1fr;
  }

  .form .btn {
    justify-self: stretch;
  }

}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-aside h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.next-steps {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 1.3rem;
  counter-reset: n;
}

.next-steps li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 1rem;
}

.next-steps li::before {
  content: counter(n);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

.next-steps strong {
  color: var(--ink);
}

.next-steps span {
  color: var(--muted);
}

.office-card address {
  font-style: normal;
  margin-top: 1rem;
  color: var(--text);
}

.office-card .flag {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-ink);
}

.office-card h3 {
  font-size: 1.6rem;
  margin-top: .4rem;
}

.office-details {
  margin: 1.4rem 0 0;
  display: grid;
  gap: .7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.office-details div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: .8rem;
}

.office-details dt {
  font-weight: 700;
  color: var(--muted);
  font-size: .95rem;
}

.office-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.office-details a {
  font-weight: 700;
  color: var(--ink);
}

.tz {
  display: block;
  color: var(--muted);
  font-size: .88rem;
}

.office-card .btn {
  margin-top: 1.6rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

}

/* CTA band */
.cta-band {
  background: var(--white);
  padding-block: 0 var(--section);
}

.section-muted + .cta-band {
  background: var(--surface);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  border-radius: 26px;
  background: radial-gradient(60% 120% at 100% 0%, #1d4f8f80, transparent 70%), var(--navy);
}

.cta-inner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.cta-inner p {
  color: var(--on-dark);
  margin-top: .6rem;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--on-dark);
  padding: 4.5rem 0 6rem;
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

.footer-grid > div {
  display: grid;
  gap: .55rem;
  align-content: start;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 34ch;
  color: var(--on-dark-muted);
}

.site-footer h2 {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-offices > div {
  display: grid;
  gap: .3rem;
}

.footer-offices > div + div {
  margin-top: 1rem;
}

.footer-offices strong {
  color: var(--white);
}

.footer-offices address {
  font-style: normal;
  color: var(--on-dark-muted);
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: .88rem;
}

.footer-legal nav {
  display: flex;
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand, .footer-offices {
    grid-column: 1 / -1;
  }

}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 52px;
  padding: .75rem 1.2rem;
  border-radius: 999px;
  background: #25d366;
  color: var(--navy) !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 30px #0b132340;
  transition: transform .2s;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .whatsapp-float {
    padding: .8rem;
  }

  .whatsapp-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

}

/* Page-specific helpers */
.custom-plan {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.report select {
  min-height: 44px;
  padding: .5rem 2.4rem .5rem .9rem;
  border: 1px solid #cfd6e1;
  border-radius: 10px;
  font: 600 .95rem var(--sans);
  color: var(--ink);
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b1323' stroke-width='1.6'/%3E%3C/svg%3E") right .8rem center/11px no-repeat;
}

.hero-actions {
  margin-top: 2rem;
}

/* Full navigation with Services dropdown */
.site-header .header-bar {
  max-width: 1360px;
  width: calc(100% - 40px);
}

.site-nav {
  gap: 0;
}

.site-nav a:not(.btn) {
  padding: .5rem .6rem;
  font-size: .9rem;
  white-space: nowrap;
}

.site-nav .btn {
  margin-left: .6rem;
}

.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  width: 22px;
  height: 32px;
  margin-left: -6px;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  border-radius: 6px;
}

.dropdown-toggle::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: -3px auto 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}

.dropdown-toggle[aria-expanded="true"]::before {
  transform: translateY(3px) rotate(-135deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -1rem;
  width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px #0b132340;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}

.dropdown::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}

.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav .dropdown a {
  display: grid;
  gap: .15rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  color: var(--ink);
  white-space: normal;
}

.site-nav .dropdown a:hover {
  background: var(--blue-soft);
  color: var(--ink);
}

.dropdown strong {
  font-size: .95rem;
}

.dropdown span {
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
}

.dropdown a:first-child {
  background: var(--blue-soft);
}

@media (max-width: 1279px) {
  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    padding: .8rem 20px 1.5rem;
    background: var(--navy);
    border-bottom: 1px solid #ffffff14;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .site-nav[hidden] {
    display: none;
  }

  .site-nav a:not(.btn) {
    padding: .8rem 1rem;
    font-size: 1.02rem;
  }

  .site-nav .btn {
    margin: .8rem 0 0;
  }

  .has-dropdown {
    flex-wrap: wrap;
  }

  .has-dropdown > a {
    flex: 1;
  }

  .dropdown-toggle {
    width: 48px;
    height: 44px;
    margin: 0;
  }

  .dropdown {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--navy-2);
    margin: .2rem 0 .4rem;
  }

  .has-dropdown.is-open .dropdown {
    display: grid;
  }

  .site-nav .dropdown a {
    color: var(--white);
  }

  .site-nav .dropdown a:hover, .dropdown a:first-child {
    background: #ffffff0d;
  }

  .dropdown span {
    color: var(--on-dark-muted);
  }

}

.tier {
  margin: 0 0 .5rem !important;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-ink) !important;
}

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

@media (max-width: 1100px) {
  .steps-5 {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 700px) {
  .steps-5 {
    grid-template-columns: 1fr;
  }

}

.portfolio-grid {
  gap: 48px 28px;
}

.portfolio-grid .work-card {
  scroll-margin-top: 100px;
}

.industry-grid .card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
}

.industry-grid .icon {
  margin: 0;
  width: 44px;
  height: 44px;
  flex: none;
}

.industry-grid h3 {
  font-size: 1.05rem;
}

.portfolio-hero,
.portfolio-references {
  color: #fff5e7;
  background-color: #260e13;
}

.portfolio-hero {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background-image: linear-gradient(90deg, #260e13 17%, #260e13eb 35%, transparent 80%),
    url("assets/portfolio/skyline.webp");
  background-position: center, right center;
  background-size: cover, auto 100%;
  background-repeat: no-repeat;
}

.portfolio-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(3.25rem, 8vw, 7rem);
  font-weight: 400;
}

.portfolio-hero .lead {
  color: #f4d8c1;
}

.portfolio-references {
  padding: clamp(1.5rem, 4vw, 3.25rem) 0;
}

.portfolio-reference-grid {
  gap: clamp(1rem, 2.5vw, 2rem);
}

.portfolio-reference {
  overflow: hidden;
  border: 1px solid #855758;
  background-color: #35151b;
}

.portfolio-reference img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
}

.portfolio-reference > div {
  padding: clamp(1rem, 2.5vw, 1.6rem);
}

.portfolio-reference h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-weight: 400;
}

.portfolio-reference h2::after {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: .7rem 0;
  background: #d0a16b;
  content: "";
}

.portfolio-reference ul {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-reference li + li::before {
  margin-right: .65rem;
  color: #d0a16b;
  content: "·";
}
