:root {
  --bg-main: #f8f4eb;
  --bg-soft: #f2eadb;
  --bg-accent: #ece1ce;
  --panel: #fffdf8;
  --panel-soft: rgba(255, 251, 242, 0.86);
  --ink: #1f2a32;
  --muted: #5f6b73;
  --gold: #a66a36;
  --gold-soft: #debe8e;
  --steel: #6a8191;
  --line: rgba(132, 90, 48, 0.25);
  --line-soft: rgba(110, 129, 144, 0.24);
  --shadow: 0 20px 40px rgba(98, 72, 44, 0.14);
  --radius-lg: 22px;
  --radius-md: 16px;
  --space-section: clamp(4.4rem, 7vw, 6.4rem);
  --space-grid: clamp(1rem, 2.2vw, 1.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-main);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(222, 190, 142, 0.42), transparent 37%),
    radial-gradient(circle at 86% 0%, rgba(106, 129, 145, 0.2), transparent 31%),
    linear-gradient(180deg, #f7f2e8 0%, #f5efe2 42%, #f4ecdd 100%);
}

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

.trusted-link {
  color: #875328;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trusted-link:hover {
  color: #a56a36;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 4px;
  width: 0;
  z-index: 999;
  background: linear-gradient(90deg, #d9b37e, #7a91a2);
}

.top-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 94, 58, 0.3);
  backdrop-filter: blur(12px);
  background: rgba(255, 251, 243, 0.86);
  box-shadow: 0 8px 30px rgba(87, 65, 40, 0.12);
  z-index: 100;
}

.top-nav nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.top-nav nav a {
  font-size: 0.9rem;
  color: rgba(31, 42, 50, 0.86);
  transition: color 0.22s ease;
}

.top-nav nav a.active,
.top-nav nav a:hover {
  color: var(--gold);
}

.mobile-cta-link {
  display: none !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: radial-gradient(circle at 32% 28%, rgba(236, 201, 150, 0.9), #f5ecdd 63%);
  box-shadow: 0 8px 16px rgba(109, 84, 56, 0.2);
}

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

.nav-cta {
  padding: 0.58rem 0.92rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #7e4f25;
  background: rgba(255, 248, 236, 0.9);
  transition: all 0.24s ease;
}

.nav-cta:hover {
  background: rgba(229, 198, 153, 0.5);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none !important;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.04rem;
  height: 2px;
  border-radius: 999px;
  background: #875328;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-nav.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.top-nav.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.top-nav.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  overflow: visible;
}

.section,
.hero {
  padding-inline: max(1.3rem, calc((100vw - 1120px) / 2));
}

section[id] {
  scroll-margin-top: 7rem;
}

#home {
  scroll-margin-top: 0;
}

.hero {
  min-height: clamp(680px, 90svh, 900px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.4rem, 2.8vw, 2.6rem);
  align-items: center;
  padding-top: clamp(7.9rem, 11vw, 9.4rem);
  padding-bottom: clamp(4rem, 6vw, 5.4rem);
}

.hero-bg,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image:
    linear-gradient(
      104deg,
      rgba(248, 243, 232, 0.68) 8%,
      rgba(248, 243, 232, 0.54) 43%,
      rgba(248, 243, 232, 0.24) 70%,
      rgba(248, 243, 232, 0.58) 100%
    ),
    url("https://images.unsplash.com/photo-1633983315965-6137d3bf9cfa?auto=format&fit=crop&w=2600&q=80");
  background-size: cover;
  background-position: center 42%;
  transform-origin: center;
  will-change: transform;
}

.hero-vignette {
  background:
    radial-gradient(circle at 16% 16%, rgba(222, 190, 142, 0.33), transparent 32%),
    radial-gradient(circle at 85% 84%, rgba(106, 129, 145, 0.24), transparent 32%);
}

.hero > * {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9f6838;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-content {
  max-width: 680px;
  display: grid;
  gap: 1rem;
}

.hero-content h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.hero-content h1 span {
  color: #8a552a;
}

.hero-content p {
  margin: 0;
  max-width: 54ch;
  color: rgba(31, 42, 50, 0.86);
  font-size: clamp(1rem, 1.36vw, 1.14rem);
}

.hero-actions {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.74rem 1.24rem;
  transition: all 0.24s ease;
  border: 1px solid transparent;
}

.btn-gold {
  background: linear-gradient(130deg, #e3c193, #b1743f);
  color: #22160f;
  box-shadow: 0 12px 24px rgba(160, 109, 61, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(160, 109, 61, 0.33);
}

.btn-ghost {
  border-color: var(--line);
  color: #855026;
  background: rgba(255, 248, 236, 0.78);
}

.btn-ghost:hover {
  border-color: rgba(139, 84, 41, 0.5);
  background: rgba(222, 190, 142, 0.34);
}

.hero-metrics {
  display: grid;
  gap: 1rem;
  max-width: 510px;
  justify-self: end;
}

.hero-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(122, 93, 55, 0.24);
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: clamp(180px, 19vw, 230px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-photo figcaption {
  margin: 0;
  padding: 0.62rem 0.84rem 0.72rem;
  font-size: 0.8rem;
  color: rgba(66, 78, 86, 0.94);
}

.hero-metrics article {
  padding: 1.14rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid rgba(122, 93, 55, 0.24);
  box-shadow: var(--shadow);
}

.hero-metrics span {
  font-family: "Cormorant Garamond", serif;
  color: #986131;
  font-size: 1.5rem;
  display: block;
}

.hero-metrics h3 {
  margin: 0.2rem 0;
  font-size: 1rem;
}

.hero-metrics p {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  color: rgba(69, 82, 91, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.section {
  position: relative;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(174, 138, 89, 0.08), transparent 23%),
    linear-gradient(0deg, rgba(122, 142, 157, 0.08), transparent 26%);
  opacity: 0.6;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 860px;
  margin-bottom: clamp(1.8rem, 3vw, 2.7rem);
}

.section-header h2 {
  margin: 0.45rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.6vw, 3.18rem);
  line-height: 1.08;
}

.section-legacy {
  background: linear-gradient(180deg, #f7f1e4, #f4ecdf);
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-grid);
}

.legacy-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.36rem;
  box-shadow: var(--shadow);
}

.legacy-card h3 {
  margin: 0 0 0.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.66rem;
}

.legacy-card p {
  margin: 0;
  color: var(--muted);
}

.section-products {
  background: linear-gradient(180deg, #f6efe2 0%, #f2e8d8 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-grid);
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-card img {
  width: 100%;
  height: clamp(210px, 21vw, 260px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-card div {
  padding: 1.1rem 1.18rem 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.product-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.86rem;
  line-height: 1.03;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.product-meta {
  font-size: 0.88rem;
  color: rgba(72, 84, 93, 0.88);
}

.section-cinematic {
  min-height: clamp(340px, 42vh, 500px);
  display: grid;
  place-items: center;
  text-align: center;
}

.cinematic-layer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(112deg, rgba(245, 235, 216, 0.9), rgba(87, 108, 124, 0.58)),
    url("https://images.unsplash.com/photo-1768564206500-5cddb1fea679?auto=format&fit=crop&w=2400&q=80");
  background-position: center;
  background-size: cover;
  transform-origin: center;
  will-change: transform;
}

.section-cinematic blockquote {
  margin: 0;
  max-width: 900px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 3.5vw, 3.15rem);
  line-height: 1.16;
  color: #1e2931;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.section-industries {
  background: linear-gradient(180deg, #f5ede0, #f8f3ea);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-grid);
}

.industry-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(255, 252, 246, 0.86);
  padding: 1.05rem;
  box-shadow: 0 10px 20px rgba(106, 83, 55, 0.08);
}

.industry-card h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

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

.section-gallery {
  background: linear-gradient(180deg, #f3ead9 0%, #f8f3ea 100%);
}

.gallery-grid {
  display: grid;
  gap: var(--space-grid);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}

.gallery-card img {
  width: 100%;
  height: clamp(220px, 22vw, 280px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-card figcaption {
  padding: 1rem 1.1rem 1.14rem;
  display: grid;
  gap: 0.32rem;
}

.gallery-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.76rem;
  line-height: 1.03;
}

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

.section-partners {
  background: linear-gradient(180deg, #f8f2e7 0%, #f3ead8 100%);
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-grid);
}

.partner-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.partner-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: #875328;
}

.partner-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.section-contact {
  background:
    radial-gradient(circle at 75% 22%, rgba(106, 129, 145, 0.18), transparent 36%),
    linear-gradient(180deg, #f5ecda, #efe2cc);
}

.contact-shell {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(1.3rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}

.contact-shell h2 {
  margin: 0.5rem 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.05;
}

.contact-shell p {
  margin: 0;
  color: var(--muted);
}

.contact-actions {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

footer {
  border-top: 1px solid rgba(126, 95, 58, 0.24);
  padding: 1.2rem;
  text-align: center;
  background: #ebdfca;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.footer-brand img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(117, 89, 57, 0.25);
  background: radial-gradient(circle at 35% 30%, rgba(236, 201, 150, 0.78), #f3e8d6);
}

footer p {
  margin: 0.2rem 0;
  color: rgba(43, 56, 64, 0.82);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: clamp(7rem, 14vw, 8.3rem);
    padding-bottom: 3.6rem;
  }

  .hero-metrics {
    max-width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 1024px) {
  .legacy-grid,
  .partner-strip,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .top-nav {
    top: 0.6rem;
    width: calc(100% - 0.8rem);
    padding: 0.58rem 0.66rem;
    border-radius: 18px;
    gap: 0.65rem;
  }

  .brand {
    flex: 1;
    min-width: 0;
    gap: 0.62rem;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy small {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .menu-toggle {
    display: inline-flex !important;
    order: 3;
  }

  .top-nav nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    margin-inline: 0.15rem;
    padding: 0.45rem;
    border-radius: 16px;
    border: 1px solid rgba(124, 94, 58, 0.3);
    background: rgba(255, 251, 243, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 34px rgba(87, 65, 40, 0.2);
    display: grid;
    gap: 0.22rem;
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .top-nav.menu-open nav {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .top-nav nav a {
    font-size: 0.9rem;
    padding: 0.62rem 0.74rem;
    border-radius: 10px;
  }

  .top-nav nav a:hover,
  .top-nav nav a.active {
    background: rgba(222, 190, 142, 0.24);
  }

  .mobile-cta-link {
    display: block !important;
    font-weight: 800;
    color: #7a4c24;
    border: 1px solid var(--line);
    text-align: center;
    margin-top: 0.2rem;
    background: rgba(243, 224, 192, 0.32);
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: clamp(6.2rem, 16vw, 7.6rem);
    padding-bottom: 2.6rem;
    gap: 1.2rem;
  }

  .hero-content {
    gap: 0.78rem;
  }

  .hero-content h1 {
    font-size: clamp(2.22rem, 11.5vw, 3.35rem);
    line-height: 0.98;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .hero-metrics {
    gap: 0.72rem;
  }

  .hero-photo img {
    height: clamp(170px, 42vw, 220px);
  }

  .hero-photo figcaption {
    font-size: 0.76rem;
  }

  .hero-metrics article {
    padding: 0.95rem 1rem;
  }

  .hero-metrics p {
    font-size: 0.84rem;
  }

  .section {
    padding-top: clamp(2.8rem, 8.6vw, 3.6rem);
    padding-bottom: clamp(2.8rem, 8.6vw, 3.6rem);
  }

  .section-header {
    margin-bottom: 1.3rem;
  }

  .section-header h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.42rem);
  }

  .legacy-card,
  .partner-card {
    padding: 1.1rem;
  }

  .product-card div {
    padding: 0.95rem 1rem 1.05rem;
  }

  .product-card img,
  .gallery-card img {
    height: clamp(190px, 52vw, 260px);
  }

  .gallery-card figcaption {
    padding: 0.88rem 0.95rem 1rem;
  }

  .gallery-card h3 {
    font-size: 1.55rem;
  }

  .section-cinematic {
    min-height: 300px;
  }

  .section-cinematic blockquote {
    font-size: clamp(1.58rem, 7vw, 2.2rem);
  }

  .contact-shell {
    padding: 1.15rem 1rem 1.3rem;
  }

  .contact-shell h2 {
    font-size: clamp(1.76rem, 7.2vw, 2.32rem);
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 700px) {
  .brand-mark {
    width: 2.6rem;
    height: 2.6rem;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 0.88rem;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 12.5vw, 3.2rem);
  }

  .hero-content p {
    max-width: 100%;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn,
  .nav-cta {
    width: 100%;
    text-align: center;
  }

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

  .scroll-hint {
    bottom: 1rem;
    font-size: 0.66rem;
  }

  .footer-brand {
    flex-direction: column;
    gap: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.in-view,
  .hero-bg,
  .cinematic-layer {
    transition: none;
    transform: none;
  }
}
