/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #eef1f7;
  --color-bg-alt: #e4e9f2;
  --color-dark: #1c1d21;
  --color-text: #1c1d21;
  --color-text-muted: #62636b;
  --color-blue: #2f5bff;
  --color-pink: #ff2e63;
  --color-teal: #0d6b58;
  --color-white: #ffffff;
  --color-border: rgba(28, 29, 33, 0.08);

  /* semantic surfaces (flip in dark mode) */
  --page-bg: #ffffff;    /* base page background */
  --surface: #ffffff;    /* elevated cards */
  --header-bg: rgba(255, 255, 255, 0.85);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --container-width: 1280px;
  --header-height: 88px;
}

/* ---------- Dark theme ---------- */
/* explicit choice wins; otherwise follow the OS preference */
:root[data-theme="dark"] {
  --color-bg: #14161c;
  --color-bg-alt: #1e222b;
  --color-text: #e9ebf1;
  --color-text-muted: #9aa0ae;
  --color-blue: #6a86ff;
  --color-teal: #2fb89a;
  --color-border: rgba(255, 255, 255, 0.10);
  --page-bg: #0b0d11;
  --surface: #171a21;
  --header-bg: rgba(11, 13, 17, 0.82);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #14161c;
    --color-bg-alt: #1e222b;
    --color-text: #e9ebf1;
    --color-text-muted: #9aa0ae;
    --color-blue: #6a86ff;
    --color-teal: #2fb89a;
    --color-border: rgba(255, 255, 255, 0.10);
    --page-bg: #0b0d11;
    --surface: #171a21;
    --header-bg: rgba(11, 13, 17, 0.82);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--page-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---------- Grid backdrop (hero only) ---------- */
.grid-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 30%, #f2f6fc 65%, #e9f0fb 100%);
}

.grid-backdrop::before {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -15%;
  height: 130%;
  background-image:
    linear-gradient(to right, rgba(112, 148, 224, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(112, 148, 224, 0.4) 1px, transparent 1px);
  background-size: 68px 68px;
  transform: perspective(700px) rotateX(60deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, black 0%, black 45%, transparent 90%);
  mask-image: linear-gradient(to top, black 0%, black 45%, transparent 90%);
}

.grid-backdrop::after {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -25%;
  width: 65%;
  height: 65%;
  background: radial-gradient(closest-side, rgba(80, 130, 255, 0.35), transparent 72%);
  filter: blur(20px);
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

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

.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.4);
}

.btn-outline {
  background: var(--surface);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.15);
}

.btn-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-dark);
  flex-shrink: 0;
}

.btn-icon-whatsapp {
  background: #25d366;
  color: #fff;
}

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

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.35);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.logo-text--brand {
  display: flex;
  flex-direction: column;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #3E4095;
}

.logo-text--brand small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-text);
  font-weight: 600;
}

.nav-link.active::after {
  transform: scaleX(1);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 56px 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.text-accent {
  color: var(--color-blue);
}

.hero-desc {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

.trusted {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trusted-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.trusted-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}

.trusted-logo {
  font-size: 19px;
  font-weight: 700;
  color: #9aa0ab;
  letter-spacing: -0.01em;
}

/* ---------- Hero media grid ---------- */
.hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  gap: 20px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.stat-number {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  opacity: 0.6;
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.stat-card--pink .stat-number { color: var(--color-pink); }
.stat-card--blue .stat-number { color: var(--color-blue); }
.stat-card--teal .stat-number { color: var(--color-teal); }

.media-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card--tall {
  grid-row: span 2;
  position: relative;
  /* no fixed height: stretches to match the two stat cards' rows; the
     absolutely-positioned img keeps its intrinsic size from inflating them */
  min-height: 0;
}

.media-card--tall img {
  position: absolute;
  inset: 0;
}

.media-card--wide {
  grid-column: span 2;
  height: 340px;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- About ---------- */
.about {
  padding-block: 40px 100px;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 40px;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  margin-bottom: 16px;
}

.about-title {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 560px;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  background: var(--color-bg-alt);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dark panel */
.about-panel {
  position: relative;
  overflow: hidden;
  background: #17181b;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  color: var(--color-white);
}

.about-panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 88% 8%, transparent 0 9px, rgba(255, 255, 255, 0.05) 9px 10px),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  mask-image: radial-gradient(circle at 85% 10%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 85% 10%, black 0%, transparent 60%);
}

.about-values {
  position: relative;
  z-index: 1;
}

.about-stat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.about-stat-header {
  display: flex;
  flex-direction: column;
}

.about-stat-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.about-stat-number {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-arrow--light {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2a2b2f;
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-stat-label {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  position: relative;
}

.tag-pill,
.tag-dot {
  position: relative;
  cursor: pointer;
  user-select: none;
  animation: bubble-float var(--float-dur, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* staggered timing so bubbles drift out of sync and drift over one another */
.tag-cloud > *:nth-child(5n+1) { --float-dur: 5.2s; --float-delay: 0s; }
.tag-cloud > *:nth-child(5n+2) { --float-dur: 6.4s; --float-delay: -1.1s; }
.tag-cloud > *:nth-child(5n+3) { --float-dur: 4.8s; --float-delay: -2.3s; }
.tag-cloud > *:nth-child(5n+4) { --float-dur: 5.8s; --float-delay: -0.6s; }
.tag-cloud > *:nth-child(5n+5) { --float-dur: 6.9s; --float-delay: -3.2s; }

@keyframes bubble-float {
  0%   { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  25%  { transform: translate(5px, -7px) rotate(calc(var(--r, 0deg) + 3deg)); }
  50%  { transform: translate(-4px, 3px) rotate(calc(var(--r, 0deg) - 2deg)); }
  75%  { transform: translate(4px, 6px) rotate(calc(var(--r, 0deg) + 1deg)); }
  100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 600;
}

.tag-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-dark);
  flex-shrink: 0;
}

.tag-cloud:not(.is-physics) .tag-pill:hover,
.tag-cloud:not(.is-physics) .tag-dot:hover,
.tag-cloud:not(.is-physics) .tag-pill.is-popped,
.tag-cloud:not(.is-physics) .tag-dot.is-popped {
  animation-play-state: paused;
  transform: scale(1.18) rotate(0deg) !important;
  z-index: 30;
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.tag-cloud:not(.is-physics) .tag-pill.is-popped,
.tag-cloud:not(.is-physics) .tag-dot.is-popped {
  transform: scale(0.9) rotate(0deg) !important;
  transition: transform 0.15s ease;
}

/* physics mode (matter.js): pills rain down, collide and pile up */
.tag-cloud.is-physics {
  display: block;
  flex: 1;
  min-height: 240px;
}

.tag-cloud.is-physics .tag-pill,
.tag-cloud.is-physics .tag-dot {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  animation: none;
  transition: none;
  transform-origin: center;
  will-change: transform;
  cursor: grab;
}

.tag-cloud.is-physics .tag-pill:active,
.tag-cloud.is-physics .tag-dot:active {
  cursor: grabbing;
}

@media (prefers-reduced-motion: reduce) {
  .tag-pill,
  .tag-dot {
    animation: none;
  }
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.value-card {
  background: #232427;
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.value-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Portfolio ---------- */
.portfolio {
  padding-block: 40px 100px;
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.portfolio-title {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 640px;
}

.portfolio-view-all {
  flex-shrink: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 460px 460px 420px;
  gap: 24px;
}

.portfolio-item--card { grid-column: 1; grid-row: 1; }
.portfolio-item--caps { grid-column: 2; grid-row: 1; }
.portfolio-item--banner { grid-column: 3; grid-row: 1 / span 2; }
.portfolio-item--merch { grid-column: 1 / span 2; grid-row: 2; }
.portfolio-item--shirt { grid-column: 1; grid-row: 3; }
.portfolio-item--van { grid-column: 2; grid-row: 3; }
.portfolio-item--mugs { grid-column: 3; grid-row: 3; }

.portfolio-item {
  appearance: none;
  border: none;
  margin: 0;
  padding: 0;
  background: var(--color-bg-alt);
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.portfolio-item:hover img,
.portfolio-item:focus-visible img {
  transform: scale(1.08);
  filter: grayscale(1);
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.portfolio-item:hover::after,
.portfolio-item:focus-visible::after {
  opacity: 1;
}

.portfolio-item-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-item:hover .portfolio-item-label,
.portfolio-item:focus-visible .portfolio-item-label {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item-expand {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portfolio-item:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

/* ---------- Services ---------- */
.services {
  padding-block: 40px 100px;
}

.services-header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow--center {
  margin-inline: auto;
}

.services-title {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.services-scroller-wrap {
  position: relative;
}

.services-scroller {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* snap aligns to the padded start, so the first card keeps its leading gap
     (matching the container) at rest, and only bleeds past the edge on scroll */
  scroll-padding-left: max(24px, calc((100vw - var(--container-width)) / 2 + 24px));
  scroll-behavior: smooth;
  padding: 4px max(24px, calc((100vw - var(--container-width)) / 2 + 24px)) 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.services-scroller::-webkit-scrollbar {
  display: none;
}

.service-card {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
}

.service-card-media {
  height: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-media img,
.service-card:focus-within .service-card-media img {
  transform: scale(1.1);
}

.service-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.service-card-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--color-text);
}

.service-card-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-card:hover .service-card-arrow {
  background: var(--color-dark);
  color: var(--color-white);
  transform: rotate(45deg);
}

.services-nav {
  position: absolute;
  top: 250px;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--color-dark);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.services-nav:hover {
  background: #000;
}

.services-nav:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.services-nav--prev {
  left: 24px;
}

.services-nav--next {
  right: 24px;
}

/* ---------- Team ---------- */
.team {
  padding-block: 40px 100px;
}

.team-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0b0d;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.team-visual img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 108%;
  height: auto;
  max-width: none;
  transform: translate(-50%, -170px);
  will-change: transform;
}

.team-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.team-title {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 40px;
  text-align: center;
  color: var(--color-white);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .team-visual img {
    transform: translate(-50%, -40px) !important;
  }
}

/* ---------- Our Team (roster) ---------- */
.our-team {
  padding-block: 40px 100px;
}

.our-team-header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.our-team-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-member {
  text-align: center;
}

.team-member-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  background: var(--color-bg-alt);
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.team-member:hover .team-member-photo img {
  transform: scale(1.08);
}

.team-member-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.team-member-role {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ---------- CEO message ---------- */
.ceo {
  padding-block: 60px 100px;
}

.ceo-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  overflow: hidden;
}

.ceo-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 5;
}

.ceo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ceo-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(47, 91, 255, 0.6);
}

.ceo-content .eyebrow {
  color: var(--color-blue);
  margin-bottom: 24px;
}

.ceo-quote {
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 32px;
}

.ceo-signature {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ceo-signature-mark {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 30px;
  color: #fff;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1;
}

.ceo-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.ceo-role {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Contact ---------- */
.contact {
  padding-block: 40px 100px;
}

.contact-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.contact-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  background: var(--color-bg-alt);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  display: block;
}

.contact-map-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-map-link:hover {
  background: #000;
  transform: translateY(-2px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.form-field {
  display: flex;
}

.form-field--grow {
  flex: 1;
}

.form-field input,
.form-field textarea {
  width: 100%;
  height: 100%;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-family: inherit;
  font-size: 15px;
  resize: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field textarea {
  min-height: 130px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background: var(--surface);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-pink);
}

.contact-submit {
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.contact-form-note {
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-blue);
  text-align: center;
}

/* spam honeypot — visually hidden but present in the DOM for bots */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form-note.is-error {
  color: var(--color-pink);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(47, 91, 255, 0.08);
  color: var(--color-blue);
  flex-shrink: 0;
}

.contact-info-body h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.contact-info-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.contact-info-body a {
  color: inherit;
  transition: color 0.2s ease;
}

.contact-info-body a:hover {
  color: var(--color-blue);
}

/* ---------- FAQs ---------- */
.faqs {
  padding-block: 40px 100px;
}

.faqs-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}

.faqs-header {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.faqs-title {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.faqs-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 420px;
}

.faqs-subtitle a {
  color: var(--color-blue);
  font-weight: 600;
}

.faqs-subtitle a:hover {
  text-decoration: underline;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.is-open {
  border-color: rgba(47, 91, 255, 0.3);
  box-shadow: 0 12px 28px -18px rgba(47, 91, 255, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(47, 91, 255, 0.08);
  color: var(--color-blue);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item.is-open .faq-icon {
  background: var(--color-blue);
  color: var(--color-white);
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 26px 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  padding-block: 0 60px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background:
    radial-gradient(60% 140% at 30% 0%, rgba(120, 140, 180, 0.35), transparent 65%),
    #0a0b0d;
}

.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px);
  pointer-events: none;
}

.cta-title {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 18px 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 24px;
}

.footer-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 400px;
  margin-bottom: 28px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  font-size: 14.5px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-blue);
}

.footer-col--contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-dark);
}

.footer-contact-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.footer-contact-item a {
  color: inherit;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--color-blue);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13.5px;
  color: var(--color-text-muted);
}

.footer-credit a {
  color: var(--color-text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ---------- Legal pages ---------- */
.legal-hero {
  padding-block: 48px 32px;
}

.legal-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 16px;
}

.legal-meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.legal-body {
  padding-bottom: 80px;
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--color-text);
  font-weight: 700;
}

.legal-content a {
  color: var(--color-blue);
  font-weight: 600;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ---------- Certifications page ---------- */
.cert-section-title {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.cert-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.cert-licenses {
  padding-block: 56px 40px;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.license-card {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.license-card:hover {
  border-color: rgba(47, 91, 255, 0.3);
  box-shadow: 0 16px 32px -20px rgba(47, 91, 255, 0.35);
  transform: translateY(-2px);
}

.license-media {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-alt);
  height: 200px;
  margin-bottom: 24px;
}

.license-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.license-card h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.license-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* dark quality standards panel */
.cert-quality {
  padding-block: 40px;
}

.quality-panel {
  background: #171b2e;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  color: var(--color-white);
}

.quality-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.quality-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.quality-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.quality-item:last-child {
  margin-bottom: 0;
}

.quality-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  flex-shrink: 0;
}

.quality-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.quality-item p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.quality-media {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.quality-media-card {
  width: 175px;
  height: 195px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
}

.quality-media-card--down {
  margin-top: 36px;
}

.quality-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* industry memberships */
.cert-memberships {
  padding-block: 40px;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.membership-item {
  text-align: center;
}

.membership-badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  background: var(--color-bg-alt);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.25);
}

.membership-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.membership-item h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.membership-item p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 200px;
  margin-inline: auto;
}

/* verify credentials card */
.cert-verify {
  padding-block: 40px 60px;
}

.verify-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.verify-copy h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  max-width: 420px;
}

.verify-copy p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 440px;
}

.verify-btn {
  flex-shrink: 0;
  background: #171b2e;
}

.verify-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Credentials & Documents grid ---------- */
.cert-section-title--sub {
  margin-top: 72px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doc-card {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.doc-card:hover {
  border-color: rgba(47, 91, 255, 0.3);
  box-shadow: 0 16px 32px -20px rgba(47, 91, 255, 0.35);
  transform: translateY(-2px);
}

.doc-card:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

.doc-thumb {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.doc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-card:hover .doc-thumb img,
.doc-card:focus-visible .doc-thumb img {
  transform: scale(1.09);
}

.doc-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.doc-card:hover .doc-thumb::after,
.doc-card:focus-visible .doc-thumb::after {
  opacity: 1;
}

.doc-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-dark);
  backdrop-filter: blur(4px);
}

.doc-view {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.doc-card:hover .doc-view,
.doc-card:focus-visible .doc-view {
  opacity: 1;
  transform: translateY(0);
}

.doc-info {
  padding: 20px 22px 24px;
}

.doc-info h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.doc-info p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ---------- Document viewer modal ---------- */
.doc-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.doc-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.doc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.doc-modal-panel {
  position: relative;
  width: min(1000px, 94vw);
  height: min(88vh, 920px);
  background: #101114;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.doc-modal.is-open .doc-modal-panel {
  transform: scale(1);
}

.doc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 22px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-modal-title {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.doc-open-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.doc-open-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.doc-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.doc-modal-close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(90deg);
}

.doc-modal-body {
  flex: 1;
  overflow: auto;
  background: #1c1d21;
  display: flex;
}

.doc-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.doc-modal-body img {
  max-width: 100%;
  height: auto;
  margin: auto;
  display: block;
}

/* ---------- Project detail (case study) ---------- */
.project-hero {
  padding-block: 40px 0;
}

.project-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 780px;
}

.project-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 460px;
  background: var(--color-bg-alt);
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-meta {
  background: var(--color-bg-alt);
  padding-block: 32px;
  margin-top: 40px;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-meta-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.project-meta-value {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
}

.project-story {
  padding-block: 64px;
}

.project-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.story-block h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.story-block--solution h2 {
  color: var(--color-blue);
}

.story-block p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.project-gallery {
  padding-bottom: 80px;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gallery-row {
  display: grid;
  gap: 24px;
}

.gallery-row--split {
  grid-template-columns: 1.6fr 1fr;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  height: 380px;
}

.gallery-row--wide .gallery-item {
  height: 420px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.next-project {
  padding-block: 24px 80px;
  text-align: center;
}

.next-project-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  margin-bottom: 16px;
}

.next-project-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.next-project-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.next-project-title a:hover {
  color: var(--color-blue);
}

.next-project-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.next-project-arrow:hover {
  background: #000;
  transform: translateX(4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 560px;
  }

  .main-nav {
    display: none;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-media {
    min-height: 280px;
  }

  .about-panel {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 36px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 320px;
  }

  .portfolio-item--card,
  .portfolio-item--caps,
  .portfolio-item--banner,
  .portfolio-item--merch,
  .portfolio-item--shirt,
  .portfolio-item--van,
  .portfolio-item--mugs {
    grid-column: auto;
    grid-row: auto;
  }

  .service-card {
    width: 260px;
  }

  .service-card-media {
    height: 420px;
  }

  .services-nav {
    top: 210px;
  }

  .team-card {
    min-height: 520px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .faqs-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faqs-header {
    position: static;
  }

  .faqs-subtitle {
    max-width: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 360px;
  }

  .contact-map iframe {
    min-height: 360px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 48px 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

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

  .project-hero-image {
    height: 360px;
  }

  .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .project-story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery-row--split {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-row--wide .gallery-item {
    height: 300px;
  }

  .license-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .quality-panel {
    grid-template-columns: 1fr;
    padding: 48px 36px;
  }

  .membership-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }

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

  .cert-section-title--sub {
    margin-top: 56px;
  }

  .verify-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .ceo-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

  .ceo-media {
    max-width: 320px;
    aspect-ratio: 1 / 1;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    box-shadow: 0 16px 24px -16px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-block: 32px 56px;
  }

  .hero-actions {
    margin-bottom: 48px;
  }

  .media-card--wide {
    height: 220px;
  }

  .about {
    padding-block: 24px 64px;
  }

  .about-panel {
    padding: 32px 24px;
  }

  .about-stat-label {
    margin-bottom: 28px;
  }

  .tag-pill {
    padding: 10px 16px;
    font-size: 13px;
  }

  .portfolio {
    padding-block: 24px 64px;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
  }

  .portfolio-grid {
    grid-auto-rows: 260px;
    gap: 16px;
  }

  .services {
    padding-block: 24px 64px;
  }

  .services-header {
    margin-bottom: 32px;
  }

  .service-card {
    width: 220px;
  }

  .service-card-media {
    height: 340px;
  }

  .services-nav {
    width: 44px;
    height: 44px;
    top: 170px;
  }

  .services-nav--prev {
    left: 12px;
  }

  .services-nav--next {
    right: 12px;
  }

  .team {
    padding-block: 24px 64px;
  }

  .team-card {
    min-height: 440px;
    border-radius: var(--radius-md);
  }

  .team-title {
    padding-inline: 24px;
  }

  .team-visual img {
    width: 160%;
    transform: translate(-50%, -110px);
  }

  .our-team {
    padding-block: 24px 64px;
  }

  .our-team-header {
    margin-bottom: 36px;
  }

  .team-member-photo {
    width: 160px;
    height: 160px;
  }

  .contact {
    padding-block: 24px 64px;
  }

  .contact-title {
    margin-bottom: 32px;
  }

  .form-field input,
  .form-field textarea {
    padding: 16px 18px;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .project-hero-image {
    height: 260px;
  }

  .project-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-story {
    padding-block: 40px;
  }

  .project-gallery {
    padding-bottom: 56px;
  }

  .gallery-item,
  .gallery-row--wide .gallery-item {
    height: 220px;
  }

  .next-project {
    padding-block: 16px 56px;
  }

  .faqs {
    padding-block: 24px 64px;
  }

  .faqs-header {
    margin-bottom: 32px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 15px;
    gap: 14px;
  }

  .faq-answer-inner p {
    padding: 0 20px 20px;
  }
}

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

  .doc-grid {
    grid-template-columns: 1fr;
  }

  .doc-modal {
    padding: 14px;
  }

  .doc-modal-panel {
    height: 92vh;
  }

  .doc-open-link span {
    display: none;
  }

  .ceo {
    padding-block: 32px 64px;
  }

  .ceo-grid {
    padding: 28px 22px;
  }

  .stat-number {
    font-size: 26px;
  }

  .trusted {
    gap: 20px;
  }

  .legal-hero {
    padding-block: 32px 24px;
  }

  .legal-body {
    padding-bottom: 56px;
  }

  .cert-licenses {
    padding-block: 32px 24px;
  }

  .quality-media {
    flex-wrap: wrap;
  }

  .membership-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 360px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--surface);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

/* ---------- Dark theme component tweaks ---------- */
:root[data-theme="dark"] .site-header {
  border-bottom-color: var(--color-border);
}

/* keep dark buttons legible against a dark page */
:root[data-theme="dark"] .btn-dark {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* dark-text elements that now sit on themeable (dark) surfaces */
:root[data-theme="dark"] .btn-outline,
:root[data-theme="dark"] .service-card-arrow,
:root[data-theme="dark"] .social-icon,
:root[data-theme="dark"] .footer-contact-item svg {
  color: var(--color-text);
}

/* brand wordmark reads too dark on the deep background */
:root[data-theme="dark"] .logo-text--brand {
  color: #aeb9ff;
}

/* subtle separation for the always-dark panels against the dark page */
:root[data-theme="dark"] .about-panel,
:root[data-theme="dark"] .team-card,
:root[data-theme="dark"] .ceo-grid,
:root[data-theme="dark"] .cta-card,
:root[data-theme="dark"] .quality-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* hero perspective backdrop re-tinted for dark */
:root[data-theme="dark"] .grid-backdrop {
  background: linear-gradient(180deg, #0b0d11 0%, #0b0d11 28%, #0d1322 66%, #0e1630 100%);
}

:root[data-theme="dark"] .grid-backdrop::before {
  background-image:
    linear-gradient(to right, rgba(120, 150, 235, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 150, 235, 0.22) 1px, transparent 1px);
}

:root[data-theme="dark"] .grid-backdrop::after {
  background: radial-gradient(closest-side, rgba(95, 135, 255, 0.30), transparent 72%);
}

/* generic card elevation reads flat in dark; lean on borders instead */
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .license-card,
:root[data-theme="dark"] .doc-card,
:root[data-theme="dark"] .verify-card {
  border: 1px solid var(--color-border);
}

/* hero badge pill: dark translucent so light text stays legible */
:root[data-theme="dark"] .badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Portfolio lightbox: full-image overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(8, 9, 11, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox-figure {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
  .lightbox {
    padding: 20px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}
