:root {
  --cream: #fbf5ec;
  --sand: #f4e9d8;
  --sand-2: #ecdcc4;
  --ink: #2a1d15;
  --ink-2: #4a3628;
  --muted: #7a6656;
  --terra: #e2602f;
  --terra-d: #c24a22;
  --amber: #f4ab3c;
  --forest: #1f4a35;
  --sage: #8db48e;
  --line: rgba(42, 29, 21, 0.12);

  --grad: linear-gradient(120deg, var(--amber) 0%, var(--terra) 55%, #c4432b 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -24px rgba(74, 40, 18, 0.35);
  --shadow-lg: 0 40px 80px -30px rgba(74, 40, 18, 0.45);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.ic {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  border: 0;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  font-family: inherit;
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(226, 96, 47, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(226, 96, 47, 0.8); }
.btn--glass {
  background: rgba(255, 248, 238, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 248, 238, 0.4);
  backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255, 248, 238, 0.24); }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
  transition: padding .3s ease, box-shadow .3s ease;
}
.nav::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 245, 236, 0.92);
  backdrop-filter: blur(14px);
}
.nav.is-scrolled { padding: 8px 0; box-shadow: 0 10px 30px -18px rgba(74, 40, 18, 0.4); }
.nav__inner { display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo { height: 46px; width: auto; }
.brand--chip { background: var(--cream); padding: 10px 16px; border-radius: 14px; }
.brand--chip .brand__logo { height: 42px; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sand); }
.lang__btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 11px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.lang__btn.is-active { background: var(--ink); color: var(--cream); }

.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15.5px;
  position: relative;
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a:hover { color: var(--terra); }
.nav__mobile-cta { display: none; }
.nav__cta { padding: 11px 20px; font-size: 14.5px; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 12px;
  background: var(--sand);
  cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  padding: 140px 0 40px;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 20, 10, 0.88) 0%, rgba(42, 24, 12, 0.55) 45%, rgba(42, 24, 12, 0.05) 75%),
    linear-gradient(0deg, rgba(30, 16, 8, 0.85) 0%, rgba(30, 16, 8, 0) 40%);
}
.hero__inner { position: relative; max-width: 1200px; padding-bottom: 60px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.12);
  border: 1px solid rgba(255, 248, 238, 0.25);
  font-size: 14px; font-weight: 500;
  backdrop-filter: blur(6px);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(244, 171, 60, 0.3); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(244, 171, 60, 0); } }

.hero__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  margin: 24px 0 22px;
  max-width: 900px;
}
.hero__accent { background: linear-gradient(100deg, #ffd27a, var(--amber) 40%, var(--terra)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; color: rgba(255, 245, 232, 0.86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 248, 238, 0.22);
  padding-top: 26px;
}
.hstat { padding-right: 20px; }
.hstat + .hstat { padding-left: 24px; border-left: 1px solid rgba(255, 248, 238, 0.16); }
.hstat__k { display: block; font-family: var(--f-display); font-weight: 700; font-size: 22px; color: #ffd8a0; }
.hstat__v { font-size: 14.5px; color: rgba(255, 245, 232, 0.72); }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  padding: 16px 0;
  color: var(--ink);
  background: var(--sand);
  border-block: 1px solid rgba(42, 29, 21, 0.08);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tick 40s linear infinite;
  font-family: var(--f-display); font-weight: 600; font-size: 20px; white-space: nowrap;
}
.ticker__group { display: flex; flex: none; gap: 28px; padding-right: 28px; }
.ticker__group i { font-style: normal; color: var(--terra); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #f6ebdd; }
.section__head { max-width: 720px; margin-bottom: 60px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section__head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow--light { color: var(--amber); }
.section__title { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; }
.section__desc { margin-top: 20px; font-size: 18px; color: var(--muted); }
.section__head--split .section__desc { margin-top: 0; }

/* ---------- Expertise ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.exp {
  grid-column: span 3;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.exp:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.exp--wide { grid-column: span 6; flex-direction: row; }
.exp--wide .exp__img { flex: 1.25; aspect-ratio: auto; min-height: 380px; }
.exp--wide .exp__body { flex: 1; padding: 48px; justify-content: center; }
.exp--wide h3 { font-size: 32px; }
.exp__img { aspect-ratio: 16 / 10; overflow: hidden; }
.exp__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.exp:hover .exp__img img { transform: scale(1.05); }
.exp__body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.exp__ic {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: #fde8dc;
  color: var(--terra);
  margin-bottom: 4px;
}
.exp__ic .ic { width: 24px; height: 24px; }
.exp__ic--green { background: #e3eedf; color: var(--forest); }
.exp h3 { font-size: 23px; font-weight: 700; }
.exp p { color: var(--muted); font-size: 16px; }

.ticks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); }
.ticks .ic { color: var(--forest); }

/* ---------- Projects ---------- */
.projects { display: grid; gap: 40px; }
.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--cream);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project--rev .project__img { order: 2; }
.project__img { position: relative; min-height: 420px; overflow: hidden; }
.project__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.project:hover .project__img img { transform: scale(1.04); }
.project__num {
  position: absolute; top: 22px; left: 22px;
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
  color: #fff;
  background: rgba(42, 29, 21, 0.55);
  backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 999px;
}
.project__body { padding: 52px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.project__body h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; }
.project__body p { color: var(--muted); }
.project__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.tag--green { background: #e3eedf; color: var(--forest); }
.tag--terra { background: #fde3d6; color: var(--terra-d); }
.tag--amber { background: #fdefd3; color: #a06512; }
.project__facts { list-style: none; padding: 20px 0 0; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); }
.project__facts b { display: block; font-family: var(--f-display); font-size: 20px; color: var(--terra); }
.project__facts span { font-size: 14.5px; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--terra); margin-top: 4px; }
.link-arrow .ic { transition: transform .25s; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Product ---------- */
.section--dark { position: relative; overflow: hidden; }
.section--dark::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  right: -200px; top: -240px;
  background: radial-gradient(circle, rgba(226, 96, 47, 0.35), transparent 65%);
  pointer-events: none;
}
.product { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.product__media { position: relative; }
.product__stage {
  position: relative;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f4ece0 70%);
  padding: 30px 40px 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.product__stage::after {
  content: ";
  position: absolute; left: 15%; right: 15%; bottom: 16px; height: 22px;
  background: radial-gradient(ellipse, rgba(42, 29, 21, 0.25), transparent 70%);
}
.product__stage img { position: relative; z-index: 1; width: 100%; max-height: 540px; object-fit: contain; mix-blend-mode: multiply; }
.product__lead { color: rgba(246, 235, 221, 0.78); font-size: 18px; margin-top: 20px; }
.product__feats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.product__feats li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: #f6ebdd; font-size: 15.5px; }
.product__feats .ic { color: var(--amber); margin-top: 3px; }
.product__box { margin-top: 28px; padding: 20px 22px; border-radius: 18px; background: rgba(255, 248, 238, 0.05); border: 1px solid rgba(246, 235, 221, 0.12); }
.product__box-t { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 7px 14px; border-radius: 999px; background: rgba(255, 248, 238, 0.1); color: #f6ebdd; font-size: 14px; font-weight: 500; }
.product__services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 34px; }
.product__services div { border-top: 2px solid rgba(244, 171, 60, 0.5); padding-top: 12px; }
.product__services b { display: block; font-family: var(--f-display); font-size: 19px; color: #fff; }
.product__services span { font-size: 14px; color: rgba(246, 235, 221, 0.65); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.about__badge {
  position: absolute; right: 20px; bottom: 20px;
  background: var(--forest);
  color: #fff;
  padding: 22px 26px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 220px;
}
.about__badge b { display: block; font-family: var(--f-display); font-size: 26px; color: #cfe5c7; }
.about__badge span { font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.about__lead { font-size: 21px; font-weight: 500; color: var(--ink); margin: 24px 0 16px; }
.about__body > p:not(.about__lead) { color: var(--muted); }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.about__stats .num { display: block; font-family: var(--f-display); font-size: 44px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__stats small { font-size: 14.5px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.contact__info {
  position: relative;
  padding: 60px 52px;
  color: #fff;
  background:
    radial-gradient(circle at 110% -10%, rgba(244, 171, 60, 0.55), transparent 50%),
    linear-gradient(160deg, var(--terra) 0%, #b5402a 100%);
}
.contact__info .eyebrow--light { color: #ffe2b5; }
.contact__info .eyebrow::before { background: #ffe2b5; }
.contact__info p { color: rgba(255, 245, 235, 0.88); margin-top: 18px; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.contact__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 248, 238, 0.16); }
.contact__list a:hover { text-decoration: underline; }

.contact__form { padding: 52px; display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact__form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--sand-2);
  background: var(--cream);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(226, 96, 47, 0.14);
}
.form__status { font-size: 14px; color: var(--forest); min-height: 1.4em; text-align: center; }
.form__status.is-error { color: var(--terra-d); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(246, 235, 221, 0.7); padding: 80px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(246, 235, 221, 0.1); }
.footer__brand p { margin-top: 18px; max-width: 360px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--amber); }
.footer__bottom { padding-top: 26px; font-size: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__cta { display: none; }
  .nav__links { gap: 22px; }
  .nav__inner { gap: 24px; }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .exp { grid-column: span 1; }
  .exp--wide { grid-column: span 2; }
  .product, .about { gap: 50px; }
}

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .nav__burger { display: flex; }
  .nav__actions { margin-left: auto; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    flex-direction: column;
    gap: 6px;
    padding: 100px 28px 28px;
    background: var(--cream);
    box-shadow: -20px 0 50px rgba(42, 29, 21, 0.2);
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav__links a, .nav.is-scrolled .nav__links a { color: var(--ink); font-size: 19px; padding: 10px 0; }
  .nav__links a::after { display: none; }
  .nav__mobile-cta { display: block; }
  .nav.is-open .nav__links { transform: none; }
  .nav.is-open .nav__burger { position: relative; z-index: 2; background: var(--sand); }
  .nav.is-open .nav__burger span { background: var(--ink); }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .hstat:nth-child(3) { padding-left: 0; border-left: 0; }

  .section__head--split { grid-template-columns: 1fr; gap: 0; }
  .section__head--split .section__desc { margin-top: 20px; }

  .exp--wide { flex-direction: column; }
  .exp--wide .exp__img { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .exp--wide .exp__body { padding: 28px; }
  .exp--wide h3 { font-size: 24px; }

  .project, .product, .about, .contact { grid-template-columns: 1fr; }
  .project--rev .project__img { order: 0; }
  .project__img { min-height: 280px; }
  .project__body { padding: 32px 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .brand__logo { height: 34px; }
  .nav__actions { gap: 8px; }
  .lang__btn { padding: 6px 9px; }
  .exp-grid, .product__feats, .product__services { grid-template-columns: 1fr; }
  .exp--wide { grid-column: span 1; }
  .form__row, .project__facts, .about__stats { grid-template-columns: 1fr; }
  .contact__info, .contact__form { padding: 36px 26px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hstat + .hstat { padding-left: 0; border-left: 0; }
  .hstat__k { font-size: 19px; }
}
