:root {
  --ink-900: #0f1418;
  --ink-800: #172027;
  --ink-700: #24313b;
  --sand-500: #cba45f;
  --sand-400: #ddbd84;
  --sand-300: #f0d9ac;
  --mist-100: #eef2f5;
  --mist-200: #d8e1e8;
  --text-main: #e8edf1;
  --text-soft: #b5c0c9;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.1);
  --radius-lg: 26px;
  --radius-md: 16px;
  --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.38);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 0% 0%, rgba(203, 164, 95, 0.24), transparent 44%),
    radial-gradient(circle at 100% 20%, rgba(84, 116, 140, 0.3), transparent 50%),
    linear-gradient(145deg, var(--ink-900), var(--ink-700));
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -50px;
  background: var(--sand-300);
  color: #1b1a17;
  border-radius: 8px;
  padding: 10px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(221, 189, 132, 0.22);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(15, 20, 24, 0.88), rgba(15, 20, 24, 0.6));
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(221, 189, 132, 0.48);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.brand-mark picture,
.brand-mark img {
  width: 100%;
  height: 100%;
}

.brand-mark img {
  object-fit: cover;
}

.brand-text {
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--mist-200);
  font-size: 0.92rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--sand-300);
  border-bottom-color: var(--sand-500);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(221, 189, 132, 0.35);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 17px;
  height: 2px;
  background: #d8dee4;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin-top: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  margin-bottom: 20px;
  text-wrap: balance;
  letter-spacing: -0.02em;
  line-height: 1.07;
}

h2 {
  font-size: clamp(1.75rem, 3.8vw, 3.2rem);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sand-400);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--sand-500);
  flex-shrink: 0;
}

.lede {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.9;
  max-width: 680px;
}

.section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-tight {
  padding: clamp(72px, 8vw, 110px) 0 clamp(30px, 5vw, 50px);
}

.section-hero {
  padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 7vw, 100px);
  position: relative;
  overflow: clip;
}

.section p,
.section li {
  color: var(--text-soft);
  line-height: 1.85;
}

.section-head {
  margin-bottom: 36px;
}

.hero-grid {
  position: relative;
  overflow: clip;
}

.hero-grid-wrap {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
  pointer-events: none;
}

.hero-orb-a {
  width: 360px;
  height: 360px;
  left: -80px;
  top: -40px;
  background: radial-gradient(circle, rgba(203, 164, 95, 0.44), rgba(203, 164, 95, 0));
  animation: floatA 10s ease-in-out infinite;
}

.hero-orb-b {
  width: 460px;
  height: 460px;
  right: -140px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(112, 156, 192, 0.38), rgba(112, 156, 192, 0));
  animation: floatB 12s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: clamp(26px, 2.2vw, 34px);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-lg);
}

.hero-main-image {
  margin: 0 0 28px;
  border-radius: var(--radius-md);
  border: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stat-stack {
  display: grid;
  gap: 16px;
}

.stat-stack article {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}

.stat-stack article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stat-number {
  margin: 0 0 2px;
  color: var(--sand-300);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  padding: 10px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #2a2010;
  background: linear-gradient(115deg, var(--sand-300), var(--sand-500));
  box-shadow: 0 8px 20px rgba(203, 164, 95, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 12px 28px rgba(203, 164, 95, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--mist-100);
  border-color: rgba(221, 189, 132, 0.42);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(221, 189, 132, 0.08);
  border-color: rgba(221, 189, 132, 0.7);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  grid-column: span 12;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
}

.tile h3 {
  margin-bottom: 10px;
}

.testimonial-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card,
.faq-card {
  grid-column: span 12;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
}

.testimonial-quote {
  margin: 0 0 10px;
  color: var(--text-main) !important;
  font-size: 1rem;
  line-height: 1.8;
}

.testimonial-source {
  margin: 0;
  color: var(--sand-400) !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.faq-card h3 {
  margin-bottom: 10px;
}

.faq-card p {
  margin: 0;
}

.accent-surface {
  background:
    linear-gradient(140deg, rgba(203, 164, 95, 0.14), rgba(255, 255, 255, 0.02)),
    linear-gradient(80deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01));
  border-top: 1px solid rgba(221, 189, 132, 0.24);
  border-bottom: 1px solid rgba(221, 189, 132, 0.24);
}

/* ── Portfolio Cards ────────────────────── */

.portfolio-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: var(--shadow-card);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 72px rgba(0, 0, 0, 0.52);
  border-color: rgba(221, 189, 132, 0.28);
}

.portfolio-card-visual {
  width: 100%;
  height: clamp(200px, 52vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.portfolio-card-visual--construction {
  background: linear-gradient(145deg, #0e0a04 0%, #2c1a07 45%, #3d230c 70%, #1a0e04 100%);
}

.portfolio-card-visual--cleaning {
  background: linear-gradient(145deg, #04100f 0%, #063825 45%, #084d34 70%, #041a14 100%);
}

.portfolio-card-visual--teeth {
  background: linear-gradient(145deg, #0a0b0f 0%, #1a1520 50%, #0a0b0f 100%);
}

.portfolio-card-visual--digital {
  background: linear-gradient(145deg, #060c12 0%, #0a1e33 45%, #0f2845 70%, #060c12 100%);
}

.portfolio-card-visual-img {
  width: 58%;
  max-width: 260px;
  height: auto;
  max-height: 68%;
  object-fit: contain;
  transition: transform 0.55s ease;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.6));
}

.portfolio-card-visual-img--cover {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
}

.portfolio-card:hover .portfolio-card-visual-img {
  transform: scale(1.07);
}

.portfolio-card:hover .portfolio-card-visual-img--cover {
  transform: scale(1.04);
}

.portfolio-card-body {
  flex: 1;
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-card-logo {
  height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.portfolio-card-logo img {
  max-height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0.9);
}

.portfolio-card-logo--text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sand-300);
  letter-spacing: -0.01em;
}

.portfolio-card-body h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-bottom: 8px;
  line-height: 1.2;
}

.portfolio-card-body p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(221, 189, 132, 0.38);
  color: var(--sand-300);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-visit:hover,
.btn-visit:focus-visible {
  background: rgba(221, 189, 132, 0.1);
  border-color: var(--sand-400);
  box-shadow: 0 0 18px rgba(203, 164, 95, 0.22);
}

/* ── Legacy company row (kept for other pages) ───────────────── */

.company-list {
  display: grid;
  gap: 12px;
}

.company-row {
  padding: clamp(22px, 2.2vw, 28px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.company-row h3 {
  margin-bottom: 8px;
}

.company-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.company-site-btn,
.company-logo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(221, 189, 132, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  max-width: 100%;
}

.company-site-btn {
  color: #2a2010;
  background: linear-gradient(115deg, var(--sand-300), var(--sand-500));
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.company-logo-btn {
  color: var(--mist-100);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  min-width: min(100%, 340px);
  width: min(100%, 460px);
  min-height: 102px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.company-logo-btn img {
  width: clamp(200px, 34vw, 360px);
  height: clamp(72px, 14vw, 136px);
  object-fit: contain;
  object-position: center;
}

.company-list .company-logo-btn,
.company-list-lg .company-logo-btn {
  min-width: min(100%, 420px);
  width: min(100%, 540px);
  min-height: 124px;
  padding: 16px 20px;
  border-radius: 20px;
}

.company-list .company-logo-btn img,
.company-list-lg .company-logo-btn img {
  width: clamp(240px, 42vw, 440px);
  height: clamp(96px, 16vw, 160px);
}

.company-site-btn:hover,
.company-site-btn:focus-visible,
.company-logo-btn:hover,
.company-logo-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 217, 172, 0.8);
}

.section-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.split-cta {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 189, 132, 0.22);
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  display: grid;
  gap: 24px;
  align-items: center;
}

.split-cta-links {
  display: grid;
  gap: 10px;
}

.split-cta-links a {
  color: var(--sand-300);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.22s ease;
}

.split-cta-links a:hover,
.split-cta-links a:focus-visible {
  color: var(--sand-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero {
  border-bottom: 1px solid rgba(221, 189, 132, 0.22);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.principles-grid article {
  grid-column: span 12;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
}

.company-list-lg {
  display: grid;
  gap: 14px;
}

.apps-section {
  border-top: 1px solid rgba(221, 189, 132, 0.2);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  grid-column: span 12;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
  padding: clamp(22px, 2vw, 28px);
}

.app-card h3 {
  margin-bottom: 8px;
}

.app-tag {
  margin: 0 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sand-400) !important;
}

.coming-soon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px dashed rgba(240, 217, 172, 0.55);
  color: var(--sand-300);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.company-logo-static {
  cursor: default;
}

.company-card-lg {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
  padding: clamp(24px, 2.4vw, 34px);
}

.company-card-lg h2 {
  margin-bottom: 8px;
}

.company-tag {
  margin: 0 0 10px;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sand-400) !important;
}

.company-card-lg ul {
  margin: 0;
  padding-left: 20px;
}

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.contact-panel,
.contact-form {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
  padding: 20px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  color: var(--mist-100);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font: inherit;
  padding: 10px 12px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(221, 189, 132, 0.48);
  outline-offset: 1px;
}

.gallery-stack {
  display: grid;
  gap: 20px;
}

.gallery-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
  padding: clamp(18px, 2.4vw, 28px);
}

.gallery-card h2 {
  margin-bottom: 14px;
}

.gallery-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.gallery-card-header h2 {
  margin: 0;
}

.gallery-card-header .btn-visit {
  flex-shrink: 0;
}

.gallery-slideshow {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(221, 189, 132, 0.26);
  background: rgba(10, 15, 20, 0.6);
  min-height: clamp(180px, 36vw, 340px);
}

.gallery-track {
  position: relative;
  min-height: inherit;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(221, 189, 132, 0.5);
  color: var(--mist-100);
  background: rgba(15, 20, 24, 0.72);
  cursor: pointer;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  border-color: rgba(240, 217, 172, 0.95);
  background: rgba(31, 40, 48, 0.88);
}

.gallery-nav--prev {
  left: 10px;
}

.gallery-nav--next {
  right: 10px;
}

.gallery-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.gallery-counter {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 20, 24, 0.78);
  color: var(--mist-100);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  pointer-events: auto;
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  pointer-events: auto;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  padding: 0;
}

  .gallery-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

.gallery-dot.active {
  background: var(--sand-300);
  transform: scale(1.18);
}

.gallery-dot:hover,
.gallery-dot:focus-visible {
  background: var(--sand-400);
}

.site-footer {
  margin-top: 20px;
  padding: 40px 0 16px;
  border-top: 1px solid rgba(221, 189, 132, 0.2);
  background: rgba(15, 20, 24, 0.82);
}

.footer-wrap {
  display: grid;
  gap: 16px;
}

.footer-wrap strong {
  font-family: "Playfair Display", Georgia, serif;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--mist-200);
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--sand-300);
}

.copyright {
  margin: 18px 0 0;
  text-align: center;
  color: #a6b1ba;
  font-size: 0.83rem;
}

.ai-chat-popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: min(360px, calc(100vw - 24px));
  border-radius: 18px;
  border: 1px solid rgba(221, 189, 132, 0.45);
  background: linear-gradient(150deg, rgba(15, 20, 24, 0.95), rgba(27, 40, 50, 0.92));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45);
  padding: 16px;
  animation: chatEnter 0.4s ease-out;
}

.ai-chat-popup__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-chat-popup__tag {
  margin: 0 0 8px;
  color: var(--sand-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.ai-chat-popup__toggle {
  border: 1px solid rgba(221, 189, 132, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: var(--mist-100);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  cursor: pointer;
}

.ai-chat-popup__toggle:hover,
.ai-chat-popup__toggle:focus-visible {
  border-color: rgba(240, 217, 172, 0.9);
  background: rgba(221, 189, 132, 0.12);
}

.ai-chat-popup h2 {
  margin: 0 0 6px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.ai-chat-popup--minimized {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
}

.ai-chat-popup--minimized .ai-chat-popup__tag {
  display: none;
}

.ai-chat-popup--minimized h2 {
  display: none;
}

.ai-chat-popup--minimized .ai-chat-popup__top {
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.ai-chat-popup--minimized .ai-chat-popup__toggle {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}


.ai-chat-popup--minimized .ai-chat-popup__toggle:hover,
.ai-chat-popup--minimized .ai-chat-popup__toggle:focus-visible {
  background: rgba(221, 189, 132, 0.16);
}
.ai-chat-popup p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ai-chat-popup__messages {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 4px;
}

.ai-chat-msg {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ai-chat-msg--bot {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mist-100);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-chat-msg--user {
  justify-self: end;
  background: linear-gradient(115deg, var(--sand-300), var(--sand-500));
  color: #2a2010;
  max-width: 90%;
}

.ai-chat-popup__quick {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-chat-popup__quick button {
  border: 1px solid rgba(221, 189, 132, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mist-100);
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 6px 10px;
  cursor: pointer;
}

.ai-chat-popup__quick button:hover,
.ai-chat-popup__quick button:focus-visible {
  border-color: rgba(240, 217, 172, 0.9);
  background: rgba(221, 189, 132, 0.12);
}

.ai-chat-popup__composer {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.ai-chat-popup__composer input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font: inherit;
  font-size: 0.82rem;
  padding: 8px 10px;
}

.ai-chat-popup__composer input:focus {
  outline: 2px solid rgba(221, 189, 132, 0.48);
  outline-offset: 1px;
}

.ai-chat-popup__composer button {
  border: 1px solid rgba(221, 189, 132, 0.45);
  border-radius: 10px;
  background: linear-gradient(115deg, var(--sand-300), var(--sand-500));
  color: #2a2010;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 12px;
  cursor: pointer;
}

.ai-chat-popup__composer button:hover,
.ai-chat-popup__composer button:focus-visible {
  border-color: rgba(240, 217, 172, 0.9);
}

.ai-chat-popup__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chat-popup__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(221, 189, 132, 0.45);
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ai-chat-popup__actions a:first-child {
  color: #2a2010;
  background: linear-gradient(115deg, var(--sand-300), var(--sand-500));
}

.ai-chat-popup__actions a:last-child {
  color: var(--mist-100);
  background: rgba(255, 255, 255, 0.05);
}

.ai-chat-popup__actions a:hover,
.ai-chat-popup__actions a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 217, 172, 0.9);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

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

@keyframes floatA {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}

@keyframes floatB {
  0%,
  100% { transform: translate(0, 0); }
  50% { transform: translate(-14px, -14px); }
}

@keyframes chatEnter {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .tile {
    grid-column: span 6;
  }

  .testimonial-card,
  .faq-card {
    grid-column: span 6;
  }

  .principles-grid article {
    grid-column: span 6;
  }

  .hero-grid-wrap {
    grid-template-columns: 1.35fr 1fr;
    gap: 48px;
  }

  .split-cta {
    grid-template-columns: 1.4fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .gallery-card {
    padding: clamp(20px, 2vw, 30px);
  }

  .app-card {
    grid-column: span 6;
  }

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

  .portfolio-card-visual {
    height: clamp(220px, 26vw, 320px);
  }
}

@media (min-width: 1000px) {
  .tile {
    grid-column: span 4;
  }

  .testimonial-card {
    grid-column: span 4;
  }

  .faq-card {
    grid-column: span 6;
  }
}

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

  .site-nav {
    position: absolute;
    top: 74px;
    right: 4vw;
    left: 4vw;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
    gap: 6px;
    width: auto;
    max-width: calc(100vw - 8vw);
    background: rgba(15, 20, 24, 0.97);
    border: 1px solid rgba(221, 189, 132, 0.28);
    border-radius: 12px;
    padding: 12px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .site-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
  }

  .brand-text {
    font-size: 0.84rem;
  }

  .section {
    padding: clamp(64px, 9vw, 96px) 0;
  }

  .section-hero {
    padding: clamp(64px, 9vw, 96px) 0 clamp(48px, 7vw, 72px);
  }

  .hero-grid-wrap {
    gap: 28px;
  }

  .company-list,
  .company-list-lg,
  .apps-grid {
    gap: 16px;
  }

  .company-site-btn,
  .coming-soon-chip {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .company-list .company-logo-btn,
  .company-list-lg .company-logo-btn,
  .app-card .company-logo-btn {
    width: 100%;
    min-width: 100%;
    min-height: 116px;
    padding: 14px 16px;
  }

  .company-list .company-logo-btn img,
  .company-list-lg .company-logo-btn img,
  .app-card .company-logo-btn img {
    width: clamp(220px, 70vw, 360px);
    height: clamp(90px, 30vw, 140px);
  }

  .portfolio-card-visual {
    height: clamp(190px, 50vw, 260px);
  }

  .gallery-slide img {
    padding: 14px;
  }

  .ai-chat-popup {
    right: 12px;
    bottom: 12px;
    width: min(360px, calc(100vw - 20px));
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1120px, 94vw);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .split-cta-links {
    gap: 8px;
  }

  .split-cta-links a {
    display: block;
  }

  .hero-panel {
    padding: 20px;
  }

  .company-row,
  .company-card-lg,
  .app-card,
  .contact-panel,
  .contact-form,
  .tile,
  .principles-grid article,
  .split-cta {
    padding: 18px;
  }

  .hero-actions,
  .company-links {
    gap: 10px;
  }

  .hero-actions .btn,
  .section-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .company-site-btn,
  .coming-soon-chip {
    width: auto;
    max-width: 100%;
  }

  .portfolio-card-visual {
    height: clamp(180px, 54vw, 240px);
  }

  .portfolio-card-body {
    padding: 18px;
  }

  .gallery-nav {
    width: 32px;
    height: 32px;
  }

  .gallery-nav--prev {
    left: 8px;
  }

  .gallery-nav--next {
    right: 8px;
  }

  .gallery-controls {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 6px;
  }

  .gallery-counter {
    font-size: 0.68rem;
  }

  .gallery-dot {
    width: 8px;
    height: 8px;
  }

  .ai-chat-popup {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-width: 320px;
    border-radius: 14px;
    padding: 11px;
  }

  .ai-chat-popup h2 {
    font-size: 1.15rem;
  }

  .ai-chat-popup__messages {
    max-height: 120px;
  }

  .hero-orb {
    display: none;
  }

  .ai-chat-popup__quick button,
  .ai-chat-popup__composer input,
  .ai-chat-popup__composer button,
  .ai-chat-popup__actions a {
    font-size: 0.72rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
