:root {
  --bg: #f4efe6;
  --surface: rgba(255, 248, 239, 0.8);
  --surface-strong: #fff8ef;
  --text: #1f2a2a;
  --muted: #5d6661;
  --line: rgba(32, 42, 42, 0.12);
  --accent: #d06e2c;
  --accent-deep: #9f4517;
  --teal: #1d6d74;
  --shadow: 0 20px 60px rgba(47, 38, 20, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-display: "Aptos Display", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  --brand-logo-desktop-width: 148px;
  --brand-logo-mobile-width: 108px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(208, 110, 44, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(29, 109, 116, 0.16), transparent 28%),
    linear-gradient(180deg, #f8f1e8 0%, #f4efe6 55%, #f0e8dc 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
  opacity: 0.35;
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
  position: relative;
}

@media (min-width: 1100px) {
  .page-shell {
    zoom: 0.9;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 18px 28px;
  background: rgba(255, 248, 239, 0.72);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 18px;
  z-index: 10;
  min-height: 100px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 0 0 auto;
  max-width: 360px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  box-shadow: 0 12px 28px rgba(29, 109, 116, 0.28);
  overflow: hidden;
}

.brand-mark.has-image {
  width: min(var(--brand-logo-desktop-width), 24vw);
  min-width: 72px;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  flex: 0 0 auto;
  display: block;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-mark.has-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.brand > span:last-child {
  display: none;
}

.brand strong,
.brand small {
  overflow-wrap: anywhere;
}

.brand strong {
  display: block;
  font-size: clamp(1.82rem, 2.6vw, 2.28rem);
  line-height: 1;
}

.brand strong,
.hero h1,
.section-heading h2,
.floating-card h2 {
  font-family: var(--font-display);
}

.brand small {
  display: none;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.55vw, 1.2rem);
  line-height: 1.35;
  margin-top: 4px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.98rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.topnav a {
  position: relative;
  padding: 14px 18px;
  border-radius: 999px;
  transition: color 180ms ease, background 220ms ease, transform 180ms ease, box-shadow 220ms ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 20px rgba(48, 37, 22, 0.08);
  transform: translateY(-1px);
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #eb9144 100%);
  box-shadow: 0 18px 34px rgba(208, 110, 44, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: white;
  border: 1px solid rgba(32, 42, 42, 0.08);
  box-shadow: 0 12px 28px rgba(55, 48, 36, 0.08);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(32, 42, 42, 0.09);
}

.wide {
  width: fit-content;
  min-width: 260px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  padding: 92px 0 54px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.1rem);
  line-height: 0.95;
  margin: 10px 0 16px;
}

.hero-text,
.service-card p,
.catalog-card p,
.timeline p,
.contact-card p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

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

.hero-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(32, 42, 42, 0.08);
  font-weight: 700;
}

.hero-visual {
  display: grid;
  align-items: start;
  align-self: start;
  padding-top: 28px;
}

.hero-stage {
  position: relative;
  min-height: clamp(500px, 54vw, 620px);
  height: clamp(500px, 54vw, 620px);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(208, 110, 44, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(252, 247, 239, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.hero-stage__track {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 520ms ease, visibility 520ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide__media,
.hero-slide__media img {
  width: 100%;
  height: 100%;
}

.hero-slide__media img {
  object-fit: cover;
  display: block;
}

.hero-slide__content {
  position: absolute;
  inset: 28px;
  display: grid;
  align-content: end;
  gap: 12px;
  z-index: 2;
}

.hero-slide__content.has-media {
  background: transparent;
  padding: 0;
}

.hero-slide__content.has-media h2,
.hero-slide__content.has-media p,
.hero-slide__content.has-media .hero-slide__list span,
.hero-slide__content.has-media small {
  color: white;
}

.hero-slide__content.is-centered {
  inset: 34px;
  align-content: center;
  justify-items: start;
  padding: 30px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 249, 241, 0.98), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, rgba(208, 110, 44, 0.2), rgba(29, 109, 116, 0.16));
  box-shadow: 0 22px 48px rgba(48, 37, 22, 0.14);
}

.hero-slide__content small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}

.hero-slide__content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.02;
  margin: 0;
}

.hero-slide__content p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 28ch;
}

.hero-slide__list {
  display: grid;
  gap: 10px;
}

.hero-slide__list span {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 600;
}

.hero-stage__dots {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-stage__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 16px rgba(31, 42, 42, 0.14);
}

.hero-stage__dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, var(--accent), #eb9144);
}

.section {
  padding: 54px 0;
}

.highlight {
  padding: 62px 42px;
  border-radius: 38px;
  background:
    radial-gradient(circle at top left, rgba(29, 109, 116, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.86), rgba(255, 247, 237, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 8px 0 0;
  max-width: 760px;
  line-height: 1.04;
}

.service-grid {
  display: block;
}

.catalog-grid {
  display: block;
}

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

.gallery-grid {
  display: block;
}

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

.card-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.card-viewport::-webkit-scrollbar {
  display: none;
}

.card-track {
  display: grid;
  grid-auto-flow: column;
  gap: 18px;
  padding: 4px 2px 6px;
}

.card-carousel--services .card-track {
  grid-auto-columns: calc((100% - 36px) / 3);
}

.card-carousel--catalog .card-track {
  grid-auto-columns: calc((100% - 54px) / 4);
}

.card-track > * {
  scroll-snap-align: start;
}

.service-card,
.catalog-card,
.timeline article,
.gallery-card,
.contact-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(32, 42, 42, 0.08);
  box-shadow: 0 16px 36px rgba(48, 37, 22, 0.08);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease,
    background 240ms ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.service-card::before,
.catalog-card::before,
.timeline article::before,
.gallery-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.service-card:hover,
.catalog-card:hover,
.timeline article:hover,
.gallery-card:hover,
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 42px rgba(48, 37, 22, 0.12);
  border-color: rgba(208, 110, 44, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.service-card:hover::before,
.catalog-card:hover::before,
.timeline article:hover::before,
.gallery-card:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

.service-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  text-align: center;
  padding: 28px 26px 30px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 12px 28px rgba(48, 37, 22, 0.05);
}

.service-asset {
  width: 138px;
  height: 138px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.service-asset img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 280ms ease, filter 280ms ease;
}

.service-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  margin: 0 auto 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(208, 110, 44, 0.12);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 0.84rem;
}

.catalog-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  align-content: start;
}

.catalog-thumb {
  margin: 0;
  aspect-ratio: 4 / 2.6;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(29, 109, 116, 0.1), rgba(208, 110, 44, 0.14));
}

.catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 380ms ease, filter 380ms ease;
}

.catalog-copy {
  padding: 22px 24px 24px;
  display: grid;
  gap: 10px;
}

.gallery-card {
  overflow: hidden;
  padding: 0;
  min-width: 0;
}

.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery-copy {
  padding: 18px 18px 20px;
}

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

.gallery-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  padding: 4px 2px 6px;
}

.gallery-track .gallery-card {
  scroll-snap-align: start;
}

.gallery-arrow {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(32, 42, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 16px 28px rgba(48, 37, 22, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.carousel-arrow {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(32, 42, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 16px 28px rgba(48, 37, 22, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.gallery-arrow span {
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-1px);
}

.carousel-arrow span {
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-1px);
}

.gallery-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(48, 37, 22, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.carousel-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(48, 37, 22, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.gallery-arrow:disabled {
  opacity: 0.38;
  cursor: default;
}

.carousel-arrow:disabled {
  opacity: 0.38;
  cursor: default;
}

.hidden {
  display: none !important;
}

.service-index {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  background: rgba(208, 110, 44, 0.12);
  color: var(--accent-deep);
  font-weight: 800;
  margin: 0 auto 4px;
}

.service-card h3,
.catalog-card h3,
.contact-card h3,
.timeline h3 {
  font-size: 1.25rem;
  margin: 16px 0 10px;
}

.service-card h3 {
  margin: 2px 0 0;
  max-width: 18ch;
  text-align: center;
}

.service-card p {
  margin: 0;
  max-width: 27ch;
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}

.catalog-card span {
  font-weight: 700;
  color: var(--teal);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(29, 109, 116, 0.14), rgba(208, 110, 44, 0.18));
  color: var(--teal);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.contact-card__copy {
  display: grid;
  gap: 6px;
}

.contact-card__label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.contact-card h3,
.contact-card p {
  margin: 0;
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(29, 109, 116, 0.18), rgba(208, 110, 44, 0.2));
  font-weight: 900;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.service-card:hover .service-asset img {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 16px 20px rgba(48, 37, 22, 0.12));
}

.catalog-card:hover .catalog-thumb img,
.gallery-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.04);
}

.contact-card:hover .contact-card__icon,
.timeline article:hover span {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(48, 37, 22, 0.1);
}

.panel-preview {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1080px) {
  .topbar {
    border-radius: 28px;
    flex-wrap: wrap;
    justify-content: center;
    min-height: auto;
  }

  .topnav {
    position: static;
    left: auto;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero,
  .timeline,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-stage {
    min-height: 500px;
    height: 500px;
  }

  .card-carousel--services .card-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .card-carousel--catalog .card-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .gallery-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 100%);
  }

  .topnav {
    display: none;
  }

  .hero,
  .timeline,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    display: none;
  }

  .card-carousel--services .card-track,
  .card-carousel--catalog .card-track {
    grid-auto-columns: 85%;
    gap: 14px;
  }

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

  .gallery-arrow {
    display: none;
  }

  .gallery-track {
    grid-auto-columns: 85%;
    gap: 14px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-visual {
    min-height: auto;
    padding-top: 0;
  }

  .hero-stage {
    min-height: 420px;
    height: auto;
  }

  .brand-mark.has-image {
    width: min(var(--brand-logo-mobile-width), 46vw);
    min-width: 64px;
  }

  .hero-slide__content,
  .hero-slide__content.is-centered {
    inset: 18px;
    padding: 22px;
  }

  .highlight {
    padding: 30px 22px;
  }
}
