/* ==========================================================================
   Nine Constructions — Design System
   Structure & type scale extracted from the Framer template; palette taken
   from the Nine Constructions shield logo (rust / dark brown / peach cream).
   ========================================================================== */

:root {
  /* Brand (from logo) */
  --rust: #a04e12;
  --rust-600: #8a420e;
  --rust-400: #c0682a;
  --brown: #563d23;
  --brown-700: #3d2a17;
  --brown-deep: #1c140c;      /* dark sections (template: rgb(12,12,12)) */
  --brown-900: #120c07;
  --cream: #fcd9a0;           /* logo peach */
  --cream-200: #f7e6c8;
  --gold: #c5a368;            /* template "Secondary" */

  /* Neutrals */
  --bg: #fbf7f1;
  --sand: #f2e9dc;            /* template "Bg Color 02", warmed */
  --line: #e6dccd;
  --line-dark: rgba(252, 217, 160, 0.12);
  --title: #1f1812;
  --text: #3b3129;
  --muted: #7a6a5c;
  --white: #ffffff;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --h1: clamp(42px, 6.2vw, 72px);
  --h2: clamp(34px, 4.4vw, 48px);
  --h3: clamp(30px, 4vw, 44px);
  --h4: clamp(22px, 2.4vw, 30px);
  --h5: clamp(19px, 2vw, 25px);

  /* Layout */
  --container: 1160px;
  --gutter: 20px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --section-y: 120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 20px 50px -20px rgba(45, 28, 12, 0.25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--rust); color: var(--white); }

/* ---------- Typography ---------- */
h1, .h1 { font-size: var(--h1); line-height: 1.06; letter-spacing: -0.045em; font-weight: 600; color: var(--title); }
h2, .h2 { font-size: var(--h2); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; color: var(--title); }
h3, .h3 { font-size: var(--h3); line-height: 1.13; letter-spacing: -0.035em; font-weight: 600; color: var(--title); }
h4, .h4 { font-size: var(--h4); line-height: 1.2; font-weight: 600; color: var(--title); letter-spacing: -0.01em; }
h5, .h5 { font-size: var(--h5); line-height: 1.2; font-weight: 600; color: var(--title); }
.lead { font-size: 18px; line-height: 1.5; }
.body-20 { font-size: 20px; }
.muted { color: var(--muted); }
.text-rust { color: var(--rust); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark h5 { color: var(--white); }
.on-dark p, .on-dark .muted { color: rgba(255, 255, 255, 0.72); }
.center { text-align: center; }
.balance { text-wrap: balance; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--brown-deep); color: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 24px; max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; }
.section-head p { max-width: 720px; }
.section-head--split { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head--split > div { display: flex; flex-direction: column; gap: 24px; max-width: 680px; }
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- Section tag (template "Section Tag") ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  width: fit-content;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--title);
  background: rgba(255, 255, 255, 0.5);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rust); flex: none; }
.on-dark .tag, .tag--light { color: var(--white); border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); }
.tag--light::before, .on-dark .tag::before { background: var(--cream); }

/* ---------- Buttons (template "Button") ---------- */
.btn {
  --btn-bg: var(--rust); --btn-fg: var(--white); --btn-ic: var(--white); --btn-ic-fg: var(--rust);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 24px;
  border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn .btn-ic {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--btn-ic); color: var(--btn-ic-fg);
  overflow: hidden; position: relative;
  transition: transform .45s var(--ease);
}
.btn .btn-ic svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover { --btn-bg: var(--rust-600); }
.btn:hover .btn-ic svg { transform: rotate(-45deg); }
.btn--dark { --btn-bg: var(--brown-deep); --btn-ic: var(--rust); --btn-ic-fg: var(--white); }
.btn--dark:hover { --btn-bg: var(--brown); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--title); --btn-ic: var(--rust); --btn-ic-fg: var(--white); }
.btn--light:hover { --btn-bg: var(--cream); }
.btn--cream { --btn-bg: var(--cream); --btn-fg: var(--brown-deep); --btn-ic: var(--brown-deep); --btn-ic-fg: var(--cream); }
.btn--cream:hover { --btn-bg: var(--white); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--title); padding: 6px 6px 6px 22px; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { --btn-bg: var(--sand); }
.btn--sm { font-size: 15px; padding: 4px 4px 4px 18px; gap: 10px; }
.btn--sm .btn-ic { width: 34px; height: 34px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--rust); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header / Navigation (template "Navigation") ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(28, 20, 12, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); flex: none; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 19px; font-weight: 700; letter-spacing: 0.14em; }
.brand-text span { font-size: 10.5px; letter-spacing: 0.32em; font-weight: 500; color: var(--cream); margin-top: 5px; }
.nav-links {
  display: flex; align-items: center; gap: 34px;
  padding: 12px 34px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-links a { color: var(--white); font-size: 15px; font-weight: 500; position: relative; opacity: .9; transition: opacity .3s, color .3s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--cream); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--cream); }
.nav-cta { flex: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .35s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--brown-deep);
  padding: 110px 24px 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%); transition: transform .55s var(--ease);
  overflow-y: auto;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { transform: none; }
.mobile-menu a.m-link { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--white); padding: 10px 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a.m-link.active { color: var(--cream); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
.mobile-menu .m-contact { margin-top: 28px; color: rgba(255, 255, 255, .7); font-size: 15px; display: grid; gap: 6px; }

/* ---------- Hero (template "HeroSection") ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 200px var(--gutter) 100px;
  overflow: hidden; color: var(--white); text-align: center;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 12, 7, .55) 0%, rgba(18, 12, 7, .35) 40%, rgba(28, 20, 12, .85) 100%),
    radial-gradient(ellipse at 50% 60%, rgba(160, 78, 18, .25), transparent 60%);
}
.hero-content { max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero h1 { color: var(--white); max-width: 760px; }
.hero p { font-size: 18px; max-width: 685px; color: rgba(255, 255, 255, .82); }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; letter-spacing: 0.08em; font-weight: 500;
}
.hero-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 4px rgba(252, 217, 160, .25); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 20px; }
.hero-scroll::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cream); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Inner page hero */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 210px 0 110px; color: var(--white);
  min-height: 520px; display: flex; align-items: flex-end;
}
.page-hero .hero-media img { animation-duration: 10s; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 12, 7, .6), rgba(28, 20, 12, .88)); }
.page-hero .container { display: flex; flex-direction: column; gap: 22px; }
.page-hero h1 { color: var(--white); max-width: 880px; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 640px; font-size: 18px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .7); }
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb span.sep { width: 5px; height: 5px; border-radius: 50%; background: var(--rust-400); }

/* ---------- Text reveal (template "TextReveal") ---------- */
.text-reveal { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.22; letter-spacing: -0.03em; font-weight: 500; max-width: 81%; color: var(--title); }
.text-reveal .ch { color: var(--line); transition: color .5s var(--ease); }
.text-reveal .ch.on { color: var(--title); }
.on-dark .text-reveal .ch { color: rgba(255, 255, 255, .15); }
.on-dark .text-reveal .ch.on { color: var(--white); }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.metric { padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.metric strong { font-size: var(--h2); line-height: 1; letter-spacing: -0.04em; font-weight: 600; color: var(--title); }
.metric strong em { font-style: normal; color: var(--rust); }
.on-dark .metric { border-color: var(--line-dark); }
.on-dark .metric strong { color: var(--white); }

/* ---------- Marquee / brand strip ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--bg); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; color: var(--title); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 14px; height: 14px; background: url("../img/favicon.png") center/contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service card (template "Service Card") ---------- */
.service-card {
  display: flex; flex-direction: column; gap: 22px;
  padding: 14px 14px 28px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card .media { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; position: relative; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service-card:hover .media img { transform: scale(1.06); }
.service-card .num { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 100px; background: rgba(28, 20, 12, .7); color: var(--cream); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.service-card .body { padding: 0 12px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-card .body p { color: var(--muted); }
.service-card .foot { padding: 0 12px; display: flex; justify-content: space-between; align-items: center; }
.service-card .arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--rust); transition: background .35s, color .35s, transform .45s var(--ease); }
.service-card .arrow svg { width: 16px; height: 16px; }
.service-card:hover .arrow { background: var(--rust); color: var(--white); transform: rotate(-45deg); }

/* ---------- Values timeline (template "OurValueSection") ---------- */
.values { position: relative; max-width: 1008px; margin: 0 auto; }
.values-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--line); }
.values-line i { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--rust); width: 3px; margin-left: -.5px; }
.value-row { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0; align-items: start; padding-bottom: 80px; position: relative; }
.value-row:last-child { padding-bottom: 0; }
.value-row .dot { grid-column: 2; justify-self: center; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line); margin-top: 6px; position: relative; z-index: 1; transition: border-color .4s, background .4s, box-shadow .4s; }
.value-row.is-active .dot { background: var(--rust); border-color: var(--rust); box-shadow: 0 0 0 6px rgba(160, 78, 18, .15); }
.value-item { display: flex; flex-direction: column; gap: 18px; max-width: 470px; }
.value-row:nth-child(odd) .value-item { grid-column: 1; grid-row: 1; justify-self: end; }
.value-row:nth-child(even) .value-item { grid-column: 3; grid-row: 1; }
.value-row .dot { grid-row: 1; }
.value-item .kicker { font-size: 15px; color: var(--rust); font-weight: 600; letter-spacing: 0.02em; }
.value-item img { border-radius: var(--radius); height: 280px; width: 100%; object-fit: cover; }

/* ---------- Stacked project cards (template "Process Card" sticky stack) ---------- */
.stack-cards { display: flex; flex-direction: column; gap: 40px; }
.stack-card {
  position: sticky; top: 110px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  min-height: 560px; border-radius: var(--radius-xl); overflow: hidden;
  background: #2a1e13; border: 1px solid var(--line-dark);
  transform-origin: 50% 0;
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .6);
}
.stack-card .media { position: relative; overflow: hidden; }
.stack-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack-card .info { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; color: var(--white); }
.stack-card .info h3 { color: var(--white); }
.stack-card .info p { color: rgba(255, 255, 255, .72); }
.stack-card .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.stack-card .meta div { display: flex; flex-direction: column; gap: 4px; }
.stack-card .meta small { font-size: 13px; color: var(--cream); letter-spacing: .06em; text-transform: uppercase; }
.stack-card .meta span { color: var(--white); font-weight: 500; }
.stack-card .count { font-size: 14px; font-weight: 600; color: var(--cream); letter-spacing: .1em; }

/* ---------- Testimonials (template "Testimonial") ---------- */
.testi-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.testi-title { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 28px; }
.testi-list { display: flex; flex-direction: column; gap: 40px; }
.testi-list .testi-card:nth-child(even) { margin-left: 70px; }
.testi-card {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); padding: 34px; max-width: 460px;
  display: flex; flex-direction: column; gap: 28px;
  backdrop-filter: blur(6px);
}
.testi-card .stars { display: flex; gap: 4px; color: var(--cream); }
.testi-card .stars svg { width: 16px; height: 16px; }
.testi-card blockquote { font-size: 19px; line-height: 1.5; color: var(--white); letter-spacing: -0.01em; }
.testi-card .who { display: flex; gap: 14px; align-items: center; }
.testi-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--rust), var(--brown)); display: grid; place-items: center; color: var(--cream); font-weight: 700; flex: none; }
.testi-card .who strong { display: block; color: var(--white); font-weight: 600; }
.testi-card .who span { font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- Blog card (template "Blog Card") ---------- */
.blog-card { display: flex; flex-direction: column; gap: 22px; }
.blog-card .media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.blog-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.blog-card:hover .media img { transform: scale(1.05); }
.blog-card .meta { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.blog-card .meta .pill { padding: 5px 12px; border-radius: 100px; background: var(--sand); color: var(--rust); font-weight: 600; font-size: 13px; }
.blog-card h3, .blog-card h4 { transition: color .3s; }
.blog-card:hover h3, .blog-card:hover h4 { color: var(--rust); }
.blog-card .by { font-size: 14px; color: var(--muted); }

/* ---------- Team card (template "Team Card") ---------- */
.team-card { display: flex; flex-direction: column; gap: 16px; }
.team-card .media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); position: relative; }
.team-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.team-card:hover .media img { transform: scale(1.05); }
.team-card .initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 700; color: var(--cream); background: linear-gradient(150deg, var(--brown), var(--rust)); letter-spacing: -0.04em; }
.team-card span { color: var(--muted); font-size: 15px; }

/* ---------- Expertise / feature card (template "Expertise Card") ---------- */
.feature-card { padding: 34px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--sand); color: var(--rust); }
.feature-card .ic svg { width: 26px; height: 26px; }
.feature-card p { color: var(--muted); }
.on-dark .feature-card { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); }
.on-dark .feature-card .ic { background: rgba(252, 217, 160, .1); color: var(--cream); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 30px 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; gap: 14px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 44px; font-weight: 700; letter-spacing: -0.05em; color: var(--cream); -webkit-text-stroke: 1px var(--rust); line-height: 1; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- CTA section (template "CTA Section") ---------- */
.cta { padding: 0 0 var(--section-y); }
.cta-box {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-xl); padding: 100px 60px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
  color: var(--white);
}
.cta-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-box::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(28, 20, 12, .92), rgba(86, 61, 35, .78) 55%, rgba(160, 78, 18, .7)); }
.cta-box h2 { color: var(--white); max-width: 760px; }
.cta-box p { color: rgba(255, 255, 255, .8); max-width: 600px; font-size: 18px; }
.cta-box .logo-mark { width: 64px; opacity: .95; }

/* ---------- Footer (template "Footer Section") ---------- */
.site-footer { background: var(--brown-deep); color: rgba(255, 255, 255, .72); padding: 90px 0 0; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 50px; padding-bottom: 70px; }
.footer-brand { display: flex; flex-direction: column; gap: 24px; max-width: 340px; }
.footer-col h5 { color: var(--white); font-size: 17px; margin-bottom: 22px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: var(--cream); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--cream); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--white); transition: background .35s, transform .35s var(--ease); }
.socials a:hover { background: var(--rust); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom a:hover { color: var(--cream); }
.footer-giant { font-size: clamp(60px, 15vw, 210px); font-weight: 800; letter-spacing: -0.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(252, 217, 160, .14); text-align: center; white-space: nowrap; user-select: none; margin-bottom: -0.12em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--title); }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white);
  outline: none; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rust); box-shadow: 0 0 0 4px rgba(160, 78, 18, .12); }
.field input[type="file"] { padding: 12px; background: var(--sand); }
.form-note { font-size: 14px; color: var(--muted); }
.form-success { display: none; padding: 16px 18px; border-radius: 12px; background: rgba(160, 78, 18, .08); color: var(--rust-600); border: 1px solid rgba(160, 78, 18, .25); font-weight: 500; }
.form.is-sent .form-success { display: block; }

/* ---------- Accordion / FAQ ---------- */
.accordion { display: grid; gap: 14px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.acc-q { width: 100%; text-align: left; padding: 24px 28px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 18px; font-weight: 600; color: var(--title); }
.acc-q i { width: 34px; height: 34px; border-radius: 50%; background: var(--sand); flex: none; position: relative; transition: background .3s, transform .4s var(--ease); }
.acc-q i::before, .acc-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--rust); border-radius: 2px; transition: transform .4s var(--ease), background .3s; }
.acc-q i::after { transform: rotate(90deg); }
.acc-item.open .acc-q i { background: var(--rust); transform: rotate(180deg); }
.acc-item.open .acc-q i::before, .acc-item.open .acc-q i::after { background: var(--white); }
.acc-item.open .acc-q i::after { transform: rotate(0); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 28px 26px; color: var(--muted); }
.acc-item.open .acc-a { grid-template-rows: 1fr; }

/* ---------- Badges / chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; background: var(--sand); color: var(--brown); font-size: 13px; font-weight: 600; }
.chip--rust { background: rgba(160, 78, 18, .1); color: var(--rust); }
.chip--dark { background: var(--brown-deep); color: var(--cream); }

/* ---------- Media helpers ---------- */
.rounded-img { border-radius: var(--radius-xl); overflow: hidden; }
.rounded-img img { width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 3D logo showcase (template "3DLook") ---------- */
.logo3d { height: 300px; display: grid; place-items: center; perspective: 900px; }
.logo3d img { height: 260px; width: auto; transform-style: preserve-3d; transition: transform .25s ease-out; filter: drop-shadow(0 30px 40px rgba(86, 61, 35, .35)); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --section-y: 90px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .testi-wrap { grid-template-columns: 1fr; }
  .testi-title { position: static; }
  .testi-list .testi-card:nth-child(even) { margin-left: 0; }
  .stack-card { grid-template-columns: 1fr; min-height: 0; top: 90px; }
  .stack-card .media { aspect-ratio: 16 / 10; }
  .stack-card .info { padding: 30px; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .values-line { left: 8px; }
  .value-row { grid-template-columns: 16px 1fr; gap: 24px; padding-bottom: 56px; }
  .value-row .dot { grid-column: 1 !important; margin-top: 4px; }
  .value-row:nth-child(odd) .value-item, .value-row:nth-child(even) .value-item { grid-column: 2 !important; justify-self: start; max-width: none; }
  .text-reveal { max-width: 100%; }
}
@media (max-width: 640px) {
  :root { --section-y: 72px; --gutter: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .metrics { gap: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .form .two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-box { padding: 70px 22px; }
  .hero { padding-top: 150px; }
  .hero-pill { font-size: 11.5px; letter-spacing: 0.04em; padding: 8px 14px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; max-width: 300px; }
  .page-hero { padding: 160px 0 70px; min-height: 420px; }
  .brand img { height: 40px; }
  .brand-text strong { font-size: 16px; }
  .brand-text span { font-size: 9px; }
  .stack-card { position: relative; top: 0; }
  .value-item img { height: 220px; }
  .acc-q { padding: 20px; font-size: 16px; }
  .acc-a p { padding: 0 20px 22px; }
}
