/* ==========================================================================
   AIZ Royal — Obsidian & Champagne
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --ink-2: #111113;
  --ink-3: #18181b;
  --ivory: #f6f3ec;
  --ivory-2: #ece6da;
  --paper: #fbfaf6;
  --text: #1b1915;
  --muted: #6d675d;
  --muted-light: rgba(255, 255, 255, 0.62);
  --gold: #c8a65f;
  --gold-light: #e5cf9c;
  --gold-deep: #9a7a38;
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-light: rgba(27, 25, 21, 0.12);
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --arabic: "Cairo", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --header-h: 88px;
  --topbar-h: 40px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle film grain for a tactile, printed feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h2 em,
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 140px 0;
}

/* --------------------------------------------------------------------------
   Section labels & headings
   -------------------------------------------------------------------------- */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-tag b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-tag b::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-tag.light {
  color: var(--gold);
}

.section-heading {
  margin-bottom: 72px;
  text-align: center;
}

.section-heading.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 48px;
  text-align: left;
}

.section-heading.split p {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
  justify-self: end;
}

.section-heading.left {
  text-align: left;
}

.section-heading h2,
.about-copy h2,
.why-copy h2,
.info-card h2,
.feature-copy h2 {
  margin: 20px 0 0;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.04;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.nav-cta,
.primary-btn,
.secondary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 30px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 0;
  overflow: hidden;
  transition: color 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
  isolation: isolate;
}

.primary-btn {
  background: var(--gold);
  color: var(--ink);
}

.primary-btn::before,
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-light);
  transform: translateX(-101%);
  transition: transform 0.6s var(--ease);
}

.primary-btn:hover::before,
.nav-cta:hover::before {
  transform: translateX(0);
}

.primary-btn::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease);
}

.primary-btn:hover::after {
  width: 28px;
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}

.secondary-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Top bar & header
   -------------------------------------------------------------------------- */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  height: var(--topbar-h);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line-dark);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.topbar-links a {
  transition: color 0.3s ease;
}

.topbar-links a:hover {
  color: var(--gold-light);
}

.topbar-arabic,
.footer-arabic {
  font-family: var(--arabic);
  color: var(--gold);
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 30;
  transition: top 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  top: 0;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-dark);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 32px;
  transition: height 0.5s var(--ease);
}

.site-header.scrolled .nav-wrap {
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(200, 166, 95, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand-sub {
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 14px 22px;
  border: 1px solid rgba(200, 166, 95, 0.6);
  color: var(--gold-light);
}

.nav-cta::before {
  background: var(--gold);
}

.nav-cta:hover {
  color: var(--ink);
  border-color: var(--gold);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.menu-toggle span:nth-child(1) {
  top: 19px;
}

.menu-toggle span:nth-child(2) {
  top: 26px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 700px;
  max-height: 1100px;
  background: var(--ink);
  overflow: hidden;
  color: var(--white);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 1.4s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.14);
  transition: transform 8s linear;
}

.slide.active .slide-media {
  transform: scale(1.02);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.7) 0%, rgba(10, 10, 11, 0.1) 30%, rgba(10, 10, 11, 0.2) 60%, rgba(10, 10, 11, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, 0.88) 0%, rgba(10, 10, 11, 0.45) 55%, rgba(10, 10, 11, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--topbar-h) + var(--header-h) - 20px);
  padding-bottom: 60px;
}

.hero-content > * {
  max-width: 760px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

.slide.active .hero-content > * {
  opacity: 1;
  transform: none;
}

.slide.active .hero-content > :nth-child(1) { transition-delay: 0.3s; }
.slide.active .hero-content > :nth-child(2) { transition-delay: 0.45s; }
.slide.active .hero-content > :nth-child(3) { transition-delay: 0.6s; }
.slide.active .hero-content > :nth-child(4) { transition-delay: 0.75s; }
.slide.active .hero-content > :nth-child(5) { transition-delay: 0.9s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--arabic);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold-light);
}

.eyebrow-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin: 26px 0 26px;
  font-size: clamp(3.2rem, 7.4vw, 7rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero h1 em {
  display: block;
  color: var(--gold-light);
}

.hero p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 42px 0 44px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.slider-counter {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
}

.slider-counter .current {
  color: var(--white);
  font-size: 1.6rem;
}

.slider-counter .sep {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.dot {
  position: relative;
  width: 64px;
  height: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.dot::before,
.dot i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.dot i {
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.dot.active i {
  animation: dotFill 5.5s linear forwards;
}

@keyframes dotFill {
  to {
    transform: scaleX(1);
  }
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.scroll-cue span {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 1px;
  height: 50%;
  background: var(--gold);
  animation: scrollCue 2.2s var(--ease) infinite;
}

@keyframes scrollCue {
  to {
    top: 100%;
  }
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */

.stats {
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-box {
  position: relative;
  padding: 54px 32px 50px;
  border-left: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
}

.stat-box:last-child {
  border-right: 1px solid var(--line-dark);
}

.stat-box em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.stat-box strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1;
  color: var(--white);
}

.stat-box span {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  background: var(--ivory);
}

.about-grid,
.why-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.about-visual {
  position: relative;
  padding: 0 0 48px 0;
}

.about-frame {
  position: relative;
  overflow: hidden;
}

.about-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(229, 207, 156, 0.55);
  pointer-events: none;
}

.about-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 1.6s var(--ease);
}

.about-visual:hover .about-frame img {
  transform: scale(1.04);
}

.about-badge {
  position: absolute;
  right: -32px;
  bottom: 0;
  background: var(--ink);
  color: var(--white);
  padding: 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 240px;
}

.about-badge span {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.about-badge strong {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1.15;
}

.about-copy p {
  color: var(--muted);
  font-size: 1rem;
  margin: 22px 0 0;
}

.about-copy .lead {
  margin-top: 32px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--text);
}

.feature-list {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-light);
}

.feature-list div {
  padding: 28px 28px 0 0;
}

.feature-list div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line-light);
}

.feature-list h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.feature-list p {
  margin: 0;
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   Services (dark)
   -------------------------------------------------------------------------- */

.services {
  background: var(--ink);
  color: var(--white);
}

.services .section-heading h2,
.process .section-heading h2,
.why-copy h2,
.feature-copy h2 {
  color: var(--white);
}

.services .section-heading h2 em,
.process .section-heading h2 em,
.why-copy h2 em,
.feature-copy h2 em {
  color: var(--gold-light);
}

.services .section-tag {
  color: var(--gold);
}

.services .section-heading.split p {
  color: var(--muted-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.service-card {
  position: relative;
  padding: 52px 44px 56px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.6s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}

.service-card:hover {
  background: var(--ink-3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.card-index {
  position: absolute;
  top: 44px;
  right: 44px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.3);
}

.icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 166, 95, 0.4);
  margin-bottom: 36px;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}

.icon svg {
  width: 26px;
  height: 26px;
  fill: var(--gold);
  transition: fill 0.5s var(--ease);
}

.service-card:hover .icon {
  background: var(--gold);
  border-color: var(--gold);
}

.service-card:hover .icon svg {
  fill: var(--ink);
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--white);
}

.service-card p {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   Feature banner
   -------------------------------------------------------------------------- */

.feature-banner {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  background: var(--ink);
}

.feature-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: grayscale(0.4);
}

.feature-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 10, 11, 0.94) 0%, rgba(10, 10, 11, 0.75) 60%, rgba(10, 10, 11, 0.55) 100%);
}

.feature-banner-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 64px;
}

.feature-copy h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
}

.feature-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-pills span {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-pills span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Industries
   -------------------------------------------------------------------------- */

.industries {
  background: var(--paper);
}

.industries-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 96px;
  align-items: start;
}

.industries-layout .section-heading {
  position: sticky;
  top: 140px;
  margin-bottom: 0;
}

.industry-grid {
  border-top: 1px solid var(--line-light);
}

.industry-card {
  display: grid;
  grid-template-columns: 70px 1fr 1.3fr;
  gap: 24px;
  align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-light);
  transition: padding 0.6s var(--ease);
}

.industry-card:hover {
  padding-left: 18px;
}

.industry-card span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-deep);
}

.industry-card h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  transition: color 0.4s ease;
}

.industry-card:hover h3 {
  color: var(--gold-deep);
}

.industry-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   Capabilities
   -------------------------------------------------------------------------- */

.capabilities {
  background: var(--ivory-2);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.capability-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--ink);
  color: var(--white);
}

.capability-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 1.6s var(--ease), opacity 0.6s ease;
  opacity: 0.85;
}

.capability-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0) 35%, rgba(10, 10, 11, 0.92) 100%);
}

.capability-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 40px 36px;
}

.capability-card span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.1rem;
}

.capability-card h3 {
  margin: 6px 0 0;
  font-size: 2.2rem;
  line-height: 1.1;
}

.capability-card p {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  transition: max-height 0.7s var(--ease), opacity 0.6s ease, margin 0.7s var(--ease);
}

.capability-card:hover img {
  transform: scale(1.07);
  opacity: 0.7;
}

.capability-card:hover p {
  max-height: 120px;
  opacity: 1;
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Process (dark)
   -------------------------------------------------------------------------- */

.process {
  background: var(--ink-2);
  color: var(--white);
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.process-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 38px;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 166, 95, 0.6), rgba(200, 166, 95, 0.1));
}

.process-step {
  position: relative;
}

.process-num {
  display: inline-block;
  position: relative;
  padding-right: 18px;
  background: var(--ink-2);
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 1;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}

.process-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 34px 0 22px;
  border: 1px solid var(--line-dark);
}

.process-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  color: var(--white);
}

.process-step p {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   Works gallery
   -------------------------------------------------------------------------- */

.works {
  background: var(--ivory);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
  gap: 18px;
}

/* Two 2x2 feature tiles per 12 cards keeps every row full */
.project-card:nth-child(12n + 1),
.project-card:nth-child(12n + 8) {
  grid-row: span 2;
  grid-column: span 2;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.8s ease;
  filter: saturate(0.85);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0) 45%, rgba(10, 10, 11, 0.85) 100%);
  opacity: 0.75;
  transition: opacity 0.6s ease;
}

.project-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 30px;
  color: var(--white);
  transform: translateY(10px);
  transition: transform 0.7s var(--ease);
}

.project-info span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.project-info h3 {
  margin: 6px 0 0;
  font-size: 1.75rem;
  line-height: 1.1;
}

.project-card:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card:hover .project-info {
  transform: none;
}

.project-card:hover .project-info span {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Why us (dark)
   -------------------------------------------------------------------------- */

.why-us {
  background: var(--ink);
  color: var(--white);
}

.why-copy ul {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  border-top: 1px solid var(--line-dark);
}

.why-copy li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.why-copy li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg) translateY(-2px);
}

.why-panel {
  display: grid;
  gap: 18px;
}

.mini-card {
  position: relative;
  padding: 38px 40px;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-dark);
  transition: border-color 0.5s ease, transform 0.6s var(--ease);
}

.mini-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: var(--gold);
}

.mini-card:hover {
  border-color: rgba(200, 166, 95, 0.35);
  transform: translateX(-6px);
}

.mini-card strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  line-height: 1.1;
  color: var(--gold-light);
}

.mini-card span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  background: var(--paper);
}

.contact-grid {
  align-items: stretch;
}

.info-card > p {
  margin: 26px 0 0;
  color: var(--muted);
  max-width: 440px;
}

.contact-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  border-top: 1px solid var(--line-light);
}

.contact-items div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 26px 0;
  border-bottom: 1px solid var(--line-light);
}

.contact-items span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.contact-items strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  word-break: break-word;
}

.contact-items a strong {
  transition: color 0.3s ease;
}

.contact-items a:hover strong {
  color: var(--gold-deep);
}

.form-card {
  background: var(--ink);
  color: var(--white);
  padding: 56px 52px;
  position: relative;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(200, 166, 95, 0.18);
  pointer-events: none;
}

.form-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-head span:last-child {
  color: var(--muted-light);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

.field {
  position: relative;
  display: block;
  margin-bottom: 12px;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: transparent;
  padding: 28px 0 12px;
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.4s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field span {
  position: absolute;
  left: 0;
  top: 28px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.4s var(--ease), color 0.4s ease;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--gold);
}

.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span {
  transform: translateY(-22px) scale(0.72);
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.submit-btn {
  border: 0;
  cursor: pointer;
  width: 100%;
  margin-top: 30px;
  padding: 22px 30px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--muted-light);
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-cta h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  color: var(--white);
}

.footer-cta h2 em {
  color: var(--gold-light);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.9fr;
  gap: 64px;
  padding: 72px 0 64px;
}

.footer-wrap > div > p {
  max-width: 380px;
  font-size: 0.94rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(200, 166, 95, 0.35);
}

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--white);
}

.footer-brand span {
  display: block;
  margin-top: 6px;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links a,
.footer-contact p {
  margin: 0;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold-light);
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Floating WhatsApp
   -------------------------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 16px;
  background: var(--ink);
  border: 1px solid rgba(200, 166, 95, 0.45);
  color: var(--white);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: gap 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.4s ease;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  fill: #25d366;
  flex: 0 0 auto;
}

.whatsapp-float span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.5s var(--ease);
}

.whatsapp-float:hover {
  gap: 12px;
  padding: 0 22px 0 18px;
  border-color: var(--gold);
}

.whatsapp-float:hover span {
  max-width: 120px;
}

/* --------------------------------------------------------------------------
   Scroll reveal (only when JS is running)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease);
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .main-nav {
    gap: 26px;
  }

  .nav-cta {
    display: none;
  }

  .about-grid,
  .why-grid,
  .contact-grid,
  .industries-layout {
    gap: 64px;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 110px 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  /* backdrop-filter would trap the fixed menu overlay inside the header */
  .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 11, 0.96);
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 35;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 0 32px;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    font-family: var(--serif);
    font-size: 2.4rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--white);
  }

  .brand {
    position: relative;
    z-index: 40;
  }

  .stats-grid,
  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-box:nth-child(2) {
    border-right: 1px solid var(--line-dark);
  }

  .stat-box:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 64px;
  }

  .process-grid::before {
    display: none;
  }

  .about-grid,
  .why-grid,
  .contact-grid,
  .industries-layout,
  .feature-banner-inner,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .section-heading.split p {
    justify-self: start;
  }

  .industries-layout .section-heading {
    position: static;
  }

  .about-badge {
    right: 0;
  }

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

  .capability-card:last-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .capability-card p {
    max-height: none;
    opacity: 1;
    margin-top: 12px;
  }

  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .footer-wrap > div:first-child {
    grid-column: span 2;
  }

  .feature-banner-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 72px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 88px 0;
  }

  .topbar {
    display: none;
  }

  .site-header {
    top: 0;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding-top: var(--header-h);
    padding-bottom: 110px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 3.6rem);
  }

  .hero-actions {
    margin: 32px 0 30px;
  }

  .hero-footer {
    bottom: 28px;
  }

  .scroll-cue,
  .slider-dots {
    display: none;
  }

  .dot {
    width: 40px;
  }

  .stats-grid,
  .service-grid,
  .project-grid,
  .process-grid,
  .capability-grid,
  .contact-items,
  .feature-list,
  .feature-pills,
  .field-row,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .stat-box {
    padding: 34px 24px;
    border-right: 1px solid var(--line-dark);
  }

  .stat-box + .stat-box {
    border-top: 1px solid var(--line-dark);
  }

  .service-card {
    padding: 40px 28px;
  }

  .card-index {
    top: 36px;
    right: 28px;
  }

  .feature-banner {
    padding: 110px 0;
  }

  .feature-list div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line-light);
    margin-top: 28px;
  }

  .industry-card {
    grid-template-columns: 48px 1fr;
    padding: 30px 0;
  }

  .industry-card p {
    grid-column: 2;
  }

  .industry-card:hover {
    padding-left: 0;
  }

  .capability-card,
  .capability-card:last-child {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }

  .project-grid {
    grid-auto-rows: 280px;
  }

  .project-card:nth-child(12n + 1),
  .project-card:nth-child(12n + 8) {
    grid-row: auto;
    grid-column: auto;
  }

  .project-info span {
    opacity: 1;
    transform: none;
  }

  .about-visual {
    padding-bottom: 36px;
  }

  .about-badge {
    padding: 22px 26px;
    min-width: 0;
  }

  .about-badge strong {
    font-size: 1.5rem;
  }

  .form-card {
    padding: 44px 28px;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 0 64px;
  }

  .footer-wrap > div:first-child {
    grid-column: auto;
  }

  .copyright {
    flex-direction: column;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
  }
}

@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;
  }

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