/* ============================================================
   AKILAM INNOVATIONS — Shared Stylesheet
   ============================================================ */

:root {
  --plum:   #6b405f;
  --plum-d: #4d2d44;
  --plum-x: #2c1825;
  --coral:  #ef775c;
  --yellow: #ffcf3b;
  --cyan:   #4bc0d8;
  --green:  #85bc84;
  --white:  #ffffff;
  --soft:   #f7f2f5;
  --ink:    #1f1219;
  --muted:  #6f6470;
  --line:   #ebe3e8;
  --serif:  'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.96);
  padding: 12px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  backdrop-filter: saturate(140%) blur(8px);
}
.nav__brand { display: flex; align-items: center; text-decoration: none; }
.nav__wordmark {
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  letter-spacing: -.01em; color: #fff; transition: color .3s ease;
}
.nav.scrolled .nav__wordmark { color: var(--ink); }

/* Two logos: white for hero, dark for scrolled white nav */
.nav__logo {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity .3s ease;
}
.nav__logo--light { opacity: 1; }
.nav__logo--dark  { display: none; }

.nav.scrolled .nav__logo--light { display: none; }
.nav.scrolled .nav__logo--dark  { display: block; opacity: 1; }

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a { color: #fff; opacity: .85; transition: opacity .2s, color .2s; }
.nav__links a:hover { opacity: 1; color: var(--yellow); }
.nav.scrolled .nav__links a { color: var(--ink); opacity: .75; }
.nav.scrolled .nav__links a:hover { color: var(--coral); opacity: 1; }

/* Active nav link, stays coral regardless of scroll state */
.nav__links a.active,
.nav.scrolled .nav__links a.active {
  color: var(--coral);
  opacity: 1;
  font-weight: 600;
}

.nav__cta {
  padding: 10px 22px;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  color: var(--yellow);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .4px;
  transition: all .25s ease;
}
.nav__cta:hover { background: var(--yellow); color: var(--plum); }
.nav.scrolled .nav__cta { border-color: var(--plum); color: var(--plum); }
.nav.scrolled .nav__cta:hover { background: var(--plum); color: #fff; }

/* ════════════════════════════════════════════
   MOBILE NAV  (≤ 780px)
   Drawer lives INSIDE <header> so it always
   inherits stacking context correctly.
   ════════════════════════════════════════════ */

/* Hide desktop links + CTA on mobile */
@media (max-width: 780px) {
  .nav, .nav.scrolled { padding: 14px 20px; }
  .nav__links { display: none; }
  .nav__cta   { display: none; }
}

/* ── Hamburger button ─────────────────────── */
.nav__hamburger {
  display: none;          /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 301;
  flex-shrink: 0;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
  transform-origin: center;
}
.nav.scrolled .nav__hamburger span { background: var(--ink); }

/* ☰ → ✕ */
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav__hamburger { display: flex; }
}

/* ── Drawer ───────────────────────────────── */
.nav__drawer {
  /* Completely invisible + non-interactive until .open */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  position: fixed;
  top: 0; left: 0; right: 0;
  min-height: 100vh;
  background: var(--plum-x);
  z-index: 300;
  padding: 100px 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;

  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.nav__drawer.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s;
}

.nav__drawer a {
  display: block;
  padding: 18px 0;
  font-size: 26px;
  font-family: var(--serif);
  font-weight: 600;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  letter-spacing: -.01em;
  transition: color .2s ease, padding-left .2s ease;
}
.nav__drawer a:hover,
.nav__drawer a.active { color: #fff; padding-left: 6px; }
.nav__drawer a.active { color: var(--yellow); }

.nav__drawer-cta {
  margin-top: 36px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--yellow);
  color: var(--plum) !important;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--sans);
  border: none;
  width: fit-content;
  border-bottom: none !important;
  padding-left: 28px !important;
}
.nav__drawer-cta:hover {
  background: #fff;
  color: var(--plum) !important;
  padding-left: 28px !important;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all .25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--yellow); color: var(--plum); }
.btn--primary:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }

/* ============ SECTION DEFAULTS ============ */
.section { padding: 140px 80px; position: relative; }
.container { max-width: 1280px; margin: 0 auto; }
.section--dark { background: var(--plum); color: #fff; }
.section--soft { background: var(--soft); }
.eyebrow {
  font-size: 12px;
  letter-spacing: 5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 24px;
}
.section--dark .eyebrow { color: var(--yellow); }
.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 32px;
  max-width: 900px;
}
.section__title em { font-style: italic; color: var(--coral); font-weight: 500; }
.section--dark .section__title em { color: var(--yellow); }
.section__lead {
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 780px;
  color: var(--muted);
  line-height: 1.65;
}
.section--dark .section__lead { color: #f0e1e9; }

/* ============ FLOATING SHAPES / PARALLAX ============ */

.hero__shapes,
.ai__layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.tri-wrap {
  position: absolute;
  will-change: transform;
  transform-origin: center;
}

/* PERFECT SVG TRIANGLE */
.tri {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  opacity: 0.95;
  will-change: transform;
}

/* =========================================
   PERFECT CORNER CONNECTION FIX
========================================= */

.tri polygon {
  fill: none;

  /* PERFECT CORNERS */
  stroke-linejoin: round;
  stroke-linecap: round;

  /* NO BROKEN EDGES */
  vector-effect: non-scaling-stroke;
  paint-order: stroke;

  /* SHARP RENDERING */
  shape-rendering: geometricPrecision;
}

/* =========================================
   TRIANGLE COLORS
========================================= */

.tri--yellow polygon { stroke: var(--yellow); }
.tri--cyan polygon   { stroke: var(--cyan); }
.tri--green polygon  { stroke: var(--green); }
.tri--coral polygon  { stroke: var(--coral); }
.tri--white polygon  { stroke: var(--white); }

/* =========================================
   STROKE WIDTHS
========================================= */

.stroke-sm polygon { stroke-width: 1.5; }
.stroke-md polygon { stroke-width: 2.5; }
.stroke-lg polygon { stroke-width: 3.5; }

/* =========================================
   FLOATING ANIMATIONS
========================================= */

@keyframes float1 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(18px, 14px) rotate(3deg); }
  50%  { transform: translate(30px, 28px) rotate(6deg); }
  75%  { transform: translate(12px, 22px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float2 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-16px, 22px) rotate(-4deg); }
  50%  { transform: translate(-28px, 38px) rotate(-7deg); }
  75%  { transform: translate(-12px, 18px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float3 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(22px, -10px) rotate(5deg); }
  50%  { transform: translate(34px, -20px) rotate(8deg); }
  75%  { transform: translate(18px, -8px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float4 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-14px, -18px) rotate(-3deg); }
  50%  { transform: translate(-24px, -30px) rotate(-6deg); }
  75%  { transform: translate(-10px, -14px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float5 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(12px, 20px) rotate(6deg); }
  50%  { transform: translate(22px, 32px) rotate(10deg); }
  75%  { transform: translate(8px, 18px) rotate(5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.tri--f1 { animation: float1 16s ease-in-out infinite; }
.tri--f2 { animation: float2 19s ease-in-out infinite; animation-delay: -3s; }
.tri--f3 { animation: float3 17s ease-in-out infinite; animation-delay: -6s; }
.tri--f4 { animation: float4 21s ease-in-out infinite; animation-delay: -1s; }
.tri--f5 { animation: float5 23s ease-in-out infinite; animation-delay: -9s; }

/* ============ TEAM (carousel — 3 per view) ============ */
.team { background: var(--soft); padding: 140px 80px; overflow: hidden; }
.team__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 64px; flex-wrap: wrap; }
.team__head-left { max-width: 760px; }
.team__count { font-family: var(--serif); font-weight: 600; font-size: clamp(60px, 7vw, 100px); color: var(--coral); line-height: .9; letter-spacing: -.02em; margin: 0; }
.team__count span { font-size: .55em; color: var(--muted); font-weight: 500; margin-left: .2em; }

.team__viewport { overflow: hidden; position: relative; }
.team__track { display: flex; gap: 28px; transition: transform .55s cubic-bezier(.4,.0,.2,1); will-change: transform; }
.team-card { flex: 0 0 calc((100% - 56px) / 3); background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 24px rgba(107,64,95,.06); transition: transform .35s ease, box-shadow .35s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(107,64,95,.16); }

.team-card__photo { width: 100%; padding-top: 90%; position: relative; background: var(--plum); overflow: hidden; }

/* Dynamic layout rule adjusted to enforce exact dimensions and remove card stretching gaps */
.team-card__photo svg,
.team-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;                  /* Matches padding container box bounds */
  object-fit: cover;             /* Auto-scales without distorting aspect ratios */
  object-position: top center;    /* Focuses bounding box cleanly on portraits */
  display: block;
}

.team-card__photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent, var(--coral)); }
.team-card[data-c="coral"]  { --accent: var(--coral); }
.team-card[data-c="yellow"] { --accent: var(--yellow); }
.team-card[data-c="cyan"]   { --accent: var(--cyan); }
.team-card[data-c="green"]  { --accent: var(--green); }
.team-card[data-c="plum"]   { --accent: var(--plum); }

.team-card__body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 6px; }
.team-card__name { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); margin: 0; letter-spacing: -.01em; line-height: 1.15; }
.team-card__role { font-size: 12px; letter-spacing: 3px; font-weight: 700; color: var(--accent, var(--coral)); text-transform: uppercase; margin: 0 0 10px; }
.team-card__bio { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }

.team__dots { display: flex; justify-content: center; gap: 14px; margin-top: 48px; }
.team__dot { width: 12px; height: 12px; border-radius: 50%; border: none; padding: 0; background: rgba(107,64,95,.20); cursor: pointer; transition: background .25s ease, transform .25s ease; }
.team__dot:hover { background: rgba(107,64,95,.40); }
.team__dot.active { background: var(--plum); transform: scale(1.25); }

@media (max-width:900px) {
  .team-card { flex: 0 0 calc((100% - 28px) / 2); }
  .team { padding-left: 24px; padding-right: 24px; }
}
@media (max-width:600px) {
  .team-card { flex: 0 0 100%; }
  .team { padding-left: 24px; padding-right: 24px; padding-top: 80px; padding-bottom: 80px; }
}

/* =========================================
   MOBILE RESPONSIVE FIX
========================================= */

@media (max-width: 600px) {
  .hero__shapes .tri-wrap:nth-child(1) { width: 52vw !important; height: 52vw !important; top: 4% !important; right: -6% !important; }
  .hero__shapes .tri-wrap:nth-child(2) { width: 36vw !important; height: 36vw !important; top: 28% !important; right: 2% !important; }
  .hero__shapes .tri-wrap:nth-child(3) { width: 22vw !important; height: 22vw !important; top: 52% !important; right: 28% !important; }
  .hero__shapes .tri-wrap:nth-child(4) { width: 28vw !important; height: 28vw !important; bottom: 16% !important; right: 18% !important; }
  .hero__shapes .tri-wrap:nth-child(5) { width: 18vw !important; height: 18vw !important; bottom: 20% !important; right: 2% !important; }

  .hero__shapes polygon { stroke-width: 2px !important; }
}

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal--d2 { transition-delay: .1s; }
.reveal--d3 { transition-delay: .2s; }
.reveal--d4 { transition-delay: .3s; }

/* ============ RESPONSIVE PADDING ============ */
@media (max-width: 900px) {
  .section { padding-left: 24px; padding-right: 24px; }
}

/* ============ FOOTER ============ */
.footer { background: #1a0e15; color: #bfb1b9; padding: 80px 80px 32px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer__brand .footer__logo { height: 44px; width: auto; display: block; margin-bottom: 20px; }
.footer__brand p { font-size: 14px; line-height: 1.7; color: #8d7f87; max-width: 340px; }
.footer h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  letter-spacing: .3px;
  margin: 0 0 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; }
.footer a { color: #bfb1b9; font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--yellow); }
.footer__bot {
  padding-top: 32px;
  border-top: 1px solid #2c1825;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #6f6470;
}

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

/* ============ SCROLL INDICATOR ============ */
.scroll-ind {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  opacity: .55;
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.scroll-ind::after {
  content: '';
  width: 1px;
  height: 36px;
  background: #fff;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}