/* ===================================================================
   industri — light theme · desaturated-red reskin of firmus.co
   =================================================================== */

:root {
  /* surfaces — light */
  --bg:        #FBF8F6;   /* warm off-white page */
  --bg-2:      #F3EEEB;
  --card:      #FFFFFF;
  --ink-card:  #14100F;   /* dark product card */

  /* ink */
  --ink:       #181311;   /* near-black text */
  --ink-dim:   #5C5450;
  --ink-mute:  #8A817C;

  /* accent — saturated red (matches the hero grid) */
  --accent:        #E0352A;
  --accent-2:      #F0685C;
  --accent-3:      #F8CFC9;   /* light red tint */
  --accent-strong: #C32A20;
  --accent-deep:   #9A1C13;
  --accent-soft:   rgba(224, 53, 42, 0.12);

  --line:   rgba(24, 19, 17, 0.10);
  --line-2: rgba(24, 19, 17, 0.20);

  --font-display: "Rubik Mono One", "Archivo", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --container: 1240px;
  --radius:    28px;
  --radius-sm: 16px;

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

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

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
em { font-style: normal; color: var(--accent); }
.accent { color: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
::selection { background: var(--accent); color: #fff; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem;
}
.eyebrow.center { text-align: center; }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section__head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.section__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.35rem, 3vw, 2.3rem); line-height: 1.14; letter-spacing: 0;
}
.lead { margin-top: 1.3rem; color: var(--ink-dim); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 56ch; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 0.9em 1.5em; border-radius: 100px; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.btn i { transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn.sm { padding: 0.7em 1.2em; font-size: 0.78rem; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-strong); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2c2421; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn--outline { border: 1px solid var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.card--dark .btn--outline { border-color: rgba(255,255,255,.3); color: #fff; }
.card--dark .btn--outline:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------------- cursor + progress ---------------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 9500; opacity: 0;
  transition: opacity .3s, width .25s var(--ease), height .25s var(--ease), background .25s;
}
.cursor-dot.is-active { background: var(--accent-soft); width: 52px; height: 52px; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9200; pointer-events: none; transition: opacity .25s; }
body:has(.mobile-menu.is-open) .scroll-progress { opacity: 0; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
  --nav-fg: var(--ink);      /* dark text over the light hero */
}
.nav.is-scrolled {
  background: rgba(251, 248, 246, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
  --nav-fg: var(--ink);      /* dark text on the light glass bar */
}
.nav__inner { width: min(100% - 48px, var(--container)); margin-inline: auto; height: 78px; display: flex; align-items: center; justify-content: space-between; }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--nav-fg); position: relative; padding: 4px 0; transition: color .3s;
}
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--accent); transition: width .35s var(--ease); }
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand__name { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.01em; }
.nav .brand__name { color: var(--nav-fg); transition: color .3s; }

.nav__burger { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--nav-fg); transition: transform .35s var(--ease), opacity .25s, background .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  clip-path: circle(0% at 100% 0); transition: clip-path .6s var(--ease); pointer-events: none;
}
.mobile-menu.is-open { clip-path: circle(150% at 100% 0); pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.4rem; text-align: center; }
.mobile-menu nav a { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.mobile-menu nav a.btn { font-family: var(--font-mono); font-size: 1rem; margin-top: 1rem; align-self: center; }

/* ===================================================================
   HERO
   =================================================================== */
/* a light, floating panel: headline + CTAs left, meshing gears right */
.hero {
  position: relative;
  padding-top: calc(78px + clamp(18px, 4vw, 44px));
  padding-bottom: clamp(40px, 6vw, 90px);
}
.hero__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "stage"
    "cta";
  justify-items: center;
  gap: clamp(20px, 3vw, 40px);
  min-height: clamp(440px, 66vh, 660px);
  padding: clamp(30px, 4vw, 60px);
  border-radius: clamp(24px, 3vw, 38px);
  background: linear-gradient(150deg, #FBECE9 0%, var(--accent-3) 52%, #F2DFDB 100%);
  border: 1px solid rgba(196, 104, 93, 0.18);
  box-shadow: 0 50px 90px -50px rgba(122, 28, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
/* soft red glow pooling behind the object, centred */
.hero__panel::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: 50%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  pointer-events: none;
}
.hero__stage { grid-area: stage; position: relative; z-index: 1; width: 100%; min-height: clamp(340px, 44vw, 580px); }
.hero__obj { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__cta { grid-area: cta; position: relative; z-index: 1; display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: flex-end; justify-content: center; }

.btn--red { background: var(--accent); color: #fff; }
.btn--red:hover { background: var(--accent-strong); box-shadow: 0 12px 30px -12px rgba(224, 53, 42, 0.7); }

/* ===================================================================
   PRODUCTS
   =================================================================== */
.products__grid { display: grid; grid-template-columns: 0.8fr 2.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.products__intro { position: sticky; top: 110px; }
.brandline { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: 0; }
.brandline b { font-weight: 400; color: var(--accent); }

.products__grid .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border-radius: var(--radius-sm); padding: 28px 26px; min-height: 380px;
  display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s;
  will-change: transform;
}
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.01em; }
.card .spec { margin-top: auto; margin-bottom: 1.6rem; }
.card .spec li { font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.7; color: var(--ink-dim); }
.card .btn { align-self: flex-start; margin-top: auto; }

.card--dark { background: var(--ink-card); color: #fff; position: relative; overflow: hidden; }
.card--dark::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 130%, var(--accent) 0%, transparent 60%); }
.card--dark > * { position: relative; z-index: 1; }
.card--dark .spec li { color: rgba(255,255,255,0.78); }

.card--rose { background: linear-gradient(160deg, var(--accent-3) 0%, #FBECE9 80%); color: var(--ink); }
.card--rose .spec li { color: var(--accent-deep); }

/* ===================================================================
   PROJECTS  (cards reused from the original locations grid)
   =================================================================== */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loc { border-radius: var(--radius-sm); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .4s; }
.loc:hover { box-shadow: 0 26px 50px -28px rgba(0,0,0,0.35); }
.loc__art { height: 250px; position: relative; }
.loc__art::before { content: ""; position: absolute; inset: 0; opacity: 0.35; background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px); background-size: 28px 28px; }
.loc--a { background: linear-gradient(150deg, var(--accent), var(--accent-3)); }
.loc--b { background: linear-gradient(150deg, var(--accent-strong), var(--accent-3)); }
.loc--c { background: linear-gradient(150deg, var(--accent-deep), var(--accent-2)); }
.loc__meta { padding: 22px; position: relative; }
.loc__meta h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.loc__meta p { color: var(--ink-dim); font-size: 0.92rem; margin-top: 0.25rem; }
.tag { position: absolute; top: -14px; right: 22px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 100px; background: var(--ink); color: #fff; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--ink); color: #fff; padding-top: clamp(70px, 9vw, 120px); }
.footer .accent { color: var(--accent-2); }
.footer__top { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 80px); padding-bottom: 60px; }
.footer__cta h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.35rem, 2.8vw, 2.2rem); letter-spacing: 0; line-height: 1.14; }
.newsletter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; max-width: 420px; }
.newsletter__msg { flex-basis: 100%; font-family: var(--font-mono); font-size: 0.78rem; min-height: 1.2em; margin-top: 0.4rem; }
.newsletter.is-error input { border-color: var(--accent); }
.newsletter.is-error .newsletter__msg { color: var(--accent-2); }
.newsletter.is-success .newsletter__msg { color: rgba(255, 255, 255, 0.85); }
.newsletter input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 100px; padding: 0.9em 1.3em; color: #fff; font-family: var(--font-mono); font-size: 0.85rem; transition: border-color .3s; }
.newsletter input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter input:focus { outline: none; border-color: var(--accent-2); }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer__cols h4 { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1rem; }
.footer__cols a { display: block; color: rgba(255,255,255,0.7); padding: 0.3rem 0; font-size: 0.92rem; transition: color .3s, padding-left .3s; }
.footer__cols a:hover { color: #fff; padding-left: 6px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.12); font-family: var(--font-mono); font-size: 0.76rem; color: rgba(255,255,255,0.55); }
.footer__bottom .brand__name { color: #fff; }
.footer__bottom .credit { color: var(--accent-2); }

/* ===================================================================
   REVEAL (progressive enhancement)
   =================================================================== */
.js-ready [data-reveal], .js-ready .reveal-line { opacity: 0; transform: translateY(28px); }
.js-ready [data-reveal].is-visible, .js-ready .reveal-line.is-visible { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1000px) {
  .products__grid { grid-template-columns: 1fr; }
  .products__intro { position: static; }
  .footer__top { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__panel {
    grid-template-rows: auto;
    min-height: 0;
  }
  .hero__stage { min-height: clamp(280px, 64vw, 460px); }
}
@media (max-width: 760px) {
  .products__grid .cards, .loc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .products__grid .cards, .loc-grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-ready [data-reveal], .js-ready .reveal-line { opacity: 1 !important; transform: none !important; }
  .cursor-dot { display: none; }
}
