/* ═══════════════════════════════════════════════════════════
   KAYLEB STUDIO  ·  style.css
   Dark editorial · Playfair Display + DM Sans · Teal accents
═══════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #0c0d0f;
  color: #e8e4dc;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ── CSS Variables ── */
:root {
  --bg:          #0c0d0f;
  --bg-2:        #101214;
  --bg-card:     #141618;
  --bg-card-2:   #191c1f;
  --teal:        #00c8c8;
  --teal-dim:    #008f8f;
  --teal-glow:   rgba(0, 200, 200, 0.15);
  --white:       #f0ece4;
  --grey:        #7a7e88;
  --grey-2:      #454850;
  --border:      rgba(255,255,255,0.06);
  --border-teal: rgba(0,200,200,0.2);
  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.18, 1);
  --radius:      2px;
  --max-w:       1320px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

/* ── Grain overlay ── */
.grain {
  position: fixed; inset: 0; z-index: 999;
  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: 200px 200px;
}

/* ── Shared ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }

.label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.section-head h2,
.why-content h2,
.contact-info h2,
.cta-body h2,
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
}
h2 em { font-style: italic; color: var(--teal); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }


/* ═══════════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════════ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(12,13,15,0.94);
  border-color: var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex; align-items: center; gap: 0.6rem;
  flex-shrink: 0;
}
.logo img { height: 40px; object-fit: contain; display: block; }
.logo-text { display: none; }
.logo-text strong { font-weight: 700; }

.nav-links {
  display: flex; gap: 0.3rem;
}
.nav-a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 0.4rem 0.9rem;
  position: relative;
  transition: color 0.25s;
}
.nav-a::after {
  content: '';
  position: absolute; bottom: 0; left: 0.9rem; right: 0.9rem;
  height: 1px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-a:hover, .nav-a.active { color: var(--white); }
.nav-a:hover::after, .nav-a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.cta-pill {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--teal);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.2s;
  white-space: nowrap;
}
.cta-pill:hover { background: #00e0e0; transform: translateY(-1px); }

.burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; padding: 4px;
}
.burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }


/* ═══════════════════════════════════════════════════════════
   HERO — Infinite conveyor belt
   Desktop : 3 panels always visible, images flow one-by-one R→L
   Mobile  : 1 panel visible, same flow
   JS clones panels to create seamless infinite loop
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh; min-height: 560px;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Track holds all panels (original + clones) in a flat row */
.hero-track {
  display: flex;
  height: 100%;
  /* JS drives transform for auto-scroll and manual prev/next */
}

/* Every panel is 1/3 viewport wide on desktop */
.hero-panel {
  flex-shrink: 0;
  width: calc(100% / 3);
  height: 100%;
  overflow: hidden;
  position: relative;
  border-right: 2px solid var(--bg);
}
.hero-panel:last-child { border-right: none; }

.hero-panel img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  /* subtle scale-in on entry */
  transition: transform 1.2s var(--ease-out);
  transform: scale(1.04);
}
.hero-panel.entered img { transform: scale(1); }

/* On mobile: 1 panel = full width */
@media (max-width: 700px) {
  .hero-panel {
    width: 100%;
    border-right: none;
  }
}

/* Gradient overlays */
.hero-slider::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to top,  rgba(12,13,15,0.92) 0%, rgba(12,13,15,0.25) 45%, transparent 70%),
    linear-gradient(to right, rgba(12,13,15,0.6)  0%, transparent 55%);
  pointer-events: none;
}

/* Prev / Next arrows */
.slide-arrow {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(12,13,15,0.55);
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.slide-arrow svg { width: 18px; height: 18px; }
.slide-arrow:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.prev { left: 1.5rem; }
.next { right: 1.5rem; }

/* Dot indicators */
.hero-dots {
  position: absolute; bottom: 2.2rem; left: 50%; z-index: 10;
  transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.dot {
  width: 20px; height: 2px;
  background: rgba(255,255,255,0.2);
  border: none;
  transition: background 0.3s, width 0.3s;
}
.dot.active { background: var(--teal); width: 36px; }

/* Slide counter badge */
.slide-badge {
  position: absolute; bottom: 2rem; right: 2rem; z-index: 10;
  display: flex; align-items: baseline; gap: 0.3rem;
  font-family: var(--font-display);
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}
#slideNumCurrent { font-size: 2rem; font-weight: 700; color: var(--teal); line-height: 1; }
.slide-sep { font-size: 0.85rem; }

/* Hero text */
.hero-copy {
  position: absolute; bottom: 0; left: 0; z-index: 5;
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 640px;
}
.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
  animation: fadeUp 0.9s 0.3s both;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700; line-height: 1.05;
  color: var(--white); margin-bottom: 2rem;
  animation: fadeUp 0.9s 0.5s both;
}
.hero-copy h1 em { font-style: italic; color: var(--teal); }

.hero-cta {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.25s;
  animation: fadeUp 0.9s 0.7s both;
}
.hero-cta svg { width: 16px; height: 16px; animation: bounce 2s infinite; }
.hero-cta:hover { color: var(--teal); }

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(5px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}


/* ═══════════════════════════════════════════════════════════
   MARQUEE — outline text, no background fill
═══════════════════════════════════════════════════════════ */
.marquee-wrap {
  overflow: hidden;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  white-space: nowrap;
}
.marquee-inner { overflow: hidden; }
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marquee 28s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* Large bold uppercase — Bebas Neue matches the chunky display style */
.mq-word {
  font-family: 'Bebas Neue', var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400; /* Bebas Neue is inherently heavy */
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* Outline only — no fill, matching your screenshot */
  color: transparent;
  -webkit-text-stroke: 2px var(--teal);
  text-stroke: 2px var(--teal);
  padding: 0 2rem;
  white-space: nowrap;
  opacity: 0.85;
}

/* Alternate words get a solid fill for variety */
.mq-word.solid {
  color: var(--teal);
  -webkit-text-stroke: 0;
  text-stroke: 0;
  opacity: 1;
}

/* Separator */
.mq-dot {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--teal);
  opacity: 0.3;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

/* Right to left */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════ */
.services {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.svc-card {
  background: var(--bg-card);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
}
.svc-card:hover { background: var(--bg-card-2); }

/* Animated teal top-border on hover */
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(0,200,200,0.08);
  line-height: 1;
  position: absolute; top: 1.2rem; right: 1.5rem;
  user-select: none;
  transition: color 0.35s;
}
.svc-card:hover .svc-num { color: rgba(0,200,200,0.15); }

.svc-icon {
  width: 52px; height: 52px;
  color: var(--teal);
  margin-bottom: 1.8rem;
}
.svc-icon svg { width: 100%; height: 100%; }

.svc-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 1rem;
}
.svc-card p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--grey);
}
.svc-line {
  height: 1px;
  background: var(--border-teal);
  margin-top: 2rem;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.svc-card:hover .svc-line { transform: scaleX(1); }


/* ═══════════════════════════════════════════════════════════
   PORTFOLIO — Bento Grid
═══════════════════════════════════════════════════════════ */
.portfolio {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
}

.portfolio-head {
  text-align: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}
.portfolio-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.portfolio-head p { color: var(--grey); font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO — Responsive auto-fill grid
═══════════════════════════════════════════════════════════ */

/* Grid — fills columns automatically */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* Each cell is a 2:3 portrait rectangle */
.grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  aspect-ratio: 2 / 3;
}

/* Image fills the square cell */
.grid-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.grid-item:hover img { transform: scale(1.08); }

/* Hover overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.1)  45%,
    transparent      100%
  );
  display: flex;
  align-items: flex-end;
  padding: 0.85rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.grid-item:hover .grid-overlay { opacity: 1; }

.grid-overlay span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}

/* Teal bottom line on hover */
.grid-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
  z-index: 2;
}
.grid-item:hover::after { transform: scaleX(1); }

@media (max-width: 1100px) { .photo-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 880px)  { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 660px)  { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 440px)  { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; padding: 0; } }


/* ═══════════════════════════════════════════════════════════
   WHY CHOOSE US
═══════════════════════════════════════════════════════════ */
.why {
  padding: var(--section-pad) clamp(1.5rem, 4vw, 3rem);
  background: var(--bg);
}

.why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.why-image {
  position: relative;
}
.why-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
/* Teal corner accent */
.why-image::before {
  content: '';
  position: absolute; top: -12px; left: -12px;
  width: 80px; height: 80px;
  border-top: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
  pointer-events: none;
}
.why-image::after {
  content: '';
  position: absolute; bottom: -12px; right: -12px;
  width: 80px; height: 80px;
  border-bottom: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
  pointer-events: none;
}

.why-img-badge {
  position: absolute; bottom: 2rem; right: -1.5rem;
  background: var(--teal);
  color: var(--bg);
  padding: 1rem 1.4rem;
  text-align: center;
  min-width: 110px;
}
.why-img-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.why-img-badge span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.why-content h2 { margin-top: 0.5rem; margin-bottom: 0.8rem; }
.why-intro {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.why-list { display: flex; flex-direction: column; gap: 1.6rem; }

.why-item {
  display: flex; gap: 1.2rem;
  align-items: flex-start;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}
.why-item:last-child { border-bottom: none; padding-bottom: 0; }

.why-icon {
  width: 40px; height: 40px;
  background: var(--teal-glow);
  border: 1px solid var(--border-teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
  transition: background 0.25s;
}
.why-icon svg { width: 18px; height: 18px; }
.why-item:hover .why-icon { background: var(--teal); color: var(--bg); }

.why-item h4 {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.why-item p { font-size: 0.84rem; line-height: 1.7; color: var(--grey); }


/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
}

.testi-track-wrap { position: relative; overflow: hidden; margin-top: 3rem; }

.testi-track {
  display: flex;
  transition: transform 0.7s var(--ease-in-out);
}

.testi-card {
  min-width: 100%;
  padding: 0 clamp(1.5rem, 6vw, 8rem);
  text-align: center;
}
.testi-stars {
  color: var(--teal);
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.testi-card p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 2rem;
}
.testi-card footer {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.testi-card footer strong {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--teal);
}
.testi-card footer span {
  font-size: 0.78rem; color: var(--grey);
  letter-spacing: 0.06em;
}

.testi-nav {
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  margin-top: 2.5rem;
}
.testi-arr {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: none; color: var(--grey);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.testi-arr svg { width: 16px; height: 16px; }
.testi-arr:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-glow); }

.testi-dots { display: flex; gap: 0.4rem; }
.t-dot {
  width: 20px; height: 2px;
  background: var(--grey-2); border: none;
  transition: background 0.3s, width 0.3s;
}
.t-dot.active { background: var(--teal); width: 32px; }


/* ═══════════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: var(--section-pad) clamp(1.5rem, 4vw, 3rem);
}
.cta-bg-img {
  position: absolute; inset: 0;
}
.cta-bg-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cta-vignette {
  position: absolute; inset: 0;
  background: rgba(12,13,15,0.82);
}
.cta-body {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 720px;
}
.cta-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.cta-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(240,236,228,0.6);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--teal);
  padding: 1rem 2.2rem;
  transition: background 0.25s, transform 0.2s;
}
.cta-btn svg { width: 16px; height: 16px; }
.cta-btn:hover { background: #00e0e0; transform: translateY(-2px); }


/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact {
  padding: var(--section-pad) clamp(1.5rem, 4vw, 3rem);
  background: var(--bg);
}

.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-info h2 { margin-top: 0.5rem; margin-bottom: 0.8rem; }
.contact-info > p { color: var(--grey); font-size: 0.9rem; margin-bottom: 2.5rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2.5rem; }
.contact-details li {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.88rem; color: var(--grey);
}
.contact-details a { transition: color 0.25s; }
.contact-details a:hover { color: var(--teal); }
.detail-icon {
  width: 36px; height: 36px;
  background: var(--teal-glow);
  border: 1px solid var(--border-teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--teal);
}
.detail-icon svg { width: 15px; height: 15px; }

.contact-social { display: flex; gap: 0.8rem; }
.contact-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.contact-social a svg { width: 16px; height: 16px; }
.contact-social a:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-glow); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

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

.field { position: relative; }
.field-full { grid-column: 1 / -1; }

.field input, .field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 1.3rem 1rem 0.5rem;
  font-size: 0.9rem; font-weight: 300;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 110px; }

.field input:focus, .field textarea:focus {
  border-color: var(--teal);
  background: var(--bg-card-2);
}

.field label {
  position: absolute; top: 0.85rem; left: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  pointer-events: none;
  transition: top 0.2s, font-size 0.2s, color 0.2s;
}

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  top: 0.3rem;
  font-size: 0.6rem;
  color: var(--teal);
}

.form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bg);
  background: var(--teal);
  border: none;
  padding: 1rem 2rem;
  transition: background 0.25s, transform 0.2s;
  margin-top: 0.5rem;
  align-self: flex-start;
}
.form-submit svg { width: 16px; height: 16px; }
.form-submit:hover { background: #00e0e0; transform: translateY(-2px); }

.form-note {
  font-size: 0.72rem;
  color: var(--grey-2);
  margin-top: 0.5rem;
}
.form-note code {
  font-family: monospace;
  color: var(--teal-dim);
  font-size: 0.7rem;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: #080909;
  border-top: 1px solid var(--border);
}

.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo-img {
  height: 40px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.6rem;
}
.footer-logo-text { display: none; }
.footer-logo-text strong { font-weight: 700; }
.footer-brand p { font-size: 0.85rem; color: var(--grey); line-height: 1.7; }

.footer-nav {
  display: flex; flex-direction: column; gap: 0.7rem;
}
.footer-nav a {
  font-size: 0.82rem;
  color: var(--grey);
  transition: color 0.25s;
  letter-spacing: 0.04em;
}
.footer-nav a:hover { color: var(--teal); }

.footer-contact-col {
  display: flex; flex-direction: column; gap: 0.7rem;
}
.footer-contact-col a, .footer-contact-col span {
  font-size: 0.82rem; color: var(--grey);
  transition: color 0.25s;
}
.footer-contact-col a:hover { color: var(--teal); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.2rem clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.74rem; color: var(--grey-2); }

.footer-socials { display: flex; gap: 0.8rem; }
.footer-socials a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey);
  transition: border-color 0.25s, color 0.25s;
}
.footer-socials a svg { width: 14px; height: 14px; }
.footer-socials a:hover { border-color: var(--teal); color: var(--teal); }


/* ═══════════════════════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════════════════════ */
.btt {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 44px; height: 44px;
  background: var(--teal); color: var(--bg);
  border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.25s;
}
.btt svg { width: 18px; height: 18px; }
.btt.show { opacity: 1; transform: none; pointer-events: all; }
.btt:hover { background: #00e0e0; }


/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════ */
.lb-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,6,7,0.96);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.lb-backdrop.open { opacity: 1; pointer-events: all; }

.lb {
  position: fixed; inset: 0; z-index: 501;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.lb.open { opacity: 1; pointer-events: all; }

.lb-img-wrap {
  max-width: 80vw; max-height: 85vh;
}
.lb-img-wrap img {
  max-width: 100%; max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lb-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  transition: color 0.25s;
}
.lb-close svg { width: 24px; height: 24px; }
.lb-close:hover { color: var(--teal); }

.lb-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.lb-arr svg { width: 18px; height: 18px; }
.lb-arr:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.lb-prev { left: 2rem; }
.lb-next { right: 2rem; }

.lb-counter {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem; color: var(--grey);
  letter-spacing: 0.1em;
}


/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-track { transition: none !important; }
  .testi-track { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   FORM VALIDATION FEEDBACK
═══════════════════════════════════════════════════════════ */
.field input.touched:invalid,
.field textarea.touched:invalid {
  border-color: #e05050;
}
.field input.touched:invalid ~ label,
.field textarea.touched:invalid ~ label {
  color: #e05050;
}
.field input.touched:valid,
.field textarea.touched:valid {
  border-color: var(--teal-dim);
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .portfolio-bento { grid-auto-rows: 150px; }
  .why-inner { gap: 3rem; }
}

@media (max-width: 960px) {
  .nav-links, .cta-pill { display: none; }
  .burger { display: flex; }

  /* Mobile nav overlay */
  .nav-links.nav-open {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: fixed; inset: 0; z-index: 99;
    background: rgba(12,13,15,0.98);
    gap: 1.5rem;
    backdrop-filter: blur(12px);
  }
  .nav-links.nav-open .nav-a {
    font-size: 1.6rem; letter-spacing: 0.06em;
    font-family: var(--font-display); font-weight: 700;
    color: var(--white); text-transform: none;
  }
  .nav-links.nav-open .nav-a.active,
  .nav-links.nav-open .nav-a:hover { color: var(--teal); }
  .nav-links.nav-open .nav-a::after { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-bento { grid-auto-rows: 130px; }

  .why-inner { grid-template-columns: 1fr; }
  .why-image { max-width: 480px; }
  .why-img-badge { right: 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .portfolio-bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; }
  .bento-large { grid-column: span 6; grid-row: span 2; }
  .bento-tall  { grid-column: span 3; grid-row: span 2; }
  .bento-small { grid-column: span 3; grid-row: span 2; }
  .bento-wide  { grid-column: span 6; grid-row: span 2; }
  .bento-third { grid-column: span 6; grid-row: span 2; }
  .bento-tall2  { grid-column: span 6; grid-row: span 2; }
  .bento-small2 { grid-column: span 3; grid-row: span 2; }

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

  .testi-card { padding: 0 1.5rem; }
  .hero-dots { display: none; }
}

@media (max-width: 420px) {
  .hero-copy h1 { font-size: 2.2rem; }
  .lb-arr { display: none; }
}
