/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Axiforma';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Axiforma-Bold.woff2') format('woff2');
}

/* ---------- Variables ---------- */
:root {
  --c-primary: #000540;
  --c-secondary: #10101D;
  --c-text: #000000;
  --c-accent: #A7A7A7;
  --c-bg: #ffffff;
  --c-cream: #f6f3ee;

  --header-h: 96px;
  --container-max: 1200px;
  --container-pad: clamp(20px, 4vw, 80px);

  --font: 'Axiforma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 700ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover { background: #000a6b; box-shadow: 0 8px 22px rgba(0, 5, 64, 0.25); }

.btn-contact {
  border: 1px solid #fff;
  color: #fff;
}
.btn-contact:hover { background: #fff; color: var(--c-primary); }

.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
}
.btn-ghost:hover { background: var(--c-primary); color: #fff; }
.btn-ghost .chev { display: inline-flex; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--c-primary);
  color: #fff;
}

.hero-slide-banner {
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.slide-track {
  width: 100%;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  animation: slideFadeIn 1.2s var(--ease-out);
}
.slide-track span { display: inline-block; }
@keyframes slideFadeIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--container-pad);
}

.brand-logo svg {
  width: 48px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}
.nav-menu a {
  font-size: 14px;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--c-primary);
  padding: 0 var(--container-pad);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.mobile-menu.is-open {
  max-height: 320px;
  padding-bottom: 24px;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { display: block; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--container-pad);
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 80px;
  background: var(--c-primary);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--c-primary);
  opacity: 0.55;
}
.hero-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 32px;
}
.hero h1 strong { font-weight: 700; }

/* ---------- Section base ---------- */
section {
  padding: clamp(64px, 9vw, 120px) var(--container-pad);
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.section-title strong { font-weight: 700; }

/* ---------- Brands ---------- */
.brands {
  text-align: center;
  background: #fff;
}
.brands .section-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  margin-bottom: 56px;
  color: var(--c-primary);
}
.brand-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.brand-gallery figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.brand-gallery figure:hover {
  filter: grayscale(0);
  opacity: 1;
}
.brand-gallery img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* ---------- About ---------- */
.about {
  background: var(--c-cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 100%;
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  aspect-ratio: 956 / 1256;
  object-fit: cover;
}
.about-text { max-width: 540px; }
.about-text .section-title { margin-bottom: 24px; }
.about-text p { font-size: 17px; color: #2a2a3a; }

/* ---------- Projects text ---------- */
.projects-text {
  text-align: center;
  background: #fff;
}
.projects-text .section-title { margin-bottom: 28px; }
.projects-text p {
  max-width: 920px;
  margin: 0 auto;
  font-size: 16px;
  color: #333;
  line-height: 1.85;
}

/* ---------- Recent projects gallery ---------- */
.recent-projects {
  background: var(--c-primary);
  color: #fff;
  text-align: center;
}
.recent-projects .section-title { color: #fff; margin-bottom: 48px; }

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto 40px;
}
.masonry-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  background: #1c2050;
  position: relative;
}
.masonry-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.masonry-gallery figure:hover img { transform: scale(1.05); }

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.recent-projects .btn-ghost {
  color: #fff;
  border-color: #fff;
}
.recent-projects .btn-ghost:hover {
  background: #fff;
  color: var(--c-primary);
}

.hideme { display: none; }

/* ---------- Gold standard ---------- */
.gold-standard {
  background: #fff;
  text-align: center;
}
.gold-standard .lead {
  max-width: 680px;
  margin: 0 auto 64px;
  color: #555;
  font-size: 17px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.service {
  text-align: left;
}
.service .icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--c-primary);
}
.service .icon svg { width: 56px; height: auto; fill: var(--c-primary); }
.service h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--c-primary);
}
.service p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Reviews ---------- */
.reviews {
  background: var(--c-cream);
  text-align: center;
}
.reviews-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}
.reviews-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-primary);
}
.stars { height: 24px; width: auto; }

.reviews-carousel {
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto;
}
.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s var(--ease-out);
}
.review-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 5, 64, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
  min-height: 240px;
}
.review-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}
.review-card img {
  max-height: 36px;
  width: auto;
  align-self: flex-start;
  filter: grayscale(100%);
  opacity: 0.8;
}

/* ---------- Project detail blocks ---------- */
.project-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: #fff;
}
.project-detail:nth-of-type(even) {
  background: var(--c-cream);
}
.project-detail:nth-of-type(odd) .project-image {
  order: 2;
}
.project-text .section-title {
  margin-bottom: 24px;
}
.project-text p {
  font-size: 15px;
  line-height: 1.75;
  color: #2a2a3a;
}
.project-text a { color: var(--c-primary); text-decoration: underline; }

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* ---------- Discovering ---------- */
.discovering {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--c-primary);
  color: #fff;
}
.discovering .section-title {
  font-size: clamp(36px, 5vw, 64px);
  color: #fff;
  margin-bottom: 24px;
}
.discovering-text p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
}
.discovering-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  aspect-ratio: 2560 / 1359;
  object-fit: cover;
}

/* ---------- Next gen ---------- */
.next-gen {
  background: var(--c-cream);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}
.next-gen-image img {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: block;
  aspect-ratio: 608 / 1214;
  object-fit: cover;
  border-radius: 24px;
}
.next-gen-text .section-title { margin-bottom: 20px; }
.next-gen-text > p {
  font-size: 16px;
  color: #444;
  margin-bottom: 32px;
  max-width: 600px;
}

.next-gen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.next-gen-grid h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--c-primary);
}
.next-gen-grid p {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}
.social-list {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
}
.social-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-primary);
  font-size: 14px;
}
.social-list a { color: var(--c-primary); display: inline-flex; align-items: center; }

/* ---------- KK Imagery carousel ---------- */
.kk-imagery {
  background: #fff;
  padding: clamp(40px, 6vw, 80px) var(--container-pad);
}
.kk-carousel {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.kk-track {
  overflow: hidden;
  border-radius: 12px;
}
.kk-track figure {
  margin: 0;
}
.kk-track img {
  width: 100%;
  height: auto;
  display: block;
}
.kk-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.kk-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0, 5, 64, 0.2);
  padding: 0;
  transition: background 0.25s var(--ease-out);
}
.kk-dots button.active { background: var(--c-primary); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-primary);
  color: #fff;
  padding: 80px var(--container-pad) 40px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}
.footer-cols {
  display: grid;
  grid-template-columns: auto;
  gap: 80px;
}
.footer-col h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}
.contact-list li,
.footer-menu li { margin-bottom: 10px; }
.contact-list a,
.footer-menu a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  transition: color 0.2s var(--ease-out);
}
.contact-list a:hover,
.footer-menu a:hover { color: #fff; }

.footer-logo {
  align-self: end;
}
.footer-logo svg { width: 130px; height: auto; }

.copyright {
  grid-column: 1 / -1;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  font-weight: 400;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --header-h: 86px; }
  .brand-gallery { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .review-card { flex: 0 0 calc((100% - 20px) / 2); }
  .about, .next-gen, .discovering, .project-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .project-detail:nth-of-type(odd) .project-image { order: 0; }
  .next-gen-image img { max-width: 320px; }
  .masonry-gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-logo { order: -1; }
}

@media (max-width: 768px) {
  .header-nav { padding: 14px var(--container-pad); }
  .btn-contact { padding: 10px 18px; font-size: 13px; }

  .hero {
    min-height: 540px;
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 60px;
  }
  .hero h1 { font-size: clamp(32px, 9vw, 48px); }

  .brand-gallery { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .services-grid { grid-template-columns: 1fr; gap: 32px; }

  .review-card { flex: 0 0 100%; }

  .next-gen-grid { grid-template-columns: 1fr; gap: 24px; }

  .footer-cols { grid-template-columns: 1fr; gap: 40px; }
  .copyright { text-align: center; }

  .masonry-gallery { grid-template-columns: 1fr; }

  .reviews-header { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .slide-track { animation: none; }
}
