:root {
  --tl-color-theme-primary: #0f3751;
  --tl-color-heading-primary: #10202d;
  --tl-color-text-body: #5c6b79;
  --af-brand: #0f3751;
  --af-brand-2: #153f5d;
  --af-accent: #c49a63;
  --af-accent-soft: #e9dcc8;
  --af-ink: #10202d;
  --af-muted: #5c6b79;
  --af-surface: #ffffff;
  --af-soft: #f5f8fb;
  --af-line: #dbe5ec;
  --af-shadow: 0 18px 50px rgba(15, 55, 81, 0.12);
  --af-radius: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top right, rgba(15, 55, 81, 0.06), transparent 32%),
    radial-gradient(circle at left top, rgba(196, 154, 99, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  color: var(--af-muted);
  font-family: var(--tl-ff-body);
  --af-header-height: 118px;
  padding-top: var(--af-header-height, 0px);
}

a,
a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.img-reveal {
  visibility: visible !important;
}

.img-reveal .img-overlay {
  opacity: 0 !important;
  pointer-events: none;
}

.img-reveal img {
  display: block;
  position: relative;
  z-index: 1;
}

.af-navbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 55, 81, 0.08);
  box-shadow: 0 10px 40px rgba(15, 55, 81, 0.04);
}

.af-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
}

.af-site-header .af-topbar,
.af-site-header .af-navbar {
  position: relative;
}

.af-navbar .navbar-brand img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

.af-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

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

.af-brand-text .name {
  font-family: var(--tl-ff-heading);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--af-ink);
}

.af-brand-text .tagline {
  margin-top: 0.18rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--af-brand);
}

.af-navbar .navbar-nav .nav-link {
  color: var(--af-ink);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1rem;
}

.af-navbar .navbar-nav .nav-link:hover,
.af-navbar .navbar-nav .nav-link.active {
  color: var(--af-brand);
}

.af-topbar {
  background: var(--af-brand);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.af-topbar a {
  color: #fff;
}

.af-topbar .topbar-pill {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.af-btn,
.af-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
}

.af-btn {
  background: linear-gradient(135deg, var(--af-brand) 0%, var(--af-brand-2) 100%);
  color: #fff;
  box-shadow: 0 16px 32px rgba(15, 55, 81, 0.22);
}

.af-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(15, 55, 81, 0.28);
}

.af-btn-outline {
  color: var(--af-brand);
  border: 1px solid rgba(15, 55, 81, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.af-btn-outline:hover {
  color: #fff;
  background: var(--af-brand);
  border-color: var(--af-brand);
}

.af-section {
  padding: 96px 0;
}

.af-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--af-brand);
}

.af-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--af-accent) 0%, var(--af-brand) 100%);
  border-radius: 999px;
}

.af-title {
  color: var(--af-ink);
  font-family: var(--tl-ff-heading);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.af-lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--af-muted);
}

.af-hero {
  padding: 48px 0 72px;
  position: relative;
  overflow: hidden;
}

.af-hero::before,
.af-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.af-hero::before {
  width: 320px;
  height: 320px;
  background: rgba(15, 55, 81, 0.08);
  right: -120px;
  top: -70px;
}

.af-hero::after {
  width: 260px;
  height: 260px;
  background: rgba(196, 154, 99, 0.12);
  left: -110px;
  bottom: -120px;
}

.af-hero-panel {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 55, 81, 0.97), rgba(21, 63, 93, 0.92));
  color: #fff;
  border-radius: 36px;
  padding: 34px;
  box-shadow: var(--af-shadow);
  overflow: hidden;
}

.af-hero-panel .af-kicker,
.af-hero-panel .af-lead,
.af-hero-panel .af-title {
  color: #fff;
}

.af-hero-panel .af-kicker::before {
  background: rgba(255, 255, 255, 0.65);
}

.af-hero-media {
  min-height: 560px;
  background:
    linear-gradient(180deg, rgba(15, 55, 81, 0.1), rgba(15, 55, 81, 0.3)),
    #edf3f7;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--af-shadow);
}

.af-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-floating-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  max-width: 240px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 55, 81, 0.16);
  color: var(--af-ink);
}

.af-floating-card strong {
  display: block;
  color: var(--af-brand);
  font-size: 1.5rem;
  line-height: 1;
}

.af-whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1045;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366 0%, #1db954 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.af-whatsapp-fab:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(37, 211, 102, 0.38);
  filter: brightness(1.02);
}

.af-whatsapp-fab:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.35);
  outline-offset: 3px;
}

.af-whatsapp-fab__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.af-whatsapp-fab__label {
  font-family: var(--tl-ff-heading);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.af-stat {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--af-line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 34px rgba(15, 55, 81, 0.07);
  height: 100%;
}

.af-hero-panel .af-stat {
  background: rgba(255, 248, 239, 0.98);
  border-color: rgba(196, 154, 99, 0.28);
  box-shadow: 0 12px 28px rgba(15, 55, 81, 0.14);
}

.af-hero-panel .af-stat strong {
  color: var(--af-ink);
}

.af-hero-panel .af-stat span {
  color: rgba(16, 32, 45, 0.78);
}

.af-stat strong {
  display: block;
  color: var(--af-ink);
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.af-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--af-line);
  border-radius: var(--af-radius);
  box-shadow: 0 18px 40px rgba(15, 55, 81, 0.08);
  padding: 28px;
  height: 100%;
}

.af-card .icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 55, 81, 0.1), rgba(196, 154, 99, 0.12));
  color: var(--af-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.af-card h3,
.af-card h4,
.af-card h5 {
  color: var(--af-ink);
  margin-bottom: 0.8rem;
}

.af-card p:last-child {
  margin-bottom: 0;
}

.af-work-grid > [class*="col-"] {
  display: flex;
}

.af-work-grid .af-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.af-work-grid .af-card h3 {
  line-height: 1.2;
}

.af-work-grid .af-card p {
  color: rgba(16, 32, 45, 0.78);
}

.af-media-frame {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  min-height: 420px;
  box-shadow: var(--af-shadow);
  background: var(--af-soft);
}

.af-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-media-frame .badge-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--af-brand);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
}

.af-about-hero-frame {
  min-height: 620px;
}

.af-about-collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.af-about-collage .hero-panel,
.af-about-collage .stack-panel {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  min-height: 620px;
  box-shadow: var(--af-shadow);
}

.af-about-collage .hero-panel img,
.af-about-collage .stack-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-about-collage .stack-panel {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 18px;
  background: transparent;
  min-height: 620px;
  box-shadow: none;
}

.af-about-collage .stack-panel .mini-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 301px;
  box-shadow: var(--af-shadow);
}

.af-about-collage .image-label,
.af-gallery-card .image-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(16, 32, 45, 0.82);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.af-section-heading {
  max-width: 780px;
}

.af-section-heading .section-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--af-brand);
}

.af-section-heading .section-note::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--af-accent) 0%, var(--af-brand) 100%);
}

.af-gallery-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--af-shadow);
  background: var(--af-soft);
}

.af-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-gallery-card .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(180deg, rgba(16, 32, 45, 0), rgba(16, 32, 45, 0.88));
  color: #fff;
}

.af-gallery-card .overlay h3 {
  color: #fff;
  margin-bottom: 0.35rem;
}

.af-gallery-card .overlay p {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 0;
  font-size: 0.96rem;
}

.af-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.af-project-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 55, 81, 0.08);
  color: var(--af-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.af-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--af-line);
  box-shadow: 0 16px 36px rgba(15, 55, 81, 0.08);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.af-project-card img {
  width: 100%;
  /* height: 240px; */
  object-fit: cover;
}

.af-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 55, 81, 0.14);
}

.af-project-card .content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.af-project-card .content h3 {
  color: var(--af-ink);
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.af-project-card .content p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.af-project-link {
  display: block;
  color: inherit;
  height: 100%;
  width: 100%;
}

.af-project-grid .row.g-4 > [class*="col-"] {
  display: flex;
}

.af-project-grid .row.g-4 > [class*="col-"] > * {
  width: 100%;
}

@media (min-width: 992px) {
  .af-project-grid .col-md-6.col-xl-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

.af-project-reveal-section {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.af-project-reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.af-project-reveal-section .row > [class*="col-"] {
  display: flex;
}

.af-project-reveal-section .af-project-card {
  flex: 1;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
  transition-delay: calc(var(--af-order, 0) * 90ms);
}

.af-project-reveal-section.is-visible .af-project-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.af-project-intro {
  background: linear-gradient(145deg, rgba(15, 55, 81, 0.04), rgba(196, 154, 99, 0.06));
  border: 1px solid rgba(15, 55, 81, 0.08);
  border-radius: 32px;
  padding: 28px;
}

.af-project-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.af-project-summary .af-stat {
  min-height: 100%;
}

.af-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.af-project-scroll {
  position: relative;
  overflow: hidden;
  padding: 10px 0 18px;
}

.af-project-scroll::before,
.af-project-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.af-project-scroll::before {
  left: 0;
  background: linear-gradient(90deg, #f7fafc 12%, rgba(247, 250, 252, 0));
}

.af-project-scroll::after {
  right: 0;
  background: linear-gradient(270deg, #f7fafc 12%, rgba(247, 250, 252, 0));
}

.af-project-scroll .scroller__inner {
  display: flex;
  gap: 18px;
}

.af-project-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.af-project-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 2px 14px;
  scrollbar-width: none;
}

.af-project-track::-webkit-scrollbar {
  display: none;
}

.af-project-track > .af-project-card {
  flex: 0 0 calc((100% - 54px) / 4);
  scroll-snap-align: start;
}

.af-carousel-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(15, 55, 81, 0.12);
  background: #fff;
  color: var(--af-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(15, 55, 81, 0.1);
  transition: all 0.25s ease;
  z-index: 3;
}

.af-carousel-btn:hover {
  background: var(--af-brand);
  color: #fff;
  transform: translateY(-1px);
}

.af-carousel-btn:focus-visible {
  outline: 3px solid rgba(15, 55, 81, 0.2);
  outline-offset: 2px;
}

.af-project-scroll[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: af-project-marquee 48s linear infinite;
}

.af-project-scroll:hover .scroller__inner {
  animation-play-state: paused;
}

.af-project-scroll .af-project-card {
  min-width: 290px;
  width: 290px;
}

@keyframes af-project-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.af-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.af-list li {
  position: relative;
  padding-left: 1.55rem;
  margin-bottom: 0.9rem;
}

.af-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--af-accent), var(--af-brand));
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.af-process {
  background: linear-gradient(180deg, rgba(15, 55, 81, 0.04), rgba(196, 154, 99, 0.03));
  border-top: 1px solid rgba(15, 55, 81, 0.06);
  border-bottom: 1px solid rgba(15, 55, 81, 0.06);
}

.af-process-step {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 26px;
  height: 100%;
  border: 1px solid var(--af-line);
}

.af-process-step .step-index {
  font-family: var(--tl-ff-heading);
  font-size: 2rem;
  color: rgba(15, 55, 81, 0.24);
  line-height: 1;
  margin-bottom: 12px;
}

.af-banner {
  background: linear-gradient(135deg, var(--af-brand) 0%, #123955 55%, #0d2d42 100%);
  color: #fff;
  border-radius: 36px;
  box-shadow: var(--af-shadow);
  overflow: hidden;
}

.af-banner .af-title,
.af-banner .af-lead {
  color: #fff;
}

.af-banner .af-kicker,
.af-banner .af-kicker::before {
  color: #fff;
}

.af-banner .af-kicker::before {
  background: rgba(255, 255, 255, 0.72);
}

.af-contact-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--af-line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 55, 81, 0.08);
  height: 100%;
}

.af-contact-card a {
  color: var(--af-ink);
}

.af-form .form-control,
.af-form .form-select {
  border-radius: 18px;
  border: 1px solid var(--af-line);
  padding: 0.95rem 1rem;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--af-ink);
}

.af-form .form-control:focus,
.af-form .form-select:focus {
  border-color: rgba(15, 55, 81, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(15, 55, 81, 0.08);
}

.af-map {
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(15, 55, 81, 0.12), rgba(196, 154, 99, 0.08)),
    var(--af-soft);
  border: 1px solid var(--af-line);
}

.af-footer {
  background: #0d2434;
  color: rgba(255, 255, 255, 0.72);
}

.af-footer a {
  color: #fff;
}

.af-footer .footer-brand img {
  max-height: 82px;
  width: auto;
}

.af-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.af-footer .footer-brand .af-brand-text .name {
  color: #fff;
  font-size: 2rem;
}

.af-footer .footer-brand .af-brand-text .tagline {
  color: rgba(255, 255, 255, 0.78);
}

.af-footer .small-title {
  color: #fff;
  font-family: var(--tl-ff-heading);
  font-size: 1.15rem;
}

.af-footer .footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991.98px) {
  .af-section {
    padding: 72px 0;
  }

  .af-hero-media {
    min-height: 420px;
  }

  .af-project-track > .af-project-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 767.98px) {
  .af-hero {
    padding-top: 26px;
  }

  .af-hero-panel,
  .af-media-frame,
  .af-banner {
    border-radius: 24px;
  }

  .af-title {
    letter-spacing: -0.02em;
  }

  .af-hero-media {
    min-height: 320px;
  }

  .af-about-collage {
    grid-template-columns: 1fr;
  }

  .af-whatsapp-fab {
    right: 14px;
    bottom: 14px;
    padding: 0.68rem;
    gap: 0;
  }

  .af-whatsapp-fab__label {
    display: none;
  }

  .af-project-summary,
  .af-project-list {
    grid-template-columns: 1fr;
  }

  .af-project-track > .af-project-card {
    flex-basis: 85%;
  }

  .af-project-scroll::before,
  .af-project-scroll::after {
    width: 60px;
  }

  .af-about-collage .hero-panel,
  .af-about-collage .stack-panel,
  .af-about-collage .stack-panel .mini-card {
    min-height: 260px;
  }
}
