/* ========================================
   QAYADA AFRICA — 2026 Redesign
   Warm, organic, cinematic design
   ======================================== */

/* ── Design Tokens ──────────────────────── */
:root {
  /* Brand — OKLCH for perceptual uniformity */
  --teal: oklch(0.72 0.14 175);
  --teal-light: oklch(0.92 0.06 175);
  --teal-dark: oklch(0.48 0.1 175);
  --teal-muted: oklch(0.85 0.04 175);

  /* Warm secondary — used sparingly for contrast */
  --amber: oklch(0.8 0.13 75);
  --amber-light: oklch(0.94 0.05 75);

  --green-deep: oklch(0.26 0.05 175);
  --green-dark: oklch(0.18 0.04 175);
  --green-mid: oklch(0.42 0.08 175);

  /* Warm neutrals — tinted toward teal */
  --surface-1: oklch(0.985 0.005 175);
  --surface-2: oklch(0.97 0.008 175);
  --surface-3: oklch(0.95 0.01 175);
  --surface-4: oklch(0.92 0.012 175);

  --text-primary: oklch(0.22 0.03 175);
  --text-secondary: oklch(0.45 0.02 175);
  --text-tertiary: oklch(0.58 0.015 175);
  --text-inverse: oklch(0.97 0.005 175);

  --on-dark-strong: oklch(0.97 0.005 175 / 0.85);
  --on-dark-soft: oklch(0.97 0.005 175 / 0.58);
  --on-dark-line: oklch(0.97 0.005 175 / 0.14);

  --border: oklch(0.9 0.01 175);
  --border-subtle: oklch(0.94 0.008 175);

  /* Typography — Variable Arabic fonts */
  --font-display: 'Almarai', sans-serif;
  --font-body: 'Noto Sans Arabic', 'Almarai', sans-serif;

  /* Spacing — 4pt base, varied for rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 8rem;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Shadows — layered depth */
  --shadow-sm: 0 1px 2px oklch(0.26 0.05 175 / 0.04);
  --shadow-md: 0 4px 12px oklch(0.26 0.05 175 / 0.06), 0 1px 3px oklch(0.26 0.05 175 / 0.04);
  --shadow-lg: 0 12px 40px oklch(0.26 0.05 175 / 0.08), 0 4px 12px oklch(0.26 0.05 175 / 0.04);
  --shadow-xl: 0 24px 64px oklch(0.26 0.05 175 / 0.12), 0 8px 20px oklch(0.26 0.05 175 / 0.06);
  --ring: 0 0 0 3px oklch(0.72 0.14 175 / 0.18);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Enables height animation from 0 to auto where supported */
  interpolate-size: allow-keywords;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--surface-1);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; }

::selection {
  background: var(--teal);
  color: var(--text-inverse);
}

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

/* ── Grain Overlay ──────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ── Container ──────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg { transition: transform 0.35s var(--ease-out-expo); }
.btn:hover svg { transform: translateX(-4px); }

.btn--primary {
  background: var(--teal);
  color: var(--text-inverse);
}

.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

.btn--full { width: 100%; }

.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Navigation ─────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out-expo);
}

.nav--scrolled {
  background: oklch(0.985 0.005 175 / 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-img { height: 56px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out-expo);
}

.nav__link:hover {
  color: var(--teal);
  background: var(--teal-light);
}

.nav__link--cta {
  background: var(--green-deep) !important;
  color: var(--text-inverse) !important;
  padding: 0.55rem 1.25rem;
  margin-right: 0.25rem;
}

.nav__link--cta:hover {
  background: var(--green-mid) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
}

/* ── Hero ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--surface-1);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  color: var(--teal);
  opacity: 0.06;
}

.hero__blob--1 {
  width: 700px;
  height: 700px;
  top: -150px;
  left: -200px;
  animation: blobFloat 20s ease-in-out infinite;
}

.hero__blob--2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -100px;
  color: var(--green-deep);
  opacity: 0.04;
  animation: blobFloat 25s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(30px, -20px) rotate(5deg) scale(1.05); }
  66% { transform: translate(-20px, 15px) rotate(-3deg) scale(0.95); }
}

.hero__gradient-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.72 0.14 175 / 0.08) 0%, transparent 70%);
  top: 10%;
  right: 10%;
  filter: blur(60px);
}

.hero__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  width: 100%;
  padding-top: 7rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-6);
}

.hero__eyebrow-line {
  width: 40px;
  height: 1.5px;
  background: var(--teal);
  border-radius: 1px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}

.hero__title--accent {
  color: var(--teal);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero Visual */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__diamond-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
}

.hero__diamond {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--green-deep) 100%);
  transform: rotate(45deg);
  border-radius: var(--radius-xl);
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -140px;
  margin-left: -140px;
  animation: diamondPulse 4s ease-in-out infinite;
}

.hero__diamond-ring {
  position: absolute;
  inset: -16px;
  border: 1.5px solid oklch(0.72 0.14 175 / 0.15);
  border-radius: calc(var(--radius-xl) + 16px);
}

.hero__diamond-ring--2 {
  inset: -36px;
  border-color: oklch(0.72 0.14 175 / 0.07);
}

@keyframes diamondPulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.02); }
}

/* Floating Badges */
.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: oklch(0.985 0.005 175 / 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.hero__badge svg { color: var(--teal); flex-shrink: 0; }

.hero__badge--1 { top: 15%; right: 0; animation: badgeFloat 5s ease-in-out infinite; }
.hero__badge--2 { bottom: 30%; left: -10%; animation: badgeFloat 6s ease-in-out infinite 1s; }
.hero__badge--3 { bottom: 8%; right: 5%; animation: badgeFloat 5.5s ease-in-out infinite 0.5s; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hero Scroll */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--teal);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ── Section Scaffolding ────────────────── */
.section {
  position: relative;
  padding: clamp(4.5rem, 11vw, 8.5rem) 0;
  background: var(--surface-1);
}

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

.section--dark {
  background: var(--green-deep);
  color: var(--text-inverse);
  overflow: hidden;
}

.shell {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: var(--space-5);
}

.eyebrow__num {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: var(--teal-light);
  color: var(--teal-dark);
}

.section--dark .eyebrow { color: var(--teal-light); }

.section--dark .eyebrow__num {
  background: oklch(0.72 0.14 175 / 0.16);
  color: var(--teal-light);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: var(--space-5) clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head-desc {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 1rem;
  padding-bottom: 0.4rem;
}

.section--dark .section__head-desc { color: var(--on-dark-soft); }

.accent { color: var(--teal-dark); }
.accent--light { color: var(--teal-light); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-dark);
  position: relative;
}

.link-arrow::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -3px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out-expo);
}

.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { transition: transform 0.4s var(--ease-out-expo); }
.link-arrow:hover svg { transform: translateX(-5px); }

/* ── About Section ──────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about__aside {
  position: sticky;
  top: 7.5rem;
}

.about__note {
  margin-top: var(--space-5);
  color: var(--text-secondary);
  line-height: 1.95;
  max-width: 34ch;
}

.about__aside .link-arrow { margin-top: var(--space-6); }

.about__mark {
  width: 150px;
  margin-top: var(--space-10);
  opacity: 0.06;
  filter: grayscale(1);
  pointer-events: none;
}

.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-wrap: pretty;
}

.about__lead mark {
  color: var(--text-primary);
  background: linear-gradient(
    to top,
    color-mix(in oklab, var(--teal) 30%, transparent) 32%,
    transparent 32%
  );
}

.about__text {
  margin-top: var(--space-5);
  color: var(--text-secondary);
  line-height: 2.05;
  max-width: 62ch;
}

.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-6);
}

.about__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface-1);
}

.about__facts li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.pillar {
  position: relative;
  isolation: isolate;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo),
              border-color 0.4s;
}

.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in oklab, var(--teal) 16%, transparent),
    transparent 70%
  );
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--teal) 35%, var(--border));
}

.pillar:hover::before { opacity: 1; }

.pillar__idx {
  position: absolute;
  top: 1.15rem;
  inset-inline-end: 1.3rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-tertiary);
  opacity: 0.45;
}

.pillar__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--teal-light), var(--amber-light));
  color: var(--teal-dark);
  margin-bottom: var(--space-5);
  transition: transform 0.5s var(--ease-out-expo);
}

.pillar:hover .pillar__icon { transform: rotate(-6deg) scale(1.06); }

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.pillar p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* ── Services Section ───────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.services__intro {
  position: sticky;
  top: 7.5rem;
}

.services__desc {
  margin-top: var(--space-5);
  color: var(--text-secondary);
  line-height: 2;
  max-width: 36ch;
}

.services__intro .btn { margin-top: var(--space-6); }

.acc-list { border-top: 1px solid var(--border); }

.acc { border-bottom: 1px solid var(--border); }

.acc__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: padding 0.4s var(--ease-out-expo);
}

.acc__head::-webkit-details-marker { display: none; }
.acc__head:hover { padding-inline-start: 0.85rem; }

.acc__num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  flex: none;
}

.acc__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  transition: color 0.35s;
}

.acc[open] .acc__title { color: var(--teal-dark); }

.acc__sign {
  margin-inline-start: auto;
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface-1);
  transition: transform 0.45s var(--ease-out-expo),
              background 0.35s, border-color 0.35s, color 0.35s;
}

.acc[open] .acc__sign {
  transform: rotate(135deg);
  background: var(--teal);
  border-color: var(--teal);
  color: var(--text-inverse);
}

.acc__panel { padding: 0 0.25rem 1.9rem; }

.acc__panel p {
  color: var(--text-secondary);
  line-height: 2;
  max-width: 58ch;
  margin-bottom: var(--space-4);
}

.acc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.acc__tags span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: var(--surface-3);
  color: var(--text-secondary);
}

@supports selector(::details-content) {
  .acc::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.5s var(--ease-out-expo),
                content-visibility 0.5s allow-discrete;
  }
  .acc[open]::details-content { block-size: auto; }
}

/* ── Process Section ────────────────────── */
.process__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.process__glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  top: -30%;
  inset-inline-start: -15%;
  background: radial-gradient(circle, oklch(0.72 0.14 175 / 0.16), transparent 65%);
  filter: blur(30px);
}

.process__watermark {
  position: absolute;
  inset-inline-end: -4%;
  bottom: -12%;
  width: 380px;
  opacity: 0.04;
  filter: brightness(0) invert(1);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  position: relative;
  padding-top: var(--space-8);
}

.steps::before {
  content: '';
  position: absolute;
  top: 6px;
  inset-inline: 0;
  height: 1px;
  background: var(--on-dark-line);
}

.step { position: relative; }

.step__dot {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px oklch(0.72 0.14 175 / 0.15);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.step:hover .step__dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 8px oklch(0.72 0.14 175 / 0.18);
}

.step__idx {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-light);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-inverse);
  margin: 0.55rem 0 0.7rem;
}

.step p {
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--on-dark-soft);
  max-width: 34ch;
}

.pledges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.pledges li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.15rem;
  border-radius: 100px;
  border: 1px solid var(--on-dark-line);
  background: oklch(0.97 0.005 175 / 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-dark-strong);
}

.pledges svg { color: var(--teal-light); flex: none; }

/* ── Products Section ───────────────────── */
.products__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.55s var(--ease-out-expo),
              box-shadow 0.55s var(--ease-out-expo),
              border-color 0.4s;
}

.pcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: color-mix(in oklab, var(--teal) 30%, var(--border));
}

.pcard:has(.pcard__cover:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.pcard--lead { grid-column: span 5; grid-row: span 2; }
.pcard--stack { grid-column: span 7; }
.pcard--row { grid-column: span 12; flex-direction: row; }

.pcard__visual {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--teal-dark);
  background:
    linear-gradient(150deg,
      color-mix(in oklab, var(--teal) 20%, var(--surface-3)) 0%,
      var(--surface-3) 55%,
      color-mix(in oklab, var(--amber) 16%, var(--surface-3)) 100%);
}

.pcard--lead .pcard__visual { flex: 1; min-height: 320px; }

.pcard--row .pcard__visual {
  width: 34%;
  flex: none;
  min-height: 230px;
}

.pcard__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.26 0.05 175 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.26 0.05 175 / 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}

.pcard__glyph {
  position: relative;
  transition: transform 0.65s var(--ease-out-expo);
}

.pcard:hover .pcard__glyph { transform: scale(1.08) rotate(-4deg); }

.pcard__tag {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  background: oklch(1 0 0 / 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--teal-dark);
}

.pcard__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: var(--space-6);
}

.pcard--row .pcard__body {
  justify-content: center;
  padding: clamp(1.75rem, 3.5vw, 3rem);
}

.pcard__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
}

.pcard--lead .pcard__body h3,
.pcard--row .pcard__body h3 { font-size: 1.35rem; }

.pcard__body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.95;
  max-width: 54ch;
}

.pcard__link {
  margin-top: auto;
  padding-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.pcard__link svg { transition: transform 0.4s var(--ease-out-expo); }
.pcard:hover .pcard__link svg { transform: translateX(-5px); }

.pcard__cover {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Category marquee */
.marquee {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-block: 1rem;
  border-block: 1px solid var(--border);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.marquee__track span::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ── Contact Section ────────────────────── */
.contact__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: clamp(24px, 3.2vw, 40px);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.contact__panel::before {
  content: '';
  position: absolute;
  inset-inline-end: -140px;
  top: -160px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--teal) 20%, transparent), transparent 68%);
  pointer-events: none;
}

.contact__info { position: relative; }

.contact__desc {
  margin-top: var(--space-5);
  color: var(--text-secondary);
  line-height: 2;
  max-width: 40ch;
}

.channels {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: var(--space-8);
}

.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  transition: transform 0.4s var(--ease-out-expo),
              background 0.35s, border-color 0.35s, box-shadow 0.4s;
}

.channel:hover {
  transform: translateX(-4px);
  background: var(--surface-1);
  border-color: color-mix(in oklab, var(--teal) 35%, var(--border));
  box-shadow: var(--shadow-md);
}

.channel__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal-dark);
}

.channel__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.channel__label {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.channel__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

.channel__value[dir="ltr"] { text-align: right; }

.channel__arrow {
  margin-inline-start: auto;
  flex: none;
  color: var(--text-tertiary);
  transition: transform 0.4s var(--ease-out-expo), color 0.35s;
}

.channel:hover .channel__arrow {
  transform: translateX(-4px);
  color: var(--teal-dark);
}

/* Contact Form */
.contact__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.field { position: relative; }

.field :is(input, select, textarea) {
  width: 100%;
  padding: 1.55rem 1rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  background-color: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.field :is(input, select, textarea):hover { border-color: var(--teal-muted); }

.field :is(input, select, textarea):focus {
  border-color: var(--teal);
  background-color: var(--surface-1);
  box-shadow: var(--ring);
}

.field label {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1.05rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: top 0.25s var(--ease-out-quart),
              font-size 0.25s var(--ease-out-quart),
              color 0.25s;
}

.field :is(input, textarea):focus + label,
.field :is(input, textarea):not(:placeholder-shown) + label,
.field--float label {
  top: 0.5rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  padding-top: 1.75rem;
}

.field select {
  appearance: none;
  padding-inline-end: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A9A9A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
}

.field:has(input:user-invalid, textarea:user-invalid) :is(input, textarea) {
  border-color: oklch(0.62 0.19 25);
  box-shadow: 0 0 0 3px oklch(0.62 0.19 25 / 0.12);
}

.form-status {
  display: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--teal) 12%, transparent);
  color: var(--teal-dark);
}

.form-status.show {
  display: block;
  animation: statusIn 0.4s var(--ease-out-expo);
}

.form-status--error {
  background: oklch(0.62 0.19 25 / 0.1);
  color: oklch(0.5 0.17 25);
}

@keyframes statusIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--green-dark);
  color: oklch(0.97 0.005 175 / 0.5);
  padding: var(--space-12) 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(0.97 0.005 175 / 0.06);
}

.footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-5);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.9;
  max-width: 320px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer__col h4 {
  font-family: var(--font-display);
  color: var(--text-inverse);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--space-5);
  letter-spacing: 0.03em;
}

.footer__col li { margin-bottom: var(--space-3); }

.footer__col a {
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer__col a:hover { color: var(--teal-light); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
}

.footer__bottom p { font-size: 0.75rem; }

.footer__links {
  display: flex;
  gap: var(--space-5);
}

.footer__links a {
  font-size: 0.75rem;
  transition: color 0.3s;
}

.footer__links a:hover { color: var(--teal-light); }

/* ── Reveal Animation ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

/* ── Logo Accents ────────────────────────── */
.hero__diamond-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 120px;
  height: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

/* ── Responsive — Tablet ────────────────── */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8rem;
  }

  .hero__eyebrow { justify-content: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }

  .section__head { grid-template-columns: 1fr; align-items: start; }

  .about__grid,
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about__aside,
  .services__intro { position: static; }

  .about__mark { display: none; }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }

  .steps::before {
    top: 0;
    bottom: 0;
    height: auto;
    width: 1px;
    inset-inline: auto;
    inset-inline-start: 6px;
  }

  .step {
    padding-inline-start: 2.4rem;
    padding-bottom: 2.4rem;
  }

  .step:last-child { padding-bottom: 0; }
  .step__dot { top: 0.4rem; }
  .step p { max-width: 60ch; }

  .pcard,
  .pcard--lead,
  .pcard--stack,
  .pcard--row {
    grid-column: span 12;
    grid-row: auto;
  }

  .pcard--lead .pcard__visual { min-height: 220px; }
  .pcard--row { flex-direction: column; }
  .pcard--row .pcard__visual { width: 100%; }

  .contact__panel {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ── Responsive — Mobile ────────────────── */
@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--surface-1);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: var(--space-2);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out-expo);
    box-shadow: 8px 0 40px oklch(0.26 0.05 175 / 0.1);
  }

  .nav__links.open { transform: translateX(0); }

  .nav__toggle.active span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .nav__toggle.active span:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

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

  .acc__head { gap: 0.75rem; padding: 1.25rem 0; }
  .acc__sign { width: 34px; height: 34px; }

  .pcard__body { padding: var(--space-5); }

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

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

  .footer__cols {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .process__watermark { display: none; }
}

/* ── Reduced Motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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