/* ============================================================
   VARIABILI
   ============================================================ */
:root {
  --f950: #06110d;
  --f900: #0a1c15;
  --f800: #0f2a1f;
  --f700: #163d2c;
  --f600: #1e5239;
  --moss: #3d7a58;
  --fern: #6fa87f;
  --sage: #a8c3ae;
  --gold: #d6ac5c;
  --gold-l: #e8c47c;
  --cream: #f4f1e8;
  --sand: #cfc9b8;
  --line: rgba(168, 195, 174, 0.14);
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.95);
  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  font-family: var(--ff-body);
  background: var(--f950);
  color: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -6%, rgba(61, 122, 88, 0.2), transparent 65%),
    radial-gradient(700px 500px at 92% 12%, rgba(214, 172, 92, 0.09), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(30, 82, 57, 0.22), transparent 65%);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
}
::selection {
  background: var(--gold);
  color: #1a1206;
}

.wrap {
  width: min(1220px, 100% - 48px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.section {
  padding: 112px 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(10, 28, 21, 0.62) 18%,
    rgba(10, 28, 21, 0.62) 82%,
    transparent
  );
}
.custom-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-wrap: wrap;
}
.flex-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.muted {
  color: var(--sage);
}
.small {
  font-size: 0.82rem;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.sec-title {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  max-width: 16ch;
}
.sec-lead {
  color: var(--sage);
  max-width: 56ch;
  margin-top: 18px;
  font-size: 1.02rem;
  font-weight: 300;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 13px;
  margin: 8px 0 0 0;
  line-height: 1.4;
}
.alert-danger {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.3);
  color: #ff9999;
}
.alert-success {
  background: rgba(111, 168, 127, 0.1);
  border-color: rgba(111, 168, 127, 0.3);
  color: var(--fern);
}
.alert-warning {
  background: rgba(214, 172, 92, 0.1);
  border-color: rgba(214, 172, 92, 0.3);
  color: var(--gold-l);
}
.alert code {
  background: var(--f950);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-l), var(--gold));
  color: #1a1206;
  box-shadow: 0 12px 26px -14px rgba(214, 172, 92, 0.9);
}
.btn--gold:hover {
  background: linear-gradient(180deg, #f0d094, var(--gold-l));
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: rgba(168, 195, 174, 0.3);
  color: var(--cream);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn--block {
  width: 100%;
}
.btn--sm {
  padding: 9px 16px;
  font-size: 0.8rem;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--sage);
  transition: 0.25s;
}
.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

/* ============================================================
   FAVORITES BUTTON
   ============================================================ */
.fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 17, 13, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 195, 174, 0.18);
  color: var(--sage);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
  padding: 0;
}
.fav-btn:hover {
  transform: scale(1.1);
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(6, 17, 13, 0.85);
}
.fav-btn:active {
  transform: scale(0.95);
}
.fav-icon {
  width: 20px;
  height: 20px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fav-btn.is-fav {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1206;
  box-shadow: 0 8px 20px -8px rgba(214, 172, 92, 0.6);
}
.fav-btn.is-fav .fav-icon {
  fill: currentColor;
  transform: scale(1.15);
}
.fav-btn.is-fav:hover {
  background: var(--gold-l);
  border-color: var(--gold-l);
}
@keyframes fav-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.fav-btn.animate-pulse .fav-icon {
  animation: fav-pulse 0.4s ease-in-out;
}

/* ============================================================
   HEADER
   ============================================================ */
.nav {
  background: var(--f950);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    padding 0.4s ease,
    border-color 0.4s;
}
.nav.is-stuck {
  background: rgba(6, 17, 13, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  padding: 11px 0;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--ff-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand span i {
  font-style: normal;
  color: var(--gold);
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.87rem;
}
.nav-links a {
  color: var(--sage);
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: var(--cream);
}
.nav-links a:hover::after {
  width: 100%;
}
.align-log-cart {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-auth {
  display: flex;
  gap: 30px;
  font-size: 0.87rem;
}
.nav-auth a {
  color: var(--sage);
  transition: color 0.25s;
}
.nav-auth a:hover {
  color: var(--cream);
}
.search-btn,
.burger {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--sage);
  display: grid;
  place-items: center;
  flex: none;
  transition: 0.25s;
}
.search-btn:hover,
.search-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--cream);
  transition: 0.25s;
}
.cart-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.cart-count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1206;
  font-size: 0.72rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.7, 0.5, 1);
}
.cart-count.pop {
  transform: scale(1.45);
}
.burger {
  display: none;
}
.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--cream);
  position: relative;
  transition: background 0.25s;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.25s, top 0.25s;
}
.burger span::before {
  top: -5px;
}
.burger span::after {
  top: 5px;
}
.burger.is-active span {
  background: transparent;
}
.burger.is-active span::before {
  top: 0;
  transform: rotate(45deg);
}
.burger.is-active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 120px;
  overflow: hidden;
}
.hero-forest {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.hero-moon {
  position: absolute;
  top: 12%;
  right: 12%;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 32%,
    rgba(232, 196, 124, 0.32),
    rgba(214, 172, 92, 0.07) 55%,
    transparent 72%
  );
  filter: blur(2px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 4.9rem);
  font-weight: 400;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero p {
  color: var(--sage);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 52ch;
  margin-top: 26px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-meta {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  margin-top: 66px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-meta div strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--cream);
}
.hero-meta div span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}

/* ============================================================
   FILTERS
   ============================================================ */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.filter {
  padding: 8px 17px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid var(--line);
  color: var(--sage);
  transition: 0.25s;
}
.filter:hover {
  border-color: rgba(214, 172, 92, 0.45);
  color: var(--cream);
}
.filter.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1206;
  font-weight: 500;
}

/* ============================================================
   TEMPLATE CARDS
   ============================================================ */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.tcard {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--f800), var(--f900) 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
    border-color 0.4s,
    box-shadow 0.4s;
}
.tcard:hover {
  transform: translateY(-7px);
  border-color: rgba(214, 172, 92, 0.42);
  box-shadow: var(--shadow);
}
.tcard-media {
  position: relative;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  background: var(--f800);
}
.tcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.tcard:hover .tcard-media img {
  transform: scale(1.07);
}
.tcard-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 17, 13, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
}
.tcard:hover .tcard-media::after {
  opacity: 1;
}
.chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(6, 17, 13, 0.72);
  backdrop-filter: blur(8px);
  color: var(--sage);
  border: 1px solid rgba(168, 195, 174, 0.18);
}
.price-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--gold);
  color: #1a1206;
}
.tcard-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.tcard-body h3 {
  font-size: 1.32rem;
}
.tcard-body .tagline {
  color: var(--sage);
  font-size: 0.88rem;
  font-weight: 300;
  flex: 1;
}
.tcard-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.76rem;
  color: var(--moss);
  letter-spacing: 0.04em;
}
.tcard-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.tcard-actions .btn {
  flex: 1;
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}

/* ============================================================
   WORKS — 360° ROTATION CARDS
   ============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}
.work-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--f900);
  perspective: 1500px;
  cursor: pointer;
  transition:
    border-color 0.4s,
    box-shadow 0.4s;
}
.work-card:hover,
.work-card.is-open {
  border-color: rgba(214, 172, 92, 0.45);
  box-shadow: var(--shadow);
}
.work-media {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(0.22, 0.68, 0.24, 1);
  will-change: transform;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card:hover .work-media,
.work-card.is-open .work-media {
  transform: rotateY(360deg);
}
.work-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 3;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(6, 17, 13, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 195, 174, 0.18);
  color: var(--sage);
  transition: opacity 0.35s ease;
}
.work-card:hover .work-badge,
.work-card.is-open .work-badge {
  opacity: 0;
}
.work-info {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 11px;
  padding: 24px;
  background: linear-gradient(
    to top,
    rgba(6, 17, 13, 0.98) 0%,
    rgba(6, 17, 13, 0.93) 52%,
    rgba(6, 17, 13, 0.45) 100%
  );
  backdrop-filter: blur(3px);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.5s ease 0.42s,
    transform 0.5s ease 0.42s;
}
.work-card:hover .work-info,
.work-card.is-open .work-info {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.work-client {
  font-family: var(--ff-display);
  font-size: 1.22rem;
  line-height: 1.2;
}
.work-role {
  font-size: 0.73rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}
.work-quote {
  font-size: 0.8rem;
  color: var(--sage);
  font-weight: 300;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech {
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(168, 195, 174, 0.22);
  color: var(--fern);
  background: rgba(111, 168, 127, 0.07);
}
.spec-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid rgba(168, 195, 174, 0.14);
}
.spec-row div span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--moss);
}
.spec-row div strong {
  font-family: var(--ff-display);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--cream);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.svc {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(22, 61, 44, 0.42), rgba(10, 28, 21, 0.35));
  transition:
    transform 0.4s,
    border-color 0.4s,
    background 0.4s;
}
.svc:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 172, 92, 0.38);
}
.svc-num {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  display: block;
}
.svc h3 {
  font-size: 1.28rem;
  margin-bottom: 11px;
}
.svc p {
  color: var(--sage);
  font-size: 0.88rem;
  font-weight: 300;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-band {
  border-block: 1px solid var(--line);
  background: rgba(10, 28, 21, 0.5);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat {
  padding: 46px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: none;
}
.stat strong {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--cream);
}
.stat span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}
.quote {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15, 42, 31, 0.45);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition:
    transform 0.4s,
    border-color 0.4s;
}
.quote:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 172, 92, 0.32);
}
.quote p {
  font-family: var(--ff-display);
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream);
  font-style: italic;
}
.quote footer {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: 1rem;
  background: linear-gradient(140deg, var(--f600), var(--moss));
  color: var(--cream);
  border: 1px solid rgba(168, 195, 174, 0.25);
}
.quote footer strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
}
.quote footer span {
  font-size: 0.74rem;
  color: var(--moss);
}

/* ============================================================
   CTA
   ============================================================ */
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  padding: clamp(40px, 6vw, 74px);
  background: linear-gradient(140deg, rgba(30, 82, 57, 0.6), rgba(10, 28, 21, 0.9) 60%);
  text-align: center;
}
.cta-box::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -160px;
  top: -220px;
  background: radial-gradient(circle, rgba(214, 172, 92, 0.2), transparent 68%);
}
.cta-box h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  position: relative;
}
.cta-box p {
  color: var(--sage);
  max-width: 50ch;
  margin: 18px auto 0;
  position: relative;
  font-weight: 300;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 34px;
  background: rgba(6, 17, 13, 0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer h4 {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.87rem;
}
.footer ul a {
  color: var(--sage);
  transition: color 0.25s;
}
.footer ul a:hover {
  color: var(--gold);
}
.footer-bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--moss);
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(3, 9, 6, 0.72);
  backdrop-filter: blur(5px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s,
    visibility 0.4s;
}
.scrim.is-open {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--f900), var(--f950));
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 0.5s cubic-bezier(0.3, 0.8, 0.25, 1);
}
.drawer.is-open {
  transform: none;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  font-size: 1.2rem;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-body::-webkit-scrollbar {
  width: 5px;
}
.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(168, 195, 174, 0.25);
  border-radius: 9px;
}
.cart-empty {
  text-align: center;
  color: var(--moss);
  padding: 60px 10px;
  font-size: 0.9rem;
}
.cart-empty svg {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  opacity: 0.4;
}
.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 9px;
  flex: none;
  border: 1px solid var(--line);
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}
.cart-item-info span {
  font-size: 0.75rem;
  color: var(--moss);
}
.cart-item-price {
  font-size: 0.86rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.cart-remove {
  color: var(--moss);
  font-size: 1.15rem;
  line-height: 1;
  padding: 4px;
  transition: color 0.25s;
}
.cart-remove:hover {
  color: #e0736a;
}
.drawer-foot {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.drawer-total span {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--moss);
}
.drawer-total strong {
  font-family: var(--ff-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--cream);
}

/* ============================================================
   DETAIL MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s,
    visibility 0.4s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-panel {
  position: relative;
  width: min(1020px, 100%);
  max-height: 88svh;
  overflow-y: auto;
  background: linear-gradient(165deg, var(--f800), var(--f950) 65%);
  border: 1px solid rgba(168, 195, 174, 0.2);
  border-radius: 24px;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.25, 0.9, 0.3, 1);
  box-shadow: 0 50px 100px -40px #000;
}
.modal.is-open .modal-panel {
  transform: none;
}
.modal-panel::-webkit-scrollbar {
  width: 6px;
}
.modal-panel::-webkit-scrollbar-thumb {
  background: rgba(168, 195, 174, 0.25);
  border-radius: 9px;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  background: rgba(6, 17, 13, 0.6);
  backdrop-filter: blur(8px);
}
.modal-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.modal-media {
  position: relative;
  min-height: 330px;
  background: var(--f800);
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.modal-body {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.modal-body .desc {
  color: var(--sage);
  font-size: 0.92rem;
  font-weight: 300;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.87rem;
}
.feature-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--sage);
}
.feature-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.modal-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.modal-price {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold);
  margin-right: auto;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 200;
  transform: translate(-50%, 140%);
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(10, 28, 21, 0.96);
  border: 1px solid rgba(214, 172, 92, 0.5);
  color: var(--cream);
  font-size: 0.87rem;
  box-shadow: 0 24px 50px -22px #000;
  backdrop-filter: blur(10px);
  transition: transform 0.55s cubic-bezier(0.2, 1.1, 0.4, 1);
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.toast.is-visible {
  transform: translate(-50%, 0);
}
.toast b {
  color: var(--gold);
  font-weight: 600;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   MESSAGE PAGE
   ============================================================ */
.message-head {
  margin: 10px auto;
  padding: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: larger;
}
.message-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  margin: 40px auto;
  padding: 40px;
  min-height: 50vh;
  background: linear-gradient(135deg, var(--f800) 0%, var(--f700) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--cream);
  font-family: var(--ff-body);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.message-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--moss), var(--gold));
  border-radius: var(--radius) var(--radius) 0 0;
}
.message-container h2 {
  font-family: var(--ff-display);
  font-size: 28px;
  color: var(--gold-l);
  margin-bottom: 10px;
}
.message-container p {
  font-size: 16px;
  color: var(--sage);
  max-width: 90%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-media {
    min-height: 240px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .burger {
    display: grid;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: -24px;
    right: -24px;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(10, 28, 21, 0.98);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-auth {
    gap: 16px;
  }
  .cart-btn span:not(.cart-count) {
    display: none;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 84px 0;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 32px 20px;
  }
  .stat:last-child {
    border-bottom: none;
  }
  .hero {
    padding-top: 130px;
  }
  .hero-meta {
    gap: 26px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(1220px, 100% - 32px);
  }
  .templates-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 28px 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .tcard-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
