@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,500&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #F9F7F0;
  --bg-2: #F4EFE0;
  --bg-3: #EFE8D2;
  --surface: #FFFFFF;
  --primary: #C2D46A;
  --primary-dark: #9AB644;
  --primary-soft: rgba(194, 212, 106, 0.18);
  --primary-ghost: rgba(194, 212, 106, 0.08);
  --sage: #749A60;
  --sage-dark: #4F6E40;
  --ink: #171717;
  --ink-2: #2A2A2A;
  --muted: rgba(23, 23, 23, 0.62);
  --muted-2: rgba(23, 23, 23, 0.48);
  --border: rgba(23, 23, 23, 0.08);
  --border-strong: rgba(23, 23, 23, 0.14);
  --shadow-sm: 0 1px 2px rgba(23, 23, 23, 0.04);
  --shadow-md: 0 4px 16px rgba(23, 23, 23, 0.06), 0 1px 2px rgba(23, 23, 23, 0.04);
  --shadow-lg: 0 12px 32px rgba(23, 23, 23, 0.08), 0 4px 8px rgba(23, 23, 23, 0.04);
  --shadow-xl: 0 24px 60px rgba(23, 23, 23, 0.12), 0 8px 18px rgba(23, 23, 23, 0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0;
}

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

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

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

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--primary); color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(23,23,23,0.18); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(23,23,23,0.32); }

/* Layout */
.container-rc {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}
@media (min-width: 640px) { .container-rc { padding: 0 1.5rem; } }
@media (min-width: 768px) { .container-rc { padding: 0 2.5rem; } }

.section-y { padding: 5rem 0; }
@media (min-width: 768px) { .section-y { padding: 7rem 0; } }

/* Typography */
.display-1 {
  font-size: clamp(2.25rem, 6.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  word-break: break-word;
}
.display-2 {
  font-size: clamp(1.875rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.display-3 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); }
.mono { font-family: 'JetBrains Mono', monospace; font-feature-settings: "tnum"; }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5F7A2E;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary-dark);
  border-radius: 50%;
}
.eyebrow.dark {
  background: rgba(255,255,255,0.08);
  color: var(--primary);
}
.eyebrow.dark::before { background: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.625rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--ink); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(154,182,68,0.32); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); background: rgba(23,23,23,0.03); }
.btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-dark:hover { background: #000; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.btn-light { background: white; color: var(--ink); border-color: white; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.btn-arrow svg { transition: transform 0.25s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }
.btn-lg { padding: 1.05rem 1.85rem; font-size: 1rem; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Icon tile */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 0.75rem;
  transition: all 0.25s;
}
.icon-tile-lg { width: 3.5rem; height: 3.5rem; border-radius: 0.875rem; }
.card-hover:hover .icon-tile {
  background: var(--primary);
  color: var(--ink);
  transform: rotate(-4deg) scale(1.04);
}

/* Image frames */
.img-frame {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-2);
}
.img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  animation: marquee 40s linear infinite;
  display: flex;
  gap: 2.5rem;
  width: max-content;
  align-items: center;
}
.marquee-track:hover { animation-play-state: paused; }

/* Reveal */
@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Float */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-y { animation: float 6s ease-in-out infinite; }

/* Pulse dot */
.dot-pulse {
  width: 8px; height: 8px;
  background: var(--primary-dark);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(154,182,68,0.6);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(154,182,68,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(154,182,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(154,182,68,0); }
}

/* Blob bg */
@keyframes blobShift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-20px) scale(1.05); }
}
.blob-anim { animation: blobShift 14s ease-in-out infinite; }

/* Shimmer skeleton for tonnes loader */
@keyframes shimmerScan {
  0%   { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}
.shimmer-block {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(194,212,106,0.10) 45%,
    rgba(255,255,255,0.04) 90%
  );
  background-size: 500px 100%;
  animation: shimmerScan 1.6s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes decFlash {
  0%   { opacity: 0.4; }
  50%  { opacity: 1; }
  100% { opacity: 0.4; }
}
.dec-flash { animation: decFlash 0.18s ease-out; }

/* Page hero */
.page-hero {
  padding-top: 9rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .page-hero { padding-top: 11rem; padding-bottom: 6rem; } }

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.field label .req { color: #B8412C; margin-left: 2px; }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  background: white;
  border: 1.5px solid var(--border-strong);
  border-radius: 0.625rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  transition: all 0.2s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: white;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chip:hover { border-color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.chip.lime.active { background: var(--primary); color: var(--ink); border-color: var(--primary); }

/* Nav */
.nav-link {
  position: relative;
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 60ms linear;
}

/* Tab pill */
.tab-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}
.tab-pill:hover { border-color: var(--border-strong); transform: translateX(2px); }
.tab-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab-pill.active .tab-badge { background: var(--primary); color: var(--ink); }
.tab-badge {
  padding: 0.25rem 0.625rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}

/* Logo pill */
.logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0.875rem;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: all 0.3s;
  flex-shrink: 0;
}
.logo-pill:hover { filter: grayscale(0); opacity: 1; border-color: var(--border-strong); transform: translateY(-2px); }
.logo-pill img { max-height: 36px; width: auto; }

/* Decorative grid bg */
.dotted-bg {
  background-image: radial-gradient(rgba(23,23,23,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(23,23,23,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,23,23,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 767px) {
  .section-y { padding: 3.5rem 0; }
  .page-hero { padding-top: 7.5rem; padding-bottom: 3rem; }
}

/* Team card mobile — stacked layout */
@media (max-width: 700px) {
  .person-card { padding: 20px !important; }
  .person-card-header {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: center !important;
  }
  .person-card-avatar-wrap { display: flex !important; justify-content: center !important; }
  .person-card-avatar { width: 84px !important; height: 84px !important; }
  .person-card-info {
    padding-right: 0 !important;
    flex: unset !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}
